@saasquatch/mint-components 1.12.0-9 → 1.12.1-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/cjs/{ShadowViewAddon-040cffad.js → ShadowViewAddon-88821c64.js} +3 -6
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +79 -202
  5. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +160 -281
  6. package/dist/cjs/{sqm-invoice-table-view-c58966f8.js → sqm-invoice-table-view-a9133a11.js} +0 -98
  7. package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
  8. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +12 -81
  9. package/dist/cjs/sqm-stencilbook.cjs.entry.js +323 -334
  10. package/dist/collection/collection-manifest.json +1 -6
  11. package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
  12. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
  13. package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
  14. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +160 -0
  15. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
  16. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
  17. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
  18. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +6 -0
  19. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
  20. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
  21. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -96
  22. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
  23. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
  24. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
  25. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -7
  26. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
  27. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
  28. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -22
  29. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -99
  30. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -8
  31. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
  32. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
  33. package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-65c8679e.js} +3 -6
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/mint-components.js +1 -1
  36. package/dist/esm/sqm-banking-info-form_16.entry.js +79 -202
  37. package/dist/esm/sqm-big-stat_39.entry.js +159 -280
  38. package/dist/esm/{sqm-invoice-table-view-d1cfdaf4.js → sqm-invoice-table-view-71915a5e.js} +0 -98
  39. package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
  40. package/dist/esm/sqm-portal-registration-form.entry.js +18 -87
  41. package/dist/esm/sqm-stencilbook.entry.js +323 -334
  42. package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
  43. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
  44. package/dist/esm-es5/loader.js +1 -1
  45. package/dist/esm-es5/mint-components.js +1 -1
  46. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  47. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  48. package/dist/esm-es5/sqm-invoice-table-view-71915a5e.js +1 -0
  49. package/dist/esm-es5/sqm-portal-registration-form-view-1d3066e1.js +1 -0
  50. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  51. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  52. package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
  53. package/dist/mint-components/mint-components.esm.js +1 -1
  54. package/dist/mint-components/p-1279f7a3.system.entry.js +1 -0
  55. package/dist/mint-components/p-15a64357.entry.js +13 -0
  56. package/dist/mint-components/p-17f56865.entry.js +9 -0
  57. package/dist/mint-components/p-2a414b2e.system.js +2 -2
  58. package/dist/mint-components/p-3cb18382.system.js +1 -0
  59. package/dist/mint-components/p-40b1de58.js +1 -0
  60. package/dist/mint-components/p-4112e198.system.js +1 -0
  61. package/dist/mint-components/p-5cd917db.js +1 -0
  62. package/dist/mint-components/p-6792c8d8.system.entry.js +1 -0
  63. package/dist/mint-components/p-a02afa72.system.js +1 -0
  64. package/dist/mint-components/p-acd77a6e.entry.js +223 -0
  65. package/dist/mint-components/p-b3e97f8a.system.entry.js +1 -0
  66. package/dist/mint-components/{p-9eae245f.js → p-b651706a.js} +3 -6
  67. package/dist/mint-components/p-b8233366.entry.js +174 -0
  68. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  69. package/dist/mint-components/p-cb38b9b0.system.entry.js +1 -0
  70. package/dist/mint-components/p-fd2c5407.js +2 -2
  71. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
  72. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
  73. package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
  74. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +34 -0
  75. package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
  76. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  77. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
  78. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -2
  79. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
  80. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
  81. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -6
  82. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
  83. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
  84. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -19
  85. package/dist/types/components.d.ts +108 -625
  86. package/docs/docs.docx +0 -0
  87. package/docs/raisins.json +1 -1
  88. package/grapesjs/grapesjs.js +1 -1
  89. package/package.json +2 -2
  90. package/dist/cjs/extractProps-fd93ba62.js +0 -21
  91. package/dist/cjs/keys-cff24974.js +0 -11
  92. package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
  93. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
  94. package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
  95. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
  96. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
  97. package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
  98. package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
  99. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
  100. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
  101. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
  102. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
  103. package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
  104. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
  105. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
  106. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
  107. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -153
  108. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
  109. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
  110. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
  111. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
  112. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
  113. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
  114. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
  115. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
  116. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -131
  117. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
  118. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
  119. package/dist/esm/extractProps-ae1afbb3.js +0 -19
  120. package/dist/esm/keys-db1897ae.js +0 -6
  121. package/dist/esm/sqm-code-verification.entry.js +0 -338
  122. package/dist/esm/sqm-email-verification.entry.js +0 -279
  123. package/dist/esm/sqm-scroll.entry.js +0 -105
  124. package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
  125. package/dist/esm/sqm-widget-verification.entry.js +0 -206
  126. package/dist/esm/usePayoutStatus-1a635054.js +0 -67
  127. package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
  128. package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
  129. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  130. package/dist/esm-es5/keys-db1897ae.js +0 -1
  131. package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
  132. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  133. package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +0 -1
  134. package/dist/esm-es5/sqm-scroll.entry.js +0 -1
  135. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
  136. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  137. package/dist/esm-es5/usePayoutStatus-1a635054.js +0 -1
  138. package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
  139. package/dist/mint-components/p-1712a9fd.entry.js +0 -11
  140. package/dist/mint-components/p-1e616d45.system.js +0 -1
  141. package/dist/mint-components/p-24092973.entry.js +0 -9
  142. package/dist/mint-components/p-26468242.js +0 -1
  143. package/dist/mint-components/p-331d060e.entry.js +0 -223
  144. package/dist/mint-components/p-3925bcd6.entry.js +0 -13
  145. package/dist/mint-components/p-39840341.js +0 -1
  146. package/dist/mint-components/p-4364001c.entry.js +0 -12
  147. package/dist/mint-components/p-4bd7a472.js +0 -1
  148. package/dist/mint-components/p-517224ef.js +0 -19
  149. package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
  150. package/dist/mint-components/p-64491210.system.entry.js +0 -1
  151. package/dist/mint-components/p-8300d8c8.system.js +0 -1
  152. package/dist/mint-components/p-8bddb468.system.entry.js +0 -1
  153. package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
  154. package/dist/mint-components/p-974070c4.system.entry.js +0 -1
  155. package/dist/mint-components/p-a85f57bb.entry.js +0 -1
  156. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  157. package/dist/mint-components/p-b2a99637.system.js +0 -1
  158. package/dist/mint-components/p-b62faaa5.system.entry.js +0 -1
  159. package/dist/mint-components/p-c05e7b9f.entry.js +0 -195
  160. package/dist/mint-components/p-c510fb88.entry.js +0 -1
  161. package/dist/mint-components/p-c7057066.system.entry.js +0 -1
  162. package/dist/mint-components/p-d7806f31.js +0 -48
  163. package/dist/mint-components/p-e01ac27c.system.js +0 -1
  164. package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
  165. package/dist/mint-components/p-e990dc21.system.js +0 -1
  166. package/dist/mint-components/p-ead27698.system.entry.js +0 -1
  167. package/dist/mint-components/p-f340214f.entry.js +0 -25
  168. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
  169. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
  170. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
  171. package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
  172. package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
  173. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
  174. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
  175. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
  176. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
  177. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
  178. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
  179. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
  180. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
  181. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
  182. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
  183. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
  184. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
  185. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
  186. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
  187. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -21
