@saasquatch/mint-components 1.3.2-2 → 1.3.2-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 (308) hide show
  1. package/dist/cjs/{ShadowViewAddon-75c18b96.js → ShadowViewAddon-475e00d3.js} +3 -3
  2. package/dist/cjs/{global-041b5338.js → global-89f66e76.js} +111 -57
  3. package/dist/cjs/{index.module-6a7bda18.js → index.module-c0bf9df0.js} +17 -16
  4. package/dist/cjs/loader.cjs.js +3 -4
  5. package/dist/cjs/mint-components.cjs.js +3 -4
  6. package/dist/cjs/{re-render-7cdb2d81.js → re-render-124b56ee.js} +4 -4
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
  9. package/dist/cjs/{sqm-divided-layout_27.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +6104 -1125
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
  11. package/dist/cjs/{index-19309631.js → sqm-leaderboard-rank-view-510f16d3.js} +10 -3
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -11
  13. package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
  15. package/dist/cjs/{sqm-navigation-sidebar-item-view-e99b4a10.js → sqm-navigation-sidebar-item-view-a2bdcf05.js} +2 -2
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  17. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-5e955797.js → sqm-portal-email-verification-view-5093ac20.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -6
  20. package/dist/cjs/{sqm-portal-footer-view-9089feb7.js → sqm-portal-footer-view-03408484.js} +1 -1
  21. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
  22. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +3 -3
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  24. package/dist/cjs/{sqm-portal-profile-view-a23ea292.js → sqm-portal-profile-view-fa2db439.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -7
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
  29. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-share-code.cjs.entry.js +3 -3
  35. package/dist/cjs/{useDemoBigStat-17e61803.js → useDemoBigStat-5d71bbdf.js} +119 -23
  36. package/dist/collection/collection-manifest.json +2 -1
  37. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
  38. package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +3 -0
  39. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
  40. package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
  41. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
  42. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
  43. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +20 -0
  44. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +228 -0
  45. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +20 -13
  46. package/dist/collection/components/sqm-reward-exchange-list/assets/placeholder.png +0 -0
  47. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +46 -56
  48. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +349 -114
  49. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +32 -8
  50. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +23 -33
  51. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  52. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  53. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +11 -16
  54. package/dist/collection/components/{sqm-rewards-table → sqm-router}/Router.stories.js +0 -0
  55. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  56. package/dist/collection/components/sqm-stencilbook/AutoColor.js +26 -0
  57. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  58. package/dist/collection/components/{sqm-task-card → sqm-stencilbook}/Matrix.js +4 -1
  59. package/dist/collection/components/sqm-stencilbook/Resizer.js +26 -0
  60. package/dist/collection/components/sqm-stencilbook/Themes.js +52 -0
  61. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +48 -3
  62. package/dist/collection/components/sqm-task-card/SVGs.js +7 -8
  63. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +285 -372
  64. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  65. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +8 -0
  66. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +370 -0
  67. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +131 -349
  68. package/dist/collection/components/sqm-task-card/sqm-task-card.js +167 -47
  69. package/dist/collection/global/styles.js +3 -0
  70. package/dist/collection/global/styles.ts +3 -0
  71. package/dist/collection/stories/NewPortal.stories.js +15 -15
  72. package/dist/esm/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-558fabb7.js} +3 -3
  73. package/dist/esm/{global-5ecbf81a.js → global-e0e25c22.js} +58 -4
  74. package/dist/esm/{index.module-f80561db.js → index.module-eb50a8d2.js} +2 -2
  75. package/dist/esm/loader.js +3 -4
  76. package/dist/esm/mint-components.js +3 -4
  77. package/dist/esm/{re-render-9ab5fe0f.js → re-render-6d5b856e.js} +4 -4
  78. package/dist/esm/sqm-asset-card.entry.js +1 -1
  79. package/dist/esm/sqm-big-stat.entry.js +2 -2
  80. package/dist/esm/{sqm-divided-layout_27.entry.js → sqm-divided-layout_30.entry.js} +6093 -1117
  81. package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
  82. package/dist/esm/{index-2f5dd0a1.js → sqm-leaderboard-rank-view-cd1e8962.js} +9 -3
  83. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -7
  84. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  85. package/dist/esm/sqm-name-fields.entry.js +1 -1
  86. package/dist/esm/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +2 -2
  87. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  88. package/dist/esm/sqm-popup-container.entry.js +1 -1
  89. package/dist/esm/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  90. package/dist/esm/sqm-portal-email-verification.entry.js +5 -6
  91. package/dist/esm/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  92. package/dist/esm/sqm-portal-footer.entry.js +3 -4
  93. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  94. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  95. package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  96. package/dist/esm/sqm-portal-profile.entry.js +6 -7
  97. package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
  98. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  99. package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
  100. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  101. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  102. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  103. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  104. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  105. package/dist/esm/sqm-share-code.entry.js +3 -3
  106. package/dist/esm/{useDemoBigStat-b71fe122.js → useDemoBigStat-d227b2f9.js} +119 -23
  107. package/dist/esm-es5/ShadowViewAddon-558fabb7.js +1 -0
  108. package/dist/esm-es5/{global-5ecbf81a.js → global-e0e25c22.js} +16 -2
  109. package/dist/esm-es5/{index.module-f80561db.js → index.module-eb50a8d2.js} +1 -1
  110. package/dist/esm-es5/loader.js +1 -1
  111. package/dist/esm-es5/mint-components.js +1 -1
  112. package/dist/esm-es5/{re-render-9ab5fe0f.js → re-render-6d5b856e.js} +1 -1
  113. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  114. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  115. package/dist/esm-es5/sqm-divided-layout_30.entry.js +58 -0
  116. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  117. package/dist/esm-es5/sqm-leaderboard-rank-view-cd1e8962.js +1 -0
  118. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  119. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  120. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  121. package/dist/esm-es5/sqm-navigation-sidebar-item-view-2d8c368c.js +1 -0
  122. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  123. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  124. package/dist/esm-es5/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  125. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  126. package/dist/esm-es5/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  127. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  128. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  129. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  130. package/dist/esm-es5/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  131. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  132. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  133. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  134. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  135. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  136. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  137. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  138. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  139. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  140. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  141. package/dist/esm-es5/useDemoBigStat-d227b2f9.js +1 -0
  142. package/dist/mint-components/assets/placeholder.png +0 -0
  143. package/dist/mint-components/global/styles.ts +3 -0
  144. package/dist/mint-components/mint-components.css +1 -0
  145. package/dist/mint-components/mint-components.esm.js +1 -1
  146. package/dist/mint-components/mint-components.js +1 -1
  147. package/dist/mint-components/p-0029a386.system.entry.js +1 -0
  148. package/dist/mint-components/{p-1813b9b9.system.js → p-02dc36a4.system.js} +1 -1
  149. package/dist/mint-components/p-03a6becf.entry.js +9 -0
  150. package/dist/mint-components/{p-3b0acfcd.system.js → p-03e93c82.system.js} +1 -1
  151. package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
  152. package/dist/mint-components/{p-ceeaf074.system.js → p-0e8ae7e3.system.js} +35 -21
  153. package/dist/mint-components/{p-e9ab90a1.entry.js → p-1705e549.entry.js} +1 -1
  154. package/dist/mint-components/{p-05cca77b.js → p-1f95b411.js} +1 -1
  155. package/dist/mint-components/p-2027edc0.system.entry.js +1 -0
  156. package/dist/mint-components/{p-d9cc041f.entry.js → p-20c95798.entry.js} +1 -1
  157. package/dist/mint-components/p-21b4044a.entry.js +1 -0
  158. package/dist/mint-components/{p-8e37c08d.js → p-221bd06e.js} +1 -1
  159. package/dist/mint-components/p-2338162a.entry.js +1 -0
  160. package/dist/mint-components/{p-5dfc6804.system.entry.js → p-24fa8920.system.entry.js} +1 -1
  161. package/dist/mint-components/{p-1fb688a9.system.js → p-2e63dcfd.system.js} +1 -1
  162. package/dist/mint-components/{p-d3787c3a.entry.js → p-3143cce4.entry.js} +1 -1
  163. package/dist/mint-components/p-34112d74.entry.js +1 -0
  164. package/dist/mint-components/p-40e83a85.system.js +1 -0
  165. package/dist/mint-components/{p-0688c9c2.system.entry.js → p-46493de5.system.entry.js} +1 -1
  166. package/dist/mint-components/{p-7c13e32e.system.entry.js → p-4658d225.system.entry.js} +1 -1
  167. package/dist/mint-components/{p-434ee9c1.js → p-4b719313.js} +1 -1
  168. package/dist/mint-components/{p-a7f0b2f6.entry.js → p-53e51b3f.entry.js} +1 -1
  169. package/dist/mint-components/p-58ffe936.system.entry.js +58 -0
  170. package/dist/mint-components/p-5939212e.system.entry.js +1 -0
  171. package/dist/mint-components/{p-00190438.js → p-5d925bb6.js} +1 -1
  172. package/dist/mint-components/{p-82ab88fe.system.js → p-5e4e7f01.system.js} +1 -1
  173. package/dist/mint-components/{p-cc3510c8.js → p-61acba7a.js} +1 -1
  174. package/dist/mint-components/{p-16da5146.entry.js → p-65c79eec.entry.js} +1 -1
  175. package/dist/mint-components/p-759d3800.entry.js +13 -0
  176. package/dist/mint-components/p-7cdbe82a.entry.js +1 -0
  177. package/dist/mint-components/{p-a0045707.system.entry.js → p-7ff22998.system.entry.js} +1 -1
  178. package/dist/mint-components/p-85efd952.entry.js +1 -0
  179. package/dist/mint-components/p-86255b95.entry.js +1 -0
  180. package/dist/mint-components/p-88d9bd59.entry.js +393 -0
  181. package/dist/mint-components/{p-1b414d8f.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-f1e1086e.js → p-8fd8682c.js} +17 -2
  183. package/dist/mint-components/{p-57a53dbd.system.entry.js → p-97b946c2.system.entry.js} +1 -1
  184. package/dist/mint-components/{p-e22eed7b.entry.js → p-9be0cb19.entry.js} +1 -1
  185. package/dist/mint-components/{p-4ba2faf2.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
  186. package/dist/mint-components/{p-e475a5ff.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
  187. package/dist/mint-components/p-a8246a50.system.entry.js +1 -0
  188. package/dist/mint-components/p-a831de18.entry.js +1 -0
  189. package/dist/mint-components/p-a833dbb3.js +1 -0
  190. package/dist/mint-components/p-a88a08bb.system.js +1 -0
  191. package/dist/mint-components/{p-2f171597.entry.js → p-a9a6f205.entry.js} +1 -1
  192. package/dist/mint-components/p-aee83885.system.entry.js +1 -0
  193. package/dist/mint-components/{p-505f5c59.system.entry.js → p-b86cbac3.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-3052c913.system.js → p-be3a0cc4.system.js} +1 -1
  195. package/dist/mint-components/{p-5f28af29.entry.js → p-c0f9d0b1.entry.js} +1 -1
  196. package/dist/mint-components/p-c65cfc9d.system.js +1 -0
  197. package/dist/mint-components/p-ca40dbaa.system.entry.js +1 -0
  198. package/dist/mint-components/p-cc189fc4.system.js +1 -0
  199. package/dist/mint-components/p-cc652a53.entry.js +1 -0
  200. package/dist/mint-components/p-d19d6012.js +235 -0
  201. package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
  202. package/dist/mint-components/{p-2a025d2a.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
  203. package/dist/mint-components/p-d68f6b64.system.entry.js +1 -0
  204. package/dist/mint-components/p-e36ff7fa.entry.js +1 -0
  205. package/dist/mint-components/{p-a4a00461.entry.js → p-e608f340.entry.js} +2 -2
  206. package/dist/mint-components/{p-16535642.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
  207. package/dist/mint-components/p-ef7f70f2.system.entry.js +1 -0
  208. package/dist/mint-components/{p-04516274.system.entry.js → p-f20d9204.system.entry.js} +1 -1
  209. package/dist/mint-components/p-f7f87338.js +1 -0
  210. package/dist/mint-components/{p-a0cfd3d9.system.js → p-f9ada3d7.system.js} +1 -1
  211. package/dist/mint-components/{p-844fd903.js → p-faf66fdb.js} +1 -1
  212. package/dist/mint-components/p-fcd03042.entry.js +1 -0
  213. package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
  214. package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +6 -0
  215. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  216. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  217. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +13 -0
  218. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +234 -0
  219. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +2 -0
  220. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -2
  221. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -4
  222. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +4 -0
  223. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  224. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  225. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  226. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +33 -0
  227. package/dist/types/components/{sqm-rewards-table → sqm-router}/Router.stories.d.ts +0 -0
  228. package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +1 -0
  229. package/dist/types/components/{sqm-task-card → sqm-stencilbook}/Matrix.d.ts +0 -0
  230. package/dist/types/components/sqm-stencilbook/Resizer.d.ts +3 -0
  231. package/dist/types/components/sqm-stencilbook/Themes.d.ts +17 -0
  232. package/dist/types/components/sqm-task-card/SVGs.d.ts +1 -1
  233. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +15 -5
  234. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  235. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  236. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +12 -0
  237. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +15 -22
  238. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +35 -16
  239. package/dist/types/components.d.ts +110 -36
  240. package/dist/types/global/styles.d.ts +1 -1
  241. package/grapesjs/grapesjs.js +1 -1
  242. package/package.json +4 -2
  243. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
  244. package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
  245. package/dist/cjs/sqm-task-card-view-57066e67.js +0 -476
  246. package/dist/cjs/sqm-task-card.cjs.entry.js +0 -56
  247. package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
  248. package/dist/cjs/useChildElements-428ca5b8.js +0 -21
  249. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
  250. package/dist/esm/sqm-rewards-table.entry.js +0 -328
  251. package/dist/esm/sqm-task-card-view-2ee495af.js +0 -474
  252. package/dist/esm/sqm-task-card.entry.js +0 -52
  253. package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
  254. package/dist/esm/useChildElements-506f00d0.js +0 -19
  255. package/dist/esm-es5/ShadowViewAddon-fff5d35d.js +0 -1
  256. package/dist/esm-es5/index-2f5dd0a1.js +0 -1
  257. package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
  258. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
  259. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8a3f374b.js +0 -1
  260. package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
  261. package/dist/esm-es5/sqm-task-card-view-2ee495af.js +0 -1
  262. package/dist/esm-es5/sqm-task-card.entry.js +0 -1
  263. package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
  264. package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
  265. package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
  266. package/dist/mint-components/p-0ba3c956.system.entry.js +0 -1
  267. package/dist/mint-components/p-11c75956.entry.js +0 -1
  268. package/dist/mint-components/p-189219ee.system.js +0 -1
  269. package/dist/mint-components/p-1e248afc.system.entry.js +0 -1
  270. package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
  271. package/dist/mint-components/p-23a0bdae.entry.js +0 -1
  272. package/dist/mint-components/p-2bce988c.js +0 -1
  273. package/dist/mint-components/p-337b49ee.entry.js +0 -1
  274. package/dist/mint-components/p-353b4413.system.js +0 -1
  275. package/dist/mint-components/p-3fd33dee.system.entry.js +0 -1
  276. package/dist/mint-components/p-405a9253.js +0 -227
  277. package/dist/mint-components/p-55e02769.entry.js +0 -13
  278. package/dist/mint-components/p-58d9b2f0.js +0 -15
  279. package/dist/mint-components/p-6cdc70f4.entry.js +0 -1
  280. package/dist/mint-components/p-6d545e13.entry.js +0 -1
  281. package/dist/mint-components/p-70837c1c.entry.js +0 -49
  282. package/dist/mint-components/p-71d942af.entry.js +0 -9
  283. package/dist/mint-components/p-7c138c84.entry.js +0 -1
  284. package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
  285. package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
  286. package/dist/mint-components/p-82d7a2ba.entry.js +0 -1
  287. package/dist/mint-components/p-844f9bad.entry.js +0 -1
  288. package/dist/mint-components/p-8c16f04e.js +0 -1
  289. package/dist/mint-components/p-8f5e2af4.entry.js +0 -1
  290. package/dist/mint-components/p-91d39961.system.js +0 -1
  291. package/dist/mint-components/p-aba21f90.entry.js +0 -1
  292. package/dist/mint-components/p-af06ea5b.system.entry.js +0 -1
  293. package/dist/mint-components/p-b3af1c6f.js +0 -1
  294. package/dist/mint-components/p-bca8867d.entry.js +0 -287
  295. package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
  296. package/dist/mint-components/p-bf055b6c.system.js +0 -1
  297. package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
  298. package/dist/mint-components/p-c9c4f31b.system.entry.js +0 -1
  299. package/dist/mint-components/p-db723323.system.entry.js +0 -1
  300. package/dist/mint-components/p-dd6a666e.system.js +0 -15
  301. package/dist/mint-components/p-dfc3cf82.js +0 -1
  302. package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
  303. package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
  304. package/dist/mint-components/p-e78a5a91.js +0 -1
  305. package/dist/mint-components/p-ecbabf6e.system.js +0 -1
  306. package/dist/mint-components/p-f41ab9e1.system.js +0 -1
  307. package/dist/mint-components/p-f87d8f53.system.js +0 -1
  308. package/dist/mint-components/p-fcaa5886.system.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
4
  const _extends = require('./extends-0302d27d.js');
5
- const index_module = require('./index.module-6a7bda18.js');
5
+ const index_module = require('./index.module-c0bf9df0.js');
6
6
  const jssPresetDefault_esm = require('./jss-preset-default.esm-6304d24f.js');
7
7
  const cjs = require('./cjs-1066ec21.js');
8
8
 
@@ -338,7 +338,7 @@ function BigStatView(props, children) {
338
338
  const debug = _extends.browser("sq:useBigStat");
339
339
  const LOADING = "...";
340
340
  const debugQuery = (query, variables, getStat) => {
341
- const res = index_module.en(query, variables);
341
+ const res = index_module.cn(query, variables);
342
342
  if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
343
343
  console.error("issue getting stat:", res);
344
344
  }
@@ -367,7 +367,13 @@ _, status) => {
367
367
  }
368
368
  }
369
369
  }
370
- `, { queryFilter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
370
+ `, { queryFilter }, (res) => {
371
+ var _a, _b, _c, _d, _e, _f, _g;
372
+ return ({
373
+ value: (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount,
374
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
375
+ });
376
+ });
371
377
  };
372
378
  const programGoalsQuery = (programId, locale, metricType, goalId) => {
373
379
  // Confirm this behaviour
@@ -387,9 +393,33 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
387
393
  }
388
394
  }
389
395
  `, { programId, metricType, goalId, locale }, (res) => {
390
- var _a, _b, _c, _d, _e;
396
+ var _a, _b, _c, _d, _e, _f;
391
397
  const goal = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.programGoals) === null || _c === void 0 ? void 0 : _c.filter((goal) => goal.goalId === goalId && goal.programId === programId);
392
- return ((_e = (_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) === null || _e === void 0 ? void 0 : _e.toString()) || 0;
398
+ return {
399
+ value: ((_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) || 0,
400
+ statvalue: ((_f = (_e = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _e === void 0 ? void 0 : _e[metricType]) === null || _f === void 0 ? void 0 : _f.toString()) || 0,
401
+ };
402
+ });
403
+ };
404
+ const customFieldsQuery = (programId, locale, fieldName, goalId) => {
405
+ // Confirm this behaviour
406
+ if (programId === "classic")
407
+ return null;
408
+ return debugQuery(index_module.dist.gql `
409
+ query {
410
+ viewer {
411
+ ... on User {
412
+ customFields
413
+ }
414
+ }
415
+ }
416
+ `, { programId, fieldName, goalId, locale }, (res) => {
417
+ var _a, _b, _c;
418
+ const customField = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.customFields) === null || _c === void 0 ? void 0 : _c[fieldName];
419
+ return {
420
+ value: customField || 0,
421
+ statvalue: (customField === null || customField === void 0 ? void 0 : customField.toString()) || "0",
422
+ };
393
423
  });
394
424
  };
395
425
  const referralsMonthQuery = (programId) => {
@@ -410,7 +440,13 @@ const referralsMonthQuery = (programId) => {
410
440
  }
411
441
  }
412
442
  }
413
- `, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
443
+ `, { filter }, (res) => {
444
+ var _a, _b, _c, _d, _e, _f, _g;
445
+ return ({
446
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
447
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
448
+ });
449
+ });
414
450
  };
415
451
  const referralsWeekQuery = (programId) => {
416
452
  const programFilter = programId === "classic"
@@ -430,7 +466,13 @@ const referralsWeekQuery = (programId) => {
430
466
  }
431
467
  }
432
468
  }
433
- `, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
469
+ `, { filter }, (res) => {
470
+ var _a, _b, _c, _d, _e, _f, _g;
471
+ return ({
472
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
473
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
474
+ });
475
+ });
434
476
  };
435
477
  const rewardsCountQuery = (programId,
436
478
  // locale
@@ -447,7 +489,13 @@ _, global = "") => {
447
489
  }
448
490
  `, {
449
491
  programId: !global && programId !== "classic" ? programId : null,
450
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
492
+ }, (res) => {
493
+ var _a, _b, _c, _d, _e, _f, _g;
494
+ return ({
495
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
496
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
497
+ });
498
+ });
451
499
  };
