@solvimon/solvimon-web 0.1.0-alpha.25 → 0.1.0-alpha.27
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 +16 -11
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs} +6 -6
- package/dist/{Avatar.vue.es-CvxRdCes.js → Avatar.vue.es-BJxSCU76.js} +1 -1
- package/dist/{Avatar.vue.es-C9Jkfuvp.mjs → Avatar.vue.es-sfMZiX7A.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs} +15 -16
- package/dist/{Button.vue.es-CeUTAc2n.js → Button.vue.es-BzkuglKw.js} +1 -1
- package/dist/{Button.vue.es-BbSN0uOk.mjs → Button.vue.es-Cmjfm4jw.mjs} +1 -1
- package/dist/ChargeOnDemandModal-CB4mrvkU.mjs +975 -0
- package/dist/ChargeOnDemandModal-b17YswWA.js +1 -0
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +2 -0
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +4381 -0
- package/dist/{Chip.vue.es-BN83K3Tk.js → Chip.vue.es-B2jjzIOc.js} +1 -1
- package/dist/{Chip.vue.es-T22Q7AF9.mjs → Chip.vue.es-DksjbJO8.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-DXKR7WFg.js → ContextMenu.vue.es-DUU43tCy.js} +1 -1
- package/dist/{ContextMenu.vue.es-0PRmCAzL.mjs → ContextMenu.vue.es-zRvoEJlV.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-yrLGc7oL.js → CustomerBillingInformation.vue.es-BfPEB42w.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-C2j40TYP.mjs → CustomerBillingInformation.vue.es-DhFbpZPK.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs} +14 -15
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs} +895 -891
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +1 -0
- package/dist/{DividerText.vue.es-DsYRZzuE.js → DividerText.vue.es-CoyDk9eH.js} +1 -1
- package/dist/{DividerText.vue.es-CV1XK_Vz.mjs → DividerText.vue.es-nAo1eRMV.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs} +4 -4
- package/dist/{ErrorNotification.vue.es-CiUJva6S.mjs → ErrorNotification.vue.es-h-D37rfG.mjs} +1 -1
- package/dist/{ErrorNotification.vue.es-QfRoDhkn.js → ErrorNotification.vue.es-tS9vySUZ.js} +1 -1
- package/dist/{IconButton.vue.es-CytBZUkZ.js → IconButton.vue.es-DgQN18Am.js} +1 -1
- package/dist/{IconButton.vue.es-ChvsCZQG.mjs → IconButton.vue.es-DvfErUOq.mjs} +2 -2
- package/dist/{IconTitle.vue.es-DPruIJ6l.mjs → IconTitle.vue.es-B_8bS0tn.mjs} +3 -3
- package/dist/{IconTitle.vue.es-DtnpBObk.js → IconTitle.vue.es-Dn2xcPHj.js} +1 -1
- package/dist/{Input.vue.es-BkzQDkrz.js → Input.vue.es-B60eK8Ds.js} +1 -1
- package/dist/{Input.vue.es-DJQqJrsb.mjs → Input.vue.es-CU9u5yKH.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs} +2 -2
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +1 -0
- package/dist/{InvoiceSummary.vue.es-6qpbyymg.mjs → InvoiceSummary.vue.es-CRiFJ5x-.mjs} +576 -565
- package/dist/{Modal.vue.es-BuRlbyZw.mjs → Modal.vue.es-BeI5C9-9.mjs} +5 -5
- package/dist/{Modal.vue.es-JpE0eh_Q.js → Modal.vue.es-DvLB3uCG.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs} +5 -6
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-uWuWjr8I.js → PaymentHistoryBlock-Uw8xeKUk.js} +1 -1
- package/dist/{PaymentHistoryBlock-DnmParhQ.mjs → PaymentHistoryBlock-mCqdFjnL.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-DTXm56QQ.js → PaymentIntegrationForm-Cx0zCf_C.js} +1 -1
- package/dist/{PaymentIntegrationForm-DL55i0HD.mjs → PaymentIntegrationForm-DVx4DEtD.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +154 -0
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +98 -0
- package/dist/{PaymentIntegrationFormAdyen-Cqsy82To.mjs → PaymentIntegrationFormAdyen-Yr8p5Fly.mjs} +202 -192
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +102 -0
- package/dist/{PaymentIntegrationFormStripe-DIU1rnwH.mjs → PaymentIntegrationFormStripe-Ds0BXt89.mjs} +247 -220
- package/dist/{PaymentMethod.vue.es-m1NasGqw.mjs → PaymentMethod.vue.es-4YRmQZHX.mjs} +168 -148
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +1 -0
- package/dist/{PaymentMethodForm-BEVdWCrH.js → PaymentMethodForm-CMP5FLRO.js} +1 -1
- package/dist/{PaymentMethodForm-BYzt1PVP.mjs → PaymentMethodForm-Dnj_7mJU.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs} +60 -58
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs} +6 -6
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +1 -0
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +722 -0
- package/dist/{PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs → PricingGroupRangeInput.vue.es-BhNcjD7z.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-Ba3v0J_R.js → PricingGroupRangeInput.vue.es-VoOTnHjk.js} +1 -1
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs +141 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-CkhBp9kI.mjs → RadioGroupExtended.vue.es-9YzXzZF0.mjs} +2 -2
- package/dist/{RadioGroupExtended.vue.es-CHrcqSRq.js → RadioGroupExtended.vue.es-DlbURHQN.js} +1 -1
- package/dist/{Section.vue.es-CSrVPlUK.js → Section.vue.es-Bbt0RITt.js} +1 -1
- package/dist/{Section.vue.es-D5svcVS_.mjs → Section.vue.es-DVEpre9O.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs} +6 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +41 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +1 -0
- package/dist/StepInput.vue.es-H-3R4jJq.js +1 -0
- package/dist/StepInput.vue.es-o-3Lg4Ai.mjs +199 -0
- package/dist/SubscriptionDetails.entry.ce-CGl6Z5ql.mjs +1057 -0
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +1 -0
- package/dist/{SubscriptionSchedules-yDcsD1hd.mjs → SubscriptionSchedules-DuWZmnD2.mjs} +1 -1
- package/dist/{SubscriptionSchedules-CMVoB2bw.js → SubscriptionSchedules-Dy0fUgx5.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs} +2284 -2341
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs} +9 -10
- package/dist/{TooltipParagraph.vue.es-CxdL8-B7.mjs → TooltipParagraph.vue.es-B9A17aG7.mjs} +3 -3
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +1 -0
- package/dist/{TrialChip.vue.es-BCc8q5j0.js → TrialChip.vue.es-CLQZ5F0n.js} +1 -1
- package/dist/{TrialChip.vue.es-BK7m7e7q.mjs → TrialChip.vue.es-Dmv3lPiQ.mjs} +2 -2
- package/dist/{cn.es-71nFUose.js → cn.es-C9Yqq4tg.js} +1 -1
- package/dist/{cn.es-ZXNzpauQ.mjs → cn.es-Cvt6TIwv.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +246 -230
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +201 -212
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +15 -16
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +14 -15
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-q_i9y0Ph.mjs → customElements-B58FcXIN.mjs} +231 -196
- package/dist/{customElements-hH6pju3X.js → customElements-DUMRMFQ5.js} +36 -32
- package/dist/{customer-BDoOIAFr.mjs → customer-B3LPAhaD.mjs} +4 -4
- package/dist/{customer-C9q6ti8s.js → customer-CisTPaXj.js} +1 -1
- package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
- package/dist/{de-DE-B_ik9VNt.mjs → de-DE-DKp5LCu0.mjs} +53 -7
- package/dist/de-DE-DL74pMLb.js +1 -0
- package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
- package/dist/en-US-B2XFj-_p.js +1 -0
- package/dist/{en-US-DkCltadt.mjs → en-US-DQ5vlv9Z.mjs} +53 -7
- package/dist/en-US-J85TQRI8.js +1 -0
- package/dist/{en-US-C939IZ5i.mjs → en-US-SDhjlY_v.mjs} +20 -5
- package/dist/formControl-ODrpUvcA.js +1 -0
- package/dist/{index-BPU8tIml.mjs → formControl-dX7l8o3c.mjs} +160 -143
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +4 -0
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{invoices-DIzkXntV.mjs → invoices-3520M5AN.mjs} +1 -1
- package/dist/{invoices-CHp75zZI.js → invoices-CKQBLar2.js} +1 -1
- package/dist/{it-IT-CHj2McbF.mjs → it-IT-BgFVsO5S.mjs} +53 -7
- package/dist/{it-IT-DT3rfjOY.js → it-IT-CSYvGmpT.js} +1 -1
- package/dist/{it-IT-BxpwB3oJ.mjs → it-IT-CaaFToGB.mjs} +20 -6
- package/dist/it-IT-CqNK62qe.js +1 -0
- package/dist/{nl-NL-DfkhOJKc.js → nl-NL-CpE4IgwO.js} +1 -1
- package/dist/{nl-NL-na2I4aiP.mjs → nl-NL-D0MQKaql.mjs} +34 -20
- package/dist/nl-NL-Dx-TNXQ1.js +1 -0
- package/dist/{nl-NL-Cdvd_XMN.mjs → nl-NL-UiRWbO9S.mjs} +53 -7
- package/dist/{paymentMethods-DEKp_4QM.mjs → paymentMethods-CWlvwK5V.mjs} +16 -14
- package/dist/paymentMethods-Cw-i95mM.js +1 -0
- package/dist/{payments-C0-Hq2a4.mjs → payments-2qeQdpiW.mjs} +6 -6
- package/dist/{payments-DBvregE8.js → payments-CS7_YcOW.js} +1 -1
- package/dist/pricing-BIMpDI_p.mjs +29 -0
- package/dist/pricing-BOqG21f9.js +1 -0
- package/dist/pricing.es-C07bgEZx.js +1 -0
- package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
- package/dist/pricingPlanSchedules-B_sTAIgU.js +1 -0
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +32 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
- package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
- package/dist/{subscriptions--9MaTXMb.mjs → subscriptions-DcfcBYAq.mjs} +1 -1
- package/dist/{subscriptions-BArXBCFr.js → subscriptions-DwVsf4Ev.js} +1 -1
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
- package/dist/types/components/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
- package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
- package/dist/types/services/paymentMethods.types.d.ts +4 -2
- package/dist/types/services/requests.types.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
- package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
- package/dist/{useActionDispatchProvider-BdciAX8T.mjs → useActionDispatchProvider-B3AvkLL2.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CKzeqXzY.js → useActionDispatchProvider-DFhppdve.js} +1 -1
- package/dist/{useCustomer-D8ixhuuj.mjs → useCustomer-B-jyJIVy.mjs} +1 -1
- package/dist/{useCustomer-DSYr0F58.js → useCustomer-BwZKd9i5.js} +1 -1
- package/dist/{useCustomerFormLabels-htMZ0xqB.mjs → useCustomerFormLabels-BQk3d9PZ.mjs} +6 -6
- package/dist/useCustomerFormLabels-DV9QiMYh.js +1 -0
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +135 -0
- package/dist/useExperimentalFeature-CGIkgFR4.js +1 -0
- package/dist/{useInvoiceData-Bpbog3zW.mjs → useInvoiceData-BocKdeg7.mjs} +3 -3
- package/dist/{useInvoiceData-DhrItfv7.js → useInvoiceData-CNV_FMV8.js} +1 -1
- package/dist/{useInvoicesList-BGwcJn4I.mjs → useInvoicesList-C8nsXMJ6.mjs} +7 -7
- package/dist/{useInvoicesList-duu_b5GW.js → useInvoicesList-S0IbQcrD.js} +1 -1
- package/dist/{useLoadInitialData-BDmmpcfb.mjs → useLoadInitialData-D9GkzY8t.mjs} +1 -1
- package/dist/{useLoadInitialData-U2WvBmXT.js → useLoadInitialData-D_R6Jy1s.js} +1 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +1 -0
- package/dist/{usePaymentMethodAvailability-adqRujTA.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs} +5 -6
- package/dist/{usePaymentMethodOptions-DlZtTQNQ.mjs → usePaymentMethodOptions-1vRAo6Ib.mjs} +15 -13
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +1 -0
- package/dist/{usePaymentMethods-BnmSo_rr.mjs → usePaymentMethods-CbwnGONc.mjs} +1 -1
- package/dist/{usePaymentMethods-DZ1a0mnr.js → usePaymentMethods-DDaTZQZp.js} +1 -1
- package/dist/{usePayments-s-Z1di8d.mjs → usePayments-Cr6NlGaW.mjs} +46 -41
- package/dist/usePayments-DDSjo0rH.js +1 -0
- package/dist/{usePortal-Hm7wvtgQ.js → usePortal-C27omjhz.js} +1 -1
- package/dist/{usePortal-C4rR5Rhu.mjs → usePortal-C5AsegpS.mjs} +1 -1
- package/dist/{useSubscription-DSsXVO0h.mjs → useSubscription-BZJL0VOA.mjs} +1 -1
- package/dist/{useSubscription-DMAEJves.js → useSubscription-D787IXY-.js} +1 -1
- package/dist/{useTimePeriod.es-CW8ycmpT.mjs → useTimePeriod.es-DWLsLFqs.mjs} +1 -1
- package/dist/{useTimePeriod.es-anHB63am.js → useTimePeriod.es-rzxqUCTu.js} +1 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
- package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
- package/package.json +20 -14
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js +0 -1
- package/dist/Checkout.entry.ce-BMzK8nQg.mjs +0 -3900
- package/dist/Checkout.entry.ce-DgA0ckyl.js +0 -2
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js +0 -1
- package/dist/InvoiceSummary.vue.es-v1TkOUhA.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs +0 -141
- package/dist/PaymentIntegrationFormAdyen-C9KoiqMh.js +0 -98
- package/dist/PaymentIntegrationFormStripe-DTLgGutU.js +0 -102
- package/dist/PaymentMethod.vue.es-ZWda5GqF.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js +0 -1
- package/dist/PlanCustomizationEditor-CunwwXTw.js +0 -1
- package/dist/PlanCustomizationEditor-NLVkEYFF.mjs +0 -877
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs +0 -131
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +0 -51
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js +0 -1
- package/dist/TooltipParagraph.vue.es-DS_69pl1.js +0 -1
- package/dist/adyen-CvsH5fok.mjs +0 -117
- package/dist/adyen-Druit6gz.js +0 -1
- package/dist/de-DE-npBTLtKL.js +0 -1
- package/dist/en-US-9xdcz3T5.js +0 -1
- package/dist/en-US-kGduGoka.js +0 -1
- package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
- package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
- package/dist/index-DwueOtPi.js +0 -1
- package/dist/it-IT-BayNIAy7.js +0 -1
- package/dist/nl-NL-0rV4nFLw.js +0 -1
- package/dist/paymentMethods-CZGP6_4W.js +0 -1
- package/dist/pricing-BVAld27Y.js +0 -1
- package/dist/pricing-DLOeiAIB.mjs +0 -16
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
- package/dist/useCustomerFormLabels-CRumh405.js +0 -1
- package/dist/useExperimentalFeature-D29-TO3R.js +0 -1
- package/dist/useExperimentalFeature-JK_kAUQQ.mjs +0 -6
- package/dist/usePaymentMethodAvailability-DwtT5Czz.js +0 -1
- package/dist/usePaymentMethodOptions-CXdFKFqZ.js +0 -1
- package/dist/usePayments-DL4agK2i.js +0 -1
- package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
- package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),m=require("./customElements-DUMRMFQ5.js"),y=require("./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js"),f=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js"),v=require("./useExperimentalFeature-CGIkgFR4.js"),b={class:"flex flex-col items-center gap-4"},A=e.defineComponent({__name:"PaymentMethodsUnavailableCard",props:{variant:{type:String},sellerName:{type:String}},setup(d){const t=d,{$t:n}=m.useIntl(),c=e.computed(()=>t.variant==="AUTHORIZE"?n({defaultMessage:"This invoice cannot be paid online",description:"Title shown when no payment method can be offered for paying an invoice",id:"payment_methods_unavailable_card.title.authorize"}):n({defaultMessage:"No payment methods can be added",description:"Title shown when no payment method can be offered for storing a payment method",id:"payment_methods_unavailable_card.title.tokenize"})),r=e.computed(()=>t.variant==="AUTHORIZE"?t.sellerName?n({defaultMessage:"Online payment is not set up for this invoice. {sellerName} can settle it with you directly.",description:"Body text shown when an invoice cannot be paid online, naming the seller",id:"payment_methods_unavailable_card.description.authorize_with_seller"},{sellerName:t.sellerName}):n({defaultMessage:"Online payment is not set up for this invoice. The party that issued it can settle it with you directly.",description:"Body text shown when an invoice cannot be paid online",id:"payment_methods_unavailable_card.description.authorize"}):t.sellerName?n({defaultMessage:"No online payment methods are set up. {sellerName} can arrange payment with you directly.",description:"Body text shown when no payment method can be stored, naming the seller",id:"payment_methods_unavailable_card.description.tokenize_with_seller"},{sellerName:t.sellerName}):n({defaultMessage:"No online payment methods are set up.",description:"Body text shown when no payment method can be stored",id:"payment_methods_unavailable_card.description.tokenize"}));return(s,u)=>(e.openBlock(),e.createBlock(y._sfc_main,{status:"error",title:c.value,class:"sv-payment-methods-unavailable-card"},{default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(e.unref(m._sfc_main),{variant:"body-xs",color:"subtle",class:"mt-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value),1)]),_:1}),e.renderSlot(s.$slots,"default")])]),_:3},8,["title"]))}});function N({paymentMethodOptions:d,isLoading:t,context:n}){const c=m.useLogger(),r=v.useExperimentalFeature(),s=e.computed(()=>e.toValue(d)??[]),u=e.computed(()=>{var a;return e.toValue(t)?"LOADING":f.hasRenderablePaymentIntegration(s.value,{excludeExpressPaymentMethods:!!((a=r==null?void 0:r.value)!=null&&a["express-checkout"])})?"READY":"UNAVAILABLE"}),h=e.computed(()=>{const a=[...new Set(s.value.map(({payment_acceptor:i})=>i==null?void 0:i.id))].filter(i=>!!i);return["NO_PAYMENT_METHODS_AVAILABLE",...a.length?a.sort():["no_payment_acceptor"]]});return e.watch(()=>[u.value,h.value.join("|")],([a,i],l)=>{if(a!=="UNAVAILABLE"||(l==null?void 0:l[0])==="UNAVAILABLE"&&l[1]===i)return;const{invoiceId:p,subscriptionId:_}=e.toValue(n)??{};c.error("NO_PAYMENT_METHODS_AVAILABLE","No payment method can be offered to the customer",{fingerprint:h.value,paymentAcceptorIds:s.value.map(({payment_acceptor:o})=>o==null?void 0:o.id),integrationIds:s.value.map(({integration:o})=>o==null?void 0:o.id),...p?{invoiceId:p}:{},..._?{subscriptionId:_}:{}})},{immediate:!0}),{availability:u}}exports._sfc_main=A;exports.usePaymentMethodAvailability=N;
|
package/dist/{usePaymentMethodAvailability-adqRujTA.mjs → usePaymentMethodAvailability-DAcsKGeh.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as y, computed as r, openBlock as v, createBlock as b, withCtx as _, createElementVNode as A, createVNode as N, unref as g, createTextVNode as w, toDisplayString as E, renderSlot as I, toValue as u, watch as x } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { u as V } from "./useExperimentalFeature-
|
|
2
|
+
import { a as M, _ as L, b as B } from "./customElements-B58FcXIN.mjs";
|
|
3
|
+
import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs";
|
|
4
|
+
import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs";
|
|
5
|
+
import { u as V } from "./useExperimentalFeature-BciA3Ok9.mjs";
|
|
6
6
|
const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
|
|
7
7
|
__name: "PaymentMethodsUnavailableCard",
|
|
8
8
|
props: {
|
|
@@ -46,8 +46,7 @@ const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
|
|
|
46
46
|
return (o, c) => (v(), b(T, {
|
|
47
47
|
status: "error",
|
|
48
48
|
title: m.value,
|
|
49
|
-
class: "sv-payment-methods-unavailable-card"
|
|
50
|
-
"data-testid": "payment-methods-unavailable"
|
|
49
|
+
class: "sv-payment-methods-unavailable-card"
|
|
51
50
|
}, {
|
|
52
51
|
default: _(() => [
|
|
53
52
|
A("div", S, [
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { c as P } from "./paymentMethods-
|
|
4
|
-
function
|
|
1
|
+
import { u as d, a as s } from "./useService-Bh47bllz.mjs";
|
|
2
|
+
import { ref as h } from "vue";
|
|
3
|
+
import { c as P } from "./paymentMethods-CWlvwK5V.mjs";
|
|
4
|
+
function b(n) {
|
|
5
5
|
return n.customerId !== void 0;
|
|
6
6
|
}
|
|
7
7
|
function S() {
|
|
8
|
-
const { getPaymentMethodOptions: n } = P(),
|
|
8
|
+
const { getPaymentMethodOptions: n } = P(), u = (t) => b(t) ? n({
|
|
9
9
|
customerId: t.customerId,
|
|
10
|
+
subscriptionId: t.subscriptionId,
|
|
11
|
+
invoiceId: t.invoiceId,
|
|
10
12
|
amount: t.amount,
|
|
11
13
|
country: t.country
|
|
12
14
|
}) : n({
|
|
13
15
|
subscriptionId: t.subscriptionId,
|
|
14
16
|
amount: t.amount,
|
|
15
17
|
country: t.country
|
|
16
|
-
}), c = [], { data: r, execute: m, apiStatus: a, error: f, isPending: v } =
|
|
18
|
+
}), c = [], { data: r, execute: m, apiStatus: a, error: f, isPending: v } = d({
|
|
17
19
|
initialValue: c,
|
|
18
|
-
service:
|
|
19
|
-
}), o =
|
|
20
|
+
service: u
|
|
21
|
+
}), o = h();
|
|
20
22
|
let e;
|
|
21
23
|
return { paymentMethodOptions: r, get: async (t) => {
|
|
22
|
-
if (
|
|
24
|
+
if (s(t, o.value))
|
|
23
25
|
return r.value;
|
|
24
|
-
if (e &&
|
|
26
|
+
if (e && s(t, e.payload))
|
|
25
27
|
return e.options;
|
|
26
|
-
const
|
|
27
|
-
e = { payload: t, options:
|
|
28
|
+
const i = m(t).then((I) => (o.value = t, I));
|
|
29
|
+
e = { payload: t, options: i };
|
|
28
30
|
try {
|
|
29
|
-
return await
|
|
31
|
+
return await i;
|
|
30
32
|
} finally {
|
|
31
33
|
(e == null ? void 0 : e.payload) === t && (e = void 0);
|
|
32
34
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const s=require("./useService-H7BjLg8P.js"),h=require("vue"),f=require("./paymentMethods-Cw-i95mM.js");function M(n){return n.customerId!==void 0}function P(){const{getPaymentMethodOptions:n}=f.createPaymentMethodsService(),o=t=>M(t)?n({customerId:t.customerId,subscriptionId:t.subscriptionId,invoiceId:t.invoiceId,amount:t.amount,country:t.country}):n({subscriptionId:t.subscriptionId,amount:t.amount,country:t.country}),c=[],{data:i,execute:m,apiStatus:v,error:d,isPending:I}=s.useService({initialValue:c,service:o}),r=h.ref();let e;return{paymentMethodOptions:i,get:async t=>{if(s.isEqual(t,r.value))return i.value;if(e&&s.isEqual(t,e.payload))return e.options;const u=m(t).then(a=>(r.value=t,a));e={payload:t,options:u};try{return await u}finally{(e==null?void 0:e.payload)===t&&(e=void 0)}},apiStatus:v,error:d,isPending:I}}exports.usePaymentMethodOptions=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=require("./useIncrementalLoading-CaWOE8Xl.js"),c=require("./paymentMethods-
|
|
1
|
+
const o=require("./useIncrementalLoading-CaWOE8Xl.js"),c=require("./paymentMethods-Cw-i95mM.js");function r({customerId:e,pageSize:n=15}){const{getPaymentMethods:t}=c.createPaymentMethodsService(),s=async a=>t({customerId:e,pagination:{page:a,pageSize:n}});return o.useIncrementalLoading({service:s})}exports.usePaymentMethods=r;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as b, createPropsRestProxy as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as B } from "./IconTitle.vue.es-
|
|
4
|
-
import { _ as P } from "./Chip.vue.es-
|
|
1
|
+
import { defineComponent as b, createPropsRestProxy as C, ref as _, computed as o, openBlock as c, createElementBlock as A, createVNode as g, unref as l, mergeProps as O, createSlots as S, withCtx as s, renderSlot as h, createBlock as p, createTextVNode as v, toDisplayString as D, createCommentVNode as I, createElementVNode as L } from "vue";
|
|
2
|
+
import { a as N, _ as R } from "./customElements-B58FcXIN.mjs";
|
|
3
|
+
import { _ as B } from "./IconTitle.vue.es-B_8bS0tn.mjs";
|
|
4
|
+
import { _ as P } from "./Chip.vue.es-DksjbJO8.mjs";
|
|
5
5
|
import { a as x } from "./formatting.es-RclXHhKo.mjs";
|
|
6
6
|
import { a as V, b as z } from "./index.es-CXkP_k3u.mjs";
|
|
7
|
-
import { _ as $ } from "./Button.vue.es-
|
|
7
|
+
import { _ as $ } from "./Button.vue.es-Cmjfm4jw.mjs";
|
|
8
8
|
import { _ as k } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
9
|
-
import { c as U } from "./invoices-
|
|
10
|
-
import { u as
|
|
11
|
-
import { c as M } from "./payments-
|
|
9
|
+
import { c as U } from "./invoices-3520M5AN.mjs";
|
|
10
|
+
import { u as T } from "./useService-Bh47bllz.mjs";
|
|
11
|
+
import { c as M } from "./payments-2qeQdpiW.mjs";
|
|
12
12
|
const G = {
|
|
13
13
|
neutral: { indicatorClass: "border-gray-500 bg-gray-500", chipIntent: "neutral" },
|
|
14
14
|
info: { indicatorClass: "border-blue-600 bg-blue-600", chipIntent: "info" },
|
|
15
15
|
success: { indicatorClass: "border-green-600 bg-green-600", chipIntent: "success" },
|
|
16
16
|
warning: { indicatorClass: "border-yellow-600 bg-yellow-600", chipIntent: "warning" },
|
|
17
17
|
danger: { indicatorClass: "border-red-600 bg-red-600", chipIntent: "danger" }
|
|
18
|
-
},
|
|
18
|
+
}, H = {
|
|
19
19
|
ACCEPTED: "success",
|
|
20
20
|
ACTIVE: "success",
|
|
21
21
|
APPROVED: "success",
|
|
@@ -28,6 +28,7 @@ const G = {
|
|
|
28
28
|
DENIED: "danger",
|
|
29
29
|
DEPRECATED: "warning",
|
|
30
30
|
DONE: "success",
|
|
31
|
+
DONE_WITH_ERRORS: "warning",
|
|
31
32
|
DOWNLOADED: "success",
|
|
32
33
|
DOWNLOADING: "info",
|
|
33
34
|
DRAFT: "warning",
|
|
@@ -35,6 +36,7 @@ const G = {
|
|
|
35
36
|
EMPTY: "neutral",
|
|
36
37
|
ENABLED: "success",
|
|
37
38
|
ERROR: "danger",
|
|
39
|
+
EXPIRED: "neutral",
|
|
38
40
|
FAILED: "danger",
|
|
39
41
|
FINAL: "success",
|
|
40
42
|
GENERATING: "info",
|
|
@@ -64,19 +66,22 @@ const G = {
|
|
|
64
66
|
SEND: "info",
|
|
65
67
|
SIGNATURE_REQUESTED: "warning",
|
|
66
68
|
SIGNED: "success",
|
|
69
|
+
SKIPPED: "warning",
|
|
67
70
|
SUBMITTED: "info",
|
|
68
71
|
SUCCEEDED: "success",
|
|
69
72
|
SUCCESS: "success",
|
|
70
73
|
TO_BE_DOWNLOADED: "info",
|
|
74
|
+
TO_BE_PROCESSED: "info",
|
|
71
75
|
TO_BE_REPROCESSED: "info",
|
|
72
76
|
UNPAID: "warning",
|
|
73
77
|
UPLOADED: "success",
|
|
74
78
|
VALID: "success",
|
|
79
|
+
VALIDATED: "info",
|
|
75
80
|
VOID: "neutral",
|
|
76
81
|
WAITING_APPROVAL: "warning",
|
|
77
82
|
DISABLED: "neutral"
|
|
78
|
-
},
|
|
79
|
-
const t =
|
|
83
|
+
}, F = (e) => {
|
|
84
|
+
const t = H[e] ?? "neutral";
|
|
80
85
|
return G[t];
|
|
81
86
|
}, W = { class: "inline-flex flex-col items-end gap-1" }, Y = /* @__PURE__ */ b({
|
|
82
87
|
__name: "DownloadButton",
|
|
@@ -96,7 +101,7 @@ const G = {
|
|
|
96
101
|
preventDoubleClick: { type: Boolean }
|
|
97
102
|
},
|
|
98
103
|
setup(e) {
|
|
99
|
-
const { $t: t } = N(), n =
|
|
104
|
+
const { $t: t } = N(), n = C(e, ["downloadService", "size", "intent", "mobileIconOnly"]), a = _(!1), i = _(!1), f = V(z).smaller("md"), d = o(() => e.mobileIconOnly && f.value), E = async () => {
|
|
100
105
|
i.value = !0, a.value = !1;
|
|
101
106
|
try {
|
|
102
107
|
await e.downloadService();
|
|
@@ -106,22 +111,22 @@ const G = {
|
|
|
106
111
|
i.value = !1;
|
|
107
112
|
}
|
|
108
113
|
};
|
|
109
|
-
return (
|
|
110
|
-
|
|
114
|
+
return (m, w) => (c(), A("div", W, [
|
|
115
|
+
g(l($), O({ ...n, size: e.size, intent: e.intent }, {
|
|
111
116
|
loading: i.value,
|
|
112
117
|
type: "button",
|
|
113
118
|
"icon-prefix": "download",
|
|
114
|
-
onClick:
|
|
119
|
+
onClick: E
|
|
115
120
|
}), S({ _: 2 }, [
|
|
116
|
-
|
|
121
|
+
m.$slots.default && !d.value ? {
|
|
117
122
|
name: "default",
|
|
118
123
|
fn: s(() => [
|
|
119
|
-
|
|
124
|
+
h(m.$slots, "default")
|
|
120
125
|
]),
|
|
121
126
|
key: "0"
|
|
122
127
|
} : void 0
|
|
123
128
|
]), 1040, ["loading"]),
|
|
124
|
-
a.value ? (c(),
|
|
129
|
+
a.value ? (c(), p(l(k), { key: 0 }, {
|
|
125
130
|
default: s(() => [
|
|
126
131
|
v(D(l(t)({
|
|
127
132
|
id: "download_button.download_failed_message",
|
|
@@ -130,7 +135,7 @@ const G = {
|
|
|
130
135
|
})), 1)
|
|
131
136
|
]),
|
|
132
137
|
_: 1
|
|
133
|
-
})) :
|
|
138
|
+
})) : I("", !0)
|
|
134
139
|
]));
|
|
135
140
|
}
|
|
136
141
|
}), j = /* @__PURE__ */ b({
|
|
@@ -142,22 +147,22 @@ const G = {
|
|
|
142
147
|
hasChipAfter: { type: Boolean, default: !1 }
|
|
143
148
|
},
|
|
144
149
|
setup(e) {
|
|
145
|
-
return (t, n) => (c(),
|
|
146
|
-
intent: l(
|
|
150
|
+
return (t, n) => (c(), p(P, {
|
|
151
|
+
intent: l(F)(e.status).chipIntent,
|
|
147
152
|
size: e.size,
|
|
148
153
|
"has-chip-after": e.hasChipAfter,
|
|
149
154
|
"has-chip-before": e.hasChipBefore
|
|
150
155
|
}, {
|
|
151
156
|
default: s(() => [
|
|
152
|
-
|
|
157
|
+
h(t.$slots, "default", {}, () => [
|
|
153
158
|
v(D(l(x)(e.status)), 1)
|
|
154
159
|
]),
|
|
155
|
-
|
|
160
|
+
h(t.$slots, "suffix")
|
|
156
161
|
]),
|
|
157
162
|
_: 3
|
|
158
163
|
}, 8, ["intent", "size", "has-chip-after", "has-chip-before"]));
|
|
159
164
|
}
|
|
160
|
-
}),
|
|
165
|
+
}), K = { class: "flex items-center justify-between md:py-2" }, Q = { class: "ml-2 inline-flex gap-0.5 print:hidden" }, ce = /* @__PURE__ */ b({
|
|
161
166
|
__name: "InvoiceHeader",
|
|
162
167
|
props: {
|
|
163
168
|
invoice: {},
|
|
@@ -199,12 +204,12 @@ const G = {
|
|
|
199
204
|
description: "Label prefixed before the invoice number in the header title",
|
|
200
205
|
id: "invoiceHeader.invoiceNumberLabel"
|
|
201
206
|
})
|
|
202
|
-
),
|
|
207
|
+
), E = o(() => {
|
|
203
208
|
if (t.variant === "external")
|
|
204
209
|
return f.value;
|
|
205
210
|
const u = t.invoice.invoice_number;
|
|
206
211
|
return u ? t.showInvoiceNumberLabel ? `${d.value} ${u}` : u : d.value;
|
|
207
|
-
}),
|
|
212
|
+
}), m = o(() => {
|
|
208
213
|
if (!(!t.invoice.paid || !i.value))
|
|
209
214
|
return n(
|
|
210
215
|
{
|
|
@@ -221,17 +226,17 @@ const G = {
|
|
|
221
226
|
})
|
|
222
227
|
}
|
|
223
228
|
);
|
|
224
|
-
}), w = o(() => t.variant === "external" ? [t.invoice.invoice_number,
|
|
225
|
-
return (u,
|
|
226
|
-
|
|
229
|
+
}), w = o(() => t.variant === "external" ? [t.invoice.invoice_number, m.value || r.value].join(" - ") : m.value || r.value), y = o(() => t.invoice.status !== "PAID");
|
|
230
|
+
return (u, X) => (c(), A("div", K, [
|
|
231
|
+
g(B, { title: E.value }, {
|
|
227
232
|
suffix: s(() => [
|
|
228
|
-
L("span",
|
|
229
|
-
y.value ? (c(),
|
|
233
|
+
L("span", Q, [
|
|
234
|
+
y.value ? (c(), p(j, {
|
|
230
235
|
key: 0,
|
|
231
236
|
status: e.invoice.status,
|
|
232
237
|
"has-chip-after": !!e.invoice.paid
|
|
233
|
-
}, null, 8, ["status", "has-chip-after"])) :
|
|
234
|
-
e.invoice.paid ? (c(),
|
|
238
|
+
}, null, 8, ["status", "has-chip-after"])) : I("", !0),
|
|
239
|
+
e.invoice.paid ? (c(), p(P, {
|
|
235
240
|
key: 1,
|
|
236
241
|
intent: "success",
|
|
237
242
|
"has-chip-before": y.value
|
|
@@ -244,11 +249,11 @@ const G = {
|
|
|
244
249
|
})), 1)
|
|
245
250
|
]),
|
|
246
251
|
_: 1
|
|
247
|
-
}, 8, ["has-chip-before"])) :
|
|
252
|
+
}, 8, ["has-chip-before"])) : I("", !0)
|
|
248
253
|
])
|
|
249
254
|
]),
|
|
250
255
|
subTitle: s(() => [
|
|
251
|
-
|
|
256
|
+
g(R, {
|
|
252
257
|
variant: "body-xs",
|
|
253
258
|
class: "flex gap-1 print:hidden"
|
|
254
259
|
}, {
|
|
@@ -260,7 +265,7 @@ const G = {
|
|
|
260
265
|
]),
|
|
261
266
|
_: 1
|
|
262
267
|
}, 8, ["title"]),
|
|
263
|
-
e.showDownloadButton ? (c(),
|
|
268
|
+
e.showDownloadButton ? (c(), p(Y, {
|
|
264
269
|
key: 0,
|
|
265
270
|
size: "lg",
|
|
266
271
|
intent: "secondary",
|
|
@@ -275,7 +280,7 @@ const G = {
|
|
|
275
280
|
})), 1)
|
|
276
281
|
]),
|
|
277
282
|
_: 1
|
|
278
|
-
}, 8, ["download-service"])) :
|
|
283
|
+
}, 8, ["download-service"])) : I("", !0)
|
|
279
284
|
]));
|
|
280
285
|
}
|
|
281
286
|
});
|
|
@@ -285,8 +290,8 @@ function le({ invoiceId: e }) {
|
|
|
285
290
|
execute: r,
|
|
286
291
|
apiStatus: f,
|
|
287
292
|
error: d,
|
|
288
|
-
isPending:
|
|
289
|
-
} =
|
|
293
|
+
isPending: E
|
|
294
|
+
} = T({
|
|
290
295
|
service: a
|
|
291
296
|
});
|
|
292
297
|
return {
|
|
@@ -295,7 +300,7 @@ function le({ invoiceId: e }) {
|
|
|
295
300
|
apiStatus: f,
|
|
296
301
|
error: d,
|
|
297
302
|
get: r,
|
|
298
|
-
isPending:
|
|
303
|
+
isPending: E
|
|
299
304
|
};
|
|
300
305
|
}
|
|
301
306
|
function de() {
|
|
@@ -305,7 +310,7 @@ function de() {
|
|
|
305
310
|
error: a,
|
|
306
311
|
apiStatus: i,
|
|
307
312
|
isPending: r
|
|
308
|
-
} =
|
|
313
|
+
} = T({
|
|
309
314
|
service: e,
|
|
310
315
|
isCollection: !0
|
|
311
316
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),f=require("./customElements-DUMRMFQ5.js"),g=require("./IconTitle.vue.es-Dn2xcPHj.js"),v=require("./Chip.vue.es-B2jjzIOc.js"),h=require("./formatting.es-C72Nsrmh.js"),m=require("./index.es-BclokHQX.js"),I=require("./Button.vue.es-BzkuglKw.js"),w=require("./FormMessage.vue.es-dqATjC2N.js"),_=require("./invoices-CKQBLar2.js"),D=require("./useService-H7BjLg8P.js"),y=require("./payments-CS7_YcOW.js"),b={neutral:{indicatorClass:"border-gray-500 bg-gray-500",chipIntent:"neutral"},info:{indicatorClass:"border-blue-600 bg-blue-600",chipIntent:"info"},success:{indicatorClass:"border-green-600 bg-green-600",chipIntent:"success"},warning:{indicatorClass:"border-yellow-600 bg-yellow-600",chipIntent:"warning"},danger:{indicatorClass:"border-red-600 bg-red-600",chipIntent:"danger"}},N={ACCEPTED:"success",ACTIVE:"success",APPROVED:"success",ARCHIVED:"neutral",CANCELLED:"neutral",CLOSED:"success",CREATED:"neutral",DECLINED:"danger",DELETED:"danger",DENIED:"danger",DEPRECATED:"warning",DONE:"success",DONE_WITH_ERRORS:"warning",DOWNLOADED:"success",DOWNLOADING:"info",DRAFT:"warning",DUPLICATE:"warning",EMPTY:"neutral",ENABLED:"success",ERROR:"danger",EXPIRED:"neutral",FAILED:"danger",FINAL:"success",GENERATING:"info",IGNORE:"neutral",IMPORTED:"success",IMPORTING:"info",INACTIVE:"neutral",INVALID:"danger",INVITED:"info",INVITE_REVOKED:"neutral",NONE:"neutral",NOT_EXECUTED:"neutral",NOT_MATCHED:"warning",ON_HOLD:"warning",OPEN:"neutral",OVERPAID:"warning",PAID:"success",PARTIALLY_PAID:"warning",PAUSED:"warning",PAYMENT_FAILED:"danger",PENDING:"info",PENDING_REVIEW:"warning",PROCESSING:"info",QUEUED:"info",REJECTED:"danger",SCHEDULED:"info",SEND:"info",SIGNATURE_REQUESTED:"warning",SIGNED:"success",SKIPPED:"warning",SUBMITTED:"info",SUCCEEDED:"success",SUCCESS:"success",TO_BE_DOWNLOADED:"info",TO_BE_PROCESSED:"info",TO_BE_REPROCESSED:"info",UNPAID:"warning",UPLOADED:"success",VALID:"success",VALIDATED:"info",VOID:"neutral",WAITING_APPROVAL:"warning",DISABLED:"neutral"},C=t=>{const n=N[t]??"neutral";return b[n]},A={class:"inline-flex flex-col items-end gap-1"},S=e.defineComponent({__name:"DownloadButton",props:{downloadService:{type:Function},mobileIconOnly:{type:Boolean,default:!1},type:{},intent:{default:"secondary"},size:{default:"md"},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{},iconSuffix:{},tag:{},preventDoubleClick:{type:Boolean}},setup(t){const{$t:n}=f.useIntl(),a=e.createPropsRestProxy(t,["downloadService","size","intent","mobileIconOnly"]),i=e.ref(!1),o=e.ref(!1),l=m.useBreakpoints(m.breakpointsTailwind).smaller("md"),r=e.computed(()=>t.mobileIconOnly&&l.value),u=async()=>{o.value=!0,i.value=!1;try{await t.downloadService()}catch{i.value=!0}finally{o.value=!1}};return(d,p)=>(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(e.unref(I._sfc_main),e.mergeProps({...a,size:t.size,intent:t.intent},{loading:o.value,type:"button","icon-prefix":"download",onClick:u}),e.createSlots({_:2},[d.$slots.default&&!r.value?{name:"default",fn:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),key:"0"}:void 0]),1040,["loading"]),i.value?(e.openBlock(),e.createBlock(e.unref(w._sfc_main),{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"download_button.download_failed_message",defaultMessage:"Download failed, please try again later",description:"Error message when a download fails"})),1)]),_:1})):e.createCommentVNode("",!0)]))}}),T=e.defineComponent({__name:"StatusChip",props:{status:{},size:{default:"md"},hasChipBefore:{type:Boolean,default:!1},hasChipAfter:{type:Boolean,default:!1}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(v._sfc_main,{intent:e.unref(C)(t.status).chipIntent,size:t.size,"has-chip-after":t.hasChipAfter,"has-chip-before":t.hasChipBefore},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(h.formatEnum)(t.status)),1)]),e.renderSlot(n.$slots,"suffix")]),_:3},8,["intent","size","has-chip-after","has-chip-before"]))}}),P={class:"flex items-center justify-between md:py-2"},O={class:"ml-2 inline-flex gap-0.5 print:hidden"},B=e.defineComponent({__name:"InvoiceHeader",props:{invoice:{},paymentAttempts:{},downloadService:{},showDownloadButton:{type:Boolean},variant:{default:"internal"},showInvoiceNumberLabel:{type:Boolean}},setup(t){const n=t,{$t:a,formatDate:i}=f.useIntl(),o=e.computed(()=>n.paymentAttempts.findLast(c=>c.result==="AUTHORIZED")),s=e.computed(()=>a({defaultMessage:"Due on {date}",description:"Label for due date, where {date} gets replaced with the due date",id:"invoice.due_on_label"},{date:i({date:n.invoice.due_date,format:"date",offsetType:"offsetted",timezone:n.invoice.customer.timezone})})),l=e.computed(()=>i({date:n.invoice.invoice_date,format:"date",offsetType:"offsetted",timezone:n.invoice.customer.timezone})),r=e.computed(()=>a({defaultMessage:"Invoice",description:"Label prefixed before the invoice number in the header title",id:"invoiceHeader.invoiceNumberLabel"})),u=e.computed(()=>{if(n.variant==="external")return l.value;const c=n.invoice.invoice_number;return c?n.showInvoiceNumberLabel?`${r.value} ${c}`:c:r.value}),d=e.computed(()=>{if(!(!n.invoice.paid||!o.value))return a({defaultMessage:"Paid on {date}",description:"Label for payment date, where {date} gets replaced with the date",id:"invoice.paid_on_label"},{date:i({date:o.value.created_at,format:"date",offsetType:"offsetted",timezone:n.invoice.customer.timezone})})}),p=e.computed(()=>n.variant==="external"?[n.invoice.invoice_number,d.value||s.value].join(" - "):d.value||s.value),E=e.computed(()=>n.invoice.status!=="PAID");return(c,R)=>(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(g._sfc_main,{title:u.value},{suffix:e.withCtx(()=>[e.createElementVNode("span",O,[E.value?(e.openBlock(),e.createBlock(T,{key:0,status:t.invoice.status,"has-chip-after":!!t.invoice.paid},null,8,["status","has-chip-after"])):e.createCommentVNode("",!0),t.invoice.paid?(e.openBlock(),e.createBlock(v._sfc_main,{key:1,intent:"success","has-chip-before":E.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Paid",description:"The paid chip label text for a paid invoice",id:"invoice.paid_chip"})),1)]),_:1},8,["has-chip-before"])):e.createCommentVNode("",!0)])]),subTitle:e.withCtx(()=>[e.createVNode(f._sfc_main,{variant:"body-xs",class:"flex gap-1 print:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.value),1)]),_:1})]),_:1},8,["title"]),t.showDownloadButton?(e.openBlock(),e.createBlock(S,{key:0,size:"lg",intent:"secondary","download-service":t.downloadService,"mobile-icon-only":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Download PDF",description:"Title for button download pdf invoice",id:"invoice.download_pdf_button"})),1)]),_:1},8,["download-service"])):e.createCommentVNode("",!0)]))}});function L({invoiceId:t}){const{getInvoice:n,getInvoicePdf:a}=_.createInvoicesService(),i=()=>n(t),{data:o,execute:s,apiStatus:l,error:r,isPending:u}=D.useService({service:i});return{invoice:o,downloadInvoicePdf:a,apiStatus:l,error:r,get:s,isPending:u}}function x(){const{getPayments:t}=y.createPaymentsService(),{data:n,execute:a,error:i,apiStatus:o,isPending:s}=D.useService({service:t,isCollection:!0});return{payments:n,get:a,error:i,apiStatus:o,isPending:s}}exports._sfc_main=B;exports.useInvoice=L;exports.usePayments=x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),o=require("./customElements-
|
|
1
|
+
const e=require("vue"),o=require("./customElements-DUMRMFQ5.js");function t(){const r=e.inject(o.PORTAL_INJECTION_KEY);if(!r)throw new Error("PortalProvider is not provided");return r}exports.usePortal=t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as P } from "./useService-Bh47bllz.mjs";
|
|
2
|
-
import { c as w } from "./subscriptions
|
|
2
|
+
import { c as w } from "./subscriptions-DcfcBYAq.mjs";
|
|
3
3
|
const e = (n) => n.original_pricing_id ?? n.id, g = (n) => n.original_pricing_item_id ?? n.id, h = (n) => n.original_pricing_item_config_id ?? n.id, m = (n, i) => (n == null ? void 0 : n.type) === (i == null ? void 0 : i.type) && (n == null ? void 0 : n.value) === (i == null ? void 0 : i.value);
|
|
4
4
|
function l(n) {
|
|
5
5
|
const i = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const m=require("./useService-H7BjLg8P.js"),w=require("./subscriptions-
|
|
1
|
+
const m=require("./useService-H7BjLg8P.js"),w=require("./subscriptions-DwVsf4Ev.js"),P=n=>n.original_pricing_id??n.id,g=n=>n.original_pricing_item_id??n.id,h=n=>n.original_pricing_item_config_id??n.id,S=(n,i)=>(n==null?void 0:n.type)===(i==null?void 0:i.type)&&(n==null?void 0:n.value)===(i==null?void 0:i.value);function l(n){const i={};for(const c in n)n[c]!==void 0&&(i[c]=n[c]);return i}function o(n,i,c){if(!(i!=null&&i.length))return n;if(!(n!=null&&n.length))return i;const r=new Set;return[...n.reduce((p,u)=>{const _=i.find(d=>h(d)===h(u));return _?(r.add(_),[...p,U(u,_)]):c.dropUnmatched?p:[...p,u]},[]),...i.filter(p=>!r.has(p))]}function e(n,i,c){return i!=null&&i.length?n!=null&&n.length?[...n.map(r=>{const t=i.find(p=>S(p.billing_period,r.billing_period));return t?{...r,configs:o(r.configs,t.configs,c)??[]}:r}),...i.filter(r=>!n.some(t=>S(r.billing_period,t.billing_period)))]:i:n}function O(n,i,c){return i!=null&&i.length?n!=null&&n.length?[...n.map(r=>{const t=i.find(p=>p.currency===r.currency);return t?{...r,...l(t),configs:o(r.configs,t.configs,c),billing_period_configs:e(r.billing_period_configs,t.billing_period_configs,c)}:r}),...i.filter(r=>!n.some(t=>t.currency===r.currency))]:i:n}function U(n,i){const c={dropUnmatched:!1};return{...n,...l(i),id:i.id??n.id,original_pricing_item_config_id:h(n),conditions:n.conditions&&i.conditions?{...n.conditions,...l(i.conditions),meter_properties:n.conditions.meter_properties??i.conditions.meter_properties,configs:o(n.conditions.configs,i.conditions.configs,c)}:i.conditions??n.conditions,billing_period_configs:e(n.billing_period_configs,i.billing_period_configs,c)}}function L(n,i){const c={dropUnmatched:i.override==="ALL"};return{...n,...l(i),id:i.id??n.id,original_pricing_item_id:g(n),product_items:n.product_items,configs:o(n.configs,i.configs,c),billing_period_configs:e(n.billing_period_configs,i.billing_period_configs,c),pricing_currency_configs:O(n.pricing_currency_configs,i.pricing_currency_configs,c)}}function A(n,i,c){if(!(i!=null&&i.length))return n;if(!(n!=null&&n.length))return i;const r=new Set;return[...n.reduce((p,u)=>{const _=i.find(d=>g(d)===g(u));return _?(r.add(_),[...p,L(u,_)]):c.dropUnmatched?p:[...p,u]},[]),...i.filter(p=>!r.has(p))]}function D(n,i){return i!=null&&i.length?i.map(c=>{var t;const r=(t=n==null?void 0:n.find(p=>p.feature_id===c.feature_id))==null?void 0:t.feature;return r?{...c,feature:r}:c}):n}function q(n,i){const c={dropUnmatched:i.override==="ALL"};return{...n,...l(i),id:i.id??n.id,original_pricing_id:P(n),products:n.products,entitlements:D(n.entitlements,i.entitlements),items:A(n.items,i.items,c)}}function y(n,i){return n.map(c=>{const r=i.find(t=>t.original_pricing_id===P(c));return r?q(c,r):c})}function s({pricingPlanVersion:n,overridePricings:i}){var r;const c=i??[];return c.length?{...n,pricing_categories:(r=n.pricing_categories)==null?void 0:r.map(t=>{var p;return{...t,pricings:t.pricings&&y(t.pricings,c),pricing_groups:(p=t.pricing_groups)==null?void 0:p.map(u=>({...u,pricings:y(u.pricings,c)}))}})}:n}function x(n){return n.pricing_plan_schedule_infos.map(i=>{var c;return{schedule:i.pricing_plan_schedule,selectedPricingPlan:i.pricing_plan_version.pricing_plan,selectedPricingPlanVersion:s({pricingPlanVersion:i.pricing_plan_version,overridePricings:(c=i.pricing_plan_schedule)==null?void 0:c.override_pricings})}})}function B({subscriptionId:n}){const{getSubscription:i}=w.createSubscriptionsService(),{data:c,execute:r,apiStatus:t,error:p,isPending:u}=m.useService({service:()=>i({id:n,expanded:!0})});return{subscription:c,withPlanData:d=>x(d),apiStatus:t,error:p,get:r,isPending:u}}exports.useSubscription=B;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=require("vue"),d=require("./customElements-
|
|
1
|
+
const o=require("vue"),d=require("./customElements-DUMRMFQ5.js");function s(){const{$t:e}=d.useIntl(),l=o.computed(()=>({DAY:{literal:{singular:e({defaultMessage:"day",id:"time_period.day.singular",description:"The singular form of the day time period"}),plural:e({defaultMessage:"days",id:"time_period.day.plural",description:"The plural form of the day time period"})},full:e({defaultMessage:"daily",id:"time_period.day.full",description:"The full form of the day time period"})},WEEK:{literal:{singular:e({defaultMessage:"week",id:"time_period.week.singular",description:"The singular form of the week time period"}),plural:e({defaultMessage:"weeks",id:"time_period.week.plural",description:"The plural form of the week time period"})},full:e({defaultMessage:"weekly",id:"time_period.week.full",description:"The full form of the week time period"})},MONTH:{literal:{singular:e({defaultMessage:"month",id:"time_period.month.singular",description:"The singular form of the month time period"}),plural:e({defaultMessage:"months",id:"time_period.month.plural",description:"The plural form of the month time period"})},full:e({defaultMessage:"monthly",id:"time_period.month.full",description:"The full form of the month time period"})},YEAR:{literal:{singular:e({defaultMessage:"year",id:"time_period.year.singular",description:"The singular form of the year time period"}),plural:e({defaultMessage:"years",id:"time_period.year.plural",description:"The plural form of the year time period"})},full:e({defaultMessage:"yearly",id:"time_period.year.full",description:"The full form of the year time period"})}}));return{map:l,formatTimePeriod:(r,i={short:!1,hideValueForExactPeriods:!1,singular:!1})=>{const a=r.value??1,t=l.value[r.type].literal[i.singular||+a==1?"singular":"plural"].toLowerCase();return`${i.prefix&&!i.short?`${i.prefix} `:""}${i.hideValueForExactPeriods&&a===1?t:`${a} ${t}`}`},formatTimePeriodLiteral:(r,i={singular:!1})=>l.value[r].literal[i.singular?"singular":"plural"]}}exports.useTimePeriod=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=require("vue");function i(d,u,n){let e;t.watch(d,(c,o)=>{clearTimeout(e);const r=t.toValue(n.debounce);if(r<=0){u(c,o);return}e=setTimeout(()=>u(c,o),r)},{deep:n.deep}),t.onUnmounted(()=>clearTimeout(e))}exports.useWatchDebounced=i;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { watch as c, toValue as i, onUnmounted as d } from "vue";
|
|
2
|
+
function f(m, t, o) {
|
|
3
|
+
let e;
|
|
4
|
+
c(
|
|
5
|
+
m,
|
|
6
|
+
(u, n) => {
|
|
7
|
+
clearTimeout(e);
|
|
8
|
+
const r = i(o.debounce);
|
|
9
|
+
if (r <= 0) {
|
|
10
|
+
t(u, n);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
e = setTimeout(() => t(u, n), r);
|
|
14
|
+
},
|
|
15
|
+
{ deep: o.deep }
|
|
16
|
+
), d(() => clearTimeout(e));
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
f as u
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solvimon/solvimon-web",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.27",
|
|
4
4
|
"description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
|
|
5
5
|
"private": false,
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20.19.0"
|
|
8
|
+
},
|
|
6
9
|
"publishConfig": {
|
|
7
10
|
"access": "public",
|
|
8
11
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -11,7 +14,7 @@
|
|
|
11
14
|
"analyze": "vite-bundle-visualizer",
|
|
12
15
|
"prebuild": "npm run build:css && npm run type-check",
|
|
13
16
|
"build": "vite build",
|
|
14
|
-
"build:internal": "SOLVIMON_INTERNAL_ENVIRONMENTS=1 npm run build",
|
|
17
|
+
"build:internal": "SOLVIMON_INTERNAL_ENVIRONMENTS=1 npm run build -- --mode development",
|
|
15
18
|
"build:css": "tailwindcss -i ./src/assets/index.css -o ./.sdk/tailwind.css",
|
|
16
19
|
"dev": "npm run watch",
|
|
17
20
|
"playground:dev": "npm --prefix playground run dev",
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
29
32
|
"prewatch": "npm run build:css",
|
|
30
33
|
"watch": "run-p watch:js watch:css",
|
|
31
|
-
"watch:js": "SOLVIMON_INTERNAL_ENVIRONMENTS=1 vite build --watch",
|
|
34
|
+
"watch:js": "SOLVIMON_INTERNAL_ENVIRONMENTS=1 vite build --watch --mode development",
|
|
32
35
|
"watch:css": "npm run build:css -- --watch",
|
|
33
36
|
"translations:extract": "formatjs extract 'src/**/*.{ts,vue}*' --ignore='**/*.d.ts' --out-file 'src/translations/source.json' --flatten --additional-function-names '$t'",
|
|
34
37
|
"translations:compile": "formatjs compile 'src/translations/source.json' --out-file 'src/translations/locales/en-US.json'",
|
|
@@ -49,7 +52,7 @@
|
|
|
49
52
|
"version:prerelease": "npm version prerelease --no-git-tag-version",
|
|
50
53
|
"changelog:check": "node scripts/check-changelog.mjs",
|
|
51
54
|
"publish:guard": "node scripts/publish-guard.mjs",
|
|
52
|
-
"prepublishOnly": "npm run publish:guard && npm run changelog:check && npm run build && npm run bundle:check-contents",
|
|
55
|
+
"prepublishOnly": "npm run publish:guard && npm run changelog:check && npm run build && npm run bundle:check-contents && npm run types:check-published && npm run types:check-consumer",
|
|
53
56
|
"prepare": "husky"
|
|
54
57
|
},
|
|
55
58
|
"lint-staged": {
|
|
@@ -172,25 +175,25 @@
|
|
|
172
175
|
"vue": ">=3.5.0"
|
|
173
176
|
},
|
|
174
177
|
"dependencies": {
|
|
175
|
-
"@adyen/adyen-web": "^6.14.0"
|
|
176
|
-
"@stripe/stripe-js": "^9.8.0",
|
|
177
|
-
"jwt-decode": "^4.0.0"
|
|
178
|
+
"@adyen/adyen-web": "^6.14.0"
|
|
178
179
|
},
|
|
179
180
|
"devDependencies": {
|
|
180
181
|
"@commitlint/cli": "^20.5.3",
|
|
181
182
|
"@commitlint/config-conventional": "^20.5.3",
|
|
182
183
|
"@formatjs/cli": "^6.6.1",
|
|
183
184
|
"@playwright/test": "^1.57.0",
|
|
184
|
-
"@solvimon/solvimon-types": "^1.0
|
|
185
|
-
"@solvimon/solvimon-ui": "^1.
|
|
185
|
+
"@solvimon/solvimon-types": "^1.2.0",
|
|
186
|
+
"@solvimon/solvimon-ui": "^1.12.0",
|
|
187
|
+
"@stripe/stripe-js": "^9.8.0",
|
|
186
188
|
"@tsconfig/node22": "^22.0.0",
|
|
187
189
|
"@types/jsdom": "^21.1.7",
|
|
188
190
|
"@types/node": "^22.10.2",
|
|
189
191
|
"@typescript-eslint/parser": "^8.46.2",
|
|
190
192
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
191
|
-
"@vitest/coverage-v8": "^
|
|
193
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
192
194
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
193
195
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
196
|
+
"@vue/language-core": "^3.1.5",
|
|
194
197
|
"@vue/test-utils": "^2.4.6",
|
|
195
198
|
"@vue/tsconfig": "^0.7.0",
|
|
196
199
|
"@vuelidate/core": "^2.0.3",
|
|
@@ -206,6 +209,7 @@
|
|
|
206
209
|
"glob": "^11.0.1",
|
|
207
210
|
"husky": "^9.1.7",
|
|
208
211
|
"jsdom": "^26.0.0",
|
|
212
|
+
"jwt-decode": "^4.0.0",
|
|
209
213
|
"lint-staged": "^16.4.0",
|
|
210
214
|
"npm-run-all2": "^7.0.2",
|
|
211
215
|
"postcss": "^8.5.23",
|
|
@@ -216,10 +220,11 @@
|
|
|
216
220
|
"tsx": "^4.22.4",
|
|
217
221
|
"typescript": "~5.6.3",
|
|
218
222
|
"vite": "^6.4.2",
|
|
219
|
-
"vite-plugin-dts": "^
|
|
220
|
-
"vitest": "^
|
|
223
|
+
"vite-plugin-dts": "^5.1.2",
|
|
224
|
+
"vitest": "^4.1.11",
|
|
221
225
|
"vitest-localstorage-mock": "^0.1.2",
|
|
222
|
-
"vue
|
|
226
|
+
"vue": "^3.5.43",
|
|
227
|
+
"vue-tsc": "^3.1.5"
|
|
223
228
|
},
|
|
224
229
|
"overrides": {
|
|
225
230
|
"@tiptap/core": "^3.31.2",
|
|
@@ -231,7 +236,8 @@
|
|
|
231
236
|
"@tiptap/extension-drag-handle": "^3.31.2",
|
|
232
237
|
"@tiptap/extension-drag-handle-vue-3": "^3.31.2",
|
|
233
238
|
"@tiptap/extension-node-range": "^3.31.2",
|
|
234
|
-
"@tiptap/extension-placeholder": "^3.31.2"
|
|
239
|
+
"@tiptap/extension-placeholder": "^3.31.2",
|
|
240
|
+
"postcss-selector-parser": "^7.1.6"
|
|
235
241
|
},
|
|
236
242
|
"optionalDependencies": {
|
|
237
243
|
"vite-bundle-visualizer": "^1.2.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=require("vue"),a=require("./Button.vue.es-CeUTAc2n.js"),l=require("./CustomerBillingInformation.vue.es-yrLGc7oL.js"),u=require("./customElements-hH6pju3X.js"),m=require("./Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),f=require("./useActionDispatchProvider-CKzeqXzY.js"),_=require("./configuration-akTS7Wiw.js"),v=t.defineComponent({__name:"BillingInformation",props:{customer:{type:Object},isLoading:{type:Boolean},configuration:{type:Object}},emits:["edit-billing-information"],setup(e){const n={showEditButton:!0},o=e,s=t.computed(()=>_.resolveConfiguration(n,o.configuration)),{$t:r}=u.useIntl(),{dispatchAction:c}=f.useActionDispatchProvider();return(d,i)=>e.isLoading?(t.openBlock(),t.createBlock(m._sfc_main,{key:0,variant:"section",class:"sv-billing-information sv-root sv-component sv-loading min-h-[100px]","data-testid":"billing-information-skeleton"})):(t.openBlock(),t.createBlock(t.unref(l._sfc_main),{key:1,class:"sv-billing-information sv-root sv-component",customer:e.customer,"fallback-to-reference":!1},t.createSlots({_:2},[s.value.showEditButton?{name:"settings",fn:t.withCtx(()=>[t.createVNode(t.unref(a._sfc_main),{size:"sm",intent:"subtle","icon-prefix":"edit",class:"sv-action sv-action--ghost sv-billing-information__edit",onClick:i[0]||(i[0]=g=>t.unref(c)({action:"edit-billing-information"}))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)({defaultMessage:"Edit",id:"customer_overview.billing_information_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer billing information"})),1)]),_:1})]),key:"0"}:void 0]),1032,["customer"]))}});exports._sfc_main=v;
|