@@ -696,7 +696,6 @@ const stepTwoProps = {
696
696
  };
697
697
  const stepFourProps = {
698
698
  states: {
699
- showVerification: false,
700
699
  step: "4",
701
700
  hideSteps: false,
702
701
  disabled: false,
@@ -712,7 +711,6 @@ const stepFourProps = {
712
711
  },
713
712
  },
714
713
  callbacks: {
715
- onVerification: () => { },
716
714
  onSubmit: async () => console.log("Submit"),
717
715
  setPaymentMethodChecked: () => { },
718
716
  setPaymentScheduleChecked: () => { },
@@ -749,8 +747,6 @@ const docusignFormProps = {
749
747
  };
750
748
  const dashboardProps = {
751
749
  states: {
752
- showVerifyIdentity: false,
753
- payoutStatus: "DONE",
754
750
  canEditPayoutInfo: true,
755
751
  disabled: false,
756
752
  status: "ACTIVE",
@@ -762,7 +758,6 @@ const dashboardProps = {
762
758
  indirectTaxNumber: "123456",
763
759
  indirectTaxType: "VAT",
764
760
  showNewFormDialog: false,
765
- hasHold: false,
766
761
  },
767
762
  slots: {
768
763
  payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
@@ -1269,8 +1264,6 @@ const TaxAndCashDashboardActiveW8BENForm = () => {
1269
1264
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1270
1265
  ...dashboardProps,
1271
1266
  states: {
1272
- payoutStatus: "DONE",
1273
- showVerifyIdentity: false,
1274
1267
  noFormNeeded: false,
1275
1268
  canEditPayoutInfo: true,
1276
1269
  documentType: "W8BEN",
@@ -1279,7 +1272,6 @@ const TaxAndCashDashboardActiveW8BENForm = () => {
1279
1272
  indirectTaxType: "VAT",
1280
1273
  indirectTaxNumber: "123456",
1281
1274
  showNewFormDialog: false,
1282
- hasHold: false,
1283
1275
  },
1284
1276
  } }));
1285
1277
  };
@@ -1287,8 +1279,6 @@ const TaxAndCashDashboardActiveW8BENEForm = () => {
1287
1279
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1288
1280
  ...dashboardProps,
1289
1281
  states: {
1290
- payoutStatus: "DONE",
1291
- showVerifyIdentity: false,
1292
1282
  noFormNeeded: false,
1293
1283
  canEditPayoutInfo: true,
1294
1284
  documentType: "W8BENE",
@@ -1297,7 +1287,6 @@ const TaxAndCashDashboardActiveW8BENEForm = () => {
1297
1287
  indirectTaxType: "VAT",
1298
1288
  indirectTaxNumber: "123456",
1299
1289
  showNewFormDialog: false,
1300
- hasHold: false,
1301
1290
  },
1302
1291
  } }));
