@saasquatch/mint-components 1.15.0-40 → 1.15.0-41

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 (238) hide show
  1. package/dist/cjs/IndirectTaxDetailsView-d0290a12.js +646 -0
  2. package/dist/cjs/{ShadowViewAddon-fcd0c52f.js → ShadowViewAddon-9cb7a310.js} +1010 -1062
  3. package/dist/cjs/data-6d96b89c.js +137 -0
  4. package/dist/cjs/{email-registration-view-37b44222.js → email-registration-view-dca94dc9.js} +1 -1
  5. package/dist/cjs/{global-a38a094f.js → global-d62c5561.js} +13 -12
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/mint-components.cjs.js +2 -2
  8. package/dist/cjs/parseStates-d1effc19.js +16 -0
  9. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +211 -1888
  10. package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_42.cjs.entry.js} +290 -10
  11. package/dist/cjs/sqm-code-verification.cjs.entry.js +348 -0
  12. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  14. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-26c893d3.js → sqm-portal-email-verification-view-156accab.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  20. package/dist/cjs/{sqm-portal-profile-view-674a7543.js → sqm-portal-profile-view-f226725e.js} +1 -1
  21. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  22. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  25. package/dist/cjs/sqm-stencilbook.cjs.entry.js +11185 -9987
  26. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1221 -0
  27. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
  28. package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -6
  29. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-feeac99b.js} +8 -5
  30. package/dist/cjs/utils-ce18d1bc.js +105 -0
  31. package/dist/collection/collection-manifest.json +1 -0
  32. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +2 -2
  33. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +3 -3
  34. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +3 -3
  35. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +179 -0
  36. package/dist/collection/components/sqm-stencilbook/Themes.js +21 -17
  37. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +82 -98
  38. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +33 -3
  39. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  40. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
  41. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
  42. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
  43. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  44. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
  45. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
  46. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
  47. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  48. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
  49. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
  50. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  51. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  52. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  53. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  54. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
  55. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  56. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +62 -3
  57. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  58. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -4
  59. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +49 -11
  60. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  61. package/dist/collection/components/views/email-registration-view.js +1 -1
  62. package/dist/collection/global/styles.js +13 -12
  63. package/dist/collection/global/styles.ts +26 -12
  64. package/dist/collection/utils/parseStates.js +12 -0
  65. package/dist/esm/IndirectTaxDetailsView-3be86bcf.js +639 -0
  66. package/dist/esm/{ShadowViewAddon-5f9b6d07.js → ShadowViewAddon-d8cfd6c7.js} +1013 -1064
  67. package/dist/esm/data-a05c78ae.js +121 -0
  68. package/dist/esm/{email-registration-view-b1c858ee.js → email-registration-view-8782c01b.js} +1 -1
  69. package/dist/esm/{global-66746c30.js → global-632fb2fa.js} +13 -12
  70. package/dist/esm/loader.js +2 -2
  71. package/dist/esm/mint-components.js +2 -2
  72. package/dist/esm/parseStates-ed75e224.js +14 -0
  73. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +135 -1805
  74. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_42.entry.js} +294 -15
  75. package/dist/esm/sqm-code-verification.entry.js +344 -0
  76. package/dist/esm/sqm-email-verification.entry.js +1 -1
  77. package/dist/esm/sqm-empty_4.entry.js +1 -1
  78. package/dist/esm/sqm-instant-access-registration.entry.js +2 -2
  79. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  80. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  81. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  82. package/dist/esm/{sqm-portal-email-verification-view-00f03873.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
  83. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  84. package/dist/esm/{sqm-portal-profile-view-0d45de87.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
  85. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  86. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  87. package/dist/esm/sqm-referred-registration.entry.js +1 -1
  88. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  89. package/dist/esm/sqm-stencilbook.entry.js +12093 -10895
  90. package/dist/esm/sqm-tax-and-cash.entry.js +1217 -0
  91. package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
  92. package/dist/esm/sqm-widget-verification.entry.js +17 -6
  93. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +8 -5
  94. package/dist/esm/utils-1654e233.js +97 -0
  95. package/dist/esm-es5/IndirectTaxDetailsView-3be86bcf.js +1 -0
  96. package/dist/esm-es5/ShadowViewAddon-d8cfd6c7.js +1 -0
  97. package/dist/esm-es5/data-a05c78ae.js +1 -0
  98. package/dist/esm-es5/email-registration-view-8782c01b.js +1 -0
  99. package/dist/esm-es5/{global-66746c30.js → global-632fb2fa.js} +5 -5
  100. package/dist/esm-es5/loader.js +1 -1
  101. package/dist/esm-es5/mint-components.js +1 -1
  102. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  103. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  104. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -0
  105. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  106. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  107. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  108. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  109. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  110. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  111. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  112. package/dist/esm-es5/{sqm-portal-email-verification-view-00f03873.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
  113. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  114. package/dist/esm-es5/{sqm-portal-profile-view-0d45de87.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
  115. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  116. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  117. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  118. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  119. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  120. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  121. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  122. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  123. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +2 -2
  124. package/dist/esm-es5/utils-1654e233.js +1 -0
  125. package/dist/mint-components/global/styles.ts +26 -12
  126. package/dist/mint-components/mint-components.esm.js +1 -1
  127. package/dist/mint-components/mint-components.js +1 -1
  128. package/dist/mint-components/p-06ce54e2.entry.js +258 -0
  129. package/dist/mint-components/p-0984523b.js +1 -0
  130. package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
  131. package/dist/mint-components/{p-77b8a529.system.entry.js → p-0a8a6d45.system.entry.js} +1 -1
  132. package/dist/mint-components/p-115dfc03.system.js +1 -0
  133. package/dist/mint-components/{p-480e08e9.js → p-11dff275.js} +2 -2
  134. package/dist/mint-components/{p-770bba1b.system.entry.js → p-12e61414.system.entry.js} +1 -1
  135. package/dist/mint-components/p-13f3a647.js +1 -0
  136. package/dist/mint-components/p-155cf177.system.js +1 -0
  137. package/dist/mint-components/{p-dded7d43.entry.js → p-1878da9b.entry.js} +2 -2
  138. package/dist/mint-components/p-2cfe9826.system.entry.js +1 -0
  139. package/dist/mint-components/{p-210e8f49.entry.js → p-2df6ce8f.entry.js} +1 -1
  140. package/dist/mint-components/{p-cfa34cf2.system.js → p-33f640f6.system.js} +1 -1
  141. package/dist/mint-components/{p-241d68d4.system.entry.js → p-450a7705.system.entry.js} +1 -1
  142. package/dist/mint-components/p-4841c5e9.system.entry.js +1 -0
  143. package/dist/mint-components/p-4bb1c4b2.system.js +1 -0
  144. package/dist/mint-components/p-4cbd7eec.js +394 -0
  145. package/dist/mint-components/{p-9fe574ca.system.entry.js → p-51aa8c38.system.entry.js} +1 -1
  146. package/dist/mint-components/p-52d15f87.system.js +1 -0
  147. package/dist/mint-components/p-5510be1e.system.entry.js +1 -0
  148. package/dist/mint-components/{p-71f23364.entry.js → p-66d22d46.entry.js} +1 -1
  149. package/dist/mint-components/p-674b82ac.js +1 -0
  150. package/dist/mint-components/p-6ef506ba.entry.js +16 -0
  151. package/dist/mint-components/{p-c024fc32.system.entry.js → p-6fa624ff.system.entry.js} +1 -1
  152. package/dist/mint-components/{p-d932f43d.entry.js → p-704f162e.entry.js} +1 -1
  153. package/dist/mint-components/p-70fddbdd.entry.js +11 -0
  154. package/dist/mint-components/p-780b981b.entry.js +1 -0
  155. package/dist/mint-components/{p-4caaf25a.js → p-7adb141e.js} +1 -1
  156. package/dist/mint-components/p-7b731acd.entry.js +93 -0
  157. package/dist/mint-components/{p-884ac29e.system.entry.js → p-846aff6a.system.entry.js} +1 -1
  158. package/dist/mint-components/p-84a78d09.entry.js +1 -0
  159. package/dist/mint-components/{p-3f290d24.system.js → p-96e339f6.system.js} +11 -11
  160. package/dist/mint-components/p-9711efb7.entry.js +1 -0
  161. package/dist/mint-components/{p-cc7af682.system.js → p-9721a29a.system.js} +2 -2
  162. package/dist/mint-components/{p-b0d4938a.system.entry.js → p-9d41d676.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-d9335f16.js → p-a1e17fd2.js} +1 -1
  164. package/dist/mint-components/p-a27a15c5.system.entry.js +1 -0
  165. package/dist/mint-components/{p-0bdeab70.system.js → p-a3383f54.system.js} +1 -1
  166. package/dist/mint-components/{p-0eb3d919.system.entry.js → p-a91e7c05.system.entry.js} +1 -1
  167. package/dist/mint-components/p-b73a4df4.entry.js +33 -0
  168. package/dist/mint-components/p-be89074c.entry.js +1 -0
  169. package/dist/mint-components/p-c0b07067.system.js +1 -0
  170. package/dist/mint-components/p-c1b1f8ae.system.entry.js +1 -0
  171. package/dist/mint-components/p-c75a3b4a.js +103 -0
  172. package/dist/mint-components/p-c9745c8f.system.js +1 -0
  173. package/dist/mint-components/{p-1abe7884.system.entry.js → p-cf157c6e.system.entry.js} +1 -1
  174. package/dist/mint-components/{p-5366850e.entry.js → p-da71337b.entry.js} +1 -1
  175. package/dist/mint-components/{p-015da96d.entry.js → p-dbb83730.entry.js} +1 -1
  176. package/dist/mint-components/{p-4f22fda2.js → p-dc293b10.js} +1 -1
  177. package/dist/mint-components/{p-8e93e590.entry.js → p-df223bff.entry.js} +1 -1
  178. package/dist/mint-components/{p-e80f9e26.system.entry.js → p-e217afd9.system.entry.js} +1 -1
  179. package/dist/mint-components/{p-fe6fe9cf.entry.js → p-e5d9e709.entry.js} +2 -2
  180. package/dist/mint-components/p-eb998f7b.entry.js +9 -0
  181. package/dist/mint-components/p-f53f5304.system.entry.js +1 -0
  182. package/dist/mint-components/p-f8175201.system.js +1 -0
  183. package/dist/mint-components/p-fb13065a.js +1 -0
  184. package/dist/mint-components/p-fda43e22.system.entry.js +1 -0
  185. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +6 -0
  186. package/dist/types/components/sqm-stencilbook/Themes.d.ts +4 -5
  187. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +5 -0
  188. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  189. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
  190. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  191. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  192. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  193. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  194. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  195. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -4
  196. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  197. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  198. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +10 -0
  199. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  200. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +7 -0
  201. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  202. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  203. package/dist/types/components.d.ts +107 -7
  204. package/dist/types/global/styles.d.ts +6 -1
  205. package/dist/types/saasquatch.d.ts +61 -0
  206. package/dist/types/utils/parseStates.d.ts +1 -0
  207. package/docs/docs.docx +0 -0
  208. package/docs/raisins.json +1 -1
  209. package/grapesjs/grapesjs.js +1 -1
  210. package/package.json +2 -1
  211. package/dist/cjs/sqm-invoice-table-view-19ca10fa.js +0 -2038
  212. package/dist/esm/sqm-invoice-table-view-b7e91eef.js +0 -2022
  213. package/dist/esm-es5/ShadowViewAddon-5f9b6d07.js +0 -1
  214. package/dist/esm-es5/email-registration-view-b1c858ee.js +0 -1
  215. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  216. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  217. package/dist/esm-es5/sqm-invoice-table-view-b7e91eef.js +0 -1
  218. package/dist/mint-components/p-0480b155.system.entry.js +0 -1
  219. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  220. package/dist/mint-components/p-3e604cad.js +0 -1
  221. package/dist/mint-components/p-5cd684b2.entry.js +0 -9
  222. package/dist/mint-components/p-6427e963.entry.js +0 -1
  223. package/dist/mint-components/p-6798d563.system.js +0 -1
  224. package/dist/mint-components/p-693fc880.system.js +0 -1
  225. package/dist/mint-components/p-6c1d0367.entry.js +0 -33
  226. package/dist/mint-components/p-72ff8268.js +0 -1
  227. package/dist/mint-components/p-8530290b.entry.js +0 -258
  228. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  229. package/dist/mint-components/p-a1091368.system.js +0 -1
  230. package/dist/mint-components/p-a68932b0.system.entry.js +0 -1
  231. package/dist/mint-components/p-af96b482.entry.js +0 -205
  232. package/dist/mint-components/p-bf25f63a.js +0 -394
  233. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  234. package/dist/mint-components/p-d0064d54.system.entry.js +0 -1
  235. package/dist/mint-components/p-d5e9906e.system.js +0 -1
  236. package/dist/mint-components/p-f0fdbd82.entry.js +0 -1
  237. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  238. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -37,18 +37,26 @@ function useTemplateChildren({ parent, callback }) {
37
37
  const WidgetVerificationController = class {
38
38
  constructor(hostRef) {
39
39
  index.registerInstance(this, hostRef);
40
+ /**
41
+ * @componentState { "title": "Not Verified", "slot": "not-verified", "props": { "isAuth": false } }
42
+ * @componentState { "title": "Verified", "slot": "verified", "props": { "isAuth": true } }
43
+ */
44
+ this.stateController = "{}";
40
45
  stencilHooks_module.h$1(this);
41
46
  }
42
47
  disconnectedCallback() { }
43
48
  render() {
49
+ var _a;
44
50
  const [context, setContext] = index_module.In({
45
51
  namespace: keys.VERIFICATION_PARENT_NAMESPACE,
46
52
  initialValue: false,
47
53
  });
54
+ const props = JSON.parse(this.stateController);
55
+ const demoIsAuth = index_module.isDemo() && ((_a = props["sqm-widget-verification-controller"]) === null || _a === void 0 ? void 0 : _a.isAuth);
48
56
  const [container, setContainer] = stencilHooks_module.useState(undefined);
49
57
  const [slot, setSlot] = stencilHooks_module.useState(undefined);
50
58
  const updateTemplates = index_module.useCallback(() => {
51
- const isAuth = context;
59
+ const isAuth = demoIsAuth || context;
52
60
  const templates = slot.querySelectorAll(`template`);
53
61
  const template = Array.from(templates).find((t) => t.slot === (isAuth ? "verified" : "not-verified"));
54
62
  if (template) {
@@ -96,7 +104,7 @@ const WidgetVerificationController = class {
96
104
  target.style.height = "25px";
97
105
  });
98
106
  }
99
- }, [container, slot, context]);
107
+ }, [container, slot, context, demoIsAuth]);
100
108
  stencilHooks_module.useEffect(() => {
101
109
  if (!container || !slot) {
102
110
  debug("DOM not ready:");
@@ -105,7 +113,7 @@ const WidgetVerificationController = class {
105
113
  // Run on first render
106
114
  updateTemplates();
107
115
  return useTemplateChildren({ parent: slot, callback: updateTemplates });
108
- }, [slot, container, context]);
116
+ }, [slot, container, context, demoIsAuth]);
109
117
  return (index.h(index.Host, null, index.h("div", { ref: setSlot, style: { display: "contents" } }, index.h("slot", { name: "not-verified" }), index.h("slot", { name: "verified" })), index.h("div", { ref: setContainer }, index.h("slot", { name: "shown" }))));
110
118
  }
111
119
  };
@@ -5,7 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
7
  const index_module = require('./index.module-ee84433d.js');
8
+ const cjs = require('./cjs-1066ec21.js');
8
9
  const utils = require('./utils-6847bc06.js');
10
+ const parseStates = require('./parseStates-d1effc19.js');
9
11
  const extractProps = require('./extractProps-fd93ba62.js');
10
12
  const keys = require('./keys-cff24974.js');
11
13
 
@@ -163,6 +165,11 @@ const WidgetVerification = class {
163
165
  * @uiGroup Code Verification Step
164
166
  */
165
167
  this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
168
+ /**
169
+ * @componentState { "title": "Email Step", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"] }
170
+ * @componentState { "title": "Code Step", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"] }
171
+ */
172
+ this.stateController = "{}";
166
173
  stencilHooks_module.h$1(this);
167
174
  }
168
175
  disconnectedCallback() { }
@@ -171,20 +178,20 @@ const WidgetVerification = class {
171
178
  return extractProps.extractProps(props, prefix);
172
179
  }
173
180
  render() {
174
- const { showCode, onVerification, loading } = index_module.isDemo()
175
- ? useDemoWidgetVerificationInternal()
181
+ const props = index_module.isDemo()
182
+ ? useDemoWidgetVerificationInternal(this)
176
183
  : useWidgetVerification();
177
- if (loading)
184
+ if (props.loading)
178
185
  return index.h("sl-spinner", null);
179
186
  const generalText = this.getStepTextProps("general_");
180
187
  return (index.h("div", null, index.h("h3", { style: { fontSize: "24px", margin: "0" } }, generalText.verifyEmailHeader), index.h("p", { style: {
181
188
  color: "var(--sl-color-neutral-500)",
182
189
  fontSize: "var(--sl-font-size-medium)",
183
190
  margin: "0",
184
- } }, generalText.verifyEmailDescription), showCode ? (index.h("sqm-code-verification", Object.assign({ onVerification: onVerification }, this.getStepTextProps("codeStep_")))) : (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"))))));
191
+ } }, generalText.verifyEmailDescription), props.showCode ? (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps.extractProps(props, "sqm-code-verification_")))) : (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps.extractProps(props, "sqm-email-verification_"))))));
185
192
  }
