@saasquatch/mint-components 1.15.0-62 → 1.15.0-64

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 (241) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-d7d3a220.js → IndirectTaxDetailsView-79703291.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-dbc78438.js → ShadowViewAddon-6925bd81.js} +3 -3
  3. package/dist/cjs/{global-a3a85ff0.js → global-38031ab9.js} +61 -54
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +139 -282
  7. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +27 -57
  8. package/dist/cjs/sqm-code-verification.cjs.entry.js +14 -4
  9. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-email-verification.cjs.entry.js +110 -16
  11. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
  12. package/dist/cjs/sqm-form-message.cjs.entry.js +5 -5
  13. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +1 -1
  14. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  15. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
  18. package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  20. package/dist/cjs/{sqm-portal-email-verification-view-aec35ba2.js → sqm-portal-email-verification-view-f1671646.js} +1 -1
  21. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  22. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
  23. package/dist/cjs/{sqm-portal-profile-view-cff9bfc7.js → sqm-portal-profile-view-5aabad8c.js} +1 -1
  24. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
  25. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  26. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  27. package/dist/cjs/{sqm-qr-code-view-af9f6df7.js → sqm-qr-code-view-0c3b2f48.js} +7 -2
  28. package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -3
  29. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-stencilbook.cjs.entry.js +20 -28
  32. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -1
  33. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +4 -5
  34. package/dist/cjs/sqm-widget-verification.cjs.entry.js +1 -1
  35. package/dist/cjs/{usePortalLogin-1c022d8d.js → usePortalLogin-6aa864ef.js} +1 -1
  36. package/dist/cjs/{utils-940abb91.js → utils-62fd5f09.js} +1 -1
  37. package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
  38. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
  39. package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
  40. package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
  41. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
  42. package/dist/collection/components/sqm-stencilbook/Themes.js +1 -1
  43. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +2 -0
  44. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
  45. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +108 -14
  46. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +3 -2
  47. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +4 -33
  48. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +19 -47
  49. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +13 -64
  50. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -6
  51. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
  52. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
  53. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +3 -2
  54. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +86 -82
  55. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -44
  56. package/dist/collection/global/styles.js +61 -54
  57. package/dist/collection/global/styles.ts +9 -2
  58. package/dist/collection/utils/utils.js +4 -0
  59. package/dist/esm/{IndirectTaxDetailsView-0ae0aeb9.js → IndirectTaxDetailsView-3bf366d5.js} +2 -2
  60. package/dist/esm/{ShadowViewAddon-51e9ebf7.js → ShadowViewAddon-976c7e5e.js} +3 -3
  61. package/dist/esm/{global-e9173b4c.js → global-75f87c77.js} +61 -54
  62. package/dist/esm/loader.js +2 -2
  63. package/dist/esm/mint-components.js +2 -2
  64. package/dist/esm/sqm-banking-info-form_10.entry.js +139 -282
  65. package/dist/esm/sqm-big-stat_42.entry.js +27 -57
  66. package/dist/esm/sqm-code-verification.entry.js +14 -4
  67. package/dist/esm/sqm-context-router.entry.js +1 -1
  68. package/dist/esm/sqm-email-verification.entry.js +110 -16
  69. package/dist/esm/sqm-empty_4.entry.js +2 -2
  70. package/dist/esm/sqm-form-message.entry.js +5 -5
  71. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +1 -1
  72. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  73. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  74. package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
  75. package/dist/esm/sqm-pagination_3.entry.js +2 -2
  76. package/dist/esm/sqm-password-field.entry.js +1 -1
  77. package/dist/esm/sqm-popup-container.entry.js +1 -1
  78. package/dist/esm/{sqm-portal-email-verification-view-a82e199f.js → sqm-portal-email-verification-view-46311e88.js} +1 -1
  79. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  80. package/dist/esm/sqm-portal-google-login.entry.js +2 -2
  81. package/dist/esm/{sqm-portal-profile-view-caabc8d3.js → sqm-portal-profile-view-f7cb1c88.js} +1 -1
  82. package/dist/esm/sqm-portal-profile.entry.js +3 -3
  83. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  84. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  85. package/dist/esm/{sqm-qr-code-view-7be282fd.js → sqm-qr-code-view-97124a66.js} +6 -1
  86. package/dist/esm/sqm-qr-code.entry.js +2 -3
  87. package/dist/esm/sqm-referral-table_11.entry.js +2 -2
  88. package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
  89. package/dist/esm/sqm-stencilbook.entry.js +20 -28
  90. package/dist/esm/sqm-tabs.entry.js +3 -1
  91. package/dist/esm/sqm-tax-and-cash.entry.js +4 -5
  92. package/dist/esm/sqm-widget-verification.entry.js +1 -1
  93. package/dist/esm/{usePortalLogin-61abe78e.js → usePortalLogin-d0720c81.js} +1 -1
  94. package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
  95. package/dist/esm/{utils-985d9996.js → utils-edd7677f.js} +1 -1
  96. package/dist/esm-es5/{IndirectTaxDetailsView-0ae0aeb9.js → IndirectTaxDetailsView-3bf366d5.js} +1 -1
  97. package/dist/esm-es5/ShadowViewAddon-976c7e5e.js +1 -0
  98. package/dist/esm-es5/{global-e9173b4c.js → global-75f87c77.js} +3 -3
  99. package/dist/esm-es5/loader.js +1 -1
  100. package/dist/esm-es5/mint-components.js +1 -1
  101. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  102. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  103. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  104. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  105. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  106. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  107. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  108. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
  109. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  110. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  111. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  112. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  113. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  114. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  115. package/dist/esm-es5/{sqm-portal-email-verification-view-a82e199f.js → sqm-portal-email-verification-view-46311e88.js} +1 -1
  116. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  117. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  118. package/dist/esm-es5/{sqm-portal-profile-view-caabc8d3.js → sqm-portal-profile-view-f7cb1c88.js} +1 -1
  119. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  120. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  121. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  122. package/dist/esm-es5/sqm-qr-code-view-97124a66.js +1 -0
  123. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  124. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  125. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  126. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  127. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  128. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  129. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  130. package/dist/esm-es5/{usePortalLogin-61abe78e.js → usePortalLogin-d0720c81.js} +1 -1
  131. package/dist/esm-es5/utils-03188de2.js +1 -0
  132. package/dist/esm-es5/{utils-985d9996.js → utils-edd7677f.js} +1 -1
  133. package/dist/mint-components/global/styles.ts +9 -2
  134. package/dist/mint-components/mint-components.esm.js +1 -1
  135. package/dist/mint-components/mint-components.js +1 -1
  136. package/dist/mint-components/{p-949ca517.system.entry.js → p-002e6205.system.entry.js} +1 -1
  137. package/dist/mint-components/{p-fe01d78b.system.js → p-03bc8092.system.js} +1 -1
  138. package/dist/mint-components/p-053f3b95.entry.js +25 -0
  139. package/dist/mint-components/{p-d1184054.system.entry.js → p-09faca85.system.entry.js} +1 -1
  140. package/dist/mint-components/p-0b0f49ad.entry.js +1 -0
  141. package/dist/mint-components/{p-93c743a4.system.js → p-0b9d56b2.system.js} +1 -1
  142. package/dist/mint-components/{p-23671c40.entry.js → p-0d178b8a.entry.js} +1 -1
  143. package/dist/mint-components/{p-3c546860.system.entry.js → p-0d22c0e5.system.entry.js} +1 -1
  144. package/dist/mint-components/{p-c7861962.entry.js → p-0fca4ae0.entry.js} +1 -1
  145. package/dist/mint-components/{p-d577a32d.js → p-102c42ef.js} +1 -1
  146. package/dist/mint-components/p-15bfd7e2.system.js +1 -0
  147. package/dist/mint-components/p-1cad4160.system.entry.js +1 -0
  148. package/dist/mint-components/{p-717f926c.system.entry.js → p-207fb692.system.entry.js} +1 -1
  149. package/dist/mint-components/{p-01551599.system.js → p-21b680c9.system.js} +1 -1
  150. package/dist/mint-components/{p-b5346a5a.entry.js → p-22c11f0e.entry.js} +1 -1
  151. package/dist/mint-components/{p-7b635ed8.system.entry.js → p-22d20816.system.entry.js} +1 -1
  152. package/dist/mint-components/{p-b64f7dcb.system.entry.js → p-258f4e5e.system.entry.js} +1 -1
  153. package/dist/mint-components/p-265b012f.system.entry.js +1 -0
  154. package/dist/mint-components/{p-b11dd241.system.js → p-2ce2d1f0.system.js} +1 -1
  155. package/dist/mint-components/{p-4ec69d24.js → p-32ed7c0c.js} +1 -1
  156. package/dist/mint-components/p-32fa454c.entry.js +1 -0
  157. package/dist/mint-components/p-3d99fa43.entry.js +1 -0
  158. package/dist/mint-components/p-40c01a5a.system.js +1 -0
  159. package/dist/mint-components/{p-35061d76.system.entry.js → p-4271f436.system.entry.js} +1 -1
  160. package/dist/mint-components/{p-a554c304.js → p-474124e9.js} +1 -1
  161. package/dist/mint-components/p-4aefb976.system.entry.js +1 -0
  162. package/dist/mint-components/{p-0c7135bb.entry.js → p-50348f43.entry.js} +1 -1
  163. package/dist/mint-components/p-50e5ae38.entry.js +9 -0
  164. package/dist/mint-components/{p-2cec44e0.entry.js → p-516aa862.entry.js} +2 -2
  165. package/dist/mint-components/{p-c431aedf.entry.js → p-564ac69e.entry.js} +2 -2
  166. package/dist/mint-components/p-59f8eb90.entry.js +93 -0
  167. package/dist/mint-components/{p-e49b253f.entry.js → p-5e0af707.entry.js} +2 -2
  168. package/dist/mint-components/{p-f7700805.js → p-5ed49bf2.js} +1 -1
  169. package/dist/mint-components/{p-f5f97cd2.system.js → p-643749bc.system.js} +1 -1
  170. package/dist/mint-components/p-692bacf3.js +1 -0
  171. package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
  172. package/dist/mint-components/{p-674d9089.system.entry.js → p-6b076bae.system.entry.js} +1 -1
  173. package/dist/mint-components/{p-8846046e.entry.js → p-6fb9b5ab.entry.js} +1 -1
  174. package/dist/mint-components/{p-65ed872f.entry.js → p-711bc624.entry.js} +1 -1
  175. package/dist/mint-components/p-764e32ec.system.entry.js +1 -0
  176. package/dist/mint-components/{p-641bdf0e.system.entry.js → p-7b4eb94e.system.entry.js} +1 -1
  177. package/dist/mint-components/p-814036cd.system.entry.js +1 -0
  178. package/dist/mint-components/{p-734dde9b.system.js → p-82505f6e.system.js} +1 -1
  179. package/dist/mint-components/{p-3a7e5207.entry.js → p-97852163.entry.js} +1 -1
  180. package/dist/mint-components/{p-b11d89bd.entry.js → p-9aadc253.entry.js} +1 -1
  181. package/dist/mint-components/{p-b70ef2f5.system.entry.js → p-a2533860.system.entry.js} +1 -1
  182. package/dist/mint-components/{p-8a9939ef.system.entry.js → p-a67cbe0b.system.entry.js} +1 -1
  183. package/dist/mint-components/p-a787f53a.system.js +1 -0
  184. package/dist/mint-components/p-a99658e0.entry.js +1 -0
  185. package/dist/mint-components/{p-4aed3645.entry.js → p-b2bf7fcb.entry.js} +1 -1
  186. package/dist/mint-components/p-b2c04108.system.entry.js +1 -0
  187. package/dist/mint-components/{p-d9cfd2ad.js → p-b6da4fa0.js} +1 -1
  188. package/dist/mint-components/{p-f45be408.system.js → p-b7d13172.system.js} +1 -1
  189. package/dist/mint-components/{p-0de7e5ec.entry.js → p-b9bccc55.entry.js} +1 -1
  190. package/dist/mint-components/{p-85029918.entry.js → p-bad50dc1.entry.js} +1 -1
  191. package/dist/mint-components/{p-8aa5f1ee.entry.js → p-bb627d95.entry.js} +2 -2
  192. package/dist/mint-components/p-bcbac6f3.system.entry.js +1 -0
  193. package/dist/mint-components/{p-adb13f08.system.entry.js → p-d513848f.system.entry.js} +1 -1
  194. package/dist/mint-components/{p-e5d72a05.entry.js → p-d5f1df29.entry.js} +1 -1
  195. package/dist/mint-components/p-d785a297.system.entry.js +1 -0
  196. package/dist/mint-components/{p-0ac9e4d2.entry.js → p-d97c6f67.entry.js} +1 -1
  197. package/dist/mint-components/p-da3ffd4e.system.entry.js +1 -0
  198. package/dist/mint-components/{p-c6fc6ce5.js → p-dec5f3fc.js} +1 -1
  199. package/dist/mint-components/{p-884a1b19.entry.js → p-e539fed3.entry.js} +1 -1
  200. package/dist/mint-components/{p-dcddb256.system.entry.js → p-e992648a.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-f8520da2.system.entry.js → p-ebb487d0.system.entry.js} +1 -1
  202. package/dist/mint-components/{p-a8b53df1.system.entry.js → p-f0e0d0b9.system.entry.js} +1 -1
  203. package/dist/mint-components/p-f1da802b.entry.js +11 -0
  204. package/dist/mint-components/{p-a7b66236.system.entry.js → p-f2140374.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-cd207258.js → p-f2ee69f1.js} +1 -1
  206. package/dist/mint-components/{p-b35ceac8.system.entry.js → p-f94788ab.system.entry.js} +1 -1
  207. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
  208. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
  209. package/dist/types/utils/utils.d.ts +1 -0
  210. package/docs/docs.docx +0 -0
  211. package/docs/raisins.json +1 -1
  212. package/package.json +1 -1
  213. package/dist/cjs/ErrorView-0f564e2a.js +0 -35
  214. package/dist/esm/ErrorView-b396dcc7.js +0 -33
  215. package/dist/esm-es5/ErrorView-b396dcc7.js +0 -1
  216. package/dist/esm-es5/ShadowViewAddon-51e9ebf7.js +0 -1
  217. package/dist/esm-es5/sqm-qr-code-view-7be282fd.js +0 -1
  218. package/dist/esm-es5/utils-334c1e34.js +0 -1
  219. package/dist/mint-components/p-08a77d1e.system.entry.js +0 -1
  220. package/dist/mint-components/p-0ea0f9e3.system.entry.js +0 -1
  221. package/dist/mint-components/p-1b99001f.js +0 -1
  222. package/dist/mint-components/p-2b819683.entry.js +0 -9
  223. package/dist/mint-components/p-3191e4a8.entry.js +0 -1
  224. package/dist/mint-components/p-6333265f.system.js +0 -1
  225. package/dist/mint-components/p-65fec8a8.entry.js +0 -25
  226. package/dist/mint-components/p-6aaf431f.system.entry.js +0 -1
  227. package/dist/mint-components/p-6d20d500.system.js +0 -1
  228. package/dist/mint-components/p-6d2d4f7c.entry.js +0 -1
  229. package/dist/mint-components/p-73213344.system.entry.js +0 -1
  230. package/dist/mint-components/p-7f54c9f9.entry.js +0 -11
  231. package/dist/mint-components/p-84b95bd2.system.js +0 -1
  232. package/dist/mint-components/p-89854fe2.system.entry.js +0 -1
  233. package/dist/mint-components/p-a18e9043.system.entry.js +0 -1
  234. package/dist/mint-components/p-af125497.entry.js +0 -93
  235. package/dist/mint-components/p-bf89cd86.system.js +0 -1
  236. package/dist/mint-components/p-c00c4e19.system.entry.js +0 -1
  237. package/dist/mint-components/p-c8524b9c.entry.js +0 -1
  238. package/dist/mint-components/p-d2d15c86.system.entry.js +0 -1
  239. package/dist/mint-components/p-d6bc1680.js +0 -1
  240. package/dist/mint-components/p-d9a18e00.system.entry.js +0 -1
  241. package/dist/mint-components/p-fa89e7d4.entry.js +0 -1