452
500
  const rewardsCountFilteredQuery = (programId,
453
501
  // locale
@@ -480,7 +528,13 @@ _, type, unit, status, global = "") => {
480
528
  unit,
481
529
  type,
482
530
  statusFilter,
483
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
531
+ }, (res) => {
532
+ var _a, _b, _c, _d, _e, _f, _g;
533
+ return ({
534
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
535
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
536
+ });
537
+ });
484
538
  };
485
539
  const integrationRewardsCountFilteredQuery = (programId,
486
540
  // locale
@@ -505,7 +559,13 @@ _, status, global = "") => {
505
559
  `, {
506
560
  programId: !global && programId !== "classic" ? programId : null,
507
561
  statusFilter,
508
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
562
+ }, (res) => {
563
+ var _a, _b, _c, _d, _e, _f, _g;
564
+ return ({
565
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
566
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
567
+ });
568
+ });
509
569
  };
510
570
  const rewardsMonthQuery = (programId,
511
571
  // locale
@@ -527,7 +587,13 @@ _, global = "") => {
527
587
  }
528
588
  `, {
529
589
  programId: !global && programId !== "classic" ? programId : null,
530
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
590
+ }, (res) => {
591
+ var _a, _b, _c, _d, _e, _f, _g;
592
+ return ({
593
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
594
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
595
+ });
596
+ });
531
597
  };