1303
1292
  };
@@ -1305,8 +1294,6 @@ const TaxAndCashDashboardNotActiveW9Form = () => {
1305
1294
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1306
1295
  ...dashboardProps,
1307
1296
  states: {
1308
- payoutStatus: "DONE",
1309
- showVerifyIdentity: false,
1310
1297
  noFormNeeded: false,
1311
1298
  canEditPayoutInfo: true,
1312
1299
  status: "INACTIVE",
@@ -1316,7 +1303,6 @@ const TaxAndCashDashboardNotActiveW9Form = () => {
1316
1303
  indirectTaxType: "VAT",
1317
1304
  indirectTaxNumber: "123456",
1318
1305
  showNewFormDialog: false,
1319
- hasHold: false,
1320
1306
  },
1321
1307
  } }));
1322
1308
  };
@@ -1324,8 +1310,6 @@ const TaxAndCashDashboardNotVerifiedW9Form = () => {
1324
1310
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1325
1311
  ...dashboardProps,
1326
1312
  states: {
1327
- payoutStatus: "DONE",
1328
- showVerifyIdentity: false,
1329
1313
  canEditPayoutInfo: true,
1330
1314
  disabled: false,
1331
1315
  status: "NOT_VERIFIED",
@@ -1336,7 +1320,6 @@ const TaxAndCashDashboardNotVerifiedW9Form = () => {
1336
1320
  indirectTaxType: "VAT",
1337
1321
  indirectTaxNumber: "123456",
1338
1322
  showNewFormDialog: false,
1339
- hasHold: false,
1340
1323
  },
1341
1324
  } }));
1342
1325
  };
@@ -1344,8 +1327,6 @@ const TaxAndCashDashboardNotVerifiedW8BENForm = () => {
1344
1327
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1345
1328
  ...dashboardProps,
1346
1329
  states: {
1347
- payoutStatus: "DONE",
1348
- showVerifyIdentity: false,
1349
1330
  canEditPayoutInfo: true,
1350
1331
  disabled: false,
1351
1332
  status: "NOT_VERIFIED",
@@ -1357,7 +1338,6 @@ const TaxAndCashDashboardNotVerifiedW8BENForm = () => {
1357
1338
  indirectTaxType: "VAT",
1358
1339
  indirectTaxNumber: "123456",
1359
1340
  showNewFormDialog: false,
1360
- hasHold: false,
1361
1341
  },
1362
1342
  } }));
1363
1343
  };
@@ -1365,8 +1345,6 @@ const TaxAndCashDashboardNotVerifiedW8BENEForm = () => {
1365
1345
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1366
1346
  ...dashboardProps,
1367
1347
  states: {
1368
- payoutStatus: "DONE",
1369
- showVerifyIdentity: false,
1370
1348
  canEditPayoutInfo: true,
1371
1349
  disabled: false,
1372
1350
  status: "NOT_VERIFIED",
@@ -1378,7 +1356,6 @@ const TaxAndCashDashboardNotVerifiedW8BENEForm = () => {
1378
1356
  indirectTaxType: "VAT",
1379
1357
  indirectTaxNumber: "123456",
1380
1358
  showNewFormDialog: false,
1381
- hasHold: false,
1382
1359
  },
1383
1360
  } }));
