@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
@@ -194,7 +194,6 @@ const stepTwoProps = {
194
194
  };
195
195
  const stepFourProps = {
196
196
  states: {
197
- showVerification: false,
198
197
  step: "4",
199
198
  hideSteps: false,
200
199
  disabled: false,
@@ -210,7 +209,6 @@ const stepFourProps = {
210
209
  },
211
210
  },
212
211
  callbacks: {
213
- onVerification: () => { },
214
212
  onSubmit: async () => console.log("Submit"),
215
213
  setPaymentMethodChecked: () => { },
216
214
  setPaymentScheduleChecked: () => { },
@@ -247,8 +245,6 @@ const docusignFormProps = {
247
245
  };
248
246
  const dashboardProps = {
249
247
  states: {
250
- showVerifyIdentity: false,
251
- payoutStatus: "DONE",
252
248
  canEditPayoutInfo: true,
253
249
  disabled: false,
254
250
  status: "ACTIVE",
@@ -260,7 +256,6 @@ const dashboardProps = {
260
256
  indirectTaxNumber: "123456",
261
257
  indirectTaxType: "VAT",
262
258
  showNewFormDialog: false,
263
- hasHold: false,
264
259
  },
265
260
  slots: {
266
261
  payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
@@ -767,8 +762,6 @@ export const TaxAndCashDashboardActiveW8BENForm = () => {
767
762
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
768
763
  ...dashboardProps,
769
764
  states: {
770
- payoutStatus: "DONE",
771
- showVerifyIdentity: false,
772
765
  noFormNeeded: false,
773
766
  canEditPayoutInfo: true,
774
767
  documentType: "W8BEN",
@@ -777,7 +770,6 @@ export const TaxAndCashDashboardActiveW8BENForm = () => {
777
770
  indirectTaxType: "VAT",
778
771
  indirectTaxNumber: "123456",
779
772
  showNewFormDialog: false,
780
- hasHold: false,
781
773
  },
782
774
  } }));
783
775
  };
@@ -785,8 +777,6 @@ export const TaxAndCashDashboardActiveW8BENEForm = () => {
785
777
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
786
778
  ...dashboardProps,
787
779
  states: {
788
- payoutStatus: "DONE",
789
- showVerifyIdentity: false,
790
780
  noFormNeeded: false,
791
781
  canEditPayoutInfo: true,
792
782
  documentType: "W8BENE",
@@ -795,7 +785,6 @@ export const TaxAndCashDashboardActiveW8BENEForm = () => {
795
785
  indirectTaxType: "VAT",
796
786
  indirectTaxNumber: "123456",
797
787
  showNewFormDialog: false,
798
- hasHold: false,
799
788
  },
800
789
  } }));
801
790
  };
@@ -803,8 +792,6 @@ export const TaxAndCashDashboardNotActiveW9Form = () => {
803
792
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
804
793
  ...dashboardProps,
805
794
  states: {
806
- payoutStatus: "DONE",
807
- showVerifyIdentity: false,
808
795
  noFormNeeded: false,
809
796
  canEditPayoutInfo: true,
810
797
  status: "INACTIVE",
@@ -814,7 +801,6 @@ export const TaxAndCashDashboardNotActiveW9Form = () => {
814
801
  indirectTaxType: "VAT",
815
802
  indirectTaxNumber: "123456",
816
803
  showNewFormDialog: false,
817
- hasHold: false,
818
804
  },
819
805
  } }));
820
806
  };
@@ -822,8 +808,6 @@ export const TaxAndCashDashboardNotVerifiedW9Form = () => {
822
808
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
823
809
  ...dashboardProps,
824
810
  states: {
825
- payoutStatus: "DONE",
826
- showVerifyIdentity: false,
827
811
  canEditPayoutInfo: true,
828
812
  disabled: false,
829
813
  status: "NOT_VERIFIED",
@@ -834,7 +818,6 @@ export const TaxAndCashDashboardNotVerifiedW9Form = () => {
834
818
  indirectTaxType: "VAT",
835
819
  indirectTaxNumber: "123456",
836
820
  showNewFormDialog: false,
837
- hasHold: false,
838
821
  },
839
822
  } }));
