@saasquatch/mint-components 2.0.2-6 → 2.0.2-7

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 (184) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-dce2a79b.js → IndirectTaxDetailsView-e5f70b8b.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-357bc625.js → ShadowViewAddon-925a8fa6.js} +8 -8
  3. package/dist/cjs/{global-3d01d469.js → global-8bba5b3a.js} +1 -5
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +345 -115
  7. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +224 -29
  8. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-header-logo.cjs.entry.js +14 -1
  12. package/dist/cjs/{sqm-lead-checkbox-field-view-ebb9ead9.js → sqm-lead-checkbox-field-view-340acad0.js} +1 -1
  13. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
  14. package/dist/cjs/{sqm-lead-input-field-view-62debb73.js → sqm-lead-input-field-view-06ed3632.js} +1 -1
  15. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
  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-c280139a.js → sqm-portal-email-verification-view-5518eb0d.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  20. package/dist/cjs/{sqm-portal-profile-view-7bca5749.js → sqm-portal-profile-view-615e6975.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-rewards-table_9.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-stencilbook.cjs.entry.js +9 -8
  25. package/dist/cjs/{useLeadFormState-593f5d39.js → useLeadFormState-fd0445f9.js} +1 -1
  26. package/dist/cjs/{data-16106637.js → usePayoutStatus-95874989.js} +155 -129
  27. package/dist/cjs/{utils-5167439f.js → utils-83d125fa.js} +1 -1
  28. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +80 -3
  29. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +3 -3
  30. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +4 -4
  31. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
  32. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -1
  33. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +46 -40
  34. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +90 -2
  35. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +353 -0
  36. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +30 -3
  37. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +301 -1
  38. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +92 -2
  39. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +302 -2
  40. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -12
  41. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
  42. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +92 -9
  43. package/dist/collection/global/styles.js +1 -5
  44. package/dist/collection/global/styles.ts +1 -5
  45. package/dist/esm/{IndirectTaxDetailsView-b7fa596b.js → IndirectTaxDetailsView-0a57b622.js} +2 -2
  46. package/dist/esm/{ShadowViewAddon-32559cba.js → ShadowViewAddon-aae27c2e.js} +8 -8
  47. package/dist/esm/{global-55e73040.js → global-1099f20d.js} +1 -5
  48. package/dist/esm/loader.js +2 -2
  49. package/dist/esm/mint-components.js +2 -2
  50. package/dist/esm/sqm-banking-info-form_10.entry.js +296 -66
  51. package/dist/esm/sqm-big-stat_47.entry.js +202 -7
  52. package/dist/esm/sqm-code-verification.entry.js +1 -1
  53. package/dist/esm/sqm-email-verification.entry.js +1 -1
  54. package/dist/esm/sqm-empty_4.entry.js +1 -1
  55. package/dist/esm/sqm-header-logo.entry.js +14 -1
  56. package/dist/esm/{sqm-lead-checkbox-field-view-c359cc95.js → sqm-lead-checkbox-field-view-cbafee07.js} +1 -1
  57. package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
  58. package/dist/esm/{sqm-lead-input-field-view-6fe71f32.js → sqm-lead-input-field-view-f3775c28.js} +1 -1
  59. package/dist/esm/sqm-lead-input-field.entry.js +3 -3
  60. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  61. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  62. package/dist/esm/{sqm-portal-email-verification-view-176ddb91.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
  63. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  64. package/dist/esm/{sqm-portal-profile-view-6a53716b.js → sqm-portal-profile-view-3ed13e4d.js} +1 -1
  65. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  66. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  67. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  68. package/dist/esm/sqm-stencilbook.entry.js +9 -8
  69. package/dist/esm/{useLeadFormState-d8667862.js → useLeadFormState-c379e5d7.js} +1 -1
  70. package/dist/esm/{data-acdb790f.js → usePayoutStatus-c515b24b.js} +156 -130
  71. package/dist/esm/{utils-27fdc7d7.js → utils-6122971b.js} +1 -1
  72. package/dist/esm-es5/{IndirectTaxDetailsView-b7fa596b.js → IndirectTaxDetailsView-0a57b622.js} +1 -1
  73. package/dist/esm-es5/{ShadowViewAddon-32559cba.js → ShadowViewAddon-aae27c2e.js} +1 -1
  74. package/dist/esm-es5/{global-55e73040.js → global-1099f20d.js} +1 -1
  75. package/dist/esm-es5/loader.js +1 -1
  76. package/dist/esm-es5/mint-components.js +1 -1
  77. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  78. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  79. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  80. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  81. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  82. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  83. package/dist/esm-es5/{sqm-lead-checkbox-field-view-c359cc95.js → sqm-lead-checkbox-field-view-cbafee07.js} +1 -1
  84. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  85. package/dist/esm-es5/{sqm-lead-input-field-view-6fe71f32.js → sqm-lead-input-field-view-f3775c28.js} +1 -1
  86. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  87. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  88. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  89. package/dist/esm-es5/{sqm-portal-email-verification-view-176ddb91.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
  90. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  91. package/dist/esm-es5/{sqm-portal-profile-view-6a53716b.js → sqm-portal-profile-view-3ed13e4d.js} +1 -1
  92. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  93. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  94. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  95. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  96. package/dist/esm-es5/{useLeadFormState-d8667862.js → useLeadFormState-c379e5d7.js} +1 -1
  97. package/dist/esm-es5/usePayoutStatus-c515b24b.js +6 -0
  98. package/dist/esm-es5/{utils-27fdc7d7.js → utils-6122971b.js} +1 -1
  99. package/dist/mint-components/global/styles.ts +1 -5
  100. package/dist/mint-components/mint-components.esm.js +1 -1
  101. package/dist/mint-components/mint-components.js +1 -1
  102. package/dist/mint-components/{p-c25e76f7.js → p-00bc7211.js} +1 -1
  103. package/dist/mint-components/{p-3aba7c3a.system.entry.js → p-0649123a.system.entry.js} +1 -1
  104. package/dist/mint-components/p-09ab53fb.system.entry.js +1 -0
  105. package/dist/mint-components/{p-b9d63ca9.system.entry.js → p-14e813a7.system.entry.js} +1 -1
  106. package/dist/mint-components/{p-7a2375c3.system.entry.js → p-18720462.system.entry.js} +1 -1
  107. package/dist/mint-components/p-1c1ae908.system.js +6 -0
  108. package/dist/mint-components/{p-6ec7b746.system.entry.js → p-22a9114f.system.entry.js} +1 -1
  109. package/dist/mint-components/p-37544d95.system.entry.js +1 -0
  110. package/dist/mint-components/{p-73fdd315.system.js → p-38f932ae.system.js} +1 -1
  111. package/dist/mint-components/{p-5a8911c7.entry.js → p-47c83656.entry.js} +1 -1
  112. package/dist/mint-components/p-49da7b73.entry.js +273 -0
  113. package/dist/mint-components/{p-449314ca.entry.js → p-4c811d12.entry.js} +1 -1
  114. package/dist/mint-components/{p-745a27ee.system.entry.js → p-4ce51b1c.system.entry.js} +1 -1
  115. package/dist/mint-components/{p-9db05d78.js → p-4fed8672.js} +1 -1
  116. package/dist/mint-components/{p-b5905137.system.entry.js → p-511c87ce.system.entry.js} +1 -1
  117. package/dist/mint-components/{p-5b088b96.system.entry.js → p-56009bf0.system.entry.js} +1 -1
  118. package/dist/mint-components/{p-47b73018.js → p-57ce33dd.js} +2 -2
  119. package/dist/mint-components/{p-da0a7fa5.entry.js → p-5d059c95.entry.js} +1 -1
  120. package/dist/mint-components/{p-2e0a3d84.entry.js → p-5f3eafd4.entry.js} +2 -2
  121. package/dist/mint-components/{p-4cfa1432.system.js → p-60465a2d.system.js} +1 -1
  122. package/dist/mint-components/{p-93f37676.entry.js → p-60c14cec.entry.js} +1 -1
  123. package/dist/mint-components/{p-709cdbf7.system.entry.js → p-6445e926.system.entry.js} +1 -1
  124. package/dist/mint-components/{p-c803eaed.entry.js → p-6c006998.entry.js} +1 -1
  125. package/dist/mint-components/{p-618d249d.js → p-6d5bd95a.js} +1 -1
  126. package/dist/mint-components/{p-757820a4.entry.js → p-6d9ce4e5.entry.js} +1 -1
  127. package/dist/mint-components/{p-959925bf.system.entry.js → p-717b6730.system.entry.js} +1 -1
  128. package/dist/mint-components/{p-f9c3290d.system.js → p-74f43a08.system.js} +1 -1
  129. package/dist/mint-components/{p-ec0f9326.js → p-79a3344f.js} +1 -1
  130. package/dist/mint-components/{p-9504b639.js → p-7a268047.js} +1 -1
  131. package/dist/mint-components/p-8b5b2acc.entry.js +1 -0
  132. package/dist/mint-components/p-8b726fe1.system.entry.js +1 -0
  133. package/dist/mint-components/p-8b73f5bf.entry.js +99 -0
  134. package/dist/mint-components/p-967a9040.system.js +1 -0
  135. package/dist/mint-components/{p-bcb8532f.entry.js → p-a217cc8d.entry.js} +1 -1
  136. package/dist/mint-components/{p-b427cf9e.entry.js → p-a5c63310.entry.js} +1 -1
  137. package/dist/mint-components/{p-271c092c.system.js → p-aa08457e.system.js} +1 -1
  138. package/dist/mint-components/{p-887e3b03.js → p-aa8c6332.js} +1 -1
  139. package/dist/mint-components/p-ab111e29.entry.js +1 -0
  140. package/dist/mint-components/{p-e8661eaa.system.js → p-ad4348c3.system.js} +1 -1
  141. package/dist/mint-components/{p-130fd1d8.entry.js → p-aefaec37.entry.js} +1 -1
  142. package/dist/mint-components/{p-54154ed4.system.entry.js → p-bec87ac9.system.entry.js} +1 -1
  143. package/dist/mint-components/{p-52123353.system.js → p-c85f204b.system.js} +1 -1
  144. package/dist/mint-components/{p-aeea89b4.system.js → p-c994512c.system.js} +1 -1
  145. package/dist/mint-components/p-c9cceb05.js +157 -0
  146. package/dist/mint-components/{p-84632241.system.entry.js → p-d3120982.system.entry.js} +1 -1
  147. package/dist/mint-components/{p-1b7900ed.js → p-db1a0db1.js} +1 -1
  148. package/dist/mint-components/{p-bcc61fbe.system.js → p-e0a724dd.system.js} +1 -1
  149. package/dist/mint-components/p-ea0bc627.entry.js +1 -0
  150. package/dist/mint-components/{p-23c21cf4.js → p-ed16b35a.js} +1 -1
  151. package/dist/mint-components/{p-0c6259b2.system.js → p-f0eae4e6.system.js} +1 -1
  152. package/dist/mint-components/{p-46a22d08.system.entry.js → p-f401ef19.system.entry.js} +1 -1
  153. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +14 -1
  154. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +24 -0
  155. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +16 -0
  156. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +57 -0
  157. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -1
  158. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +48 -0
  159. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +12 -0
  160. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +48 -0
  161. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
  162. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  163. package/dist/types/components.d.ts +331 -41
  164. package/dist/types/global/android.d.ts +7 -0
  165. package/dist/types/global/demo.d.ts +2 -0
  166. package/dist/types/stories/features.d.ts +4 -0
  167. package/dist/types/stories/templates.d.ts +4 -0
  168. package/docs/docs.docx +0 -0
  169. package/docs/raisins.json +1 -1
  170. package/grapesjs/grapesjs.js +1 -1
  171. package/package.json +1 -1
  172. package/dist/esm-es5/data-acdb790f.js +0 -6
  173. package/dist/mint-components/p-17e3f564.system.entry.js +0 -1
  174. package/dist/mint-components/p-469a6450.system.js +0 -6
  175. package/dist/mint-components/p-8a2ec966.entry.js +0 -1
  176. package/dist/mint-components/p-8a458176.entry.js +0 -273
  177. package/dist/mint-components/p-9d4f1401.system.entry.js +0 -1
  178. package/dist/mint-components/p-9ff60e10.system.js +0 -1
  179. package/dist/mint-components/p-a7ee19dc.entry.js +0 -1
  180. package/dist/mint-components/p-c8bbd212.entry.js +0 -99
  181. package/dist/mint-components/p-e1e7d01c.js +0 -157
  182. package/dist/mint-components/p-eea87fdc.system.entry.js +0 -1
  183. package/dist/mint-components/p-fac02d24.entry.js +0 -1
  184. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -1,157 +0,0 @@
1
- import{k as n,f as t}from"./p-63e29387.js";import{d as e,J as o,$ as r,g as i,w as u}from"./p-0ec54f97.js";const a="sqm:tax-form-updated";var c=function(n){for(var t=Array(n.length),e=0;e<n.length;++e)t[e]=n[e];return t},d=function(n){return Array.isArray(n)?n:[n]},s=function(n,t){var e=n.tabIndex-t.tabIndex;if(e){if(!n.tabIndex)return 1;if(!t.tabIndex)return-1}return e||n.index-t.index},f=function(n,t,e){return c(n).map((function(n,t){return{node:n,index:t,tabIndex:e&&-1===n.tabIndex?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}})).filter((function(n){return!t||n.tabIndex>=0})).sort(s)};const l=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];var m=l.join(","),v=m+", [data-focus-guard]",p=function(n,t){return n.reduce((function(n,e){return n.concat(c(e.querySelectorAll(t?v:m)),e.parentNode?c(e.parentNode.querySelectorAll(l.join(","))).filter((function(n){return n===e})):[])}),[])},E=function n(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!((e=window.getComputedStyle(t,null))&&e.getPropertyValue&&("none"===e.getPropertyValue("display")||"hidden"===e.getPropertyValue("visibility")))&&n(t.parentNode);var e},h=function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.push(t),t.parentNode&&n(t.parentNode,e),e},y=function(n,t){for(var e=h(n),o=h(t),r=0;r<e.length;r+=1){var i=e[r];if(o.indexOf(i)>=0)return i}return!1},I=function(n){return c(n).filter((function(n){return E(n)})).filter((function(n){return function(n){return!(("INPUT"===n.tagName||"BUTTON"===n.tagName)&&("hidden"===n.type||n.disabled))}(n)}))},w=function(n,t){return f(I(p(n,t)),!0,t)},g=function(n){return"INPUT"===n.tagName&&"radio"===n.type},b=function(n,t){return t.filter(g).filter((function(t){return t.name===n.name})).filter((function(n){return n.checked}))[0]||n},R=function(n,t){return n.length>1&&g(n[t])&&n[t].name?n.indexOf(b(n[t],n)):t},F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},T=function n(t){for(var e=t.length,o=0;o<e;o+=1)for(var r=function(e){if(o!==e&&t[o].contains(t[e]))return{v:n(t.filter((function(n){return n!==t[e]})))}},i=0;i<e;i+=1){var u=r(i);if("object"===(void 0===u?"undefined":F(u)))return u.v}return t},C=function n(t){return t.parentNode?n(t.parentNode):t},N=function(n){return d(n).filter(Boolean).reduce((function(n,t){var e=t.getAttribute("data-focus-lock");return n.push.apply(n,e?T(c(C(t).querySelectorAll('[data-focus-lock="'+e+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),n}),[])},_=function(n){return n&&n.dataset&&n.dataset.focusGuard},S=function(n){return!_(n)},D=function(n,t){var e=document&&document.activeElement,o=N(n).filter(S),r=function(n,t,e){var o=d(n),r=d(t),i=o[0],u=null;return r.filter(Boolean).forEach((function(n){u=y(u||n,n)||u,e.filter(Boolean).forEach((function(n){var t=y(i,n);t&&(u=!u||t.contains(u)?t:y(t,u))}))})),u}(e||n,n,o),i=w(o).filter((function(n){return S(n.node)}));if(i[0]||(i=(u=o,f(I(p(u)),!1)).filter((function(n){return S(n.node)})))[0]){var u,a,s,l,m,v=w([r]).map((function(n){return n.node})),E=(a=v,s=i,l=new Map,s.forEach((function(n){return l.set(n.node,n)})),a.map((function(n){return l.get(n)})).filter(Boolean)),h=E.map((function(n){return n.node})),F=function(n,t,e,o,r){var i,u=n.length,a=n[0],c=n[u-1],d=_(e);if(!(n.indexOf(e)>=0)){var s=t.indexOf(e),f=t.indexOf(o||s),l=n.indexOf(o),m=s-f,v=t.indexOf(a),p=t.indexOf(c),E=R(n,0),h=R(n,u-1);return-1===s||-1===l?n.indexOf((i=r&&r.length?r:n)[0]&&i.length>1&&g(i[0])&&i[0].name?b(i[0],i):i[0]):!m&&l>=0?l:s<=v&&d&&Math.abs(m)>1?h:s>=v&&d&&Math.abs(m)>1?E:m&&Math.abs(m)>1?l:s<=v?h:s>p?E:m?Math.abs(m)>1?l:(u+l+m)%u:void 0}}(h,v,e,t,h.filter((m=function(n){return n.reduce((function(n,t){return n.concat(function(n){return I((t=n.querySelectorAll("[data-autofocus-inside]"),c(t).map((function(n){return p([n])})).reduce((function(n,t){return n.concat(t)}),[])));var t}(t))}),[])}(o),function(n){return!!n.autofocus||n.dataset&&!!n.dataset.autofocus||m.indexOf(n)>=0})));return void 0===F?F:E[F]}},x=function(n){return n===document.activeElement},A=0,O=!1,V=0,q=null,U=function(){var n,t,e=!1;if(V){var o=V;document&&document.activeElement===document.body||document&&c(document.querySelectorAll("[data-no-focus-lock]")).some((function(n){return n.contains(document.activeElement)}))||(o&&(n=o,!(!(!(t=document&&document.activeElement)||t.dataset&&t.dataset.focusGuard)&&N(n).reduce((function(n,e){return n||e.contains(t)||function(n){return t=c(n.querySelectorAll("iframe")),e=x,!!t.filter((function(n){return n===e}))[0];var t,e}(e)}),!1)))&&(e=function(n){var t,e=D(n,q);if(!O&&e){if(A>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),O=!0,void setTimeout((function(){O=!1}),1);A++,(t=e.node).focus(),t.contentWindow&&t.contentWindow.focus(),A--}}(o)),q=document.activeElement)}return e},k=[],L=function(n){return t=k.filter((function(n){return n})).slice(-1)[0],V=t,!!void(t&&U())&&(n&&n.preventDefault(),!0);var t},M=function(n){0===k.length&&document.addEventListener("focusin",L),k.indexOf(n)<0&&(k.push(n),L())},H=function(){return"undefined"==typeof window},P=function(n){n=n||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(n);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(n)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(n)}},B=0,W=0,$=0,j=null,K=!1,Q=[],z=function(n){if(H())return!1;if(!n)throw new Error("options must be provided");var t=!1,e={get passive(){t=!0}},o=function(){},r="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(r,o,e),window.removeEventListener(r,o,e);var i=n.capture;return t?n:void 0!==i&&i}({passive:!1}),Y=!H()&&"scrollBehavior"in document.documentElement.style,G=function(n){n.cancelable&&n.preventDefault()},J=function(n){var t,e,o,r,i;H()||(P().ios?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){n&&-1===Q.indexOf(n)&&(n.ontouchstart=function(n){W=n.targetTouches[0].clientY,$=n.targetTouches[0].clientX},n.ontouchmove=function(t){1===t.targetTouches.length&&function(n,t){if(t){var e=t.scrollTop,o=t.scrollLeft,r=t.scrollWidth,i=t.scrollHeight,u=t.clientWidth,a=t.clientHeight,c=n.targetTouches[0].clientX-$,d=n.targetTouches[0].clientY-W,s=Math.abs(d)>Math.abs(c);if(s&&(d>0&&0===e||d<0&&e+a+1>=i)||!s&&(c>0&&0===o||c<0&&o+u+1>=r))return G(n)}n.stopPropagation()}(t,n)},Q.push(n))})),K||(document.addEventListener("touchmove",G,z),K=!0)):B<=0&&(j=P().android?(t=document.documentElement,e=document.body,o=t.scrollTop||e.scrollTop,r=Object.assign({},t.style),i=Object.assign({},e.style),t.style.height="100%",t.style.overflow="hidden",e.style.top="-".concat(o,"px"),e.style.width="100%",e.style.height="auto",e.style.position="fixed",e.style.overflow="hidden",function(){t.style.height=r.height||"",t.style.overflow=r.overflow||"",["top","width","height","overflow","position"].forEach((function(n){e.style[n]=i[n]||""})),Y?window.scrollTo({top:o,behavior:"instant"}):window.scrollTo(0,o)}):function(){var n=document.body,t=Object.assign({},n.style),e=window.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.paddingRight="".concat(e,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(e){n.style[e]=t[e]||""}))}}()),B+=1)},X=function(n){H()||(B-=1)>0||(P().ios||"function"!=typeof j?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){var t=Q.indexOf(n);-1!==t&&(n.ontouchmove=null,n.ontouchstart=null,Q.splice(t,1))})),K&&(document.removeEventListener("touchmove",G,z),K=!1)):j())};const Z="\n position: fixed !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n z-index: 9999999;\n display: block !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n background: rgba(0, 0, 0, 0.6);\n",nn="\n position: absolute !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n background: none;\n border: none\n";let tn=function(n){return n.VERIFF_HANDSHAKE="VERIFF_HANDSHAKE",n.VERIFF_RENDER="VERIFF_RENDER",n.VERIFF_STARTED="VERIFF_STARTED",n.VERIFF_SUBMITTED="VERIFF_SUBMITTED",n.VERIFF_FINISHED="VERIFF_FINISHED",n.VERIFF_CANCELED="VERIFF_CANCELED",n.VERIFF_FORCE_RELOAD="VERIFF_FORCE_RELOAD",n.VERIFF_RELOAD_REQUEST="VERIFF_RELOAD_REQUEST",n}({}),en=function(n){return n.STARTED="STARTED",n.SUBMITTED="SUBMITTED",n.FINISHED="FINISHED",n.CANCELED="CANCELED",n.RELOAD_REQUEST="RELOAD",n}({});function on(n){let{url:t,lang:e,onEvent:o=(()=>{}),embedded:r=!1,embeddedOptions:i,onReload:u}=n;if(!t)throw new Error("URL is not provided. Please provide a valid Veriff session url.");const a=function(n){if(n)try{return matchMedia("(max-width: 767px), (hover: none)").matches}catch(n){return console.error("Error while checking if iframe is mobile",n),!1}return!1}(r);function c(){const n=document.getElementById("veriffFrame");if(n&&n.parentNode){t=n,k=k.filter((function(n){return n!==t})),L(),0===k.length&&document.removeEventListener("focusin",L),X(n);let e=n.parentNode.parentNode,o=n.parentNode;r&&!a&&(e=n.parentNode,o=n),e&&e.removeChild(o)}else X();var t;window.removeEventListener("message",d)}function d(n){const t=document.getElementById("veriffFrame");n.data===tn.VERIFF_HANDSHAKE&&function(n,t){n.contentWindow?.postMessage({name:tn.VERIFF_RENDER,payload:t},"*")}(t,{version:"2.3.1",isReloadHandled:"function"==typeof u,isVeriffIframeMobile:a,embeddedConfigured:r,embedded:!a&&r}),n.data===tn.VERIFF_STARTED&&o(en.STARTED),n.data===tn.VERIFF_CANCELED&&(c(),o(en.CANCELED)),n.data===tn.VERIFF_SUBMITTED&&o(en.SUBMITTED),n.data===tn.VERIFF_FINISHED&&(c(),o(en.FINISHED)),n.data===tn.VERIFF_FORCE_RELOAD&&window.location.reload(),n.data===tn.VERIFF_RELOAD_REQUEST&&("function"==typeof u&&u(),o(en.RELOAD_REQUEST))}return function(n,t,e,o){const r=document.createElement("iframe");if(r.src=n,r.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;",r.id="veriffFrame",t)!function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{rootElementID:o}=t;if(e){n.style.cssText=nn;const t=document.createElement("div");t.style.cssText=Z,t.appendChild(n),document.body.appendChild(t),M(n),J(n)}else{if(!o)throw new Error("rootElementID must be specified in embedded mode");if(!document.getElementById(o))throw new Error("rootElementID must point to an existing DOM element");n.style.cssText="\n position: static;\n width: 100%;\n height: 100%;\n",document.getElementById(o).appendChild(n)}}(r,e,o);else{r.style.cssText=nn;const n=function(){const n=document.createElement("div");return n.style.cssText=Z,n}();n.appendChild(r),document.body.appendChild(n),M(r),J(r)}}(e&&e.length>0?function(n,t,e){if(e){const t=new URL(n),o=t.searchParams;return o.set("lang",e),t.search=o.toString(),t.toString()}return n}(t,0,e):t,r,i,a),window.addEventListener("message",d),{close:c}}const rn=e.gql`
2
- mutation createImpactVerificationSession($user: UserIdInput!) {
3
- createImpactPublisherIdentityVerificationSession(user: $user) {
4
- sessionUrl
5
- }
6
- }
7
- `,un=e.gql`
8
- mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {
9
- refreshImpactPublisherFinanceStatus(user: $user) {
10
- id
11
- }
12
- }
13
- `,an="sqm:veriff-updated";function cn(){const{id:n,accountId:t}=o(),[e,{loading:i,errors:u}]=r(rn),[a,{loading:c,errors:d}]=r(un);return{render:async()=>{try{const o=await e({user:{id:n,accountId:t}});if(!o||o.message)throw new Error;on({url:o.createImpactPublisherIdentityVerificationSession.sessionUrl,onEvent:e=>{switch(e){case en.FINISHED:case en.CANCELED:(async()=>{try{const e=await a({user:{id:n,accountId:t}});if(!e||e.message)throw new Error;window.dispatchEvent(new Event("sqm:veriff-updated"))}catch(n){console.error("Failed to initialise Veriff:",n)}})()}}})}catch(n){console.error("Failed to initialise Veriff:",n)}},loading:i||c,errors:u||d}}const dn=e.gql`
14
- query getUserStatus {
15
- user: viewer {
16
- ... on User {
17
- id
18
- impactConnection {
19
- connected
20
- publisher {
21
- id
22
- payoutsAccount {
23
- hold
24
- holdReasons
25
- }
26
- }
27
- }
28
- rewards(limit: 1000) {
29
- data {
30
- statuses
31
- partnerFundsTransfer {
32
- id
33
- status
34
- }
35
- }
36
- }
37
- }
38
- }
39
- }
40
- `,sn=e.gql`
41
- query getTenantSettings {
42
- tenantSettings {
43
- enforceUsTaxCompliance
44
- }
45
- }
46
- `;function fn(n){var t,e,o,r,i,u,a,c,d,s,f,l,m,v,p;const E=null===(e=null===(t=n.user.impactConnection)||void 0===t?void 0:t.publisher)||void 0===e?void 0:e.payoutsAccount,h=null===(i=null===(r=null===(o=null==n?void 0:n.user)||void 0===o?void 0:o.rewards)||void 0===r?void 0:r.data)||void 0===i?void 0:i.find((n=>n.statuses.includes("REDEEMED")&&"TRANSFERRED"===n.partnerFundsTransfer.status));if(!(null===(a=null===(u=n.user)||void 0===u?void 0:u.impactConnection)||void 0===a?void 0:a.connected)||!E)return"INFORMATION_REQUIRED";const y=null===(d=null===(c=n.user.impactConnection)||void 0===c?void 0:c.publisher)||void 0===d?void 0:d.currentTaxDocument;return(null===(s=E.holdReasons)||void 0===s?void 0:s.includes("NO_W9_DOCUMENT"))&&!y?"OVER_W9_THRESHOLD":(null===(f=E.holdReasons)||void 0===f?void 0:f.includes("IDV_CHECK_REQUIRED"))?"VERIFICATION:REQUIRED":(null===(l=E.holdReasons)||void 0===l?void 0:l.includes("IDV_CHECK_REQUIRED_INTERNAL"))?"VERIFICATION:INTERNAL":(null===(m=E.holdReasons)||void 0===m?void 0:m.includes("IDV_CHECK_REVIEW_INTERNAL"))?"VERIFICATION:REVIEW":(null===(v=E.holdReasons)||void 0===v?void 0:v.includes("IDV_CHECK_FAILED_INTERNAL"))?"VERIFICATION:FAILED":(null===(p=E.holdReasons)||void 0===p?void 0:p.includes("NEW_PAYEE_REVIEW"))&&h?"ACCOUNT_REVIEW":E.hold?"HOLD":"DONE"}function ln(e){var o;const{type:r}=i(),{loading:a,data:c,errors:d,refetch:s}=u(dn,{}),{data:f}=u(sn,{}),{render:l,loading:m}=cn(),[v,p]=n(void 0),E=null===(o=null==f?void 0:f.tenantSettings)||void 0===o?void 0:o.enforceUsTaxCompliance;return t((()=>{if(!c)return;const n=fn(c);p(n)}),[c]),t((()=>{const n=()=>s();return window.addEventListener("sqm:tax-form-updated",n),window.addEventListener("sqm:veriff-updated",n),()=>{window.removeEventListener("sqm:tax-form-updated",n),window.removeEventListener("sqm:veriff-updated",n)}}),[]),{states:{loading:a,veriffLoading:m,status:v,error:!!d,enforceUsTaxComplianceOption:E},data:{type:r},text:e.getTextProps(),callbacks:{onTermsClick:()=>{let n=e.cashPayoutsPageUrl;n.includes("#")&&(n=n.split("#")[0]),"INFORMATION_REQUIRED"===v?n+="#1":"OVER_W9_THRESHOLD"===v&&"CASH_ONLY_DEFER_W9"===E&&(n+="#3"),window.history.pushState(null,"",n)},onClick:l}}}const mn="sq:tax-and-cash",vn="sq:tax-form-context",pn="sq:user-info-query",En="sq:user-form-context",hn="sq:finance-network-settings",yn="sq:countries:list",In="sq:countries:sorted",wn="sq:countries:query",gn="sq:currencies:list",bn="sq:currencies:query",Rn=e.gql`
47
- query getUserTaxInfo {
48
- user: viewer {
49
- ... on User {
50
- id
51
- firstName
52
- lastName
53
- email
54
- countryCode
55
- customFields
56
- rewards(limit: 1000) {
57
- data {
58
- statuses
59
- partnerFundsTransfer {
60
- id
61
- status
62
- }
63
- }
64
- }
65
- managedIdentity {
66
- uid
67
- email
68
- emailVerified
69
- }
70
- impactConnection {
71
- connected
72
- user {
73
- firstName
74
- lastName
75
- }
76
- publisher {
77
- id
78
- brandedSignup
79
- countryCode
80
- currency
81
- billingAddress
82
- billingCity
83
- billingState
84
- billingCountryCode
85
- billingPostalCode
86
- phoneNumberCountryCode
87
- phoneNumber
88
- taxInformation {
89
- indirectTaxId
90
- indirectTaxCountryCode
91
- indirectTaxRegion
92
- additionalTaxId
93
- withholdingTaxId
94
- withholdingTaxCountryCode
95
- }
96
- requiredTaxDocumentType
97
- currentTaxDocument {
98
- status
99
- type
100
- dateCreated
101
- }
102
- withdrawalSettings {
103
- paymentMethod
104
- paypalEmailAddress
105
- bankCountry
106
- bankAccountNumber
107
- paymentSchedulingType
108
- paymentThreshold
109
- paymentDay
110
- }
111
- payoutsAccount {
112
- hold
113
- holdReasons
114
- balance
115
- }
116
- }
117
- }
118
- }
119
- }
120
- }
121
- `,Fn=e.gql`
122
- query getCountries {
123
- impactPayoutCountries(limit: 1000) {
124
- data {
125
- countryCode
126
- displayName
127
- }
128
- }
129
- }
130
- `,Tn=e.gql`
131
- query currencies($locale: RSLocale) {
132
- currencies(limit: 300) {
133
- data {
134
- displayName(locale: $locale)
135
- currencyCode
136
- }
137
- }
138
- }
139
- `,Cn=e.gql`
140
- query impactFinanceNetworkSettings(
141
- $filter: ImpactFinanceNetworkSettingsFilterInput
142
- ) {
143
- impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
144
- data {
145
- countryCode
146
- currency
147
- defaultFinancePaymentMethodId
148
- thresholdOptions
149
- withdrawalSettingId
150
- internationalEftFee
151
- foreignFxFee
152
- defaultFxFee
153
- }
154
- totalCount
155
- }
156
- }
157
- `,Nn=4;export{gn as C,hn as F,Rn as G,In as S,mn as T,En as U,an as V,vn as a,yn as b,pn as c,wn as d,Fn as e,Cn as f,bn as g,Tn as h,Nn as i,a as j,cn as k,fn as l,ln as u}
@@ -1 +0,0 @@
1
- System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js"],(function(t){"use strict";var e,i,n,s;return{setters:[function(t){e=t.r;i=t.h;n=t.c},function(t){s=t.n}],execute:function(){var r=t("sqm_header_logo",function(){function t(t){e(this,t);this.nextPage="/";this.height=60;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return i(n,null,i("a",{href:this.nextPage,part:"sqm-link"},i("img",{style:{height:(this===null||this===void 0?void 0:this.height)+"px"},src:this===null||this===void 0?void 0:this.imageUrl})))};return t}())}}}));
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-c7c11325.js";import"./p-1b7900ed.js";import{i as e,n as i}from"./p-63e29387.js";import{i as o}from"./p-0ec54f97.js";import{c as r}from"./p-c1086930.js";import{a,g as c}from"./p-9ec99ced.js";import"./p-cef45012.js";import{L as n,R as h}from"./p-23c21cf4.js";import{L as m}from"./p-9db05d78.js";const p=class{constructor(t){s(this,t),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,i(this)}disconnectedCallback(){}render(){const s=a([{attribute:"checkbox-name",value:this.checkboxName}]);if(!o()&&s)return t(h,{missingProps:s,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const i={...c(this)},{states:p}=o()?r({states:{leadFormState:{}}},this.demoData||{},{arrayMerge:(s,t)=>t}):{states:{leadFormState:e(n)}};return t(m,{states:p,content:i})}};export{p as sqm_lead_checkbox_field}
@@ -1,4 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0 2C0 0.895431 0.895431 0 2 0H14C15.1046 0 16 0.895431 16 2V14C16 15.1046 15.1046 16 14 16H2C0.895431 16 0 15.1046 0 14V2Z" fill="currentColor"/>
3
- <path d="M8.86754 7.23214L12.5378 3H11.6681L8.48117 6.67471L5.93579 3H3L6.84911 8.55681L3 12.9949H3.86979L7.23525 9.11425L9.92336 12.9949H12.8592L8.86732 7.23214H8.86754ZM7.67624 8.60577L7.28624 8.05244L4.18319 3.64951H5.51914L8.02334 7.20281L8.41333 7.75615L11.6685 12.3749H10.3325L7.67624 8.60598V8.60577Z" fill="white"/>
4
- </svg>