@saasquatch/mint-components 2.0.3 → 2.0.4-10

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 (250) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-659a139c.js → IndirectTaxDetailsView-d39b895d.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-fbc33c53.js → ShadowViewAddon-7066fae7.js} +25 -27
  3. package/dist/cjs/{data-16106637.js → data-44260010.js} +29 -2
  4. package/dist/cjs/{global-e862bfd4.js → global-94f36ad7.js} +55 -54
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/mint-components.cjs.js +2 -2
  7. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +355 -102
  8. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +232 -22
  9. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-email-verification.cjs.entry.js +7 -4
  11. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  12. package/dist/cjs/{sqm-form-message.cjs.entry.js → sqm-form-message_2.cjs.entry.js} +50 -0
  13. package/dist/cjs/sqm-header-logo.cjs.entry.js +15 -2
  14. package/dist/cjs/{sqm-lead-checkbox-field-view-dca40eb4.js → sqm-lead-checkbox-field-view-c0123bfa.js} +1 -1
  15. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
  16. package/dist/cjs/{sqm-lead-input-field-view-2006001f.js → sqm-lead-input-field-view-6983eaa1.js} +1 -1
  17. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
  18. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
  20. package/dist/cjs/{sqm-portal-email-verification-view-1745d9a2.js → sqm-portal-email-verification-view-d968178a.js} +4 -6
  21. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  22. package/dist/cjs/{sqm-portal-profile-view-5c5e29b1.js → sqm-portal-profile-view-f74b8d6c.js} +1 -1
  23. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  24. package/dist/cjs/{sqm-qr-code-view-4ccf89da.js → sqm-qr-code-view-a2889aee.js} +1 -5
  25. package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
  26. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
  27. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
  28. package/dist/cjs/sqm-stencilbook.cjs.entry.js +108 -54
  29. package/dist/cjs/{useLeadFormState-91999606.js → useLeadFormState-f8b33c07.js} +1 -1
  30. package/dist/cjs/{utils-4eb18a29.js → utils-5ecfecd9.js} +18 -30
  31. package/dist/collection/collection-manifest.json +1 -0
  32. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  33. package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
  34. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +5 -0
  35. package/dist/collection/components/sqm-form-message/sqm-form-message.js +30 -0
  36. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +85 -5
  37. package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +5 -5
  38. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +1 -1
  39. package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +5 -7
  40. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
  41. package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +1 -0
  42. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +3 -5
  43. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +3 -3
  44. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -5
  45. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +1 -1
  46. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +5 -5
  47. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
  48. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +8 -8
  49. package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +5 -5
  50. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
  51. package/dist/collection/components/sqm-skeleton/Skeleton.stories.js +16 -0
  52. package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +90 -0
  53. package/dist/collection/components/sqm-stencilbook/Themes.js +12 -0
  54. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  55. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +5 -5
  56. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +6 -3
  57. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
  58. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +10 -5
  59. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +11 -5
  60. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +1 -1
  61. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +46 -40
  62. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -5
  63. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +13 -0
  64. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +98 -7
  65. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +361 -8
  66. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +29 -2
  67. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +17 -29
  68. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +311 -11
  69. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +101 -16
  70. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +310 -10
  71. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
  72. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +22 -13
  73. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
  74. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +100 -9
  75. package/dist/collection/global/styles.js +55 -54
  76. package/dist/collection/global/styles.ts +6 -1
  77. package/dist/collection/tables/TableSlots.js +6 -6
  78. package/dist/esm/{IndirectTaxDetailsView-8dec05e4.js → IndirectTaxDetailsView-a7dd6e4c.js} +2 -2
  79. package/dist/esm/{ShadowViewAddon-7a242b65.js → ShadowViewAddon-fe2896cb.js} +25 -27
  80. package/dist/esm/{data-acdb790f.js → data-68816061.js} +29 -2
  81. package/dist/esm/{global-58a69018.js → global-536c422d.js} +55 -54
  82. package/dist/esm/loader.js +2 -2
  83. package/dist/esm/mint-components.js +2 -2
  84. package/dist/esm/sqm-banking-info-form_10.entry.js +355 -102
  85. package/dist/esm/sqm-big-stat_47.entry.js +232 -22
  86. package/dist/esm/sqm-code-verification.entry.js +1 -1
  87. package/dist/esm/sqm-email-verification.entry.js +7 -4
  88. package/dist/esm/sqm-empty_4.entry.js +1 -1
  89. package/dist/esm/{sqm-form-message.entry.js → sqm-form-message_2.entry.js} +50 -1
  90. package/dist/esm/sqm-header-logo.entry.js +15 -2
  91. package/dist/esm/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-5c387852.js} +1 -1
  92. package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
  93. package/dist/esm/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-fa2488c9.js} +1 -1
  94. package/dist/esm/sqm-lead-input-field.entry.js +3 -3
  95. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  96. package/dist/esm/sqm-pagination_3.entry.js +2 -2
  97. package/dist/esm/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-8bbe5fcf.js} +4 -6
  98. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  99. package/dist/esm/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-9848caf1.js} +1 -1
  100. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  101. package/dist/esm/{sqm-qr-code-view-ea505213.js → sqm-qr-code-view-804b8bb6.js} +1 -5
  102. package/dist/esm/sqm-qr-code.entry.js +1 -1
  103. package/dist/esm/sqm-referral-table_11.entry.js +2 -2
  104. package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
  105. package/dist/esm/sqm-stencilbook.entry.js +108 -54
  106. package/dist/esm/{useLeadFormState-8d4b2620.js → useLeadFormState-5a6188da.js} +1 -1
  107. package/dist/esm/{utils-2695a43e.js → utils-fafc712f.js} +18 -30
  108. package/dist/esm-es5/{IndirectTaxDetailsView-8dec05e4.js → IndirectTaxDetailsView-a7dd6e4c.js} +1 -1
  109. package/dist/esm-es5/{ShadowViewAddon-7a242b65.js → ShadowViewAddon-fe2896cb.js} +1 -1
  110. package/dist/esm-es5/{data-acdb790f.js → data-68816061.js} +2 -2
  111. package/dist/esm-es5/{global-58a69018.js → global-536c422d.js} +1 -1
  112. package/dist/esm-es5/loader.js +1 -1
  113. package/dist/esm-es5/mint-components.js +1 -1
  114. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  115. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  116. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  117. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  118. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  119. package/dist/esm-es5/sqm-form-message_2.entry.js +1 -0
  120. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  121. package/dist/esm-es5/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-5c387852.js} +1 -1
  122. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  123. package/dist/esm-es5/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-fa2488c9.js} +1 -1
  124. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  125. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  126. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  127. package/dist/esm-es5/sqm-portal-email-verification-view-8bbe5fcf.js +1 -0
  128. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  129. package/dist/esm-es5/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-9848caf1.js} +1 -1
  130. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  131. package/dist/esm-es5/{sqm-qr-code-view-ea505213.js → sqm-qr-code-view-804b8bb6.js} +1 -1
  132. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  133. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  134. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  135. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  136. package/dist/esm-es5/{useLeadFormState-8d4b2620.js → useLeadFormState-5a6188da.js} +1 -1
  137. package/dist/esm-es5/utils-fafc712f.js +1 -0
  138. package/dist/mint-components/global/styles.ts +6 -1
  139. package/dist/mint-components/mint-components.esm.js +1 -1
  140. package/dist/mint-components/mint-components.js +1 -1
  141. package/dist/mint-components/{p-c6e8086f.system.entry.js → p-000dc98f.system.entry.js} +1 -1
  142. package/dist/mint-components/{p-988f236f.js → p-005ee5bf.js} +1 -1
  143. package/dist/mint-components/{p-0c024cf0.system.entry.js → p-05e8620f.system.entry.js} +1 -1
  144. package/dist/mint-components/p-0d3803a2.js +1 -0
  145. package/dist/mint-components/p-10aea972.system.js +1 -0
  146. package/dist/mint-components/{p-13c6673e.system.js → p-19e407bd.system.js} +1 -1
  147. package/dist/mint-components/{p-4cc72a4e.system.js → p-1e156272.system.js} +1 -1
  148. package/dist/mint-components/{p-a470e203.entry.js → p-2192a6d7.entry.js} +2 -2
  149. package/dist/mint-components/p-28973c9b.entry.js +144 -0
  150. package/dist/mint-components/{p-6076dbaf.entry.js → p-30f37386.entry.js} +2 -2
  151. package/dist/mint-components/{p-1215518e.system.js → p-33fff374.system.js} +1 -1
  152. package/dist/mint-components/p-397a5adf.system.entry.js +1 -0
  153. package/dist/mint-components/p-3ad8e1af.system.js +1 -0
  154. package/dist/mint-components/{p-1aa9136c.js → p-4130caec.js} +1 -1
  155. package/dist/mint-components/p-438a0c91.system.entry.js +1 -0
  156. package/dist/mint-components/{p-5fbe6356.system.js → p-48bc3283.system.js} +1 -1
  157. package/dist/mint-components/{p-36a1fa33.system.entry.js → p-4b595fc3.system.entry.js} +1 -1
  158. package/dist/mint-components/{p-9d46f87f.system.entry.js → p-4e3303a8.system.entry.js} +1 -1
  159. package/dist/mint-components/p-566d837b.system.js +1 -0
  160. package/dist/mint-components/p-59332a30.entry.js +1 -0
  161. package/dist/mint-components/p-5d39d345.system.entry.js +1 -0
  162. package/dist/mint-components/{p-d7635535.system.js → p-648f881e.system.js} +1 -1
  163. package/dist/mint-components/{p-43ad51bc.entry.js → p-66effbef.entry.js} +1 -1
  164. package/dist/mint-components/p-69bd9de3.entry.js +106 -0
  165. package/dist/mint-components/{p-bf044217.js → p-78968e5f.js} +1 -1
  166. package/dist/mint-components/p-7c9520b7.system.js +1 -0
  167. package/dist/mint-components/p-7e550c3b.system.entry.js +1 -0
  168. package/dist/mint-components/{p-ad3ebf4d.entry.js → p-80196216.entry.js} +1 -1
  169. package/dist/mint-components/{p-58c79873.entry.js → p-8a24b9a9.entry.js} +1 -1
  170. package/dist/mint-components/p-8af550b9.system.entry.js +1 -0
  171. package/dist/mint-components/{p-deecffd0.system.entry.js → p-8f6b3391.system.entry.js} +1 -1
  172. package/dist/mint-components/{p-011c0990.system.entry.js → p-902b919d.system.entry.js} +1 -1
  173. package/dist/mint-components/p-92b5c376.js +157 -0
  174. package/dist/mint-components/p-a115c57a.system.entry.js +1 -0
  175. package/dist/mint-components/p-a2dbc9ad.system.js +6 -0
  176. package/dist/mint-components/{p-f5256738.system.entry.js → p-a45124c1.system.entry.js} +1 -1
  177. package/dist/mint-components/p-a6198c55.entry.js +273 -0
  178. package/dist/mint-components/{p-1b79b186.entry.js → p-a65610e3.entry.js} +1 -1
  179. package/dist/mint-components/{p-f7e49c12.entry.js → p-a7157ef3.entry.js} +2 -2
  180. package/dist/mint-components/{p-4965dae4.system.js → p-a71edffc.system.js} +1 -1
  181. package/dist/mint-components/p-a92c692b.js +448 -0
  182. package/dist/mint-components/p-ab4c0642.js +1 -0
  183. package/dist/mint-components/{p-8618e8f6.system.js → p-af02f28c.system.js} +1 -1
  184. package/dist/mint-components/p-af758193.entry.js +1 -0
  185. package/dist/mint-components/{p-12e6cea7.entry.js → p-b8878552.entry.js} +2 -2
  186. package/dist/mint-components/p-bdb6194c.entry.js +1 -0
  187. package/dist/mint-components/p-c37744c7.entry.js +1 -0
  188. package/dist/mint-components/{p-1d8c5935.js → p-ceb79149.js} +1 -1
  189. package/dist/mint-components/{p-2ea3eea9.system.entry.js → p-d07a46c6.system.entry.js} +1 -1
  190. package/dist/mint-components/{p-027c0b10.js → p-d6d31505.js} +32 -32
  191. package/dist/mint-components/{p-fcf8bdbc.system.entry.js → p-d8d818d9.system.entry.js} +1 -1
  192. package/dist/mint-components/p-dcdd959e.entry.js +9 -0
  193. package/dist/mint-components/p-e0c7640f.js +1 -0
  194. package/dist/mint-components/{p-e19f0908.entry.js → p-e712a01d.entry.js} +2 -2
  195. package/dist/mint-components/p-ede77156.system.entry.js +1 -0
  196. package/dist/mint-components/{p-f3613921.system.entry.js → p-f380bcd9.system.entry.js} +1 -1
  197. package/dist/mint-components/{p-088f082f.js → p-f6305644.js} +1 -1
  198. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
  199. package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +6 -0
  200. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +17 -2
  201. package/dist/types/components/sqm-skeleton/Skeleton.stories.d.ts +8 -0
  202. package/dist/types/components/sqm-skeleton/sqm-skeleton.d.ts +14 -0
  203. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +24 -0
  204. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +7 -0
  205. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +16 -0
  206. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +57 -0
  207. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -1
  208. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +48 -0
  209. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +12 -0
  210. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +48 -0
  211. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
  212. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  213. package/dist/types/components.d.ts +376 -43
  214. package/dist/types/global/android.d.ts +7 -0
  215. package/dist/types/global/demo.d.ts +2 -0
  216. package/dist/types/saasquatch.d.ts +4 -0
  217. package/dist/types/stories/features.d.ts +4 -0
  218. package/dist/types/stories/templates.d.ts +4 -0
  219. package/docs/docs.docx +0 -0
  220. package/docs/raisins.json +1 -1
  221. package/grapesjs/grapesjs.js +1 -1
  222. package/package.json +1 -1
  223. package/dist/esm-es5/sqm-form-message.entry.js +0 -1
  224. package/dist/esm-es5/sqm-portal-email-verification-view-5fb1a99e.js +0 -1
  225. package/dist/esm-es5/utils-2695a43e.js +0 -1
  226. package/dist/mint-components/p-012d31bc.entry.js +0 -99
  227. package/dist/mint-components/p-0d71303d.js +0 -1
  228. package/dist/mint-components/p-2ea6e2fa.entry.js +0 -273
  229. package/dist/mint-components/p-303b84d7.system.entry.js +0 -1
  230. package/dist/mint-components/p-325c5476.js +0 -1
  231. package/dist/mint-components/p-469a6450.system.js +0 -6
  232. package/dist/mint-components/p-478ad7c8.system.entry.js +0 -1
  233. package/dist/mint-components/p-6976099f.entry.js +0 -9
  234. package/dist/mint-components/p-752ede25.system.entry.js +0 -1
  235. package/dist/mint-components/p-78dda262.system.js +0 -1
  236. package/dist/mint-components/p-829cb9ed.system.entry.js +0 -1
  237. package/dist/mint-components/p-8d9fa981.system.js +0 -1
  238. package/dist/mint-components/p-947bacd1.system.js +0 -1
  239. package/dist/mint-components/p-97747228.system.entry.js +0 -1
  240. package/dist/mint-components/p-a7ee19dc.entry.js +0 -1
  241. package/dist/mint-components/p-a974c549.js +0 -1
  242. package/dist/mint-components/p-ac9138fd.entry.js +0 -1
  243. package/dist/mint-components/p-d88d8ffe.entry.js +0 -1
  244. package/dist/mint-components/p-dc5bca55.entry.js +0 -1
  245. package/dist/mint-components/p-e1e7d01c.js +0 -157
  246. package/dist/mint-components/p-e8bda98a.system.entry.js +0 -1
  247. package/dist/mint-components/p-ee3a7577.entry.js +0 -144
  248. package/dist/mint-components/p-eea87fdc.system.entry.js +0 -1
  249. package/dist/mint-components/p-f5820d03.system.js +0 -1
  250. package/dist/mint-components/p-ffc3cd7c.js +0 -448