840
823
  };
@@ -842,8 +825,6 @@ export const TaxAndCashDashboardNotVerifiedW8BENForm = () => {
842
825
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
843
826
  ...dashboardProps,
844
827
  states: {
845
- payoutStatus: "DONE",
846
- showVerifyIdentity: false,
847
828
  canEditPayoutInfo: true,
848
829
  disabled: false,
849
830
  status: "NOT_VERIFIED",
@@ -855,7 +836,6 @@ export const TaxAndCashDashboardNotVerifiedW8BENForm = () => {
855
836
  indirectTaxType: "VAT",
856
837
  indirectTaxNumber: "123456",
857
838
  showNewFormDialog: false,
858
- hasHold: false,
859
839
  },
860
840
  } }));
861
841
  };
@@ -863,8 +843,6 @@ export const TaxAndCashDashboardNotVerifiedW8BENEForm = () => {
863
843
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
864
844
  ...dashboardProps,
865
845
  states: {
866
- payoutStatus: "DONE",
867
- showVerifyIdentity: false,
868
846
  canEditPayoutInfo: true,
869
847
  disabled: false,
870
848
  status: "NOT_VERIFIED",
@@ -876,7 +854,6 @@ export const TaxAndCashDashboardNotVerifiedW8BENEForm = () => {
876
854
  indirectTaxType: "VAT",
877
855
  indirectTaxNumber: "123456",
878
856
  showNewFormDialog: false,
879
- hasHold: false,
880
857
  },
881
858
  } }));
882
859
  };
@@ -884,8 +861,6 @@ export const TaxAndCashDashboardNotActiveW8BENEForm = () => {
884
861
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
885
862
  ...dashboardProps,
886
863
  states: {
887
- payoutStatus: "DONE",
888
- showVerifyIdentity: false,
889
864
  canEditPayoutInfo: true,
890
865
  disabled: false,
891
866
  status: "NOT_ACTIVE",
@@ -897,7 +872,6 @@ export const TaxAndCashDashboardNotActiveW8BENEForm = () => {
897
872
  indirectTaxType: "VAT",
898
873
  country: "United Kingdom",
899
874
  showNewFormDialog: false,
900
- hasHold: false,
901
875
  },
902
876
  } }));
903
877
  };
@@ -905,8 +879,6 @@ export const TaxAndCashDashboardNoFormNeeded = () => {
905
879
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
906
880
  ...dashboardProps,
907
881
  states: {
908
- payoutStatus: "DONE",
909
- showVerifyIdentity: false,
910
882
  canEditPayoutInfo: true,
911
883
  disabled: false,
912
884
  documentType: "W9",
@@ -918,7 +890,6 @@ export const TaxAndCashDashboardNoFormNeeded = () => {
918
890
  indirectTaxNumber: "123456",
919
891
  indirectTaxType: "GST",
920
892
  showNewFormDialog: false,
921
- hasHold: false,
922
893
  },
923
894
  } }));
924
895
  };
@@ -926,8 +897,6 @@ export const TaxAndCashDashboardIndirectTaxCanada = () => {
926
897
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
927
898
  ...dashboardProps,
928
899
  states: {
929
- payoutStatus: "DONE",
930
- showVerifyIdentity: false,
931
900
  canEditPayoutInfo: true,
932
901
  status: "ACTIVE",
933
902
  disabled: false,
@@ -940,7 +909,6 @@ export const TaxAndCashDashboardIndirectTaxCanada = () => {
940
909
  indirectTaxType: "GST",
941
910
  indirectTaxNumber: "123456",
942
911
  showNewFormDialog: false,
943
- hasHold: false,
944
912
  },
945
913
  } }));
946
914
  };
@@ -948,8 +916,6 @@ export const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
948
916
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
949
917
  ...dashboardProps,
