@saasquatch/mint-components 1.15.0-62 → 1.15.0-63
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.
- package/dist/cjs/{IndirectTaxDetailsView-d7d3a220.js → IndirectTaxDetailsView-79703291.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-dbc78438.js → ShadowViewAddon-e0aa9b07.js} +2 -2
- package/dist/cjs/{global-a3a85ff0.js → global-38031ab9.js} +61 -54
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +139 -282
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +27 -57
- package/dist/cjs/sqm-code-verification.cjs.entry.js +14 -4
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +10 -13
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-form-message.cjs.entry.js +5 -5
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-aec35ba2.js → sqm-portal-email-verification-view-f1671646.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-cff9bfc7.js → sqm-portal-profile-view-5aabad8c.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-qr-code-view-af9f6df7.js → sqm-qr-code-view-0c3b2f48.js} +7 -2
- package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -3
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +20 -28
- package/dist/cjs/sqm-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +4 -5
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +1 -1
- package/dist/cjs/{usePortalLogin-1c022d8d.js → usePortalLogin-6aa864ef.js} +1 -1
- package/dist/cjs/{utils-940abb91.js → utils-62fd5f09.js} +1 -1
- package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
- package/dist/collection/components/sqm-stencilbook/Themes.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +8 -11
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +3 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +4 -33
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +19 -47
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +13 -64
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +3 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +86 -82
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -44
- package/dist/collection/global/styles.js +61 -54
- package/dist/collection/global/styles.ts +9 -2
- package/dist/collection/utils/utils.js +4 -0
- package/dist/esm/{IndirectTaxDetailsView-0ae0aeb9.js → IndirectTaxDetailsView-3bf366d5.js} +2 -2
- package/dist/esm/{ShadowViewAddon-51e9ebf7.js → ShadowViewAddon-2984432d.js} +2 -2
- package/dist/esm/{global-e9173b4c.js → global-75f87c77.js} +61 -54
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_10.entry.js +139 -282
- package/dist/esm/sqm-big-stat_42.entry.js +27 -57
- package/dist/esm/sqm-code-verification.entry.js +14 -4
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +10 -13
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-form-message.entry.js +5 -5
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-a82e199f.js → sqm-portal-email-verification-view-46311e88.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-caabc8d3.js → sqm-portal-profile-view-f7cb1c88.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/{sqm-qr-code-view-7be282fd.js → sqm-qr-code-view-97124a66.js} +6 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -3
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +20 -28
- package/dist/esm/sqm-tabs.entry.js +1 -1
- package/dist/esm/sqm-tax-and-cash.entry.js +4 -5
- package/dist/esm/sqm-widget-verification.entry.js +1 -1
- package/dist/esm/{usePortalLogin-61abe78e.js → usePortalLogin-d0720c81.js} +1 -1
- package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
- package/dist/esm/{utils-985d9996.js → utils-edd7677f.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-0ae0aeb9.js → IndirectTaxDetailsView-3bf366d5.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-51e9ebf7.js → ShadowViewAddon-2984432d.js} +1 -1
- package/dist/esm-es5/{global-e9173b4c.js → global-75f87c77.js} +3 -3
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-a82e199f.js → sqm-portal-email-verification-view-46311e88.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-caabc8d3.js → sqm-portal-profile-view-f7cb1c88.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-97124a66.js +1 -0
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePortalLogin-61abe78e.js → usePortalLogin-d0720c81.js} +1 -1
- package/dist/esm-es5/utils-03188de2.js +1 -0
- package/dist/esm-es5/{utils-985d9996.js → utils-edd7677f.js} +1 -1
- package/dist/mint-components/global/styles.ts +9 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-949ca517.system.entry.js → p-002e6205.system.entry.js} +1 -1
- package/dist/mint-components/{p-fe01d78b.system.js → p-03bc8092.system.js} +1 -1
- package/dist/mint-components/{p-d1184054.system.entry.js → p-09faca85.system.entry.js} +1 -1
- package/dist/mint-components/p-0b0f49ad.entry.js +1 -0
- package/dist/mint-components/{p-93c743a4.system.js → p-0b9d56b2.system.js} +1 -1
- package/dist/mint-components/{p-23671c40.entry.js → p-0d178b8a.entry.js} +1 -1
- package/dist/mint-components/{p-3c546860.system.entry.js → p-0d22c0e5.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7861962.entry.js → p-0fca4ae0.entry.js} +1 -1
- package/dist/mint-components/p-15bfd7e2.system.js +1 -0
- package/dist/mint-components/p-16b37afe.system.entry.js +1 -0
- package/dist/mint-components/{p-08a77d1e.system.entry.js → p-1ad8f7f4.system.entry.js} +1 -1
- package/dist/mint-components/p-1cad4160.system.entry.js +1 -0
- package/dist/mint-components/{p-717f926c.system.entry.js → p-207fb692.system.entry.js} +1 -1
- package/dist/mint-components/{p-01551599.system.js → p-21b680c9.system.js} +1 -1
- package/dist/mint-components/{p-b5346a5a.entry.js → p-22c11f0e.entry.js} +1 -1
- package/dist/mint-components/{p-7b635ed8.system.entry.js → p-22d20816.system.entry.js} +1 -1
- package/dist/mint-components/{p-b64f7dcb.system.entry.js → p-258f4e5e.system.entry.js} +1 -1
- package/dist/mint-components/p-29be244d.entry.js +9 -0
- package/dist/mint-components/{p-b11dd241.system.js → p-2ce2d1f0.system.js} +1 -1
- package/dist/mint-components/{p-4ec69d24.js → p-32ed7c0c.js} +1 -1
- package/dist/mint-components/p-32fa454c.entry.js +1 -0
- package/dist/mint-components/{p-2cec44e0.entry.js → p-33d0edc0.entry.js} +2 -2
- package/dist/mint-components/p-40c01a5a.system.js +1 -0
- package/dist/mint-components/{p-35061d76.system.entry.js → p-4271f436.system.entry.js} +1 -1
- package/dist/mint-components/{p-a554c304.js → p-474124e9.js} +1 -1
- package/dist/mint-components/p-4aefb976.system.entry.js +1 -0
- package/dist/mint-components/{p-0c7135bb.entry.js → p-50348f43.entry.js} +1 -1
- package/dist/mint-components/{p-c431aedf.entry.js → p-564ac69e.entry.js} +2 -2
- package/dist/mint-components/p-59f8eb90.entry.js +93 -0
- package/dist/mint-components/{p-e49b253f.entry.js → p-5e0af707.entry.js} +2 -2
- package/dist/mint-components/{p-f7700805.js → p-5ed49bf2.js} +1 -1
- package/dist/mint-components/{p-f5f97cd2.system.js → p-643749bc.system.js} +1 -1
- package/dist/mint-components/p-692bacf3.js +1 -0
- package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
- package/dist/mint-components/{p-674d9089.system.entry.js → p-6b076bae.system.entry.js} +1 -1
- package/dist/mint-components/p-6f6d5370.entry.js +25 -0
- package/dist/mint-components/{p-8846046e.entry.js → p-6fb9b5ab.entry.js} +1 -1
- package/dist/mint-components/{p-65ed872f.entry.js → p-711bc624.entry.js} +1 -1
- package/dist/mint-components/{p-641bdf0e.system.entry.js → p-7b4eb94e.system.entry.js} +1 -1
- package/dist/mint-components/{p-734dde9b.system.js → p-82505f6e.system.js} +1 -1
- package/dist/mint-components/p-8c69fc5f.system.entry.js +1 -0
- package/dist/mint-components/{p-3a7e5207.entry.js → p-97852163.entry.js} +1 -1
- package/dist/mint-components/{p-b11d89bd.entry.js → p-9aadc253.entry.js} +1 -1
- package/dist/mint-components/p-9d126299.system.entry.js +1 -0
- package/dist/mint-components/{p-b70ef2f5.system.entry.js → p-a2533860.system.entry.js} +1 -1
- package/dist/mint-components/{p-8a9939ef.system.entry.js → p-a67cbe0b.system.entry.js} +1 -1
- package/dist/mint-components/p-a99658e0.entry.js +1 -0
- package/dist/mint-components/{p-bf89cd86.system.js → p-acb26ec0.system.js} +1 -1
- package/dist/mint-components/{p-4aed3645.entry.js → p-b2bf7fcb.entry.js} +1 -1
- package/dist/mint-components/p-b2c04108.system.entry.js +1 -0
- package/dist/mint-components/{p-d9cfd2ad.js → p-b6da4fa0.js} +1 -1
- package/dist/mint-components/{p-f45be408.system.js → p-b7d13172.system.js} +1 -1
- package/dist/mint-components/{p-0de7e5ec.entry.js → p-b9bccc55.entry.js} +1 -1
- package/dist/mint-components/{p-85029918.entry.js → p-bad50dc1.entry.js} +1 -1
- package/dist/mint-components/{p-8aa5f1ee.entry.js → p-bb627d95.entry.js} +2 -2
- package/dist/mint-components/p-bcbac6f3.system.entry.js +1 -0
- package/dist/mint-components/{p-adb13f08.system.entry.js → p-d513848f.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5d72a05.entry.js → p-d5f1df29.entry.js} +1 -1
- package/dist/mint-components/p-d785a297.system.entry.js +1 -0
- package/dist/mint-components/{p-d577a32d.js → p-d87982c1.js} +1 -1
- package/dist/mint-components/{p-0ac9e4d2.entry.js → p-d97c6f67.entry.js} +1 -1
- package/dist/mint-components/{p-c6fc6ce5.js → p-dec5f3fc.js} +1 -1
- package/dist/mint-components/{p-884a1b19.entry.js → p-e539fed3.entry.js} +1 -1
- package/dist/mint-components/{p-dcddb256.system.entry.js → p-e992648a.system.entry.js} +1 -1
- package/dist/mint-components/{p-f8520da2.system.entry.js → p-ebb487d0.system.entry.js} +1 -1
- package/dist/mint-components/{p-a8b53df1.system.entry.js → p-f0e0d0b9.system.entry.js} +1 -1
- package/dist/mint-components/p-f1da802b.entry.js +11 -0
- package/dist/mint-components/{p-a7b66236.system.entry.js → p-f2140374.system.entry.js} +1 -1
- package/dist/mint-components/{p-cd207258.js → p-f2ee69f1.js} +1 -1
- package/dist/mint-components/{p-b35ceac8.system.entry.js → p-f94788ab.system.entry.js} +1 -1
- package/dist/mint-components/{p-3191e4a8.entry.js → p-fe3fe6b6.entry.js} +1 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/cjs/ErrorView-0f564e2a.js +0 -35
- package/dist/esm/ErrorView-b396dcc7.js +0 -33
- package/dist/esm-es5/ErrorView-b396dcc7.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-7be282fd.js +0 -1
- package/dist/esm-es5/utils-334c1e34.js +0 -1
- package/dist/mint-components/p-0ea0f9e3.system.entry.js +0 -1
- package/dist/mint-components/p-1b99001f.js +0 -1
- package/dist/mint-components/p-2b819683.entry.js +0 -9
- package/dist/mint-components/p-6333265f.system.js +0 -1
- package/dist/mint-components/p-65fec8a8.entry.js +0 -25
- package/dist/mint-components/p-6aaf431f.system.entry.js +0 -1
- package/dist/mint-components/p-6d20d500.system.js +0 -1
- package/dist/mint-components/p-6d2d4f7c.entry.js +0 -1
- package/dist/mint-components/p-73213344.system.entry.js +0 -1
- package/dist/mint-components/p-7f54c9f9.entry.js +0 -11
- package/dist/mint-components/p-84b95bd2.system.js +0 -1
- package/dist/mint-components/p-89854fe2.system.entry.js +0 -1
- package/dist/mint-components/p-a18e9043.system.entry.js +0 -1
- package/dist/mint-components/p-af125497.entry.js +0 -93
- package/dist/mint-components/p-c00c4e19.system.entry.js +0 -1
- package/dist/mint-components/p-c8524b9c.entry.js +0 -1
- package/dist/mint-components/p-d2d15c86.system.entry.js +0 -1
- package/dist/mint-components/p-d6bc1680.js +0 -1
- package/dist/mint-components/p-d9a18e00.system.entry.js +0 -1
- package/dist/mint-components/p-fa89e7d4.entry.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
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-
|
|
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-
|
|
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-
|
|
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 {
|
|
32
|
-
import {
|
|
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-2984432d.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-
|
|
36
|
-
import { t as taxTypeToName, L as LoadingView } from './utils-
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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(
|
|
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-
|
|
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
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
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-
|
|
6
|
+
import { g as getProps } from './utils-03188de2.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
|
-
import {
|
|
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(
|
|
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-
|
|
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-
|
|
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 };
|
package/dist/esm-es5/{IndirectTaxDetailsView-0ae0aeb9.js → IndirectTaxDetailsView-3bf366d5.js}
RENAMED
|
@@ -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};
|