@@ -1,11 +1,22 @@
1
- import { useParent, useParentQueryValue, useParentValue, } from "@saasquatch/component-boilerplate";
1
+ import { useMutation, useParent, useParentQueryValue, useParentValue, useQuery, useUserIdentity, } from "@saasquatch/component-boilerplate";
2
2
  import { useEffect, useMemo, useRef, useState, } from "@saasquatch/universal-hooks";
3
3
  import jsonpointer from "jsonpointer";
4
4
  import { CURRENCIES_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
5
5
  import { ADDRESS_REGIONS } from "../subregions";
6
- import { objectIsFull } from "../utils";
6
+ import { objectIsFull, validTaxDocument } from "../utils";
7
+ import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
8
+ import { CONNECT_PARTNER, } from "../sqm-indirect-tax-form/useIndirectTaxForm";
9
+ import { gql } from "graphql-request";
10
+ const GET_INDIRECT_TAX_COUNTRY_CODE = gql `
11
+ query getIndirectTaxCountryCode {
12
+ tenantSettings {
13
+ impactBrandCountryCode
14
+ impactBrandIndirectTaxCountryCode
15
+ }
16
+ }
17
+ `;
7
18
  export function useUserInfoForm(props) {
8
- var _a, _b, _c, _d;
19
+ var _a, _b, _c, _d, _e, _f, _g;
9
20
  const currencyRef = useRef(undefined);
10
21
  const phoneCountryRef = useRef(undefined);
11
22
  const formRef = useRef(null);
@@ -13,7 +24,10 @@ export function useUserInfoForm(props) {
13
24
  const countries = useParentValue(SORTED_COUNTRIES_NAMESPACE);
14
25
  const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
15
26
  const [userFormContext, setUserFormContext] = useParent(USER_FORM_CONTEXT_NAMESPACE);
16
- const { data, loading, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
27
+ const user = useUserIdentity();
28
+ const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = useMutation(CONNECT_PARTNER);
29
+ const { data: tenantData } = useQuery(GET_INDIRECT_TAX_COUNTRY_CODE, {});
30
+ const { data, loading, refetch, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
17
31
  const _currencies = useParentValue(CURRENCIES_NAMESPACE);
18
32
  const currencies = useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
19
33
  const [countrySearch, setCountrySearch] = useState("");
@@ -115,6 +129,45 @@ export function useUserInfoForm(props) {
115
129
  setFilteredCurrencies(currencies.filter((c) => c.currencyCode.toLowerCase().includes(currencySearch.toLowerCase())) || []);
116
130
  }
117
131
  }, [currencySearch, currencies]);
132
+ async function connectPartner(formData) {
133
+ var _a, _b, _c, _d, _e;
134
+ const vars = {
135
+ user: {
136
+ id: user.id,
137
+ accountId: user.accountId,
138
+ },
139
+ firstName: formData.firstName,
140
+ lastName: formData.lastName,
141
+ countryCode: formData.countryCode,
142
+ currency: formData.currency,
143
+ address: formData.address,
144
+ city: formData.city,
145
+ state: formData.state,
146
+ postalCode: formData.postalCode,
147
+ phoneNumber: formData.phoneNumber,
148
+ phoneNumberCountryCode: formData.phoneNumberCountryCode,
149
+ };
150
+ const result = await connectImpactPartner({
151
+ vars,
152
+ });
153
+ if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
154
+ throw new Error();
155
+ if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
156
+ // Output backend errors to console for now
157
+ console.error("Failed to create Impact connection: ", result.createImpactConnection.validationErrors);
158
+ throw new Error();
159
+ }
160
+ await refetch();
161
+ const resultPublisher = (_e = (_d = (_c = result
162
+ .createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
163
+ const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
164
+ // Fire form change event
165
+ window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
166
+ return {
167
+ resultPublisher,
168
+ hasValidCurrentDocument,
169
+ };
170
+ }
118
171
  async function onSubmit(event) {
119
172
  let formControls = event.target.getFormControls();
120
173
  let formData = {};
@@ -157,9 +210,46 @@ export function useUserInfoForm(props) {
157
210
  postalCode: userData.postalCode,
158
211
  currency: userData.currency,
159
212
  });
160
- const nextStep = context.overrideNextStep || "/2";
213
+ const skipNextStep = getSkipNextStep(userData);
214
+ if (skipNextStep) {
215
+ try {
216
+ const { resultPublisher, hasValidCurrentDocument } = await connectPartner(formData);
217
+ if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
218
+ !hasValidCurrentDocument) {
219
+ // Go to docusign form
220
+ setStep("/3");
221
+ }
222
+ else {
223
+ if (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.brandedSignup) {
224
+ // Go to banking information form
225
+ setStep("/4");
226
+ }
227
+ else {
228
+ // Go right to the dashboard
229
+ setStep("/dashboard");
230
+ }
231
+ }
232
+ return;
233
+ }
234
+ catch (e) {
235
+ setErrors({ general: true });
236
+ return;
237
+ }
238
+ }
239
+ const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
161
240
  setStep(nextStep);
162
241
  }
242
+ const indirectTaxCountry = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.tenantSettings) === null || _a === void 0 ? void 0 : _a.impactBrandIndirectTaxCountryCode;
243
+ const hasIndirectTax = !!indirectTaxCountry;
244
+ function getSkipNextStep(userData) {
245
+ if (!hasIndirectTax)
246
+ return true;
247
+ if (userData.countryCode === "US")
248
+ return true;
249
+ if (hasIndirectTax && userData.countryCode !== indirectTaxCountry)
250
+ return true;
251
+ return false;
252
+ }
163
253
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
164
254
  const regionObj = hasStates
165
255
  ? ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
@@ -187,16 +277,17 @@ export function useUserInfoForm(props) {
187
277
  allCountries: countries,
188
278
  regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
189
279
  regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
280
+ partnerData: (_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher,
190
281
  },
191
282
  states: {
192
283
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
193
284
  hideState: !hasStates,
194
285
  hideSteps: !!context.hideSteps,
195
- disabled: loading,
286
+ disabled: loading || connectLoading,
196
287
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
197
- loading: loading,
198
- isPartner: !!((_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
199
- isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
288
+ loading: loading || connectLoading,
289
+ isPartner: !!((_e = (_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
290
+ isUser: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.user),
200
291
  formState: {
201
292
  ...userFormContext,
202
293
  errors: formErrors,
@@ -71,7 +71,7 @@
71
71
  --teal-7: #004551;
72
72
  } */
73
73
  export const parseBrandingConfig = (config) => {
74
- 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;
74
+ 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;
75
75
  return ({
76
76
  styles: `
77
77
  /* vietnamese */
@@ -577,71 +577,72 @@ html {
577
577
  --widget-background-color: var(--sl-color-white);
578
578
  --sqm-portal-main-width: 900px;
579
579
  --sqm-max-width: 100%;
580
- --sqm-skeleton-background: hsl(240, 4%, 91%);
581
- --sqm-text: ${((_d = (_c = config === null || config === void 0 ? void 0 : config.color) === null || _c === void 0 ? void 0 : _c.textColorShades) === null || _d === void 0 ? void 0 : _d.mainText) || "hsl(240, 4%, 16%)"};
582
- --sqm-text-subdued: ${((_f = (_e = config === null || config === void 0 ? void 0 : config.color) === null || _e === void 0 ? void 0 : _e.textColorShades) === null || _f === void 0 ? void 0 : _f.subduedText) || "hsl(240, 3%, 46%)"};
583
-
584
- --sqm-primary-color: ${((_g = config === null || config === void 0 ? void 0 : config.main) === null || _g === void 0 ? void 0 : _g.brandColor) || "hsl(0, 0%, 7%)"};
585
- --sqm-primary-button-background:${((_j = (_h = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _h === void 0 ? void 0 : _h.buttonColor) === null || _j === void 0 ? void 0 : _j.background) || "hsl(0, 0%, 7%)"};
586
- --sqm-primary-button-background-hover: ${((_l = (_k = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _k === void 0 ? void 0 : _k.buttonHoverColor) === null || _l === void 0 ? void 0 : _l.background) || "hsl(0, 0%, 25%)"};
587
- --sqm-primary-button-color-hover: ${((_o = (_m = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _m === void 0 ? void 0 : _m.buttonHoverColor) === null || _o === void 0 ? void 0 : _o.label) || "hsla(0, 0%, 100%, 1)"};
588
- --sqm-primary-button-border-color-hover: ${((_q = (_p = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _p === void 0 ? void 0 : _p.buttonHoverColor) === null || _q === void 0 ? void 0 : _q.border) || "hsl(0, 0%, 25%)"};
589
- --sqm-primary-button-color: ${((_s = (_r = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _r === void 0 ? void 0 : _r.buttonColor) === null || _s === void 0 ? void 0 : _s.label) || "hsla(0, 0%, 100%, 1)"};
590
- --sqm-primary-button-color-border: ${((_u = (_t = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _t === void 0 ? void 0 : _t.buttonColor) === null || _u === void 0 ? void 0 : _u.border) || "hsl(0, 0%, 7%)"};
591
- --sqm-primary-button-radius: ${((_v = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _v === void 0 ? void 0 : _v.borderRadius) ? ((_w = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _w === void 0 ? void 0 : _w.borderRadius) + "px"
580
+ --sqm-skeleton-background: ${((_d = (_c = config === null || config === void 0 ? void 0 : config.color) === null || _c === void 0 ? void 0 : _c.loadingSkeleton) === null || _d === void 0 ? void 0 : _d.background) || "hsl(240 5.9% 90%)"};
581
+ --sqm-skeleton-animation-background: ${((_f = (_e = config === null || config === void 0 ? void 0 : config.color) === null || _e === void 0 ? void 0 : _e.loadingSkeleton) === null || _f === void 0 ? void 0 : _f.animationBackground) || "hsl(240 4.8% 95.9%)"};
582
+ --sqm-text: ${((_h = (_g = config === null || config === void 0 ? void 0 : config.color) === null || _g === void 0 ? void 0 : _g.textColorShades) === null || _h === void 0 ? void 0 : _h.mainText) || "hsl(240, 4%, 16%)"};
583
+ --sqm-text-subdued: ${((_k = (_j = config === null || config === void 0 ? void 0 : config.color) === null || _j === void 0 ? void 0 : _j.textColorShades) === null || _k === void 0 ? void 0 : _k.subduedText) || "hsl(240, 3%, 46%)"};
584
+
585
+ --sqm-primary-color: ${((_l = config === null || config === void 0 ? void 0 : config.main) === null || _l === void 0 ? void 0 : _l.brandColor) || "hsl(0, 0%, 7%)"};
586
+ --sqm-primary-button-background:${((_o = (_m = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _m === void 0 ? void 0 : _m.buttonColor) === null || _o === void 0 ? void 0 : _o.background) || "hsl(0, 0%, 7%)"};
587
+ --sqm-primary-button-background-hover: ${((_q = (_p = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _p === void 0 ? void 0 : _p.buttonHoverColor) === null || _q === void 0 ? void 0 : _q.background) || "hsl(0, 0%, 25%)"};
588
+ --sqm-primary-button-color-hover: ${((_s = (_r = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _r === void 0 ? void 0 : _r.buttonHoverColor) === null || _s === void 0 ? void 0 : _s.label) || "hsla(0, 0%, 100%, 1)"};
589
+ --sqm-primary-button-border-color-hover: ${((_u = (_t = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _t === void 0 ? void 0 : _t.buttonHoverColor) === null || _u === void 0 ? void 0 : _u.border) || "hsl(0, 0%, 25%)"};
590
+ --sqm-primary-button-color: ${((_w = (_v = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _v === void 0 ? void 0 : _v.buttonColor) === null || _w === void 0 ? void 0 : _w.label) || "hsla(0, 0%, 100%, 1)"};
591
+ --sqm-primary-button-color-border: ${((_y = (_x = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _x === void 0 ? void 0 : _x.buttonColor) === null || _y === void 0 ? void 0 : _y.border) || "hsl(0, 0%, 7%)"};
592
+ --sqm-primary-button-radius: ${((_z = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _z === void 0 ? void 0 : _z.borderRadius) ? ((_0 = config === null || config === void 0 ? void 0 : config.primaryButton) === null || _0 === void 0 ? void 0 : _0.borderRadius) + "px"
592
593
  : "4px"};
593
- --sqm-secondary-button-background: ${((_y = (_x = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _x === void 0 ? void 0 : _x.buttonColor) === null || _y === void 0 ? void 0 : _y.background) || "hsl(0, 0%, 100%)"};
594
- --sqm-secondary-button-background-hover: ${((_0 = (_z = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _z === void 0 ? void 0 : _z.buttonHoverColor) === null || _0 === void 0 ? void 0 : _0.background) || "hsl(0, 0%, 7%)"};
595
- --sqm-secondary-button-color-hover: ${((_2 = (_1 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _1 === void 0 ? void 0 : _1.buttonHoverColor) === null || _2 === void 0 ? void 0 : _2.label) || "hsl(0, 0%, 100%)"};
596
- --sqm-secondary-button-border-color-hover: ${((_4 = (_3 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _3 === void 0 ? void 0 : _3.buttonHoverColor) === null || _4 === void 0 ? void 0 : _4.border) || "hsl(0, 0%, 7%)"};
597
- --sqm-secondary-button-color: ${((_6 = (_5 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _5 === void 0 ? void 0 : _5.buttonColor) === null || _6 === void 0 ? void 0 : _6.label) || "hsl(0, 0%, 7%)"};
598
- --sqm-secondary-button-color-border: ${((_8 = (_7 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _7 === void 0 ? void 0 : _7.buttonColor) === null || _8 === void 0 ? void 0 : _8.border) || "hsl(0, 0%, 100%)"};
599
- --sqm-secondary-button-radius: ${((_9 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _9 === void 0 ? void 0 : _9.borderRadius) ? ((_10 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _10 === void 0 ? void 0 : _10.borderRadius) + "px"
594
+ --sqm-secondary-button-background: ${((_2 = (_1 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _1 === void 0 ? void 0 : _1.buttonColor) === null || _2 === void 0 ? void 0 : _2.background) || "hsl(0, 0%, 100%)"};
595
+ --sqm-secondary-button-background-hover: ${((_4 = (_3 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _3 === void 0 ? void 0 : _3.buttonHoverColor) === null || _4 === void 0 ? void 0 : _4.background) || "hsl(0, 0%, 7%)"};
596
+ --sqm-secondary-button-color-hover: ${((_6 = (_5 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _5 === void 0 ? void 0 : _5.buttonHoverColor) === null || _6 === void 0 ? void 0 : _6.label) || "hsl(0, 0%, 100%)"};
597
+ --sqm-secondary-button-border-color-hover: ${((_8 = (_7 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _7 === void 0 ? void 0 : _7.buttonHoverColor) === null || _8 === void 0 ? void 0 : _8.border) || "hsl(0, 0%, 7%)"};
598
+ --sqm-secondary-button-color: ${((_10 = (_9 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _9 === void 0 ? void 0 : _9.buttonColor) === null || _10 === void 0 ? void 0 : _10.label) || "hsl(0, 0%, 7%)"};
599
+ --sqm-secondary-button-color-border: ${((_12 = (_11 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _11 === void 0 ? void 0 : _11.buttonColor) === null || _12 === void 0 ? void 0 : _12.border) || "hsl(0, 0%, 100%)"};
600
+ --sqm-secondary-button-radius: ${((_13 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _13 === void 0 ? void 0 : _13.borderRadius) ? ((_14 = config === null || config === void 0 ? void 0 : config.secondaryButton) === null || _14 === void 0 ? void 0 : _14.borderRadius) + "px"
600
601
  : "4px"};
601
602
 
602
- --sqm-border-radius-normal: ${((_11 = config === null || config === void 0 ? void 0 : config.border) === null || _11 === void 0 ? void 0 : _11.borderRadius) ? ((_12 = config === null || config === void 0 ? void 0 : config.border) === null || _12 === void 0 ? void 0 : _12.borderRadius) + "px" : "4px"};
603
- --sqm-border-color: ${((_13 = config === null || config === void 0 ? void 0 : config.border) === null || _13 === void 0 ? void 0 : _13.borderColor) || "hsl(240, 4%, 91%)"};
603
+ --sqm-border-radius-normal: ${((_15 = config === null || config === void 0 ? void 0 : config.border) === null || _15 === void 0 ? void 0 : _15.borderRadius) ? ((_16 = config === null || config === void 0 ? void 0 : config.border) === null || _16 === void 0 ? void 0 : _16.borderRadius) + "px" : "4px"};
604
+ --sqm-border-color: ${((_17 = config === null || config === void 0 ? void 0 : config.border) === null || _17 === void 0 ? void 0 : _17.borderColor) || "hsl(240, 4%, 91%)"};
604
605
 
605
- --sqm-border-thickness: ${((_14 = config === null || config === void 0 ? void 0 : config.border) === null || _14 === void 0 ? void 0 : _14.borderThickness) ? ((_15 = config === null || config === void 0 ? void 0 : config.border) === null || _15 === void 0 ? void 0 : _15.borderThickness) + "px"
606
+ --sqm-border-thickness: ${((_18 = config === null || config === void 0 ? void 0 : config.border) === null || _18 === void 0 ? void 0 : _18.borderThickness) ? ((_19 = config === null || config === void 0 ? void 0 : config.border) === null || _19 === void 0 ? void 0 : _19.borderThickness) + "px"
606
607
  : "1px"};
607
608
 
608
- --sqm-accent-color-icon: ${((_17 = (_16 = config === null || config === void 0 ? void 0 : config.color) === null || _16 === void 0 ? void 0 : _16.accentColorShades) === null || _17 === void 0 ? void 0 : _17.icon) || "hsl(0, 0%, 7%)"};
609
- --sqm-accent-color-text: ${((_19 = (_18 = config === null || config === void 0 ? void 0 : config.color) === null || _18 === void 0 ? void 0 : _18.accentColorShades) === null || _19 === void 0 ? void 0 : _19.text) || "hsl(0, 0%, 7%)"};
610
- --sqm-accent-color-border: ${((_21 = (_20 = config === null || config === void 0 ? void 0 : config.color) === null || _20 === void 0 ? void 0 : _20.accentColorShades) === null || _21 === void 0 ? void 0 : _21.border) || "hsl(240, 6%, 90%)"};
611
- --sqm-accent-color-background: ${((_23 = (_22 = config === null || config === void 0 ? void 0 : config.color) === null || _22 === void 0 ? void 0 : _22.accentColorShades) === null || _23 === void 0 ? void 0 : _23.background) || "hsl(0, 0%, 93%)"};
609
+ --sqm-accent-color-icon: ${((_21 = (_20 = config === null || config === void 0 ? void 0 : config.color) === null || _20 === void 0 ? void 0 : _20.accentColorShades) === null || _21 === void 0 ? void 0 : _21.icon) || "hsl(0, 0%, 7%)"};
610
+ --sqm-accent-color-text: ${((_23 = (_22 = config === null || config === void 0 ? void 0 : config.color) === null || _22 === void 0 ? void 0 : _22.accentColorShades) === null || _23 === void 0 ? void 0 : _23.text) || "hsl(0, 0%, 7%)"};
611
+ --sqm-accent-color-border: ${((_25 = (_24 = config === null || config === void 0 ? void 0 : config.color) === null || _24 === void 0 ? void 0 : _24.accentColorShades) === null || _25 === void 0 ? void 0 : _25.border) || "hsl(240, 6%, 90%)"};
612
+ --sqm-accent-color-background: ${((_27 = (_26 = config === null || config === void 0 ? void 0 : config.color) === null || _26 === void 0 ? void 0 : _26.accentColorShades) === null || _27 === void 0 ? void 0 : _27.background) || "hsl(0, 0%, 93%)"};
612
613
 
613
- --sqm-success-color-icon: ${((_25 = (_24 = config === null || config === void 0 ? void 0 : config.color) === null || _24 === void 0 ? void 0 : _24.success) === null || _25 === void 0 ? void 0 : _25.iconAndBadge) || "hsl(142, 71%, 45%)"};
614
- --sqm-success-color-text: ${((_27 = (_26 = config === null || config === void 0 ? void 0 : config.color) === null || _26 === void 0 ? void 0 : _26.success) === null || _27 === void 0 ? void 0 : _27.text) || "hsl(164, 74%, 15%)"};
615
- --sqm-success-color-border: ${((_29 = (_28 = config === null || config === void 0 ? void 0 : config.color) === null || _28 === void 0 ? void 0 : _28.success) === null || _29 === void 0 ? void 0 : _29.border) || "hsl(141, 79%, 85%)"};
616
- --sqm-success-color-background: ${((_31 = (_30 = config === null || config === void 0 ? void 0 : config.color) === null || _30 === void 0 ? void 0 : _30.success) === null || _31 === void 0 ? void 0 : _31.background) || "hsl(141, 84%, 93%)"};
614
+ --sqm-success-color-icon: ${((_29 = (_28 = config === null || config === void 0 ? void 0 : config.color) === null || _28 === void 0 ? void 0 : _28.success) === null || _29 === void 0 ? void 0 : _29.iconAndBadge) || "hsl(142, 71%, 45%)"};
615
+ --sqm-success-color-text: ${((_31 = (_30 = config === null || config === void 0 ? void 0 : config.color) === null || _30 === void 0 ? void 0 : _30.success) === null || _31 === void 0 ? void 0 : _31.text) || "hsl(164, 74%, 15%)"};
616
+ --sqm-success-color-border: ${((_33 = (_32 = config === null || config === void 0 ? void 0 : config.color) === null || _32 === void 0 ? void 0 : _32.success) === null || _33 === void 0 ? void 0 : _33.border) || "hsl(141, 79%, 85%)"};
617
+ --sqm-success-color-background: ${((_35 = (_34 = config === null || config === void 0 ? void 0 : config.color) === null || _34 === void 0 ? void 0 : _34.success) === null || _35 === void 0 ? void 0 : _35.background) || "hsl(141, 84%, 93%)"};
617
618
 
618
- --sqm-warning-color-icon: ${((_33 = (_32 = config === null || config === void 0 ? void 0 : config.color) === null || _32 === void 0 ? void 0 : _32.warning) === null || _33 === void 0 ? void 0 : _33.iconAndBadge) || "hsl(38, 92%, 50%)"};
619
- --sqm-warning-color-text: ${((_35 = (_34 = config === null || config === void 0 ? void 0 : config.color) === null || _34 === void 0 ? void 0 : _34.warning) === null || _35 === void 0 ? void 0 : _35.text) || "hsl(38, 70%, 24%)"};
620
- --sqm-warning-color-border: ${((_37 = (_36 = config === null || config === void 0 ? void 0 : config.color) === null || _36 === void 0 ? void 0 : _36.warning) === null || _37 === void 0 ? void 0 : _37.border) || "hsl(48, 97%, 85%)"};
621
- --sqm-warning-color-background: ${((_39 = (_38 = config === null || config === void 0 ? void 0 : config.color) === null || _38 === void 0 ? void 0 : _38.warning) === null || _39 === void 0 ? void 0 : _39.background) || "hsl(48, 97%, 85%)"};
622
-
623
- --sqm-danger-color-icon: ${((_41 = (_40 = config === null || config === void 0 ? void 0 : config.color) === null || _40 === void 0 ? void 0 : _40.critical) === null || _41 === void 0 ? void 0 : _41.iconAndBadge) || "hsl(0, 84%, 60%)"};
624
- --sqm-danger-color-text: ${((_43 = (_42 = config === null || config === void 0 ? void 0 : config.color) === null || _42 === void 0 ? void 0 : _42.critical) === null || _43 === void 0 ? void 0 : _43.text) || "hsl(0, 57%, 26%)"};
625
- --sqm-danger-color-border: ${((_45 = (_44 = config === null || config === void 0 ? void 0 : config.color) === null || _44 === void 0 ? void 0 : _44.critical) === null || _45 === void 0 ? void 0 : _45.border) || "hsl(0, 97%, 85%)"};
626
- --sqm-danger-color-background: ${((_47 = (_46 = config === null || config === void 0 ? void 0 : config.color) === null || _46 === void 0 ? void 0 : _46.critical) === null || _47 === void 0 ? void 0 : _47.background) || "hsl(0, 93%, 94%)"};
627
-
628
- --sqm-informative-color-icon: ${((_49 = (_48 = config === null || config === void 0 ? void 0 : config.color) === null || _48 === void 0 ? void 0 : _48.informative) === null || _49 === void 0 ? void 0 : _49.iconAndBadge) || "hsl(221, 83%, 53%)"};
629
- --sqm-informative-color-text: ${((_51 = (_50 = config === null || config === void 0 ? void 0 : config.color) === null || _50 === void 0 ? void 0 : _50.informative) === null || _51 === void 0 ? void 0 : _51.text) || "hsl(221, 75%, 20%)"};
630
- --sqm-informative-color-border: ${((_53 = (_52 = config === null || config === void 0 ? void 0 : config.color) === null || _52 === void 0 ? void 0 : _52.informative) === null || _53 === void 0 ? void 0 : _53.border) || "hsl(213, 97%, 85%)"};
631
- --sqm-informative-color-background: ${((_55 = (_54 = config === null || config === void 0 ? void 0 : config.color) === null || _54 === void 0 ? void 0 : _54.informative) === null || _55 === void 0 ? void 0 : _55.background) || "hsl(214, 95%, 93%)"};
632
-
633
- --sqm-input-background: ${((_57 = (_56 = config === null || config === void 0 ? void 0 : config.formFields) === null || _56 === void 0 ? void 0 : _56.formFieldColor) === null || _57 === void 0 ? void 0 : _57.background) || "hsla(0, 0%, 100%, 1)"};
634
- --sqm-input-border-color: ${((_59 = (_58 = config === null || config === void 0 ? void 0 : config.formFields) === null || _58 === void 0 ? void 0 : _58.formFieldColor) === null || _59 === void 0 ? void 0 : _59.border) || "hsl(240, 6%, 90%)"};
635
- --sqm-input-border-radius: ${((_60 = config === null || config === void 0 ? void 0 : config.formFields) === null || _60 === void 0 ? void 0 : _60.borderRadius) ? ((_61 = config === null || config === void 0 ? void 0 : config.formFields) === null || _61 === void 0 ? void 0 : _61.borderRadius) + "px"
619
+ --sqm-warning-color-icon: ${((_37 = (_36 = config === null || config === void 0 ? void 0 : config.color) === null || _36 === void 0 ? void 0 : _36.warning) === null || _37 === void 0 ? void 0 : _37.iconAndBadge) || "hsl(38, 92%, 50%)"};
620
+ --sqm-warning-color-text: ${((_39 = (_38 = config === null || config === void 0 ? void 0 : config.color) === null || _38 === void 0 ? void 0 : _38.warning) === null || _39 === void 0 ? void 0 : _39.text) || "hsl(38, 70%, 24%)"};
621
+ --sqm-warning-color-border: ${((_41 = (_40 = config === null || config === void 0 ? void 0 : config.color) === null || _40 === void 0 ? void 0 : _40.warning) === null || _41 === void 0 ? void 0 : _41.border) || "hsl(48, 97%, 85%)"};
622
+ --sqm-warning-color-background: ${((_43 = (_42 = config === null || config === void 0 ? void 0 : config.color) === null || _42 === void 0 ? void 0 : _42.warning) === null || _43 === void 0 ? void 0 : _43.background) || "hsl(48, 97%, 85%)"};
623
+
624
+ --sqm-danger-color-icon: ${((_45 = (_44 = config === null || config === void 0 ? void 0 : config.color) === null || _44 === void 0 ? void 0 : _44.critical) === null || _45 === void 0 ? void 0 : _45.iconAndBadge) || "hsl(0, 84%, 60%)"};
625
+ --sqm-danger-color-text: ${((_47 = (_46 = config === null || config === void 0 ? void 0 : config.color) === null || _46 === void 0 ? void 0 : _46.critical) === null || _47 === void 0 ? void 0 : _47.text) || "hsl(0, 57%, 26%)"};
626
+ --sqm-danger-color-border: ${((_49 = (_48 = config === null || config === void 0 ? void 0 : config.color) === null || _48 === void 0 ? void 0 : _48.critical) === null || _49 === void 0 ? void 0 : _49.border) || "hsl(0, 97%, 85%)"};
627
+ --sqm-danger-color-background: ${((_51 = (_50 = config === null || config === void 0 ? void 0 : config.color) === null || _50 === void 0 ? void 0 : _50.critical) === null || _51 === void 0 ? void 0 : _51.background) || "hsl(0, 93%, 94%)"};
628
+
629
+ --sqm-informative-color-icon: ${((_53 = (_52 = config === null || config === void 0 ? void 0 : config.color) === null || _52 === void 0 ? void 0 : _52.informative) === null || _53 === void 0 ? void 0 : _53.iconAndBadge) || "hsl(221, 83%, 53%)"};
630
+ --sqm-informative-color-text: ${((_55 = (_54 = config === null || config === void 0 ? void 0 : config.color) === null || _54 === void 0 ? void 0 : _54.informative) === null || _55 === void 0 ? void 0 : _55.text) || "hsl(221, 75%, 20%)"};
631
+ --sqm-informative-color-border: ${((_57 = (_56 = config === null || config === void 0 ? void 0 : config.color) === null || _56 === void 0 ? void 0 : _56.informative) === null || _57 === void 0 ? void 0 : _57.border) || "hsl(213, 97%, 85%)"};
632
+ --sqm-informative-color-background: ${((_59 = (_58 = config === null || config === void 0 ? void 0 : config.color) === null || _58 === void 0 ? void 0 : _58.informative) === null || _59 === void 0 ? void 0 : _59.background) || "hsl(214, 95%, 93%)"};
633
+
634
+ --sqm-input-background: ${((_61 = (_60 = config === null || config === void 0 ? void 0 : config.formFields) === null || _60 === void 0 ? void 0 : _60.formFieldColor) === null || _61 === void 0 ? void 0 : _61.background) || "hsla(0, 0%, 100%, 1)"};
635
+ --sqm-input-border-color: ${((_63 = (_62 = config === null || config === void 0 ? void 0 : config.formFields) === null || _62 === void 0 ? void 0 : _62.formFieldColor) === null || _63 === void 0 ? void 0 : _63.border) || "hsl(240, 6%, 90%)"};
636
+ --sqm-input-border-radius: ${((_64 = config === null || config === void 0 ? void 0 : config.formFields) === null || _64 === void 0 ? void 0 : _64.borderRadius) ? ((_65 = config === null || config === void 0 ? void 0 : config.formFields) === null || _65 === void 0 ? void 0 : _65.borderRadius) + "px"
636
637
  : "4px"};
637
- --sqm-input-color: ${((_63 = (_62 = config === null || config === void 0 ? void 0 : config.formFields) === null || _62 === void 0 ? void 0 : _62.formFieldColor) === null || _63 === void 0 ? void 0 : _63.inputText) || "hsl(0, 0%, 7%)"};
638
+ --sqm-input-color: ${((_67 = (_66 = config === null || config === void 0 ? void 0 : config.formFields) === null || _66 === void 0 ? void 0 : _66.formFieldColor) === null || _67 === void 0 ? void 0 : _67.inputText) || "hsl(0, 0%, 7%)"};
638
639
  --sqm-input-label-color: var(--sqm-text);
639
- --sqm-input-border-color-focus: ${((_64 = config === null || config === void 0 ? void 0 : config.formFields) === null || _64 === void 0 ? void 0 : _64.selectedStateColor) || "hsl(0, 0%, 7%)"};
640
- --sqm-input-border-color-hover: ${((_65 = config === null || config === void 0 ? void 0 : config.formFields) === null || _65 === void 0 ? void 0 : _65.hoverStateColor) || "hsl(0, 0%, 91%)"};
640
+ --sqm-input-border-color-focus: ${((_68 = config === null || config === void 0 ? void 0 : config.formFields) === null || _68 === void 0 ? void 0 : _68.selectedStateColor) || "hsl(0, 0%, 7%)"};
641
+ --sqm-input-border-color-hover: ${((_69 = config === null || config === void 0 ? void 0 : config.formFields) === null || _69 === void 0 ? void 0 : _69.hoverStateColor) || "hsl(0, 0%, 91%)"};
641
642
 
642
643
  --sqm-input-label-font-size: inherit;
643
644
  --sqm-input-disabled-color: var(--sqm-text-subdued);
644
- --sqm-input-disabled-background: ${((_66 = config === null || config === void 0 ? void 0 : config.formFields) === null || _66 === void 0 ? void 0 : _66.disabledBackgroundColor) || "#F4F4F5"};
645
+ --sqm-input-disabled-background: ${((_70 = config === null || config === void 0 ? void 0 : config.formFields) === null || _70 === void 0 ? void 0 : _70.disabledBackgroundColor) || "#F4F4F5"};
645
646
 
646
647
  sl-select::part(display-input),
647
648
  sl-select::part(base),
@@ -960,6 +961,6 @@ sl-icon::part(base):hover {
960
961
  }
961
962
 
962
963
  `,
963
- font: (_67 = config === null || config === void 0 ? void 0 : config.main) === null || _67 === void 0 ? void 0 : _67.brandFont,
964
+ font: (_71 = config === null || config === void 0 ? void 0 : config.main) === null || _71 === void 0 ? void 0 : _71.brandFont,
964
965
  });
965
966
  };
@@ -586,7 +586,12 @@ html {
586
586
  --widget-background-color: var(--sl-color-white);
587
587
  --sqm-portal-main-width: 900px;
588
588
  --sqm-max-width: 100%;
589
- --sqm-skeleton-background: hsl(240, 4%, 91%);
589
+ --sqm-skeleton-background: ${
590
+ config?.color?.loadingSkeleton?.background || "hsl(240 5.9% 90%)"
591
+ };
592
+ --sqm-skeleton-animation-background: ${
593
+ config?.color?.loadingSkeleton?.animationBackground || "hsl(240 4.8% 95.9%)"
594
+ };
590
595
  --sqm-text: ${
591
596
  config?.color?.textColorShades?.mainText || "hsl(240, 4%, 16%)"
592
597
  };
@@ -9,15 +9,15 @@ export function LoadingSlot() {
9
9
  export function LoadingRow() {
10
10
  return (h("sqm-table-row", null,
11
11
  h("sqm-table-cell", { colspan: 5 },
12
- h("sl-skeleton", null))));
12
+ h("sqm-skeleton", null))));
13
13
  }
14
14
  export function LoadingSkeleton() {
15
15
  return (h("div", { style: { width: "100%" } },
16
- h("sl-skeleton", { style: { marginBottom: "28px" } }),
17
- h("sl-skeleton", { style: { marginBottom: "28px" } }),
18
- h("sl-skeleton", { style: { marginBottom: "28px" } }),
19
- h("sl-skeleton", { style: { marginBottom: "28px" } }),
20
- h("sl-skeleton", null)));
16
+ h("sqm-skeleton", { style: { marginBottom: "28px" } }),
17
+ h("sqm-skeleton", { style: { marginBottom: "28px" } }),
18
+ h("sqm-skeleton", { style: { marginBottom: "28px" } }),
19
+ h("sqm-skeleton", { style: { marginBottom: "28px" } }),
20
+ h("sqm-skeleton", null)));
21
21
  }
22
22
  export function EmptySlot({ label }) {
23
23
  return (h("slot", { name: "empty" },
@@ -1,7 +1,7 @@
1
1
  import { h } from './index-b3a06de8.js';
2
- import { i as intl } from './global-58a69018.js';
2
+ import { i as intl } from './global-536c422d.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
- import { f as formatErrorMessage } from './utils-2695a43e.js';
4
+ import { f as formatErrorMessage } from './utils-fafc712f.js';
5
5
 
6
6
  const style = {
7
7
  Description: {
@@ -1,5 +1,5 @@
1
1
  import { h, c as Host, d as getAssetPath, F as Fragment, g as getElement } from './index-b3a06de8.js';
2
- import { i as intl } from './global-58a69018.js';
2
+ import { i as intl } from './global-536c422d.js';
3
3
  import { b as browser, u as useMemo, k as useState } from './dom-context-hooks.module-63370afd.js';
4
4
  import { H, L, J, d as dist, w as wn, j as jn, B, F as Fn, $ as $e, g as getEnvironmentSDK } from './index.module-c9811a48.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -2095,11 +2095,11 @@ function TaskCardView(props) {
2095
2095
  ? "main complete"
2096
2096
  : "main" },
2097
2097
  h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
2098
- h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
2098
+ h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sqm-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
2099
2099
  showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
2100
2100
  h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
2101
2101
  h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
2102
- states.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (h("div", { class: "title", part: "sqm-title", style: {
2102
+ states.loading ? (h("sqm-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (h("div", { class: "title", part: "sqm-title", style: {
2103
2103
  marginBottom: !content.description
2104
2104
  ? content.steps
2105
2105
  ? "var(--sl-spacing-x-large)"
@@ -2109,9 +2109,9 @@ function TaskCardView(props) {
2109
2109
  : "",
2110
2110
  opacity: taskComplete || taskUnavailable ? "0.45" : "1",
2111
2111
  } }, content.cardTitle)),
2112
- states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
2113
- content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.75" : "1", complete: taskComplete, expired: taskUnavailable })))),
2114
- h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
2112
+ states.loading ? (h("sqm-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
2113
+ content.showProgressBar && states.loading ? (h("sqm-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.75" : "1", complete: taskComplete, expired: taskUnavailable })))),
2114
+ h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sqm-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
2115
2115
  h("span", { class: "text" },
2116
2116
  content.repeatable && (h("div", null,
2117
2117
  h("span", { class: repetitions > 0
@@ -2384,7 +2384,7 @@ const EditProfileView = (props) => {
2384
2384
  } }, text.editprofileheader),
2385
2385
  h("form", { class: "FormWrapper", onSubmit: callbacks.onSubmit },
2386
2386
  h("div", { class: "FormSection" },
2387
- states.formState.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
2387
+ states.formState.error && (h("sqm-form-message", { loading: states.loading, type: "error", exportparts: "erroralert-icon" },
2388
2388
  h("div", { part: "erroralert-text" }, states.formState.error))),
2389
2389
  h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: states.formState.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, (errors.firstName && errors.firstName.status !== "valid"
2390
2390
  ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
@@ -2497,10 +2497,10 @@ function LeaderboardView(props) {
2497
2497
  h("style", { type: "text/css" },
2498
2498
  styleString,
2499
2499
  vanillaStyle),
2500
- h("table", null, [...Array(10)].map(() => {
2500
+ h("table", null, [...Array(5)].map(() => {
2501
2501
  return (h("tr", null,
2502
2502
  h("td", null,
2503
- h("sl-skeleton", null))));
2503
+ h("sqm-skeleton", null))));
2504
2504
  }))));
2505
2505
  }
2506
2506
  if (!states.hasLeaders)
@@ -2849,14 +2849,14 @@ function ChangeMarktingView(props) {
2849
2849
  }
2850
2850
 
2851
2851
  const vanillaStyle$5 = `
2852
- :host{
2852
+ :host {
2853
2853
  margin: 0 auto;
2854
2854
  width: 100%;
2855
2855
  }
2856
- a{
2856
+ a {
2857
2857
  cursor:pointer;
2858
2858
  color: var(--sqm-text-subdued);
2859
- text-decoration: none ;
2859
+ text-decoration: none;
2860
2860
  }
2861
2861
  `;
2862
2862
  function PortalFooterView(props) {
@@ -3692,19 +3692,19 @@ function RewardExchangeView(props) {
3692
3692
  h("sl-card", { class: sheet$8.classes.Card },
3693
3693
  h("div", { class: sheet$8.classes.CardLayout },
3694
3694
  h("div", null,
3695
- h("sl-skeleton", { style: {
3696
- width: "100px",
3697
- height: "100px",
3695
+ h("sqm-skeleton", { style: {
3698
3696
  margin: "9px",
3699
- "--border-radius": "var(--sqm-border-radius-normal)",
3700
- } })),
3697
+ }, width: "100px", height: "100px" })),
3701
3698
  h("div", { style: {
3702
3699
  margin: "var(--sl-spacing-small) var(--sl-spacing-small) 0 0",
3703
3700
  width: "100%",
3701
+ display: "flex",
3702
+ flexDirection: "column",
3703
+ gap: "var(--sl-spacing-small)",
3704
3704
  } },
3705
- h("sl-skeleton", { style: { marginBottom: "var(--sl-spacing-small)" } }),
3706
- h("sl-skeleton", { style: { marginBottom: "var(--sl-spacing-small)" } }),
3707
- h("sl-skeleton", { style: { width: "45%" } }))))));
3705
+ h("sqm-skeleton", null),
3706
+ h("sqm-skeleton", null),
3707
+ h("sqm-skeleton", { width: "45%" }))))));
3708
3708
  })));
3709
3709
  }
3710
3710
  function errorMessage() {
@@ -4376,7 +4376,7 @@ function LeadFormView(props) {
4376
4376
  vanillaStyle$7,
4377
4377
  styleString$9),
4378
4378
  h(TextSpanView, { type: "h3" }, content.pageLabel),
4379
- h("sqm-form-message", { exportparts: "success-icon" },
4379
+ h("sqm-form-message", { loading: states.loading, exportparts: "success-icon" },
4380
4380
  h("b", null, content.submitSuccessHeader),
4381
4381
  h("br", null),
4382
4382
  h("div", { part: "successalert-text" }, content.submitSuccessDescription)),
@@ -4387,16 +4387,14 @@ function LeadFormView(props) {
4387
4387
  styleString$9),
4388
4388
  h(TextSpanView, { type: "h3" }, content.pageLabel),
4389
4389
  h("sl-form", { class: sheet$9.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
4390
- states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet$9.classes.ErrorAlertContainer, open: true },
4391
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
4392
- h("b", null, content.submitErrorHeader),
4393
- h("br", null),
4394
- intl.formatMessage({
4390
+ states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "error" },
4391
+ h("p", { part: "alert-title" }, content.submitErrorHeader),
4392
+ h("p", { part: "alert-text" }, intl.formatMessage({
4395
4393
  id: "submitErrorDescription",
4396
4394
  defaultMessage: content.submitErrorDescription,
4397
4395
  }, {
4398
4396
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLinkText)),
4399
- }))),
4397
+ })))),
4400
4398
  h("div", { class: sheet$9.classes.NameFieldWrapper },
4401
4399
  h("sqm-lead-input-field", { class: sheet$9.classes.NameInput, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
4402
4400
  h("sqm-lead-input-field", { class: sheet$9.classes.NameInput, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
@@ -1000,7 +1000,7 @@ const GET_TAX_SETTING = dist.gql `
1000
1000
  }
1001
1001
  `;
1002
1002
  function getStatus(data) {
1003
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
1003
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
1004
1004
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
1005
1005
  const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
1006
1006
  reward.partnerFundsTransfer.status === "TRANSFERRED");
@@ -1017,8 +1017,23 @@ function getStatus(data) {
1017
1017
  return "VERIFICATION:REVIEW";
1018
1018
  if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
1019
1019
  return "VERIFICATION:FAILED";
1020
+ // only show banner for NEW_PAYEE_REVIEW if a PFT was created
1020
1021
  if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
1021
- return "ACCOUNT_REVIEW";
1022
+ return "NEW_PAYEE_REVIEW";
1023
+ if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("NEW_PAYEE_REVIEW"))
1024
+ return "DONE";
1025
+ if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("PAYMENT_HOLD_ON_CHANGE"))
1026
+ return "PAYMENT_HOLD_ON_CHANGE";
1027
+ if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_INVALID"))
1028
+ return "BENEFICIARY_NAME_INVALID";
1029
+ if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BENEFICIARY_NAME_MISMATCH"))
1030
+ return "BENEFICIARY_NAME_MISMATCH";
1031
+ if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("BANK_TAX_NAME_MISMATCH"))
1032
+ return "BANK_TAX_NAME_MISMATCH";
1033
+ if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("WITHDRAWAL_SETTINGS_INVALID"))
1034
+ return "WITHDRAWAL_SETTINGS_INVALID";
1035
+ if ((_x = account.holdReasons) === null || _x === void 0 ? void 0 : _x.includes("PAYMENT_RETURNED"))
1036
+ return "PAYMENT_RETURNED";
1022
1037
  if (account.hold)
1023
1038
  return "HOLD";
1024
1039
  return "DONE";
@@ -1057,6 +1072,16 @@ function usePayoutStatus(props) {
1057
1072
  url += "#3";
1058
1073
  window.history.pushState(null, "", url);
1059
1074
  };
1075
+ const onPaymentInfoClick = () => {
1076
+ let url = props.cashPayoutsPageUrl;
1077
+ url += "#4";
1078
+ window.history.pushState(null, "", url);
1079
+ };
1080
+ const onNewFormClick = () => {
1081
+ let url = props.cashPayoutsPageUrl;
1082
+ url += "#3";
1083
+ window.history.pushState(null, "", url);
1084
+ };
1060
1085
  return {
1061
1086
  states: {
1062
1087
  loading,
@@ -1070,6 +1095,8 @@ function usePayoutStatus(props) {
1070
1095
  callbacks: {
1071
1096
  onTermsClick,
1072
1097
  onClick: render,
1098
+ onPaymentInfoClick,
1099
+ onNewFormClick,
1073
1100
  },
1074
1101
  };
1075
1102
  }