@saasquatch/mint-components 2.2.0-7 → 2.2.0-8

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 (214) hide show
  1. package/dist/cjs/{ShadowViewAddon-1c054d52.js → ShadowViewAddon-3b477e58.js} +429 -27
  2. package/dist/cjs/{data-c03e282a.js → data-89ac73dd.js} +1 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mint-components.cjs.js +1 -1
  5. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +48 -307
  6. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +334 -36
  7. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +19 -12
  9. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  10. package/dist/cjs/{sqm-partner-info-modal-view-97770d03.js → sqm-partner-info-modal-view-f6faecf5.js} +1 -1
  11. package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
  12. package/dist/cjs/{sqm-portal-email-verification-view-d51c2a06.js → sqm-portal-email-verification-view-abb773a7.js} +1 -1
  13. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +5 -5
  15. package/dist/cjs/{sqm-portal-profile-view-e6927959.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  17. package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
  18. package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
  19. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
  20. package/dist/cjs/{sqm-portal-verify-email-view-6258dcae.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
  21. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  22. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-stencilbook.cjs.entry.js +176 -32
  24. package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
  25. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  26. package/dist/cjs/{sqm-user-info-form-view-4d56b339.js → sqm-user-info-form-view-0e1ddbe4.js} +3 -388
  27. package/dist/cjs/{usePayoutStatus-0a98ee05.js → useIndirectTaxForm-c3c1ec56.js} +291 -0
  28. package/dist/cjs/utils-a3b3d05b.js +478 -0
  29. package/dist/collection/components/sqm-big-stat/useBigStat.js +5 -6
  30. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
  31. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +2 -3
  32. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -1
  33. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +2 -2
  34. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +15 -8
  35. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
  36. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
  37. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  38. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
  39. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  40. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
  41. package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
  42. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
  43. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
  44. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
  45. package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
  46. package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
  47. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  48. package/dist/collection/components/tax-and-cash/data.js +1 -0
  49. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +19 -1
  50. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +50 -0
  51. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  52. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  53. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +65 -7
  54. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +49 -3
  55. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  56. package/dist/esm/{ShadowViewAddon-4d554869.js → ShadowViewAddon-e115fa1c.js} +431 -30
  57. package/dist/esm/{data-017e5ef2.js → data-8698cbc6.js} +1 -0
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/esm/mint-components.js +1 -1
  60. package/dist/esm/sqm-banking-info-form_10.entry.js +36 -295
  61. package/dist/esm/sqm-big-stat_46.entry.js +333 -35
  62. package/dist/esm/sqm-code-verification.entry.js +1 -1
  63. package/dist/esm/sqm-email-verification_2.entry.js +19 -12
  64. package/dist/esm/sqm-empty_4.entry.js +1 -1
  65. package/dist/esm/{sqm-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js} +1 -1
  66. package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
  67. package/dist/esm/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  68. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  69. package/dist/esm/sqm-portal-forgot-password_6.entry.js +5 -5
  70. package/dist/esm/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-2018590a.js} +1 -1
  71. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  72. package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  73. package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  74. package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
  75. package/dist/esm/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  76. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  77. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  78. package/dist/esm/sqm-stencilbook.entry.js +174 -30
  79. package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  80. package/dist/esm/sqm-text-span.entry.js +1 -1
  81. package/dist/esm/{sqm-user-info-form-view-d13f9d3e.js → sqm-user-info-form-view-e1ba6009.js} +3 -385
  82. package/dist/esm/{usePayoutStatus-227ae365.js → useIndirectTaxForm-b2888ea5.js} +291 -3
  83. package/dist/esm/utils-4f5cd04c.js +467 -0
  84. package/dist/esm-es5/ShadowViewAddon-e115fa1c.js +1 -0
  85. package/dist/esm-es5/data-8698cbc6.js +1 -0
  86. package/dist/esm-es5/loader.js +1 -1
  87. package/dist/esm-es5/mint-components.js +1 -1
  88. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  89. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  90. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  91. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  92. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  93. package/dist/esm-es5/{sqm-partner-info-modal-view-5709904e.js → sqm-partner-info-modal-view-d6f3a215.js} +1 -1
  94. package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
  95. package/dist/esm-es5/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  96. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  97. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  98. package/dist/esm-es5/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-2018590a.js} +1 -1
  99. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  100. package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  101. package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  102. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  103. package/dist/esm-es5/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  104. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  105. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  106. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  107. package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  108. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  109. package/dist/esm-es5/sqm-user-info-form-view-e1ba6009.js +1 -0
  110. package/dist/esm-es5/useIndirectTaxForm-b2888ea5.js +6 -0
  111. package/dist/esm-es5/utils-4f5cd04c.js +1 -0
  112. package/dist/mint-components/mint-components.esm.js +1 -1
  113. package/dist/mint-components/{p-4034f157.js → p-0afa6148.js} +1 -1
  114. package/dist/mint-components/p-0b1e90fe.system.js +1 -0
  115. package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
  116. package/dist/mint-components/{p-b1b20d42.entry.js → p-1d398dbc.entry.js} +1 -1
  117. package/dist/mint-components/p-1e6a2945.js +1 -0
  118. package/dist/mint-components/p-1efb42e2.js +499 -0
  119. package/dist/mint-components/p-1f387c7b.system.js +1 -1
  120. package/dist/mint-components/{p-d6ccb6fc.entry.js → p-2ed13619.entry.js} +1 -1
  121. package/dist/mint-components/{p-b1765c78.system.js → p-31815fb6.system.js} +1 -1
  122. package/dist/mint-components/p-335a5736.entry.js +1 -0
  123. package/dist/mint-components/{p-dbc8afaa.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
  124. package/dist/mint-components/{p-d1c1c2c9.entry.js → p-3596e241.entry.js} +2 -2
  125. package/dist/mint-components/{p-1faa6ddf.system.entry.js → p-37e24621.system.entry.js} +1 -1
  126. package/dist/mint-components/{p-dafe30c3.entry.js → p-4d73a616.entry.js} +1 -1
  127. package/dist/mint-components/{p-9ba8b28b.system.entry.js → p-51ae6716.system.entry.js} +1 -1
  128. package/dist/mint-components/p-58c24352.system.js +6 -0
  129. package/dist/mint-components/{p-00046ec1.js → p-5c52100b.js} +1 -0
  130. package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
  131. package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
  132. package/dist/mint-components/{p-bd972473.system.js → p-7628e56f.system.js} +1 -1
  133. package/dist/mint-components/{p-d71a8b38.entry.js → p-7cbdf341.entry.js} +2 -2
  134. package/dist/mint-components/p-7d2d9ef9.system.js +1 -0
  135. package/dist/mint-components/{p-8d073bdf.entry.js → p-84495fb8.entry.js} +1 -1
  136. package/dist/mint-components/{p-cfba6b4e.system.entry.js → p-86d20b47.system.entry.js} +1 -1
  137. package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
  138. package/dist/mint-components/p-9674856e.entry.js +9 -0
  139. package/dist/mint-components/p-9c1f5317.system.js +1 -0
  140. package/dist/mint-components/p-9f48640d.js +1 -0
  141. package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
  142. package/dist/mint-components/p-a88b8165.system.entry.js +1 -0
  143. package/dist/mint-components/p-abe9f5b1.js +99 -0
  144. package/dist/mint-components/{p-31edeff4.system.js → p-ae2f610e.system.js} +1 -1
  145. package/dist/mint-components/p-b222bace.system.entry.js +1 -0
  146. package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
  147. package/dist/mint-components/{p-2ab31786.js → p-b871d158.js} +1 -1
  148. package/dist/mint-components/p-b96ed8eb.js +1 -0
  149. package/dist/mint-components/p-bbd41807.entry.js +291 -0
  150. package/dist/mint-components/{p-9b15ee47.system.js → p-be6a0dee.system.js} +1 -1
  151. package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
  152. package/dist/mint-components/{p-0102ad17.system.entry.js → p-c0f8f977.system.entry.js} +1 -1
  153. package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
  154. package/dist/mint-components/p-cdabd9de.system.js +1 -0
  155. package/dist/mint-components/{p-7699d40a.system.entry.js → p-cfc35705.system.entry.js} +1 -1
  156. package/dist/mint-components/p-d2ede7cd.system.entry.js +1 -0
  157. package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
  158. package/dist/mint-components/p-db6bf7cf.system.entry.js +1 -0
  159. package/dist/mint-components/p-e30abc44.js +1 -0
  160. package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
  161. package/dist/mint-components/{p-ae4994e1.js → p-e8e7af06.js} +1 -1
  162. package/dist/mint-components/p-ebc519bc.system.js +1 -0
  163. package/dist/mint-components/{p-eee0bcf4.entry.js → p-ef32fa8f.entry.js} +1 -1
  164. package/dist/mint-components/{p-ca5b9f4d.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
  165. package/dist/mint-components/p-ffcebe78.entry.js +83 -0
  166. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
  167. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
  168. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
  169. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
  170. package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
  171. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
  172. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
  173. package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
  174. package/dist/types/components/tax-and-cash/data.d.ts +2 -0
  175. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +6 -0
  176. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +8 -0
  177. package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
  178. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -0
  179. package/dist/types/components.d.ts +397 -4
  180. package/docs/docs.docx +0 -0
  181. package/docs/raisins.json +1 -1
  182. package/grapesjs/grapesjs.js +1 -1
  183. package/package.json +1 -1
  184. package/readme.md +60 -1
  185. package/shoelace/assets/icons/twitter-x.svg +4 -0
  186. package/dist/cjs/utils-15ce04e3.js +0 -93
  187. package/dist/esm/utils-17daa419.js +0 -85
  188. package/dist/esm-es5/ShadowViewAddon-4d554869.js +0 -1
  189. package/dist/esm-es5/data-017e5ef2.js +0 -1
  190. package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
  191. package/dist/esm-es5/sqm-user-info-form-view-d13f9d3e.js +0 -1
  192. package/dist/esm-es5/usePayoutStatus-227ae365.js +0 -6
  193. package/dist/esm-es5/utils-17daa419.js +0 -1
  194. package/dist/mint-components/p-00dd7f08.js +0 -1
  195. package/dist/mint-components/p-3254fbb4.entry.js +0 -291
  196. package/dist/mint-components/p-4a8ffa03.system.js +0 -1
  197. package/dist/mint-components/p-4e34bcb1.system.js +0 -1
  198. package/dist/mint-components/p-53d90eb5.js +0 -463
  199. package/dist/mint-components/p-5e300ec1.system.js +0 -6
  200. package/dist/mint-components/p-614723aa.js +0 -1
  201. package/dist/mint-components/p-6af71f23.entry.js +0 -9
  202. package/dist/mint-components/p-6c23abd8.entry.js +0 -1
  203. package/dist/mint-components/p-753d06ef.entry.js +0 -133
  204. package/dist/mint-components/p-7aace2b3.system.js +0 -1
  205. package/dist/mint-components/p-b0ab1065.system.entry.js +0 -1
  206. package/dist/mint-components/p-b52a7da9.system.entry.js +0 -1
  207. package/dist/mint-components/p-b699f76e.system.js +0 -1
  208. package/dist/mint-components/p-b6a1e2ac.js +0 -1
  209. package/dist/mint-components/p-b7370480.js +0 -1
  210. package/dist/mint-components/p-ce7d824b.js +0 -49
  211. package/dist/mint-components/p-e93cdcbd.system.js +0 -1
  212. package/dist/mint-components/p-eb285d38.system.entry.js +0 -1
  213. package/dist/mint-components/p-f782ff10.system.entry.js +0 -1
  214. package/docs/stats.json +0 -122783
@@ -1,20 +1,20 @@
1
1
  import { h, c as Host, d as getAssetPath, F as Fragment, g as getElement } from './index-38ad4957.js';
2
2
  import { i as intl } from './global-75e96214.js';
3
- import { b as browser, u as useMemo, k as useState } from './dom-context-hooks.module-50442785.js';
4
- import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK } from './index.module-02cb914c.js';
3
+ import { b as browser, u as useMemo, k as useState, m as useRef } from './dom-context-hooks.module-50442785.js';
4
+ import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK, X as Xe, Q as Qe } from './index.module-02cb914c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { l as luxonLocale } from './utils-334c1e34.js';
7
7
  import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
