@saasquatch/mint-components 1.11.1-1 → 1.12.0-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 (429) hide show
  1. package/dist/cjs/{ShadowViewAddon-2c6026c3.js → ShadowViewAddon-88821c64.js} +229 -154
  2. package/dist/cjs/{global-02e50f09.js → global-c3637175.js} +2 -2
  3. package/dist/cjs/{index.module-df530553.js → index.module-b8d9d0ba.js} +55 -18
  4. package/dist/cjs/keys-cff24974.js +11 -0
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/mint-components.cjs.js +3 -3
  7. package/dist/cjs/{re-render-1976e05e.js → re-render-5bde3d2e.js} +4 -4
  8. package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
  9. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +211 -105
  10. package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +278 -178
  11. package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
  12. package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
  13. package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-email-verification.cjs.entry.js +137 -0
  15. package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
  17. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +5 -5
  18. package/dist/cjs/{sqm-invoice-table-view-e3b03a00.js → sqm-invoice-table-view-ce9a34ac.js} +20 -1
  19. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
  20. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +5 -5
  21. package/dist/cjs/{sqm-navigation-sidebar-item-view-4e90b6f5.js → sqm-navigation-sidebar-item-view-a2135064.js} +3 -3
  22. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
  23. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
  24. package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
  25. package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
  26. package/dist/cjs/{sqm-portal-email-verification-view-bff9783d.js → sqm-portal-email-verification-view-050dbe0f.js} +2 -2
  27. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +9 -9
  28. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +6 -6
  29. package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
  30. package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-d97086bc.js} +1 -1
  31. package/dist/cjs/sqm-portal-profile.cjs.entry.js +9 -9
  32. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  33. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
  34. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
  35. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -9
  36. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -8
  37. package/dist/cjs/sqm-referred-registration.cjs.entry.js +5 -5
  38. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  39. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +13 -13
  40. package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
  41. package/dist/cjs/sqm-stencilbook.cjs.entry.js +225 -272
  42. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  43. package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
  44. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +33 -0
  45. package/dist/cjs/sqm-widget-verification.cjs.entry.js +127 -0
  46. package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-410d2435.js} +2 -2
  47. package/dist/cjs/useEmailVerification-30a1c7f6.js +75 -0
  48. package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
  49. package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-824ac152.js} +9 -9
  50. package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-f9ce55be.js} +2 -2
  51. package/dist/cjs/{utilities-cec9dd36.js → utilities-f7de6c04.js} +1 -1
  52. package/dist/collection/collection-manifest.json +6 -10
  53. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
  54. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  55. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +9 -0
  56. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +22 -0
  57. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +105 -0
  58. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +44 -0
  59. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +0 -20
  60. package/dist/collection/components/sqm-share-button/useShareButton.js +16 -15
  61. package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
  62. package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
  63. package/dist/collection/components/sqm-share-link/useShareLink.js +3 -5
  64. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -6
  65. package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
  66. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +29 -0
  67. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +118 -0
  68. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +330 -0
  69. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +144 -0
  70. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -0
  71. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +78 -0
  72. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +172 -0
  73. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +70 -0
  74. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +27 -0
  75. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +132 -0
  76. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +3 -0
  77. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +1 -0
  78. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +18 -0
  79. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +4 -1
  80. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +94 -38
  81. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +16 -2
  82. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +12 -0
  83. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +72 -0
  84. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +217 -0
  85. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +50 -0
  86. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +1 -0
  87. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +16 -0
  88. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +80 -1
  89. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
  90. package/dist/collection/components/views/copy-text-view.js +2 -16
  91. package/dist/esm/{ShadowViewAddon-5bb2b69a.js → ShadowViewAddon-65c8679e.js} +227 -153
  92. package/dist/esm/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
  93. package/dist/esm/{index.module-f122af7b.js → index.module-6c840c4e.js} +40 -3
  94. package/dist/esm/keys-a1496e39.js +6 -0
  95. package/dist/esm/loader.js +3 -3
  96. package/dist/esm/mint-components.js +3 -3
  97. package/dist/esm/{re-render-c64289f3.js → re-render-1bcfd0de.js} +4 -4
  98. package/dist/esm/sqm-asset-card.entry.js +2 -2
  99. package/dist/esm/sqm-banking-info-form_16.entry.js +211 -105
  100. package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +275 -176
  101. package/dist/esm/sqm-close-button.entry.js +3 -3
  102. package/dist/esm/sqm-code-verification.entry.js +348 -0
  103. package/dist/esm/sqm-context-router.entry.js +2 -2
  104. package/dist/esm/sqm-email-verification.entry.js +133 -0
  105. package/dist/esm/sqm-empty_4.entry.js +3 -3
  106. package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
  107. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  108. package/dist/esm/{sqm-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-08c03ba7.js} +20 -1
  109. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  110. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  111. package/dist/esm/{sqm-navigation-sidebar-item-view-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.js} +3 -3
  112. package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
  113. package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
  114. package/dist/esm/sqm-password-field.entry.js +4 -4
  115. package/dist/esm/sqm-popup-container.entry.js +4 -4
  116. package/dist/esm/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +2 -2
  117. package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
  118. package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
  119. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  120. package/dist/esm/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
  121. package/dist/esm/sqm-portal-profile.entry.js +9 -9
  122. package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
  123. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  124. package/dist/esm/sqm-portal-reset-password.entry.js +9 -9
  125. package/dist/esm/sqm-portal-verify-email.entry.js +9 -9
  126. package/dist/esm/sqm-referral-table_11.entry.js +8 -8
  127. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  128. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  129. package/dist/esm/sqm-rewards-table_9.entry.js +13 -13
  130. package/dist/esm/sqm-scroll.entry.js +105 -0
  131. package/dist/esm/sqm-stencilbook.entry.js +212 -259
  132. package/dist/esm/sqm-tab.entry.js +2 -2
  133. package/dist/esm/sqm-tabs.entry.js +4 -4
  134. package/dist/esm/sqm-widget-verification-internal.entry.js +29 -0
  135. package/dist/esm/sqm-widget-verification.entry.js +123 -0
  136. package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
  137. package/dist/esm/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +2 -2
  138. package/dist/esm/useEmailVerification-7135732c.js +72 -0
  139. package/dist/esm/{useInstantAccessRegistration-9d4cb797.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
  140. package/dist/esm/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +9 -9
  141. package/dist/esm/{useRegistrationFormState-53c71782.js → useRegistrationFormState-849e27f7.js} +2 -2
  142. package/dist/esm/{utilities-18d10876.js → utilities-443732be.js} +1 -1
  143. package/dist/esm-es5/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
  144. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
  145. package/dist/esm-es5/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
  146. package/dist/esm-es5/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
  147. package/dist/esm-es5/index.module-6c840c4e.js +1 -0
  148. package/dist/esm-es5/keys-a1496e39.js +1 -0
  149. package/dist/esm-es5/loader.js +1 -1
  150. package/dist/esm-es5/mint-components.js +1 -1
  151. package/dist/esm-es5/{re-render-c64289f3.js → re-render-1bcfd0de.js} +1 -1
  152. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  153. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  154. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
  155. package/dist/esm-es5/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
  156. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  157. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  158. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  159. package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
  160. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  161. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  162. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  163. package/dist/esm-es5/sqm-invoice-table-view-08c03ba7.js +1 -0
  164. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  165. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  166. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.js} +1 -1
  167. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  168. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  169. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  170. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  171. package/dist/esm-es5/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
  172. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  173. package/dist/esm-es5/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
  174. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  175. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  176. package/dist/esm-es5/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
  177. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  178. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  179. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  180. package/dist/esm-es5/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
  181. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  182. package/dist/esm-es5/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
  183. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  184. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  185. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  186. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  187. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  188. package/dist/esm-es5/sqm-scroll.entry.js +1 -0
  189. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  190. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  191. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  192. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -0
  193. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
  194. package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
  195. package/dist/esm-es5/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +1 -1
  196. package/dist/esm-es5/useEmailVerification-7135732c.js +1 -0
  197. package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +1 -0
  198. package/dist/esm-es5/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +1 -1
  199. package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
  200. package/dist/esm-es5/{utilities-18d10876.js → utilities-443732be.js} +1 -1
  201. package/dist/mint-components/mint-components.esm.js +1 -1
  202. package/dist/mint-components/mint-components.js +1 -1
  203. package/dist/mint-components/p-0121e044.js +1 -0
  204. package/dist/mint-components/{p-12c56ba6.entry.js → p-012daf3c.entry.js} +1 -1
  205. package/dist/mint-components/{p-1b1d10e5.entry.js → p-03dbe2ce.entry.js} +1 -1
  206. package/dist/mint-components/{p-8077e9c6.js → p-04348a9b.js} +1 -1
  207. package/dist/mint-components/{p-8c97bfb1.system.entry.js → p-04ced592.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-7962ab58.system.entry.js → p-0527d90b.system.entry.js} +1 -1
  209. package/dist/mint-components/{p-01434e4a.entry.js → p-0893073b.entry.js} +1 -1
  210. package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
  211. package/dist/mint-components/p-117b4705.system.js +1 -0
  212. package/dist/mint-components/p-11d1b212.js +1 -0
  213. package/dist/mint-components/{p-dc41ff27.entry.js → p-1b861be5.entry.js} +1 -1
  214. package/dist/mint-components/{p-32cf8417.js → p-1b9e6fc6.js} +1 -1
  215. package/dist/mint-components/p-1bd0cda8.system.entry.js +1 -0
  216. package/dist/mint-components/{p-991c9787.js → p-1d27da33.js} +2 -2
  217. package/dist/mint-components/p-1ee62d9f.system.entry.js +1 -0
  218. package/dist/mint-components/{p-de2a8fae.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
  219. package/dist/mint-components/p-1f9a9b70.system.entry.js +1 -0
  220. package/dist/mint-components/{p-5c845bc2.system.entry.js → p-22425c71.system.entry.js} +1 -1
  221. package/dist/mint-components/p-23fdd44e.entry.js +1 -0
  222. package/dist/mint-components/{p-3373d84e.js → p-2816bf6a.js} +1 -1
  223. package/dist/mint-components/p-2868f475.entry.js +1 -0
  224. package/dist/mint-components/p-2a414b2e.system.js +2 -2
  225. package/dist/mint-components/{p-a474b0ec.system.entry.js → p-36e9296e.system.entry.js} +1 -1
  226. package/dist/mint-components/p-36f7caec.system.entry.js +1 -0
  227. package/dist/mint-components/{p-b334bde8.entry.js → p-3925bcd6.entry.js} +2 -2
  228. package/dist/mint-components/p-39397731.entry.js +1 -0
  229. package/dist/mint-components/p-39af4acd.entry.js +240 -0
  230. package/dist/mint-components/{p-e2bb72eb.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-59c141a2.system.js → p-3ed71bef.system.js} +1 -1
  232. package/dist/mint-components/{p-bf834367.system.js → p-43621f12.system.js} +1 -1
  233. package/dist/mint-components/{p-110dddfe.entry.js → p-4671e644.entry.js} +1 -1
  234. package/dist/mint-components/{p-0f028514.system.js → p-4babe350.system.js} +1 -1
  235. package/dist/mint-components/p-4c9b6fbe.system.js +1 -0
  236. package/dist/mint-components/p-4e373c3d.system.js +1 -0
  237. package/dist/mint-components/{p-03a647c2.system.js → p-4e48267b.system.js} +1 -1
  238. package/dist/mint-components/{p-9deac406.system.js → p-4eae91a9.system.js} +1 -1
  239. package/dist/mint-components/{p-0806343b.js → p-509e29e6.js} +1 -1
  240. package/dist/mint-components/{p-53ff8bd0.system.entry.js → p-51d53165.system.entry.js} +1 -1
  241. package/dist/mint-components/{p-246a2827.entry.js → p-5291891c.entry.js} +2 -2
  242. package/dist/mint-components/{p-c1ba2ad0.system.entry.js → p-59818690.system.entry.js} +1 -1
  243. package/dist/mint-components/{p-55588b46.system.js → p-5becb2ff.system.js} +1 -1
  244. package/dist/mint-components/{p-c39f9dc1.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
  245. package/dist/mint-components/{p-22de9f73.system.entry.js → p-64491210.system.entry.js} +1 -1
  246. package/dist/mint-components/p-65e2c043.system.js +1 -0
  247. package/dist/mint-components/p-663303b7.entry.js +8 -0
  248. package/dist/mint-components/p-66a04cca.system.entry.js +1 -0
  249. package/dist/mint-components/{p-1df19ea2.js → p-68747d88.js} +1 -1
  250. package/dist/mint-components/{p-96cb9c17.entry.js → p-6c928c7d.entry.js} +1 -1
  251. package/dist/mint-components/p-6cae44d7.js +1 -0
  252. package/dist/mint-components/{p-b0ce005d.entry.js → p-721a89c6.entry.js} +2 -2
  253. package/dist/mint-components/{p-6e62f207.entry.js → p-76392386.entry.js} +1 -1
  254. package/dist/mint-components/{p-bb6f6681.system.js → p-7d5e0645.system.js} +1 -1
  255. package/dist/mint-components/{p-daba8cd2.system.entry.js → p-7dd1ff31.system.entry.js} +1 -1
  256. package/dist/mint-components/p-7f5c7bf7.system.entry.js +1 -0
  257. package/dist/mint-components/{p-ec8a9e91.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
  258. package/dist/mint-components/{p-d3d281ff.entry.js → p-84b25a46.entry.js} +1 -1
  259. package/dist/mint-components/{p-82e09b8d.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
  260. package/dist/mint-components/p-8a337864.js +7 -0
  261. package/dist/mint-components/{p-73decce7.system.js → p-8d554a89.system.js} +1 -1
  262. package/dist/mint-components/p-93576222.system.js +1 -0
  263. package/dist/mint-components/p-94454880.entry.js +1 -0
  264. package/dist/mint-components/p-947fe79b.entry.js +1 -0
  265. package/dist/mint-components/p-99c15c5e.entry.js +1 -0
  266. package/dist/mint-components/{p-9288cca6.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
  267. package/dist/mint-components/p-9d34f4f0.entry.js +33 -0
  268. package/dist/mint-components/p-9e0230c3.entry.js +1 -0
  269. package/dist/mint-components/{p-476182e7.system.entry.js → p-9ec008cb.system.entry.js} +1 -1
  270. package/dist/mint-components/p-a02afa72.system.js +1 -0
  271. package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
  272. package/dist/mint-components/{p-798ed3a2.entry.js → p-a45b03d2.entry.js} +1 -1
  273. package/dist/mint-components/{p-523ed056.system.js → p-a51533cb.system.js} +1 -1
  274. package/dist/mint-components/p-a5a9aa07.entry.js +189 -0
  275. package/dist/mint-components/p-a85f57bb.entry.js +1 -0
  276. package/dist/mint-components/{p-21d4f6ce.system.js → p-ac51940e.system.js} +1 -1
  277. package/dist/mint-components/p-b1e8a802.entry.js +1 -0
  278. package/dist/mint-components/{p-fec0ac31.js → p-b651706a.js} +24 -24
  279. package/dist/mint-components/{p-14dac608.system.entry.js → p-bc826117.system.entry.js} +1 -1
  280. package/dist/mint-components/p-bdd6bb13.js +1 -0
  281. package/dist/mint-components/{p-67846dce.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
  282. package/dist/mint-components/{p-3cc5474d.entry.js → p-bee1e573.entry.js} +1 -1
  283. package/dist/mint-components/{p-fb2c0ce4.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
  284. package/dist/mint-components/p-c3b37bbf.js +1 -0
  285. package/dist/mint-components/{p-ff41c804.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
  286. package/dist/mint-components/{p-18a19cb5.system.js → p-c5577dd7.system.js} +1 -1
  287. package/dist/mint-components/{p-02f6cda4.js → p-c5d2e4ba.js} +1 -1
  288. package/dist/mint-components/p-c763c0b2.js +1 -0
  289. package/dist/mint-components/{p-ed161025.js → p-c8610d0c.js} +1 -1
  290. package/dist/mint-components/p-c92a743e.entry.js +1 -0
  291. package/dist/mint-components/p-c9fb6102.entry.js +1 -0
  292. package/dist/mint-components/p-ca809fdd.system.js +1 -0
  293. package/dist/mint-components/{p-f52c3aec.system.entry.js → p-cb433855.system.entry.js} +1 -1
  294. package/dist/mint-components/{p-f44d88fa.system.js → p-cd44de66.system.js} +1 -1
  295. package/dist/mint-components/p-d35d8c06.entry.js +11 -0
  296. package/dist/mint-components/{p-cfbe2f86.entry.js → p-d468925f.entry.js} +1 -1
  297. package/dist/mint-components/{p-15dee492.js → p-d49e2f7a.js} +1 -1
  298. package/dist/mint-components/{p-9c3d78e9.js → p-d83b0cf3.js} +1 -1
  299. package/dist/mint-components/{p-6e7e8af6.system.js → p-def516b8.system.js} +1 -1
  300. package/dist/mint-components/{p-e41cb11f.js → p-e0e7635a.js} +1 -1
  301. package/dist/mint-components/{p-a1150633.system.entry.js → p-e12d3414.system.entry.js} +1 -1
  302. package/dist/mint-components/{p-ce746af8.system.js → p-e8dde8f4.system.js} +1 -1
  303. package/dist/mint-components/p-e93e5740.entry.js +1 -0
  304. package/dist/mint-components/p-e9ca48fc.system.entry.js +1 -0
  305. package/dist/mint-components/p-ead27698.system.entry.js +1 -0
  306. package/dist/mint-components/{p-1c6e4a5f.entry.js → p-f36e33ff.entry.js} +2 -2
  307. package/dist/mint-components/{p-1ce4fa30.system.entry.js → p-f450654b.system.entry.js} +1 -1
  308. package/dist/mint-components/{p-1c710e16.entry.js → p-f4cbbe47.entry.js} +1 -1
  309. package/dist/mint-components/{p-d68ed4a6.system.entry.js → p-f531a5c9.system.entry.js} +1 -1
  310. package/dist/mint-components/{p-acc93caa.system.entry.js → p-f56348dc.system.entry.js} +1 -1
  311. package/dist/mint-components/p-f655a7df.js +1 -0
  312. package/dist/mint-components/{p-855ae1b5.js → p-fb93c962.js} +1 -1
  313. package/dist/mint-components/{p-46ca288c.system.js → p-fc422446.system.js} +1 -1
  314. package/dist/mint-components/{p-fae82751.entry.js → p-fd21ae8f.entry.js} +1 -1
  315. package/dist/mint-components/p-fd2c5407.js +2 -2
  316. package/dist/types/components/{sqm-pagination/Pagination.stories.d.ts → sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts} +1 -0
  317. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +10 -0
  318. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +19 -0
  319. package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
  320. package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -1
  321. package/dist/types/components/sqm-share-link/useShareLink.d.ts +0 -1
  322. package/dist/types/components/sqm-widget-verification/keys.d.ts +4 -0
  323. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +8 -0
  324. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +26 -0
  325. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +60 -0
  326. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +23 -0
  327. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +7 -0
  328. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +16 -0
  329. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +32 -0
  330. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +9 -0
  331. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +5 -0
  332. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +8 -0
  333. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +1 -0
  334. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  335. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
  336. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
  337. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +8 -0
  338. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +18 -0
  339. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +21 -0
  340. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -0
  341. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +5 -0
  342. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +16 -0
  343. package/dist/types/components/views/copy-text-view.d.ts +0 -2
  344. package/dist/types/components.d.ts +296 -170
  345. package/dist/types/global/android.d.ts +7 -0
  346. package/dist/types/global/demo.d.ts +2 -0
  347. package/dist/types/stories/features.d.ts +4 -0
  348. package/dist/types/stories/templates.d.ts +4 -0
  349. package/docs/docs.docx +0 -0
  350. package/docs/raisins.json +1 -1
  351. package/grapesjs/grapesjs.js +1 -1
  352. package/package.json +2 -2
  353. package/dist/cjs/copy-text-view-a22ad7e7.js +0 -173
  354. package/dist/cjs/sqm-pagination_3.cjs.entry.js +0 -316
  355. package/dist/collection/components/sqm-pagination/Pagination.stories.js +0 -12
  356. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +0 -30
  357. package/dist/collection/components/sqm-pagination/sqm-pagination.js +0 -85
  358. package/dist/collection/components/sqm-pagination/usePagination.js +0 -8
  359. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -60
  360. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +0 -315
  361. package/dist/collection/components/sqm-referral-code/useReferralCode.js +0 -51
  362. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -35
  363. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +0 -59
  364. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +0 -99
  365. package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +0 -75
  366. package/dist/esm/copy-text-view-bf55abeb.js +0 -168
  367. package/dist/esm/sqm-pagination_3.entry.js +0 -310
  368. package/dist/esm-es5/ShadowViewAddon-5bb2b69a.js +0 -1
  369. package/dist/esm-es5/copy-text-view-bf55abeb.js +0 -1
  370. package/dist/esm-es5/index.module-f122af7b.js +0 -1
  371. package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
  372. package/dist/esm-es5/sqm-invoice-table-view-09cc28d6.js +0 -1
  373. package/dist/esm-es5/sqm-pagination_3.entry.js +0 -1
  374. package/dist/esm-es5/useInstantAccessRegistration-9d4cb797.js +0 -1
  375. package/dist/esm-es5/useRegistrationFormState-53c71782.js +0 -1
  376. package/dist/mint-components/p-00be5090.js +0 -1
  377. package/dist/mint-components/p-0161f5da.entry.js +0 -13
  378. package/dist/mint-components/p-1099290c.system.js +0 -1
  379. package/dist/mint-components/p-18a7f543.system.entry.js +0 -1
  380. package/dist/mint-components/p-26306ac4.system.entry.js +0 -1
  381. package/dist/mint-components/p-2e16db11.entry.js +0 -1
  382. package/dist/mint-components/p-41499327.entry.js +0 -1
  383. package/dist/mint-components/p-43a990b6.system.js +0 -1
  384. package/dist/mint-components/p-4856b234.system.entry.js +0 -1
  385. package/dist/mint-components/p-48b7d703.entry.js +0 -174
  386. package/dist/mint-components/p-494e407e.entry.js +0 -1
  387. package/dist/mint-components/p-5b7e2d53.entry.js +0 -1
  388. package/dist/mint-components/p-5d37482d.entry.js +0 -1
  389. package/dist/mint-components/p-5fc8d87c.system.js +0 -1
  390. package/dist/mint-components/p-646d302a.system.js +0 -1
  391. package/dist/mint-components/p-6628bc0e.system.js +0 -1
  392. package/dist/mint-components/p-6b0e6a6c.js +0 -1
  393. package/dist/mint-components/p-73c6b26d.entry.js +0 -223
  394. package/dist/mint-components/p-89a760ea.js +0 -1
  395. package/dist/mint-components/p-942d1c22.entry.js +0 -33
  396. package/dist/mint-components/p-b4eb9c46.entry.js +0 -11
  397. package/dist/mint-components/p-b5176703.entry.js +0 -1
  398. package/dist/mint-components/p-b71c0e2d.system.entry.js +0 -1
  399. package/dist/mint-components/p-bd4e9c2b.js +0 -1
  400. package/dist/mint-components/p-c37137cd.js +0 -2
  401. package/dist/mint-components/p-c7ce2c1e.system.js +0 -1
  402. package/dist/mint-components/p-ca17d998.entry.js +0 -1
  403. package/dist/mint-components/p-d666b326.js +0 -1
  404. package/dist/mint-components/p-ea88142c.js +0 -1
  405. package/dist/mint-components/p-eb4e9efb.system.entry.js +0 -1
  406. package/dist/mint-components/p-ecefeaa9.system.entry.js +0 -1
  407. package/dist/mint-components/p-f1ec1180.entry.js +0 -1
  408. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -7
  409. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +0 -17
  410. package/dist/types/components/sqm-pagination/usePagination.d.ts +0 -15
  411. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -18
  412. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -70
  413. package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +0 -9
  414. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -9
  415. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -10
  416. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -21
  417. package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +0 -59
  418. package/dist/cjs/{GenericTableView-a3f48e15.js → GenericTableView-80d7642e.js} +1 -1
  419. package/dist/cjs/{email-registration-view-4c5d9379.js → email-registration-view-248652bb.js} +1 -1
  420. package/dist/cjs/{sqm-close-button-view-217239b7.js → sqm-close-button-view-fd6e8f60.js} +1 -1
  421. package/dist/cjs/{sqm-portal-forgot-password-view-3cd69fe7.js → sqm-portal-forgot-password-view-969c49ed.js} +1 -1
  422. package/dist/cjs/{sqm-portal-reset-password-view-34771d2c.js → sqm-portal-reset-password-view-96f329ed.js} +1 -1
  423. package/dist/cjs/{sqm-portal-verify-email-view-c8f91506.js → sqm-portal-verify-email-view-7ffcc0d4.js} +1 -1
  424. package/dist/esm/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
  425. package/dist/esm/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
  426. package/dist/esm/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
  427. package/dist/esm/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
  428. package/dist/esm/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
  429. package/dist/esm/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-46ca288c.system.js","./p-1099290c.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-ce746af8.system.js","./p-9deac406.system.js","./p-6e7e8af6.system.js","./p-ce9e7c98.system.js","./p-370a1a73.system.js","./p-73decce7.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,v,p,h,m,_,E,T,g,y,N;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.n;s=e.j;l=e.u;o=e.f},function(e){d=e.i},function(e){u=e.i},function(e){c=e.l},function(e){f=e.c},function(e){v=e.c},function(){},function(e){p=e.G},function(e){h=e.a;m=e.u},function(e){_=e.u},function(e){E=e.l},function(e){T=e.g},function(e){g=e.u;y=e.t},function(e){N=e.T}],execute:function(){var D=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return b()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var P=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var x=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var A=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var b=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:x[Math.floor(Math.random()*x.length)],lastName:A[Math.floor(Math.random()*A.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?E.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:E.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:P[Math.floor(Math.random()*P.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},T()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:P[Math.floor(Math.random()*P.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:P[Math.floor(Math.random()*P.length)],type:"CREDIT",value:1},depth:1}]}}};var I=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(R,null);var t=r(w,null);var n=u()?S(this,e,t):g(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;h([this.showReferrer,this.perPage]);return r(p,{states:a,data:i,callbacks:s,elements:l})};return e}());function R(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function w(){return r("slot",{name:"loading"},r(C,null),r(C,null),r(C,null),r(C,null))}function C(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function S(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var d=m();var u=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||D(e.perPage)}),[e.perPage]);var c=_();function f(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,c,f,v,p,h,m,_;var E=this;return __generator(this,(function(T){switch(T.label){case 0:a=u===null||u===void 0?void 0:u.referredByReferral;s=e.showReferrer&&!!((r=u===null||u===void 0?void 0:u.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=u.data.slice(0,e.perPage-1)}else{n=u.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(E,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,y(e,(function(){return e.renderLabel(t)}))]}return[2,y(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(E,void 0,void 0,(function(){return __generator(this,(function(t){return[2,y(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:d=T.sent();T.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(E,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,y(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));p=f;if(!p)return[3,4];h=[[d]];return[4,Promise.all(f)];case 3:p=__spreadArrays.apply(void 0,h.concat([T.sent()])).filter((function(e){return e}));T.label=4;case 4:v=p;i({rows:v});_=o;if(!_)return[3,6];return[4,Promise.all(o)];case 5:_=T.sent();T.label=6;case 6:m=_;i({columns:m,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(u===null||u===void 0?void 0:u.data)&&f(c)}),[u===null||u===void 0?void 0:u.data,c,d]);var p=v({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return p}var L=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var M=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){h([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var O=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=E.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(c(this.locale)).toLocaleString(E.DateTime.DATE_MED);return t};return e}());var U=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t===null||t===void 0?void 0:t.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){h([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var G=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.locale="en"}e.prototype.render=function(){var e=this;var t;d.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}};var a=f(n);var i=a.toString();var s=function(e,t){var r,n,a,i,s,l,o,d,u,c,f,v;var p=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION"];if(((n=(r=e.referral)===null||r===void 0?void 0:r.fraudData)===null||n===void 0?void 0:n.moderationStatus)!=="APPROVED"){if(((i=(a=e.referral)===null||a===void 0?void 0:a.fraudData)===null||i===void 0?void 0:i.moderationStatus)==="PENDING")return"PENDING_REVIEW";if(((l=(s=e.referral)===null||s===void 0?void 0:s.fraudData)===null||l===void 0?void 0:l.moderationStatus)==="DENIED")return"DENIED"}var h=(o=e.partnerFundsTransfer)===null||o===void 0?void 0:o.status;if(h==="NOT_YET_DUE"||h==="TRANSFERRED"){return"PAYOUT_APPROVED"}else if(h==="OVERDUE")return"PAYOUT_FAILED";else if(h==="REVERSED")return"PAYOUT_CANCELLED";if((d=e===null||e===void 0?void 0:e.pendingReasons)===null||d===void 0?void 0:d.includes("US_TAX")){if(!(t===null||t===void 0?void 0:t.taxHandlingEnabled))return"PENDING";if(!(t===null||t===void 0?void 0:t.connected))return"PENDING_PARTNER_CREATION";if((u=t===null||t===void 0?void 0:t.publisher)===null||u===void 0?void 0:u.requiredTaxDocumentType){if(!((c=t===null||t===void 0?void 0:t.publisher)===null||c===void 0?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";var m=t.publisher.currentTaxDocument.status;if(m==="INACTIVE")return"PENDING_NEW_TAX_FORM";if(m==="NOT_VERIFIED")return"PENDING_TAX_REVIEW"}if(!((f=t===null||t===void 0?void 0:t.publisher)===null||f===void 0?void 0:f.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if((v=e===null||e===void 0?void 0:e.pendingReasons)===null||v===void 0?void 0:v.includes("PAYOUT_CONFIGURATION_MISSING")){return"PENDING_PARTNER_CREATION"}if(e.statuses.length===1)return e.statuses[0];return p.find((function(t){return e.statuses.includes(t)&&t}))};var l=function(e){switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":return"warning";case"AVAILABLE":return"success"}};var o=function(t){return E.DateTime.fromMillis(t).setLocale(c(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n,u;var f=s(t,e.taxConnection);var v=l(f);var p=d.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:f});var h=d.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:f});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(N,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},f==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:v,pill:true},d.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:p,date:o(t.dateScheduledFor)})):r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:v,pill:true},p),t.dateExpires&&f==="AVAILABLE"&&r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,f==="PENDING_REVIEW"&&((n=t.referral)===null||n===void 0?void 0:n.dateModerated)&&r("div",null,r(N,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},E.DateTime.fromMillis(t.referral.dateModerated).setLocale(c(e.locale)).toLocaleString(E.DateTime.DATE_MED)))),f==="PAYOUT_APPROVED"&&r("div",null,r(N,{type:"p"},h)),f==="PAYOUT_FAILED"&&r("div",null,r(N,{type:"p"},h)),f==="PAYOUT_CANCELLED"&&r("div",null,r(N,{type:"p"},h)),f==="PENDING_TAX_REVIEW"&&r("div",null,r(N,{type:"p"},h)),f==="PENDING_NEW_TAX_FORM"&&r("div",null,r(N,{type:"p"},h)),f==="PENDING_TAX_SUBMISSION"&&r("div",null,r(N,{type:"p"},h)),f==="PENDING_PARTNER_CREATION"&&r("div",null,r(N,{type:"p"},h)),f==="DENIED"&&((u=t.referral)===null||u===void 0?void 0:u.dateModerated)&&r("div",null,r(N,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},E.DateTime.fromMillis(t.referral.dateModerated).setLocale(c(e.locale)).toLocaleString(E.DateTime.DATE_MED)),".",e.deniedHelpText?" "+e.deniedHelpText:"")),t.dateGiven&&r("div",null,r(N,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},E.DateTime.fromMillis(t.dateGiven).setLocale(c(e.locale)).toLocaleString(E.DateTime.DATE_MED)))),f==="EXPIRED"&&t.dateExpires&&r("div",null,r(N,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},E.DateTime.fromMillis(t.dateExpires).setLocale(c(e.locale)).toLocaleString(E.DateTime.DATE_MED)))),f==="CANCELLED"&&t.dateCancelled&&r("div",null,r(N,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},E.DateTime.fromMillis(t.dateCancelled).setLocale(c(e.locale)).toLocaleString(E.DateTime.DATE_MED)))),f==="PENDING"&&t.dateScheduledFor&&r("div",null,r(N,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},E.DateTime.fromMillis(t.dateScheduledFor).setLocale(c(e.locale)).toLocaleString(E.DateTime.DATE_MED))))," ",f==="AVAILABLE"&&t.dateExpires&&r("div",null,r(N,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},E.DateTime.fromMillis(t.dateExpires).setLocale(c(e.locale)).toLocaleString(E.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var B=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.deniedHelpText="Contact support if you think this is a mistake.";this.hideDetails=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:t===null||t===void 0?void 0:t.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:t===null||t===void 0?void 0:t.locale,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){h([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var k={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}},SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}};var q=f(k);var V=q.toString();var F=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;var t=function(t){if(t==="PENDING")return"warning";if(t==="DENIED")return"danger";if(e.converted)return"success";return"warning"};return r("div",null,r("style",{type:"text/css"},V),r("sl-badge",{pill:true,type:t(this.fraudStatus),class:q.classes.Badge},this.statusText),this.statusSubText?r("p",{class:q.classes.SubText},this.statusSubText):null)};return e}());var X=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";this.pendingReviewStatusText="Pending";this.deniedStatusText="Denied";this.pendingReviewStatusSubText="Awaiting review";this.deniedStatusSubText="Detected self-referral";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i;return __generator(this,(function(s){i=(t=e===null||e===void 0?void 0:e.fraudData)===null||t===void 0?void 0:t.moderationStatus;if(i==="DENIED"){n=this.deniedStatusText;a=this.deniedStatusSubText}else if(i==="PENDING"){n=this.pendingReviewStatusText;a=this.pendingReviewStatusSubText}else{n=e.dateConverted?this.convertedStatusText:this.inProgressStatusText}return[2,r("sqm-referral-table-status-cell",{"status-text":n,"status-sub-text":a,"fraud-status":i,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){h([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var j=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var Y=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){h([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-fc422446.system.js","./p-93576222.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-e8dde8f4.system.js","./p-4eae91a9.system.js","./p-def516b8.system.js","./p-ce9e7c98.system.js","./p-370a1a73.system.js","./p-8d554a89.system.js","./p-6333265f.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,v,p,h,m,_,E,T,g,y,N;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.n;s=e.j;l=e.u;o=e.f},function(e){d=e.i},function(e){u=e.i},function(e){c=e.c},function(){},function(e){f=e.c},function(e){v=e.G},function(e){p=e.a;h=e.u},function(e){m=e.u},function(e){_=e.l},function(e){E=e.g},function(e){T=e.u;g=e.t},function(e){y=e.l},function(e){N=e.T}],execute:function(){var D=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return b()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var P=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var x=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var A=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var b=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:x[Math.floor(Math.random()*x.length)],lastName:A[Math.floor(Math.random()*A.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?_.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:_.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:P[Math.floor(Math.random()*P.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},E()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:P[Math.floor(Math.random()*P.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:P[Math.floor(Math.random()*P.length)],type:"CREDIT",value:1},depth:1}]}}};var I=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(R,null);var t=r(w,null);var n=u()?S(this,e,t):T(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;p([this.showReferrer,this.perPage]);return r(v,{states:a,data:i,callbacks:s,elements:l})};return e}());function R(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function w(){return r("slot",{name:"loading"},r(C,null),r(C,null),r(C,null),r(C,null))}function C(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function S(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var d=h();var u=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||D(e.perPage)}),[e.perPage]);var f=m();function v(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,c,f,v,p,h,m,_;var E=this;return __generator(this,(function(T){switch(T.label){case 0:a=u===null||u===void 0?void 0:u.referredByReferral;s=e.showReferrer&&!!((r=u===null||u===void 0?void 0:u.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=u.data.slice(0,e.perPage-1)}else{n=u.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(E,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,g(e,(function(){return e.renderLabel(t)}))]}return[2,g(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(E,void 0,void 0,(function(){return __generator(this,(function(t){return[2,g(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:d=T.sent();T.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(E,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,g(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));p=f;if(!p)return[3,4];h=[[d]];return[4,Promise.all(f)];case 3:p=__spreadArrays.apply(void 0,h.concat([T.sent()])).filter((function(e){return e}));T.label=4;case 4:v=p;i({rows:v});_=o;if(!_)return[3,6];return[4,Promise.all(o)];case 5:_=T.sent();T.label=6;case 6:m=_;i({columns:m,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(u===null||u===void 0?void 0:u.data)&&v(f)}),[u===null||u===void 0?void 0:u.data,f,d]);var p=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return p}var L=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var M=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){p([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var O=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=_.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(y(this.locale)).toLocaleString(_.DateTime.DATE_MED);return t};return e}());var U=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t===null||t===void 0?void 0:t.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){p([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var G=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.locale="en"}e.prototype.render=function(){var e=this;var t;d.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}};var a=f(n);var i=a.toString();var s=function(e,t){var r,n,a,i,s,l,o,d,u,c,f,v;var p=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION"];if(((n=(r=e.referral)===null||r===void 0?void 0:r.fraudData)===null||n===void 0?void 0:n.moderationStatus)!=="APPROVED"){if(((i=(a=e.referral)===null||a===void 0?void 0:a.fraudData)===null||i===void 0?void 0:i.moderationStatus)==="PENDING")return"PENDING_REVIEW";if(((l=(s=e.referral)===null||s===void 0?void 0:s.fraudData)===null||l===void 0?void 0:l.moderationStatus)==="DENIED")return"DENIED"}var h=(o=e.partnerFundsTransfer)===null||o===void 0?void 0:o.status;if(h==="NOT_YET_DUE"||h==="TRANSFERRED"){return"PAYOUT_APPROVED"}else if(h==="OVERDUE")return"PAYOUT_FAILED";else if(h==="REVERSED")return"PAYOUT_CANCELLED";if((d=e===null||e===void 0?void 0:e.pendingReasons)===null||d===void 0?void 0:d.includes("US_TAX")){if(!(t===null||t===void 0?void 0:t.taxHandlingEnabled))return"PENDING";if(!(t===null||t===void 0?void 0:t.connected))return"PENDING_PARTNER_CREATION";if((u=t===null||t===void 0?void 0:t.publisher)===null||u===void 0?void 0:u.requiredTaxDocumentType){if(!((c=t===null||t===void 0?void 0:t.publisher)===null||c===void 0?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";var m=t.publisher.currentTaxDocument.status;if(m==="INACTIVE")return"PENDING_NEW_TAX_FORM";if(m==="NOT_VERIFIED")return"PENDING_TAX_REVIEW"}if(!((f=t===null||t===void 0?void 0:t.publisher)===null||f===void 0?void 0:f.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if((v=e===null||e===void 0?void 0:e.pendingReasons)===null||v===void 0?void 0:v.includes("PAYOUT_CONFIGURATION_MISSING")){return"PENDING_PARTNER_CREATION"}if(e.statuses.length===1)return e.statuses[0];return p.find((function(t){return e.statuses.includes(t)&&t}))};var l=function(e){switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":return"warning";case"AVAILABLE":return"success"}};var o=function(t){return _.DateTime.fromMillis(t).setLocale(y(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n,u;var c=s(t,e.taxConnection);var f=l(c);var v=d.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:c});var p=d.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:c});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(N,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},c==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:f==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:f,pill:true},d.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:v,date:o(t.dateScheduledFor)})):r("sl-badge",{class:f==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:f,pill:true},v),t.dateExpires&&c==="AVAILABLE"&&r("sl-badge",{class:f==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,c==="PENDING_REVIEW"&&((n=t.referral)===null||n===void 0?void 0:n.dateModerated)&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="PAYOUT_APPROVED"&&r("div",null,r(N,{type:"p"},p)),c==="PAYOUT_FAILED"&&r("div",null,r(N,{type:"p"},p)),c==="PAYOUT_CANCELLED"&&r("div",null,r(N,{type:"p"},p)),c==="PENDING_TAX_REVIEW"&&r("div",null,r(N,{type:"p"},p)),c==="PENDING_NEW_TAX_FORM"&&r("div",null,r(N,{type:"p"},p)),c==="PENDING_TAX_SUBMISSION"&&r("div",null,r(N,{type:"p"},p)),c==="PENDING_PARTNER_CREATION"&&r("div",null,r(N,{type:"p"},p)),c==="DENIED"&&((u=t.referral)===null||u===void 0?void 0:u.dateModerated)&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)),".",e.deniedHelpText?" "+e.deniedHelpText:"")),t.dateGiven&&r("div",null,r(N,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateGiven).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="EXPIRED"&&t.dateExpires&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="CANCELLED"&&t.dateCancelled&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateCancelled).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="PENDING"&&t.dateScheduledFor&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateScheduledFor).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED))))," ",c==="AVAILABLE"&&t.dateExpires&&r("div",null,r(N,{type:"p"},p," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(y(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var B=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.deniedHelpText="Contact support if you think this is a mistake.";this.hideDetails=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:t===null||t===void 0?void 0:t.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:t===null||t===void 0?void 0:t.locale,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){p([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var k={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}},SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}};var q=f(k);var V=q.toString();var F=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;var t=function(t){if(t==="PENDING")return"warning";if(t==="DENIED")return"danger";if(e.converted)return"success";return"warning"};return r("div",null,r("style",{type:"text/css"},V),r("sl-badge",{pill:true,type:t(this.fraudStatus),class:q.classes.Badge},this.statusText),this.statusSubText?r("p",{class:q.classes.SubText},this.statusSubText):null)};return e}());var X=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";this.pendingReviewStatusText="Pending";this.deniedStatusText="Denied";this.pendingReviewStatusSubText="Awaiting review";this.deniedStatusSubText="Detected self-referral";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i;return __generator(this,(function(s){i=(t=e===null||e===void 0?void 0:e.fraudData)===null||t===void 0?void 0:t.moderationStatus;if(i==="DENIED"){n=this.deniedStatusText;a=this.deniedStatusSubText}else if(i==="PENDING"){n=this.pendingReviewStatusText;a=this.pendingReviewStatusSubText}else{n=e.dateConverted?this.convertedStatusText:this.inProgressStatusText}return[2,r("sqm-referral-table-status-cell",{"status-text":n,"status-sub-text":a,"fraud-status":i,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){p([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var j=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var Y=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){p([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
@@ -1 +1 @@
1
- import{r as e,h as i}from"./p-64c3217a.js";import{k as a,m as t,f as s,n}from"./p-fd2c5407.js";import"./p-9c3d78e9.js";import{l as r,n as o,Q as l,e as c,u as d,i as v}from"./p-00be5090.js";import"./p-cef45012.js";import{c as u}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-5d0c9424.js";import{P as m}from"./p-e41cb11f.js";const f=class{constructor(i){e(this,i),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[y,{loading:b,errors:w}]=r(),[M,{data:k,loading:j}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,E=new URLSearchParams(c.location.search),x=E.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:E.toString()&&"?"+E.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:b,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:j,isVerified:!!(null===(p=null==k?void 0:k.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:x?{nextPage:x}:null,redirectPath:e.redirectPath},t=await y(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
1
+ import{r as e,h as i}from"./p-64c3217a.js";import{k as a,m as t,f as s,n}from"./p-fd2c5407.js";import"./p-d83b0cf3.js";import{h as r,u as o,K as l,x as c,b as d,i as v}from"./p-bdd6bb13.js";import{c as u}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import"./p-5d0c9424.js";import{P as m}from"./p-e0e7635a.js";const f=class{constructor(i){e(this,i),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[b,{loading:y,errors:w}]=r(),[M,{data:k,loading:j}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,x=new URLSearchParams(c.location.search),E=x.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:x.toString()&&"?"+x.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:y,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:j,isVerified:!!(null===(p=null==k?void 0:k.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:E?{nextPage:E}:null,redirectPath:e.redirectPath},t=await b(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
@@ -1 +1 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-1099290c.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-4bd679a7.system.js","./p-9dcfa187.system.js"],(function(e){"use strict";var t,n,i,r,s,a,o,c,u,l,f;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.n},function(e){r=e.d;s=e.Q;a=e.y;o=e.b;c=e.i},function(e){u=e.g},function(){},function(e){l=e.c},function(e){f=e.L}],execute:function(){var d=r.gql(__makeTemplateObject(["\n query getUserDetails {\n viewer {\n ... on User {\n id\n accountId\n email\n }\n }\n }\n"],["\n query getUserDetails {\n viewer {\n ... on User {\n id\n accountId\n email\n }\n }\n }\n"]));function m(e){var t,n;var i=s();var r=a(d,{},!i),c=r.loading,u=r.data;var l=function(){o(undefined)};var f=(t=e.userIdentificationText)===null||t===void 0?void 0:t.replace("{email}",(n=u===null||u===void 0?void 0:u.viewer)===null||n===void 0?void 0:n.email);return __assign({loading:c,onSwitchClick:l,filledInEmailText:f},e)}var h=e("sqm_logout_current_user",function(){function e(e){t(this,e);this.userIdentificationText="{email}";this.switchUserText="not you?";this.emailErrorText="Error fetching email";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=c()?v(this):m(u(this));var t={userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText,emailErrorText:this.emailErrorText};return n(f,Object.assign({},e,t))};return e}());function v(e){return l({onSwitchClick:function(){return o(undefined)},filledInEmailText:"john@example.com",switchUserText:e.switchUserText,emailErrorText:e.emailErrorText,loading:false},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-93576222.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-9dcfa187.system.js"],(function(e){"use strict";var t,n,i,r,s,a,o,c,u,l,f;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.n},function(e){r=e.d;s=e.K;a=e.E;o=e.a;c=e.i},function(e){u=e.c},function(){},function(e){l=e.g},function(e){f=e.L}],execute:function(){var d=r.gql(__makeTemplateObject(["\n query getUserDetails {\n viewer {\n ... on User {\n id\n accountId\n email\n }\n }\n }\n"],["\n query getUserDetails {\n viewer {\n ... on User {\n id\n accountId\n email\n }\n }\n }\n"]));function m(e){var t,n;var i=s();var r=a(d,{},!i),c=r.loading,u=r.data;var l=function(){o(undefined)};var f=(t=e.userIdentificationText)===null||t===void 0?void 0:t.replace("{email}",(n=u===null||u===void 0?void 0:u.viewer)===null||n===void 0?void 0:n.email);return __assign({loading:c,onSwitchClick:l,filledInEmailText:f},e)}var h=e("sqm_logout_current_user",function(){function e(e){t(this,e);this.userIdentificationText="{email}";this.switchUserText="not you?";this.emailErrorText="Error fetching email";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=c()?v(this):m(l(this));var t={userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText,emailErrorText:this.emailErrorText};return n(f,Object.assign({},e,t))};return e}());function v(e){return u({onSwitchClick:function(){return o(undefined)},filledInEmailText:"john@example.com",switchUserText:e.switchUserText,emailErrorText:e.emailErrorText,loading:false},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +1 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-1099290c.system.js","./p-6333265f.system.js","./p-7ae8fb53.system.js"],(function(e){"use strict";var t,n,r,a,o,i,s,u,l,d,c;return{setters:[function(e){t=e.r;n=e.h;r=e.c},function(e){a=e.b;o=e.k;i=e.i;s=e.f;u=e.n},function(e){l=e._},function(e){d=e.g},function(e){c=e.p}],execute:function(){var f=a("sq:useRouter");function v(e,t){if(!e)return;var n=c(e);return n.exec(t)}function p(e){var t=l();var n=o(undefined),r=n[0],a=n[1];var u=o(undefined),d=u[0],c=u[1];var p=e.contextName;var m=i(p);s((function(){var e=t.querySelectorAll("sqm-route");var n=Array.from(e);n.forEach((function(e){var t=document.createElement("template");t.setAttribute("path",e.path);t.innerHTML=e.innerHTML;e.parentNode.appendChild(t);e.parentNode.removeChild(e)}))}),[]);s((function(){var e,t;if(!d||!r){f("DOM not ready for navigation rendering on:",m);return}var n=r.querySelectorAll("template");var a=Array.from(n);var o=a.find((function(e){var t,n,r;var a=(n=(t=e.attributes)===null||t===void 0?void 0:t.path)===null||n===void 0?void 0:n.nodeValue;if((r=v(a,m))===null||r===void 0?void 0:r.length)return e}));var i=(t=(e=o===null||o===void 0?void 0:o.attributes)===null||e===void 0?void 0:e.path)===null||t===void 0?void 0:t.nodeValue;f({containerDatasetPage:d.dataset.page,templatePath:i,page:m});if(!o){f("No matching page found for ",m,", so render nothing");d.innerHTML="";d.dataset.page=m;return}f("Page updated to ",m,o);if(!!v(i,d.dataset.page)){f("don't rerender")}else if(o){d.innerHTML=o.innerHTML;d.dataset.page=m}}),[r,d,m]);return{callbacks:{setSlot:a,setContainer:c}}}var m="sqm-router{display:contents}";var y=e("sqm_context_router",function(){function e(e){t(this,e);this.ignored=true;u(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p(d(this)).callbacks;return n(r,null,n("div",{ref:e.setSlot,style:{display:"none"}},n("slot",null)),n("div",{style:{display:"contents"},ref:e.setContainer}))};return e}());y.style=m}}}));
1
+ System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-93576222.system.js","./p-6333265f.system.js","./p-7ae8fb53.system.js"],(function(e){"use strict";var t,n,r,a,o,i,s,u,l,d,c;return{setters:[function(e){t=e.r;n=e.h;r=e.c},function(e){a=e.b;o=e.k;i=e.i;s=e.f;u=e.n},function(e){l=e.T},function(e){d=e.g},function(e){c=e.p}],execute:function(){var f=a("sq:useRouter");function v(e,t){if(!e)return;var n=c(e);return n.exec(t)}function p(e){var t=l();var n=o(undefined),r=n[0],a=n[1];var u=o(undefined),d=u[0],c=u[1];var p=e.contextName;var m=i(p);s((function(){var e=t.querySelectorAll("sqm-route");var n=Array.from(e);n.forEach((function(e){var t=document.createElement("template");t.setAttribute("path",e.path);t.innerHTML=e.innerHTML;e.parentNode.appendChild(t);e.parentNode.removeChild(e)}))}),[]);s((function(){var e,t;if(!d||!r){f("DOM not ready for navigation rendering on:",m);return}var n=r.querySelectorAll("template");var a=Array.from(n);var o=a.find((function(e){var t,n,r;var a=(n=(t=e.attributes)===null||t===void 0?void 0:t.path)===null||n===void 0?void 0:n.nodeValue;if((r=v(a,m))===null||r===void 0?void 0:r.length)return e}));var i=(t=(e=o===null||o===void 0?void 0:o.attributes)===null||e===void 0?void 0:e.path)===null||t===void 0?void 0:t.nodeValue;f({containerDatasetPage:d.dataset.page,templatePath:i,page:m});if(!o){f("No matching page found for ",m,", so render nothing");d.innerHTML="";d.dataset.page=m;return}f("Page updated to ",m,o);if(!!v(i,d.dataset.page)){f("don't rerender")}else if(o){d.innerHTML=o.innerHTML;d.dataset.page=m}}),[r,d,m]);return{callbacks:{setSlot:a,setContainer:c}}}var m="sqm-router{display:contents}";var y=e("sqm_context_router",function(){function e(e){t(this,e);this.ignored=true;u(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p(d(this)).callbacks;return n(r,null,n("div",{ref:e.setSlot,style:{display:"none"}},n("slot",null)),n("div",{style:{display:"contents"},ref:e.setContainer}))};return e}());y.style=m}}}));
@@ -0,0 +1 @@
1
+ import{y as t}from"./p-fd2c5407.js";import{T as r}from"./p-bdd6bb13.js";const o="sq:registration-form-state";function s(o){const s=r(),[e,i]=t(s,"sq:registration-form-state",o);return{registrationFormState:e,setRegistrationFormState:i}}export{o as R,s as u}
@@ -1 +1 @@
1
- import{h as s}from"./p-64c3217a.js";import{c as o}from"./p-cef45012.js";import{H as t}from"./p-02be1a88.js";const i=o({HostBlock:t,icon:{cursor:"pointer",position:"absolute",right:"var(--sl-spacing-medium)",top:"var(--sl-spacing-x-small)",zIndex:"100"}}),l=i.toString();function n(o){const{onClick:t}=o;return s("div",null,s("style",{type:"text/css"},l),s("span",{class:i.classes.icon,onClick:t},s("svg",{width:"16",height:"16",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M56 5.64L50.36 0L28 22.36L5.64 0L0 5.64L22.36 28L0 50.36L5.64 56L28 33.64L50.36 56L56 50.36L33.64 28L56 5.64Z",fill:o.color||"black"}))))}export{n as C}
1
+ import{h as s}from"./p-64c3217a.js";import{H as o}from"./p-02be1a88.js";import{c as t}from"./p-cef45012.js";const i=t({HostBlock:o,icon:{cursor:"pointer",position:"absolute",right:"var(--sl-spacing-medium)",top:"var(--sl-spacing-x-small)",zIndex:"100"}}),l=i.toString();function n(o){const{onClick:t}=o;return s("div",null,s("style",{type:"text/css"},l),s("span",{class:i.classes.icon,onClick:t},s("svg",{width:"16",height:"16",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M56 5.64L50.36 0L28 22.36L5.64 0L0 5.64L22.36 28L0 50.36L5.64 56L28 33.64L50.36 56L56 50.36L33.64 28L56 5.64Z",fill:o.color||"black"}))))}export{n as C}