950
918
  states: {
951
- payoutStatus: "DONE",
952
- showVerifyIdentity: false,
953
919
  canEditPayoutInfo: true,
954
920
  status: "ACTIVE",
955
921
  disabled: false,
@@ -963,7 +929,6 @@ export const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
963
929
  indirectTaxNumber: "123456",
964
930
  qstNumber: "44212",
965
931
  showNewFormDialog: false,
966
- hasHold: false,
967
932
  },
968
933
  } }));
969
934
  };
@@ -971,8 +936,6 @@ export const TaxAndCashDashboardIndirectTaxSpain = () => {
971
936
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
972
937
  ...dashboardProps,
973
938
  states: {
974
- payoutStatus: "DONE",
975
- showVerifyIdentity: false,
976
939
  canEditPayoutInfo: true,
977
940
  status: "ACTIVE",
978
941
  disabled: false,
@@ -986,7 +949,6 @@ export const TaxAndCashDashboardIndirectTaxSpain = () => {
986
949
  indirectTaxNumber: "123456",
987
950
  subRegionTaxNumber: "44212",
988
951
  showNewFormDialog: false,
989
- hasHold: false,
990
952
  },
991
953
  } }));
992
954
  };
@@ -994,8 +956,6 @@ export const TaxAndCashDashboardIndirectTaxNotRegistered = () => {
994
956
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
995
957
  ...dashboardProps,
996
958
  states: {
997
- payoutStatus: "DONE",
998
- showVerifyIdentity: false,
999
959
  canEditPayoutInfo: true,
1000
960
  status: "ACTIVE",
1001
961
  documentType: "W8BEN",
@@ -1004,27 +964,6 @@ export const TaxAndCashDashboardIndirectTaxNotRegistered = () => {
1004
964
  noFormNeeded: false,
1005
965
  notRegistered: true,
1006
966
  showNewFormDialog: false,
1007
- hasHold: false,
1008
- },
1009
- } }));
1010
- };
1011
- export const TaxAndCashDashboardIdentityVerifcationRequired = () => {
1012
- return (h("sqm-tax-and-cash-dashboard", { demoData: {
1013
- ...dashboardProps,
1014
- states: {
1015
- payoutStatus: "VERIFICATION_NEEDED",
1016
- showVerifyIdentity: true,
1017
- showIdentityVerificationDialog: true,
1018
- identiyRequired: true,
1019
- canEditPayoutInfo: true,
1020
- status: "ACTIVE",
1021
- documentType: "W8BEN",
1022
- documentTypeString: taxTypeToName("W8BEN"),
1023
- dateSubmitted: "Jan 18th, 2025",
1024
- noFormNeeded: false,
1025
- notRegistered: true,
1026
- showNewFormDialog: false,
1027
- hasHold: false,
1028
967
  },
1029
968
  } }));
1030
969
  };
@@ -1032,8 +971,6 @@ export const TaxAndCashDashboardNewTaxForm = () => {
1032
971
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1033
972
  ...dashboardProps,
1034
973
  states: {
1035
- payoutStatus: "DONE",
1036
- showVerifyIdentity: false,
1037
974
  canEditPayoutInfo: true,
1038
975
  status: "ACTIVE",
1039
976
  documentType: "W8BEN",
@@ -1042,27 +979,6 @@ export const TaxAndCashDashboardNewTaxForm = () => {
1042
979
  noFormNeeded: false,
1043
980
  notRegistered: true,
1044
981
  showNewFormDialog: true,
1045
- hasHold: false,
1046
- },
1047
- } }));
1048
- };
1049
- export const TaxAndCashDashboardPayoutsOnHold = () => {
1050
- return (h("sqm-tax-and-cash-dashboard", { demoData: {
1051
- ...dashboardProps,
1052
- states: {
1053
- payoutStatus: "DONE",
1054
- showVerifyIdentity: false,
1055
- canEditPayoutInfo: true,
1056
- disabled: true,
1057
- status: "ACTIVE",
1058
- documentType: "W8BEN",
1059
- documentTypeString: taxTypeToName("W8BEN"),
1060
- dateSubmitted: "Jan 18th, 2025",
1061
- noFormNeeded: false,
1062
- indirectTaxNumber: "123456",
1063
- country: "Slovania",
1064
- showNewFormDialog: false,
1065
- hasHold: true,
1066
982
  },
1067
983
  } }));
1068
984
  };