186
193
  };
187
- function useDemoWidgetVerificationInternal() {
194
+ function useDemoWidgetVerificationInternal(props) {
188
195
  const [showCode, setShowCode] = index_module.In({
189
196
  namespace: keys.SHOW_CODE_NAMESPACE,
190
197
  initialValue: false,
@@ -194,10 +201,14 @@ function useDemoWidgetVerificationInternal() {
194
201
  initialValue: undefined,
195
202
  });
196
203
  const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
204
+ const states = parseStates.parseStates(props.stateController);
205
+ const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
206
+ ? { ...prev, ...states[key] }
207
+ : { ...prev, [`${key}_stateController`]: states[key] }, {});
197
208
  const onVerification = () => {
198
209
  setContext(true);
199
210
  };
200
- return { showCode, onVerification, loading: false };
211
+ return cjs.cjs({ showCode, onVerification, loading: false }, formatted || {}, { arrayMerge: (_, a) => a });
201
212
  }
202
213
 
203
214
  exports.sqm_widget_verification = WidgetVerification;
@@ -986,17 +986,20 @@ const GET_USER_STATUS = index_module.dist.gql `
986
986
  }
987
987
  `;
988
988
  function getStatus(data) {
989
- var _a, _b, _c, _d, _e, _f, _g, _h;
989
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
990
990
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
991
991
  if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
992
992
  return "INFORMATION_REQUIRED";
993
- if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("IDV_CHECK_REQUIRED"))
993
+ if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
994
+ return "DONE";
995
+ }
996
+ if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
994
997
  return "VERIFICATION:REQUIRED";
