@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.29
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/README.md +151 -17
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +18 -19
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +240 -251
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-D3UDSyXC.mjs} +35 -21
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +27 -30
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs +2927 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/Input.vue.es-D8Oj8MWv.mjs +250 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs +56 -0
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +70 -113
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs +181 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +422 -311
- package/dist/PaymentIntegrationFormStripe-BYdAkvLt.mjs +757 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs +169 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +13 -8
- package/dist/PlanCustomizationEditor-D29N4HUM.mjs +711 -0
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/PortalNotAvailable-DPE9y37H.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +48 -48
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-DweyzpkL.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +448 -460
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +126 -90
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-B8acFrov.mjs} +385 -477
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +11 -10
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +397 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -19
- package/dist/components/Invoice/Invoice.mjs +2691 -227
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +66 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -40
- package/dist/components/InvoicesList/InvoicesList.mjs +20 -18
- package/dist/components/PaymentHistory/PaymentHistory.mjs +72 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +33 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +49 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +47 -31
- package/dist/components/WalletBalances/WalletBalances.mjs +22 -21
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/customer-BIjC0CWJ.mjs +31 -0
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-DBbERiFr.mjs} +110 -18
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-UJ6X6jXu.mjs} +16 -10
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/formControl-BZQLHnOO.mjs +749 -0
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-e1sKLgxg.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-B7ui2oxO.mjs} +110 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DnJP5URH.mjs} +9 -3
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-Bafh2xoT.mjs} +116 -24
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-q9xfTZF0.mjs} +12 -6
- package/dist/paymentMethods-B_82JGk_.mjs +77 -0
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/paymentOutcome-BXEU5-84.mjs +67 -0
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/{pricing-BIMpDI_p.mjs → pricing-BOhvWWMj.mjs} +3 -3
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-Dxv5FOBd.mjs +233 -0
- package/dist/pricingPlanSchedules-Dv7ZCgNp.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +146 -94
- package/dist/screens/PayInvoice/PayInvoice.mjs +603 -278
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +102 -88
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +371 -347
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-CVyKw23D.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +47 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +11 -1
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +30 -3
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +13 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +5 -1
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/useActionDispatchProvider-3W2vEyIg.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/useIncrementalLoading-CATuO36d.mjs +60 -0
- package/dist/useInvoiceData-DD44HTl7.mjs +21 -0
- package/dist/useInvoicesList-CpB-41MQ.mjs +674 -0
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/usePaymentFormHold-ByUZi3A-.mjs +181 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +8 -8
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/usePortal-CwR_FxTb.mjs +7 -0
- package/dist/useService-BZcbUZHI.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +33 -60
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
- package/dist/Button.vue.es-BzkuglKw.js +0 -1
- package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
- package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
- package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
- package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
- package/dist/Input.vue.es-B60eK8Ds.js +0 -1
- package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
- package/dist/InvoiceSummary.vue.es-CRiFJ5x-.mjs +0 -2596
- package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
- package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
- package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
- package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
- package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
- package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
- package/dist/RadioGroupExtended.vue.es-9YzXzZF0.mjs +0 -163
- package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
- package/dist/Section.vue.es-Bbt0RITt.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs +0 -687
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
- package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
- package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs +0 -5234
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
- package/dist/TooltipParagraph.vue.es-B9A17aG7.mjs +0 -129
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
- package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
- package/dist/accel.svg.es-DFJXdioD.js +0 -1
- package/dist/ach.svg.es-BYP873jU.js +0 -1
- package/dist/adyen-BJfC7N6f.js +0 -1
- package/dist/adyenSdk-BP2XXzeJ.js +0 -1
- package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
- package/dist/amex.svg.es-DKhW4Txt.js +0 -1
- package/dist/api.es-duCDtZD9.js +0 -1
- package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
- package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
- package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
- package/dist/carnet.svg.es-DY04-F2L.js +0 -1
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
- package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
- package/dist/cn.es-C9Yqq4tg.js +0 -1
- package/dist/comparators.es-OGt19O9U.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
- package/dist/components/Invoice/Invoice.cjs +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
- package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
- package/dist/configuration-akTS7Wiw.js +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/countryData.es-C4jHBzfo.js +0 -1
- package/dist/customElements-B58FcXIN.mjs +0 -6633
- package/dist/customElements-DUMRMFQ5.js +0 -1215
- package/dist/customer-B3LPAhaD.mjs +0 -31
- package/dist/customer-CisTPaXj.js +0 -1
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/customer.es-BButyYo0.js +0 -1
- package/dist/dana.svg.es-BDtZLpwd.js +0 -1
- package/dist/dankort.svg.es-CksaipXF.js +0 -1
- package/dist/de-DE-B4TUdnUf.js +0 -1
- package/dist/de-DE-DL74pMLb.js +0 -1
- package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
- package/dist/discover.svg.es-DgqWCMUM.js +0 -1
- package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
- package/dist/elo.svg.es-C-BzjuRP.js +0 -1
- package/dist/en-US-B2XFj-_p.js +0 -1
- package/dist/en-US-DQ5vlv9Z.mjs +0 -339
- package/dist/en-US-J85TQRI8.js +0 -1
- package/dist/en-US-SDhjlY_v.mjs +0 -301
- package/dist/eps.svg.es-B_85bP-W.js +0 -1
- package/dist/error-BHVZJGwD.mjs +0 -13
- package/dist/error-CmduqgVq.js +0 -1
- package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-CKQBLar2.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/it-IT-CqNK62qe.js +0 -1
- package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
- package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
- package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
- package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
- package/dist/momo.svg.es-C5aLYf_R.js +0 -1
- package/dist/nl-NL-CpE4IgwO.js +0 -1
- package/dist/nl-NL-Dx-TNXQ1.js +0 -1
- package/dist/nyce.svg.es-ArAivAZW.js +0 -1
- package/dist/object.es-CdriXMPs.js +0 -1
- package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
- package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
- package/dist/paymentFailure-Cki8c5BX.js +0 -1
- package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
- package/dist/paymentMethods-Cw-i95mM.js +0 -1
- package/dist/payments-2qeQdpiW.mjs +0 -45
- package/dist/payments-CS7_YcOW.js +0 -1
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BOqG21f9.js +0 -1
- package/dist/pricing.es-C07bgEZx.js +0 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
- package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
- package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
- package/dist/pulse.svg.es-Dit33E8S.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
- package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
- package/dist/sessionReference-3h-6FdrC.mjs +0 -43
- package/dist/sessionReference-m_6Rp4X1.js +0 -1
- package/dist/slots.es-T9ZJRGtG.js +0 -1
- package/dist/sorting.es-DCihKqD2.mjs +0 -77
- package/dist/sorting.es-DQsjKr8A.js +0 -1
- package/dist/star.svg.es-D2JncY7b.js +0 -1
- package/dist/subscription-D1yHKUNc.mjs +0 -69
- package/dist/subscription-ZA62t4E9.js +0 -1
- package/dist/subscriptions-DcfcBYAq.mjs +0 -55
- package/dist/subscriptions-DwVsf4Ev.js +0 -1
- package/dist/trustly.svg.es-GJByiFAs.js +0 -1
- package/dist/twint.svg.es-BJ2f48og.js +0 -1
- package/dist/typeGuards.es-DS3vZaJn.js +0 -1
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
- package/dist/types/services/portals.types.d.ts +0 -70
- package/dist/types/types/subscription.d.ts +0 -4
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
- package/dist/url-TNRgVI8A.mjs +0 -21
- package/dist/url-vloPOiXd.js +0 -1
- package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
- package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
- package/dist/useCustomer-BwZKd9i5.js +0 -1
- package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
- package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
- package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
- package/dist/useInvoiceData-CNV_FMV8.js +0 -1
- package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
- package/dist/useInvoicesList-S0IbQcrD.js +0 -1
- package/dist/useLoadInitialData-D9GkzY8t.mjs +0 -15
- package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
- package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
- package/dist/usePaymentMethods-CbwnGONc.mjs +0 -15
- package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
- package/dist/usePayments-DDSjo0rH.js +0 -1
- package/dist/usePortal-C27omjhz.js +0 -1
- package/dist/usePortal-C5AsegpS.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BZJL0VOA.mjs +0 -210
- package/dist/useSubscription-D787IXY-.js +0 -1
- package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
- package/dist/useViewport-BgdA2PPt.mjs +0 -29
- package/dist/useViewport-hPRVDWCm.js +0 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
- package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
- package/dist/visa.svg.es-NY3BHhda.js +0 -1
- package/dist/vpay.svg.es-VViQi42w.js +0 -1
- package/dist/wallets.es-CNIMW5ay.js +0 -1
- package/dist/zip.svg.es-C9S_F31W.js +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const r = "solvimon.sdk.session-reference";
|
|
2
|
+
const s = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ", c = new RegExp(`^SV-[${s}]{8}$`);
|
|
3
|
+
let n;
|
|
4
|
+
function i(e) {
|
|
5
|
+
const t = new Uint8Array(e);
|
|
6
|
+
if (typeof crypto < "u" && typeof crypto.getRandomValues == "function")
|
|
7
|
+
return crypto.getRandomValues(t), t;
|
|
8
|
+
for (let o = 0; o < e; o += 1)
|
|
9
|
+
t[o] = Math.floor(Math.random() * 256);
|
|
10
|
+
return t;
|
|
11
|
+
}
|
|
12
|
+
function f() {
|
|
13
|
+
return `SV-${Array.from(i(8), (t) => s[t & 31]).join("")}`;
|
|
14
|
+
}
|
|
15
|
+
function a() {
|
|
16
|
+
try {
|
|
17
|
+
const e = window.sessionStorage.getItem(r);
|
|
18
|
+
return e && c.test(e) ? e : void 0;
|
|
19
|
+
} catch {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function d(e) {
|
|
24
|
+
try {
|
|
25
|
+
window.sessionStorage.setItem(r, e);
|
|
26
|
+
} catch {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function u() {
|
|
30
|
+
if (n)
|
|
31
|
+
return n;
|
|
32
|
+
const e = a();
|
|
33
|
+
return n = e ?? f(), e || d(n), n;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
u as g,
|
|
37
|
+
i as r
|
|
38
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent as d, computed as f, openBlock as a, createElementBlock as o, Fragment as c, renderList as x, createCommentVNode as g, normalizeClass as m, toDisplayString as y, ref as v, onMounted as _ } from "vue";
|
|
2
|
+
import { e as b } from "./sanitization.es-C6dbuxUJ.mjs";
|
|
3
|
+
import { i as k } from "./useService-BZcbUZHI.mjs";
|
|
4
|
+
const C = (n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = ["innerHTML"], I = /* @__PURE__ */ d({
|
|
5
|
+
__name: "TextWithHighlights",
|
|
6
|
+
props: {
|
|
7
|
+
text: {},
|
|
8
|
+
search: { default: "" },
|
|
9
|
+
highlighClasses: { default: "text-primary-600 font-bold underline" }
|
|
10
|
+
},
|
|
11
|
+
setup(n) {
|
|
12
|
+
const t = n, h = f(() => {
|
|
13
|
+
const e = b(t.text), u = [
|
|
14
|
+
{
|
|
15
|
+
type: "text",
|
|
16
|
+
value: e
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
if (t.search === "")
|
|
20
|
+
return u;
|
|
21
|
+
const p = new RegExp(C(t.search), "gi"), s = [...e.matchAll(p)];
|
|
22
|
+
if (k(s))
|
|
23
|
+
return u;
|
|
24
|
+
const i = [];
|
|
25
|
+
return s.forEach((r, l) => {
|
|
26
|
+
r.index !== void 0 && (l === 0 && (i.push({ type: "text", value: e.substring(0, r.index) }), i.push({
|
|
27
|
+
type: "highlight",
|
|
28
|
+
value: e.substring(r.index, r.index + t.search.length)
|
|
29
|
+
})), l > 0 && l < s.length - 1 && s[l - 1].index && (i.push({
|
|
30
|
+
type: "text",
|
|
31
|
+
value: e.substring(
|
|
32
|
+
s[l - 1].index ?? 0 + t.search.length,
|
|
33
|
+
r.index
|
|
34
|
+
)
|
|
35
|
+
}), i.push({
|
|
36
|
+
type: "highlight",
|
|
37
|
+
value: e.substring(r.index, r.index + t.search.length)
|
|
38
|
+
})), l === s.length - 1 && r.index + t.search.length < e.length && i.push({
|
|
39
|
+
type: "text",
|
|
40
|
+
value: e.substring(
|
|
41
|
+
r.index + t.search.length,
|
|
42
|
+
e.length
|
|
43
|
+
)
|
|
44
|
+
}));
|
|
45
|
+
}), i;
|
|
46
|
+
});
|
|
47
|
+
return (e, u) => (a(), o("span", null, [
|
|
48
|
+
(a(!0), o(c, null, x(h.value, ({ type: p, value: s }, i) => (a(), o(c, { key: i }, [
|
|
49
|
+
p === "text" ? (a(), o("span", {
|
|
50
|
+
key: 0,
|
|
51
|
+
innerHTML: s
|
|
52
|
+
}, null, 8, E)) : g("", !0),
|
|
53
|
+
p === "highlight" ? (a(), o("span", {
|
|
54
|
+
key: 1,
|
|
55
|
+
class: m(n.highlighClasses)
|
|
56
|
+
}, y(s), 3)) : g("", !0)
|
|
57
|
+
], 64))), 128))
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
}), L = () => {
|
|
61
|
+
const n = v(!1);
|
|
62
|
+
return _(() => {
|
|
63
|
+
n.value = !0;
|
|
64
|
+
}), n;
|
|
65
|
+
};
|
|
66
|
+
function T(n, t) {
|
|
67
|
+
const h = /* @__PURE__ */ new Set();
|
|
68
|
+
return n.filter((e) => {
|
|
69
|
+
const u = e[t];
|
|
70
|
+
return h.has(u) ? !1 : (h.add(u), !0);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
I as _,
|
|
75
|
+
T as s,
|
|
76
|
+
L as u
|
|
77
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { g as c } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
2
|
+
function l(e) {
|
|
3
|
+
var n;
|
|
4
|
+
return (n = e == null ? void 0 : e.pricing_plan_schedule_infos) == null ? void 0 : n.at(-1);
|
|
5
|
+
}
|
|
6
|
+
function d(e) {
|
|
7
|
+
var n, t;
|
|
8
|
+
return (t = (n = l(e)) == null ? void 0 : n.pricing_plan_version) == null ? void 0 : t.pricing_plan;
|
|
9
|
+
}
|
|
10
|
+
function D({
|
|
11
|
+
subscription: e,
|
|
12
|
+
fallback: n
|
|
13
|
+
}) {
|
|
14
|
+
var t;
|
|
15
|
+
return (e == null ? void 0 : e.name) || ((t = d(e)) == null ? void 0 : t.name) || n;
|
|
16
|
+
}
|
|
17
|
+
function g(e) {
|
|
18
|
+
return (e == null ? void 0 : e.status) === "ACTIVE" && e.type === "BILLING";
|
|
19
|
+
}
|
|
20
|
+
function _(e, n) {
|
|
21
|
+
return ((e == null ? void 0 : e.inactive_periods) ?? []).filter((t) => !t.end_at && (!n || t.type === n)).reduce((t, r) => !t || new Date(r.start_at) <= new Date(t.start_at) ? r : t, void 0);
|
|
22
|
+
}
|
|
23
|
+
function s(e, n = /* @__PURE__ */ new Date()) {
|
|
24
|
+
if (!g(e)) return;
|
|
25
|
+
const t = _(e);
|
|
26
|
+
if (!((t == null ? void 0 : t.type) !== "CANCEL" || new Date(t.start_at) <= n))
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
function u(e, n) {
|
|
30
|
+
const t = [];
|
|
31
|
+
function r(a) {
|
|
32
|
+
Array.isArray(a) ? a.forEach(r) : a && typeof a == "object" && (a.object_type === "PRICING" && n.includes(a.id) && !t.some(({ id: i }) => i === a.id) && t.push(a), Object.values(a).forEach(r));
|
|
33
|
+
}
|
|
34
|
+
return r(e), t;
|
|
35
|
+
}
|
|
36
|
+
function p(e) {
|
|
37
|
+
return e.pricing_plan_schedule_infos.flatMap(
|
|
38
|
+
(n) => {
|
|
39
|
+
var t;
|
|
40
|
+
return ((t = n.pricing_plan_version.pricing_categories) == null ? void 0 : t.flatMap(
|
|
41
|
+
(r) => r.pricing_groups ?? []
|
|
42
|
+
)) ?? [];
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function m(e) {
|
|
47
|
+
var i;
|
|
48
|
+
const n = {
|
|
49
|
+
trialStartDate: void 0,
|
|
50
|
+
trialEndDate: void 0,
|
|
51
|
+
subscriptionStartDate: void 0,
|
|
52
|
+
subscriptionEndDate: void 0
|
|
53
|
+
};
|
|
54
|
+
if (!((i = e == null ? void 0 : e.pricing_plan_schedule_infos) != null && i.length))
|
|
55
|
+
return n;
|
|
56
|
+
const t = /* @__PURE__ */ new Date(), r = c({
|
|
57
|
+
type: "TRIAL",
|
|
58
|
+
pricingPlanScheduleInfos: e.pricing_plan_schedule_infos
|
|
59
|
+
});
|
|
60
|
+
if (r != null && r.start_at && (n.trialStartDate = t, r.end_at)) {
|
|
61
|
+
const f = new Date(r.end_at).getTime() - new Date(r.start_at).getTime();
|
|
62
|
+
n.trialEndDate = new Date(t.getTime() + f);
|
|
63
|
+
}
|
|
64
|
+
const a = c({
|
|
65
|
+
type: "DEFAULT",
|
|
66
|
+
pricingPlanScheduleInfos: e.pricing_plan_schedule_infos
|
|
67
|
+
});
|
|
68
|
+
if (a != null && a.start_at && (n.trialEndDate ? n.subscriptionStartDate = n.trialEndDate : n.subscriptionStartDate = t, a.end_at)) {
|
|
69
|
+
const f = new Date(a.end_at).getTime() - new Date(a.start_at).getTime();
|
|
70
|
+
n.subscriptionEndDate = new Date(n.subscriptionStartDate.getTime() + f);
|
|
71
|
+
}
|
|
72
|
+
return n;
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
D as a,
|
|
76
|
+
p as b,
|
|
77
|
+
_ as c,
|
|
78
|
+
s as d,
|
|
79
|
+
m as e,
|
|
80
|
+
u as f,
|
|
81
|
+
d as g,
|
|
82
|
+
g as i
|
|
83
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { w as o, a as c } from "./api.es-qgvzNMU-.mjs";
|
|
2
|
+
import { u as N, c as S, b as s, E as u } from "./customElements-BTj4ii4f.mjs";
|
|
3
|
+
const e = ["portal", "pricing-plan-subscriptions"], m = {
|
|
4
|
+
CANCEL: "NEXT_BILLING_PERIOD",
|
|
5
|
+
RENEW: "UNDO"
|
|
6
|
+
};
|
|
7
|
+
function C() {
|
|
8
|
+
const n = N(), r = S();
|
|
9
|
+
async function p({
|
|
10
|
+
id: t,
|
|
11
|
+
expanded: i = !1
|
|
12
|
+
}) {
|
|
13
|
+
return r({
|
|
14
|
+
url: s(n.apiUrls.config, ...e, t),
|
|
15
|
+
query: c({ expandParams: u, expand: i })
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function l({
|
|
19
|
+
customerId: t,
|
|
20
|
+
pagination: i
|
|
21
|
+
}) {
|
|
22
|
+
const a = i ?? {}, g = c({
|
|
23
|
+
initialParams: {
|
|
24
|
+
customer_id: t,
|
|
25
|
+
statuses: ["ACTIVE"],
|
|
26
|
+
type: "BILLING"
|
|
27
|
+
},
|
|
28
|
+
expandParams: u
|
|
29
|
+
});
|
|
30
|
+
return r({
|
|
31
|
+
url: s(n.apiUrls.config, ...e),
|
|
32
|
+
query: o(g, a),
|
|
33
|
+
isCollection: !0
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function f({
|
|
37
|
+
customerId: t,
|
|
38
|
+
page: i,
|
|
39
|
+
pageSize: a
|
|
40
|
+
}) {
|
|
41
|
+
return r({
|
|
42
|
+
url: s(n.apiUrls.config, ...e),
|
|
43
|
+
query: o({ customer_id: t }, { page: i, pageSize: a }),
|
|
44
|
+
isCollection: !0
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
async function E({
|
|
48
|
+
id: t,
|
|
49
|
+
variant: i
|
|
50
|
+
}) {
|
|
51
|
+
return r({
|
|
52
|
+
url: s(n.apiUrls.config, ...e, t, "cancel"),
|
|
53
|
+
data: { type: m[i] },
|
|
54
|
+
options: { method: "POST" }
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
getSubscription: p,
|
|
59
|
+
getActiveSubscriptions: l,
|
|
60
|
+
getSubscriptionsOfEveryStatus: f,
|
|
61
|
+
setSubscriptionCancellation: E
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
C as c
|
|
66
|
+
};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { i as $, d as E } from "./useService-BZcbUZHI.mjs";
|
|
2
|
+
import { c as T } from "./formControl-BZQLHnOO.mjs";
|
|
3
|
+
import { inject as L } from "vue";
|
|
4
|
+
import { I as R } from "./customElements-BTj4ii4f.mjs";
|
|
5
|
+
const g = (e) => $(e) && typeof e != "boolean" ? null : e, n = (e) => typeof e == "object" && e !== null, S = ({
|
|
6
|
+
from: e,
|
|
7
|
+
to: a,
|
|
8
|
+
nullifyEmptyValues: p = !1
|
|
9
|
+
}) => {
|
|
10
|
+
const x = Object.fromEntries(
|
|
11
|
+
Object.entries(a).filter(([f, l]) => !E(l, e[f]))
|
|
12
|
+
);
|
|
13
|
+
return p ? Object.entries(x).reduce(
|
|
14
|
+
(f, [l, r]) => ({ ...f, [l]: g(r) }),
|
|
15
|
+
{}
|
|
16
|
+
) : x;
|
|
17
|
+
}, A = ({
|
|
18
|
+
from: e,
|
|
19
|
+
to: a,
|
|
20
|
+
nullifyEmptyValues: p = !1
|
|
21
|
+
}) => {
|
|
22
|
+
const x = {}, f = (r, o, s) => {
|
|
23
|
+
const i = o[s];
|
|
24
|
+
return r === void 0 ? Array.isArray(i) ? x[s] = [] : n(i) && (x[s] = {}) : Array.isArray(i) ? r[s] = [] : n(i) && (r[s] = {}), [r === void 0 ? x : r, s];
|
|
25
|
+
}, l = (r, o, s) => {
|
|
26
|
+
for (const i of Object.keys(r)) {
|
|
27
|
+
const t = f(s, r, i);
|
|
28
|
+
i in o || (t[0][t[1]] = {
|
|
29
|
+
from: r[i]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
for (const [i, t] of Object.entries(o)) {
|
|
33
|
+
const c = i in r, d = f(s, r, i);
|
|
34
|
+
if (c) {
|
|
35
|
+
const m = r[i];
|
|
36
|
+
E(m, t) ? delete d[0][d[1]] : n(t) && n(m) ? l(m, t, d[0][d[1]]) : d[0][d[1]] = p && typeof t != "boolean" ? g(t) : t;
|
|
37
|
+
} else
|
|
38
|
+
d[0][d[1]] = p ? g(t) : t;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return l(e, a), x;
|
|
42
|
+
}, G = ({
|
|
43
|
+
from: e,
|
|
44
|
+
to: a,
|
|
45
|
+
mode: p = "shallow",
|
|
46
|
+
nullifyEmptyValues: x = !1
|
|
47
|
+
}) => p === "deep" ? A({ from: e, to: a, nullifyEmptyValues: x }) : S({ from: e, to: a, nullifyEmptyValues: x }), I = {
|
|
48
|
+
AT: {
|
|
49
|
+
regex: /^ATU\d{8}$/,
|
|
50
|
+
prefix: "AT",
|
|
51
|
+
example: "ATU12345678"
|
|
52
|
+
},
|
|
53
|
+
BE: {
|
|
54
|
+
regex: /^BE0?\d{9}$/,
|
|
55
|
+
prefix: "BE",
|
|
56
|
+
example: "BE0123456789"
|
|
57
|
+
},
|
|
58
|
+
BG: {
|
|
59
|
+
regex: /^BG\d{9,10}$/,
|
|
60
|
+
prefix: "BG",
|
|
61
|
+
example: "BG123456789"
|
|
62
|
+
},
|
|
63
|
+
HR: {
|
|
64
|
+
regex: /^HR\d{11}$/,
|
|
65
|
+
prefix: "HR",
|
|
66
|
+
example: "HR12345678901"
|
|
67
|
+
},
|
|
68
|
+
CY: {
|
|
69
|
+
regex: /^CY\d{8}[A-Z]$/,
|
|
70
|
+
prefix: "CY",
|
|
71
|
+
example: "CY12345678X"
|
|
72
|
+
},
|
|
73
|
+
CZ: {
|
|
74
|
+
regex: /^CZ\d{8,10}$/,
|
|
75
|
+
prefix: "CZ",
|
|
76
|
+
example: "CZ12345678"
|
|
77
|
+
},
|
|
78
|
+
DE: {
|
|
79
|
+
regex: /^DE\d{9}$/,
|
|
80
|
+
prefix: "DE",
|
|
81
|
+
example: "DE123456789"
|
|
82
|
+
},
|
|
83
|
+
DK: {
|
|
84
|
+
regex: /^DK\d{8}$/,
|
|
85
|
+
prefix: "DK",
|
|
86
|
+
example: "DK12345678"
|
|
87
|
+
},
|
|
88
|
+
EE: {
|
|
89
|
+
regex: /^EE\d{9}$/,
|
|
90
|
+
prefix: "EE",
|
|
91
|
+
example: "EE123456789"
|
|
92
|
+
},
|
|
93
|
+
GR: {
|
|
94
|
+
regex: /^(EL|GR)\d{9}$/,
|
|
95
|
+
prefix: "GR",
|
|
96
|
+
example: "GR123456789"
|
|
97
|
+
},
|
|
98
|
+
ES: {
|
|
99
|
+
regex: /^ES[A-Z0-9]\d{7}[A-Z0-9]$/,
|
|
100
|
+
prefix: "ES",
|
|
101
|
+
example: "ESX1234567X"
|
|
102
|
+
},
|
|
103
|
+
FI: {
|
|
104
|
+
regex: /^FI\d{8}$/,
|
|
105
|
+
prefix: "FI",
|
|
106
|
+
example: "FI12345678"
|
|
107
|
+
},
|
|
108
|
+
FR: {
|
|
109
|
+
regex: /^FR[0-9A-Z]{2}\d{9}$/,
|
|
110
|
+
prefix: "FR",
|
|
111
|
+
example: "FRXX123456789"
|
|
112
|
+
},
|
|
113
|
+
HU: {
|
|
114
|
+
regex: /^HU\d{8}$/,
|
|
115
|
+
prefix: "HU",
|
|
116
|
+
example: "HU12345678"
|
|
117
|
+
},
|
|
118
|
+
IE: {
|
|
119
|
+
regex: /^IE[0-9A-Z]{8,9}$/,
|
|
120
|
+
prefix: "IE",
|
|
121
|
+
example: "IE1234567A"
|
|
122
|
+
},
|
|
123
|
+
IS: {
|
|
124
|
+
regex: /^IS\d{5}$/,
|
|
125
|
+
prefix: "IS",
|
|
126
|
+
example: "IS12345"
|
|
127
|
+
},
|
|
128
|
+
IT: {
|
|
129
|
+
regex: /^IT\d{11}$/,
|
|
130
|
+
prefix: "IT",
|
|
131
|
+
example: "IT12345678901"
|
|
132
|
+
},
|
|
133
|
+
LT: {
|
|
134
|
+
regex: /^LT(\d{9}|\d{12})$/,
|
|
135
|
+
prefix: "LT",
|
|
136
|
+
example: "LT123456789 or LT123456789012"
|
|
137
|
+
},
|
|
138
|
+
LU: {
|
|
139
|
+
regex: /^LU\d{8}$/,
|
|
140
|
+
prefix: "LU",
|
|
141
|
+
example: "LU12345678"
|
|
142
|
+
},
|
|
143
|
+
LV: {
|
|
144
|
+
regex: /^LV\d{11}$/,
|
|
145
|
+
prefix: "LV",
|
|
146
|
+
example: "LV12345678901"
|
|
147
|
+
},
|
|
148
|
+
ME: {
|
|
149
|
+
regex: /^ME\d{9}$/,
|
|
150
|
+
prefix: "ME",
|
|
151
|
+
example: "ME123456789"
|
|
152
|
+
},
|
|
153
|
+
MT: {
|
|
154
|
+
regex: /^MT\d{8}$/,
|
|
155
|
+
prefix: "MT",
|
|
156
|
+
example: "MT12345678"
|
|
157
|
+
},
|
|
158
|
+
NL: {
|
|
159
|
+
regex: /^NL\d{9}B\d{2}$/,
|
|
160
|
+
prefix: "NL",
|
|
161
|
+
example: "NL123456789B01"
|
|
162
|
+
},
|
|
163
|
+
PL: {
|
|
164
|
+
regex: /^PL\d{10}$/,
|
|
165
|
+
prefix: "PL",
|
|
166
|
+
example: "PL1234567890"
|
|
167
|
+
},
|
|
168
|
+
PT: {
|
|
169
|
+
regex: /^PT\d{9}$/,
|
|
170
|
+
prefix: "PT",
|
|
171
|
+
example: "PT123456789"
|
|
172
|
+
},
|
|
173
|
+
RO: {
|
|
174
|
+
regex: /^RO\d{2,10}$/,
|
|
175
|
+
prefix: "RO",
|
|
176
|
+
example: "RO1234567890"
|
|
177
|
+
},
|
|
178
|
+
RU: {
|
|
179
|
+
regex: /^RU(\d{9}|\d{10}|\d{12})$/,
|
|
180
|
+
prefix: "RU",
|
|
181
|
+
example: "RU123456789 or RU1234567890 or RU123456789012"
|
|
182
|
+
},
|
|
183
|
+
SE: {
|
|
184
|
+
regex: /^SE\d{10}01$/,
|
|
185
|
+
prefix: "SE",
|
|
186
|
+
example: "SE123456789001"
|
|
187
|
+
},
|
|
188
|
+
SI: {
|
|
189
|
+
regex: /^SI\d{8}$/,
|
|
190
|
+
prefix: "SI",
|
|
191
|
+
example: "SI12345678"
|
|
192
|
+
},
|
|
193
|
+
SK: {
|
|
194
|
+
regex: /^SK\d{10}$/,
|
|
195
|
+
prefix: "SK",
|
|
196
|
+
example: "SK1234567890"
|
|
197
|
+
},
|
|
198
|
+
CH: {
|
|
199
|
+
regex: /^CHE\d{9}(MWST|TVA|IVA)?$/,
|
|
200
|
+
prefix: "CHE",
|
|
201
|
+
example: "CHE123456789MWST"
|
|
202
|
+
},
|
|
203
|
+
NO: {
|
|
204
|
+
regex: /^NO\d{9}MVA$/,
|
|
205
|
+
prefix: "NO",
|
|
206
|
+
example: "NO123456789MVA"
|
|
207
|
+
},
|
|
208
|
+
GB: {
|
|
209
|
+
regex: /^GB(\d{9}|\d{12}|GD\d{3}|HA\d{3})$/,
|
|
210
|
+
prefix: "GB",
|
|
211
|
+
example: "GB123456789"
|
|
212
|
+
},
|
|
213
|
+
XI: {
|
|
214
|
+
regex: /^XI(\d{9}|\d{12})$/,
|
|
215
|
+
prefix: "XI",
|
|
216
|
+
example: "XI123456789"
|
|
217
|
+
}
|
|
218
|
+
}, M = (e) => !e || typeof e != "string" || e.trim() === "" ? !0 : Object.values(I).some((a) => a.regex.test(e)), U = ({ $model: e }) => {
|
|
219
|
+
if (!e || typeof e != "string" || e.trim() === "")
|
|
220
|
+
return "";
|
|
221
|
+
const a = L(R, null);
|
|
222
|
+
if (!a)
|
|
223
|
+
return "Invalid tax ID";
|
|
224
|
+
const { formatMessage: p } = a, x = Object.values(I).find(
|
|
225
|
+
(f) => e.toUpperCase().startsWith(f.prefix.toUpperCase())
|
|
226
|
+
);
|
|
227
|
+
return x ? p(
|
|
228
|
+
{
|
|
229
|
+
defaultMessage: "Invalid tax ID format. Example: {example}",
|
|
230
|
+
id: "form_validation.tax_id.invalid_format",
|
|
231
|
+
description: "Error message when tax ID format is invalid but prefix matches"
|
|
232
|
+
},
|
|
233
|
+
{ example: x.example }
|
|
234
|
+
) : p({
|
|
235
|
+
defaultMessage: "Invalid tax ID",
|
|
236
|
+
id: "taxId.invalid",
|
|
237
|
+
description: "Error message when tax ID is invalid"
|
|
238
|
+
});
|
|
239
|
+
}, H = T.withMessage(U, M);
|
|
240
|
+
export {
|
|
241
|
+
G as o,
|
|
242
|
+
H as t
|
|
243
|
+
};
|
|
@@ -2,6 +2,8 @@ import { Invoice } from '../../vendor/@solvimon/solvimon-types/index';
|
|
|
2
2
|
export interface InvoiceTableProps {
|
|
3
3
|
invoices: Invoice[];
|
|
4
4
|
isLoading?: boolean;
|
|
5
|
+
/** Set when the invoices, or the next batch of them, failed to load. */
|
|
6
|
+
error?: Error | null;
|
|
5
7
|
hasMoreItems?: boolean;
|
|
6
8
|
configuration: {
|
|
7
9
|
showPayButton: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ErrorObject } from '@vuelidate/core';
|
|
2
|
+
import { CheckoutFormState } from './CheckoutForm.types';
|
|
3
|
+
import { AddressFormat } from './addressFormat';
|
|
4
|
+
export type CheckoutAddressVariant = 'BILLING' | 'SHIPPING';
|
|
5
|
+
export interface CheckoutAddressFieldsProps {
|
|
6
|
+
variant: CheckoutAddressVariant;
|
|
7
|
+
withCountry?: boolean;
|
|
8
|
+
/** Puts the country below the recipient, just above the address lines, rather than first. */
|
|
9
|
+
countryBeforeAddress?: boolean;
|
|
10
|
+
countryLabel?: string;
|
|
11
|
+
format?: AddressFormat;
|
|
12
|
+
getOptionalSuffix: (field: keyof CheckoutFormState) => string;
|
|
13
|
+
errors?: {
|
|
14
|
+
addressLine1?: ErrorObject[];
|
|
15
|
+
postalCode?: ErrorObject[];
|
|
16
|
+
city?: ErrorObject[];
|
|
17
|
+
state?: ErrorObject[];
|
|
18
|
+
country?: ErrorObject[];
|
|
19
|
+
phoneNumber?: ErrorObject[];
|
|
20
|
+
lastName?: ErrorObject[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ConfiguredMeterValue, CountryCode, Pricing } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
import { useCheckoutForm } from './useCheckoutForm';
|
|
3
|
+
import { AddressFormat } from './addressFormat';
|
|
3
4
|
export interface CheckoutFormProps {
|
|
4
5
|
validation: ReturnType<typeof useCheckoutForm>['validation'];
|
|
5
6
|
initialState?: Partial<CheckoutFormState>;
|
|
6
7
|
readOnlyEmail?: string;
|
|
7
8
|
showCustomerInfoOnTop?: boolean;
|
|
8
9
|
isBillingInformationMandatory?: boolean;
|
|
10
|
+
isShippingAddressRequired?: boolean;
|
|
9
11
|
getIsFieldRequired: (field: keyof CheckoutFormState) => boolean;
|
|
12
|
+
shippingAddressFormat?: AddressFormat;
|
|
10
13
|
readOnly?: boolean;
|
|
11
14
|
}
|
|
12
15
|
export interface CheckoutFormEmits {
|
|
@@ -26,6 +29,18 @@ export interface CheckoutFormState {
|
|
|
26
29
|
city: string | undefined;
|
|
27
30
|
state: string | undefined;
|
|
28
31
|
companyVatNumber: string | undefined;
|
|
32
|
+
shippingAddressLine1: string | undefined;
|
|
33
|
+
shippingAddressLine2: string | undefined;
|
|
34
|
+
shippingPostalCode: string | undefined;
|
|
35
|
+
shippingCity: string | undefined;
|
|
36
|
+
shippingState: string | undefined;
|
|
37
|
+
shippingCountry: CountryCode | undefined;
|
|
38
|
+
shippingPhoneNumber: string | undefined;
|
|
39
|
+
shippingFirstName: string | undefined;
|
|
40
|
+
shippingLastName: string | undefined;
|
|
41
|
+
shippingAttentionName: string | undefined;
|
|
42
|
+
/** While true, the billing fields follow the shipping ones. */
|
|
43
|
+
billingAddressSameAsShipping: boolean;
|
|
29
44
|
seatsValues: ConfiguredMeterValue[] | undefined;
|
|
30
45
|
unitsValues: ConfiguredMeterValue[] | undefined;
|
|
31
46
|
promotionCode?: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { PaymentMethod } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
2
|
export interface CustomerPaymentMethodsBlockProps {
|
|
3
3
|
paymentMethods: PaymentMethod[];
|
|
4
|
-
limit?: number;
|
|
5
|
-
isLoading: boolean;
|
|
6
4
|
showViewAllButton?: boolean;
|
|
7
5
|
showAddButton?: boolean;
|
|
8
6
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Customer } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { ShippingAddress } from '../../../types/shippingAddress';
|
|
3
|
+
export interface ShippingAddressFormProps {
|
|
4
|
+
/** Who the address is for. Their country, name and email start the form off. */
|
|
5
|
+
customer: Customer;
|
|
6
|
+
/** The stored address being edited, whose fields the form starts on instead of the customer's. */
|
|
7
|
+
address?: ShippingAddress;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ContextMenuOption } from '@solvimon/solvimon-ui';
|
|
2
|
+
import { ShippingAddress } from '../../../types/shippingAddress';
|
|
3
|
+
export interface ShippingAddressCardProps {
|
|
4
|
+
address: ShippingAddress;
|
|
5
|
+
/** What can be done with the address, behind the menu next to it. Left out, there is no menu. */
|
|
6
|
+
menuItems?: ContextMenuOption[];
|
|
7
|
+
/** Marks the customer's default, which only matters where there is more than one to tell apart. */
|
|
8
|
+
showDefault?: boolean;
|
|
9
|
+
/** Only the address itself, for a summary where who it is for and how to reach them can wait. */
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContextMenuOption } from '@solvimon/solvimon-ui';
|
|
2
|
+
import { ShippingAddress } from '../../../types/shippingAddress';
|
|
3
|
+
export interface ShippingAddressListProps {
|
|
4
|
+
addresses: ShippingAddress[];
|
|
5
|
+
/** The menu next to each address. Left out, there is none. */
|
|
6
|
+
getMenuItems?: (address: ShippingAddress) => ContextMenuOption[];
|
|
7
|
+
/** Shows only the address lines; see the card. */
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Customer } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
|
+
import { UseShippingAddresses } from '../../../composables/useShippingAddresses';
|
|
3
|
+
import { ShippingAddress } from '../../../types/shippingAddress';
|
|
4
|
+
/**
|
|
5
|
+
* Where the modal opens. Opened on one address's edit or delete, it closes once that is done
|
|
6
|
+
* rather than going on to the list.
|
|
7
|
+
*/
|
|
8
|
+
export type ShippingAddressesModalStart = {
|
|
9
|
+
step: 'LIST' | 'ADD';
|
|
10
|
+
} | {
|
|
11
|
+
step: 'EDIT' | 'DELETE';
|
|
12
|
+
address: ShippingAddress;
|
|
13
|
+
};
|
|
14
|
+
export interface ShippingAddressesModalProps {
|
|
15
|
+
showModal: boolean;
|
|
16
|
+
customer: Customer;
|
|
17
|
+
addresses: ShippingAddress[];
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
/** @default { step: 'LIST' } */
|
|
20
|
+
start?: ShippingAddressesModalStart;
|
|
21
|
+
/** What the modal changes the addresses with; each reloads them once it is done. */
|
|
22
|
+
actions: Pick<UseShippingAddresses, 'create' | 'replace' | 'remove'>;
|
|
23
|
+
}
|
|
24
|
+
export interface ShippingAddressesModalEmits {
|
|
25
|
+
(e: 'close'): void;
|
|
26
|
+
}
|
|
@@ -14,7 +14,6 @@ export interface OnDemandPaymentModalShellProps {
|
|
|
14
14
|
customer?: Customer;
|
|
15
15
|
paymentMethodOptions?: PaymentMethodOptionsResponse;
|
|
16
16
|
isPaymentMethodOptionsPending?: boolean;
|
|
17
|
-
isAddingPaymentMethod?: boolean;
|
|
18
17
|
}
|
|
19
18
|
export interface OnDemandPaymentModalShellEmits {
|
|
20
19
|
(e: 'confirm'): void;
|
|
@@ -4,6 +4,8 @@ import { SelectedPaymentMethod } from '../PaymentIntegrationForm/PaymentIntegrat
|
|
|
4
4
|
export interface PayButtonProps extends ButtonProps {
|
|
5
5
|
amount?: Amount;
|
|
6
6
|
paymentMethod?: SelectedPaymentMethod;
|
|
7
|
+
/** Names a stored method, "Visa •••• 4242", in place of the type of `paymentMethod`. */
|
|
8
|
+
paymentMethodLabel?: string;
|
|
7
9
|
}
|
|
8
10
|
export interface PayButtonEmits {
|
|
9
11
|
click: [event: MouseEvent];
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Amount } from '../../../vendor/@solvimon/solvimon-types/index';
|
|
2
1
|
export interface PaymentCompletedCardProps {
|
|
3
|
-
amount?: Amount;
|
|
4
2
|
variant: 'TOKENIZE' | 'AUTHORIZE';
|
|
5
3
|
/**
|
|
6
4
|
* Whether the page navigates away now that the payment is through, which is the only thing
|