8
8
  import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-25f8b792.js';
9
9
  import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f750863a.js';
10
10
  import { C as CopyTextView } from './copy-text-view-87259b11.js';
11
- import { T as TextSpanView } from './sqm-text-span-view-4db9e33f.js';
11
+ import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
12
12
  import { u as useChildElements } from './useChildElements-06937df7.js';
13
13
  import { l as luxon } from './luxon-1be92a8e.js';
14
14
  import { p as pathToRegexp } from './index-ffa26b43.js';
15
15
  import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
16
16
  import { a as isValidColor, b as isMobile } from './utilities-cbd8f2eb.js';
17
- import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-a8c708cd.js';
17
+ import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-200c9df8.js';
18
18
 
19
19
  function BigStatView(props) {
20
20
  const { statvalue, flexReverse, alignment, statTextColor, statFontSize, descriptionTextColor, descriptionFontSize, statFontWeight, } = props;
@@ -540,7 +540,7 @@ _, type, unit, status, global = "") => {
540
540
  $programId: ID
541
541
  $unit: String
542
542
  $type: RewardType
543
- $statusFilter: RewardStatusFilterInput
543
+ ${statusFilter ? "$statusFilter: RewardStatusFilterInput" : ""}
544
544
  ) {
545
545
  viewer {
546
546
  ... on User {
@@ -549,7 +549,7 @@ _, type, unit, status, global = "") => {
549
549
  programId_eq: $programId
550
550
  type_eq: $type
551
551
  unit_eq: $unit
552
- statuses_eq: $statusFilter
552
+ ${statusFilter ? "statuses_eq: $statusFilter" : "statuses_nin: [{status: CANCELLED}, {status: EXPIRED}]"}
553
553
  }
554
554
  ) {
555
555
  totalCount
@@ -575,14 +575,14 @@ const integrationRewardsCountFilteredQuery = (programId,
575
575
  _, status, global = "") => {
576
576
  const statusFilter = status ? { status } : null;
577
577
  return debugQuery(dist.gql `
578
- query ($programId: ID, $statusFilter: RewardStatusFilterInput) {
578
+ query ($programId: ID, ${statusFilter ? "$statusFilter: RewardStatusFilterInput" : ""}) {
579
579
  viewer {
580
580
  ... on User {
581
581
  rewards(
582
582
  filter: {
583
583
  programId_eq: $programId
584
584
  type_eq: INTEGRATION
585
- statuses_eq: $statusFilter
585
+ ${statusFilter ? "statuses_eq: $statusFilter" : "statuses_nin: [{status: CANCELLED}, {status: EXPIRED}]"}
586
586
  }
587
587
  ) {
588
588
  totalCount
@@ -1081,8 +1081,7 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
1081
1081
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
1082
1082
  const balance = arr === null || arr === void 0 ? void 0 : arr[0];
1083
1083
  const totalEarned = balance
1084
- ? (balance.totalAssignedCredit || 0) +
1085
- (balance.totalPendingCredit || 0)
1084
+ ? (balance.totalAssignedCredit || 0) + (balance.totalPendingCredit || 0)
1086
1085
  : 0;
1087
1086
  const result = wn(dist.gql `
1088
1087
  query (
@@ -2301,7 +2300,7 @@ function CheckboxFieldView(props) {
2301
2300
  h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
2302
2301
  e.target.value = e.target.checked;
2303
2302
  callbacks.setChecked(e.target.value);
2304
- } }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
2303
+ } }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
2305
2304
  if (!value && !content.checkboxOptional) {
2306
2305
  return content.errorMessage;
2307
2306
  }
@@ -3022,7 +3021,7 @@ function ReferralIframeView(props) {
3022
3021
  const styleString = sheet.toString();
3023
3022
  return (h("div", { class: sheet.classes.Container },
3024
3023
  h("style", { type: "text/css" }, styleString),
3025
- h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
3024
+ h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?${encodeURIComponent(content.codeParam)}=${data.shareCode}` })));
3026
3025
  }
3027
3026
 
3028
3027
  const CheckMark = () => (h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
@@ -4227,15 +4226,203 @@ function useShareButton(props) {
4227
4226
  };
4228
4227
  }
4229
4228
 
4229
+ const vanillaStyle$6 = `
4230
+ :host {
4231
+ display: block;
4232
+ width: 100%;
4233
+ }
4234
+ `;
4235
+ function ShareLinkView(props) {
4236
+ const { copyTextViewProps, allowCustomization, customizeLinkLabel, saveLabelText, savingLabelText, cancelLabelText, editLabelText, charactersRemainingText, validatingLabelText, isEditing, editValue, domainPrefix, editsRemaining, limitReached, validationError, isValidating, isSaving, characterLimit, minCharacters, charactersRemaining, editLimitText, editLimitReachedText, supportLinkText, customizeDisabled, customizeDisabledTooltip, onCustomizeClick, onEditValueChange, onSave, onCancel, minCharactersText, } = props;
4237
+ const style = {
4238
+ Container: {
4239
+ display: "flex",
4240
+ flexDirection: "column",
4241
+ gap: "var(--sl-spacing-xx-small)",
4242
+ width: "100%",
4243
+ },
4244
+ CustomizeLinkText: {
4245
+ paddingTop: "var(--sl-spacing-xx-small)",
4246
+ margin: "0",
4247
+ fontSize: "var(--sl-font-size-small)",
4248
+ fontWeight: "600",
4249
+ cursor: "pointer",
4250
+ color: "var(--sl-color-neutral-900)",
4251
+ textAlign: "left",
4252
+ "&:hover": {
4253
+ textDecoration: "underline",
4254
+ },
4255
+ },
4256
+ CustomizeLinkDisabled: {
4257
+ paddingTop: "var(--sl-spacing-xx-small)",
4258
+ margin: "0",
4259
+ fontSize: "var(--sl-font-size-small)",
4260
+ fontWeight: "600",
4261
+ color: "var(--sl-color-neutral-400)",
4262
+ cursor: "default",
4263
+ textAlign: "left",
4264
+ },
4265
+ EditContainer: {
4266
+ display: "flex",
4267
+ flexDirection: "column",
4268
+ gap: "var(--sl-spacing-x-small)",
4269
+ width: "100%",
4270
+ },
4271
+ EditInputWrapper: {
4272
+ display: "flex",
4273
+ alignItems: "center",
4274
+ width: "100%",
4275
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-input-border-color, #d1d5db)",
4276
+ borderRadius: "var(--sqm-border-radius-normal, 4px)",
4277
+ background: "var(--sqm-input-background, #fff)",
4278
+ overflow: "hidden",
4279
+ "&:focus-within": {
4280
+ borderColor: "#999999",
4281
+ boxShadow: "0 0 0 var(--sl-focus-ring-width) var(--sl-input-focus-ring-color)",
4282
+ },
4283
+ },
4284
+ DomainPrefix: {
4285
+ padding: "0 0 0 var(--sl-spacing-medium)",
4286
+ fontSize: "var(--sl-font-size-medium)",
4287
+ color: "var(--sl-color-neutral-500)",
4288
+ whiteSpace: "nowrap",
4289
+ userSelect: "none",
4290
+ lineHeight: "var(--sl-input-height-medium)",
4291
+ },
4292
+ EditInput: {
4293
+ "&::part(base)": {
4294
+ border: "none",
4295
+ borderRadius: "0",
4296
+ },
4297
+ "&::part(input)": {
4298
+ margin: 0,
4299
+ },
4300
+ },
4301
+ EditLabel: {
4302
+ margin: "0",
4303
+ fontSize: "var(--sl-font-size-small)",
4304
+ color: "var(--sl-color-neutral-500)",
4305
+ },
4306
+ HelperText: {
4307
+ paddingTop: "var(--sl-spacing-xx-small)",
4308
+ margin: "0",
4309
+ fontSize: "var(--sl-font-size-small)",
4310
+ color: "var(--sl-color-neutral-500)",
4311
+ },
4312
+ ErrorText: {
4313
+ margin: "0",
4314
+ fontSize: "var(--sl-font-size-small)",
4315
+ color: "var(--sqm-danger-color-text, #dc2626)",
4316
+ },
4317
+ ActionRow: {
4318
+ display: "flex",
4319
+ gap: "var(--sl-spacing-medium)",
4320
+ alignItems: "center",
4321
+ },
4322
+ SaveButton: {
4323
+ cursor: "pointer",
4324
+ fontFamily: "var(--sl-font-sans)",
4325
+ fontSize: "var(--sl-font-size-small)",
4326
+ fontWeight: "600",
4327
+ padding: "var(--sl-spacing-x-small) var(--sl-spacing-medium)",
4328
+ borderRadius: "var(--sqm-border-radius-normal, 4px)",
4329
+ border: "1px solid var(--sl-color-neutral-900)",
4330
+ background: "var(--sl-color-neutral-900)",
4331
+ color: "#fff",
4332
+ "&:disabled": {
4333
+ opacity: "0.5",
4334
+ cursor: "default",
4335
+ },
4336
+ },
4337
+ CancelButton: {
4338
+ margin: "0",
4339
+ fontSize: "var(--sl-font-size-small)",
4340
+ fontWeight: "600",
4341
+ cursor: "pointer",
4342
+ background: "none",
4343
+ border: "none",
4344
+ fontFamily: "var(--sl-font-sans)",
4345
+ color: "var(--sl-color-neutral-500)",
4346
+ "&::part(label)": {
4347
+ padding: "0",
4348
+ },
4349
+ },
4350
+ LimitReachedContainer: {
4351
+ display: "flex",
4352
+ alignItems: "center",
4353
+ gap: "var(--sl-spacing-x-small)",
4354
+ },
4355
+ };
4356
+ const sheet = createStyleSheet(style);
4357
+ const styleString = sheet.toString();
4358
+ const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
4359
+ const showCharactersRemaining = charactersRemaining <= 14;
4360
+ const editLimitMessage = intl.formatMessage({
4361
+ id: "editLimitText",
4362
+ defaultMessage: editLimitText,
4363
+ }, { editsRemaining });
4364
+ // Editing state
4365
+ if (isEditing) {
4366
+ return (h("div", { class: sheet.classes.Container },
4367
+ h("style", { type: "text/css" },
4368
+ styleString,
4369
+ vanillaStyle$6),
4370
+ h("p", { class: sheet.classes.EditLabel }, editLabelText),
4371
+ h("div", { class: sheet.classes.EditInputWrapper },
4372
+ h("span", { class: sheet.classes.DomainPrefix }, domainPrefix),
4373
+ h("sl-input", { class: sheet.classes.EditInput, type: "text", value: editValue, onInput: (e) => onEditValueChange(e.target.value), onKeyDown: (e) => {
4374
+ if (e.key === "/" || e.key === "@")
4375
+ e.preventDefault();
4376
+ }, disabled: isSaving, maxLength: characterLimit })),
4377
+ h("p", { class: sheet.classes.HelperText },
4378
+ editLimitMessage,
4379
+ " ",
4380
+ charactersRemaining > 12 && minCharactersText,
4381
+ showCharactersRemaining &&
4382
+ ` ${intl.formatMessage({
4383
+ id: "charactersRemainingText",
4384
+ defaultMessage: charactersRemainingText,
4385
+ }, { charactersRemaining })}`),
4386
+ validationError && (h("sqm-form-message", { type: errorMessageType, style: { paddingBottom: "var(--sl-spacing-xx-small)" } },
4387
+ h("p", { part: "alert-title" }, validationError.title),
4388
+ validationError.description)),
4389
+ isValidating && (h("p", { class: sheet.classes.HelperText }, validatingLabelText)),
4390
+ h("div", { class: sheet.classes.ActionRow },
4391
+ h("button", { class: sheet.classes.SaveButton, onClick: onSave, disabled: isSaving ||
4392
+ isValidating ||
4393
+ !!validationError ||
4394
+ !editValue ||
4395
+ editValue.length < minCharacters }, isSaving ? savingLabelText : saveLabelText),
4396
+ h("sl-button", { type: "text", class: sheet.classes.CancelButton, onClick: onCancel, disabled: isSaving }, cancelLabelText))));
4397
+ }
4398
+ // Default / Customized / Limit reached states
4399
+ return (h("div", { class: sheet.classes.Container },
4400
+ h("style", { type: "text/css" },
4401
+ styleString,
4402
+ vanillaStyle$6),
4403
+ h(CopyTextView, Object.assign({}, copyTextViewProps)),
4404
+ allowCustomization &&
4405
+ (customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip, placement: "top", style: { display: "inline-block", width: "fit-content" } },
4406
+ h("p", { class: sheet.classes.CustomizeLinkDisabled }, customizeLinkLabel))) : (h("div", { class: sheet.classes.LimitReachedContainer },
4407
+ h("p", { class: limitReached
4408
+ ? sheet.classes.CustomizeLinkDisabled
4409
+ : sheet.classes.CustomizeLinkText, onClick: limitReached ? undefined : onCustomizeClick }, customizeLinkLabel),
4410
+ allowCustomization && limitReached && (h("p", { class: sheet.classes.HelperText }, intl.formatMessage({
4411
+ id: "editLimitReached",
4412
+ defaultMessage: editLimitReachedText,
4413
+ }, {
4414
+ supportLink: (h("a", { target: "_blank", href: "https://help.impact.com/other/readme/get-help-and-support" }, supportLinkText)),
4415
+ }))))))));
4416
+ }
4417
+
4418
+ const MAX_EDITS = 5;
4419
+ const CHARACTER_LIMIT = 15;
4420
+ const MIN_CHARACTERS = 3;
4230
4421
  const MessageLinkQuery$1 = dist.gql `
4231
- query ($programId: ID, $engagementMedium: UserEngagementMedium!) {
4422
+ query ($programId: ID) {
4232
4423
  user: viewer {
4233
4424
  ... on User {
4234
- shareLink(
4235
- programId: $programId
4236
- engagementMedium: $engagementMedium
4237
- shareMedium: DIRECT
4238
- )
4425
+ shareLink(programId: $programId)
4239
4426
  }
4240
4427
  }
4241
4428
  }
@@ -4245,19 +4432,115 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
4245
4432
  createUserAnalyticsEvent(eventMeta: $eventMeta)
4246
4433
  }
4247
4434
  `;
4435
+ const ADD_SHARE_LINK_CODE = dist.gql `
4436
+ mutation ($addShareLinkCodeInput: AddShareLinkCodeInput!) {
4437
+ addShareLinkCode(addShareLinkCodeInput: $addShareLinkCodeInput) {
4438
+ linkCode {
4439
+ linkCode
4440
+ shortUrl
4441
+ referralCode {
4442
+ code
4443
+ }
4444
+ }
4445
+ }
4446
+ }
4447
+ `;
4448
+ const VALIDATE_LINK_CODE = dist.gql `
4449
+ query validateLinkCode($linkCode: String!) {
4450
+ validateLinkCode(linkCode: $linkCode) {
4451
+ valid
4452
+ invalidReason
4453
+ }
4454
+ }
4455
+ `;
4456
+ const GET_LINK_DOMAIN = dist.gql `
4457
+ query getLinkDomain {
4458
+ tenantSettings {
4459
+ primaryLinkDomain {
4460
+ host
4461
+ }
4462
+ }
4463
+ }
4464
+ `;
4465
+ const SHARE_LINK_EDIT_COUNT = dist.gql `
4466
+ query shareLinkEditCount {
4467
+ viewer {
4468
+ ... on User {
4469
+ shareLinkCodes {
4470
+ totalCount
4471
+ data {
4472
+ isVanity
4473
+ }
4474
+ }
4475
+ }
4476
+ }
4477
+ }
4478
+ `;
4479
+ function parseShareUrl(url) {
4480
+ try {
4481
+ const parsed = new URL(url);
4482
+ return {
4483
+ url: parsed.origin + parsed.pathname,
4484
+ domain: parsed.origin + "/",
4485
+ path: parsed.pathname.slice(1),
4486
+ };
4487
+ }
4488
+ catch {
4489
+ return { url, domain: url, path: "" };
4490
+ }
4491
+ }
4248
4492
  function useShareLink(props) {
4249
- var _a, _b;
4493
+ var _a, _b, _c, _d, _e, _f, _g;
4250
4494
  const { programId = H() } = props;
4251
4495
  const user = J();
4252
4496
  const engagementMedium = B();
4253
4497
  const contextData = Fn(REFERRAL_CODES_NAMESPACE);
4254
- const { data } = wn(MessageLinkQuery$1, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
4498
+ const { data, refetch } = wn(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
4255
4499
  const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
4256
- const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
4257
- const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
4500
+ const [setCopied] = $e(SET_CODE_COPIED);
4501
+ const [addShareLinkCode, { loading: isSaving }] = $e(ADD_SHARE_LINK_CODE);
4502
+ const [validateLinkCode] = Xe(VALIDATE_LINK_CODE);
4503
+ const { refresh } = Qe();
4504
+ const { data: linkDomainData } = wn(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.allowCustomization);
4505
+ const { data: editCountData, refetch: refetchEditCount } = wn(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.allowCustomization);
4506
+ const { url: copyString, domain: domainPrefix, path: pathSuffix, } = parseShareUrl((_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
4258
4507
  // Shown during loading
4259
- "...";
4508
+ "...");
4260
4509
  const [open, setOpen] = useState(false);
4510
+ const [isEditing, setIsEditing] = useState(false);
4511
+ const [editValue, setEditValue] = useState("");
4512
+ const [validationError, setValidationError] = useState(null);
4513
+ const [isValidating, setIsValidating] = useState(false);
4514
+ const debounceTimerRef = useRef(undefined);
4515
+ const latestValidationValueRef = useRef("");
4516
+ const hasPrimaryLinkDomain = ((_c = linkDomainData === null || linkDomainData === void 0 ? void 0 : linkDomainData.tenantSettings) === null || _c === void 0 ? void 0 : _c.primaryLinkDomain) != null;
4517
+ const customizeDisabled = !hasPrimaryLinkDomain;
4518
+ const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
4519
+ const editCount = vanityCount;
4520
+ const editsRemaining = Math.max(0, MAX_EDITS - editCount);
4521
+ const limitReached = editsRemaining <= 0;
4522
+ function mapErrorCodeToInfo(errorCode) {
4523
+ if (!errorCode)
4524
+ return null;
4525
+ const errorMap = {
4526
+ EXISTING_CODE_CONFLICT: {
4527
+ code: "EXISTING_CODE_CONFLICT",
4528
+ title: props.linkTakenErrorTitle,
4529
+ description: props.linkTakenErrorDescription,
4530
+ },
4531
+ INVALID_CHARACTER: {
4532
+ code: "INVALID_CHARACTER",
4533
+ title: props.invalidCharactersErrorTitle,
4534
+ description: props.invalidCharactersErrorDescription,
4535
+ },
4536
+ BLOCKED_WORD: {
4537
+ code: "BLOCKED_WORD",
4538
+ title: props.restrictedWordsErrorTitle,
4539
+ description: props.restrictedWordsErrorDescription,
4540
+ },
4541
+ };
4542
+ return errorMap[errorCode];
4543
+ }
4261
4544
  async function onClick() {
4262
4545
  if (contextData) {
4263
4546
  await setCopied({ referralCode: contextData.referralCode });
@@ -4281,7 +4564,125 @@ function useShareLink(props) {
4281
4564
  },
4282
4565
  });
4283
4566
  }
4284
- return { ...props, onClick, open, copyString: copyString };
4567
+ function onCustomizeClick() {
4568
+ if (limitReached || customizeDisabled)
4569
+ return;
4570
+ setIsEditing(true);
4571
+ setEditValue(editCount === 0 ? "" : pathSuffix);
4572
+ setValidationError(null);
4573
+ }
4574
+ function onEditValueChange(value) {
4575
+ const trimmed = value.slice(0, CHARACTER_LIMIT);
4576
+ setEditValue(trimmed);
4577
+ setValidationError(null);
4578
+ latestValidationValueRef.current = trimmed;
4579
+ if (debounceTimerRef.current)
4580
+ clearTimeout(debounceTimerRef.current);
4581
+ if (!trimmed || trimmed.length < MIN_CHARACTERS) {
4582
+ setIsValidating(false);
4583
+ return;
4584
+ }
4585
+ setIsValidating(true);
4586
+ debounceTimerRef.current = setTimeout(async () => {
4587
+ var _a, _b;
4588
+ const requestedValue = trimmed;
4589
+ try {
4590
+ const result = await validateLinkCode({ linkCode: requestedValue });
4591
+ // Discard stale responses if the user has continued typing
4592
+ if (latestValidationValueRef.current !== requestedValue)
4593
+ return;
4594
+ if (!((_a = result === null || result === void 0 ? void 0 : result.validateLinkCode) === null || _a === void 0 ? void 0 : _a.valid)) {
4595
+ const reason = (_b = result === null || result === void 0 ? void 0 : result.validateLinkCode) === null || _b === void 0 ? void 0 : _b.invalidReason;
4596
+ setValidationError(mapErrorCodeToInfo(reason));
4597
+ }
4598
+ }
4599
+ catch {
4600
+ // Validation query failed — don't block the user
4601
+ if (latestValidationValueRef.current !== requestedValue)
4602
+ return;
4603
+ }
4604
+ if (latestValidationValueRef.current === requestedValue) {
4605
+ setIsValidating(false);
4606
+ }
4607
+ }, 500);
4608
+ }
4609
+ async function onSave() {
4610
+ var _a, _b;
4611
+ if (!editValue ||
4612
+ editValue.length < MIN_CHARACTERS ||
4613
+ validationError ||
4614
+ isValidating)
4615
+ return;
4616
+ try {
4617
+ await addShareLinkCode({
4618
+ addShareLinkCodeInput: {
4619
+ userId: user === null || user === void 0 ? void 0 : user.id,
4620
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
4621
+ programId,
4622
+ linkCode: editValue,
4623
+ makeShareLinkCodePrimaryForReferralCode: true,
4624
+ },
4625
+ });
4626
+ setIsEditing(false);
4627
+ await Promise.all([refetch(), refetchEditCount()]);
4628
+ refresh();
4629
+ }
4630
+ catch (e) {
4631
+ const errorCode = (_a = e === null || e === void 0 ? void 0 : e.extensions) === null || _a === void 0 ? void 0 : _a.code;
4632
+ setValidationError((_b = mapErrorCodeToInfo(errorCode)) !== null && _b !== void 0 ? _b : {
4633
+ code: null,
4634
+ title: props.saveErrorTitle,
4635
+ description: (e === null || e === void 0 ? void 0 : e.message) || props.saveErrorDescription,
4636
+ });
4637
+ }
4638
+ }
4639
+ function onCancel() {
4640
+ setIsEditing(false);
4641
+ setEditValue("");
4642
+ setValidationError(null);
4643
+ setIsValidating(false);
4644
+ latestValidationValueRef.current = "";
4645
+ if (debounceTimerRef.current)
4646
+ clearTimeout(debounceTimerRef.current);
4647
+ }
4648
+ return {
4649
+ copyTextViewProps: {
4650
+ ...props,
4651
+ onClick,
4652
+ open,
4653
+ copyString,
4654
+ },
4655
+ minCharactersText: props.minCharactersText,
4656
+ allowCustomization: props.allowCustomization,
4657
+ customizeLinkLabel: props.customizeLinkButtonLabel,
4658
+ saveLabelText: props.saveLabelText,
4659
+ savingLabelText: props.savingLabelText,
4660
+ cancelLabelText: props.cancelLabelText,
4661
+ editLabelText: props.editLabelText,
4662
+ charactersRemainingText: props.charactersRemainingText,
4663
+ validatingLabelText: props.validatingLabelText,
4664
+ isEditing,
4665
+ editValue,
4666
+ domainPrefix,
4667
+ editsRemaining,
4668
+ maxEdits: MAX_EDITS,
4669
+ limitReached,
4670
+ validationError,
4671
+ isValidating,
4672
+ isSaving,
4673
+ characterLimit: CHARACTER_LIMIT,
4674
+ minCharacters: MIN_CHARACTERS,
4675
+ charactersRemaining: CHARACTER_LIMIT - editValue.length,
4676
+ editLimitText: props.editLimitText,
4677
+ editLimitReachedText: props.editLimitReachedText,
4678
+ supportLinkText: props.supportLinkText,
4679
+ customizeDisabled,
4680
+ customizeDisabledTooltip: props.customizeDisabledTooltip,
4681
+ onCustomizeClick,
4682
+ onEditValueChange,
4683
+ onSave,
4684
+ onCancel,
4685
+ };
4285
4686
  }
4286
4687
 
4287
4688
  const style$9 = {
@@ -4322,7 +4723,7 @@ const style$9 = {
4322
4723
  },
4323
4724
  ErrorStyle: ErrorStyles,
4324
4725
  };
4325
- const vanillaStyle$6 = `
4726
+ const vanillaStyle$7 = `
4326
4727
  sqm-portal-register {
4327
4728
  margin: 0 auto;
4328
4729
  width: 100%;
@@ -4354,7 +4755,7 @@ function LeadFormView(props) {
4354
4755
  return (h(Fragment, null,
4355
4756
  states.success && (h("div", { class: sheet$9.classes.Wrapper, part: "sqm-base" },
4356
4757
  h("style", { type: "text/css" },
4357
- vanillaStyle$6,
4758
+ vanillaStyle$7,
4358
4759
  styleString$9),
4359
4760
  h(TextSpanView, { type: "h3" }, content.pageLabel),
4360
4761
  h("sqm-form-message", { loading: states.loading, exportparts: "success-icon" },
@@ -4364,7 +4765,7 @@ function LeadFormView(props) {
4364
4765
  h("sl-button", { class: sheet$9.classes.ContinueButton, onClick: callbacks.resetForm, loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel))),
4365
4766
  h("div", { class: sheet$9.classes.Wrapper, part: "sqm-base", style: { display: states.success ? "none" : "block" } },
4366
4767
  h("style", { type: "text/css" },
4367
- vanillaStyle$6,
4768
+ vanillaStyle$7,
4368
4769
  styleString$9),
4369
4770
  h(TextSpanView, { type: "h3" }, content.pageLabel),
4370
4771
  h("sl-form", { class: sheet$9.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
@@ -4417,7 +4818,7 @@ const style$a = {
4417
4818
  "margin-bottom": "var(--sl-spacing-large)",
4418
4819
  },
4419
4820
  };
4420
- const vanillaStyle$7 = `
4821
+ const vanillaStyle$8 = `
4421
4822
  :host {
4422
4823
  margin: 0 auto;
4423
4824
  width: 100%;
@@ -4446,7 +4847,7 @@ function LeadDropdownFieldView(props) {
4446
4847
  });
4447
4848
  return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
4448
4849
  h("style", { type: "text/css" },
4449
- vanillaStyle$7,
4850
+ vanillaStyle$8,
4450
4851
  styleString$a),
4451
4852
  h("sl-select", Object.assign({ style: { maxHeight: "100px" }, exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
4452
4853
  if (!value && !content.dropdownOptional) {
@@ -4497,4 +4898,4 @@ const ShadowViewAddon = ({ story }, children) => {
4497
4898
  h(TagName, { "stencilbook-shadow-view": randomInt })));
4498
4899
  };
4499
4900
 
4500
- export { empty as A, BigStatView as B, CardFeedView as C, DropdownFieldView as D, EditProfileView as E, rewardExchange as F, useShareButton as G, HeroView as H, InputFieldView as I, useShareLink as J, ProgressBarView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, LeadFormView as O, PortalChangePasswordView as P, LeadDropdownFieldView as Q, ReferralIframeView as R, StatContainerView as S, TaskCardView as T, ShadowViewAddon as U, useBigStat as V, withShadowView as W, demoRewardExchange as X, ShareButtonView as a, PoweredByImg as b, BaseRegistrationFormView as c, CheckboxFieldView as d, CouponCodeView as e, ChangeMarktingView as f, PortalFooterView as g, PortalFrameView as h, RewardExchangeView as i, rewardExchangeLongText as j, rewardExchangeSelected as k, chooseAmountFixed as l, chooseAmountFixedNoDescription as m, chooseAmountVariable as n, chooseAmountVariableNoDescription as o, chooseAmountVariableDisabled as p, chooseAmountVariableUnavailable as q, rewardExchangeCustomErrorMsg as r, confirmFixed as s, confirmVariable as t, useDemoBigStat as u, redemptionError as v, queryError as w, success as x, successVariable as y, loading as z };
4901
+ export { empty as A, BigStatView as B, CardFeedView as C, DropdownFieldView as D, EditProfileView as E, rewardExchange as F, useShareButton as G, HeroView as H, InputFieldView as I, ShareLinkView as J, useShareLink as K, LeaderboardView as L, ProgressBarView as M, NameFieldsView as N, ProgressBar as O, PortalChangePasswordView as P, LeadFormView as Q, ReferralIframeView as R, StatContainerView as S, TaskCardView as T, LeadDropdownFieldView as U, ShadowViewAddon as V, useBigStat as W, withShadowView as X, demoRewardExchange as Y, ShareButtonView as a, PoweredByImg as b, BaseRegistrationFormView as c, CheckboxFieldView as d, CouponCodeView as e, ChangeMarktingView as f, PortalFooterView as g, PortalFrameView as h, RewardExchangeView as i, rewardExchangeLongText as j, rewardExchangeSelected as k, chooseAmountFixed as l, chooseAmountFixedNoDescription as m, chooseAmountVariable as n, chooseAmountVariableNoDescription as o, chooseAmountVariableDisabled as p, chooseAmountVariableUnavailable as q, rewardExchangeCustomErrorMsg as r, confirmFixed as s, confirmVariable as t, useDemoBigStat as u, redemptionError as v, queryError as w, success as x, successVariable as y, loading as z };
@@ -15,6 +15,7 @@ const GET_USER = dist.gql `
15
15
  user: viewer {
16
16
  ... on User {
17
17
  id
18
+ accountId
18
19
  firstName
19
20
  lastName
20
21
  email