995
- if ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("IDV_CHECK_REQUIRED_INTERNAL"))
998
+ if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
996
999
  return "VERIFICATION:INTERNAL";
997
- if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REVIEW_INTERNAL"))
1000
+ if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REVIEW_INTERNAL"))
998
1001
  return "VERIFICATION:REVIEW";
999
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_FAILED_INTERNAL"))
1002
+ if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_FAILED_INTERNAL"))
1000
1003
  return "VERIFICATION:FAILED";
1001
1004
  if (account.hold)
1002
1005
  return "HOLD";
@@ -0,0 +1,105 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-a29c60ef.js');
4
+ const global = require('./global-d62c5561.js');
5
+ const JSS = require('./JSS-8503a151.js');
6
+
7
+ const style = {
8
+ Container: {
9
+ display: "flex",
10
+ flexDirection: "column",
11
+ gap: "24px",
12
+ },
13
+ HeaderContainer: {
14
+ display: "flex",
15
+ flexDirection: "column",
16
+ gap: "10px",
17
+ },
18
+ TitleSkeleton: {
19
+ width: "45%",
20
+ height: "40px !important",
21
+ },
22
+ StepSkeleton: {
23
+ width: "15%",
24
+ },
25
+ HeaderSkeleton: {
26
+ width: "25%",
27
+ height: "30px !important",
28
+ },
29
+ InputSkeleton: {
30
+ width: "75%",
31
+ },
32
+ ButtonSkeleton: {
33
+ width: "80px",
34
+ height: "30px !important",
35
+ },
36
+ };
37
+ const sheet = JSS.createStyleSheet(style);
38
+ const styleString = sheet.toString();
39
+ const LoadingView = () => {
40
+ return (index.h("div", { class: sheet.classes.Container },
41
+ index.h("style", { type: "text/css" }, styleString),
42
+ index.h("sl-skeleton", { class: sheet.classes.TitleSkeleton }),
43
+ index.h("div", { class: sheet.classes.HeaderContainer },
44
+ index.h("sl-skeleton", { class: sheet.classes.StepSkeleton }),
45
+ index.h("sl-skeleton", { class: sheet.classes.HeaderSkeleton })),
46
+ index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
47
+ index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
48
+ index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
49
+ index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
50
+ index.h("sl-skeleton", { class: sheet.classes.InputSkeleton }),
51
+ index.h("sl-skeleton", { class: sheet.classes.StepSkeleton }),
52
+ index.h("sl-skeleton", { class: sheet.classes.ButtonSkeleton })));
53
+ };
54
+
55
+ function validTaxDocument(requiredType) {
56
+ const validTypes = ["W9", "W8BENE", "W8BEN"];
57
+ if (validTypes.includes(requiredType))
58
+ return true;
59
+ return false;
60
+ }
61
+ const objectIsFull = (obj) => {
62
+ return !Object.keys(obj).find((k) => obj[k] == undefined);
63
+ };
64
+ const taxTypeToName = (taxType) => {
65
+ switch (taxType) {
66
+ case "W9":
67
+ return "W-9";
68
+ case "W8BEN":
69
+ case "W8BENE":
70
+ return "W-8";
71
+ default:
72
+ return "";
73
+ }
74
+ };
75
+ function validateBillingField(regex, value) {
76
+ const trimmed = value.trim();
77
+ const idx = trimmed.search(regex);
78
+ return idx > -1;
79
+ }
80
+ const formatErrorMessage = (fieldName, errorMessage) => {
81
+ return global.intl.formatMessage({
82
+ id: fieldName,
83
+ defaultMessage: errorMessage,
84
+ }, {
85
+ fieldName,
86
+ });
87
+ };
88
+ function getCountryObj({ countryCode, locale, }) {
89
+ // @ts-ignore DisplayNames not in Intl type
90
+ const displayName = new Intl.DisplayNames([locale], {
91
+ type: "region",
92
+ }).of(countryCode);
93
+ return {
94
+ countryCode,
95
+ displayName,
96
+ };
97
+ }
98
+
99
+ exports.LoadingView = LoadingView;
100
+ exports.formatErrorMessage = formatErrorMessage;
101
+ exports.getCountryObj = getCountryObj;
102
+ exports.objectIsFull = objectIsFull;
103
+ exports.taxTypeToName = taxTypeToName;
104
+ exports.validTaxDocument = validTaxDocument;
105
+ exports.validateBillingField = validateBillingField;
@@ -105,6 +105,7 @@
105
105
  "./components/sqm-share-code/sqm-share-code.js",