@@ -1070,8 +986,6 @@ export const TaxAndCashDashboardLoading = () => {
1070
986
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1071
987
  ...dashboardProps,
1072
988
  states: {
1073
- payoutStatus: "DONE",
1074
- showVerifyIdentity: false,
1075
989
  canEditPayoutInfo: true,
1076
990
  disabled: false,
1077
991
  status: "ACTIVE",
@@ -1081,7 +995,6 @@ export const TaxAndCashDashboardLoading = () => {
1081
995
  noFormNeeded: false,
1082
996
  loading: true,
1083
997
  showNewFormDialog: false,
1084
- hasHold: false,
1085
998
  },
1086
999
  } }));
1087
1000
  };
@@ -1089,8 +1002,6 @@ export const TaxAndCashDashboardWithLoadingError = () => {
1089
1002
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1090
1003
  ...dashboardProps,
1091
1004
  states: {
1092
- payoutStatus: "DONE",
1093
- showVerifyIdentity: false,
1094
1005
  disabled: false,
1095
1006
  canEditPayoutInfo: true,
1096
1007
  status: "ACTIVE",
@@ -1101,7 +1012,6 @@ export const TaxAndCashDashboardWithLoadingError = () => {
1101
1012
  loading: true,
1102
1013
  loadingError: true,
1103
1014
  showNewFormDialog: false,
1104
- hasHold: false,
1105
1015
  },
1106
1016
  } }));
1107
1017
  };
@@ -1109,8 +1019,6 @@ export const TaxAndCashDashboardWithGeneralError = () => {
1109
1019
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1110
1020
  ...dashboardProps,
1111
1021
  states: {
1112
- payoutStatus: "DONE",
1113
- showVerifyIdentity: false,
1114
1022
  canEditPayoutInfo: true,
1115
1023
  disabled: false,
1116
1024
  status: "ACTIVE",
@@ -1122,7 +1030,6 @@ export const TaxAndCashDashboardWithGeneralError = () => {
1122
1030
  indirectTaxType: "VAT",
1123
1031
  country: "Slovania",
1124
1032
  showNewFormDialog: false,
1125
- hasHold: false,
1126
1033
  errors: {
1127
1034
  general: true,
1128
1035
  },
@@ -1133,8 +1040,6 @@ export const TaxAndCashDashboardDisabled = () => {
1133
1040
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1134
1041
  ...dashboardProps,
1135
1042
  states: {
1136
- payoutStatus: "DONE",
1137
- showVerifyIdentity: false,
1138
1043
  canEditPayoutInfo: true,
1139
1044
  disabled: true,
1140
1045
  status: "ACTIVE",
@@ -1145,7 +1050,6 @@ export const TaxAndCashDashboardDisabled = () => {
1145
1050
  indirectTaxNumber: "123456",
1146
1051
  country: "Slovania",
1147
1052
  showNewFormDialog: false,
1148
- hasHold: false,
1149
1053
  },
1150
1054
  } }));
1151
1055
  };
@@ -313,9 +313,6 @@ export class BankingInfoForm {
313
313
  padding: "var(--sl-spacing-x-small)",
314
314
  },
315
315
  };