@@ -1,6 +1,11 @@
1
1
  import { h } from './index-b3a06de8.js';
2
2
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
3
- import { E as ErrorView } from './ErrorView-b396dcc7.js';
3
+
4
+ const ErrorView = (props) => {
5
+ return (h("sqm-form-message", { type: "error" },
6
+ h("p", { part: "alert-title" }, props.loadingErrorAlertHeader),
7
+ h("p", { part: "alert-description" }, props.loadingErrorAlertDescription)));
8
+ };
4
9
 
5
10
  const style = {
6
11
  DialogContainer: {
@@ -2,11 +2,10 @@ import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
2
  import { k as useState, f as useEffect, n as h } from './dom-context-hooks.module-63370afd.js';
3
3
  import { d as dist, H, J, B, F as Fn, w as wn, $ as $e, i as isDemo } from './index.module-38dad6c9.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
- import { g as getProps } from './utils-334c1e34.js';
5
+ import { g as getProps } from './utils-03188de2.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import { a as REFERRAL_CODES_NAMESPACE } from './useReferralCodes-311e6d72.js';
8
- import './ErrorView-b396dcc7.js';
9
- import { Q as QrCodeView } from './sqm-qr-code-view-7be282fd.js';
8
+ import { Q as QrCodeView } from './sqm-qr-code-view-97124a66.js';
10
9
 
11
10
  const ShareLinkQuery = dist.gql `
12
11
  query shareLink($programId: ID, $engagementMedium: UserEngagementMedium!) {
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-b3a06de8.js';
2
- import { i as intl } from './global-e9173b4c.js';
2
+ import { i as intl } from './global-75f87c77.js';
3
3
  import { n as h, j as useReducer, u as useMemo, f as useEffect } from './dom-context-hooks.module-63370afd.js';
4
4
  import { i as isDemo } from './index.module-38dad6c9.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
- import { l as luxonLocale } from './utils-334c1e34.js';
6
+ import { l as luxonLocale } from './utils-03188de2.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import './mixins-f750863a.js';
9
9
  import { G as GenericTableView } from './GenericTableView-e43d310f.js';
@@ -1,9 +1,9 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
2
- import { i as intl } from './global-e9173b4c.js';
2
+ import { i as intl } from './global-75f87c77.js';
3
3
  import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './dom-context-hooks.module-63370afd.js';
4
4
  import { d as dist, J, H, L, w as wn, R as Rn, i as isDemo } from './index.module-38dad6c9.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
- import { l as luxonLocale } from './utils-334c1e34.js';
6
+ import { l as luxonLocale } from './utils-03188de2.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import './mixins-f750863a.js';
9
9
  import { G as GenericTableView } from './GenericTableView-e43d310f.js';
@@ -1,9 +1,9 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
2
- import './global-e9173b4c.js';
2
+ import './global-75f87c77.js';
3
3
  import { a as commonjsGlobal, u as useMemo, k as useState, c as createCommonjsModule, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
4
4
  import { j as jn, b as setUserIdentity, p as setProgramId, k as kn, d as dist, X as Xe } from './index.module-38dad6c9.js';
5
5
  import './cjs-bdfb4486.js';
6
- import './utils-334c1e34.js';
6
+ import './utils-03188de2.js';
7
7
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
8
8
  import './useReferralCodes-311e6d72.js';
9
9
  import './mixins-f750863a.js';
@@ -19,21 +19,20 @@ import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-18baae5b.j
19
19
  import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-f21e54e3.js';
20
20
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0a2ec560.js';
21
21
  import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-797601b0.js';
22
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-a82e199f.js';
22
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-46311e88.js';
23
23
  import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-0e795cdd.js';
24
24
  import { P as PortalLoginView } from './sqm-portal-login-view-7670cd86.js';
25
25
  import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-193f1721.js';
26
26
  import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-8bdc3804.js';
27
- import { P as PortalProfileView } from './sqm-portal-profile-view-caabc8d3.js';
27
+ import { P as PortalProfileView } from './sqm-portal-profile-view-f7cb1c88.js';
28
28
  import './utilities-ad9c2893.js';
29
29
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-abef7286.js';
30
30
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-33805220.js';
31
- import { E as ErrorView } from './ErrorView-b396dcc7.js';
32
- import { Q as QrCodeView } from './sqm-qr-code-view-7be282fd.js';
33
- import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as useShareLink, K as ProgressBarView, M as ProgressBar$2, O as ShadowViewAddon } from './ShadowViewAddon-51e9ebf7.js';
31
+ import { Q as QrCodeView } from './sqm-qr-code-view-97124a66.js';
32
+ import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as useShareLink, K as ProgressBarView, M as ProgressBar$2, O as ShadowViewAddon } from './ShadowViewAddon-976c7e5e.js';
34
33
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
35
- import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-0ae0aeb9.js';
36
- import { t as taxTypeToName, L as LoadingView } from './utils-985d9996.js';
34
+ import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-3bf366d5.js';
35
+ import { t as taxTypeToName, L as LoadingView } from './utils-edd7677f.js';
37
36
 
38
37
  /**
39
38
  * lodash (Custom Build) <https://lodash.com/>
@@ -6409,31 +6408,23 @@ const FormMessage_stories = {
6409
6408
  };
6410
6409
  const SuccessAlert = () => {
6411
6410
  return (h("sqm-form-message", { type: "success" },
6412
- h("div", null, "This is a success message.")));
6411
+ h("p", { part: "alert-title" }, "This is the title"),
6412
+ h("p", { part: "alert-description" }, "This is the description")));
6413
6413
  };
6414
6414
  const ErrorAlert = () => {
6415
6415
  return (h("sqm-form-message", { type: "error" },
6416
- h("div", null, "This is an error message")));
6416
+ h("p", { part: "alert-title" }, "This is the title"),
6417
+ h("p", { part: "alert-description" }, "This is the description")));
6417
6418
  };
6418
6419
  const WarningAlert = () => {
6419
6420
  return (h("sqm-form-message", { type: "warning" },
6420
- h("div", null, "This is an error message")));
6421
+ h("p", { part: "alert-title" }, "This is the title"),
6422
+ h("p", { part: "alert-description" }, "This is the description")));
6421
6423
  };
6422
6424
  const InfoAlert = () => {
6423
6425
  return (h("sqm-form-message", { type: "info" },
6424
- h("div", null, "This is an info message")));
6425
- };
6426
- const FullStackSuccess = () => {
6427
- return (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
6428
- h("div", { class: "AlertContent" },
6429
- h("div", { part: "successalert-text" }, "Title"),
6430
- h("div", { part: "successalert-subtext" }, "Body text."),
6431
- h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: () => {
6432
- console.log("click");
6433
- } }, "Primary Action"),
6434
- h("sl-button", { class: "SecondaryTextButton", type: "text", onClick: () => {
6435
- console.log("click");
6436
- } }, "Secondary Action"))));
6426
+ h("p", { part: "alert-title" }, "This is the title"),
6427
+ h("p", { part: "alert-description" }, "This is the description")));
6437
6428
  };
6438
6429
 
6439
6430
  const FormMessage = /*#__PURE__*/Object.freeze({
@@ -6442,8 +6433,7 @@ const FormMessage = /*#__PURE__*/Object.freeze({
6442
6433
  SuccessAlert: SuccessAlert,
6443
6434
  ErrorAlert: ErrorAlert,
6444
6435
  WarningAlert: WarningAlert,
6445
- InfoAlert: InfoAlert,
6446
- FullStackSuccess: FullStackSuccess
6436
+ InfoAlert: InfoAlert
6447
6437
  });
6448
6438
 
6449
6439
  const scenario$6 = "@author:kutay\n@owner:kutay\nFeature: Hero Image\n\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Hero Image component\n\n\t@motivating\n\t@ui\n\tScenario: Overlay image displays header, description, and button with brand color\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\tThen they see their image\n\t\tAnd the image has no padding\n\t\tAnd it has a brand colour overlay\n\t\tAnd \"Klip Rewards\" is displayed over top of the image in xxx-large font\n\t\tAnd below \"Refer friends or complete tasks while using Klip to earn rewards\" is displayed over top of the image in x-large font\n\t\tAnd below they see a brand coloured button with text \"Start earning\"\n\t\tAnd the text section has xxx-large padding\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is scaled to fit content\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay image crop can be aligned left, center or right\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| image-pos | <value> |\n\t\tThen the image with overlay is displayed\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is <alignment> to fit content\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| left | left aligned |\n\t\t\t| center | centered |\n\t\t\t| right | right aligned |\n\t\t\t| N/A | centered |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay padding is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| padding-text | <value> |\n\t\tThen the image with overlay is displayed\n\t\tAnd <padding> is applied around header, description and button\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay color and background is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| overlay-color | <overlayColor> |\n\t\t\t| overlay-opacity | <overlayOpacity> |\n\t\tThen the image with overlay is displayed\n\t\tAnd the overlay is <overlayColor>\n\t\tAnd the overlay has <overlayOpacity>\n\t\tAnd the text is <textColor>\n\t\tExamples:\n\t\t\t| textColor | overlayColor | overlayOpacity |\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\n\t\t\t| #1d0314 | #4baa1a | 0 |\n\t\t\t| #211a27 | #aa481a | 1 |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\tThen the image is displayed on the left\n\t\tAnd the following elements are displayed on the right\n\t\t\t| elements |\n\t\t\t| header |\n\t\t\t| description |\n\t\t\t| button |\n\t\tWhen the component is scaled down to 599px\n\t\tThen the two-column layout switches to a row layout\n\t\tAnd the image is displayed on top\n\t\tAnd the content is displayed below\n\n\t@motivating\n\t@ui\n\tScenario Outline: Image position is configurable for desktop and mobile\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-pos | <imagePos> |\n\t\t\t| image-mobile-pos | <imageMobilePos> |\n\t\tThen the image is displayed on the <imagePos>\n\t\tWhen the component is scaled down to 599px\n\t\tThen two-column layout switches to a row layout\n\t\tAnd image is displayed on the <imageMobilePos>\n\t\tExamples:\n\t\t\t| imagePos | imageMobilePos |\n\t\t\t| left | top |\n\t\t\t| right | bottom |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| padding-text | <paddingText> |\n\t\t\t| padding-image | <paddingImage> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image has padding <paddingImage>\n\t\tAnd the text has padding <paddingText>\n\t\tExamples:\n\t\t\t| paddingText | paddingImage |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| none | none |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Two-column layout image division percentage is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-percentage | <percent> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image takes up <percent> of the two-column layout\n\t\tAnd the text elements take up the remainder of the space\n\t\tExamples:\n\t\t\t| percent |\n\t\t\t| 25% |\n\t\t\t| 42% |\n\t\t\t| 66% |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout text and background color is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| background-color | <backgroundColor> |\n\t\tThen the two column layout is displayed\n\t\tAnd the text has color <textColor>\n\t\tAnd the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| textColor | backgroundColor |\n\t\t\t| #fffc4b | #ff7f7f |\n\t\t\t| #1d0314 | #4baa1a |\n\t\t\t| #211a27 | #aa481a |";
@@ -15847,7 +15837,9 @@ const GeneralLoadingView = () => {
15847
15837
  return h(LoadingView, null);
15848
15838
  };
15849
15839
  const GeneralErrorView = () => {
15850
- return (h(ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact our support team." }));
15840
+ return (h("sqm-form-message", { type: "error" },
15841
+ h("p", { part: "alert-title" }, "There was a problem loading your form"),
15842
+ h("p", { part: "alert-description" }, "Please refresh the page and try again. If this problem continues, contact our support team.")));
15851
15843
  };
15852
15844
  // STEP ONE
15853
15845
  const StepOne = () => {
@@ -1,7 +1,7 @@
1
1
  import { h, c as Host, r as registerInstance } from './index-b3a06de8.js';
2
2
  import { u as useMemo, f as useEffect, n as h$1 } from './dom-context-hooks.module-63370afd.js';
3
3
  import { _ } from './index.module-38dad6c9.js';
4
- import { g as getProps } from './utils-334c1e34.js';
4
+ import { g as getProps } from './utils-03188de2.js';
5
5
  import { u as useRerenderListener } from './re-render-9c90767d.js';
6
6
  import { u as useChildElements } from './useChildElements-4e70ac0e.js';
7
7
 
@@ -17,6 +17,7 @@ const TabsView = ({ content, placement, textColor = "var(--sqm-text)", }) => {
17
17
 
18
18
  sl-tab::part(base) {
19
19
  color: ${textColor};
20
+ font-family: var(--sqm-primary-font);
20
21
  }
21
22
 
22
23
  sl-tab-group {
@@ -25,6 +26,7 @@ const TabsView = ({ content, placement, textColor = "var(--sqm-text)", }) => {
25
26
 
26
27
  sl-tab-group::part(tabs) {
27
28
  border-bottom: 2px solid var(--sqm-border-color);
29
+ font-family: var(--sqm-primary-font);
28
30
  }
29
31
  `;
30
32
  return (h(Host, null,
@@ -1,12 +1,11 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
- import './global-e9173b4c.js';
2
+ import './global-75f87c77.js';
3
3
  import { u as useMemo, f as useEffect, n as h } from './dom-context-hooks.module-63370afd.js';
4
4
  import { M as Mn, _, J, L, I as In, S as Sn, i as isDemo } from './index.module-38dad6c9.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
- import { g as getProps } from './utils-334c1e34.js';
6
+ import { g as getProps } from './utils-03188de2.js';
7
7
  import './JSS-67b5cff8.js';
8
- import { E as ErrorView } from './ErrorView-b396dcc7.js';
9
- import { g as getCountryObj, L as LoadingView } from './utils-985d9996.js';
8
+ import { g as getCountryObj, L as LoadingView } from './utils-edd7677f.js';
10
9
  import { e as extractProps, p as parseStates } from './extractProps-54064fb0.js';
11
10
  import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, f as GET_FINANCE_NETWORK_SETTINGS, g as CURRENCIES_QUERY_NAMESPACE, h as GET_CURRENCIES } from './data-ee3ae298.js';
12
11
 
@@ -1226,7 +1225,7 @@ const TaxAndCashMonolith = class {
1226
1225
  case "/dashboard":
1227
1226
  return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), extractProps(props, "sqm-tax-and-cash-dashboard_"))));