106
106
  "./components/sqm-share-link/sqm-share-link.js",
107
107
  "./components/sqm-stat-container/sqm-stat-container.js",
108
+ "./components/sqm-stencilbook/BrandSelector.js",
108
109
  "./components/sqm-stencilbook/sqm-stencilbook.js",
109
110
  "./components/sqm-tab/sqm-tab.js",
110
111
  "./components/sqm-table-cell/sqm-table-cell.js",
@@ -100,7 +100,7 @@ export class InstantAccessRegistration {
100
100
  * @uiGroup Card style
101
101
  * @uiType string
102
102
  */
103
- this.backgroundColor = "#ffffff";
103
+ this.backgroundColor = "var(--sqm-portal-background)";
104
104
  /**
105
105
  * @undocumented
106
106
  * @uiType boolean
@@ -494,7 +494,7 @@ export class InstantAccessRegistration {
494
494
  },
495
495
  "attribute": "background-color",
496
496
  "reflect": false,
497
- "defaultValue": "\"#ffffff\""
497
+ "defaultValue": "\"var(--sqm-portal-background)\""
498
498
  },
499
499
  "includeCookies": {
500
500
  "type": "boolean",
@@ -10,9 +10,9 @@ export function ProgramExplainerStepView(props) {
10
10
  lineHeight: "var(--sl-line-height-dense)",
11
11
  borderRadius: props.borderRadius
12
12
  ? `${props.borderRadius}px`
13
- : "var(--sl-border-radius-large)",
13
+ : "var(--sqm-border-radius-normal)",
14
14
  color: props.textColor || "var(--sqm-text)",
15
- background: props.backgroundColor || "var(--sl-color-primary-50)",
15
+ background: props.backgroundColor || "var(--sqm-accent-color-background)",
16
16
  "@media (max-width: 499px)": {
17
17
  flexDirection: "row",
18
18
  width: "auto",
@@ -48,7 +48,7 @@ export function ProgramExplainerStepView(props) {
48
48
  objectFit: "cover",
49
49
  userSelect: "none",
50
50
  background: props.iconBackgroundColor || "var(--sl-color-white)",
51
- color: props.iconColor || "var(--sl-color-primary-500)",
51
+ color: props.iconColor || "var(--sqm-accent-color-icon)",
52
52
  fontSize: "26px",
53
53
  textAlign: "center",
54
54
  lineHeight: "72px",
@@ -8,9 +8,9 @@ const vanillaStyle = `
8
8
  export function ReferralCardView(props) {
9
9
  const style = {
10
10
  Container: {
11
- borderRadius: props.borderRadius || "var(--sl-border-radius-large)",
11
+ borderRadius: props.borderRadius || "var(--sqm-border-radius-normal)",
12
12
  color: props.textColor || "var(--sqm-text)",
13
- background: props.backgroundColor || "var(--sl-color-neutral-0)",
13
+ background: props.backgroundColor || "var(--sqm-portal-background)",
14
14
  display: "flex",
15
15
  flexDirection: "column",
16
16
  rowGap: "var(--sl-spacing-large)",
@@ -36,7 +36,7 @@ export function ReferralCardView(props) {
36
36
  };
37
37
  const sheet = createStyleSheet(style);
38
38
  const styleString = sheet.toString();
39
- const borderColor = props.borderColor || "var(--sl-color-neutral-300)";
39
+ const borderColor = props.borderColor || "var(--sqm-border-color)";
40
40
  return (h("div", { part: "sqm-base", class: sheet.classes.Container, style: {
41
41
  border: `${props.hideBorder ? "none" : "1px solid " + borderColor}`,
42
42
  "padding-top": `var(--sl-spacing-${props.paddingTop})`,
@@ -0,0 +1,179 @@
1
+ import { useState, withHooks } from "@saasquatch/stencil-hooks";
2
+ import { Component, h, Host } from "@stencil/core";
3
+ import * as Themes from "./Themes";
4
+ export class SqmBrandSelector {
5
+ // State to keep track of the currently selected brand
6
+ // Array of brand objects, each containing a name and an image URL.
7
+ // Using placeholder images for now. In a real application, you would
8
+ // replace these with actual logo URLs or local assets.
9
+ constructor() {
10
+ this.brands = [
11
+ {
12
+ name: "Netflix",
13
+ logoUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803365/netflix_ftjbrr.png",
14
+ },
15
+ {
16
+ name: "Amazon",
17
+ logoUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803366/amazon_mc22fr.png",
18
+ },
19
+ {
20
+ name: "Spotify",
21
+ logoUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803510/spotify_j5qi1r.png",
22
+ },
23
+ {
24
+ name: "Google",
25
+ logoUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803168/pngimg.com_-_google_PNG19644_jvypwl.png",
26
+ },
27
+ ];
28
+ withHooks(this); // Initialize hooks for this component instance
29
+ }
30
+ disconnectedCallback() { }
31
+ // Handler function for when a brand logo is clicked
32
+ // private handleBrandClick = (brandName: string) => {
33
+ // };
34
+ render() {
35
+ const [selectedBrand, setSelectedBrand] = useState("Default");
36
+ const themes = Object.keys(Themes);
37
+ const theme = Themes[selectedBrand];
38
+ const handleBrandClick = (brandName) => {
39
+ setSelectedBrand(brandName);
40
+ };
41
+ return (h(Host, null,
42
+ h("style", null, `
43
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
44
+
45
+ :host {
46
+ display: block; /* Ensure the custom element itself is a block-level element */
47
+ font-family: 'Inter', sans-serif;
48
+ }
49
+
50
+ .card-container {
51
+ background-color: #fff !important;
52
+ border-radius: 18px;
53
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
54
+ width: 100%;
55
+ max-width: 500px;
56
+ overflow: hidden;
57
+ padding: 20px 10px;
58
+ position: absolute;
59
+ top: 0;
60
+ right: 0;
61
+ z-index: 999999;
62
+ }
63
+
64
+ .card-heading {
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ padding-bottom: 10px;
69
+ color: black;
70
+ margin: 0;
71
+ }
72
+
73
+ .segmented-control-container {
74
+ display: flex;
75
+ background-color: #e5e7eb !important;
76
+ border-radius: 9999px;
77
+ padding: 0.25rem;
78
+ margin-left: auto;
79
+ margin-right: auto;
80
+ max-width: 28rem;
81
+ box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
82
+ }
83
+
84
+ .brand-segment {
85
+ display: flex;
86
+ flex-direction: column;
87
+ align-items: center;
88
+ justify-content: center;
89
+ flex: 1;
90
+ padding 4px 8px
91
+ cursor: pointer;
92
+ transition: all 300ms ease-in-out;
93
+ border-radius: 9999px;
94
+ color: #4b5563;
95
+ cursor: pointer;
96
+ }
97
+
98
+ .brand-segment:hover {
99
+ background-color: #f3f4f6 !important;
100
+ }
101
+
102
+ .brand-segment.active {
103
+ background-color: #fff !important;
104
+ color: #1f2937;
105
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
106
+ }
107
+
108
+ .brand-logo {
109
+ height: 40px;
110
+ width: 40px;
111
+ object-fit: contain;
112
+ }
113
+
114
+ .brand-name {
115
+ font-size: 0.75rem;
116
+ line-height: 1rem;
117
+ font-weight: 600;
118
+ color: #4b5563;
119
+ }
120
+
121
+ .brand-segment.active .brand-name {
122
+ color: #1f2937;
123
+ }
124
+
125
+ .content-area {
126
+ padding: 2rem;
127
+ }
128
+
129
+ .selected-text {
130
+ color: #4b5563;
131
+ text-align: center;
132
+ font-size: 1.125rem;
133
+ line-height: 1.75rem;
134
+ }
135
+
136
+ .selected-brand-name {
137
+ font-weight: 700; /* font-bold */
138
+ color: #6d28d9; /* text-purple-700 */
139
+ }
140
+
141
+ .dynamic-content-box {
142
+ margin-top: 1.5rem; /* mt-6 */
143
+ padding: 1rem; /* p-4 */
144
+ background-color: #f9fafb; /* bg-gray-50 */
145
+ border-radius: 0.5rem; /* rounded-lg */
146
+ color: #374151; /* text-gray-700 */
147
+ font-size: 0.875rem; /* text-sm */
148
+ line-height: 1.25rem; /* text-sm */
149
+ font-style: italic;
150
+ }
151
+
152
+ /* Responsive adjustments for smaller screens if needed */
153
+ @media (max-width: 640px) {
154
+ .segmented-control-container {
155
+ max-width: 100%; /* Allows it to take full width on small screens */
156
+ padding: 0.15rem; /* Slightly less padding */
157
+ }
158
+ .brand-segment {
159
+ padding-left: 0.5rem;
160
+ padding-right: 0.5rem;
161
+ }
162
+ .brand-logo {
163
+ height: 1.8rem; /* Slightly smaller on mobile */
164
+ }
165
+ }
166
+ `),
167
+ h("style", null, theme),
168
+ h("div", { class: "card-container" },
169
+ h("h2", { class: "card-heading" }, "Select Branding"),
170
+ h("div", { class: "segmented-control-container" }, this.brands.map((brand) => (
171
+ // Individual brand segment/pill
172
+ h("div", { key: brand.name, class: `brand-segment ${selectedBrand === brand.name ? "active" : ""}`, onClick: () => handleBrandClick(brand.name) },
173
+ h("img", { src: brand.logoUrl, alt: `${brand.name} Logo`, class: "brand-logo", onError: (e) => {
174
+ e.target.src =
175
+ "https://placehold.co/80x40/cccccc/000000?text=Logo";
176
+ } }))))))));
177
+ }
178
+ static get is() { return "sqm-brand-selector"; }
179
+ }
@@ -9,36 +9,40 @@
9
9
  * - Shoelace color generator: https://codepen.io/claviska/full/QWveRgL
10
10
  *
11
11
  */
12
- import { autoColorScaleCss } from "./AutoColor";
13
12
  //
14
13
  export const Default = `