316
- if (props.states.isPartner && props.states.showVerification) {
317
- return (h("sqm-code-verification", { onVerification: props.callbacks.onVerification }));
318
- }
319
316
  return (h(Host, null,
320
317
  h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
321
318
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
@@ -1500,7 +1497,7 @@ export class BankingInfoForm {
1500
1497
  "mutable": false,
1501
1498
  "complexType": {
1502
1499
  "original": "DemoData<BankingInfoFormViewProps>",
1503
- "resolved": "{ states?: { showVerification: boolean; step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toBankAccount\" | \"toPayPalAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"required\" | \"invalid\"; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; }; slots?: { formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
1500
+ "resolved": "{ states?: { step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toBankAccount\" | \"toPayPalAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"required\" | \"invalid\"; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; }; slots?: { formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
1504
1501
  "references": {
1505
1502
  "DemoData": {
1506
1503
  "location": "import",
@@ -1619,7 +1616,6 @@ function useDemoBankingInfoForm(props) {
1619
1616
  setPaymentScheduleChecked,
1620
1617
  setCountrySearch: () => { },
1621
1618
  onBack: async () => setStep("/dashboard"),
1622
- onVerification: () => { },
1623
1619
  },
1624
1620
  text: props.getTextProps(),
1625
1621
  refs: {
@@ -1,10 +1,9 @@
1
- import { useHost, useLocale, useMutation, useParent, useParentQueryValue, useParentValue, useUserIdentity, } from "@saasquatch/component-boilerplate";
1
+ import { useLocale, useMutation, useParent, useParentQueryValue, useParentValue, useUserIdentity, } from "@saasquatch/component-boilerplate";
2
2
  import { useEffect, useRef, useState } from "@saasquatch/universal-hooks";
3
3
  import { gql } from "graphql-request";
4
4
  import JSONPointer from "jsonpointer";
5
5
  import { intl } from "../../../global/global";
6
6
  import { FINANCE_NETWORK_SETTINGS_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
7
- import { VERIFICATION_EVENT_KEY } from "../../sqm-widget-verification/keys";
8
7
  // Hardcoded in Impact backend
9
8
  export const paypalFeeMap = {
10
9
  USD: "USD20.00",
@@ -51,21 +50,6 @@ const SAVE_WITHDRAWAL_SETTINGS = gql `
51
50
  }
52
51
  }
53
52
  `;
54
- const UPDATE_WITHDRAWAL_SETTINGS = gql `
55
- mutation updateImpactPublisherWithdrawalSettings(
56
- $updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
57
- ) {
58
- updateImpactPublisherWithdrawalSettings(
59
- updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
60
- ) {
61
- success
62
- validationErrors {
63
- field
64
- message
65
- }
66
- }
67
- }
68
- `;
69
53
  function getPaymentMethod(paymentOption) {
70
54
  if (paymentOption.defaultFinancePaymentMethodId === 3 ||
71
55
  paymentOption.defaultFinancePaymentMethodId === 5)
@@ -83,7 +67,6 @@ function parseImpactThreshold(threshold) {
83
67
  }
84
68
  export function useBankingInfoForm(props) {
85
69
  var _a, _b, _c, _d, _e, _f, _g, _h;
86
- const host = useHost();
87
70
  const locale = useLocale();
88
71
  const user = useUserIdentity();
89
72
  const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
@@ -93,9 +76,6 @@ export function useBankingInfoForm(props) {
93
76
  const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = useParentQueryValue(FINANCE_NETWORK_SETTINGS_NAMESPACE);
94
77
  const { data: userData, refetch, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
95
78
  const [saveWithdrawalSettings] = useMutation(SAVE_WITHDRAWAL_SETTINGS);
96
- const [updateWithdrawalSettings] = useMutation(UPDATE_WITHDRAWAL_SETTINGS);
97
- const [showVerification, setShowVerification] = useState(false);
98
- const [currentFormData, setCurrentFormData] = useState(null);
99
79
  const [formState, setFormState] = useState({});
100
80
  const [currentPaymentOption, setCurrentPaymentOption] = useState(null);
101
81
  const [loading, setLoading] = useState(false);
@@ -105,9 +85,8 @@ export function useBankingInfoForm(props) {
105
85
  const [countrySearch, setCountrySearch] = useState("");
106
86
  const [filteredCountries, setFilteredCountries] = useState(countries || []);
107
87
  const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
108
- const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
109
88
  const feeCap = paypalFeeMap[currency] || "";
110
- const paymentOptions = (_g = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _g === void 0 ? void 0 : _g.data;
89
+ const paymentOptions = (_d = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
111
90
  const paymentMethodFeeMap = {
112
91
  [ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
113
92
  [WIRE_PAYMENT_METHOD]: intl.formatMessage({
@@ -186,50 +165,49 @@ export function useBankingInfoForm(props) {
186
165
  setFormState((p) => ({ ...p, bankCountry }));
187
166
  setCurrentPaymentOption(currentPaymentOption);
188
167
  };
189
- const runMutation = async (formData, token) => {
190
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
168
+ const onSubmit = async (event) => {
169
+ var _a, _b, _c, _d;
170
+ let formData = {};
171
+ let validationErrors = {};
172
+ const controls = event.target.getFormControls();
173
+ controls.forEach((control) => {
174
+ if (!control.name || !control.id)
175
+ return;
176
+ const key = control.name;
177
+ const value = control.value;
178
+ JSONPointer.set(formData, key, value);
179
+ if (control.required && !value) {
180
+ JSONPointer.set(validationErrors, key, { type: "required" });
181
+ }
182
+ });
183
+ setErrors({ inputErrors: validationErrors });
184
+ if (Object.keys(validationErrors).length) {
185
+ return;
186
+ }
191
187
  setLoading(true);
192
188
  try {
193
189
  if (!currentPaymentOption)
194
190
  throw new Error("No currentPaymentOption");
195
- const body = {
196
- user: {
197
- id: user.id,
198
- accountId: user.accountId,
191
+ const input = {
192
+ setImpactPublisherWithdrawalSettingsInput: {
193
+ user: {
194
+ id: user.id,
195
+ accountId: user.accountId,
196
+ },
197
+ ...formData,
198
+ paymentMethod: getPaymentMethod(currentPaymentOption),
199
+ paymentSchedulingType: paymentScheduleChecked,
199
200
  },
200
- ...formData,
201
- paymentMethod: getPaymentMethod(currentPaymentOption),
202
- paymentSchedulingType: paymentScheduleChecked,
203
201
  };
204
- let response = null;
205
- let success = null;
206
- let validationErrors = null;
207
- // Call difference mutations based on whether the user is updating
208
- // the info for setting it for the first time
209
- if (isPartner) {
210
- response = await updateWithdrawalSettings({
211
- updateImpactPublisherWithdrawalSettingsInput: {
212
- ...body,
213
- accessKey: token,
214
- },
215
- });
216
- success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
217
- validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
218
- }
219
- else {
220
- response = await saveWithdrawalSettings({
221
- setImpactPublisherWithdrawalSettingsInput: {
222
- ...body,
223
- },
224
- });
225
- success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
226
- validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
227
- }
228
- if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
202
+ const response = await saveWithdrawalSettings(input);
203
+ if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
229
204
  throw new Error();
230
205
  }
231
- else if (!success) {
232
- console.error("Validation failed: ", validationErrors);
206
+ else if (!((_b = response
207
+ .setImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success)) {
208
+ console.error("Validation failed: ", (_c = response
209
+ .setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
210
+ const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
233
211
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
234
212
  return {
235
213
  ...agg,
@@ -255,45 +233,6 @@ export function useBankingInfoForm(props) {
255
233
  setLoading(false);
256
234
  }
257
235
  };
258
- const onSubmit = async (event) => {
259
- let formData = {};
260
- let validationErrors = {};
261
- const controls = event.target.getFormControls();
262
- controls.forEach((control) => {
263
- if (!control.name || !control.id)
264
- return;
265
- const key = control.name;
266
- const value = control.value;
267
- JSONPointer.set(formData, key, value);
268
- if (control.required && !value) {
269
- JSONPointer.set(validationErrors, key, { type: "required" });
270
- }
271
- });
272
- setErrors({ inputErrors: validationErrors });
273
- if (Object.keys(validationErrors).length) {
274
- return;
275
- }
276
- let token = undefined;
277
- if (isPartner) {
278
- setShowVerification(true);
279
- token = await new Promise((res) => {
280
- const cb = (e) => {
281
- e.stopPropagation();
282
- host.removeEventListener(VERIFICATION_EVENT_KEY, cb);
283
- res(e.detail.token);
284
- };
285
- host.addEventListener(VERIFICATION_EVENT_KEY, cb);
286
- });
287
- setShowVerification(false);
288
- }
289
- await runMutation(formData, token);
290
- };
291
- const onVerification = async (token) => {
292
- host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
293
- detail: { token },
294
- bubbles: false,
295
- }));
296
- };
297
236
  function setPaymentMethodChecked(paymentMethod) {
298
237
  _setPaymentMethodChecked(paymentMethod);
299
238
  if (paymentMethod === "toPayPalAccount") {
@@ -318,15 +257,13 @@ export function useBankingInfoForm(props) {
318
257
  setPaymentScheduleChecked,
319
258
  onBack: () => setStep("/dashboard"),
320
259
  setCountrySearch,
321
- onVerification,
322
260
  },
323
261
  states: {
324
- showVerification,
325
262
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
326
263
  hideSteps: !!context.hideSteps,
327
264
  saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
328
265
  locale,
329
- isPartner,
266
+ isPartner: !!((_g = (_f = (_e = userData === null || userData === void 0 ? void 0 : userData.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher) === null || _g === void 0 ? void 0 : _g.withdrawalSettings),
330
267
  feeCap,
331
268
  paymentMethodFeeLabel,
332
269
  disabled: loading,
@@ -20,14 +20,6 @@ const style = {
20
20
  MessageContainer: {
21
21
  maxWidth: "400px",
22
22
  },
23
- IFrameContainer: {
24
- "@media screen and (max-width: 440px)": {
25
- position: "absolute",
26
- width: "100vw",
27
- left: "-30px",
28
- zIndex: "9999",
29
- },
30
- },
31
23
  };
32
24
  const sheet = createStyleSheet(style);
33
25
  const styleString = sheet.toString();
@@ -69,7 +61,6 @@ export const DocusignLoadingView = () => {
69
61
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
70
62
  };
71
63
  export const DocusignIframe = ({ states, data, callbacks, text, }) => {
72
- const { classes } = sheet;
73
64
  const [iFrameHeight, setiFrameHeight] = useState("100%");
74
65
  const allowedDomains = [
75
66
  "referralsaasquatch.com",
@@ -92,7 +83,7 @@ export const DocusignIframe = ({ states, data, callbacks, text, }) => {
92
83
  return () => {
93
84
  window.removeEventListener("message", callback, false);
94
85
  };
95
- }, [iFrameHeight]);
86
+ }, []);
96
87
  if (states.urlLoading)
97
88
  return h(DocusignLoadingView, null);
98
89
  if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
@@ -100,9 +91,5 @@ export const DocusignIframe = ({ states, data, callbacks, text, }) => {
100
91
  }
101
92
  if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
102
93
  return h(DocusignExpiredView, { text: text });
103
- // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
104
- return (h("div", { style: { height: iFrameHeight } },
105
- h("style", { type: "text/css" }, styleString),
106
- h("div", { class: classes.IFrameContainer },
107
- h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
94
+ return (h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
108
95
  };
@@ -13,17 +13,11 @@ export const GET_USER = gql `
13
13
  query getUserTaxInfo {
14
14
  user: viewer {
15
15
  ... on User {
16
- id
17
16
  firstName
18
17
  lastName
19
18
  email
20
19
  countryCode
21
20
  customFields
22
- managedIdentity {
23
- uid
24
- email
25
- emailVerified
26
- }
27
21
  impactConnection {
28
22
  connected
29
23
  user {
@@ -67,7 +61,6 @@ export const GET_USER = gql `
67
61
  }
68
62
  payoutsAccount {
69
63
  hold
70
- holdReasons
71
64
  balance
72
65
  }
73
66
  }