@saasquatch/mint-components 2.5.5-1 → 2.5.5
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/AsYouType-5f15a922.js +4764 -0
- package/dist/cjs/{ErrorView-17578c10.js → ErrorView-8f6cf1cb.js} +1 -1
- package/dist/cjs/{GenericTableView-4c48c630.js → GenericTableView-12d35117.js} +17 -15
- package/dist/cjs/{JSS-8503a151.js → JSS-bf8078e9.js} +342 -338
- package/dist/cjs/{ShadowViewAddon-f57cb460.js → ShadowViewAddon-ee16ec1d.js} +312 -292
- package/dist/cjs/{copy-text-view-bb2c0ea7.js → copy-text-view-49517b2a.js} +2 -2
- package/dist/cjs/{data-ae38fa86.js → data-77273531.js} +5 -5
- package/dist/cjs/demoMerge-6f125494.js +203 -0
- package/dist/cjs/{dom-context-hooks.module-e7b6727c.js → dom-context-hooks.module-735c3942.js} +133 -76
- package/dist/cjs/{email-registration-view-306c8878.js → email-registration-view-36a74293.js} +10 -9
- package/dist/cjs/{global-3ba30270.js → global-973bc63c.js} +587 -583
- package/dist/cjs/{index.module-3221a469.js → index-8530c62f.js} +2911 -511
- package/dist/cjs/{index-8277cbb3.js → index-d41c2c94.js} +766 -340
- package/dist/cjs/{index-8c6255f5.js → index-f1dd6136.js} +47 -29
- package/dist/cjs/{jsonpointer-11327262.js → jsonpointer-0db21316.js} +8 -4
- package/dist/cjs/loader.cjs.js +6 -5
- package/dist/cjs/{luxon-c1ad356a.js → luxon-d3612a3d.js} +486 -299
- package/dist/cjs/mint-components.cjs.js +11 -7
- package/dist/cjs/{mockRewardData-ed603fca.js → mockRewardData-e6a0a048.js} +5 -3
- package/dist/cjs/{parseStates-d1effc19.js → parseStates-35013ba4.js} +3 -0
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-34b36aca.js → re-render-51c48d7c.js} +5 -5
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +399 -1395
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +818 -2891
- package/dist/cjs/{sqm-close-button-view-e9f2a454.js → sqm-close-button-view-74e5e1e9.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -11
- package/dist/cjs/sqm-code-verification.cjs.entry.js +20 -47
- package/dist/cjs/sqm-context-router.cjs.entry.js +9 -8
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +71 -182
- package/dist/cjs/sqm-empty_4.cjs.entry.js +21 -58
- package/dist/cjs/sqm-form-message_2.cjs.entry.js +7 -19
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +10 -9
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +11 -10
- package/dist/cjs/sqm-header-logo.cjs.entry.js +4 -19
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +14 -89
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +6 -8
- package/dist/cjs/{sqm-lead-checkbox-field-view-d6df81c7.js → sqm-lead-checkbox-field-view-24ac7358.js} +12 -11
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +14 -30
- package/dist/cjs/sqm-lead-input-field-view-7dfbc714.js +52 -0
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +15 -31
- package/dist/cjs/{sqm-leaderboard-rank-view-67fd7934.js → sqm-leaderboard-rank-view-e992762c.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +25 -22
- package/dist/cjs/{sqm-logout-current-user-view-f330d641.js → sqm-logout-current-user-view-ebee238e.js} +2 -2
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -28
- package/dist/cjs/{sqm-navigation-sidebar-item-view-9134e64e.js → sqm-navigation-sidebar-item-view-a2cab80e.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +23 -18
- package/dist/cjs/{sqm-navigation-sidebar-view-6616e3e0.js → sqm-navigation-sidebar-view-873e0c44.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +12 -17
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +40 -102
- package/dist/cjs/{sqm-partner-info-modal-view-6173c618.js → sqm-partner-info-modal-view-c8972001.js} +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +186 -86
- package/dist/cjs/sqm-popup-container.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-portal-container-view-757f921b.js → sqm-portal-container-view-c0cf9af9.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-38d8344c.js → sqm-portal-email-verification-view-92866725.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +22 -52
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +101 -429
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +7 -13
- package/dist/cjs/{sqm-portal-profile-view-062eda68.js → sqm-portal-profile-view-60e78cdb.js} +20 -17
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +20 -56
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -24
- package/dist/cjs/{sqm-portal-registration-form-view-a45f7a52.js → sqm-portal-registration-form-view-5473e24d.js} +26 -21
- package/dist/cjs/{sqm-portal-reset-password-view-b2c546bd.js → sqm-portal-reset-password-view-7a6f55c5.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +21 -89
- package/dist/cjs/{sqm-portal-verify-email-view-2a120d0a.js → sqm-portal-verify-email-view-7efa70c9.js} +48 -45
- package/dist/cjs/{sqm-qr-code-view-0d43424e.js → sqm-qr-code-view-70da70f9.js} +3 -3
- package/dist/cjs/sqm-qr-code.cjs.entry.js +22 -48
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +37 -140
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +5 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -7
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +98 -217
- package/dist/cjs/sqm-route.cjs.entry.js +2 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +12 -8
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2892 -2264
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +9 -8
- package/dist/cjs/{sqm-text-span-view-b9e10f5d.js → sqm-text-span-view-c6938acd.js} +2 -2
- package/dist/cjs/sqm-text-span.cjs.entry.js +8 -4
- package/dist/cjs/{sqm-user-info-form-view-aedca5fe.js → sqm-user-info-form-view-e878a9a3.js} +173 -163
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +6 -11
- package/dist/cjs/subregions-3dbacb18.js +1467 -0
- package/dist/cjs/{useChildElements-36f7e4bb.js → useChildElements-e5e26816.js} +3 -3
- package/dist/cjs/{useIndirectTaxForm-7656fc63.js → useIndirectTaxForm-691691c2.js} +42 -38
- package/dist/cjs/{useInstantAccessRegistration-43514e50.js → useInstantAccessRegistration-9201777d.js} +6 -6
- package/dist/cjs/{useLeadFormState-34f9834b.js → useLeadFormState-f5b768b9.js} +20 -20
- package/dist/cjs/{usePortalRegistrationForm-b18a1f6b.js → usePortalRegistrationForm-b3c0451b.js} +16 -13
- package/dist/cjs/{useReferralCodes-25d5320a.js → useReferralCodes-5794a177.js} +11 -11
- package/dist/cjs/{useReferralTable-ad86986b.js → useReferralTable-32b3541b.js} +19 -19
- package/dist/cjs/{useRegistrationFormState-ea81d55a.js → useRegistrationFormState-feccd2c8.js} +3 -3
- package/dist/cjs/{useVerificationEmail-70aad5f1.js → useVerificationEmail-f0807562.js} +17 -15
- package/dist/cjs/{utilities-dfc34bea.js → utilities-04345466.js} +3 -3
- package/dist/collection/ShadowViewAddon.js +1 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/raisins-plop-target/raisins-plop-target.js +36 -34
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +3 -7
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +11 -23
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +11 -27
- package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +2 -16
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +1 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +294 -298
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +3 -3
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +4 -72
- package/dist/collection/components/sqm-brand/sqm-brand.js +61 -58
- package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +43 -120
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -5
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +55 -59
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +17 -22
- package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +5 -19
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +18 -21
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +167 -179
- package/dist/collection/components/sqm-close-button/CloseButton.stories.js +3 -5
- package/dist/collection/components/sqm-close-button/sqm-close-button-view.js +1 -5
- package/dist/collection/components/sqm-close-button/sqm-close-button.js +32 -35
- package/dist/collection/components/sqm-context-router/ContextRouter.js +4 -33
- package/dist/collection/components/sqm-context-router/sqm-context-router.js +39 -33
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +1 -7
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +601 -695
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +10 -5
- package/dist/collection/components/sqm-divided-layout/DividedLayout.stories.js +19 -36
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +1 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +129 -135
- package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +7 -7
- package/dist/collection/components/sqm-dropdown-field/UseDropdownField.stories.js +3 -15
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +13 -15
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +128 -133
- package/dist/collection/components/sqm-edit-profile/EditProfileForm.stories.js +2 -2
- package/dist/collection/components/sqm-edit-profile/UseEditProfile.stories.js +9 -9
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +27 -45
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +272 -264
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +4 -3
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +4 -7
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +6 -12
- package/dist/collection/components/sqm-empty/sqm-empty.js +102 -95
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +9 -27
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +102 -108
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +61 -56
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +32 -28
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +147 -161
- package/dist/collection/components/sqm-hero/Hero.stories.js +20 -54
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +5 -11
- package/dist/collection/components/sqm-hero/sqm-hero.js +177 -202
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +9 -26
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +533 -590
- package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +28 -23
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -6
- package/dist/collection/components/sqm-image/sqm-image.js +131 -131
- package/dist/collection/components/sqm-input-field/InputField.stories.js +17 -17
- package/dist/collection/components/sqm-input-field/UseInputField.stories.js +7 -22
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +14 -15
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +156 -162
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +410 -481
- package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +2 -18
- package/dist/collection/components/sqm-invoice-table/UseInvoiceTable.stories.js +2 -14
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-data-cell.js +27 -23
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +29 -29
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +85 -80
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +68 -64
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +40 -39
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -8
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +287 -310
- package/dist/collection/components/sqm-invoice-table/useInvoiceTable.js +1 -3
- package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +7 -7
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +6 -10
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +10 -10
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +7 -7
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +20 -24
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +167 -179
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +13 -17
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +174 -189
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +22 -48
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +365 -420
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +13 -16
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +179 -191
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +3 -1
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +23 -29
- package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +3 -15
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +11 -35
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +553 -563
- package/dist/collection/components/sqm-leaderboard-rank/LeaderboardRank.stories.js +3 -12
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +200 -192
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +4 -3
- package/dist/collection/components/sqm-link-button/LinkButton.stories.js +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +1 -6
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +73 -77
- package/dist/collection/components/sqm-logout-current-user/LogoutCurrentUser.stories.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user-view.js +1 -9
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +106 -115
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +104 -109
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +21 -20
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +104 -109
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu-view.js +6 -9
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +92 -82
- package/dist/collection/components/sqm-navigation-sidebar/NavigationSidebar.stories.js +1 -3
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +1 -8
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +71 -73
- package/dist/collection/components/sqm-navigation-sidebar-item/SidebarItem.stories.js +2 -2
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +1 -4
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +315 -308
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +1 -9
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +94 -100
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +13 -13
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +22 -54
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +515 -603
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +3 -3
- package/dist/collection/components/sqm-password-field/passwordValidation.js +8 -20
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +16 -18
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +197 -219
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -7
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -4
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +82 -84
- package/dist/collection/components/sqm-popup-container/PopupContainer.stories.js +1 -2
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -5
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +161 -155
- package/dist/collection/components/sqm-portal-change-marketing/ChangeMarketing.stories.js +5 -5
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +8 -17
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +142 -154
- package/dist/collection/components/sqm-portal-change-password/ChangePassword.stories.js +6 -6
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -24
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +380 -436
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +5 -2
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +16 -119
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -5
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +280 -299
- package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +5 -5
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +13 -25
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +216 -243
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +6 -6
- package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +1 -12
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -16
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +317 -351
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -14
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +279 -316
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -1
- package/dist/collection/components/sqm-portal-frame/PortalFrame.stories.js +14 -55
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +1 -7
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +141 -158
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +295 -342
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +19 -26
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +645 -749
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -5
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -17
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +255 -292
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +33 -36
- package/dist/collection/components/sqm-portal-profile/PortalProfile.stories.js +6 -6
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +15 -26
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +282 -314
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +72 -82
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +8 -13
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +15 -28
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +525 -610
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -1
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +10 -15
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +20 -33
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +573 -663
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +5 -2
- package/dist/collection/components/sqm-portal-reset-password/PortalResetPassword.stories.js +6 -6
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -29
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +449 -514
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +2 -1
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -14
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +196 -222
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +4 -2
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +20 -32
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -7
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +84 -78
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -10
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +231 -220
- package/dist/collection/components/sqm-program-menu/ProgramMenu.stories.js +8 -25
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +8 -9
- package/dist/collection/components/sqm-qr-code/QRCode.stories.js +8 -8
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -11
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +206 -230
- package/dist/collection/components/sqm-radio-card/RadioCard.stories.js +2 -2
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +1 -9
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +29 -86
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +3 -11
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +304 -335
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +14 -14
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +369 -410
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +3 -3
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +9 -36
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +3 -14
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +167 -175
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +2 -4
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -3
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +125 -132
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +9 -24
- package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +5 -8
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +30 -30
- package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +8 -30
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-cell.js +28 -23
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +219 -278
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +81 -76
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +24 -20
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +65 -61
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +120 -139
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +260 -300
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +208 -225
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +124 -133
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +229 -253
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -3
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +479 -557
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -26
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +8 -18
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +26 -28
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +96 -174
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +618 -726
- package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +16 -31
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +12 -15
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +11 -11
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +8 -30
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +45 -40
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +97 -103
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +160 -156
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +336 -332
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +96 -105
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +67 -66
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +127 -135
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +173 -197
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +390 -463
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +4 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +206 -219
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -3
- package/dist/collection/components/sqm-route/sqm-route.js +31 -26
- package/dist/collection/components/sqm-router/Router.stories.js +4 -33
- package/dist/collection/components/sqm-router/sqm-router.js +17 -14
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +6 -89
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +259 -255
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +12 -46
- package/dist/collection/components/sqm-share-button/UseShareButton.stories.js +2 -7
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -6
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +509 -521
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +13 -13
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +329 -360
- package/dist/collection/components/sqm-share-code/useShareCode.js +3 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +85 -86
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +17 -20
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +21 -49
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +987 -1192
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -3
- package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +55 -59
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +1 -5
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +162 -185
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +12 -15
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -5
- package/dist/collection/components/sqm-stencilbook/HookStoryAddon.js +1 -2
- package/dist/collection/components/sqm-stencilbook/Matrix.js +4 -13
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -13
- package/dist/collection/components/sqm-tab/sqm-tab.js +27 -25
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +47 -49
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +27 -30
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +10 -17
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +62 -59
- package/dist/collection/components/sqm-tabs/useTabs.js +1 -2
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -7
- package/dist/collection/components/sqm-task-card/SVGs.js +3 -7
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +31 -277
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -17
- package/dist/collection/components/sqm-task-card/progress-bar/ProgressBar.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +2 -10
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +10 -13
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +56 -83
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +780 -860
- package/dist/collection/components/sqm-text/Text.stories.js +2 -4
- package/dist/collection/components/sqm-text/sqm-text.js +61 -57
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -5
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +109 -101
- package/dist/collection/components/sqm-timeline/SVGs.js +3 -9
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +5 -57
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +1 -16
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +178 -166
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +41 -45
- package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +5 -206
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +1 -4
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +129 -148
- package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +4 -7
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +1 -3
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +146 -137
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +82 -84
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +6 -26
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +215 -240
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +12 -22
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +12 -30
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +177 -195
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +33 -41
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +776 -921
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +4 -2
- package/dist/collection/components/tax-and-cash/SVGs.js +1 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -3
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +188 -198
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +34 -83
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1864 -2210
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -7
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +13 -31
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +26 -53
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +565 -660
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -3
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +24 -63
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +699 -816
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +1 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -20
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +130 -147
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +12 -33
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +910 -1035
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +1 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +2 -19
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +4760 -5686
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +89 -176
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1857 -2159
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +27 -27
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +5 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +24 -44
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +120 -157
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +713 -823
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -7
- package/dist/collection/components/views/EmailRegistration.stories.js +60 -60
- package/dist/collection/components/views/copy-text-view.js +6 -17
- package/dist/collection/components/views/email-registration-view.js +14 -28
- package/dist/collection/global/styles.js +8 -4
- package/dist/collection/stories/NewPortal.stories.js +106 -178
- package/dist/collection/tables/GenericTableView.js +19 -27
- package/dist/collection/tables/TableSlots.js +5 -19
- package/dist/collection/utils/DefaultTemplateView.js +6 -24
- package/dist/collection/utils/RequiredPropsError.js +10 -24
- package/dist/collection/utils/TemplateView.js +1 -3
- package/dist/collection/utils/demoMerge.js +10 -0
- package/dist/esm/AsYouType-cc09fa68.js +4746 -0
- package/dist/esm/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
- package/dist/esm/{GenericTableView-471a9386.js → GenericTableView-4f7ac63d.js} +17 -15
- package/dist/esm/{JSS-67b5cff8.js → JSS-e97b34f4.js} +341 -337
- package/dist/esm/{ShadowViewAddon-e1375e0d.js → ShadowViewAddon-0c8005bd.js} +284 -264
- package/dist/esm/{copy-text-view-87259b11.js → copy-text-view-e1c3f2cd.js} +2 -2
- package/dist/esm/{data-04d2da44.js → data-510cc9b7.js} +1 -1
- package/dist/esm/demoMerge-a0320a8e.js +201 -0
- package/dist/esm/{dom-context-hooks.module-50442785.js → dom-context-hooks.module-f88a3e54.js} +129 -72
- package/dist/esm/{email-registration-view-4cdb4129.js → email-registration-view-7a63a912.js} +10 -9
- package/dist/esm/{global-f019575d.js → global-cf0cc6b1.js} +586 -582
- package/dist/esm/{index-38ad4957.js → index-7a8b0c0b.js} +766 -341
- package/dist/esm/{index.module-cc08450c.js → index-b04013cc.js} +2873 -473
- package/dist/esm/{index-ffa26b43.js → index-e6f5153e.js} +47 -29
- package/dist/esm/{jsonpointer-388a7082.js → jsonpointer-c5423376.js} +8 -4
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{luxon-1be92a8e.js → luxon-40b943cb.js} +486 -299
- package/dist/esm/mint-components.js +8 -7
- package/dist/esm/{mockRewardData-9b27d6f1.js → mockRewardData-2cceba7a.js} +5 -3
- package/dist/esm/{parseStates-ed75e224.js → parseStates-0c27f2de.js} +3 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-380499f8.js → re-render-e911a0f7.js} +5 -5
- package/dist/esm/sqm-banking-info-form_10.entry.js +381 -1377
- package/dist/esm/sqm-big-stat_47.entry.js +767 -2840
- package/dist/esm/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -10
- package/dist/esm/sqm-code-verification.entry.js +19 -46
- package/dist/esm/sqm-context-router.entry.js +6 -5
- package/dist/esm/sqm-email-verification_2.entry.js +43 -154
- package/dist/esm/sqm-empty_4.entry.js +21 -58
- package/dist/esm/sqm-form-message_2.entry.js +7 -19
- package/dist/esm/sqm-google-sign-in.entry.js +4 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +9 -8
- package/dist/esm/sqm-header-logo.entry.js +4 -19
- package/dist/esm/sqm-instant-access-registration.entry.js +12 -87
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +6 -8
- package/dist/esm/{sqm-lead-checkbox-field-view-04aa32a7.js → sqm-lead-checkbox-field-view-d055e7bd.js} +12 -11
- package/dist/esm/sqm-lead-checkbox-field.entry.js +12 -28
- package/dist/esm/sqm-lead-input-field-view-b0d62f1c.js +50 -0
- package/dist/esm/sqm-lead-input-field.entry.js +13 -29
- package/dist/esm/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +22 -19
- package/dist/esm/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +12 -23
- package/dist/esm/{sqm-navigation-sidebar-item-view-40837457.js → sqm-navigation-sidebar-item-view-754b2484.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +21 -16
- package/dist/esm/{sqm-navigation-sidebar-view-2b66457a.js → sqm-navigation-sidebar-view-e2094399.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +11 -16
- package/dist/esm/sqm-pagination_3.entry.js +35 -97
- package/dist/esm/{sqm-partner-info-modal-view-e02fb63a.js → sqm-partner-info-modal-view-3b59be37.js} +4 -4
- package/dist/esm/sqm-password-field.entry.js +185 -85
- package/dist/esm/sqm-popup-container.entry.js +12 -12
- package/dist/esm/{sqm-portal-container-view-200c9df8.js → sqm-portal-container-view-fcd53673.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +18 -48
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +73 -401
- package/dist/esm/sqm-portal-logout.entry.js +5 -11
- package/dist/esm/{sqm-portal-profile-view-41894261.js → sqm-portal-profile-view-f27adfba.js} +20 -17
- package/dist/esm/sqm-portal-profile.entry.js +16 -52
- package/dist/esm/sqm-portal-protected-route.entry.js +8 -21
- package/dist/esm/{sqm-portal-registration-form-view-79265df5.js → sqm-portal-registration-form-view-113e1969.js} +26 -21
- package/dist/esm/{sqm-portal-reset-password-view-c7dd1c01.js → sqm-portal-reset-password-view-f9fb6355.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +18 -86
- package/dist/esm/{sqm-portal-verify-email-view-c102aa7c.js → sqm-portal-verify-email-view-ee40e3f2.js} +48 -45
- package/dist/esm/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +3 -3
- package/dist/esm/sqm-qr-code.entry.js +18 -44
- package/dist/esm/sqm-referral-table_11.entry.js +36 -139
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +5 -4
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -7
- package/dist/esm/sqm-rewards-table_9.entry.js +55 -174
- package/dist/esm/sqm-route.entry.js +2 -1
- package/dist/esm/sqm-scroll.entry.js +12 -8
- package/dist/esm/sqm-stencilbook.entry.js +4808 -4180
- package/dist/esm/sqm-tab.entry.js +5 -4
- package/dist/esm/sqm-tabs.entry.js +9 -8
- package/dist/esm/{sqm-text-span-view-72f43dff.js → sqm-text-span-view-ed92b3c6.js} +2 -2
- package/dist/esm/sqm-text-span.entry.js +8 -4
- package/dist/esm/{sqm-user-info-form-view-8a95c5eb.js → sqm-user-info-form-view-c044a385.js} +173 -163
- package/dist/esm/sqm-widget-verification-controller.entry.js +4 -9
- package/dist/esm/subregions-d9f177f6.js +1452 -0
- package/dist/esm/{useChildElements-aa9eb7c9.js → useChildElements-a69f208f.js} +3 -3
- package/dist/esm/{useIndirectTaxForm-8d2e873d.js → useIndirectTaxForm-64a3ca69.js} +32 -28
- package/dist/esm/{useInstantAccessRegistration-7b11eb02.js → useInstantAccessRegistration-8c678a5a.js} +6 -6
- package/dist/esm/{useLeadFormState-b67018f2.js → useLeadFormState-34e05463.js} +7 -7
- package/dist/esm/{usePortalRegistrationForm-91e5786d.js → usePortalRegistrationForm-c6519939.js} +14 -11
- package/dist/esm/{useReferralCodes-a0a271ca.js → useReferralCodes-d0a384e4.js} +9 -9
- package/dist/esm/{useReferralTable-670580ff.js → useReferralTable-214dff06.js} +11 -11
- package/dist/esm/{useRegistrationFormState-95a75c57.js → useRegistrationFormState-72b4786d.js} +3 -3
- package/dist/esm/{useVerificationEmail-99d9f705.js → useVerificationEmail-b2c349a3.js} +12 -10
- package/dist/esm/{utilities-23a276e0.js → utilities-ceab25cd.js} +2 -2
- package/dist/esm-es5/AsYouType-cc09fa68.js +1 -0
- package/dist/esm-es5/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
- package/dist/esm-es5/GenericTableView-4f7ac63d.js +1 -0
- package/dist/esm-es5/JSS-e97b34f4.js +8 -0
- package/dist/esm-es5/ShadowViewAddon-0c8005bd.js +1 -0
- package/dist/esm-es5/copy-text-view-e1c3f2cd.js +1 -0
- package/dist/esm-es5/data-510cc9b7.js +1 -0
- package/dist/esm-es5/demoMerge-a0320a8e.js +1 -0
- package/dist/esm-es5/dom-context-hooks.module-f88a3e54.js +53 -0
- package/dist/esm-es5/email-registration-view-7a63a912.js +1 -0
- package/dist/esm-es5/global-cf0cc6b1.js +271 -0
- package/dist/esm-es5/imageUrl-4775f17b.js +1 -1
- package/dist/esm-es5/index-7a8b0c0b.js +2 -0
- package/dist/esm-es5/index-b04013cc.js +1 -0
- package/dist/esm-es5/index-e6f5153e.js +1 -0
- package/dist/esm-es5/jsonpointer-c5423376.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-40b943cb.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mockRewardData-2cceba7a.js +1 -0
- package/dist/esm-es5/parseStates-0c27f2de.js +1 -0
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-e911a0f7.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +1 -1
- package/dist/esm-es5/sqm-close-button.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_2.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message_2.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field-view-d055e7bd.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-input-field-view-b0d62f1c.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-754b2484.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-e2094399.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-3b59be37.js +1 -0
- 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-container-view-fcd53673.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-profile-view-f27adfba.js +1 -0
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-113e1969.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password-view-f9fb6355.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-ee40e3f2.js +1 -0
- package/dist/esm-es5/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +1 -1
- 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-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span-view-ed92b3c6.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-c044a385.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/subregions-d9f177f6.js +1 -0
- package/dist/esm-es5/useChildElements-a69f208f.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-64a3ca69.js +6 -0
- package/dist/esm-es5/useInstantAccessRegistration-8c678a5a.js +1 -0
- package/dist/esm-es5/useLeadFormState-34e05463.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-c6519939.js +1 -0
- package/dist/esm-es5/useReferralCodes-d0a384e4.js +1 -0
- package/dist/esm-es5/useReferralTable-214dff06.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-72b4786d.js +1 -0
- package/dist/esm-es5/useVerificationEmail-b2c349a3.js +1 -0
- package/dist/esm-es5/utilities-ceab25cd.js +1 -0
- package/dist/esm-es5/utils-334c1e34.js +1 -1
- package/dist/loader/index.d.ts +9 -1
- package/dist/loader/package.json +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +2 -1
- package/dist/mint-components/p-029ee766.system.js +1 -0
- package/dist/mint-components/p-04eaa3bb.system.js +1 -0
- package/dist/mint-components/p-056845fb.js +56 -0
- package/dist/mint-components/p-05715d8c.system.entry.js +1 -0
- package/dist/mint-components/p-0650e0f1.system.js +1 -0
- package/dist/mint-components/p-09a6ab1f.entry.js +1 -0
- package/dist/mint-components/p-0a8c9f35.system.entry.js +1 -0
- package/dist/mint-components/{p-11c127f5.js → p-0b77b3fe.js} +1 -1
- package/dist/mint-components/p-0bc61e27.system.entry.js +1 -0
- package/dist/mint-components/p-0bdacc2d.system.js +1 -0
- package/dist/mint-components/p-0c81f11f.system.entry.js +1 -0
- package/dist/mint-components/p-0c97293e.entry.js +1 -0
- package/dist/mint-components/p-0d69fc17.system.entry.js +1 -0
- package/dist/mint-components/p-0daa339e.entry.js +1 -0
- package/dist/mint-components/p-0f65e4ad.system.js +1 -0
- package/dist/mint-components/p-11028f98.system.js +1 -0
- package/dist/mint-components/p-119b9680.system.js +1 -0
- package/dist/mint-components/{p-ed741b3b.js → p-125c5bec.js} +6 -6
- package/dist/mint-components/p-12ae9c97.entry.js +1 -0
- package/dist/mint-components/p-139825b2.entry.js +1 -0
- package/dist/mint-components/p-14f0af4c.system.entry.js +1 -0
- package/dist/mint-components/{p-1a3a57c0.js → p-159a9368.js} +1 -1
- package/dist/mint-components/{p-78e98761.js → p-15f170d4.js} +4 -4
- package/dist/mint-components/p-162e5426.system.js +1 -0
- package/dist/mint-components/p-1933e4cc.system.entry.js +1 -0
- package/dist/mint-components/p-1aa5cdff.entry.js +1 -0
- package/dist/mint-components/p-1b673705.system.js +1 -0
- package/dist/mint-components/p-1e1543c7.entry.js +1 -0
- package/dist/mint-components/p-201ae45a.js +1 -0
- package/dist/mint-components/p-20b90db3.system.entry.js +1 -0
- package/dist/mint-components/p-2380b28e.system.entry.js +1 -0
- package/dist/mint-components/p-258152c8.system.entry.js +1 -0
- package/dist/mint-components/p-29be0454.system.entry.js +1 -0
- package/dist/mint-components/p-2af001d4.system.js +1 -0
- package/dist/mint-components/{p-88e16945.js → p-2b052eed.js} +1 -1
- package/dist/mint-components/p-2b5c577a.system.js +1 -0
- package/dist/mint-components/p-2ff39583.entry.js +33 -0
- package/dist/mint-components/p-3104b4ba.entry.js +1 -0
- package/dist/mint-components/p-324dd9c9.system.entry.js +1 -0
- package/dist/mint-components/p-32b3c92e.system.entry.js +1 -0
- package/dist/mint-components/{p-c813ec64.js → p-3595dbe3.js} +1 -1
- package/dist/mint-components/p-384d4366.system.entry.js +1 -0
- package/dist/mint-components/{p-a417a4c7.js → p-388fdcdc.js} +1 -1
- package/dist/mint-components/{p-acaf505d.entry.js → p-39e59497.entry.js} +1 -1
- package/dist/mint-components/p-3a8fa8df.system.entry.js +1 -0
- package/dist/mint-components/{p-456ccda6.system.js → p-3aab5e80.system.js} +1 -1
- package/dist/mint-components/p-3b7eac48.js +1 -0
- package/dist/mint-components/p-3f9d4025.js +254 -0
- package/dist/mint-components/p-4639a9ed.entry.js +1 -0
- package/dist/mint-components/p-483c2ce0.system.entry.js +1 -0
- package/dist/mint-components/p-487dac4b.system.js +271 -0
- package/dist/mint-components/p-49ca1533.system.entry.js +1 -0
- package/dist/mint-components/p-49d4188a.system.js +1 -0
- package/dist/mint-components/p-4be3689e.system.entry.js +1 -0
- package/dist/mint-components/p-4d690bf1.system.js +1 -0
- package/dist/mint-components/p-4ea630ba.system.js +1 -0
- package/dist/mint-components/p-5a1be3aa.entry.js +83 -0
- package/dist/mint-components/p-5a2c495f.js +1 -0
- package/dist/mint-components/p-5b043988.system.entry.js +1 -0
- package/dist/mint-components/p-5bacacba.entry.js +13 -0
- package/dist/mint-components/p-5e7e4e54.system.entry.js +1 -0
- package/dist/mint-components/p-6333265f.system.js +1 -1
- package/dist/mint-components/p-643a756b.system.js +53 -0
- package/dist/mint-components/p-647ca265.entry.js +1 -0
- package/dist/mint-components/p-647ffff2.entry.js +1 -0
- package/dist/mint-components/p-64c93b03.system.js +1 -0
- package/dist/mint-components/p-6708043c.entry.js +1 -0
- package/dist/mint-components/p-6a7c9ae4.system.entry.js +1 -0
- package/dist/mint-components/p-6a7cd966.system.js +1 -0
- package/dist/mint-components/p-6b9ff091.system.js +1 -0
- package/dist/mint-components/p-6be0e0a7.system.entry.js +1 -0
- package/dist/mint-components/p-6ccdf33a.js +1 -0
- package/dist/mint-components/p-6cdde5e8.system.js +1 -0
- package/dist/mint-components/p-6cfca206.js +1 -0
- package/dist/mint-components/{p-d276468c.js → p-6e00edce.js} +1 -1
- package/dist/mint-components/p-6eb14db9.system.entry.js +1 -0
- package/dist/mint-components/p-6f3ba1ad.system.js +1 -0
- package/dist/mint-components/p-6f66bb97.system.js +1 -0
- package/dist/mint-components/p-7127e360.system.entry.js +1 -0
- package/dist/mint-components/{p-d0559e66.js → p-71759064.js} +1 -1
- package/dist/mint-components/p-72f11f03.js +1 -0
- package/dist/mint-components/p-732ac03d.js +1 -0
- package/dist/mint-components/p-74f50554.js +1 -0
- package/dist/mint-components/p-7558fe46.js +499 -0
- package/dist/mint-components/{p-c43e1d3b.js → p-75b7496e.js} +1 -1
- package/dist/mint-components/p-76d36b05.js +1 -0
- package/dist/mint-components/p-7a8ed2f3.system.entry.js +1 -0
- package/dist/mint-components/{p-3390f1f2.system.js → p-7d992af1.system.js} +2 -2
- package/dist/mint-components/p-7f71b56b.system.entry.js +1 -0
- package/dist/mint-components/p-81b63e83.system.entry.js +1 -0
- package/dist/mint-components/p-83330731.system.js +1 -0
- package/dist/mint-components/p-834cd992.js +2 -0
- package/dist/mint-components/p-843c9997.system.js +1 -0
- package/dist/mint-components/{p-956f9479.system.js → p-8680e52b.system.js} +1 -1
- package/dist/mint-components/p-8740794e.system.js +2 -0
- package/dist/mint-components/p-885630e6.entry.js +1 -0
- package/dist/mint-components/p-8886a874.system.js +1 -0
- package/dist/mint-components/p-88b65807.system.js +1 -0
- package/dist/mint-components/p-89b410d5.system.entry.js +1 -0
- package/dist/mint-components/p-89eef397.entry.js +1 -0
- package/dist/mint-components/p-8aae5dba.system.entry.js +1 -0
- package/dist/mint-components/p-8ba39302.entry.js +1 -0
- package/dist/mint-components/{p-c2254b88.js → p-8d85f34c.js} +1 -1
- package/dist/mint-components/p-8f67c580.js +1 -0
- package/dist/mint-components/p-8fa1f8e3.entry.js +1 -0
- package/dist/mint-components/p-930cc94f.system.js +1 -0
- package/dist/mint-components/p-94f3e0a2.js +1 -0
- package/dist/mint-components/p-96e332db.entry.js +17 -0
- package/dist/mint-components/p-9755e82a.system.entry.js +1 -0
- package/dist/mint-components/p-9a7f186b.entry.js +1 -0
- package/dist/mint-components/p-9c2e286c.entry.js +11 -0
- package/dist/mint-components/{p-e30abc44.js → p-9cabd2d1.js} +1 -1
- package/dist/mint-components/p-9d06abb3.entry.js +13 -0
- package/dist/mint-components/p-9d1659c4.entry.js +308 -0
- package/dist/mint-components/p-9d6ef5ca.entry.js +11 -0
- package/dist/mint-components/p-a0e6ccbc.system.js +1 -0
- package/dist/mint-components/p-a35191ca.system.js +1 -0
- package/dist/mint-components/p-a3d1c665.system.entry.js +1 -0
- package/dist/mint-components/p-a43a9fa9.system.js +1 -1
- package/dist/mint-components/{p-04da3964.system.js → p-a6c96b8a.system.js} +1 -1
- package/dist/mint-components/p-a75748c4.js +13 -0
- package/dist/mint-components/{p-f9fcc772.js → p-a7a74002.js} +1 -1
- package/dist/mint-components/{p-3484f1c1.js → p-a8e2f45b.js} +1 -1
- package/dist/mint-components/p-a976d930.system.entry.js +1 -0
- package/dist/mint-components/p-aadbe44d.js +1 -0
- package/dist/mint-components/p-aaf15612.entry.js +1 -0
- package/dist/mint-components/p-ab1e96ea.system.js +1 -0
- package/dist/mint-components/p-abd9e52b.system.entry.js +1 -0
- package/dist/mint-components/{p-19aebd7d.js → p-ac32d96a.js} +1 -1
- package/dist/mint-components/{p-381af581.js → p-acd3e9e3.js} +1 -1
- package/dist/mint-components/{p-9a69f781.system.js → p-ae5f7df6.system.js} +1 -1
- package/dist/mint-components/p-af9d3491.js +1 -0
- package/dist/mint-components/p-b1f880ee.entry.js +1 -0
- package/dist/mint-components/p-b492fd4b.system.entry.js +1 -0
- package/dist/mint-components/p-b652d3b3.js +1 -0
- package/dist/mint-components/p-b6f5ab75.system.entry.js +1 -0
- package/dist/mint-components/p-b907384d.entry.js +1 -0
- package/dist/mint-components/p-bbb494a8.system.js +1 -0
- package/dist/mint-components/p-bd1a14ba.js +1 -0
- package/dist/mint-components/p-bd66c171.js +1 -0
- package/dist/mint-components/p-be38ae67.js +1 -0
- package/dist/mint-components/p-c30dfd5d.entry.js +92 -0
- package/dist/mint-components/p-c380988f.system.js +1 -0
- package/dist/mint-components/{p-104f6ced.entry.js → p-c3a07f51.entry.js} +1 -1
- package/dist/mint-components/p-c50c206e.system.js +1 -0
- package/dist/mint-components/p-c6d2a452.js +1 -0
- package/dist/mint-components/p-c7dd2eaa.system.entry.js +1 -0
- package/dist/mint-components/p-c8f697e4.system.js +1 -0
- package/dist/mint-components/p-c980e369.entry.js +1 -0
- package/dist/mint-components/p-cb714df1.system.js +1 -0
- package/dist/mint-components/p-cdf099fe.js +108 -0
- package/dist/mint-components/p-ce06d498.js +52 -0
- package/dist/mint-components/p-d08ebaa9.js +1 -0
- package/dist/mint-components/p-d8fac546.entry.js +1 -0
- package/dist/mint-components/p-d91a97d2.js +1 -0
- package/dist/mint-components/p-da6cb2c3.system.entry.js +1 -0
- package/dist/mint-components/p-dd7e8c95.system.js +8 -0
- package/dist/mint-components/p-dd82a675.system.entry.js +1 -0
- package/dist/mint-components/p-df1206f0.entry.js +1 -0
- package/dist/mint-components/p-df45273e.js +1 -0
- package/dist/mint-components/p-df531a5d.entry.js +1 -0
- package/dist/mint-components/p-e1c55f04.system.entry.js +1 -0
- package/dist/mint-components/p-e33839b3.system.js +1 -0
- package/dist/mint-components/p-e389aded.entry.js +1 -0
- package/dist/mint-components/p-e73e0fc4.system.js +1 -0
- package/dist/mint-components/p-e7f7b9c6.entry.js +1 -0
- package/dist/mint-components/{p-b47e3740.system.js → p-e9942aae.system.js} +1 -1
- package/dist/mint-components/p-eac100d1.system.js +1 -0
- package/dist/mint-components/p-eb47b174.entry.js +1 -0
- package/dist/mint-components/p-eba82926.js +1 -0
- package/dist/mint-components/p-ec00bb5f.js +1 -0
- package/dist/mint-components/p-edc8d9bc.system.js +1 -0
- package/dist/mint-components/p-f0e1d538.entry.js +147 -0
- package/dist/mint-components/{p-ff75998a.system.entry.js → p-f53c7a87.system.entry.js} +1 -1
- package/dist/mint-components/p-f686c142.system.js +1 -0
- package/dist/mint-components/{p-5b0de730.js → p-fa2edc58.js} +152 -152
- package/dist/mint-components/p-fab41ea8.system.entry.js +1 -0
- package/dist/mint-components/p-fd14377b.entry.js +1 -0
- package/dist/mint-components/p-ff1336b3.entry.js +148 -0
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -1
- package/dist/types/components/sqm-context-router/useContextRouter.d.ts +1 -1
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +2 -2
- package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +3 -3
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +2 -2
- package/dist/types/components/sqm-pagination/usePagination.d.ts +1 -1
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +3 -3
- package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +1 -1
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-portal-footer/PoweredByImg.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +1 -1
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +3 -3
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +2 -2
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +1 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +2 -2
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +5 -5
- package/dist/types/components/sqm-router/useRouter.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
- package/dist/types/components/sqm-stencilbook/Matrix.d.ts +1 -1
- package/dist/types/components/sqm-tab/sqm-tab-view.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/getVerificationStep.d.ts +2 -2
- package/dist/types/components/tax-and-cash/data.d.ts +13 -13
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/mockData.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -5
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +6 -6
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +5 -5
- package/dist/types/components/tax-and-cash/subregions.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +3771 -3
- package/dist/types/global/mixins.d.ts +5 -5
- package/dist/types/stencil-public-runtime.d.ts +275 -193
- package/dist/types/utils/RequiredPropsError.d.ts +1 -1
- package/dist/types/utils/demoMerge.d.ts +8 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/stats.json +120116 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +34 -45
- package/dist/cjs/AsYouType-d15caac8.js +0 -4128
- package/dist/cjs/cjs-1066ec21.js +0 -135
- package/dist/cjs/eventKeys-7af4df4d.js +0 -5
- package/dist/cjs/sqm-lead-input-field-view-cd3f8076.js +0 -51
- package/dist/cjs/subregions-36662566.js +0 -1101
- package/dist/esm/AsYouType-2d56519e.js +0 -4108
- package/dist/esm/cjs-bdfb4486.js +0 -133
- package/dist/esm/eventKeys-f76b6a03.js +0 -3
- package/dist/esm/sqm-lead-input-field-view-919dc0a9.js +0 -49
- package/dist/esm/subregions-16dc47a9.js +0 -1086
- package/dist/esm-es5/AsYouType-2d56519e.js +0 -1
- package/dist/esm-es5/GenericTableView-471a9386.js +0 -1
- package/dist/esm-es5/JSS-67b5cff8.js +0 -8
- package/dist/esm-es5/ShadowViewAddon-e1375e0d.js +0 -1
- package/dist/esm-es5/cjs-bdfb4486.js +0 -1
- package/dist/esm-es5/copy-text-view-87259b11.js +0 -1
- package/dist/esm-es5/data-04d2da44.js +0 -1
- package/dist/esm-es5/dom-context-hooks.module-50442785.js +0 -53
- package/dist/esm-es5/email-registration-view-4cdb4129.js +0 -1
- package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
- package/dist/esm-es5/global-f019575d.js +0 -271
- package/dist/esm-es5/index-38ad4957.js +0 -1
- package/dist/esm-es5/index-ffa26b43.js +0 -1
- package/dist/esm-es5/index.module-cc08450c.js +0 -1
- package/dist/esm-es5/jsonpointer-388a7082.js +0 -1
- package/dist/esm-es5/luxon-1be92a8e.js +0 -1
- package/dist/esm-es5/mockRewardData-9b27d6f1.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/re-render-380499f8.js +0 -1
- package/dist/esm-es5/sqm-lead-checkbox-field-view-04aa32a7.js +0 -1
- package/dist/esm-es5/sqm-lead-input-field-view-919dc0a9.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-40837457.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-2b66457a.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-e02fb63a.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-41894261.js +0 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-79265df5.js +0 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-c7dd1c01.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-c102aa7c.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-72f43dff.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-8a95c5eb.js +0 -1
- package/dist/esm-es5/subregions-16dc47a9.js +0 -1
- package/dist/esm-es5/useChildElements-aa9eb7c9.js +0 -1
- package/dist/esm-es5/useIndirectTaxForm-8d2e873d.js +0 -6
- package/dist/esm-es5/useInstantAccessRegistration-7b11eb02.js +0 -1
- package/dist/esm-es5/useLeadFormState-b67018f2.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-91e5786d.js +0 -1
- package/dist/esm-es5/useReferralCodes-a0a271ca.js +0 -1
- package/dist/esm-es5/useReferralTable-670580ff.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-95a75c57.js +0 -1
- package/dist/esm-es5/useVerificationEmail-99d9f705.js +0 -1
- package/dist/esm-es5/utilities-23a276e0.js +0 -1
- package/dist/mint-components/p-0306ce68.js +0 -1
- package/dist/mint-components/p-03361685.system.entry.js +0 -1
- package/dist/mint-components/p-036b876f.system.js +0 -1
- package/dist/mint-components/p-083180bf.js +0 -1
- package/dist/mint-components/p-08f36275.entry.js +0 -92
- package/dist/mint-components/p-08f82f9e.system.entry.js +0 -1
- package/dist/mint-components/p-092305db.entry.js +0 -1
- package/dist/mint-components/p-0ac8d8f4.system.js +0 -1
- package/dist/mint-components/p-0b1e90fe.system.js +0 -1
- package/dist/mint-components/p-0dca7884.entry.js +0 -148
- package/dist/mint-components/p-0ec9eb9b.entry.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-128610fb.system.js +0 -1
- package/dist/mint-components/p-13d1b10d.entry.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-16bd4751.system.entry.js +0 -1
- package/dist/mint-components/p-1a673057.system.js +0 -8
- package/dist/mint-components/p-1cf59d96.system.js +0 -1
- package/dist/mint-components/p-1ee1dd9c.system.entry.js +0 -1
- package/dist/mint-components/p-1f292473.entry.js +0 -1
- package/dist/mint-components/p-220cd813.system.entry.js +0 -1
- package/dist/mint-components/p-2392aabe.entry.js +0 -1
- package/dist/mint-components/p-263ca1be.system.js +0 -1
- package/dist/mint-components/p-274816ae.entry.js +0 -1
- package/dist/mint-components/p-2786819c.js +0 -1
- package/dist/mint-components/p-28ed2ae9.js +0 -1
- package/dist/mint-components/p-28fa5159.entry.js +0 -1
- package/dist/mint-components/p-290314a6.js +0 -52
- package/dist/mint-components/p-2cc01e0a.system.js +0 -1
- package/dist/mint-components/p-319bf866.system.entry.js +0 -1
- package/dist/mint-components/p-31b7d861.entry.js +0 -1
- package/dist/mint-components/p-31c5f477.entry.js +0 -1
- package/dist/mint-components/p-31cfa118.system.entry.js +0 -1
- package/dist/mint-components/p-3268c98c.system.entry.js +0 -1
- package/dist/mint-components/p-34917ee4.system.js +0 -1
- package/dist/mint-components/p-34bea1be.system.js +0 -1
- package/dist/mint-components/p-3db7a3c0.system.entry.js +0 -1
- package/dist/mint-components/p-429fa431.js +0 -1
- package/dist/mint-components/p-44ce74b6.js +0 -1
- package/dist/mint-components/p-45be99ae.system.js +0 -1
- package/dist/mint-components/p-47dc2362.system.entry.js +0 -1
- package/dist/mint-components/p-48b25874.system.js +0 -1
- package/dist/mint-components/p-4bd679a7.system.js +0 -1
- package/dist/mint-components/p-4ca6cc3c.system.entry.js +0 -1
- package/dist/mint-components/p-51d06654.system.js +0 -1
- package/dist/mint-components/p-5218d9dd.system.entry.js +0 -1
- package/dist/mint-components/p-5264ea68.js +0 -1
- package/dist/mint-components/p-5300edb5.js +0 -1
- package/dist/mint-components/p-556338c3.system.js +0 -1
- package/dist/mint-components/p-573ea3fd.system.entry.js +0 -1
- package/dist/mint-components/p-57c693ef.system.entry.js +0 -1
- package/dist/mint-components/p-59d5f239.system.entry.js +0 -1
- package/dist/mint-components/p-5c3cdefe.entry.js +0 -1
- package/dist/mint-components/p-5cda271c.system.entry.js +0 -1
- package/dist/mint-components/p-5d99dbc9.js +0 -1
- package/dist/mint-components/p-641f968d.system.js +0 -1
- package/dist/mint-components/p-686dd5eb.system.js +0 -1
- package/dist/mint-components/p-6b5528b1.entry.js +0 -33
- package/dist/mint-components/p-6c3a1d86.js +0 -1
- package/dist/mint-components/p-6c8758ac.entry.js +0 -1
- package/dist/mint-components/p-6dffb326.entry.js +0 -13
- package/dist/mint-components/p-6e9738a4.js +0 -1
- package/dist/mint-components/p-6f8dde97.system.js +0 -1
- package/dist/mint-components/p-7010498f.js +0 -1
- package/dist/mint-components/p-7062154c.system.js +0 -1
- package/dist/mint-components/p-717fa601.js +0 -1
- package/dist/mint-components/p-732907b1.system.entry.js +0 -1
- package/dist/mint-components/p-7562cd98.system.js +0 -1
- package/dist/mint-components/p-7ae8fb53.system.js +0 -1
- package/dist/mint-components/p-808f7f22.entry.js +0 -1
- package/dist/mint-components/p-80cee817.system.js +0 -1
- package/dist/mint-components/p-8452837a.system.js +0 -1
- package/dist/mint-components/p-85996c52.system.entry.js +0 -1
- package/dist/mint-components/p-8629d0be.system.entry.js +0 -1
- package/dist/mint-components/p-86c430f8.system.entry.js +0 -1
- package/dist/mint-components/p-8707c7fb.entry.js +0 -1
- package/dist/mint-components/p-8899ff38.system.entry.js +0 -1
- package/dist/mint-components/p-88a5350b.entry.js +0 -11
- package/dist/mint-components/p-8d363802.js +0 -1
- package/dist/mint-components/p-93e4954e.entry.js +0 -308
- package/dist/mint-components/p-952eefec.system.js +0 -1
- package/dist/mint-components/p-95f82a6f.entry.js +0 -9
- package/dist/mint-components/p-9715be5b.entry.js +0 -1
- package/dist/mint-components/p-97b8073f.system.js +0 -1
- package/dist/mint-components/p-99f7e6f1.js +0 -1
- package/dist/mint-components/p-9f517f81.entry.js +0 -1
- package/dist/mint-components/p-9f7d1197.system.entry.js +0 -1
- package/dist/mint-components/p-a04be06d.system.entry.js +0 -1
- package/dist/mint-components/p-a08157c4.js +0 -1
- package/dist/mint-components/p-a495e3a5.entry.js +0 -1
- package/dist/mint-components/p-a52a961e.entry.js +0 -1
- package/dist/mint-components/p-a6920cc9.system.entry.js +0 -1
- package/dist/mint-components/p-a7fc1e02.js +0 -42
- package/dist/mint-components/p-ab8a551f.system.entry.js +0 -1
- package/dist/mint-components/p-ac65d2c1.entry.js +0 -1
- package/dist/mint-components/p-ad9ea625.system.entry.js +0 -1
- package/dist/mint-components/p-b0aa9348.entry.js +0 -1
- package/dist/mint-components/p-b2295bc5.system.js +0 -1
- package/dist/mint-components/p-b56f3e55.js +0 -1
- package/dist/mint-components/p-b61be711.entry.js +0 -1
- package/dist/mint-components/p-b6504987.system.js +0 -53
- package/dist/mint-components/p-b69dbed8.system.js +0 -1
- package/dist/mint-components/p-b6b5fa4f.system.entry.js +0 -1
- package/dist/mint-components/p-bc625793.system.js +0 -1
- package/dist/mint-components/p-bee4af5d.js +0 -1
- package/dist/mint-components/p-c03131dd.js +0 -1
- package/dist/mint-components/p-c09ae087.system.js +0 -1
- package/dist/mint-components/p-c1086930.js +0 -1
- package/dist/mint-components/p-c50e77ad.entry.js +0 -1
- package/dist/mint-components/p-c5698ef9.system.js +0 -1
- package/dist/mint-components/p-ca872769.system.entry.js +0 -1
- package/dist/mint-components/p-ca90ea64.js +0 -499
- package/dist/mint-components/p-cdf5354f.entry.js +0 -1
- package/dist/mint-components/p-cef45012.js +0 -1
- package/dist/mint-components/p-d028db52.system.entry.js +0 -1
- package/dist/mint-components/p-d0318b41.entry.js +0 -13
- package/dist/mint-components/p-d0ce74bd.system.js +0 -1
- package/dist/mint-components/p-d267f4bb.system.js +0 -1
- package/dist/mint-components/p-d26df2da.entry.js +0 -1
- package/dist/mint-components/p-d3b1ab20.system.entry.js +0 -1
- package/dist/mint-components/p-d463fa82.system.js +0 -1
- package/dist/mint-components/p-d46a048d.system.entry.js +0 -1
- package/dist/mint-components/p-d533ff7b.system.js +0 -271
- package/dist/mint-components/p-d6a7f402.entry.js +0 -1
- package/dist/mint-components/p-d9dbbf22.system.entry.js +0 -1
- package/dist/mint-components/p-db30fbd1.js +0 -13
- package/dist/mint-components/p-de8d7e90.entry.js +0 -17
- package/dist/mint-components/p-df28013f.system.entry.js +0 -1
- package/dist/mint-components/p-dffad4a8.entry.js +0 -1
- package/dist/mint-components/p-e006b6ad.entry.js +0 -1
- package/dist/mint-components/p-e0578030.system.js +0 -1
- package/dist/mint-components/p-e31c7242.system.entry.js +0 -1
- package/dist/mint-components/p-e4eac70d.js +0 -108
- package/dist/mint-components/p-e506bf7f.entry.js +0 -1
- package/dist/mint-components/p-e66187b6.system.entry.js +0 -1
- package/dist/mint-components/p-e7cf6632.js +0 -1
- package/dist/mint-components/p-e7d6e1e0.entry.js +0 -11
- package/dist/mint-components/p-e7e129ac.js +0 -1
- package/dist/mint-components/p-eb992f94.js +0 -1
- package/dist/mint-components/p-ec3e44c8.system.js +0 -1
- package/dist/mint-components/p-ec58040a.system.js +0 -1
- package/dist/mint-components/p-eedda43c.system.js +0 -1
- package/dist/mint-components/p-f0b63c48.entry.js +0 -83
- package/dist/mint-components/p-f1584abb.system.entry.js +0 -1
- package/dist/mint-components/p-f381533a.js +0 -1
- package/dist/mint-components/p-f45e076d.system.js +0 -1
- package/dist/mint-components/p-f507b364.system.entry.js +0 -1
- package/dist/mint-components/p-f69a4eb1.system.entry.js +0 -1
- package/dist/mint-components/p-f89c6a57.system.js +0 -1
- package/dist/mint-components/p-f982278b.entry.js +0 -1
- package/dist/mint-components/p-fbdd8c2a.system.entry.js +0 -1
- package/dist/mint-components/p-fdc4f293.system.entry.js +0 -1
- package/dist/mint-components/p-ff1a5481.system.js +0 -1
|
@@ -0,0 +1,1452 @@
|
|
|
1
|
+
import { i as intl } from './global-cf0cc6b1.js';
|
|
2
|
+
import { m as metadata, V as VALID_DIGITS, M as MIN_LENGTH_FOR_NSN, P as PLUS_CHARS, a as VALID_PUNCTUATION, p as parseDigit, b as Metadata, c as MAX_LENGTH_FOR_NSN, d as PhoneNumber, e as matchesEntirely, i as isPossibleNumber, f as extractCountryCallingCode, g as extractNationalNumber, h as getCountryByCallingCode, j as isObject, k as isSupportedCountry } from './AsYouType-cc09fa68.js';
|
|
3
|
+
import { h } from './index-7a8b0c0b.js';
|
|
4
|
+
import { c as createStyleSheet } from './JSS-e97b34f4.js';
|
|
5
|
+
|
|
6
|
+
// Importing from a ".js" file is a workaround for Node.js "ES Modules"
|
|
7
|
+
|
|
8
|
+
function withMetadataArgument(func, _arguments) {
|
|
9
|
+
var args = Array.prototype.slice.call(_arguments);
|
|
10
|
+
args.push(metadata);
|
|
11
|
+
return func.apply(this, args)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// The RFC 3966 format for extensions.
|
|
15
|
+
var RFC3966_EXTN_PREFIX = ';ext=';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Helper method for constructing regular expressions for parsing. Creates
|
|
19
|
+
* an expression that captures up to max_length digits.
|
|
20
|
+
* @return {string} RegEx pattern to capture extension digits.
|
|
21
|
+
*/
|
|
22
|
+
var getExtensionDigitsPattern = function getExtensionDigitsPattern(maxLength) {
|
|
23
|
+
return "([".concat(VALID_DIGITS, "]{1,").concat(maxLength, "})");
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Helper initialiser method to create the regular-expression pattern to match
|
|
28
|
+
* extensions.
|
|
29
|
+
* Copy-pasted from Google's `libphonenumber`:
|
|
30
|
+
* https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766
|
|
31
|
+
* @return {string} RegEx pattern to capture extensions.
|
|
32
|
+
*/
|
|
33
|
+
function createExtensionPattern(purpose) {
|
|
34
|
+
// We cap the maximum length of an extension based on the ambiguity of the way
|
|
35
|
+
// the extension is prefixed. As per ITU, the officially allowed length for
|
|
36
|
+
// extensions is actually 40, but we don't support this since we haven't seen real
|
|
37
|
+
// examples and this introduces many false interpretations as the extension labels
|
|
38
|
+
// are not standardized.
|
|
39
|
+
/** @type {string} */
|
|
40
|
+
var extLimitAfterExplicitLabel = '20';
|
|
41
|
+
/** @type {string} */
|
|
42
|
+
var extLimitAfterLikelyLabel = '15';
|
|
43
|
+
/** @type {string} */
|
|
44
|
+
var extLimitAfterAmbiguousChar = '9';
|
|
45
|
+
/** @type {string} */
|
|
46
|
+
var extLimitWhenNotSure = '6';
|
|
47
|
+
|
|
48
|
+
/** @type {string} */
|
|
49
|
+
var possibleSeparatorsBetweenNumberAndExtLabel = "[ \xA0\\t,]*";
|
|
50
|
+
// Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.
|
|
51
|
+
/** @type {string} */
|
|
52
|
+
var possibleCharsAfterExtLabel = "[:\\.\uFF0E]?[ \xA0\\t,-]*";
|
|
53
|
+
/** @type {string} */
|
|
54
|
+
var optionalExtnSuffix = "#?";
|
|
55
|
+
|
|
56
|
+
// Here the extension is called out in more explicit way, i.e mentioning it obvious
|
|
57
|
+
// patterns like "ext.".
|
|
58
|
+
/** @type {string} */
|
|
59
|
+
var explicitExtLabels = "(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)";
|
|
60
|
+
// One-character symbols that can be used to indicate an extension, and less
|
|
61
|
+
// commonly used or more ambiguous extension labels.
|
|
62
|
+
/** @type {string} */
|
|
63
|
+
var ambiguousExtLabels = "(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)";
|
|
64
|
+
// When extension is not separated clearly.
|
|
65
|
+
/** @type {string} */
|
|
66
|
+
var ambiguousSeparator = "[- ]+";
|
|
67
|
+
// This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching
|
|
68
|
+
// comma as extension label may have it.
|
|
69
|
+
/** @type {string} */
|
|
70
|
+
var possibleSeparatorsNumberExtLabelNoComma = "[ \xA0\\t]*";
|
|
71
|
+
// ",," is commonly used for auto dialling the extension when connected. First
|
|
72
|
+
// comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do
|
|
73
|
+
// not repeat it here. Semi-colon works in Iphone and Android also to pop up a
|
|
74
|
+
// button with the extension number following.
|
|
75
|
+
/** @type {string} */
|
|
76
|
+
var autoDiallingAndExtLabelsFound = "(?:,{2}|;)";
|
|
77
|
+
|
|
78
|
+
/** @type {string} */
|
|
79
|
+
var rfcExtn = RFC3966_EXTN_PREFIX + getExtensionDigitsPattern(extLimitAfterExplicitLabel);
|
|
80
|
+
/** @type {string} */
|
|
81
|
+
var explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterExplicitLabel) + optionalExtnSuffix;
|
|
82
|
+
/** @type {string} */
|
|
83
|
+
var ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;
|
|
84
|
+
/** @type {string} */
|
|
85
|
+
var americanStyleExtnWithSuffix = ambiguousSeparator + getExtensionDigitsPattern(extLimitWhenNotSure) + "#";
|
|
86
|
+
|
|
87
|
+
/** @type {string} */
|
|
88
|
+
var autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterLikelyLabel) + optionalExtnSuffix;
|
|
89
|
+
/** @type {string} */
|
|
90
|
+
var onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma + "(?:,)+" + possibleCharsAfterExtLabel + getExtensionDigitsPattern(extLimitAfterAmbiguousChar) + optionalExtnSuffix;
|
|
91
|
+
|
|
92
|
+
// The first regular expression covers RFC 3966 format, where the extension is added
|
|
93
|
+
// using ";ext=". The second more generic where extension is mentioned with explicit
|
|
94
|
+
// labels like "ext:". In both the above cases we allow more numbers in extension than
|
|
95
|
+
// any other extension labels. The third one captures when single character extension
|
|
96
|
+
// labels or less commonly used labels are used. In such cases we capture fewer
|
|
97
|
+
// extension digits in order to reduce the chance of falsely interpreting two
|
|
98
|
+
// numbers beside each other as a number + extension. The fourth one covers the
|
|
99
|
+
// special case of American numbers where the extension is written with a hash
|
|
100
|
+
// at the end, such as "- 503#". The fifth one is exclusively for extension
|
|
101
|
+
// autodialling formats which are used when dialling and in this case we accept longer
|
|
102
|
+
// extensions. The last one is more liberal on the number of commas that acts as
|
|
103
|
+
// extension labels, so we have a strict cap on the number of digits in such extensions.
|
|
104
|
+
return rfcExtn + "|" + explicitExtn + "|" + ambiguousExtn + "|" + americanStyleExtnWithSuffix + "|" + autoDiallingExtn + "|" + onlyCommasExtn;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Regular expression of viable phone numbers. This is location independent.
|
|
108
|
+
// Checks we have at least three leading digits, and only valid punctuation,
|
|
109
|
+
// alpha characters and digits in the phone number. Does not include extension
|
|
110
|
+
// data. The symbol 'x' is allowed here as valid punctuation since it is often
|
|
111
|
+
// used as a placeholder for carrier codes, for example in Brazilian phone
|
|
112
|
+
// numbers. We also allow multiple '+' characters at the start.
|
|
113
|
+
//
|
|
114
|
+
// Corresponds to the following:
|
|
115
|
+
// [digits]{minLengthNsn}|
|
|
116
|
+
// plus_sign*
|
|
117
|
+
// (([punctuation]|[star])*[digits]){3,}([punctuation]|[star]|[digits]|[alpha])*
|
|
118
|
+
//
|
|
119
|
+
// The first reg-ex is to allow short numbers (two digits long) to be parsed if
|
|
120
|
+
// they are entered as "15" etc, but only if there is no punctuation in them.
|
|
121
|
+
// The second expression restricts the number of digits to three or more, but
|
|
122
|
+
// then allows them to be in international form, and to have alpha-characters
|
|
123
|
+
// and punctuation. We split up the two reg-exes here and combine them when
|
|
124
|
+
// creating the reg-ex VALID_PHONE_NUMBER_PATTERN itself so we can prefix it
|
|
125
|
+
// with ^ and append $ to each branch.
|
|
126
|
+
//
|
|
127
|
+
// "Note VALID_PUNCTUATION starts with a -,
|
|
128
|
+
// so must be the first in the range" (c) Google devs.
|
|
129
|
+
// (wtf did they mean by saying that; probably nothing)
|
|
130
|
+
//
|
|
131
|
+
var MIN_LENGTH_PHONE_NUMBER_PATTERN = '[' + VALID_DIGITS + ']{' + MIN_LENGTH_FOR_NSN + '}';
|
|
132
|
+
//
|
|
133
|
+
// And this is the second reg-exp:
|
|
134
|
+
// (see MIN_LENGTH_PHONE_NUMBER_PATTERN for a full description of this reg-exp)
|
|
135
|
+
//
|
|
136
|
+
var VALID_PHONE_NUMBER = '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){3,}' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*';
|
|
137
|
+
|
|
138
|
+
// This regular expression isn't present in Google's `libphonenumber`
|
|
139
|
+
// and is only used to determine whether the phone number being input
|
|
140
|
+
// is too short for it to even consider it a "valid" number.
|
|
141
|
+
// This is just a way to differentiate between a really invalid phone
|
|
142
|
+
// number like "abcde" and a valid phone number that a user has just
|
|
143
|
+
// started inputting, like "+1" or "1": both these cases would be
|
|
144
|
+
// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this
|
|
145
|
+
// library can provide a more detailed error message — whether it's
|
|
146
|
+
// really "not a number", or is it just a start of a valid phone number.
|
|
147
|
+
var VALID_PHONE_NUMBER_START_REG_EXP = new RegExp('^' + '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){1,2}' + '$', 'i');
|
|
148
|
+
var VALID_PHONE_NUMBER_WITH_EXTENSION = VALID_PHONE_NUMBER +
|
|
149
|
+
// Phone number extensions
|
|
150
|
+
'(?:' + createExtensionPattern() + ')?';
|
|
151
|
+
|
|
152
|
+
// The combined regular expression for valid phone numbers:
|
|
153
|
+
//
|
|
154
|
+
var VALID_PHONE_NUMBER_PATTERN = new RegExp(
|
|
155
|
+
// Either a short two-digit-only phone number
|
|
156
|
+
'^' + MIN_LENGTH_PHONE_NUMBER_PATTERN + '$' + '|' +
|
|
157
|
+
// Or a longer fully parsed phone number (min 3 characters)
|
|
158
|
+
'^' + VALID_PHONE_NUMBER_WITH_EXTENSION + '$', 'i');
|
|
159
|
+
|
|
160
|
+
// Checks to see if the string of characters could possibly be a phone number at
|
|
161
|
+
// all. At the moment, checks to see that the string begins with at least 2
|
|
162
|
+
// digits, ignoring any punctuation commonly found in phone numbers. This method
|
|
163
|
+
// does not require the number to be normalized in advance - but does assume
|
|
164
|
+
// that leading non-number symbols have been removed, such as by the method
|
|
165
|
+
// `extract_possible_number`.
|
|
166
|
+
//
|
|
167
|
+
function isViablePhoneNumber(number) {
|
|
168
|
+
return number.length >= MIN_LENGTH_FOR_NSN && VALID_PHONE_NUMBER_PATTERN.test(number);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// This is just a way to differentiate between a really invalid phone
|
|
172
|
+
// number like "abcde" and a valid phone number that a user has just
|
|
173
|
+
// started inputting, like "+1" or "1": both these cases would be
|
|
174
|
+
// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this
|
|
175
|
+
// library can provide a more detailed error message — whether it's
|
|
176
|
+
// really "not a number", or is it just a start of a valid phone number.
|
|
177
|
+
function isViablePhoneNumberStart(number) {
|
|
178
|
+
return VALID_PHONE_NUMBER_START_REG_EXP.test(number);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$3(o); }
|
|
182
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$3(o.key), o); } }
|
|
183
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
184
|
+
function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : i + ""; }
|
|
185
|
+
function _toPrimitive$3(t, r) { if ("object" != _typeof$3(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$3(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
186
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
187
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
188
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof$3(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
189
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
190
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
191
|
+
function _wrapNativeSuper(t) { var r = "function" == typeof Map ? new Map() : void 0; return _wrapNativeSuper = function _wrapNativeSuper(t) { if (null === t || !_isNativeFunction(t)) return t; if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); if (void 0 !== r) { if (r.has(t)) return r.get(t); r.set(t, Wrapper); } function Wrapper() { return _construct(t, arguments, _getPrototypeOf(this).constructor); } return Wrapper.prototype = Object.create(t.prototype, { constructor: { value: Wrapper, enumerable: !1, writable: !0, configurable: !0 } }), _setPrototypeOf(Wrapper, t); }, _wrapNativeSuper(t); }
|
|
192
|
+
function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
|
|
193
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
194
|
+
function _isNativeFunction(t) { try { return -1 !== Function.toString.call(t).indexOf("[native code]"); } catch (n) { return "function" == typeof t; } }
|
|
195
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
196
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
197
|
+
// https://stackoverflow.com/a/46971044/970769
|
|
198
|
+
// "Breaking changes in Typescript 2.1"
|
|
199
|
+
// "Extending built-ins like Error, Array, and Map may no longer work."
|
|
200
|
+
// "As a recommendation, you can manually adjust the prototype immediately after any super(...) calls."
|
|
201
|
+
// https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
202
|
+
var ParseError = /*#__PURE__*/function (_Error) {
|
|
203
|
+
function ParseError(code) {
|
|
204
|
+
var _this;
|
|
205
|
+
_classCallCheck(this, ParseError);
|
|
206
|
+
_this = _callSuper(this, ParseError, [code]);
|
|
207
|
+
// Set the prototype explicitly.
|
|
208
|
+
// Any subclass of FooError will have to manually set the prototype as well.
|
|
209
|
+
Object.setPrototypeOf(_this, ParseError.prototype);
|
|
210
|
+
_this.name = _this.constructor.name;
|
|
211
|
+
return _this;
|
|
212
|
+
}
|
|
213
|
+
_inherits(ParseError, _Error);
|
|
214
|
+
return _createClass(ParseError);
|
|
215
|
+
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
216
|
+
|
|
217
|
+
// Regexp of all known extension prefixes used by different regions followed by
|
|
218
|
+
// 1 or more valid digits, for use when parsing.
|
|
219
|
+
var EXTN_PATTERN = new RegExp('(?:' + createExtensionPattern() + ')$', 'i');
|
|
220
|
+
|
|
221
|
+
// Strips any extension (as in, the part of the number dialled after the call is
|
|
222
|
+
// connected, usually indicated with extn, ext, x or similar) from the end of
|
|
223
|
+
// the number, and returns it.
|
|
224
|
+
function extractExtension(number) {
|
|
225
|
+
var start = number.search(EXTN_PATTERN);
|
|
226
|
+
if (start < 0) {
|
|
227
|
+
return {};
|
|
228
|
+
}
|
|
229
|
+
// If we find a potential extension, and the number preceding this is a viable
|
|
230
|
+
// number, we assume it is an extension.
|
|
231
|
+
var numberWithoutExtension = number.slice(0, start);
|
|
232
|
+
var matches = number.match(EXTN_PATTERN);
|
|
233
|
+
var i = 1;
|
|
234
|
+
while (i < matches.length) {
|
|
235
|
+
if (matches[i]) {
|
|
236
|
+
return {
|
|
237
|
+
number: numberWithoutExtension,
|
|
238
|
+
ext: matches[i]
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
i++;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
246
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
247
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Parses phone number characters from a string.
|
|
251
|
+
* Drops all punctuation leaving only digits and the leading `+` sign (if any).
|
|
252
|
+
* Also converts wide-ascii and arabic-indic numerals to conventional numerals.
|
|
253
|
+
* E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.
|
|
254
|
+
* @param {string} string
|
|
255
|
+
* @return {string}
|
|
256
|
+
* @example
|
|
257
|
+
* ```js
|
|
258
|
+
* // Outputs '8800555'.
|
|
259
|
+
* parseIncompletePhoneNumber('8 (800) 555')
|
|
260
|
+
* // Outputs '+7800555'.
|
|
261
|
+
* parseIncompletePhoneNumber('+7 800 555')
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
function parseIncompletePhoneNumber(string) {
|
|
265
|
+
var result = '';
|
|
266
|
+
// Using `.split('')` here instead of normal `for ... of`
|
|
267
|
+
// because the importing application doesn't neccessarily include an ES6 polyfill.
|
|
268
|
+
// The `.split('')` approach discards "exotic" UTF-8 characters
|
|
269
|
+
// (the ones consisting of four bytes) but digits
|
|
270
|
+
// (including non-European ones) don't fall into that range
|
|
271
|
+
// so such "exotic" characters would be discarded anyway.
|
|
272
|
+
for (var _iterator = _createForOfIteratorHelperLoose(string.split('')), _step; !(_step = _iterator()).done;) {
|
|
273
|
+
var character = _step.value;
|
|
274
|
+
result += parsePhoneNumberCharacter(character, result) || '';
|
|
275
|
+
}
|
|
276
|
+
return result;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Parses next character while parsing phone number digits (including a `+`)
|
|
281
|
+
* from text: discards everything except `+` and digits, and `+` is only allowed
|
|
282
|
+
* at the start of a phone number.
|
|
283
|
+
* For example, is used in `react-phone-number-input` where it uses
|
|
284
|
+
* [`input-format`](https://gitlab.com/catamphetamine/input-format).
|
|
285
|
+
* @param {string} character - Yet another character from raw input string.
|
|
286
|
+
* @param {string?} prevParsedCharacters - Previous parsed characters.
|
|
287
|
+
* @param {function?} eventListener - An optional "on event" function.
|
|
288
|
+
* @return {string?} The parsed character.
|
|
289
|
+
*/
|
|
290
|
+
function parsePhoneNumberCharacter(character, prevParsedCharacters, eventListener) {
|
|
291
|
+
// Only allow a leading `+`.
|
|
292
|
+
if (character === '+') {
|
|
293
|
+
// If this `+` is not the first parsed character
|
|
294
|
+
// then discard it.
|
|
295
|
+
if (prevParsedCharacters) {
|
|
296
|
+
// `eventListener` argument was added to this `export`ed function on Dec 26th, 2023.
|
|
297
|
+
// Any 3rd-party code that used to `import` and call this function before that
|
|
298
|
+
// won't be passing any `eventListener` argument.
|
|
299
|
+
//
|
|
300
|
+
// The addition of the `eventListener` argument was to fix the slightly-weird behavior
|
|
301
|
+
// of parsing an input string when the user inputs something like `"2+7"
|
|
302
|
+
// https://github.com/catamphetamine/react-phone-number-input/issues/437
|
|
303
|
+
//
|
|
304
|
+
// If the parser encounters an unexpected `+` in a string being parsed
|
|
305
|
+
// then it simply discards that out-of-place `+` and any following characters.
|
|
306
|
+
//
|
|
307
|
+
if (typeof eventListener === 'function') {
|
|
308
|
+
eventListener('end');
|
|
309
|
+
}
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
return '+';
|
|
313
|
+
}
|
|
314
|
+
// Allow digits.
|
|
315
|
+
return parseDigit(character);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// When phone numbers are written in `RFC3966` format — `"tel:+12133734253"` —
|
|
319
|
+
var PLUS_SIGN = '+';
|
|
320
|
+
var RFC3966_VISUAL_SEPARATOR_ = '[\\-\\.\\(\\)]?';
|
|
321
|
+
var RFC3966_PHONE_DIGIT_ = '(' + '[' + VALID_DIGITS + ']' + '|' + RFC3966_VISUAL_SEPARATOR_ + ')';
|
|
322
|
+
var RFC3966_GLOBAL_NUMBER_DIGITS_ = '^' + '\\' + PLUS_SIGN + RFC3966_PHONE_DIGIT_ + '*' + '[' + VALID_DIGITS + ']' + RFC3966_PHONE_DIGIT_ + '*' + '$';
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Regular expression of valid global-number-digits for the phone-context
|
|
326
|
+
* parameter, following the syntax defined in RFC3966.
|
|
327
|
+
*/
|
|
328
|
+
var RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_ = new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_, 'g');
|
|
329
|
+
|
|
330
|
+
// In this port of Google's library, we don't accept alpha characters in phone numbers.
|
|
331
|
+
// const ALPHANUM_ = VALID_ALPHA_ + VALID_DIGITS
|
|
332
|
+
var ALPHANUM_ = VALID_DIGITS;
|
|
333
|
+
var RFC3966_DOMAINLABEL_ = '[' + ALPHANUM_ + ']+((\\-)*[' + ALPHANUM_ + '])*';
|
|
334
|
+
var VALID_ALPHA_ = 'a-zA-Z';
|
|
335
|
+
var RFC3966_TOPLABEL_ = '[' + VALID_ALPHA_ + ']+((\\-)*[' + ALPHANUM_ + '])*';
|
|
336
|
+
var RFC3966_DOMAINNAME_ = '^(' + RFC3966_DOMAINLABEL_ + '\\.)*' + RFC3966_TOPLABEL_ + '\\.?$';
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Regular expression of valid domainname for the phone-context parameter,
|
|
340
|
+
* following the syntax defined in RFC3966.
|
|
341
|
+
*/
|
|
342
|
+
var RFC3966_DOMAINNAME_PATTERN_ = new RegExp(RFC3966_DOMAINNAME_, 'g');
|
|
343
|
+
var RFC3966_PREFIX_ = 'tel:';
|
|
344
|
+
var RFC3966_PHONE_CONTEXT_ = ';phone-context=';
|
|
345
|
+
var RFC3966_ISDN_SUBADDRESS_ = ';isub=';
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Extracts the value of the phone-context parameter of `numberToExtractFrom`,
|
|
349
|
+
* following the syntax defined in RFC3966.
|
|
350
|
+
*
|
|
351
|
+
* @param {string} numberToExtractFrom
|
|
352
|
+
* @return {string|null} the extracted string (possibly empty), or `null` if no phone-context parameter is found.
|
|
353
|
+
*/
|
|
354
|
+
function extractPhoneContext(numberToExtractFrom) {
|
|
355
|
+
var indexOfPhoneContext = numberToExtractFrom.indexOf(RFC3966_PHONE_CONTEXT_);
|
|
356
|
+
// If no phone-context parameter is present
|
|
357
|
+
if (indexOfPhoneContext < 0) {
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
360
|
+
var phoneContextStart = indexOfPhoneContext + RFC3966_PHONE_CONTEXT_.length;
|
|
361
|
+
// If phone-context parameter is empty
|
|
362
|
+
if (phoneContextStart >= numberToExtractFrom.length) {
|
|
363
|
+
return '';
|
|
364
|
+
}
|
|
365
|
+
var phoneContextEnd = numberToExtractFrom.indexOf(';', phoneContextStart);
|
|
366
|
+
// If phone-context is not the last parameter
|
|
367
|
+
if (phoneContextEnd >= 0) {
|
|
368
|
+
return numberToExtractFrom.substring(phoneContextStart, phoneContextEnd);
|
|
369
|
+
} else {
|
|
370
|
+
return numberToExtractFrom.substring(phoneContextStart);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Returns whether the value of phoneContext follows the syntax defined in RFC3966.
|
|
376
|
+
*
|
|
377
|
+
* @param {string|null} phoneContext
|
|
378
|
+
* @return {boolean}
|
|
379
|
+
*/
|
|
380
|
+
function isPhoneContextValid(phoneContext) {
|
|
381
|
+
if (phoneContext === null) {
|
|
382
|
+
return true;
|
|
383
|
+
}
|
|
384
|
+
if (phoneContext.length === 0) {
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Does phone-context value match pattern of global-number-digits or domainname.
|
|
389
|
+
return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* @param {string} numberToParse
|
|
394
|
+
* @param {string} nationalNumber
|
|
395
|
+
* @return {}
|
|
396
|
+
*/
|
|
397
|
+
function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {
|
|
398
|
+
var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;
|
|
399
|
+
var phoneContext = extractPhoneContext(numberToParse);
|
|
400
|
+
if (!isPhoneContextValid(phoneContext)) {
|
|
401
|
+
throw new ParseError('NOT_A_NUMBER');
|
|
402
|
+
}
|
|
403
|
+
var phoneNumberString;
|
|
404
|
+
if (phoneContext === null) {
|
|
405
|
+
// Extract a possible number from the string passed in.
|
|
406
|
+
// (this strips leading characters that could not be the start of a phone number)
|
|
407
|
+
phoneNumberString = extractFormattedPhoneNumber(numberToParse) || '';
|
|
408
|
+
} else {
|
|
409
|
+
phoneNumberString = '';
|
|
410
|
+
|
|
411
|
+
// If the phone context contains a phone number prefix, we need to capture
|
|
412
|
+
// it, whereas domains will be ignored.
|
|
413
|
+
if (phoneContext.charAt(0) === PLUS_SIGN) {
|
|
414
|
+
phoneNumberString += phoneContext;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
// Now append everything between the "tel:" prefix and the phone-context.
|
|
418
|
+
// This should include the national number, an optional extension or
|
|
419
|
+
// isdn-subaddress component. Note we also handle the case when "tel:" is
|
|
420
|
+
// missing, as we have seen in some of the phone number inputs.
|
|
421
|
+
// In that case, we append everything from the beginning.
|
|
422
|
+
var indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_);
|
|
423
|
+
var indexOfNationalNumber;
|
|
424
|
+
// RFC 3966 "tel:" prefix is preset at this stage because
|
|
425
|
+
// `isPhoneContextValid()` requires it to be present.
|
|
426
|
+
/* istanbul ignore else */
|
|
427
|
+
if (indexOfRfc3966Prefix >= 0) {
|
|
428
|
+
indexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length;
|
|
429
|
+
} else {
|
|
430
|
+
indexOfNationalNumber = 0;
|
|
431
|
+
}
|
|
432
|
+
var indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_);
|
|
433
|
+
phoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// Delete the isdn-subaddress and everything after it if it is present.
|
|
437
|
+
// Note extension won't appear at the same time with isdn-subaddress
|
|
438
|
+
// according to paragraph 5.3 of the RFC3966 spec.
|
|
439
|
+
var indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_);
|
|
440
|
+
if (indexOfIsdn > 0) {
|
|
441
|
+
phoneNumberString = phoneNumberString.substring(0, indexOfIsdn);
|
|
442
|
+
}
|
|
443
|
+
// If both phone context and isdn-subaddress are absent but other
|
|
444
|
+
// parameters are present, the parameters are left in nationalNumber.
|
|
445
|
+
// This is because we are concerned about deleting content from a potential
|
|
446
|
+
// number string when there is no strong evidence that the number is
|
|
447
|
+
// actually written in RFC3966.
|
|
448
|
+
|
|
449
|
+
if (phoneNumberString !== '') {
|
|
450
|
+
return phoneNumberString;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// This is a port of Google Android `libphonenumber`'s
|
|
455
|
+
|
|
456
|
+
// We don't allow input strings for parsing to be longer than 250 chars.
|
|
457
|
+
// This prevents malicious input from consuming CPU.
|
|
458
|
+
var MAX_INPUT_STRING_LENGTH = 250;
|
|
459
|
+
|
|
460
|
+
// This consists of the plus symbol, digits, and arabic-indic digits.
|
|
461
|
+
var PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']');
|
|
462
|
+
|
|
463
|
+
// Regular expression of trailing characters that we want to remove.
|
|
464
|
+
// A trailing `#` is sometimes used when writing phone numbers with extensions in US.
|
|
465
|
+
// Example: "+1 (645) 123 1234-910#" number has extension "910".
|
|
466
|
+
var AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');
|
|
467
|
+
|
|
468
|
+
// Examples:
|
|
469
|
+
//
|
|
470
|
+
// ```js
|
|
471
|
+
// parse('8 (800) 555-35-35', 'RU')
|
|
472
|
+
// parse('8 (800) 555-35-35', 'RU', metadata)
|
|
473
|
+
// parse('8 (800) 555-35-35', { country: { default: 'RU' } })
|
|
474
|
+
// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)
|
|
475
|
+
// parse('+7 800 555 35 35')
|
|
476
|
+
// parse('+7 800 555 35 35', metadata)
|
|
477
|
+
// ```
|
|
478
|
+
//
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Parses a phone number.
|
|
482
|
+
*
|
|
483
|
+
* parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)
|
|
484
|
+
* parse('123456789', { defaultCountry: 'RU' }, metadata)
|
|
485
|
+
* parse('123456789', undefined, metadata)
|
|
486
|
+
*
|
|
487
|
+
* @param {string} input
|
|
488
|
+
* @param {object} [options]
|
|
489
|
+
* @param {object} metadataJson
|
|
490
|
+
* @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).
|
|
491
|
+
*/
|
|
492
|
+
function parse(text, options, metadataJson) {
|
|
493
|
+
// If assigning the `{}` default value is moved to the arguments above,
|
|
494
|
+
// code coverage would decrease for some weird reason.
|
|
495
|
+
options = options || {};
|
|
496
|
+
var metadata = new Metadata(metadataJson);
|
|
497
|
+
|
|
498
|
+
// Validate `defaultCountry`.
|
|
499
|
+
if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {
|
|
500
|
+
if (options.v2) {
|
|
501
|
+
throw new ParseError('INVALID_COUNTRY');
|
|
502
|
+
}
|
|
503
|
+
throw new Error("Unknown country: ".concat(options.defaultCountry));
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// Parse the phone number.
|
|
507
|
+
var _parseInput = parseInput(text, options.v2, options.extract),
|
|
508
|
+
formattedPhoneNumber = _parseInput.number,
|
|
509
|
+
ext = _parseInput.ext,
|
|
510
|
+
error = _parseInput.error;
|
|
511
|
+
|
|
512
|
+
// If the phone number is not viable then return nothing.
|
|
513
|
+
if (!formattedPhoneNumber) {
|
|
514
|
+
if (options.v2) {
|
|
515
|
+
if (error === 'TOO_SHORT') {
|
|
516
|
+
throw new ParseError('TOO_SHORT');
|
|
517
|
+
}
|
|
518
|
+
throw new ParseError('NOT_A_NUMBER');
|
|
519
|
+
}
|
|
520
|
+
return {};
|
|
521
|
+
}
|
|
522
|
+
var _parsePhoneNumber = parsePhoneNumber$3(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode,
|
|
523
|
+
// If `country` is returned, its numbering plan will also be selected in `metadata`.
|
|
524
|
+
// Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`.
|
|
525
|
+
// Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.
|
|
526
|
+
metadata),
|
|
527
|
+
country = _parsePhoneNumber.country,
|
|
528
|
+
nationalNumber = _parsePhoneNumber.nationalNumber,
|
|
529
|
+
countryCallingCode = _parsePhoneNumber.countryCallingCode,
|
|
530
|
+
countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,
|
|
531
|
+
carrierCode = _parsePhoneNumber.carrierCode;
|
|
532
|
+
if (!metadata.hasSelectedNumberingPlan()) {
|
|
533
|
+
if (options.v2) {
|
|
534
|
+
throw new ParseError('INVALID_COUNTRY');
|
|
535
|
+
}
|
|
536
|
+
return {};
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// Validate national (significant) number length.
|
|
540
|
+
if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {
|
|
541
|
+
// Won't throw here because the regexp already demands length > 1.
|
|
542
|
+
/* istanbul ignore if */
|
|
543
|
+
if (options.v2) {
|
|
544
|
+
throw new ParseError('TOO_SHORT');
|
|
545
|
+
}
|
|
546
|
+
// Google's demo just throws an error in this case.
|
|
547
|
+
return {};
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// Validate national (significant) number length.
|
|
551
|
+
//
|
|
552
|
+
// A sidenote:
|
|
553
|
+
//
|
|
554
|
+
// They say that sometimes national (significant) numbers
|
|
555
|
+
// can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).
|
|
556
|
+
// https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36
|
|
557
|
+
// Such numbers will just be discarded.
|
|
558
|
+
//
|
|
559
|
+
if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {
|
|
560
|
+
if (options.v2) {
|
|
561
|
+
throw new ParseError('TOO_LONG');
|
|
562
|
+
}
|
|
563
|
+
// Google's demo just throws an error in this case.
|
|
564
|
+
return {};
|
|
565
|
+
}
|
|
566
|
+
if (options.v2) {
|
|
567
|
+
var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);
|
|
568
|
+
if (country) {
|
|
569
|
+
phoneNumber.country = country;
|
|
570
|
+
}
|
|
571
|
+
if (carrierCode) {
|
|
572
|
+
phoneNumber.carrierCode = carrierCode;
|
|
573
|
+
}
|
|
574
|
+
if (ext) {
|
|
575
|
+
phoneNumber.ext = ext;
|
|
576
|
+
}
|
|
577
|
+
phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;
|
|
578
|
+
return phoneNumber;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// Check if national phone number pattern matches the number.
|
|
582
|
+
// National number pattern is different for each country,
|
|
583
|
+
// even for those ones which are part of the "NANPA" group.
|
|
584
|
+
var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;
|
|
585
|
+
if (!options.extended) {
|
|
586
|
+
return valid ? result(country, nationalNumber, ext) : {};
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// isInternational: countryCallingCode !== undefined
|
|
590
|
+
|
|
591
|
+
return {
|
|
592
|
+
country: country,
|
|
593
|
+
countryCallingCode: countryCallingCode,
|
|
594
|
+
carrierCode: carrierCode,
|
|
595
|
+
valid: valid,
|
|
596
|
+
possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, metadata) ? true : false,
|
|
597
|
+
phone: nationalNumber,
|
|
598
|
+
ext: ext
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Extracts a formatted phone number from text.
|
|
604
|
+
* Doesn't guarantee that the extracted phone number
|
|
605
|
+
* is a valid phone number (for example, doesn't validate its length).
|
|
606
|
+
* @param {string} text
|
|
607
|
+
* @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.
|
|
608
|
+
* @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.
|
|
609
|
+
* @return {string}
|
|
610
|
+
* @example
|
|
611
|
+
* // Returns "(213) 373-4253".
|
|
612
|
+
* extractFormattedPhoneNumber("Call (213) 373-4253 for assistance.")
|
|
613
|
+
*/
|
|
614
|
+
function _extractFormattedPhoneNumber(text, extract, throwOnError) {
|
|
615
|
+
if (!text) {
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
if (text.length > MAX_INPUT_STRING_LENGTH) {
|
|
619
|
+
if (throwOnError) {
|
|
620
|
+
throw new ParseError('TOO_LONG');
|
|
621
|
+
}
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
if (extract === false) {
|
|
625
|
+
return text;
|
|
626
|
+
}
|
|
627
|
+
// Attempt to extract a possible number from the string passed in
|
|
628
|
+
var startsAt = text.search(PHONE_NUMBER_START_PATTERN);
|
|
629
|
+
if (startsAt < 0) {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
return text
|
|
633
|
+
// Trim everything to the left of the phone number
|
|
634
|
+
.slice(startsAt)
|
|
635
|
+
// Remove trailing non-numerical characters
|
|
636
|
+
.replace(AFTER_PHONE_NUMBER_END_PATTERN, '');
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* @param {string} text - Input.
|
|
641
|
+
* @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.
|
|
642
|
+
* @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.
|
|
643
|
+
* @return {object} `{ ?number, ?ext }`.
|
|
644
|
+
*/
|
|
645
|
+
function parseInput(text, v2, extract) {
|
|
646
|
+
// // Parse RFC 3966 phone number URI.
|
|
647
|
+
// if (text && text.indexOf('tel:') === 0) {
|
|
648
|
+
// return parseRFC3966(text)
|
|
649
|
+
// }
|
|
650
|
+
// let number = extractFormattedPhoneNumber(text, extract, v2)
|
|
651
|
+
var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {
|
|
652
|
+
extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {
|
|
653
|
+
return _extractFormattedPhoneNumber(text, extract, v2);
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
// If the phone number is not viable, then abort.
|
|
657
|
+
if (!number) {
|
|
658
|
+
return {};
|
|
659
|
+
}
|
|
660
|
+
if (!isViablePhoneNumber(number)) {
|
|
661
|
+
if (isViablePhoneNumberStart(number)) {
|
|
662
|
+
return {
|
|
663
|
+
error: 'TOO_SHORT'
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
return {};
|
|
667
|
+
}
|
|
668
|
+
// Attempt to parse extension first, since it doesn't require region-specific
|
|
669
|
+
// data and we want to have the non-normalised number here.
|
|
670
|
+
var withExtensionStripped = extractExtension(number);
|
|
671
|
+
if (withExtensionStripped.ext) {
|
|
672
|
+
return withExtensionStripped;
|
|
673
|
+
}
|
|
674
|
+
return {
|
|
675
|
+
number: number
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Creates `parse()` result object.
|
|
681
|
+
*/
|
|
682
|
+
function result(country, nationalNumber, ext) {
|
|
683
|
+
var result = {
|
|
684
|
+
country: country,
|
|
685
|
+
phone: nationalNumber
|
|
686
|
+
};
|
|
687
|
+
if (ext) {
|
|
688
|
+
result.ext = ext;
|
|
689
|
+
}
|
|
690
|
+
return result;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Parses a viable phone number.
|
|
695
|
+
* @param {string} formattedPhoneNumber — Example: "(213) 373-4253".
|
|
696
|
+
* @param {string} [defaultCountry]
|
|
697
|
+
* @param {string} [defaultCallingCode]
|
|
698
|
+
* @param {Metadata} metadata — Metadata instance with no pre-selected numbering plan. If `country` is returned, its numbering plan will also be selected in `metadata`. Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`. Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.
|
|
699
|
+
* @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.
|
|
700
|
+
*/
|
|
701
|
+
function parsePhoneNumber$3(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {
|
|
702
|
+
// Attempt to extract a calling code from a phone number.
|
|
703
|
+
// * If the phone number is found to be "international":
|
|
704
|
+
// * It will attempt to identify the calling code part of it and whether that part is complete and valid.
|
|
705
|
+
// * If the calling code part is complete and valid, it will return two properties:
|
|
706
|
+
// that calling code part (without `+`) and the rest of the digits.
|
|
707
|
+
// * Otherwise, i.e. if the calling code part is incomplete or invalid,
|
|
708
|
+
// it will return an empty object.
|
|
709
|
+
// * Otherwise, i.e. if the phone number is national, there's no callind code to extract
|
|
710
|
+
// so it will just return the originally-passed `number` string as the only property.
|
|
711
|
+
var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), undefined,
|
|
712
|
+
// `defaultCountry` and `defaultCallingCode` are only used to detect
|
|
713
|
+
// if it's an "international" phone number or not. They won't be used
|
|
714
|
+
// to derive the resulting `countryCallingCode` from them, or anything like that.
|
|
715
|
+
defaultCountry, defaultCallingCode, metadata.metadata),
|
|
716
|
+
countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,
|
|
717
|
+
countryCallingCode = _extractCountryCallin.countryCallingCode,
|
|
718
|
+
number = _extractCountryCallin.number;
|
|
719
|
+
|
|
720
|
+
// The exact country of the phone number
|
|
721
|
+
var country;
|
|
722
|
+
|
|
723
|
+
// If `formattedPhoneNumber` is passed in "international" format,
|
|
724
|
+
// choose a country by `countryCallingCode`.
|
|
725
|
+
if (countryCallingCode) {
|
|
726
|
+
metadata.selectNumberingPlan(countryCallingCode);
|
|
727
|
+
}
|
|
728
|
+
// Else, if `formattedPhoneNumber` is passed in "national" format,
|
|
729
|
+
// then `number` is defined and `countryCallingCode` is `undefined`.
|
|
730
|
+
else if (number && (defaultCountry || defaultCallingCode)) {
|
|
731
|
+
if (defaultCountry) {
|
|
732
|
+
country = defaultCountry;
|
|
733
|
+
metadata.selectNumberingPlan(defaultCountry);
|
|
734
|
+
countryCallingCode = metadata.numberingPlan.callingCode();
|
|
735
|
+
} else {
|
|
736
|
+
metadata.selectNumberingPlan(defaultCallingCode);
|
|
737
|
+
countryCallingCode = defaultCallingCode;
|
|
738
|
+
}
|
|
739
|
+
} else return {};
|
|
740
|
+
|
|
741
|
+
// At this point, `country` could be `undefined` but `countryCallingCode` is always defined.
|
|
742
|
+
//
|
|
743
|
+
// Also, if `country` is defined, its numbering plan is selected in `metadata`.
|
|
744
|
+
// Otherwise, the numering plan for the `countryCallingCode` is selected in `metadata`.
|
|
745
|
+
|
|
746
|
+
if (!number) {
|
|
747
|
+
return {
|
|
748
|
+
countryCallingCodeSource: countryCallingCodeSource,
|
|
749
|
+
countryCallingCode: countryCallingCode
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), undefined, metadata),
|
|
753
|
+
nationalNumber = _extractNationalNumbe.nationalNumber,
|
|
754
|
+
carrierCode = _extractNationalNumbe.carrierCode;
|
|
755
|
+
|
|
756
|
+
// Sometimes there are several countries
|
|
757
|
+
// corresponding to the same country phone code
|
|
758
|
+
// (e.g. NANPA countries all having `1` country phone code).
|
|
759
|
+
// Therefore, to reliably determine the exact country,
|
|
760
|
+
// national (significant) number should have been parsed first.
|
|
761
|
+
//
|
|
762
|
+
// When `metadata.json` is generated, all "ambiguous" country phone codes
|
|
763
|
+
// get their countries populated with the full set of
|
|
764
|
+
// "phone number type" regular expressions.
|
|
765
|
+
//
|
|
766
|
+
var exactCountry = getCountryByCallingCode(countryCallingCode, {
|
|
767
|
+
nationalNumber: nationalNumber,
|
|
768
|
+
metadata: metadata
|
|
769
|
+
});
|
|
770
|
+
if (exactCountry) {
|
|
771
|
+
country = exactCountry;
|
|
772
|
+
/* istanbul ignore if */
|
|
773
|
+
if (exactCountry === '001') ; else {
|
|
774
|
+
metadata.selectNumberingPlan(country);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
return {
|
|
778
|
+
country: country,
|
|
779
|
+
countryCallingCode: countryCallingCode,
|
|
780
|
+
countryCallingCodeSource: countryCallingCodeSource,
|
|
781
|
+
nationalNumber: nationalNumber,
|
|
782
|
+
carrierCode: carrierCode
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
|
|
787
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
788
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
789
|
+
function _defineProperty$2(e, r, t) { return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
790
|
+
function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : i + ""; }
|
|
791
|
+
function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
792
|
+
function parsePhoneNumberWithError(text, options, metadata) {
|
|
793
|
+
return parse(text, _objectSpread$2(_objectSpread$2({}, options), {}, {
|
|
794
|
+
v2: true
|
|
795
|
+
}), metadata);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
799
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
800
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
801
|
+
function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
802
|
+
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
|
|
803
|
+
function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
804
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
805
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
806
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
807
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
808
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
809
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
810
|
+
|
|
811
|
+
// Extracts the following properties from function arguments:
|
|
812
|
+
// * input `text`
|
|
813
|
+
// * `options` object
|
|
814
|
+
// * `metadata` JSON
|
|
815
|
+
function normalizeArguments(args) {
|
|
816
|
+
var _Array$prototype$slic = Array.prototype.slice.call(args),
|
|
817
|
+
_Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4),
|
|
818
|
+
arg_1 = _Array$prototype$slic2[0],
|
|
819
|
+
arg_2 = _Array$prototype$slic2[1],
|
|
820
|
+
arg_3 = _Array$prototype$slic2[2],
|
|
821
|
+
arg_4 = _Array$prototype$slic2[3];
|
|
822
|
+
var text;
|
|
823
|
+
var options;
|
|
824
|
+
var metadata;
|
|
825
|
+
|
|
826
|
+
// If the phone number is passed as a string.
|
|
827
|
+
// `parsePhoneNumber('88005553535', ...)`.
|
|
828
|
+
if (typeof arg_1 === 'string') {
|
|
829
|
+
text = arg_1;
|
|
830
|
+
} else throw new TypeError('A text for parsing must be a string.');
|
|
831
|
+
|
|
832
|
+
// If "default country" argument is being passed then move it to `options`.
|
|
833
|
+
// `parsePhoneNumber('88005553535', 'RU', [options], metadata)`.
|
|
834
|
+
if (!arg_2 || typeof arg_2 === 'string') {
|
|
835
|
+
if (arg_4) {
|
|
836
|
+
options = arg_3;
|
|
837
|
+
metadata = arg_4;
|
|
838
|
+
} else {
|
|
839
|
+
options = undefined;
|
|
840
|
+
metadata = arg_3;
|
|
841
|
+
}
|
|
842
|
+
if (arg_2) {
|
|
843
|
+
options = _objectSpread$1({
|
|
844
|
+
defaultCountry: arg_2
|
|
845
|
+
}, options);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
// `defaultCountry` is not passed.
|
|
849
|
+
// Example: `parsePhoneNumber('+78005553535', [options], metadata)`.
|
|
850
|
+
else if (isObject(arg_2)) {
|
|
851
|
+
if (arg_3) {
|
|
852
|
+
options = arg_2;
|
|
853
|
+
metadata = arg_3;
|
|
854
|
+
} else {
|
|
855
|
+
metadata = arg_2;
|
|
856
|
+
}
|
|
857
|
+
} else throw new Error("Invalid second argument: ".concat(arg_2));
|
|
858
|
+
return {
|
|
859
|
+
text: text,
|
|
860
|
+
options: options,
|
|
861
|
+
metadata: metadata
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
866
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
867
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
868
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
869
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
870
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
871
|
+
function parsePhoneNumber$2(text, options, metadata) {
|
|
872
|
+
// Validate `defaultCountry`.
|
|
873
|
+
if (options && options.defaultCountry && !isSupportedCountry(options.defaultCountry, metadata)) {
|
|
874
|
+
options = _objectSpread(_objectSpread({}, options), {}, {
|
|
875
|
+
defaultCountry: undefined
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
// Parse phone number.
|
|
879
|
+
try {
|
|
880
|
+
return parsePhoneNumberWithError(text, options, metadata);
|
|
881
|
+
} catch (error) {
|
|
882
|
+
/* istanbul ignore else */
|
|
883
|
+
if (error instanceof ParseError) ; else {
|
|
884
|
+
throw error;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
function parsePhoneNumber$1() {
|
|
890
|
+
var _normalizeArguments = normalizeArguments(arguments),
|
|
891
|
+
text = _normalizeArguments.text,
|
|
892
|
+
options = _normalizeArguments.options,
|
|
893
|
+
metadata = _normalizeArguments.metadata;
|
|
894
|
+
return parsePhoneNumber$2(text, options, metadata);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
function parsePhoneNumber() {
|
|
898
|
+
return withMetadataArgument(parsePhoneNumber$1, arguments)
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Normalize user input to the domestic form Impact stores: digits only,
|
|
903
|
+
* with the country dial code and trunk-zero prefix removed.
|
|
904
|
+
*/
|
|
905
|
+
function toDomesticNumber(phoneCountryCode, input) {
|
|
906
|
+
var _a;
|
|
907
|
+
if (!input)
|
|
908
|
+
return "";
|
|
909
|
+
const parsed = parsePhoneNumber(input, phoneCountryCode === null || phoneCountryCode === void 0 ? void 0 : phoneCountryCode.toUpperCase());
|
|
910
|
+
return (_a = parsed === null || parsed === void 0 ? void 0 : parsed.nationalNumber) !== null && _a !== void 0 ? _a : input.replace(/\D/g, "");
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Validates a phone number against both libphonenumber-js's per-country
|
|
914
|
+
* pattern rules AND Impact's I18nPhoneNumber length rules, applied to the
|
|
915
|
+
* sanitized value we'll submit.
|
|
916
|
+
*/
|
|
917
|
+
function isValidI18nPhoneNumber(phoneCountryCode, phoneNumber) {
|
|
918
|
+
if (!phoneCountryCode || !(phoneNumber === null || phoneNumber === void 0 ? void 0 : phoneNumber.trim()))
|
|
919
|
+
return false;
|
|
920
|
+
const country = phoneCountryCode.toUpperCase();
|
|
921
|
+
const parsed = parsePhoneNumber(phoneNumber, country);
|
|
922
|
+
if (!(parsed === null || parsed === void 0 ? void 0 : parsed.isValid()))
|
|
923
|
+
return false;
|
|
924
|
+
return passesImpactBackendLengthCheck(country, toDomesticNumber(country, phoneNumber));
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Mirrors estalea.bucket.phone.I18nPhoneNumber.isValidI18nPhoneNumber()
|
|
928
|
+
* length rules on the already-sanitized (digits-only) submission value.
|
|
929
|
+
*/
|
|
930
|
+
function passesImpactBackendLengthCheck(country, digits) {
|
|
931
|
+
if (!digits)
|
|
932
|
+
return false;
|
|
933
|
+
switch (country) {
|
|
934
|
+
case "US":
|
|
935
|
+
case "CA": {
|
|
936
|
+
const n = digits.startsWith("1") ? digits.slice(1) : digits;
|
|
937
|
+
return n.length === 10;
|
|
938
|
+
}
|
|
939
|
+
case "AU":
|
|
940
|
+
return digits.length === 9 || digits.length === 10;
|
|
941
|
+
case "NZ": {
|
|
942
|
+
let n = digits;
|
|
943
|
+
if (n.length > 9) {
|
|
944
|
+
if (n.startsWith("640"))
|
|
945
|
+
n = n.slice(3);
|
|
946
|
+
else if (n.startsWith("0"))
|
|
947
|
+
n = n.slice(1);
|
|
948
|
+
}
|
|
949
|
+
return n.length >= 8 && n.length <= 10;
|
|
950
|
+
}
|
|
951
|
+
default:
|
|
952
|
+
return stripLeadingZero(digits).length >= 6;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
function stripLeadingZero(digits) {
|
|
956
|
+
return digits.startsWith("0") ? digits.slice(1) : digits;
|
|
957
|
+
}
|
|
958
|
+
function validTaxDocument(requiredType) {
|
|
959
|
+
const validTypes = ["W9", "W8BENE", "W8BEN"];
|
|
960
|
+
if (validTypes.includes(requiredType))
|
|
961
|
+
return true;
|
|
962
|
+
return false;
|
|
963
|
+
}
|
|
964
|
+
const objectIsFull = (obj) => {
|
|
965
|
+
return !Object.keys(obj).find((k) => obj[k] == undefined);
|
|
966
|
+
};
|
|
967
|
+
const taxTypeToName = (taxType) => {
|
|
968
|
+
switch (taxType) {
|
|
969
|
+
case "W9":
|
|
970
|
+
return "W-9";
|
|
971
|
+
case "W8BEN":
|
|
972
|
+
case "W8BENE":
|
|
973
|
+
return "W-8";
|
|
974
|
+
default:
|
|
975
|
+
return "";
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
function validateBillingField(regex, value) {
|
|
979
|
+
const trimmed = value.trim();
|
|
980
|
+
const idx = trimmed.search(regex);
|
|
981
|
+
return idx > -1;
|
|
982
|
+
}
|
|
983
|
+
const formatErrorMessage = (fieldName, errorMessage) => {
|
|
984
|
+
return intl.formatMessage({
|
|
985
|
+
id: fieldName,
|
|
986
|
+
defaultMessage: errorMessage,
|
|
987
|
+
}, {
|
|
988
|
+
fieldName,
|
|
989
|
+
});
|
|
990
|
+
};
|
|
991
|
+
function getCountryObj({ countryCode, locale, }) {
|
|
992
|
+
// @ts-ignore DisplayNames not in Intl type
|
|
993
|
+
const displayName = new Intl.DisplayNames([locale], {
|
|
994
|
+
type: "region",
|
|
995
|
+
}).of(countryCode);
|
|
996
|
+
return {
|
|
997
|
+
countryCode,
|
|
998
|
+
displayName,
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
/** The minimum balance Impact requires before it will issue a payout, e.g. "USD50.00". */
|
|
1002
|
+
function formatPayoutThreshold(publisher) {
|
|
1003
|
+
var _a, _b;
|
|
1004
|
+
const threshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
1005
|
+
if (!threshold)
|
|
1006
|
+
return undefined;
|
|
1007
|
+
return `${(_b = publisher === null || publisher === void 0 ? void 0 : publisher.currency) !== null && _b !== void 0 ? _b : ""}${threshold}`;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* `payoutsAccount.balance` is a formatted string; only `balanceAmount` (minor units) is comparable.
|
|
1011
|
+
* A zero balance gets no notice — there is nothing waiting to pay out.
|
|
1012
|
+
*/
|
|
1013
|
+
function isBalanceUnderPayoutThreshold(publisher) {
|
|
1014
|
+
var _a, _b;
|
|
1015
|
+
const rawThreshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
1016
|
+
const account = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount;
|
|
1017
|
+
if (!rawThreshold || !account)
|
|
1018
|
+
return false;
|
|
1019
|
+
const threshold = Number(rawThreshold);
|
|
1020
|
+
if (!Number.isFinite(threshold) || !Number.isFinite(account.balanceAmount))
|
|
1021
|
+
return false;
|
|
1022
|
+
if (account.balanceAmount <= 0)
|
|
1023
|
+
return false;
|
|
1024
|
+
const currency = account.currencyCode || (publisher === null || publisher === void 0 ? void 0 : publisher.currency);
|
|
1025
|
+
if (!currency)
|
|
1026
|
+
return false;
|
|
1027
|
+
const scale = 10 **
|
|
1028
|
+
((_b = new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
1029
|
+
.resolvedOptions().maximumFractionDigits) !== null && _b !== void 0 ? _b : 2);
|
|
1030
|
+
return account.balanceAmount < Math.round(threshold * scale);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
const style = {
|
|
1034
|
+
Container: {
|
|
1035
|
+
display: "flex",
|
|
1036
|
+
flexDirection: "column",
|
|
1037
|
+
gap: "35px",
|
|
1038
|
+
},
|
|
1039
|
+
HeaderContainer: {
|
|
1040
|
+
display: "flex",
|
|
1041
|
+
flexDirection: "column",
|
|
1042
|
+
gap: "10px",
|
|
1043
|
+
},
|
|
1044
|
+
// Skeleton styles removed as they are now inlined props
|
|
1045
|
+
};
|
|
1046
|
+
const sheet = createStyleSheet(style);
|
|
1047
|
+
const styleString = sheet.toString();
|
|
1048
|
+
const LoadingView = () => {
|
|
1049
|
+
return (h("div", { class: sheet.classes.Container },
|
|
1050
|
+
h("style", { type: "text/css" }, styleString),
|
|
1051
|
+
h("sqm-skeleton", { width: "45%", height: "40px !important" }),
|
|
1052
|
+
h("div", { class: sheet.classes.HeaderContainer },
|
|
1053
|
+
h("sqm-skeleton", { width: "15%" }),
|
|
1054
|
+
h("sqm-skeleton", { width: "25%", height: "30px !important" })),
|
|
1055
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1056
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1057
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1058
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1059
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1060
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1061
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1062
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1063
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1064
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1065
|
+
h("sqm-skeleton", { width: "75%", height: "35px" }),
|
|
1066
|
+
h("sqm-skeleton", { width: "15%" }),
|
|
1067
|
+
h("sqm-skeleton", { width: "80px", height: "30px !important" })));
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
const INDIRECT_TAX_PROVINCES = [
|
|
1071
|
+
{ regionCode: "ALBERTA", taxType: "GST", displayName: "Alberta" },
|
|
1072
|
+
{
|
|
1073
|
+
regionCode: "BRITISHCOLUMBIA",
|
|
1074
|
+
taxType: "HST",
|
|
1075
|
+
displayName: "British Columbia",
|
|
1076
|
+
},
|
|
1077
|
+
{ regionCode: "MANITOBA", taxType: "HST", displayName: "Manitoba" },
|
|
1078
|
+
{
|
|
1079
|
+
regionCode: "NEWBRUNSWICK",
|
|
1080
|
+
taxType: "HST",
|
|
1081
|
+
displayName: "New Brunswick",
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
regionCode: "NEWFOUNDLANDLABRADOR",
|
|
1085
|
+
taxType: "HST",
|
|
1086
|
+
displayName: "Newfoundland",
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
regionCode: "NORTHWESTTERRITORIES",
|
|
1090
|
+
taxType: "GST",
|
|
1091
|
+
displayName: "North West Territories",
|
|
1092
|
+
},
|
|
1093
|
+
{ regionCode: "NOVASCOTIA", taxType: "HST", displayName: "Nova Scotia" },
|
|
1094
|
+
{ regionCode: "NUNAVUT", taxType: "HST", displayName: "Nunavut" },
|
|
1095
|
+
{ regionCode: "ONTARIO", taxType: "HST", displayName: "Ontario" },
|
|
1096
|
+
{
|
|
1097
|
+
regionCode: "PRINCEEDWARDISLAND",
|
|
1098
|
+
taxType: "HST",
|
|
1099
|
+
displayName: "Prince Edward Island",
|
|
1100
|
+
},
|
|
1101
|
+
{ regionCode: "QUEBEC", taxType: "GST", displayName: "Quebec" },
|
|
1102
|
+
{ regionCode: "SASKATCHEWAN", taxType: "HST", displayName: "Saskatchewan" },
|
|
1103
|
+
{ regionCode: "YUKON", taxType: "GST", displayName: "Yukon" },
|
|
1104
|
+
];
|
|
1105
|
+
const INDIRECT_TAX_SPAIN_REGIONS = [
|
|
1106
|
+
{ regionCode: "SPAINPROPER", taxType: "VAT", displayName: "Spain Proper" },
|
|
1107
|
+
{
|
|
1108
|
+
regionCode: "CANARYISLANDS",
|
|
1109
|
+
taxType: "VAT",
|
|
1110
|
+
displayName: "Canary Islands",
|
|
1111
|
+
},
|
|
1112
|
+
];
|
|
1113
|
+
const ADDRESS_REGIONS = {
|
|
1114
|
+
CA: {
|
|
1115
|
+
labelEnum: "PROVINCE",
|
|
1116
|
+
regions: [
|
|
1117
|
+
{
|
|
1118
|
+
label: "Alberta",
|
|
1119
|
+
value: "ALBERTA",
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
label: "British Columbia",
|
|
1123
|
+
value: "BRITISHCOLUMBIA",
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
label: "Manitoba",
|
|
1127
|
+
value: "MANITOBA",
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
label: "New Brunswick",
|
|
1131
|
+
value: "NEWBRUNSWICK",
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
label: "Newfoundland & Labrador",
|
|
1135
|
+
value: "NEWFOUNDLANDANDLABRADOR",
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
label: "Northwest Territories",
|
|
1139
|
+
value: "NORTHWESTTERRITORIES",
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
label: "Nova Scotia",
|
|
1143
|
+
value: "NOVASCOTIA",
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
label: "Nunavut",
|
|
1147
|
+
value: "NUNAVUT",
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
label: "Ontario",
|
|
1151
|
+
value: "ONTARIO",
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
label: "Prince Edward Island",
|
|
1155
|
+
value: "PRINCEEDWARDISLAND",
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
label: "Quebec",
|
|
1159
|
+
value: "QUEBEC",
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
label: "Saskatchewan",
|
|
1163
|
+
value: "SASKATCHEWAN",
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
label: "Yukon",
|
|
1167
|
+
value: "YUKON",
|
|
1168
|
+
},
|
|
1169
|
+
],
|
|
1170
|
+
},
|
|
1171
|
+
ES: {
|
|
1172
|
+
labelEnum: "REGION",
|
|
1173
|
+
regions: [
|
|
1174
|
+
{
|
|
1175
|
+
label: "Canary Islands",
|
|
1176
|
+
value: "CANARYISLANDS",
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
label: "Spain Proper",
|
|
1180
|
+
value: "SPAINPROPER",
|
|
1181
|
+
},
|
|
1182
|
+
],
|
|
1183
|
+
},
|
|
1184
|
+
AU: {
|
|
1185
|
+
labelEnum: "STATE",
|
|
1186
|
+
regions: [
|
|
1187
|
+
{
|
|
1188
|
+
label: "Australian Capital Territory",
|
|
1189
|
+
value: "CAPITALTERRITORY",
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
label: "New South Wales",
|
|
1193
|
+
value: "NEWSOUTHWALES",
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
label: "Northern Territory",
|
|
1197
|
+
value: "NORTHERNTERRITORY",
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
label: "Queensland",
|
|
1201
|
+
value: "QUEENSLAND",
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
label: "South Australia",
|
|
1205
|
+
value: "SOUTHAUSTRALIA",
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
label: "Tasmania",
|
|
1209
|
+
value: "TASMANIA",
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
label: "Victoria",
|
|
1213
|
+
value: "VICTORIA",
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
label: "Western Australia",
|
|
1217
|
+
value: "WESTERNAUSTRALIA",
|
|
1218
|
+
},
|
|
1219
|
+
],
|
|
1220
|
+
},
|
|
1221
|
+
US: {
|
|
1222
|
+
labelEnum: "STATE",
|
|
1223
|
+
regions: [
|
|
1224
|
+
{
|
|
1225
|
+
label: "Alabama",
|
|
1226
|
+
value: "ALABAMA",
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
label: "Alaska",
|
|
1230
|
+
value: "ALASKA",
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
label: "Arizona",
|
|
1234
|
+
value: "ARIZONA",
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
label: "Arkansas",
|
|
1238
|
+
value: "ARKANSAS",
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
label: "California",
|
|
1242
|
+
value: "CALIFORNIA",
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
label: "Colorado",
|
|
1246
|
+
value: "COLORADO",
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
label: "Connecticut",
|
|
1250
|
+
value: "CONNECTICUT",
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
label: "Delaware",
|
|
1254
|
+
value: "DELAWARE",
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
label: "District of Columbia",
|
|
1258
|
+
value: "DISTRICTOFCOLUMBIA",
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
label: "Florida",
|
|
1262
|
+
value: "FLORIDA",
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
label: "Georgia",
|
|
1266
|
+
value: "GEORGIA",
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
label: "Hawaii",
|
|
1270
|
+
value: "HAWAII",
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
label: "Idaho",
|
|
1274
|
+
value: "IDAHO",
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
label: "Illinois",
|
|
1278
|
+
value: "ILLINOIS",
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
label: "Indiana",
|
|
1282
|
+
value: "INDIANA",
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
label: "Iowa",
|
|
1286
|
+
value: "IOWA",
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
label: "Kansas",
|
|
1290
|
+
value: "KANSAS",
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
label: "Kentucky",
|
|
1294
|
+
value: "KENTUCKY",
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
label: "Louisiana",
|
|
1298
|
+
value: "LOUISIANA",
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
label: "Maine",
|
|
1302
|
+
value: "MAINE",
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
label: "Maryland",
|
|
1306
|
+
value: "MARYLAND",
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
label: "Massachusetts",
|
|
1310
|
+
value: "MASSACHUSETTS",
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
label: "Michigan",
|
|
1314
|
+
value: "MICHIGAN",
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
label: "Minnesota",
|
|
1318
|
+
value: "MINNESOTA",
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
label: "Mississippi",
|
|
1322
|
+
value: "MISSISSIPPI",
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
label: "Missouri",
|
|
1326
|
+
value: "MISSOURI",
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
label: "Montana",
|
|
1330
|
+
value: "MONTANA",
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
label: "Nebraska",
|
|
1334
|
+
value: "NEBRASKA",
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
label: "Nevada",
|
|
1338
|
+
value: "NEVADA",
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
label: "New Hampshire",
|
|
1342
|
+
value: "NEWHAMPSHIRE",
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
label: "New Jersey",
|
|
1346
|
+
value: "NEWJERSEY",
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
label: "New Mexico",
|
|
1350
|
+
value: "NEWMEXICO",
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
label: "New York",
|
|
1354
|
+
value: "NEWYORK",
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
label: "North Carolina",
|
|
1358
|
+
value: "NORTHCAROLINA",
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
label: "North Dakota",
|
|
1362
|
+
value: "NORTHDAKOTA",
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
label: "Ohio",
|
|
1366
|
+
value: "OHIO",
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
label: "Oklahoma",
|
|
1370
|
+
value: "OKLAHOMA",
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
label: "Oregon",
|
|
1374
|
+
value: "OREGON",
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
label: "Pennsylvania",
|
|
1378
|
+
value: "PENNSYLVANIA",
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
label: "Rhode Island",
|
|
1382
|
+
value: "RHODEISLAND",
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
label: "South Carolina",
|
|
1386
|
+
value: "SOUTHCAROLINA",
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
label: "South Dakota",
|
|
1390
|
+
value: "SOUTHDAKOTA",
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
label: "Tennessee",
|
|
1394
|
+
value: "TENNESSEE",
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
label: "Texas",
|
|
1398
|
+
value: "TEXAS",
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
label: "Utah",
|
|
1402
|
+
value: "UTAH",
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
label: "Vermont",
|
|
1406
|
+
value: "VERMONT",
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
label: "Virgin Islands",
|
|
1410
|
+
value: "VIRGINISLANDS",
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
label: "Virginia",
|
|
1414
|
+
value: "VIRGINIA",
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
label: "Washington",
|
|
1418
|
+
value: "WASHINGTON",
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
label: "West Virginia",
|
|
1422
|
+
value: "WESTVIRGINIA",
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
label: "Wisconsin",
|
|
1426
|
+
value: "WISCONSIN",
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
label: "Wyoming",
|
|
1430
|
+
value: "WYOMING",
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
label: "Americas Forces",
|
|
1434
|
+
value: "AAMILITARY",
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
label: "Europe, Middle East, Canada, Africa and Canada Forces",
|
|
1438
|
+
value: "AEMILITARY",
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
label: "Pacific Forces",
|
|
1442
|
+
value: "APMILITARY",
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
label: "Other",
|
|
1446
|
+
value: "OTHER",
|
|
1447
|
+
},
|
|
1448
|
+
],
|
|
1449
|
+
},
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
export { ADDRESS_REGIONS as A, INDIRECT_TAX_SPAIN_REGIONS as I, LoadingView as L, INDIRECT_TAX_PROVINCES as a, isBalanceUnderPayoutThreshold as b, formatPayoutThreshold as c, validTaxDocument as d, toDomesticNumber as e, formatErrorMessage as f, getCountryObj as g, isValidI18nPhoneNumber as i, objectIsFull as o, taxTypeToName as t, validateBillingField as v };
|