1384
1361
  };
@@ -1386,8 +1363,6 @@ const TaxAndCashDashboardNotActiveW8BENEForm = () => {
1386
1363
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1387
1364
  ...dashboardProps,
1388
1365
  states: {
1389
- payoutStatus: "DONE",
1390
- showVerifyIdentity: false,
1391
1366
  canEditPayoutInfo: true,
1392
1367
  disabled: false,
1393
1368
  status: "NOT_ACTIVE",
@@ -1399,7 +1374,6 @@ const TaxAndCashDashboardNotActiveW8BENEForm = () => {
1399
1374
  indirectTaxType: "VAT",
1400
1375
  country: "United Kingdom",
1401
1376
  showNewFormDialog: false,
1402
- hasHold: false,
1403
1377
  },
1404
1378
  } }));
1405
1379
  };
@@ -1407,8 +1381,6 @@ const TaxAndCashDashboardNoFormNeeded = () => {
1407
1381
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1408
1382
  ...dashboardProps,
1409
1383
  states: {
1410
- payoutStatus: "DONE",
1411
- showVerifyIdentity: false,
1412
1384
  canEditPayoutInfo: true,
1413
1385
  disabled: false,
1414
1386
  documentType: "W9",
@@ -1420,7 +1392,6 @@ const TaxAndCashDashboardNoFormNeeded = () => {
1420
1392
  indirectTaxNumber: "123456",
1421
1393
  indirectTaxType: "GST",
1422
1394
  showNewFormDialog: false,
1423
- hasHold: false,
1424
1395
  },
1425
1396
  } }));
1426
1397
  };
@@ -1428,8 +1399,6 @@ const TaxAndCashDashboardIndirectTaxCanada = () => {
1428
1399
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1429
1400
  ...dashboardProps,
1430
1401
  states: {
1431
- payoutStatus: "DONE",
1432
- showVerifyIdentity: false,
1433
1402
  canEditPayoutInfo: true,
1434
1403
  status: "ACTIVE",
1435
1404
  disabled: false,
@@ -1442,7 +1411,6 @@ const TaxAndCashDashboardIndirectTaxCanada = () => {
1442
1411
  indirectTaxType: "GST",
1443
1412
  indirectTaxNumber: "123456",
1444
1413
  showNewFormDialog: false,
1445
- hasHold: false,
1446
1414
  },
1447
1415
  } }));
1448
1416
  };
@@ -1450,8 +1418,6 @@ const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
1450
1418
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1451
1419
  ...dashboardProps,
1452
1420
  states: {
1453
- payoutStatus: "DONE",
1454
- showVerifyIdentity: false,
1455
1421
  canEditPayoutInfo: true,
1456
1422
  status: "ACTIVE",
1457
1423
  disabled: false,
@@ -1465,7 +1431,6 @@ const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
1465
1431
  indirectTaxNumber: "123456",
1466
1432
  qstNumber: "44212",
1467
1433
  showNewFormDialog: false,
1468
- hasHold: false,
1469
1434
  },
1470
1435
  } }));
1471
1436
  };
@@ -1473,8 +1438,6 @@ const TaxAndCashDashboardIndirectTaxSpain = () => {
1473
1438
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1474
1439
  ...dashboardProps,
1475
1440
  states: {
1476
- payoutStatus: "DONE",
1477
- showVerifyIdentity: false,
1478
1441
  canEditPayoutInfo: true,
1479
1442
  status: "ACTIVE",
1480
1443
  disabled: false,
@@ -1488,7 +1451,6 @@ const TaxAndCashDashboardIndirectTaxSpain = () => {
1488
1451
  indirectTaxNumber: "123456",
1489
1452
  subRegionTaxNumber: "44212",
1490
1453
  showNewFormDialog: false,
1491
- hasHold: false,
1492
1454
  },
1493
1455
  } }));
1494
1456
  };