532
598
  const rewardsWeekQuery = (programId,
533
599
  // locale
@@ -549,7 +615,13 @@ _, global = "") => {
549
615
  }
550
616
  `, {
551
617
  programId: !global && programId !== "classic" ? programId : null,
552
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
618
+ }, (res) => {
619
+ var _a, _b, _c, _d, _e, _f, _g;
620
+ return ({
621
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
622
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
623
+ });
624
+ });
553
625
  };
554
626
  const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
555
627
  return debugQuery(index_module.dist.gql `
@@ -584,10 +656,13 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
584
656
  unit,
585
657
  locale,
586
658
  }, (res) => {
587
- var _a, _b, _c, _d;
659
+ var _a, _b, _c, _d, _e;
588
660
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
589
661
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
590
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || fallback;
662
+ return {
663
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || 0,
664
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyRedeemedCredit) || fallback,
665
+ };
591
666
  });
592
667
  };
593
668
  const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
@@ -623,10 +698,13 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
623
698
  unit,
624
699
  locale,
625
700
  }, (res) => {
626
- var _a, _b, _c, _d;
701
+ var _a, _b, _c, _d, _e;
627
702
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
628
703
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
629
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || fallback;
704
+ return {
705
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
706
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
707
+ };
630
708
  });
631
709
  };