15
14
  // No CSS
16
15
  `;
17
- export const Orangey = `
18
- :root{
19
- ${autoColorScaleCss("orange")}
20
- }
21
- `;
22
16
  export const Netflix = `
23
17
  :root{
24
- ${autoColorScaleCss("#e50914")}
25
- }
18
+ --sqm-portal-background: #101010 !important;
19
+ --sqm-text: white;
20
+
21
+ --sqm-accent-color-icon: #E50914;
22
+ }
26
23
  `;
27
- export const SaaSquatchCorporate = `
24
+ export const Amazon = `
28
25
  :root{
29
- ${autoColorScaleCss("#65bd60")}
30
- --sl-font-sans: Arial;
26
+ --sqm-portal-background: #ffffff !important;
27
+ --sqm-text: #2f2f2f;
28
+ --sqm-border-color: #d5d9d9;
29
+
30
+ --sqm-accent-color-icon: #FF9900;
31
31
  }
32
32
  `;
33
- export const NYTimes = `
33
+ export const Spotify = `
34
34
  :root{
35
- ${autoColorScaleCss("black")}
36
- --sl-font-sans: Georgia, 'Times New Roman', serif;
35
+ --sqm-portal-background: #121212 !important;
36
+ --sqm-text: white;
37
37
  }
38
38
  `;
39
- export const Klip = `
39
+ export const Google = `
40
40
  :root{
41
- ${autoColorScaleCss("#4225C4")};
42
- }
41
+ --sqm-portal-background: #ffffff !important;
42
+ --sqm-text: #212124;
43
+ --sqm-border-color: #E0E0E0;
43
44
 
45
+ --sqm-accent-color-icon: #4285F4;
46
+
47
+ }
44
48
  `;