1228
1227
  case "/error":
1229
- return (h$1(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
1228
+ return (h$1("sqm-form-message", { type: "error" }, h$1("p", { part: "alert-title" }, this.loadingErrorAlertHeader), h$1("p", { part: "alert-description" }, this.loadingErrorAlertDescription)));
1230
1229
  }
1231
1230
  };
1232
1231
  return getStep() || h$1(LoadingView, null);
@@ -2,7 +2,7 @@ import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
2
2
  import { k as useState, f as useEffect, n as h } from './dom-context-hooks.module-63370afd.js';
3
3
  import { d as dist, J, I as In, q as En, X as Xe, i as isDemo } from './index.module-38dad6c9.js';
4
4
  import { c as cjs } from './cjs-bdfb4486.js';
5
- import { g as getProps } from './utils-334c1e34.js';
5
+ import { g as getProps } from './utils-03188de2.js';
6
6
  import { e as extractProps, p as parseStates } from './extractProps-54064fb0.js';
7
7
  import { S as SHOW_CODE_NAMESPACE, V as VERIFICATION_EMAIL_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { k as useState } from './dom-context-hooks.module-63370afd.js';
2
2
  import { e as je, h as hn, j as jn } from './index.module-38dad6c9.js';
3
3
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
4
- import { s as sanitizeUrlPath } from './utils-334c1e34.js';
4
+ import { s as sanitizeUrlPath } from './utils-03188de2.js';
5
5
 
6
6
  function usePortalLogin(props) {
7
7
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
@@ -37,5 +37,9 @@ function sanitizeUrlPath(path) {
37
37
  cleanUrl.hash = url.hash;
38
38
  return cleanUrl;
39
39
  }
40
+ function capitalizeFirstLetter(word) {
41
+ return word[0].toUpperCase() + word.slice(1);
42
+ }
43
+ console.log(capitalizeFirstLetter("warning"));
40
44
 
41
- export { getMissingProps as a, getProps as g, luxonLocale as l, sanitizeUrlPath as s };
45
+ export { getMissingProps as a, capitalizeFirstLetter as c, getProps as g, luxonLocale as l, sanitizeUrlPath as s };
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-b3a06de8.js';
2
- import { i as intl } from './global-e9173b4c.js';
2
+ import { i as intl } from './global-75f87c77.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
 
5
5
  const style = {
@@ -1 +1 @@
1
- import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-e9173b4c.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-985d9996.js";var style={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function InvoiceTableView(e,a){var l=createStyleSheet(style);var r=l.toString();var i="\n :host{\n display: block;\n }";return h("div",{class:l.classes.Container},h("style",{type:"text/css"},i,r),h("div",{class:l.classes.InvoiceTableContaier},h("sl-details",{summary:e.header},h("p",{class:l.classes.Description},e.description),a)))}var INDIRECT_TAX_PROVINCES=[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}];var INDIRECT_TAX_SPAIN_REGIONS=[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}];var ADDRESS_REGIONS={CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}};var vatLabels={GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"};var style$1={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"var(--sqm-border-thickness, 1px) solid #E0E0E0",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"var(--sqm-border-thickness, 1px) solid var(--sl-color-danger-500)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sl-color-danger-500)"}}};var sheet=createStyleSheet(style$1);var styleString=sheet.toString();var vanillaStyle="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n ";var OtherRegionSlotView=function(e){var a,l,r;var i=e.states,n=e.states.formState,s=e.callbacks,t=e.text;var o=sheet.classes;var u=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.indirectTaxNumber},{taxType:e})};var d=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.error.indirectTaxNumber},{taxType:e})};var b=function(e){var a=e.label,l=e.error,r=e.name;var s;return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:a,disabled:i.loading||i.disabled,value:n[r]},((s=n.errors)===null||s===void 0?void 0:s[r])&&{class:o.ErrorInput,helpText:l},{id:r,name:"/"+r}))};var T=function(){var a,l;return h("div",{class:o.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:n.subRegion,label:t.subRegion,disabled:i.loading||i.disabled},((a=n.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegion,t.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),h(b,{name:"indirectTaxNumber",label:u("VAT"),error:d("VAT")}),h("sl-checkbox",{class:o.Checkbox,exportparts:"label: input-label, base: input-base",checked:n.hasSubRegionTaxNumber,"onSl-change":s.onSpainToggle,disabled:i.disabled||i.isPartner},t.isRegisteredSubRegionIncomeTax),n.hasSubRegionTaxNumber&&h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:t.subRegionTaxNumberLabel,disabled:i.loading||i.disabled,value:n.subRegionTaxNumber},((l=n.errors)===null||l===void 0?void 0:l.subRegionTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegionTaxNumberLabel,t.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var A=function(){var a,l;var r=sheet.classes;var o=(a=INDIRECT_TAX_PROVINCES===null||INDIRECT_TAX_PROVINCES===void 0?void 0:INDIRECT_TAX_PROVINCES.find((function(e){return e.regionCode===n.province})))===null||a===void 0?void 0:a.taxType;return h("div",{class:r.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,value:n.province,exportparts:"label: input-label, base: input-base",class:r.Input,label:t.province,disabled:i.loading||i.disabled,"onSl-select":function(e){return s.onFormChange("province",e)}},((l=n.errors)===null||l===void 0?void 0:l.province)&&{class:r.ErrorInput,helpText:formatErrorMessage(t.province,t.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),o==="GST"&&h(b,{label:u("GST"),error:d("GST"),name:"indirectTaxNumber"}),o==="HST"&&h(b,{label:u("HST"),error:d("HST"),name:"indirectTaxNumber"}),n.province==="QUEBEC"&&h("div",{class:r.ConditionalInputsContainer},h("sl-checkbox",{class:r.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":s.onQstToggle,checked:n.hasQst,disabled:i.isPartner||i.disabled},t.isRegisteredQST),n.hasQst&&h(b,{name:"qstNumber",label:t.qstNumber,error:formatErrorMessage(t.qstNumber,t.error.fieldRequiredError)})))};var v=function(e){var a;switch(e){case"CA":return h(A,null);case"ES":return h(T,null);default:return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:n.indirectTaxNumber,label:u(vatLabels[e]||"GENERAL"),disabled:i.loading||i.disabled},((a=n.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:d(vatLabels[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var p=v(n.selectedRegion);return h("div",{style:i.hide?{display:"none"}:{}},h("form",{class:o.Container},h("style",{type:"text/css"},styleString,vanillaStyle),h("hr",{class:o.HR}),h("div",{class:o.InputContainer},h("sl-select",Object.assign({required:true,class:o.Input,value:n.selectedRegion,exportparts:"label: input-label, base: input-base",label:t.selectedRegion,disabled:i.loading||i.disabled,"onSl-select":function(e){return s.onFormChange("selectedRegion",e)}},((a=n.errors)===null||a===void 0?void 0:a.selectedRegion)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.selectedRegion,t.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),h("sl-input",{class:o.SearchInput,placeholder:t.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){s.setCountrySearch(e.target.value)}}),(l=e.data.countries)===null||l===void 0?void 0:l.map((function(e){return h("sl-menu-item",{value:e.countryCode},e.displayName)})),(r=e.data.allCountries)===null||r===void 0?void 0:r.map((function(e){return h("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),p),h("hr",{class:o.HR})))};export{ADDRESS_REGIONS as A,InvoiceTableView as I,OtherRegionSlotView as O,INDIRECT_TAX_SPAIN_REGIONS as a,INDIRECT_TAX_PROVINCES as b,vatLabels as v};
1
+ import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-75f87c77.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-edd7677f.js";var style={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function InvoiceTableView(e,a){var l=createStyleSheet(style);var r=l.toString();var i="\n :host{\n display: block;\n }";return h("div",{class:l.classes.Container},h("style",{type:"text/css"},i,r),h("div",{class:l.classes.InvoiceTableContaier},h("sl-details",{summary:e.header},h("p",{class:l.classes.Description},e.description),a)))}var INDIRECT_TAX_PROVINCES=[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}];var INDIRECT_TAX_SPAIN_REGIONS=[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}];var ADDRESS_REGIONS={CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}};var vatLabels={GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"};var style$1={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"var(--sqm-border-thickness, 1px) solid #E0E0E0",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"var(--sqm-border-thickness, 1px) solid var(--sl-color-danger-500)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sl-color-danger-500)"}}};var sheet=createStyleSheet(style$1);var styleString=sheet.toString();var vanillaStyle="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n ";var OtherRegionSlotView=function(e){var a,l,r;var i=e.states,n=e.states.formState,s=e.callbacks,t=e.text;var o=sheet.classes;var u=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.indirectTaxNumber},{taxType:e})};var d=function(e){return intl.formatMessage({id:"tax-field-label"+e,defaultMessage:t.error.indirectTaxNumber},{taxType:e})};var b=function(e){var a=e.label,l=e.error,r=e.name;var s;return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:a,disabled:i.loading||i.disabled,value:n[r]},((s=n.errors)===null||s===void 0?void 0:s[r])&&{class:o.ErrorInput,helpText:l},{id:r,name:"/"+r}))};var T=function(){var a,l;return h("div",{class:o.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:n.subRegion,label:t.subRegion,disabled:i.loading||i.disabled},((a=n.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegion,t.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),h(b,{name:"indirectTaxNumber",label:u("VAT"),error:d("VAT")}),h("sl-checkbox",{class:o.Checkbox,exportparts:"label: input-label, base: input-base",checked:n.hasSubRegionTaxNumber,"onSl-change":s.onSpainToggle,disabled:i.disabled||i.isPartner},t.isRegisteredSubRegionIncomeTax),n.hasSubRegionTaxNumber&&h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,label:t.subRegionTaxNumberLabel,disabled:i.loading||i.disabled,value:n.subRegionTaxNumber},((l=n.errors)===null||l===void 0?void 0:l.subRegionTaxNumber)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.subRegionTaxNumberLabel,t.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var A=function(){var a,l;var r=sheet.classes;var o=(a=INDIRECT_TAX_PROVINCES===null||INDIRECT_TAX_PROVINCES===void 0?void 0:INDIRECT_TAX_PROVINCES.find((function(e){return e.regionCode===n.province})))===null||a===void 0?void 0:a.taxType;return h("div",{class:r.ConditionalInputsContainer},h("sl-select",Object.assign({required:true,value:n.province,exportparts:"label: input-label, base: input-base",class:r.Input,label:t.province,disabled:i.loading||i.disabled,"onSl-select":function(e){return s.onFormChange("province",e)}},((l=n.errors)===null||l===void 0?void 0:l.province)&&{class:r.ErrorInput,helpText:formatErrorMessage(t.province,t.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return h("sl-menu-item",{value:e.regionCode},e.displayName)}))),o==="GST"&&h(b,{label:u("GST"),error:d("GST"),name:"indirectTaxNumber"}),o==="HST"&&h(b,{label:u("HST"),error:d("HST"),name:"indirectTaxNumber"}),n.province==="QUEBEC"&&h("div",{class:r.ConditionalInputsContainer},h("sl-checkbox",{class:r.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":s.onQstToggle,checked:n.hasQst,disabled:i.isPartner||i.disabled},t.isRegisteredQST),n.hasQst&&h(b,{name:"qstNumber",label:t.qstNumber,error:formatErrorMessage(t.qstNumber,t.error.fieldRequiredError)})))};var v=function(e){var a;switch(e){case"CA":return h(A,null);case"ES":return h(T,null);default:return h("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:o.Input,value:n.indirectTaxNumber,label:u(vatLabels[e]||"GENERAL"),disabled:i.loading||i.disabled},((a=n.errors)===null||a===void 0?void 0:a.indirectTaxNumber)&&{class:o.ErrorInput,helpText:d(vatLabels[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var p=v(n.selectedRegion);return h("div",{style:i.hide?{display:"none"}:{}},h("form",{class:o.Container},h("style",{type:"text/css"},styleString,vanillaStyle),h("hr",{class:o.HR}),h("div",{class:o.InputContainer},h("sl-select",Object.assign({required:true,class:o.Input,value:n.selectedRegion,exportparts:"label: input-label, base: input-base",label:t.selectedRegion,disabled:i.loading||i.disabled,"onSl-select":function(e){return s.onFormChange("selectedRegion",e)}},((a=n.errors)===null||a===void 0?void 0:a.selectedRegion)&&{class:o.ErrorInput,helpText:formatErrorMessage(t.selectedRegion,t.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),h("sl-input",{class:o.SearchInput,placeholder:t.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){s.setCountrySearch(e.target.value)}}),(l=e.data.countries)===null||l===void 0?void 0:l.map((function(e){return h("sl-menu-item",{value:e.countryCode},e.displayName)})),(r=e.data.allCountries)===null||r===void 0?void 0:r.map((function(e){return h("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),p),h("hr",{class:o.HR})))};export{ADDRESS_REGIONS as A,InvoiceTableView as I,OtherRegionSlotView as O,INDIRECT_TAX_SPAIN_REGIONS as a,INDIRECT_TAX_PROVINCES as b,vatLabels as v};