632
710
  const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
@@ -662,10 +740,13 @@ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
662
740
  unit,
663
741
  locale,
664
742
  }, (res) => {
665
- var _a, _b, _c, _d;
743
+ var _a, _b, _c, _d, _e;
666
744
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
667
745
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
668
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
746
+ return {
747
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
748
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
749
+ };
669
750
  });
670
751
  };
671
752
  const parseRewardValueFormat = {
@@ -708,10 +789,13 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
708
789
  format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
709
790
  locale,
710
791
  }, (res) => {
711
- var _a, _b, _c, _d;
792
+ var _a, _b, _c, _d, _e;
712
793
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
713
794
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
714
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
795
+ return {
796
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
797
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
798
+ };
715
799
  });
716
800
  };
717
801
  // functions are of the form (programId: string, ...args: string) => string
@@ -768,10 +852,15 @@ const queries = {
768
852
  label: "Program Goals",
769
853
  query: programGoalsQuery,
770
854
  },
855
+ customFields: {
856
+ label: "Custom Fields",
857
+ query: customFieldsQuery,
858
+ },
771
859
  };
772
860
  // this should be exposed in documentation somehow
773
861
  const StatPaths = [
774
862
  { name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
863
+ { name: "customFields", route: "/(customFields)/:customField" },
775
864
  { name: "referralsCount", route: "/(referralsCount)/:status?" },
776
865
  { name: "referralsMonth", route: "/(referralsMonth)" },
777
866
  { name: "referralsWeek", route: "/(referralsWeek)" },
@@ -805,14 +894,15 @@ const StatPaths = [
805
894
  ];
806
895
  const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
807
896
  function useBigStat(props) {
897
+ var _a;
808
898
  const { statType, flexReverse, alignment } = props;
809
899
  const programId = index_module.M();
810
900
  const locale = index_module.R();
811
- const userIdent = index_module.T();
901
+ const userIdent = index_module.ne();
812
902
  const re = _extends.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
813
903
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
814
904
  return {
815
- props: { statvalue: "!!!", flexReverse, alignment },
905
+ props: { value: 0, statvalue: "!!!", flexReverse, alignment },
816
906
  label: "BAD PROP TYPE",
817
907
  };
818
908
  }
@@ -835,7 +925,12 @@ function useBigStat(props) {
835
925
  const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
836
926
  debug("stat:", stat);
837
927
  return {
838
- props: { statvalue: stat !== null && stat !== void 0 ? stat : LOADING, flexReverse, alignment },
928
+ props: {
929
+ value: stat === null || stat === void 0 ? void 0 : stat.value,
930
+ statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
931
+ flexReverse,
932
+ alignment,
933
+ },
839
934
  label,
840
935
  };
841
936
  }
@@ -846,6 +941,7 @@ function useDemoBigStat(props) {
846
941
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
847
942
  return {
848
943
  props: {
944
+ value: 0,
849
945
  statvalue: "!!!",
850
946
  flexReverse: false,
851
947
  alignment: "center",
@@ -3,6 +3,7 @@
3
3
  "./components/sqm-password-field/sqm-password-field.js",
4
4
  "./components/sqm-referral-table/sqm-referral-table.js",
5
5
  "./components/sqm-reward-exchange-list/sqm-reward-exchange-list.js",
6
+ "./components/sqm-rewards-table/sqm-rewards-table.js",
6
7
  "./components/sqm-asset-card/sqm-asset-card.js",
7
8
  "./components/sqm-big-stat/sqm-big-stat.js",
8
9
  "./components/sqm-divided-layout/sqm-divided-layout.js",
@@ -43,7 +44,7 @@
43
44
  "./components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js",
44
45
  "./components/sqm-referral-table/columns/sqm-referral-table-status-column.js",
45
46
  "./components/sqm-referral-table/columns/sqm-referral-table-user-column.js",
46
- "./components/sqm-rewards-table/sqm-rewards-table.js",
47
+ "./components/sqm-rewards-table/sqm-rewards-table-column.js",
47
48
  "./components/sqm-route/sqm-route.js",
48
49
  "./components/sqm-router/sqm-router.js",
49
50
  "./components/sqm-share-button/sqm-share-button.js",
@@ -4,11 +4,12 @@ export default {
4
4
  title: "Components/Big Stat",
5
5
  };
6
6
  export const Default = () => {
7
- const props = { statvalue: "9.900,00" };
7
+ const props = { value: 990000, statvalue: "9.900,00" };
8
8
  return h(BigStatView, Object.assign({}, props), "Big stat");
9
9
  };
10
10
  export const LeftAlign = () => {
11
11
  const props = {
12
+ value: 500,
12
13
  statvalue: "500",
13
14
  alignment: "left",
14
15
  };
@@ -16,6 +17,7 @@ export const LeftAlign = () => {
16
17
  };
17
18
  export const RightAlign = () => {
18
19
  const props = {
20
+ value: 500,
19
21
  statvalue: "500",
20
22
  alignment: "right",
21
23
  };
@@ -23,6 +25,7 @@ export const RightAlign = () => {
23
25
  };
24
26
  export const FlexReverse = () => {
25
27
  const props = {
28
+ value: 500,
26
29
  statvalue: "500",
27
30
  flexReverse: true,
28
31
  };
@@ -30,6 +33,7 @@ export const FlexReverse = () => {
30
33
  };
31
34
  export const FlexReverseRight = () => {
32
35
  const props = {
36
+ value: 500,
33
37
  statvalue: "500",
34
38
  flexReverse: true,
35
39
  alignment: "right",
@@ -38,6 +42,7 @@ export const FlexReverseRight = () => {
38
42
  };
39
43
  export const FlexReverseLeft = () => {
40
44
  const props = {
45
+ value: 500,
41
46
  statvalue: "500",
42
47
  flexReverse: true,
43
48
  alignment: "left",
@@ -46,12 +51,14 @@ export const FlexReverseLeft = () => {
46
51
  };
47
52
  export const NoStatValue = () => {
48
53
  const props = {
54
+ value: 0,
49
55
  statvalue: "...",
50
56
  };
51
57
  return h(BigStatView, Object.assign({}, props), "Big stat");
52
58
  };
53
59
  export const InvalidStatValue = () => {
54
60
  const props = {
61
+ value: 0,
55
62
  statvalue: "!!!",
56
63
  };
57
64
  return h(BigStatView, Object.assign({}, props), "Big stat");
@@ -103,3 +103,6 @@ export const ProgramGoals = createHookStory(() => {
103
103
  const dummy = encodeURIComponent("Paid-Member-Goal/referrals");
104
104
  return View(`/programGoals/count/${dummy}`, "/(programGoals)/:metricType/:goalId");
105
105
  });
106
+ export const CustomField = createHookStory(() => {
107
+ return View(`/customFields/thingCount`, "/(customFields)/:customField");
108
+ });
@@ -105,7 +105,7 @@ export class BigStat {
105
105
  "mutable": false,
106
106
  "complexType": {
107
107
  "original": "DemoData<BigStatViewProps>",
108
- "resolved": "{ statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; }",
108
+ "resolved": "{ value?: number; statvalue?: string; flexReverse?: boolean; alignment?: \"left\" | \"right\" | \"center\"; }",
109
109
  "references": {
110
110
  "DemoData": {
111
111
  "location": "import",
@@ -35,7 +35,13 @@ _, status) => {
35
35
  }
36
36
  }
37
37
  }
38
- `, { queryFilter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
38
+ `, { queryFilter }, (res) => {
39
+ var _a, _b, _c, _d, _e, _f, _g;
40
+ return ({
41
+ value: (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount,
42
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
43
+ });
44
+ });
39
45
  };
40
46
  const programGoalsQuery = (programId, locale, metricType, goalId) => {
41
47
  // Confirm this behaviour
@@ -55,9 +61,33 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
55
61
  }
56
62
  }
57
63
  `, { programId, metricType, goalId, locale }, (res) => {
58
- var _a, _b, _c, _d, _e;
64
+ var _a, _b, _c, _d, _e, _f;
59
65
  const goal = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.programGoals) === null || _c === void 0 ? void 0 : _c.filter((goal) => goal.goalId === goalId && goal.programId === programId);
60
- return ((_e = (_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) === null || _e === void 0 ? void 0 : _e.toString()) || 0;
66
+ return {
67
+ value: ((_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) || 0,
68
+ statvalue: ((_f = (_e = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _e === void 0 ? void 0 : _e[metricType]) === null || _f === void 0 ? void 0 : _f.toString()) || 0,
69
+ };
70
+ });
71
+ };
72
+ const customFieldsQuery = (programId, locale, fieldName, goalId) => {
73
+ // Confirm this behaviour
74
+ if (programId === "classic")
75
+ return null;
76
+ return debugQuery(gql `
77
+ query {
78
+ viewer {
79
+ ... on User {
80
+ customFields
81
+ }
82
+ }
83
+ }
84
+ `, { programId, fieldName, goalId, locale }, (res) => {
85
+ var _a, _b, _c;
86
+ const customField = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.customFields) === null || _c === void 0 ? void 0 : _c[fieldName];
87
+ return {
88
+ value: customField || 0,
89
+ statvalue: (customField === null || customField === void 0 ? void 0 : customField.toString()) || "0",
90
+ };
61
91
  });
62
92
  };
63
93
  const referralsMonthQuery = (programId) => {
@@ -78,7 +108,13 @@ const referralsMonthQuery = (programId) => {
78
108
  }
79
109
  }
80
110
  }
81
- `, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
111
+ `, { filter }, (res) => {
112
+ var _a, _b, _c, _d, _e, _f, _g;
113
+ return ({
114
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
115
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
116
+ });
117
+ });
82
118
  };
83
119
  const referralsWeekQuery = (programId) => {
84
120
  const programFilter = programId === "classic"
@@ -98,7 +134,13 @@ const referralsWeekQuery = (programId) => {
98
134
  }
99
135
  }
100
136
  }
101
- `, { filter }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
137
+ `, { filter }, (res) => {
138
+ var _a, _b, _c, _d, _e, _f, _g;
139
+ return ({
140
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
141
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
142
+ });
143
+ });
102
144
  };
103
145
  const rewardsCountQuery = (programId,
104
146
  // locale
@@ -115,7 +157,13 @@ _, global = "") => {
115
157
  }
116
158
  `, {
117
159
  programId: !global && programId !== "classic" ? programId : null,
118
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
160
+ }, (res) => {
161
+ var _a, _b, _c, _d, _e, _f, _g;
162
+ return ({
163
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
164
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
165
+ });
166
+ });
119
167
  };
120
168
  const rewardsCountFilteredQuery = (programId,
121
169
  // locale
@@ -148,7 +196,13 @@ _, type, unit, status, global = "") => {
148
196
  unit,
149
197
  type,
150
198
  statusFilter,
151
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
199
+ }, (res) => {
200
+ var _a, _b, _c, _d, _e, _f, _g;
201
+ return ({
202
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
203
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
204
+ });
205
+ });
152
206
  };
153
207
  const integrationRewardsCountFilteredQuery = (programId,
154
208
  // locale
@@ -173,7 +227,13 @@ _, status, global = "") => {
173
227
  `, {
174
228
  programId: !global && programId !== "classic" ? programId : null,
175
229
  statusFilter,
176
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
230
+ }, (res) => {
231
+ var _a, _b, _c, _d, _e, _f, _g;
232
+ return ({
233
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
234
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
235
+ });
236
+ });
177
237
  };
178
238
  const rewardsMonthQuery = (programId,
179
239
  // locale
@@ -195,7 +255,13 @@ _, global = "") => {
195
255
  }
196
256
  `, {
197
257
  programId: !global && programId !== "classic" ? programId : null,
198
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
258
+ }, (res) => {
259
+ var _a, _b, _c, _d, _e, _f, _g;
260
+ return ({
261
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
262
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
263
+ });
264
+ });
199
265
  };
200
266
  const rewardsWeekQuery = (programId,
201
267
  // locale
@@ -217,7 +283,13 @@ _, global = "") => {
217
283
  }
218
284
  `, {
219
285
  programId: !global && programId !== "classic" ? programId : null,
220
- }, (res) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) === null || _d === void 0 ? void 0 : _d.toString(); });
286
+ }, (res) => {
287
+ var _a, _b, _c, _d, _e, _f, _g;
288
+ return ({
289
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
290
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
291
+ });
292
+ });
221
293
  };
222
294
  const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
223
295
  return debugQuery(gql `
@@ -252,10 +324,13 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
252
324
  unit,
253
325
  locale,
254
326
  }, (res) => {
255
- var _a, _b, _c, _d;
327
+ var _a, _b, _c, _d, _e;
256
328
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
257
329
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
258
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || fallback;
330
+ return {
331
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || 0,
332
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyRedeemedCredit) || fallback,
333
+ };
259
334
  });
260
335
  };
261
336
  const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
@@ -291,10 +366,13 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
291
366
  unit,
292
367
  locale,
293
368
  }, (res) => {
294
- var _a, _b, _c, _d;
369
+ var _a, _b, _c, _d, _e;
295
370
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
296
371
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
297
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || fallback;
372
+ return {
373
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
374
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
375
+ };
298
376
  });
299
377
  };