@@ -1496,8 +1458,6 @@ const TaxAndCashDashboardIndirectTaxNotRegistered = () => {
1496
1458
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1497
1459
  ...dashboardProps,
1498
1460
  states: {
1499
- payoutStatus: "DONE",
1500
- showVerifyIdentity: false,
1501
1461
  canEditPayoutInfo: true,
1502
1462
  status: "ACTIVE",
1503
1463
  documentType: "W8BEN",
@@ -1506,27 +1466,6 @@ const TaxAndCashDashboardIndirectTaxNotRegistered = () => {
1506
1466
  noFormNeeded: false,
1507
1467
  notRegistered: true,
1508
1468
  showNewFormDialog: false,
1509
- hasHold: false,
1510
- },
1511
- } }));
1512
- };
1513
- const TaxAndCashDashboardIdentityVerifcationRequired = () => {
1514
- return (h("sqm-tax-and-cash-dashboard", { demoData: {
1515
- ...dashboardProps,
1516
- states: {
1517
- payoutStatus: "VERIFICATION_NEEDED",
1518
- showVerifyIdentity: true,
1519
- showIdentityVerificationDialog: true,
1520
- identiyRequired: true,
1521
- canEditPayoutInfo: true,
1522
- status: "ACTIVE",
1523
- documentType: "W8BEN",
1524
- documentTypeString: taxTypeToName("W8BEN"),
1525
- dateSubmitted: "Jan 18th, 2025",
1526
- noFormNeeded: false,
1527
- notRegistered: true,
1528
- showNewFormDialog: false,
1529
- hasHold: false,
1530
1469
  },
1531
1470
  } }));
1532
1471
  };
@@ -1534,8 +1473,6 @@ const TaxAndCashDashboardNewTaxForm = () => {
1534
1473
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1535
1474
  ...dashboardProps,
1536
1475
  states: {
1537
- payoutStatus: "DONE",
1538
- showVerifyIdentity: false,
1539
1476
  canEditPayoutInfo: true,
1540
1477
  status: "ACTIVE",
1541
1478
  documentType: "W8BEN",
@@ -1544,27 +1481,6 @@ const TaxAndCashDashboardNewTaxForm = () => {
1544
1481
  noFormNeeded: false,
1545
1482
  notRegistered: true,
1546
1483
  showNewFormDialog: true,
1547
- hasHold: false,
1548
- },
1549
- } }));
1550
- };
1551
- const TaxAndCashDashboardPayoutsOnHold = () => {
1552
- return (h("sqm-tax-and-cash-dashboard", { demoData: {
1553
- ...dashboardProps,
1554
- states: {
1555
- payoutStatus: "DONE",
1556
- showVerifyIdentity: false,
1557
- canEditPayoutInfo: true,
1558
- disabled: true,
1559
- status: "ACTIVE",
1560
- documentType: "W8BEN",
1561
- documentTypeString: taxTypeToName("W8BEN"),
1562
- dateSubmitted: "Jan 18th, 2025",
1563
- noFormNeeded: false,
1564
- indirectTaxNumber: "123456",
1565
- country: "Slovania",
1566
- showNewFormDialog: false,
1567
- hasHold: true,
1568
1484
  },
1569
1485
  } }));
1570
1486
  };
@@ -1572,8 +1488,6 @@ const TaxAndCashDashboardLoading = () => {
1572
1488
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1573
1489
  ...dashboardProps,
1574
1490
  states: {
1575
- payoutStatus: "DONE",
1576
- showVerifyIdentity: false,
1577
1491
  canEditPayoutInfo: true,
1578
1492
  disabled: false,
1579
1493
  status: "ACTIVE",
@@ -1583,7 +1497,6 @@ const TaxAndCashDashboardLoading = () => {
1583
1497
  noFormNeeded: false,
1584
1498
  loading: true,
1585
1499
  showNewFormDialog: false,
1586
- hasHold: false,
1587
1500
  },
1588
1501
  } }));
1589
1502
  };
@@ -1591,8 +1504,6 @@ const TaxAndCashDashboardWithLoadingError = () => {
1591
1504
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1592
1505
  ...dashboardProps,
1593
1506
  states: {
1594
- payoutStatus: "DONE",
1595
- showVerifyIdentity: false,
1596
1507
  disabled: false,
1597
1508
  canEditPayoutInfo: true,
1598
1509
  status: "ACTIVE",
@@ -1603,7 +1514,6 @@ const TaxAndCashDashboardWithLoadingError = () => {
1603
1514
  loading: true,
1604
1515
  loadingError: true,
1605
1516
  showNewFormDialog: false,
1606
- hasHold: false,
1607
1517
  },
1608
1518
  } }));
1609
1519
  };
