@saasquatch/mint-components 1.12.1-19 → 1.12.1-20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/dist/cjs/{ShadowViewAddon-9aee7df5.js → ShadowViewAddon-e7d97410.js} +12 -12
  2. package/dist/cjs/{global-41c0a650.js → global-02e50f09.js} +1 -1
  3. package/dist/cjs/{index.module-d8342710.js → index.module-df530553.js} +10 -12
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/{re-render-dd8d65bf.js → re-render-1976e05e.js} +2 -2
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +51 -51
  9. package/dist/cjs/sqm-big-stat_40.cjs.entry.js +42 -42
  10. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  13. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  14. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  15. package/dist/cjs/{sqm-invoice-table-view-41a0b707.js → sqm-invoice-table-view-e3b03a00.js} +1 -1
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +4 -4
  17. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
  18. package/dist/cjs/{sqm-navigation-sidebar-item-view-5f7886d6.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
  19. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  20. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -2
  21. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  22. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  23. package/dist/cjs/{sqm-portal-email-verification-view-56fabc90.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
  24. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
  25. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +3 -3
  26. package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
  27. package/dist/cjs/{sqm-portal-profile-view-7c9c60a6.js → sqm-portal-profile-view-fde54e35.js} +1 -1
  28. package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -6
  29. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  30. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +6 -6
  31. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
  32. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
  33. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
  34. package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
  35. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  36. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +8 -8
  37. package/dist/cjs/sqm-stencilbook.cjs.entry.js +49 -49
  38. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  39. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  40. package/dist/cjs/{useChildElements-57e11069.js → useChildElements-e0d44916.js} +1 -1
  41. package/dist/cjs/{useInstantAccessRegistration-14ccf9d4.js → useInstantAccessRegistration-bbe746d1.js} +3 -3
  42. package/dist/cjs/{useReferralTable-ef36b29e.js → useReferralTable-a76adb0d.js} +7 -7
  43. package/dist/cjs/{useRegistrationFormState-7d608337.js → useRegistrationFormState-876ed65d.js} +1 -1
  44. package/dist/cjs/{utilities-7df0fdad.js → utilities-cec9dd36.js} +1 -1
  45. package/dist/esm/{ShadowViewAddon-cadd38e4.js → ShadowViewAddon-149b4015.js} +12 -12
  46. package/dist/esm/{global-c1e70cb2.js → global-04c7d3b5.js} +1 -1
  47. package/dist/esm/{index.module-3344e7dc.js → index.module-def4aec5.js} +2 -4
  48. package/dist/esm/loader.js +2 -2
  49. package/dist/esm/mint-components.js +2 -2
  50. package/dist/esm/{re-render-29151677.js → re-render-12fd274a.js} +2 -2
  51. package/dist/esm/sqm-asset-card.entry.js +1 -1
  52. package/dist/esm/sqm-banking-info-form_16.entry.js +51 -51
  53. package/dist/esm/sqm-big-stat_40.entry.js +42 -42
  54. package/dist/esm/sqm-close-button.entry.js +1 -1
  55. package/dist/esm/sqm-context-router.entry.js +1 -1
  56. package/dist/esm/sqm-empty_4.entry.js +2 -2
  57. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  58. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  59. package/dist/esm/{sqm-invoice-table-view-eb4b3f63.js → sqm-invoice-table-view-6e13a323.js} +1 -1
  60. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -4
  61. package/dist/esm/sqm-logout-current-user.entry.js +3 -3
  62. package/dist/esm/{sqm-navigation-sidebar-item-view-08e47843.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
  63. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  64. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
  65. package/dist/esm/sqm-password-field.entry.js +2 -2
  66. package/dist/esm/sqm-popup-container.entry.js +1 -1
  67. package/dist/esm/{sqm-portal-email-verification-view-52a45f66.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
  68. package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
  69. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  70. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  71. package/dist/esm/{sqm-portal-profile-view-4810da8a.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
  72. package/dist/esm/sqm-portal-profile.entry.js +6 -6
  73. package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
  74. package/dist/esm/sqm-portal-registration-form.entry.js +6 -6
  75. package/dist/esm/sqm-portal-reset-password.entry.js +5 -5
  76. package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
  77. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  78. package/dist/esm/sqm-referred-registration.entry.js +3 -3
  79. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  80. package/dist/esm/sqm-rewards-table_9.entry.js +8 -8
  81. package/dist/esm/sqm-stencilbook.entry.js +49 -49
  82. package/dist/esm/sqm-tab.entry.js +2 -2
  83. package/dist/esm/sqm-tabs.entry.js +3 -3
  84. package/dist/esm/{useChildElements-cc98d6c4.js → useChildElements-32e1bda1.js} +1 -1
  85. package/dist/esm/{useInstantAccessRegistration-e95685e5.js → useInstantAccessRegistration-46b89952.js} +3 -3
  86. package/dist/esm/{useReferralTable-f1ffc72e.js → useReferralTable-f4de0650.js} +7 -7
  87. package/dist/esm/{useRegistrationFormState-4151cec4.js → useRegistrationFormState-9fc1ac80.js} +1 -1
  88. package/dist/esm/{utilities-4d60af2c.js → utilities-3f5bba22.js} +1 -1
  89. package/dist/esm-es5/{ShadowViewAddon-cadd38e4.js → ShadowViewAddon-149b4015.js} +1 -1
  90. package/dist/esm-es5/{global-c1e70cb2.js → global-04c7d3b5.js} +1 -1
  91. package/dist/esm-es5/index.module-def4aec5.js +1 -0
  92. package/dist/esm-es5/loader.js +1 -1
  93. package/dist/esm-es5/mint-components.js +1 -1
  94. package/dist/esm-es5/{re-render-29151677.js → re-render-12fd274a.js} +1 -1
  95. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  96. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  97. package/dist/esm-es5/sqm-big-stat_40.entry.js +1 -1
  98. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  99. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  100. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  101. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  102. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  103. package/dist/esm-es5/{sqm-invoice-table-view-eb4b3f63.js → sqm-invoice-table-view-6e13a323.js} +1 -1
  104. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  105. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  106. package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +1 -0
  107. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  108. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  109. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  110. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  111. package/dist/esm-es5/{sqm-portal-email-verification-view-52a45f66.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
  112. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  113. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  114. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  115. package/dist/esm-es5/{sqm-portal-profile-view-4810da8a.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
  116. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  117. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  118. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  119. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  120. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  121. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  122. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  123. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  124. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  125. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  126. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  127. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  128. package/dist/esm-es5/{useChildElements-cc98d6c4.js → useChildElements-32e1bda1.js} +1 -1
  129. package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
  130. package/dist/esm-es5/{useReferralTable-f1ffc72e.js → useReferralTable-f4de0650.js} +1 -1
  131. package/dist/esm-es5/{useRegistrationFormState-4151cec4.js → useRegistrationFormState-9fc1ac80.js} +1 -1
  132. package/dist/esm-es5/{utilities-4d60af2c.js → utilities-3f5bba22.js} +1 -1
  133. package/dist/mint-components/mint-components.esm.js +1 -1
  134. package/dist/mint-components/mint-components.js +1 -1
  135. package/dist/mint-components/{p-63b5126d.system.entry.js → p-01cfff8a.system.entry.js} +1 -1
  136. package/dist/mint-components/{p-36332fc7.entry.js → p-021a735d.entry.js} +1 -1
  137. package/dist/mint-components/{p-0f65c86c.system.js → p-02424350.system.js} +1 -1
  138. package/dist/mint-components/p-03494732.entry.js +1 -0
  139. package/dist/mint-components/{p-f58c7201.system.entry.js → p-07f675ab.system.entry.js} +1 -1
  140. package/dist/mint-components/p-0b9fa97f.js +1 -0
  141. package/dist/mint-components/{p-45b1b2be.system.js → p-0d8c53ac.system.js} +1 -1
  142. package/dist/mint-components/p-10e89d0a.entry.js +1 -0
  143. package/dist/mint-components/{p-bb873ddd.entry.js → p-137ea86e.entry.js} +1 -1
  144. package/dist/mint-components/{p-9e62ac1f.system.entry.js → p-1bfc8eb0.system.entry.js} +1 -1
  145. package/dist/mint-components/p-1c857edb.entry.js +33 -0
  146. package/dist/mint-components/{p-fe163a23.system.entry.js → p-1dd69917.system.entry.js} +1 -1
  147. package/dist/mint-components/{p-1064099e.entry.js → p-2dd67762.entry.js} +1 -1
  148. package/dist/mint-components/{p-051dd2a0.js → p-2ee2ebba.js} +2 -2
  149. package/dist/mint-components/{p-29a80f6e.entry.js → p-3223ba7b.entry.js} +1 -1
  150. package/dist/mint-components/{p-7a33cd80.entry.js → p-32d1d162.entry.js} +1 -1
  151. package/dist/mint-components/{p-6a4b1ec0.system.entry.js → p-35d84041.system.entry.js} +1 -1
  152. package/dist/mint-components/{p-8833552d.system.js → p-3d4656bb.system.js} +1 -1
  153. package/dist/mint-components/{p-fa160846.entry.js → p-3ec16698.entry.js} +2 -2
  154. package/dist/mint-components/{p-920641bf.js → p-41a11a7f.js} +1 -1
  155. package/dist/mint-components/{p-b8fff589.system.js → p-44787d6e.system.js} +1 -1
  156. package/dist/mint-components/{p-5bdf586c.system.entry.js → p-4502ed11.system.entry.js} +1 -1
  157. package/dist/mint-components/{p-e10b0628.js → p-4d233cd4.js} +1 -1
  158. package/dist/mint-components/{p-a8ebb87a.system.js → p-4df8f1d2.system.js} +1 -1
  159. package/dist/mint-components/{p-f093ed85.system.entry.js → p-4ea58025.system.entry.js} +1 -1
  160. package/dist/mint-components/{p-6c9eb87a.entry.js → p-4edde470.entry.js} +1 -1
  161. package/dist/mint-components/p-51f517a2.js +1 -0
  162. package/dist/mint-components/{p-4c6c314b.entry.js → p-56f14840.entry.js} +1 -1
  163. package/dist/mint-components/{p-b9cab58d.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
  164. package/dist/mint-components/{p-c588e9c1.system.js → p-59fe4ad1.system.js} +1 -1
  165. package/dist/mint-components/{p-3edd4ea8.system.entry.js → p-5b333fa8.system.entry.js} +1 -1
  166. package/dist/mint-components/p-5be235f9.entry.js +1 -0
  167. package/dist/mint-components/{p-1ca1ca86.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
  168. package/dist/mint-components/{p-40ad6540.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
  169. package/dist/mint-components/{p-c810bcfc.js → p-61eab172.js} +1 -1
  170. package/dist/mint-components/{p-99b2ff9c.system.js → p-674a64fe.system.js} +1 -1
  171. package/dist/mint-components/{p-4893f186.entry.js → p-6cef104b.entry.js} +1 -1
  172. package/dist/mint-components/{p-063f4458.entry.js → p-6f6a6518.entry.js} +8 -8
  173. package/dist/mint-components/{p-cb029418.entry.js → p-7049e9b0.entry.js} +1 -1
  174. package/dist/mint-components/{p-00aa314d.system.entry.js → p-711ba77e.system.entry.js} +1 -1
  175. package/dist/mint-components/{p-67a8b7ae.system.js → p-770368bc.system.js} +1 -1
  176. package/dist/mint-components/{p-ebab1714.system.entry.js → p-7731f793.system.entry.js} +1 -1
  177. package/dist/mint-components/{p-ae72631b.entry.js → p-79186b05.entry.js} +2 -2
  178. package/dist/mint-components/p-79191f88.entry.js +1 -0
  179. package/dist/mint-components/{p-b758d962.system.entry.js → p-7c6c96e2.system.entry.js} +1 -1
  180. package/dist/mint-components/p-7f088154.entry.js +1 -0
  181. package/dist/mint-components/{p-0c06a6f5.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-fcf7f4c1.entry.js → p-86990110.entry.js} +1 -1
  183. package/dist/mint-components/{p-eb64a65f.js → p-8704937c.js} +1 -1
  184. package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
  185. package/dist/mint-components/p-8e907ac7.system.entry.js +1 -0
  186. package/dist/mint-components/p-91669312.entry.js +1 -0
  187. package/dist/mint-components/{p-cd326a35.system.entry.js → p-9c310991.system.entry.js} +1 -1
  188. package/dist/mint-components/{p-17c59360.system.entry.js → p-9f0629ba.system.entry.js} +1 -1
  189. package/dist/mint-components/{p-19c94256.system.entry.js → p-a1dba9a1.system.entry.js} +1 -1
  190. package/dist/mint-components/p-a6a7dcaa.js +1 -0
  191. package/dist/mint-components/{p-ad8dbab8.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
  192. package/dist/mint-components/p-a8f7cb95.js +1 -0
  193. package/dist/mint-components/{p-ac1fb0c4.entry.js → p-a9050eb0.entry.js} +1 -1
  194. package/dist/mint-components/{p-d2389ef4.entry.js → p-aad11a68.entry.js} +1 -1
  195. package/dist/mint-components/{p-0afb7d5d.system.js → p-ace06b9b.system.js} +1 -1
  196. package/dist/mint-components/{p-db0d4d3a.system.entry.js → p-af062c8f.system.entry.js} +1 -1
  197. package/dist/mint-components/{p-6e50122b.system.entry.js → p-afd366ae.system.entry.js} +1 -1
  198. package/dist/mint-components/p-b370fca8.system.js +1 -0
  199. package/dist/mint-components/{p-69a0a791.entry.js → p-b4c52c5a.entry.js} +2 -2
  200. package/dist/mint-components/{p-98072a24.system.entry.js → p-b5861974.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-b6557eff.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
  202. package/dist/mint-components/{p-ea46d642.js → p-ba0dfda9.js} +1 -1
  203. package/dist/mint-components/{p-a7161d9f.js → p-bb00db59.js} +1 -1
  204. package/dist/mint-components/{p-a8ec5664.system.entry.js → p-be4b748a.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-f8d2c679.system.js → p-c84659a3.system.js} +1 -1
  206. package/dist/mint-components/{p-4e582dd8.entry.js → p-ce5afa40.entry.js} +1 -1
  207. package/dist/mint-components/{p-9276151f.js → p-ce621bcc.js} +1 -1
  208. package/dist/mint-components/{p-e4d14213.system.entry.js → p-cf690d55.system.entry.js} +1 -1
  209. package/dist/mint-components/{p-658d5964.system.entry.js → p-d0ea10c3.system.entry.js} +1 -1
  210. package/dist/mint-components/{p-91c1a54d.entry.js → p-d8d2de11.entry.js} +1 -1
  211. package/dist/mint-components/{p-a1b5a82c.system.js → p-dd7ee007.system.js} +1 -1
  212. package/dist/mint-components/{p-85f3c5d5.entry.js → p-e3735866.entry.js} +2 -2
  213. package/dist/mint-components/{p-cbfc4b47.js → p-eaada4da.js} +1 -1
  214. package/dist/mint-components/{p-d5b327ec.system.entry.js → p-eba44835.system.entry.js} +1 -1
  215. package/dist/mint-components/{p-42baa318.entry.js → p-ec41d6a4.entry.js} +1 -1
  216. package/dist/mint-components/{p-a2bce8d7.system.js → p-ed095674.system.js} +1 -1
  217. package/dist/mint-components/{p-186542b8.system.js → p-ed17e637.system.js} +1 -1
  218. package/dist/mint-components/{p-924384b2.entry.js → p-f3dd15c5.entry.js} +2 -2
  219. package/dist/mint-components/{p-284cc389.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
  220. package/docs/docs.docx +0 -0
  221. package/package.json +1 -1
  222. package/dist/esm-es5/index.module-3344e7dc.js +0 -1
  223. package/dist/esm-es5/sqm-navigation-sidebar-item-view-08e47843.js +0 -1
  224. package/dist/esm-es5/useInstantAccessRegistration-e95685e5.js +0 -1
  225. package/dist/mint-components/p-06ab1968.js +0 -1
  226. package/dist/mint-components/p-1ba5157e.js +0 -1
  227. package/dist/mint-components/p-2037fbd3.js +0 -1
  228. package/dist/mint-components/p-2b85b9d2.entry.js +0 -1
  229. package/dist/mint-components/p-30909368.entry.js +0 -1
  230. package/dist/mint-components/p-3d6eac77.js +0 -1
  231. package/dist/mint-components/p-3e87d803.entry.js +0 -1
  232. package/dist/mint-components/p-46af0bf6.system.js +0 -1
  233. package/dist/mint-components/p-50135af6.entry.js +0 -1
  234. package/dist/mint-components/p-5d86d0b4.entry.js +0 -1
  235. package/dist/mint-components/p-6fdf020e.entry.js +0 -1
  236. package/dist/mint-components/p-7c49ebfa.entry.js +0 -1
  237. package/dist/mint-components/p-d1ebd4c9.system.entry.js +0 -1
  238. package/dist/mint-components/p-ea2075fd.entry.js +0 -33
@@ -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-c588e9c1.system.js","./p-46af0bf6.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-e8dde8f4.system.js","./p-99b2ff9c.system.js","./p-67a8b7ae.system.js","./p-ce9e7c98.system.js","./p-370a1a73.system.js","./p-f8d2c679.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 A()}));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 b=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var A=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:x[Math.floor(Math.random()*x.length)],lastName:b[Math.floor(Math.random()*b.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
+ 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-59fe4ad1.system.js","./p-b370fca8.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-e8dde8f4.system.js","./p-674a64fe.system.js","./p-770368bc.system.js","./p-ce9e7c98.system.js","./p-370a1a73.system.js","./p-c84659a3.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 o,f as a,n as t}from"./p-fd2c5407.js";import{J as s,e as r,j as n,a as l,i as d}from"./p-2037fbd3.js";import{c}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{s as v,g as u}from"./p-9ec99ced.js";import"./p-5d0c9424.js";import{P as f}from"./p-c8610d0c.js";let m=null;const p=class{constructor(i){e(this,i),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.verifyEmailText="Verify your email",this.verifySuccessText="Your email has been verified and you are being redirected. If you are not redirected, please click Continue.",this.verifyInvalidText="The email verification code is invalid or has expired, please try again.",this.continueText="Continue",this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",t(this)}disconnectedCallback(){}render(){const{states:e,data:t,callbacks:p,content:h}=d()?(y=u(this),c({states:{error:"",loading:!1,success:!0},data:{oobCode:"code"},callbacks:{failed:()=>{console.log("failed")},gotoNextPage:()=>{}},content:{verifySuccessText:y.verifySuccessText,verifyEmailText:y.verifyEmailText,verifyInvalidText:y.verifyInvalidText,continueText:y.continueText}},y.demoData||{},{arrayMerge:(e,i)=>i})):function({nextPage:e,failedPage:i,verifySuccessText:t,verifyEmailText:d,verifyInvalidText:c,networkErrorMessage:u,continueText:f}){var p,h,y,g,x,T,b,j,P,k;const[C,E]=o(!1),[w,I]=o(!1),S=s(),[_,{loading:M,data:N,errors:q}]=r(),A=new URLSearchParams(n.location.search),L=A.get("oobCode"),R=A.get("email"),U=A.get("nextPage"),V=void 0===N&&void 0===q&&!!L,Y=!!((null===(p=null==S?void 0:S.managedIdentity)||void 0===p?void 0:p.emailVerified)||(null===(h=null==N?void 0:N.verifyManagedIdentityEmail)||void 0===h?void 0:h.success)||w),z=(null===(y=null==S?void 0:S.managedIdentity)||void 0===y?void 0:y.email)===R,B=()=>{A.delete("nextPage");const i=v(U||e);n.push(i.href)};return a((()=>{(async()=>{m||(m=_({oobCode:L}));const e=await m;e instanceof Error||!e.verifyManagedIdentityEmail.success||I(!0),E(!0)})()}),[]),a((()=>{C&&(Y&&z?setTimeout(B,3e3):setTimeout((()=>{l(void 0),B()}),3e3))}),[C,Y]),{states:{loading:M||!C,disableContinue:V,error:(null===(b=null===(T=null===(x=null===(g=null==q?void 0:q.response)||void 0===g?void 0:g.errors)||void 0===x?void 0:x[0])||void 0===T?void 0:T.extensions)||void 0===b?void 0:b.message)||(null===(k=null===(P=null===(j=null==q?void 0:q.response)||void 0===j?void 0:j.errors)||void 0===P?void 0:P[0])||void 0===k?void 0:k.message)||((null==q?void 0:q.message)||!z)&&u,success:C&&(Y||z)},data:{oobCode:L},callbacks:{failed:()=>n.push({pathname:i,search:A.toString()&&"?"+A.toString()}),gotoNextPage:B},content:{verifySuccessText:t,verifyEmailText:d,verifyInvalidText:c,continueText:f}}}(u(this));var y;return i(f,{states:e,data:t,callbacks:p,content:h})}};export{p as sqm_portal_verify_email}
1
+ import{r as e,h as i}from"./p-64c3217a.js";import{k as o,f as a,n as t}from"./p-fd2c5407.js";import{Q as s,j as r,$ as n,b as l,i as d}from"./p-a8f7cb95.js";import{c}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{s as v,g as u}from"./p-9ec99ced.js";import"./p-5d0c9424.js";import{P as f}from"./p-c8610d0c.js";let m=null;const p=class{constructor(i){e(this,i),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.verifyEmailText="Verify your email",this.verifySuccessText="Your email has been verified and you are being redirected. If you are not redirected, please click Continue.",this.verifyInvalidText="The email verification code is invalid or has expired, please try again.",this.continueText="Continue",this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",t(this)}disconnectedCallback(){}render(){const{states:e,data:t,callbacks:p,content:h}=d()?(y=u(this),c({states:{error:"",loading:!1,success:!0},data:{oobCode:"code"},callbacks:{failed:()=>{console.log("failed")},gotoNextPage:()=>{}},content:{verifySuccessText:y.verifySuccessText,verifyEmailText:y.verifyEmailText,verifyInvalidText:y.verifyInvalidText,continueText:y.continueText}},y.demoData||{},{arrayMerge:(e,i)=>i})):function({nextPage:e,failedPage:i,verifySuccessText:t,verifyEmailText:d,verifyInvalidText:c,networkErrorMessage:u,continueText:f}){var p,h,y,g,x,b,T,j,P,k;const[C,E]=o(!1),[w,I]=o(!1),S=s(),[_,{loading:M,data:N,errors:q}]=r(),A=new URLSearchParams(n.location.search),L=A.get("oobCode"),R=A.get("email"),U=A.get("nextPage"),V=void 0===N&&void 0===q&&!!L,Y=!!((null===(p=null==S?void 0:S.managedIdentity)||void 0===p?void 0:p.emailVerified)||(null===(h=null==N?void 0:N.verifyManagedIdentityEmail)||void 0===h?void 0:h.success)||w),$=(null===(y=null==S?void 0:S.managedIdentity)||void 0===y?void 0:y.email)===R,z=()=>{A.delete("nextPage");const i=v(U||e);n.push(i.href)};return a((()=>{(async()=>{m||(m=_({oobCode:L}));const e=await m;e instanceof Error||!e.verifyManagedIdentityEmail.success||I(!0),E(!0)})()}),[]),a((()=>{C&&(Y&&$?setTimeout(z,3e3):setTimeout((()=>{l(void 0),z()}),3e3))}),[C,Y]),{states:{loading:M||!C,disableContinue:V,error:(null===(T=null===(b=null===(x=null===(g=null==q?void 0:q.response)||void 0===g?void 0:g.errors)||void 0===x?void 0:x[0])||void 0===b?void 0:b.extensions)||void 0===T?void 0:T.message)||(null===(k=null===(P=null===(j=null==q?void 0:q.response)||void 0===j?void 0:j.errors)||void 0===P?void 0:P[0])||void 0===k?void 0:k.message)||((null==q?void 0:q.message)||!$)&&u,success:C&&(Y||$)},data:{oobCode:L},callbacks:{failed:()=>n.push({pathname:i,search:A.toString()&&"?"+A.toString()}),gotoNextPage:z},content:{verifySuccessText:t,verifyEmailText:d,verifyInvalidText:c,continueText:f}}}(u(this));var y;return i(f,{states:e,data:t,callbacks:p,content:h})}};export{p as sqm_portal_verify_email}
@@ -1 +1 @@
1
- System.register(["./p-2a414b2e.system.js","./p-46af0bf6.system.js"],(function(t){"use strict";var e,r;return{setters:[function(t){e=t.y},function(t){r=t._}],execute:function(){t("u",n);var s=t("R","sq:registration-form-state");function n(t){var n=r();var i=e(n,s,t),a=i[0],o=i[1];return{registrationFormState:a,setRegistrationFormState:o}}}}}));
1
+ System.register(["./p-2a414b2e.system.js","./p-b370fca8.system.js"],(function(t){"use strict";var e,r;return{setters:[function(t){e=t.y},function(t){r=t._}],execute:function(){t("u",n);var s=t("R","sq:registration-form-state");function n(t){var n=r();var i=e(n,s,t),a=i[0],o=i[1];return{registrationFormState:a,setRegistrationFormState:o}}}}}));
@@ -0,0 +1 @@
1
+ import{r as s,h as t}from"./p-64c3217a.js";import{n as o,k as c,f as r}from"./p-fd2c5407.js";import{S as n,H as a}from"./p-a8f7cb95.js";import{N as i}from"./p-ac1bf045.js";const e=class{constructor(t){s(this,t),this.ignored=!0,o(this)}disconnectedCallback(){}render(){const s=function(){const s=n(),t=a(),[o,i]=c(!1);return r((()=>{i(!1)}),[s.pathname,t]),{checked:o,onClick:function(s){i(s.target.checked)}}}();return t(i,Object.assign({},s),t("slot",null))}};export{e as sqm_navigation_sidebar}
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,n=arguments.length;e<n;e++){s=arguments[e];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-46af0bf6.system.js","./p-6333265f.system.js"],(function(t){"use strict";var s,e,n,a,o,r;return{setters:[function(t){s=t.h;e=t.c;n=t.r},function(t){a=t.n},function(t){o=t.B},function(t){r=t.g}],execute:function(){var c=function(t){var n=t.states,a=t.callbacks;var o=n.styles;return s(e,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding},part:"sqm-base"},o.closeButton&&s("span",{part:"sqm-close-button",class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:function(){return a.closePopup()}},o.closeButtonText),s("slot",null),o.poweredBy?s("a",{class:"sqh-attribution",href:"https://impact.com/advocate/",target:"_blank"},o.poweredByText):""))};function i(t){var s=o();function e(){var t;if(o()==="POPUP"){(t=window.frameElement["squatchJsApi"])===null||t===void 0?void 0:t.close()}}var n=t.popupPadding?t.popupPadding==="none"?"0":"var(--sl-spacing-"+t.popupPadding+")":"var(--sl-spacing-medium)";var a=t.embedPadding?t.embedPadding==="none"?"0":"var(--sl-spacing-"+t.embedPadding+")":"0";var r=o()==="POPUP"?n:a;return{states:{showCloseButton:t.closeButton&&s==="POPUP",styles:__assign(__assign({},t),{padding:r,closeButtonText:t.closeButtonText?t.closeButtonText:"X",poweredByText:t.poweredByText})},data:{},callbacks:{closePopup:e}}}var p=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var u=t("sqm_popup_container",function(){function t(t){n(this,t);this.poweredByText="Powered By";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());u.style=p}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,n=arguments.length;e<n;e++){s=arguments[e];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-b370fca8.system.js","./p-6333265f.system.js"],(function(t){"use strict";var s,e,n,a,o,r;return{setters:[function(t){s=t.h;e=t.c;n=t.r},function(t){a=t.n},function(t){o=t.B},function(t){r=t.g}],execute:function(){var c=function(t){var n=t.states,a=t.callbacks;var o=n.styles;return s(e,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding},part:"sqm-base"},o.closeButton&&s("span",{part:"sqm-close-button",class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:function(){return a.closePopup()}},o.closeButtonText),s("slot",null),o.poweredBy?s("a",{class:"sqh-attribution",href:"https://impact.com/advocate/",target:"_blank"},o.poweredByText):""))};function i(t){var s=o();function e(){var t;if(o()==="POPUP"){(t=window.frameElement["squatchJsApi"])===null||t===void 0?void 0:t.close()}}var n=t.popupPadding?t.popupPadding==="none"?"0":"var(--sl-spacing-"+t.popupPadding+")":"var(--sl-spacing-medium)";var a=t.embedPadding?t.embedPadding==="none"?"0":"var(--sl-spacing-"+t.embedPadding+")":"0";var r=o()==="POPUP"?n:a;return{states:{showCloseButton:t.closeButton&&s==="POPUP",styles:__assign(__assign({},t),{padding:r,closeButtonText:t.closeButtonText?t.closeButtonText:"X",poweredByText:t.poweredByText})},data:{},callbacks:{closePopup:e}}}var p=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var u=t("sqm_popup_container",function(){function t(t){n(this,t);this.poweredByText="Powered By";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());u.style=p}}}));
@@ -0,0 +1 @@
1
+ import{k as r}from"./p-fd2c5407.js";import{c as o}from"./p-a8f7cb95.js";import{j as a}from"./p-e7e129ac.js";import{u as t}from"./p-a6a7dcaa.js";function i(i){const n=new URLSearchParams(window.location.search),s=null==n?void 0:n.get("_saasquatch"),{registrationFormState:l,setRegistrationFormState:e}=t(),[c,{loading:d}]=o(),[m,u]=r("");return{states:{loading:d,error:null==l?void 0:l.error,registrationFormState:l},callbacks:{submit:async r=>{var o;u("");let t=r.target.getFormControls(),n=r.detail.formData,d={};null==t||t.map((r=>{if(!r.name)return;const o=r.name,t=r.value;if(a.set(n,o,t),r.required&&!t&&a.set(d,o,i.requiredFieldErrorMessage),"function"==typeof r.validationError){const i=(0,r.validationError)({control:r,key:o,value:t});i&&a.set(d,o,i)}}));const m={firstName:n.firstName,lastName:n.lastName,email:n.email,...(null==i?void 0:i.includeCookies)&&s?{cookies:s}:{}};try{const r=await c(m);if(r instanceof Error)throw r;e({...l,loading:!1,error:"",validationErrors:{}})}catch(r){(null===(o=null==r?void 0:r.message)||void 0===o?void 0:o.includes("is not valid"))?e({...l,loading:!1,error:"",validationErrors:{email:i.invalidEmailErrorMessage}}):e("fraud_error"===(null==r?void 0:r.name)?{...l,loading:!1,error:"FRAUD"}:{...l,loading:!1,error:i.networkErrorMessage,validationErrors:{}})}}}}}export{i as u}
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))r[a]=e[a]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,t,n){function a(r){return r instanceof t?r:new t((function(e){e(r)}))}return new(t||(t=Promise))((function(t,i){function o(r){try{l(n.next(r))}catch(r){i(r)}}function s(r){try{l(n["throw"](r))}catch(r){i(r)}}function l(r){r.done?t(r.value):a(r.value).then(o,s)}l((n=n.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(r){return function(e){return l([r,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(t)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;a=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1];i=o;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(o);break}if(i[2])t.ops.pop();t.trys.pop();continue}o=e.call(r,t)}catch(r){o=[6,r];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-2a414b2e.system.js","./p-46af0bf6.system.js","./p-b2295bc5.system.js","./p-0f65c86c.system.js"],(function(r){"use strict";var e,t,n,a;return{setters:[function(r){e=r.k},function(r){t=r.v},function(r){n=r.j},function(r){a=r.u}],execute:function(){r("u",i);function i(r){var i=this;var o=new URLSearchParams(window.location.search);var s=o===null||o===void 0?void 0:o.get("_saasquatch");var l=a(),u=l.registrationFormState,c=l.setRegistrationFormState;var f=t(),v=f[0],d=f[1],_=d.loading,g=d.errors,h=d.data;var p=e(""),m=p[0],y=p[1];var b=function(e){return __awaiter(i,void 0,void 0,(function(){var t,a,i,o,l,f,d;return __generator(this,(function(_){switch(_.label){case 0:y("");a=e.target.getFormControls();i=e.detail.formData;o={};a===null||a===void 0?void 0:a.map((function(e){if(!e.name)return;var t=e.name;var a=e.value;n.set(i,t,a);if(e.required&&!a){n.set(o,t,r.requiredFieldErrorMessage)}if(typeof e.validationError==="function"){var s=e.validationError;var l=s({control:e,key:t,value:a});if(l)n.set(o,t,l)}}));l=__assign({firstName:i.firstName,lastName:i.lastName,email:i.email},(r===null||r===void 0?void 0:r.includeCookies)&&s?{cookies:s}:{});_.label=1;case 1:_.trys.push([1,3,,4]);return[4,v(l)];case 2:f=_.sent();if(f instanceof Error){throw f}c(__assign(__assign({},u),{loading:false,error:"",validationErrors:{}}));return[3,4];case 3:d=_.sent();if((t=d===null||d===void 0?void 0:d.message)===null||t===void 0?void 0:t.includes("is not valid")){c(__assign(__assign({},u),{loading:false,error:"",validationErrors:{email:r.invalidEmailErrorMessage}}))}else if((d===null||d===void 0?void 0:d.name)==="fraud_error"){c(__assign(__assign({},u),{loading:false,error:"FRAUD"}))}else{c(__assign(__assign({},u),{loading:false,error:r.networkErrorMessage,validationErrors:{}}))}return[3,4];case 4:return[2]}}))}))};return{states:{loading:_,error:u===null||u===void 0?void 0:u.error,registrationFormState:u},callbacks:{submit:b}}}}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))r[a]=e[a]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,t,n){function a(r){return r instanceof t?r:new t((function(e){e(r)}))}return new(t||(t=Promise))((function(t,i){function o(r){try{l(n.next(r))}catch(r){i(r)}}function s(r){try{l(n["throw"](r))}catch(r){i(r)}}function l(r){r.done?t(r.value):a(r.value).then(o,s)}l((n=n.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(r){return function(e){return l([r,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(t)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;a=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1];i=o;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(o);break}if(i[2])t.ops.pop();t.trys.pop();continue}o=e.call(r,t)}catch(r){o=[6,r];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-2a414b2e.system.js","./p-b370fca8.system.js","./p-b2295bc5.system.js","./p-02424350.system.js"],(function(r){"use strict";var e,t,n,a;return{setters:[function(r){e=r.k},function(r){t=r.c},function(r){n=r.j},function(r){a=r.u}],execute:function(){r("u",i);function i(r){var i=this;var o=new URLSearchParams(window.location.search);var s=o===null||o===void 0?void 0:o.get("_saasquatch");var l=a(),u=l.registrationFormState,c=l.setRegistrationFormState;var f=t(),v=f[0],d=f[1],_=d.loading,g=d.errors,h=d.data;var p=e(""),m=p[0],y=p[1];var b=function(e){return __awaiter(i,void 0,void 0,(function(){var t,a,i,o,l,f,d;return __generator(this,(function(_){switch(_.label){case 0:y("");a=e.target.getFormControls();i=e.detail.formData;o={};a===null||a===void 0?void 0:a.map((function(e){if(!e.name)return;var t=e.name;var a=e.value;n.set(i,t,a);if(e.required&&!a){n.set(o,t,r.requiredFieldErrorMessage)}if(typeof e.validationError==="function"){var s=e.validationError;var l=s({control:e,key:t,value:a});if(l)n.set(o,t,l)}}));l=__assign({firstName:i.firstName,lastName:i.lastName,email:i.email},(r===null||r===void 0?void 0:r.includeCookies)&&s?{cookies:s}:{});_.label=1;case 1:_.trys.push([1,3,,4]);return[4,v(l)];case 2:f=_.sent();if(f instanceof Error){throw f}c(__assign(__assign({},u),{loading:false,error:"",validationErrors:{}}));return[3,4];case 3:d=_.sent();if((t=d===null||d===void 0?void 0:d.message)===null||t===void 0?void 0:t.includes("is not valid")){c(__assign(__assign({},u),{loading:false,error:"",validationErrors:{email:r.invalidEmailErrorMessage}}))}else if((d===null||d===void 0?void 0:d.name)==="fraud_error"){c(__assign(__assign({},u),{loading:false,error:"FRAUD"}))}else{c(__assign(__assign({},u),{loading:false,error:r.networkErrorMessage,validationErrors:{}}))}return[3,4];case 4:return[2]}}))}))};return{states:{loading:_,error:u===null||u===void 0?void 0:u.error,registrationFormState:u},callbacks:{submit:b}}}}}}));
@@ -0,0 +1 @@
1
+ import{r as s}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{b as a,$ as o,i as r}from"./p-a8f7cb95.js";const c=class{constructor(a){s(this,a),this.ignored=!0,this.nextPage="/",t(this)}disconnectedCallback(){}render(){r()||function({nextPage:s}){a(void 0),o.push({pathname:s,search:""})}(this)}};export{c as sqm_portal_logout}
@@ -1 +1 @@
1
- import{r as s,h as o}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{g as r}from"./p-2037fbd3.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{C as c}from"./p-fb93c962.js";const i=class{constructor(o){s(this,o),this.color="#000000",t(this)}disconnectedCallback(){}render(){var s;const t=r();return"SquatchJS2"!==t.type||"POPUP"!==(null===(s=t.widgetIdent)||void 0===s?void 0:s.engagementMedium)?o("div",{style:{display:"none"}}):o(c,{onClick:()=>{var s,o;"SquatchJS2"===t.type&&(null===(o=(s=t.api).close)||void 0===o||o.call(s))},color:this.color})}};export{i as sqm_close_button}
1
+ import{r as s,h as o}from"./p-64c3217a.js";import{n as t}from"./p-fd2c5407.js";import{a as r}from"./p-a8f7cb95.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{C as a}from"./p-fb93c962.js";const c=class{constructor(o){s(this,o),this.color="#000000",t(this)}disconnectedCallback(){}render(){var s;const t=r();return"SquatchJS2"!==t.type||"POPUP"!==(null===(s=t.widgetIdent)||void 0===s?void 0:s.engagementMedium)?o("div",{style:{display:"none"}}):o(a,{onClick:()=>{var s,o;"SquatchJS2"===t.type&&(null===(o=(s=t.api).close)||void 0===o||o.call(s))},color:this.color})}};export{c as sqm_close_button}