300
378
  const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
@@ -330,10 +408,13 @@ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
330
408
  unit,
331
409
  locale,
332
410
  }, (res) => {
333
- var _a, _b, _c, _d;
411
+ var _a, _b, _c, _d, _e;
334
412
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
335
413
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
336
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
414
+ return {
415
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
416
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
417
+ };
337
418
  });
338
419
  };
339
420
  const parseRewardValueFormat = {
@@ -376,10 +457,13 @@ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValu
376
457
  format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
377
458
  locale,
378
459
  }, (res) => {
379
- var _a, _b, _c, _d;
460
+ var _a, _b, _c, _d, _e;
380
461
  const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
381
462
  const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
382
- return ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || fallback;
463
+ return {
464
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
465
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
466
+ };
383
467
  });
384
468
  };
385
469
  // functions are of the form (programId: string, ...args: string) => string
@@ -436,10 +520,15 @@ export const queries = {
436
520
  label: "Program Goals",
437
521
  query: programGoalsQuery,
438
522
  },
523
+ customFields: {
524
+ label: "Custom Fields",
525
+ query: customFieldsQuery,
526
+ },
439
527
  };
440
528
  // this should be exposed in documentation somehow
441
529
  export const StatPaths = [
442
530
  { name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
531
+ { name: "customFields", route: "/(customFields)/:customField" },
443
532
  { name: "referralsCount", route: "/(referralsCount)/:status?" },
444
533
  { name: "referralsMonth", route: "/(referralsMonth)" },
445
534
  { name: "referralsWeek", route: "/(referralsWeek)" },
@@ -473,6 +562,7 @@ export const StatPaths = [
473
562
  ];
474
563
  export const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
475
564
  export function useBigStat(props) {
565
+ var _a;
476
566
  const { statType, flexReverse, alignment } = props;
477
567
  const programId = useProgramId();
478
568
  const locale = useLocale();
@@ -480,7 +570,7 @@ export function useBigStat(props) {
480
570
  const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
481
571
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
482
572
  return {
483
- props: { statvalue: "!!!", flexReverse, alignment },
573
+ props: { value: 0, statvalue: "!!!", flexReverse, alignment },
484
574
  label: "BAD PROP TYPE",
485
575
  };
486
576
  }
@@ -503,7 +593,12 @@ export function useBigStat(props) {
503
593
  const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
504
594
  debug("stat:", stat);
505
595
  return {
506
- props: { statvalue: stat !== null && stat !== void 0 ? stat : LOADING, flexReverse, alignment },
596
+ props: {
597
+ value: stat === null || stat === void 0 ? void 0 : stat.value,
598
+ statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
599
+ flexReverse,
600
+ alignment,
601
+ },
507
602
  label,
508
603
  };
509
604
  }
@@ -7,6 +7,7 @@ export function useDemoBigStat(props) {
7
7
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
8
8
  return {
9
9
  props: {
10
+ value: 0,
10
11
  statvalue: "!!!",
11
12
  flexReverse: false,
12
13
  alignment: "center",