@@ -1611,8 +1521,6 @@ const TaxAndCashDashboardWithGeneralError = () => {
1611
1521
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1612
1522
  ...dashboardProps,
1613
1523
  states: {
1614
- payoutStatus: "DONE",
1615
- showVerifyIdentity: false,
1616
1524
  canEditPayoutInfo: true,
1617
1525
  disabled: false,
1618
1526
  status: "ACTIVE",
@@ -1624,7 +1532,6 @@ const TaxAndCashDashboardWithGeneralError = () => {
1624
1532
  indirectTaxType: "VAT",
1625
1533
  country: "Slovania",
1626
1534
  showNewFormDialog: false,
1627
- hasHold: false,
1628
1535
  errors: {
1629
1536
  general: true,
1630
1537
  },
@@ -1635,8 +1542,6 @@ const TaxAndCashDashboardDisabled = () => {
1635
1542
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1636
1543
  ...dashboardProps,
1637
1544
  states: {
1638
- payoutStatus: "DONE",
1639
- showVerifyIdentity: false,
1640
1545
  canEditPayoutInfo: true,
1641
1546
  disabled: true,
1642
1547
  status: "ACTIVE",
@@ -1647,7 +1552,6 @@ const TaxAndCashDashboardDisabled = () => {
1647
1552
  indirectTaxNumber: "123456",
1648
1553
  country: "Slovania",
1649
1554
  showNewFormDialog: false,
1650
- hasHold: false,
1651
1555
  },
1652
1556
  } }));
1653
1557
  };
@@ -1714,9 +1618,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
1714
1618
  TaxAndCashDashboardIndirectTaxCanadaQuebec: TaxAndCashDashboardIndirectTaxCanadaQuebec,
1715
1619
  TaxAndCashDashboardIndirectTaxSpain: TaxAndCashDashboardIndirectTaxSpain,
1716
1620
  TaxAndCashDashboardIndirectTaxNotRegistered: TaxAndCashDashboardIndirectTaxNotRegistered,
1717
- TaxAndCashDashboardIdentityVerifcationRequired: TaxAndCashDashboardIdentityVerifcationRequired,
1718
1621
  TaxAndCashDashboardNewTaxForm: TaxAndCashDashboardNewTaxForm,
1719
- TaxAndCashDashboardPayoutsOnHold: TaxAndCashDashboardPayoutsOnHold,
1720
1622
  TaxAndCashDashboardLoading: TaxAndCashDashboardLoading,
1721
1623
  TaxAndCashDashboardWithLoadingError: TaxAndCashDashboardWithLoadingError,
1722
1624
  TaxAndCashDashboardWithGeneralError: TaxAndCashDashboardWithGeneralError,
