@saasquatch/mint-components 1.15.0-80 → 1.15.0-82
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-b3b7bb6e.js → IndirectTaxDetailsView-cf888c7b.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-9bf35bfe.js → ShadowViewAddon-2333d6ea.js} +2 -2
- package/dist/cjs/{global-16279e95.js → global-191f2253.js} +2 -2
- 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 +10 -5
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-e2590f1b.js → sqm-portal-email-verification-view-87e083ca.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-5310d41a.js → sqm-portal-profile-view-7ac7d3ac.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +7 -7
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +8 -9
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -2
- package/dist/cjs/{utils-d5821f8d.js → utils-e3305bd8.js} +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +7 -7
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +8 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +13 -14
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +31 -2
- package/dist/collection/global/styles.js +2 -2
- package/dist/collection/global/styles.ts +1 -1
- package/dist/esm/{IndirectTaxDetailsView-451cf5e2.js → IndirectTaxDetailsView-084314d5.js} +2 -2
- package/dist/esm/{ShadowViewAddon-3c2957fe.js → ShadowViewAddon-eead271b.js} +2 -2
- package/dist/esm/{global-2f3b2adb.js → global-80edfef3.js} +2 -2
- 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 +10 -5
- package/dist/esm/sqm-big-stat_43.entry.js +3 -3
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-e68275d7.js → sqm-portal-email-verification-view-5719eb87.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-fe781f47.js → sqm-portal-profile-view-9a82fe2e.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +7 -7
- package/dist/esm/sqm-tax-and-cash.entry.js +8 -9
- package/dist/esm/sqm-widget-verification.entry.js +3 -2
- package/dist/esm/{utils-c416c7e4.js → utils-27b2ed4b.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-451cf5e2.js → IndirectTaxDetailsView-084314d5.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-3c2957fe.js → ShadowViewAddon-eead271b.js} +1 -1
- package/dist/esm-es5/{global-2f3b2adb.js → global-80edfef3.js} +1 -1
- 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_43.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.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-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-e68275d7.js → sqm-portal-email-verification-view-5719eb87.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-fe781f47.js → sqm-portal-profile-view-9a82fe2e.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.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-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/{utils-c416c7e4.js → utils-27b2ed4b.js} +1 -1
- package/dist/mint-components/global/styles.ts +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-404daf1c.entry.js → p-00378aec.entry.js} +1 -1
- package/dist/mint-components/{p-e1a5f64a.entry.js → p-05650cb6.entry.js} +1 -1
- package/dist/mint-components/{p-4eee6c40.entry.js → p-09631d19.entry.js} +2 -2
- package/dist/mint-components/{p-5ccee28f.system.entry.js → p-0e66f410.system.entry.js} +1 -1
- package/dist/mint-components/{p-82560b78.system.js → p-1394d253.system.js} +1 -1
- package/dist/mint-components/{p-7752408c.js → p-19f41a8e.js} +1 -1
- package/dist/mint-components/{p-577a4c97.js → p-1d4a327c.js} +1 -1
- package/dist/mint-components/{p-ba16858e.system.entry.js → p-1d7aaa58.system.entry.js} +1 -1
- package/dist/mint-components/{p-8bcdb9a4.entry.js → p-1f32233f.entry.js} +2 -2
- package/dist/mint-components/{p-b86f944c.entry.js → p-1f511d5d.entry.js} +1 -1
- package/dist/mint-components/{p-b3112c88.system.entry.js → p-433ca566.system.entry.js} +1 -1
- package/dist/mint-components/{p-2c310c7d.entry.js → p-7270fb59.entry.js} +1 -1
- package/dist/mint-components/{p-bcb48c32.system.js → p-773ce89c.system.js} +1 -1
- package/dist/mint-components/{p-c9252c59.system.entry.js → p-8543a70f.system.entry.js} +1 -1
- package/dist/mint-components/{p-e8dc94cc.system.entry.js → p-89b859c7.system.entry.js} +1 -1
- package/dist/mint-components/{p-621575fa.system.entry.js → p-89c9e78a.system.entry.js} +1 -1
- package/dist/mint-components/{p-153a122d.system.js → p-91877326.system.js} +1 -1
- package/dist/mint-components/{p-5fca2bd3.system.entry.js → p-9d29a0ff.system.entry.js} +1 -1
- package/dist/mint-components/{p-33703509.system.entry.js → p-9dbfdb41.system.entry.js} +1 -1
- package/dist/mint-components/{p-ac11e10a.js → p-a4e56204.js} +1 -1
- package/dist/mint-components/{p-da34d4f7.entry.js → p-a6234a78.entry.js} +1 -1
- package/dist/mint-components/{p-2a8e2f28.system.js → p-a89baf7b.system.js} +1 -1
- package/dist/mint-components/{p-9e00773c.entry.js → p-aae3511a.entry.js} +1 -1
- package/dist/mint-components/{p-69d64372.system.entry.js → p-ad174af6.system.entry.js} +1 -1
- package/dist/mint-components/{p-c3fe8514.system.entry.js → p-ad586adc.system.entry.js} +1 -1
- package/dist/mint-components/{p-5800e049.entry.js → p-c1629004.entry.js} +1 -1
- package/dist/mint-components/{p-b8fed018.system.js → p-c2c59452.system.js} +1 -1
- package/dist/mint-components/{p-64d7775b.entry.js → p-c2eb19ad.entry.js} +1 -1
- package/dist/mint-components/p-cfe202ef.system.entry.js +1 -0
- package/dist/mint-components/{p-49e92a7c.js → p-d2e2e10f.js} +1 -1
- package/dist/mint-components/{p-21fab6ef.system.js → p-df37ef17.system.js} +1 -1
- package/dist/mint-components/{p-f6762bb5.entry.js → p-e425b7a1.entry.js} +2 -2
- package/dist/mint-components/{p-36b1414b.system.js → p-e4e3ddb6.system.js} +1 -1
- package/dist/mint-components/{p-4d741ccd.js → p-e64fbb70.js} +1 -1
- package/dist/mint-components/{p-3055141d.entry.js → p-e9d0caf7.entry.js} +1 -1
- package/dist/mint-components/{p-64457acd.system.entry.js → p-ef8b70cd.system.entry.js} +1 -1
- package/dist/mint-components/{p-9c2d515d.entry.js → p-f4dc053e.entry.js} +1 -1
- package/dist/mint-components/{p-bfc16195.system.entry.js → p-f51e41dd.system.entry.js} +1 -1
- package/dist/mint-components/{p-35a2332d.js → p-fd21f0b6.js} +1 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +2 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +3 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +6 -6
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +5 -0
- package/dist/types/components.d.ts +30 -18
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/mint-components/p-f6665d99.system.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-80edfef3.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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-80edfef3.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';
|
|
@@ -19,20 +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-5719eb87.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-9a82fe2e.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
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-
|
|
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-eead271b.js';
|
|
33
33
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
|
|
34
|
-
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-
|
|
35
|
-
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-084314d5.js';
|
|
35
|
+
import { t as taxTypeToName, L as LoadingView } from './utils-27b2ed4b.js';
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -6514,7 +6514,7 @@ const HeroImage = /*#__PURE__*/Object.freeze({
|
|
|
6514
6514
|
ColumnsCustomColors: ColumnsCustomColors
|
|
6515
6515
|
});
|
|
6516
6516
|
|
|
6517
|
-
const scenario$7 = "@author:noah\n@owner:noah\n\nFeature: Hero Unit\n\n Background: A portal with a hero unit exists\n Given a hosted portal\n And the portal has hero unit on the login page\n And a user is viewing the login page\n\n Scenario: The hero unit defaults to a single column layout\n Given a hero unit does not have a \"columns\" prop\n But the following html is wrapped by the hero unit\n \"\"\"\n <sqm-portal-login></sqm-portal-login>\n <div slot=\"secondary-column\">\n <h1 style=\"text-align:center\">Get Referring!</h1>\n <p style=\"text-align:center\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur.\n </p>\n </div>\n \"\"\"\n Then only a single column will be displayed\n And within it will be the login component\n\n Scenario: Hero layout can hide a column at 1023px or less\n Given the user is viewing
|
|
6517
|
+
const scenario$7 = "@author:noah\n@owner:noah\n\nFeature: Hero Unit\n\n Background: A portal with a hero unit exists\n Given a hosted portal\n And the portal has hero unit on the login page\n And a user is viewing the login page\n\n Scenario: The hero unit defaults to a single column layout\n Given a hero unit does not have a \"columns\" prop\n But the following html is wrapped by the hero unit\n \"\"\"\n <sqm-portal-login></sqm-portal-login>\n <div slot=\"secondary-column\">\n <h1 style=\"text-align:center\">Get Referring!</h1>\n <p style=\"text-align:center\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur.\n </p>\n </div>\n \"\"\"\n Then only a single column will be displayed\n And within it will be the login component\n\n Scenario Outline: Hero layout can hide a column at 1023px or less\n Given the user is viewing a hero unit with a \"primary\" and \"secondary\" column\n And the \"column-to-hide-in-mobile\" is set to <columnToHide>\n When the user views the hero unit at 1023px or less\n Then the <columnToHide> column <isHidden>\n\n Examples:\n | column_to_hide | isHidden |\n | primary | is hidden |\n | secondary | is hidden |\n | none | is not hidden|\n\n Scenario Outline: The hero unit supports single or dual column layouts\n Given a hero unit with prop \"columns\" having <columnValue>\n And it wraps <html>\n Then the hero unit displays <columnValue> columns\n Examples:\n | columnValue | html |\n | 1 | <h1>Column 1!</h1> |\n | 2 | <h1>Column 1!</h1><div slot=\"secondary-column\"><h1 style=\"text-align:center\">Column 2!</h1></div> |\n\n Scenario: HTML to be displayed in the second column comes from the \"secondary-column\" slot\n Given a hero unit with \"columns\" \"2\"\n And the following html\n \"\"\"\n <h1>Column 1!</h1>\n <div>\n <h1 style=\"text-align:center\">Column 2!</h1>\n </div>\n \"\"\"\n When the hero unit is rendered\n Then only one column is displayed with content\n And column 1 will contain the \"Column 1!\" text\n And column 1 will contain the \"Column 2!\" text\n When the div for column two is updated to have 'slot=\"secondary-column\"'\n Then the two columns are displayed with content\n And column 1 will contain the \"Column 1!\" text\n And column 2 will contain the \"Column 2!\" text\n\n Scenario Outline: A background for the hero unit can be set as an image or colour\n Given a hero unit with <backgroundPropValue>\n Then the background will be <background>\n Examples:\n | background | background |\n | https://images.unsplash.com/photo-1599676821464-3555954838dc | image of misty mountains |\n | LightSlateGrey | light slate grey |\n | #00FF00 | green |\n | rgb(128,0,128) | purple |\n\n Scenario Outline: Wrap Direction can be configured for mobile experiences\n Given a hero unit with the following HTML\n \"\"\"\n <h1>Column 1!</h1>\n <div slot=\"secondary-column\">\n <h1 style=\"text-align:center\">Column 2!</h1>\n </div>\n \"\"\"\n And prop \"wrap-direction\" has <value>\n When the window width is less than 600px\n Then the two columns will stack\n And <column> will be on top\n Examples:\n | value | column |\n | wrap | 1 |\n | wrap-reverse | 2 |\n | <null> | 1 |\n\n Scenario Outline: Minimum height can be customized\n Given the option \"Mininum Height (in px)\" is <value>\n Then the hero image minimum height is <effectiveValue>\n And the change is reflected in mobile view\n Examples:\n | value | effectiveValue |\n | unset (default value) | 200px |\n | 200px | 500px |";
|
|
6518
6518
|
|
|
6519
6519
|
const Hero_stories = {
|
|
6520
6520
|
title: "Components/Hero Layout",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import './global-
|
|
2
|
+
import './global-80edfef3.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
6
|
import { g as getProps } from './utils-03188de2.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
|
-
import { g as getCountryObj, L as LoadingView } from './utils-
|
|
8
|
+
import { g as getCountryObj, L as LoadingView } from './utils-27b2ed4b.js';
|
|
9
9
|
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
10
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';
|
|
11
11
|
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
@@ -1167,12 +1167,12 @@ const TaxAndCashMonolith = class {
|
|
|
1167
1167
|
*/
|
|
1168
1168
|
this.supportLink = "support team";
|
|
1169
1169
|
/**
|
|
1170
|
-
* @
|
|
1171
|
-
* @componentState { "title": "Step 1: Personal information", "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"] }
|
|
1172
|
-
* @componentState { "title": "Step 2: Indirect tax
|
|
1173
|
-
* @componentState { "title": "Step 3: Tax form", "props": { "step": "/3" }, "dependencies": ["sqm-docusign-form"] }
|
|
1174
|
-
* @componentState { "title": "Step 4: Payment method", "props": { "step": "/4" }, "dependencies": ["sqm-banking-info-form"] }
|
|
1175
|
-
* @componentState { "title": "Dashboard", "props": { "step": "/dashboard" }, "dependencies": ["sqm-tax-and-cash-dashboard"] }
|
|
1170
|
+
* @undocumented
|
|
1171
|
+
* @componentState { "title": "Step 1: Personal information", "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"], "uiGroup": "Step 1 Properties" }
|
|
1172
|
+
* @componentState { "title": "Step 2: Indirect tax", "props": { "step": "/2" }, "dependencies": ["sqm-indirect-tax-form"], "uiGroup": "Step 2 Properties" }
|
|
1173
|
+
* @componentState { "title": "Step 3: Tax form", "props": { "step": "/3" }, "dependencies": ["sqm-docusign-form"], "uiGroup": "Step 3 Properties" }
|
|
1174
|
+
* @componentState { "title": "Step 4: Payment method", "props": { "step": "/4" }, "dependencies": ["sqm-banking-info-form"], "uiGroup": "Step 4 Properties" }
|
|
1175
|
+
* @componentState { "title": "Dashboard", "props": { "step": "/dashboard" }, "dependencies": ["sqm-tax-and-cash-dashboard"], "uiGroup": "Dashboard Properties" }
|
|
1176
1176
|
*/
|
|
1177
1177
|
this.stateController = "{}";
|
|
1178
1178
|
h(this);
|
|
@@ -1237,7 +1237,6 @@ function useDemoTaxAndCash(props) {
|
|
|
1237
1237
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
1238
1238
|
initialValue: "/1",
|
|
1239
1239
|
});
|
|
1240
|
-
console.log("PROPS", props);
|
|
1241
1240
|
const states = parseStates(props.stateController);
|
|
1242
1241
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash"
|
|
1243
1242
|
? { ...prev, ...states[key] }
|
|
@@ -162,8 +162,9 @@ const WidgetVerification = class {
|
|
|
162
162
|
*/
|
|
163
163
|
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
164
164
|
/**
|
|
165
|
-
* @
|
|
166
|
-
* @componentState { "title": "Step
|
|
165
|
+
* @undocumented
|
|
166
|
+
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
167
|
+
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
167
168
|
*/
|
|
168
169
|
this.stateController = "{}";
|
|
169
170
|
h(this);
|
package/dist/esm-es5/{IndirectTaxDetailsView-451cf5e2.js → IndirectTaxDetailsView-084314d5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h}from"./index-b3a06de8.js";import{i as intl}from"./global-2f3b2adb.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-c416c7e4.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-80edfef3.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{f as formatErrorMessage}from"./utils-27b2ed4b.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};
|