@@ -0,0 +1,83 @@
1
+ import { h } from './index-17b4da69.js';
2
+ import { A as AuthWrapper, a as AuthColumn, H as HostBlock, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
3
+ import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
+ import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
5
+
6
+ const style = {
7
+ Wrapper: { ...AuthWrapper, "max-width": "600px" },
8
+ Column: AuthColumn,
9
+ HostBlock: HostBlock,
10
+ ":host": {
11
+ margin: "0 auto",
12
+ width: "100%",
13
+ },
14
+ ButtonsContainer: AuthButtonsContainer,
15
+ ErrorStyle: ErrorStyles,
16
+ };
17
+ const vanillaStyle = `
18
+ sqm-portal-register {
19
+ margin: 0 auto;
20
+ width: 100%;
21
+ display: block;
22
+ }
23
+
24
+ :host{
25
+ display: block;
26
+ }
27
+
28
+ :host([hidden]) {
29
+ display: none;
30
+ }
31
+ `;
32
+ const sheet = createStyleSheet(style);
33
+ const styleString = sheet.toString();
34
+ function PortalRegistrationFormView(props) {
35
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
36
+ const { states, refs, callbacks, content } = props;
37
+ if (states.error) {
38
+ window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
39
+ }
40
+ return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
41
+ h("style", { type: "text/css" },
42
+ vanillaStyle,
43
+ styleString),
44
+ h(TextSpanView, { type: "h3" }, content.pageLabel),
45
+ h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
46
+ ((_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.disabled) ? (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
47
+ h("div", { part: "erroralert-text" }, states.registrationFormState.disabledMessage))) : (states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
48
+ h("div", { part: "erroralert-text" }, props.states.error)))),
49
+ content.formData,
50
+ !states.hideInputs && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), required: true, validationError: ({ value }) => {
51
+ if (!value) {
52
+ return content.requiredFieldErrorMessage;
53
+ }
54
+ // this matches shoelace validation, but could be better
55
+ if (!value.includes("@")) {
56
+ return content.invalidEmailErrorMessage;
57
+ }
58
+ } }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.email) ? {
59
+ value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.email,
60
+ }
61
+ : {}), (((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.email) ? {
62
+ class: sheet.classes.ErrorStyle,
63
+ helpText: ((_k = (_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.validationErrors) === null || _k === void 0 ? void 0 : _k.email) ||
64
+ content.requiredFieldErrorMessage,
65
+ }
66
+ : [])))),
67
+ !states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": !states.enablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
68
+ !states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.disabled), required: true }, (((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.confirmPassword) ? {
69
+ value: (_q = (_p = states.registrationFormState) === null || _p === void 0 ? void 0 : _p.initialData) === null || _q === void 0 ? void 0 : _q.confirmPassword,
70
+ }
71
+ : {}), (((_s = (_r = states.registrationFormState) === null || _r === void 0 ? void 0 : _r.validationErrors) === null || _s === void 0 ? void 0 : _s.confirmPassword) ? {
72
+ class: sheet.classes.ErrorStyle,
73
+ helpText: ((_u = (_t = states.registrationFormState) === null || _t === void 0 ? void 0 : _t.validationErrors) === null || _u === void 0 ? void 0 : _u.confirmPassword) || content.requiredFieldErrorMessage,
74
+ }
75
+ : [])))),
76
+ content.emailOptIn,
77
+ content.terms,
78
+ h("div", { class: sheet.classes.ButtonsContainer },
79
+ h("sl-button", { submit: true, loading: states.loading, disabled: (_v = states.registrationFormState) === null || _v === void 0 ? void 0 : _v.disabled, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
80
+ content.secondaryButton))));
81
+ }
82
+
83
+ export { PortalRegistrationFormView as P };
@@ -1,91 +1,15 @@
1
- import { h, r as registerInstance } from './index-17b4da69.js';
2
- import { m as useRef, f as useEffect, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
1
+ import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
+ import { m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
3
  import { d as dist, Q, e as Te, E as En, x as xn, b as useCallback, i as isDemo } from './index.module-6c840c4e.js';
4
4
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
- import { A as AuthWrapper, a as AuthColumn, H as HostBlock, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
7
- import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
- import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
6
+ import './mixins-f60a614c.js';
7
+ import './JSS-67b5cff8.js';
8
+ import './sqm-text-span-view-8d140661.js';
9
9
  import { u as useRegistrationFormState } from './useRegistrationFormState-849e27f7.js';
10
+ import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-1d3066e1.js';
10
11
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
11
12
 
12
- const style = {
13
- Wrapper: { ...AuthWrapper, "max-width": "600px" },
14
- Column: AuthColumn,
15
- HostBlock: HostBlock,
16
- ":host": {
17
- margin: "0 auto",
18
- width: "100%",
19
- },
20
- ButtonsContainer: AuthButtonsContainer,
21
- ErrorStyle: ErrorStyles,
22
- };
23
- const vanillaStyle = `
24
- sqm-portal-register {
25
- margin: 0 auto;
26
- width: 100%;
27
- display: block;
28
- }
29
-
30
- :host{
31
- display: block;
32
- }
33
-
34
- :host([hidden]) {
35
- display: none;
36
- }
37
- `;
38
- const sheet = createStyleSheet(style);
39
- const styleString = sheet.toString();
40
- function PortalRegistrationFormView(props) {
41
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
42
- const { states, refs, callbacks, content } = props;
43
- if (states.error) {
44
- window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
45
- }
46
- return (h("div", { class: sheet.classes.Wrapper, part: "sqm-base" },
47
- h("style", { type: "text/css" },
48
- vanillaStyle,
49
- styleString),
50
- h(TextSpanView, { type: "h3" }, content.pageLabel),
51
- h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
52
- ((_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.disabled) ? (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
53
- h("div", { part: "erroralert-text" }, states.registrationFormState.disabledMessage))) : (states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
54
- h("div", { part: "erroralert-text" }, props.states.error)))),
55
- content.formData,
56
- !states.hideInputs && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading || ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.disabled), required: true, validationError: ({ value }) => {
57
- if (!value) {
58
- return content.requiredFieldErrorMessage;
59
- }
60
- // this matches shoelace validation, but could be better
61
- if (!value.includes("@")) {
62
- return content.invalidEmailErrorMessage;
63
- }
64
- } }, (((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.initialData) === null || _d === void 0 ? void 0 : _d.email) ? {
65
- value: (_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.initialData) === null || _f === void 0 ? void 0 : _f.email,
66
- }
67
- : {}), (((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.email) ? {
68
- class: sheet.classes.ErrorStyle,
69
- helpText: ((_k = (_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.validationErrors) === null || _k === void 0 ? void 0 : _k.email) ||
70
- content.requiredFieldErrorMessage,
71
- }
72
- : [])))),
73
- !states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": !states.enablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
74
- content.passwordField,
75
- !states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_l = states.registrationFormState) === null || _l === void 0 ? void 0 : _l.disabled), required: true }, (((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.confirmPassword) ? {
76
- value: (_q = (_p = states.registrationFormState) === null || _p === void 0 ? void 0 : _p.initialData) === null || _q === void 0 ? void 0 : _q.confirmPassword,
77
- }
78
- : {}), (((_s = (_r = states.registrationFormState) === null || _r === void 0 ? void 0 : _r.validationErrors) === null || _s === void 0 ? void 0 : _s.confirmPassword) ? {
79
- class: sheet.classes.ErrorStyle,
80
- helpText: ((_u = (_t = states.registrationFormState) === null || _t === void 0 ? void 0 : _t.validationErrors) === null || _u === void 0 ? void 0 : _u.confirmPassword) || content.requiredFieldErrorMessage,
81
- }
82
- : [])))),
83
- content.terms,
84
- h("div", { class: sheet.classes.ButtonsContainer },
85
- h("sl-button", { submit: true, loading: states.loading, disabled: (_v = states.registrationFormState) === null || _v === void 0 ? void 0 : _v.disabled, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
86
- content.secondaryButton))));
87
- }
88
-
89
13
  const RegistrationFormQuery = dist.gql `
90
14
  query RegistrationFormQuery($key: String!) {
91
15
  form(key: $key) {
@@ -133,6 +57,7 @@ function usePortalRegistrationForm(props) {
133
57
  const submit = async (event) => {
134
58
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
135
59
  let formControls = event.target.getFormControls();
60
+ console.log("Test 123");
136
61
  let formData = {};
137
62
  let validationErrors = {};
138
63
  formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
@@ -178,10 +103,14 @@ function usePortalRegistrationForm(props) {
178
103
  validationErrors: {},
179
104
  });
180
105
  const { email, password } = formData;
106
+ console.log("form data is ", formData);
181
107
  delete formData.email;
182
108
  delete formData.password;
183
109
  delete formData.confirmPassword;
184
110
  const redirectPath = props.redirectPath;
111
+ const marketingEmailOptInDate = formData.marketingEmails
112
+ ? Date.now()
113
+ : null;
185
114
  const variables = {
186
115
  key: props.formKey,
187
116
  formData: {
@@ -189,6 +118,7 @@ function usePortalRegistrationForm(props) {
189
118
  email,
190
119
  password,
191
120
  redirectPath,
121
+ ...(formData.marketingEmails && { marketingEmailOptInDate }),
192
122
  ...formData,
193
123
  },
194
124
  };
@@ -412,7 +342,7 @@ const PortalRegistrationForm = class {
412
342
  * @uiName Missing number or symbol text
413
343
  */
414
344
  this.hasErrorText = "contain at least 1 number or symbol";
415
- h$1(this);
345
+ h(this);
416
346
  }
417
347
  disconnectedCallback() { }
418
348
  render() {
@@ -420,9 +350,10 @@ const PortalRegistrationForm = class {
420
350
  ? useRegisterDemo(this)
421
351
  : usePortalRegistrationForm(this);
422
352
  const content = {
423
- formData: h("slot", { name: "formData" }),
424
- secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () => xn.push(states.loginPath) }, this.loginLabel))),
425
- terms: h("slot", { name: "terms" }),
353
+ formData: h$1("slot", { name: "formData" }),
354
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => xn.push(states.loginPath) }, this.loginLabel))),
355
+ terms: h$1("slot", { name: "terms" }),
356
+ emailOptIn: h$1("slot", { name: "emailOptIn" }),
426
357
  emailLabel: this.emailLabel,
427
358
  passwordLabel: this.passwordLabel,
428
359
  submitLabel: this.submitLabel,
@@ -440,7 +371,7 @@ const PortalRegistrationForm = class {
440
371
  lowercaseErrorText: this.lowercaseErrorText,
441
372
  hasErrorText: this.hasErrorText,
442
373
  };
443
- return (h(PortalRegistrationFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
374
+ return (h$1(PortalRegistrationFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
444
375
  }
445
376
  };
446
377
  function useRegisterDemo(props) {