@solvimon/solvimon-web 0.1.0-alpha.24 → 0.1.0-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs} +6 -6
- package/dist/{Avatar.vue.es-DzjFvLuK.mjs → Avatar.vue.es-C9Jkfuvp.mjs} +1 -1
- package/dist/{Avatar.vue.es-nr8srGuK.js → Avatar.vue.es-CvxRdCes.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js → BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs} +4 -4
- package/dist/{Button.vue.es-PbJFK8z7.mjs → Button.vue.es-BbSN0uOk.mjs} +1 -1
- package/dist/{Button.vue.es-TCF-bvDF.js → Button.vue.es-CeUTAc2n.js} +1 -1
- package/dist/{Checkout.entry.ce-DHFx5Vnb.mjs → Checkout.entry.ce-BMzK8nQg.mjs} +24 -24
- package/dist/{Checkout.entry.ce-D8O4qJ24.js → Checkout.entry.ce-DgA0ckyl.js} +2 -2
- package/dist/{Chip.vue.es-CAoisngJ.js → Chip.vue.es-BN83K3Tk.js} +1 -1
- package/dist/{Chip.vue.es-DpcOM3Ai.mjs → Chip.vue.es-T22Q7AF9.mjs} +2 -2
- package/dist/{ContextMenu.vue.es-tAuFp-6i.mjs → ContextMenu.vue.es-0PRmCAzL.mjs} +4 -4
- package/dist/{ContextMenu.vue.es-kzZ3JJHG.js → ContextMenu.vue.es-DXKR7WFg.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-BQSl9q6W.mjs → CustomerBillingInformation.vue.es-C2j40TYP.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-Nac6HgLo.js → CustomerBillingInformation.vue.es-yrLGc7oL.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs} +5 -5
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs} +14 -14
- package/dist/{DividerText.vue.es-CSE7a-T0.mjs → DividerText.vue.es-CV1XK_Vz.mjs} +1 -1
- package/dist/{DividerText.vue.es-LJ2kZakb.js → DividerText.vue.es-DsYRZzuE.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js} +1 -1
- package/dist/{ErrorNotification.vue.es-CVUuIt8Z.mjs → ErrorNotification.vue.es-CiUJva6S.mjs} +1 -1
- package/dist/{ErrorNotification.vue.es-BF6swP7o.js → ErrorNotification.vue.es-QfRoDhkn.js} +1 -1
- package/dist/{IconButton.vue.es-DGflbWFk.mjs → IconButton.vue.es-ChvsCZQG.mjs} +2 -2
- package/dist/{IconButton.vue.es-CB1lIPao.js → IconButton.vue.es-CytBZUkZ.js} +1 -1
- package/dist/{IconTitle.vue.es-BsdjyGlQ.mjs → IconTitle.vue.es-DPruIJ6l.mjs} +3 -3
- package/dist/{IconTitle.vue.es-CMO8EyQl.js → IconTitle.vue.es-DtnpBObk.js} +1 -1
- package/dist/{Input.vue.es-CREdT4nB.js → Input.vue.es-BkzQDkrz.js} +1 -1
- package/dist/{Input.vue.es-BFbiFXsU.mjs → Input.vue.es-DJQqJrsb.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-JtOIQ6SJ.mjs → InvoiceSummary.vue.es-6qpbyymg.mjs} +7 -7
- package/dist/{InvoiceSummary.vue.es-BOnvORpf.js → InvoiceSummary.vue.es-v1TkOUhA.js} +1 -1
- package/dist/{Modal.vue.es-jT61xK_A.mjs → Modal.vue.es-BuRlbyZw.mjs} +5 -5
- package/dist/{Modal.vue.es-BbdtdxsO.js → Modal.vue.es-JpE0eh_Q.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs} +4 -4
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs} +3 -3
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js} +1 -1
- package/dist/{PaymentHistoryBlock-quvnCSFV.mjs → PaymentHistoryBlock-DnmParhQ.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-Dw2wOiAI.js → PaymentHistoryBlock-uWuWjr8I.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-CQjUZi22.mjs → PaymentIntegrationForm-DL55i0HD.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-D1oJREmH.js → PaymentIntegrationForm-DTXm56QQ.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs} +3 -3
- package/dist/{PaymentIntegrationFormAdyen-BQXXwpUK.js → PaymentIntegrationFormAdyen-C9KoiqMh.js} +3 -3
- package/dist/{PaymentIntegrationFormAdyen-CyZk9ofV.mjs → PaymentIntegrationFormAdyen-Cqsy82To.mjs} +74 -68
- package/dist/{PaymentIntegrationFormStripe-D-GaLHwc.mjs → PaymentIntegrationFormStripe-DIU1rnwH.mjs} +4 -4
- package/dist/{PaymentIntegrationFormStripe-Bs4F7oK_.js → PaymentIntegrationFormStripe-DTLgGutU.js} +1 -1
- package/dist/{PaymentMethod.vue.es-CXV_ThBY.js → PaymentMethod.vue.es-ZWda5GqF.js} +1 -1
- package/dist/{PaymentMethod.vue.es-C0j580g7.mjs → PaymentMethod.vue.es-m1NasGqw.mjs} +3 -3
- package/dist/{PaymentMethodForm-CDV5LR8i.js → PaymentMethodForm-BEVdWCrH.js} +1 -1
- package/dist/{PaymentMethodForm-Bf2Ps6eV.mjs → PaymentMethodForm-BYzt1PVP.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs} +5 -5
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js} +1 -1
- package/dist/{PlanCustomizationEditor-0kEXoOcM.js → PlanCustomizationEditor-CunwwXTw.js} +1 -1
- package/dist/{PlanCustomizationEditor-Dv69xPbX.mjs → PlanCustomizationEditor-NLVkEYFF.mjs} +9 -9
- package/dist/{PricingGroupRangeInput.vue.es-CP7-dmxS.mjs → PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-Ba3v0J_R.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js} +1 -1
- package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-CHrcqSRq.js} +1 -1
- package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-CkhBp9kI.mjs} +2 -2
- package/dist/{Section.vue.es-CBZx5x53.js → Section.vue.es-CSrVPlUK.js} +1 -1
- package/dist/{Section.vue.es-KRsHeFoT.mjs → Section.vue.es-D5svcVS_.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.mjs} +6 -6
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js} +1 -1
- package/dist/{SubscriptionSchedules-1ikoGncQ.js → SubscriptionSchedules-CMVoB2bw.js} +1 -1
- package/dist/{SubscriptionSchedules-B6b6xf-E.mjs → SubscriptionSchedules-yDcsD1hd.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs} +11 -11
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs} +2 -2
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs} +6 -6
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-nGFfHF1A.mjs → TooltipParagraph.vue.es-CxdL8-B7.mjs} +1 -1
- package/dist/{TooltipParagraph.vue.es-7IQdU3Tf.js → TooltipParagraph.vue.es-DS_69pl1.js} +1 -1
- package/dist/{TrialChip.vue.es-DhC5Bpmy.js → TrialChip.vue.es-BCc8q5j0.js} +1 -1
- package/dist/{TrialChip.vue.es-eKgO6an3.mjs → TrialChip.vue.es-BK7m7e7q.mjs} +2 -2
- package/dist/{cn.es-BLE3T5Rx.js → cn.es-71nFUose.js} +1 -1
- package/dist/{cn.es-BD7Afj5Q.mjs → cn.es-ZXNzpauQ.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 +6 -6
- 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 +9 -9
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
- 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 +3 -3
- 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-CSzbVZIH.js → customElements-hH6pju3X.js} +2 -2
- package/dist/{customElements-DT1YyL4O.mjs → customElements-q_i9y0Ph.mjs} +5 -5
- package/dist/{customer-Cq4fF__H.mjs → customer-BDoOIAFr.mjs} +1 -1
- package/dist/{customer-CJonIvSm.js → customer-C9q6ti8s.js} +1 -1
- package/dist/{de-DE-CyvjSD9b.mjs → de-DE-B_ik9VNt.mjs} +1 -0
- package/dist/{de-DE-DXsDvO5y.js → de-DE-npBTLtKL.js} +1 -1
- package/dist/{en-US-xQrWj8qI.mjs → en-US-DkCltadt.mjs} +1 -0
- package/dist/{en-US-DHdI11k9.js → en-US-kGduGoka.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-EamWI_jz.js → invoices-CHp75zZI.js} +1 -1
- package/dist/{invoices-CVZOfEOY.mjs → invoices-DIzkXntV.mjs} +1 -1
- package/dist/{it-IT-CcRIzP1A.js → it-IT-BayNIAy7.js} +1 -1
- package/dist/{it-IT-C09oObBM.mjs → it-IT-CHj2McbF.mjs} +1 -0
- package/dist/{nl-NL-5PrgQl8q.js → nl-NL-0rV4nFLw.js} +1 -1
- package/dist/{nl-NL-BhNND_yi.mjs → nl-NL-Cdvd_XMN.mjs} +1 -0
- package/dist/{paymentMethods-Bwym8l9a.js → paymentMethods-CZGP6_4W.js} +1 -1
- package/dist/{paymentMethods-By1SebnO.mjs → paymentMethods-DEKp_4QM.mjs} +1 -1
- package/dist/{payments-BYZLQTJ-.mjs → payments-C0-Hq2a4.mjs} +1 -1
- package/dist/{payments-Dnjg9Se4.js → payments-DBvregE8.js} +1 -1
- 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 +11 -11
- 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 +18 -18
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +18 -18
- package/dist/{subscriptions-Gj3KgCZz.mjs → subscriptions--9MaTXMb.mjs} +1 -1
- package/dist/{subscriptions-BKER9RUc.js → subscriptions-BArXBCFr.js} +1 -1
- package/dist/{useActionDispatchProvider-MjTckd4f.mjs → useActionDispatchProvider-BdciAX8T.mjs} +1 -1
- package/dist/{useActionDispatchProvider-DDHrhy3i.js → useActionDispatchProvider-CKzeqXzY.js} +1 -1
- package/dist/{useCustomer-CxnF7r8Z.mjs → useCustomer-D8ixhuuj.mjs} +1 -1
- package/dist/{useCustomer-BW0DBEJh.js → useCustomer-DSYr0F58.js} +1 -1
- package/dist/{useCustomerFormLabels-C773h3J0.js → useCustomerFormLabels-CRumh405.js} +1 -1
- package/dist/{useCustomerFormLabels-zPc8QrwJ.mjs → useCustomerFormLabels-htMZ0xqB.mjs} +5 -5
- package/dist/{useExperimentalFeature-9teNYGuP.js → useExperimentalFeature-D29-TO3R.js} +1 -1
- package/dist/{useExperimentalFeature-NsSDg-e3.mjs → useExperimentalFeature-JK_kAUQQ.mjs} +1 -1
- package/dist/{useInvoiceData-GQwk6fl4.mjs → useInvoiceData-Bpbog3zW.mjs} +2 -2
- package/dist/{useInvoiceData-DvV2AsgC.js → useInvoiceData-DhrItfv7.js} +1 -1
- package/dist/{useInvoicesList-CGmFSQSg.mjs → useInvoicesList-BGwcJn4I.mjs} +7 -7
- package/dist/{useInvoicesList-Xnth6s6U.js → useInvoicesList-duu_b5GW.js} +1 -1
- package/dist/{useLoadInitialData-BvvaWeAe.mjs → useLoadInitialData-BDmmpcfb.mjs} +1 -1
- package/dist/{useLoadInitialData-Cjkc70u-.js → useLoadInitialData-U2WvBmXT.js} +1 -1
- package/dist/{usePaymentMethodAvailability-DKyscbom.js → usePaymentMethodAvailability-DwtT5Czz.js} +1 -1
- package/dist/{usePaymentMethodAvailability-BWaaj3N3.mjs → usePaymentMethodAvailability-adqRujTA.mjs} +4 -4
- package/dist/{usePaymentMethodOptions-DuXKS36F.js → usePaymentMethodOptions-CXdFKFqZ.js} +1 -1
- package/dist/{usePaymentMethodOptions-l-wVAmIW.mjs → usePaymentMethodOptions-DlZtTQNQ.mjs} +1 -1
- package/dist/{usePaymentMethods-DvQVnsSV.mjs → usePaymentMethods-BnmSo_rr.mjs} +1 -1
- package/dist/{usePaymentMethods-BDFVB-kK.js → usePaymentMethods-DZ1a0mnr.js} +1 -1
- package/dist/{usePayments-CIJocDhR.js → usePayments-DL4agK2i.js} +1 -1
- package/dist/{usePayments-D_dyuf6S.mjs → usePayments-s-Z1di8d.mjs} +6 -6
- package/dist/{usePortal-Br5lYuPT.mjs → usePortal-C4rR5Rhu.mjs} +1 -1
- package/dist/{usePortal-BU4ibdWq.js → usePortal-Hm7wvtgQ.js} +1 -1
- package/dist/{useSubscription-DRBUt9H5.js → useSubscription-DMAEJves.js} +1 -1
- package/dist/{useSubscription-CqRae2I9.mjs → useSubscription-DSsXVO0h.mjs} +1 -1
- package/dist/{useTimePeriod.es-BxIGnCAP.mjs → useTimePeriod.es-CW8ycmpT.mjs} +1 -1
- package/dist/{useTimePeriod.es-DDos3-EH.js → useTimePeriod.es-anHB63am.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="-",t={"add_payment_method_modal.cancel_button.label":"Annuleren","add_payment_method_modal.confirm_button.label":"Betaalmethode opslaan","add_payment_method_modal.subtitle":"Voeg een nieuwe betaalmethode toe om mee te betalen.","add_payment_method_modal.title":"Betaalmethode toevoegen","addon_multiple_editor.add_to_subscription_button":"Toevoegen aan abonnement","addon_multiple_editor.description":"Selecteer een of meer producten","addon_single_editor.description.at_least_one":"Selecteer minimaal één product","addon_single_editor.description.at_most_one":"Selecteer maximaal één product","addon_single_editor.description.exactly_one":"Selecteer één product","auto_topup_cancellation_modal.cancel":"Annuleren","auto_topup_cancellation_modal.confirm":"Ja, zet het uit","auto_topup_cancellation_modal.explanation":"Je saldo wordt niet meer automatisch bijgevuld. Je kunt nog altijd zelf bijvullen wanneer je wilt.","auto_topup_cancellation_modal.explanation_with_amount":"Je saldo wordt niet meer met {amount} bijgevuld wanneer het onder {threshold} komt. Je kunt nog altijd zelf bijvullen wanneer je wilt.","auto_topup_cancellation_modal.explanation_with_threshold":"Je saldo wordt niet meer automatisch bijgevuld wanneer het onder {threshold} komt. Je kunt nog altijd zelf bijvullen wanneer je wilt.","auto_topup_cancellation_modal.failed":"Automatisch bijvullen kon niet worden uitgezet. Probeer het later opnieuw.","auto_topup_cancellation_modal.title":"Automatisch bijvullen uitzetten","auto_topup_config.amount.at_least_minimum":"Waardeer op met minstens {minimum}.","auto_topup_config.amount.label":"Opwaarderen met","auto_topup_config.amount.positive":"Waardeer op met meer dan nul.","auto_topup_config.amount.required":"Vul het bedrag in om mee op te waarderen.","auto_topup_config.amount.within_maximum":"Waardeer op met maximaal {maximum}.","auto_topup_config.subtitle":"Waardeer je saldo automatisch op zodra het laag wordt.","auto_topup_config.threshold.label":"Wanneer je saldo lager wordt dan","auto_topup_config.threshold.not_negative":"De stand waarop wordt bijgevuld kan niet negatief zijn.","auto_topup_config.threshold.required":"Vul het saldo in waarbij er opgewaardeerd wordt.","auto_topup_config.title":"Automatisch opwaarderen","auto_topup_modal.add_payment_method.cancel":"Terug","auto_topup_modal.add_payment_method.confirm":"Betaalmethode toevoegen","auto_topup_modal.add_payment_method.subtitle":"Met deze methode wordt elke automatische bijvulling betaald.","auto_topup_modal.add_payment_method.title":"Betaalmethode toevoegen","auto_topup_modal.cancel":"Annuleren","auto_topup_modal.confirm":"Opslaan","auto_topup_modal.payment_method.label":"Automatische bijvullingen betalen met","auto_topup_modal.payment_method.required":"Selecteer een betaalmethode om automatische bijvullingen te betalen.","auto_topup_modal.subtitle":"Je saldo is {balance}.","auto_topup_modal.title":"Automatisch bijvullen","billing_information_form.submit_button.label":"Wijzigingen opslaan","checkout.address.city.placeholder":"Stad...","checkout.address.line1.placeholder":"Adresregel 1...","checkout.address.line2.placeholder":"Adresregel 2...","checkout.address.portal_code.placeholder":"Postcode...","checkout.address.state.placeholder":"Provincie...","checkout.address.title":"Factuuradres","checkout.agreement.subscription":"{subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, long}.","checkout.agreement.trial":"{discounted_amount} voor {trial_period}, daarna {subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, ::MMMMd}.","checkout.agreement.trial.free":"Gratis","checkout.billing_details.add_billing_details_button.label":"Meer factuurgegevens","checkout.billing_details.remove_billing_details_button.label":"Factuurgegevens verwijderen","checkout.billing_information_block.title":"Factuurgegevens","checkout.company_purchase_toggle.sub_title":"Ik koop namens een bedrijf","checkout.company_purchase_toggle.title":"Zakelijke aankoop","checkout.contact_information_block.title":"Klantgegevens","checkout.country.label":"Factuurland","checkout.customize_plan_block.title":"Plan aanpassen","checkout.email_address.label":"E-mailadres","checkout.email_address.placeholder":"E-mailadres...","checkout.express_payment_methods.divider_text":"Of","checkout.express_payment_methods.title":"Direct abonneren met","checkout.first_name.label":"Voornaam","checkout.first_name.placeholder":"Voornaam...","checkout.invoice_preview.no_country_selected_message":"Selecteer eerst een land","checkout.invoice_preview.usage_based_message":"+ Gebruik","checkout.last_name.label":"Achternaam","checkout.last_name.placeholder":"Achternaam...","checkout.legal_name.label":"Naam rechtspersoon","checkout.legal_name.placeholder":"Naam rechtspersoon...","checkout.not_available.contact_support_message":"deze pagina om het opnieuw te proberen, of neem contact op met de klantenservice.","checkout.not_available.description":"De betaalpagina is momenteel niet beschikbaar.","checkout.not_available.reload_button":"Herladen","checkout.not_available.title":"Betaalpagina niet beschikbaar","checkout.optional_suffix.label":"(optioneel)","checkout.order_summary_block.billing_period.label":"Gefactureerd per {period}","checkout.order_summary_block.billing_period.per_label":"/{period}","checkout.order_summary_block.billing_period.per_quarter":"/kwartaal","checkout.order_summary_block.billing_period.quarterly":"Gefactureerd per kwartaal","checkout.order_summary_block.billing_period.save_badge.prefix":"Bespaar {amount}","checkout.order_summary_block.billing_period.save_badge.suffix":"/jaar","checkout.order_summary_block.billing_period.sub_label":"{amount} per {period}","checkout.order_summary_block.title":"Besteloverzicht","checkout.page_title":"Betalen en abonneren","checkout.pay_and_subscribe_button.label":"Betalen en abonneren","checkout.pay_and_subscribe_button_trial.label":"Proefperiode starten","checkout.payment_method_block.load_failed_message":"Controleer je verbinding en probeer het opnieuw.","checkout.payment_method_block.load_failed_retry_button.label":"Opnieuw proberen","checkout.payment_method_block.load_failed_title":"Betaalmethoden konden niet worden geladen","checkout.payment_method_block.no_country_selected_message":"Betaalmethoden worden getoond zodra je het factuurland hebt geselecteerd.","checkout.payment_method_block.no_country_selected_title":"Selecteer je factuurland","checkout.payment_method_block.no_payment_methods_available_title":"Geen betaalmethoden beschikbaar","checkout.payment_method_block.title":"Betaalmethode","checkout.promotion_code.add_label":"Promotiecode toevoegen","checkout.promotion_code.applied_label":"Promotie toegepast","checkout.promotion_code.applied_status":"Promotiecode toegepast","checkout.promotion_code.apply_aria_label":"Promotiecode toepassen","checkout.promotion_code.apply_button":"Toepassen","checkout.promotion_code.apply_failed":"Promotiecode kon niet worden toegepast. Probeer het opnieuw.","checkout.promotion_code.collapse_aria_label":"Invoerveld voor promotiecode samenvouwen","checkout.promotion_code.expand_aria_label":"Invoerveld voor promotiecode uitvouwen","checkout.promotion_code.input_aria_label":"Promotiecode","checkout.promotion_code.placeholder":"Promotiecode","checkout.promotion_code.remove_aria_label":"Promotiecode verwijderen","checkout.promotion_code.remove_failed":"Promotiecode kon niet worden verwijderd. Probeer het opnieuw.","checkout.promotion_code.removed_status":"Promotiecode verwijderd","checkout.subscription_description":"Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, vanaf vandaag.","checkout.subscription_description_without_price":"per {period_name}, vanaf vandaag","checkout.trial.label":"Proefperiode","checkout.trial_period_description":"Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, startend op {startDate, date, long}.","checkout.trial_period_description_without_price":"per {period_name}, startend op {startDate, date, long}","checkout.vat_number.check_button.label":"Controleren","checkout.vat_number.label":"BTW-nummer","checkout.vat_number.placeholder":"BTW-nummer...","components.payment_method_form.continue_button.label":"Doorgaan","components.payment_method_form.section_title":"Beschikbare betaalmethoden","components.payment_method_form.submit_button.label":"Betaalmethode opslaan","converted_amount_input.bounds.maximum":"Tot {maximum} {unit}","converted_amount_input.bounds.minimum":"Minstens {minimum} {unit}","converted_amount_input.bounds.range":"Tussen {minimum} en {maximum} {unit}","converted_amount_input.buys":"Levert ongeveer {credits} op","converted_amount_input.cost":"Kost {amount} exclusief belastingen","converted_amount_input.credits":"credits","customer.invoice_table.pay_invoice_button.label":"Betalen","customer.subscriptions_block.next_billing_date":"Volgende factuurdatum","customer.subscriptions_block.show_details_button_label":"Abonnementsdetails","customer_overview.billing_information_block.view_all_payment_methods_link_label":"Bewerken","customer_overview.payment_methods.title":"{count,plural,one{Betaalmethode} other{Betaalmethoden}}","customer_overview.payment_methods_block.add_payment_method_button_label":"Betaalmethode toevoegen","customer_overview.payment_methods_block.add_payment_method_helper_text":"Voeg een betaalmethode toe voor terugkerende factuurbetalingen.","customer_overview.payment_methods_block.view_all_payment_methods_link_label":"Alles weergeven","customer_overview.subscriptions_block.fallback_subscription_name":"Abonnement","customer_overview.subscriptions_block.no_active_subscription_content":"Er is geen actief abonnement om weer te geven.","customer_overview.subscriptions_block.no_active_subscription_title":"Geen abonnementen","customer_overview.subscriptions_block.title":"{count,plural,one{Mijn abonnement} other{Mijn abonnementen}}","customer_overview.subscriptions_block.view_all_button_label":"Alles weergeven","customer_overview.wallet_balances_block.title":"{count,plural,one{Wallet} other{Wallets}}",empty_value_placeholder:e,"enabled_pricings_list.item.price":"{amount} per {period}","enabled_pricings_list.item.upgrade_button.label":"Upgraden","enabled_pricings_list.title":"Upgrades","invoice_credits.balance.table_header":"Saldo","invoice_credits.credit_breakdown.table_header":"Kredietoverzicht","invoice_credits.remaining.table_header":"Resterend","invoice_credits.used.table_header":"Gebruikt","invoice_preview.taxes_not_determined_by_billing_information_tooltip":"Wordt bepaald aan de hand van de factuurgegevens","invoice_table.button.load_more":"Meer laden","invoice_table.chip.paid":"Betaald","invoice_table.header.amount":"Bedrag","invoice_table.header.date":"Datum","invoice_table.header.invoice_number":"Factuur","invoice_table.header.status":"Status","invoices_list.title":"Facturen","pay_button.label.amount_and_payment_method":"Betaal {amount} met {type}","pay_button.label.amount_only":"Betaal {amount}","pay_button.label.default":"Betalen","pay_invoice.error.description":"Probeer het opnieuw of neem contact op met de klantenservice.","pay_invoice.error.title":"Er is iets misgegaan","pay_invoice.paid.title":"Bedankt voor je betaling!","pay_invoice.payment_methods.title":"Betaalmethoden","pay_invoice.store_payment_method.label":"Deze betaalmethode opslaan voor toekomstige betalingen","pay_invoice.unavailable.download_invoice":"Factuur downloaden","payment_completed_card.redirect_message":"Je wordt doorgestuurd...","payment_completed_card.title.authorize":"Betaling geslaagd","payment_completed_card.title.tokenize":"Je betaalmethode is toegevoegd","payment_integration_form.select_payment_method_error":"Selecteer een betaalmethode","payment_method.context_menu.delete.label":"Verwijderen","payment_method.context_menu.set_as_default.label":"Instellen als standaard","payment_method_selector.add_payment_method":"Betaalmethode toevoegen","payment_method_selector.empty_state.title":"Geen betaalmethoden beschikbaar","payment_method_selector.no_payment_methods_available":"Er zijn geen beschikbare betaalmethoden. Neem contact op met de ondersteuning voor meer informatie.","payment_methods_list.delete_modal.body":"Weet u zeker dat u deze betaalmethode wilt verwijderen?","payment_methods_list.delete_modal.cancel":"Annuleren","payment_methods_list.delete_modal.confirm":"Verwijderen","payment_methods_list.delete_modal.error":"We konden deze betaalmethode niet verwijderen. Probeer het opnieuw.","payment_methods_list.delete_modal.title":"Betaalmethode verwijderen","payment_methods_unavailable_card.description.authorize":"Online betalen is niet ingesteld voor deze factuur. De partij die de factuur heeft verstuurd kan dit rechtstreeks met je afhandelen.","payment_methods_unavailable_card.description.authorize_with_seller":"Online betalen is niet ingesteld voor deze factuur. {sellerName} kan dit rechtstreeks met je afhandelen.","payment_methods_unavailable_card.description.tokenize":"Er zijn geen online betaalmethoden ingesteld.","payment_methods_unavailable_card.description.tokenize_with_seller":"Er zijn geen online betaalmethoden ingesteld. {sellerName} kan de betaling rechtstreeks met je regelen.","payment_methods_unavailable_card.title.authorize":"Deze factuur kan niet online worden betaald","payment_methods_unavailable_card.title.tokenize":"Er kunnen geen betaalmethoden worden toegevoegd","payments.error_card.authorization_failed.message":"De betaling kon niet worden voltooid. Probeer het opnieuw of gebruik een andere betaalmethode.","payments.error_card.authorization_failed.title":"Betaling mislukt","payments.error_card.payment_details_call_failed.message":"Er ging iets mis bij het bevestigen van je betaling.","payments.error_card.payment_details_call_failed.title":"Betaling kon niet worden bevestigd","payments.error_card.payment_integration_initialization_failed.message":"Het betaalformulier kon niet worden geladen.","payments.error_card.payment_integration_initialization_failed.title":"Betaalmethoden konden niet worden geladen","payments.error_card.payment_method_storage_failed.message":"Er ging iets mis bij het opslaan van je betaalmethode.","payments.error_card.payment_method_storage_failed.title":"Betaalmethode kon niet worden opgeslagen","payments.error_card.redirect_result_payment_acceptor_missing.message":"We konden je betaling niet koppelen aan deze bestelling.","payments.error_card.redirect_result_payment_acceptor_missing.title":"Betaling kon niet worden voltooid","payments.error_card.reference.copied.label":"Gekopieerd","payments.error_card.reference.copy.label":"Referentie kopiëren","payments.error_card.reference.description":"Deel deze referentie met de klantenservice als het probleem aanhoudt","payments.error_card.resource_revoked.message":"De link die je hebt gevolgd is verlopen of ingetrokken.","payments.error_card.resource_revoked.title":"Deze pagina is niet meer beschikbaar","payments.error_card.tokenize_failed.message":"Je betaalmethode kon niet worden opgeslagen. Probeer het opnieuw of gebruik een andere.","payments.error_card.tokenize_failed.title":"Betaalmethode kon niet worden opgeslagen","payments.error_card.unknown_error.message":"Er is een onbekende fout opgetreden","payments.error_card.unknown_error.title":"Er is iets misgegaan","payments.retry_button.label":"Opnieuw proberen","payments.sepa_mandate.authorisation":"Door deze machtiging te bevestigen machtig je {billingEntityName} om je bank opdracht te geven betalingen van je rekening te innen, en machtig je je bank om die opdrachten uit te voeren.","payments.sepa_mandate.authorisation_unnamed":"Door deze machtiging te bevestigen machtig je ons om je bank opdracht te geven betalingen van je rekening te innen, en machtig je je bank om die opdrachten uit te voeren.","payments.sepa_mandate.recurrence":"Deze bankrekening wordt automatisch gebruikt om volgende facturen van {billingEntityName} te betalen totdat je deze machtiging intrekt.","payments.sepa_mandate.recurrence_unnamed":"Deze bankrekening wordt automatisch gebruikt om volgende facturen te betalen totdat je deze machtiging intrekt.","payments.sepa_mandate.title":"SEPA-incassomachtiging — terugkerende betalingen","pricing_item_pricing.unsupported_pricing_error":"Niet-ondersteunde prijsstelling","screens.payment_method_management.description":"Voeg een nieuwe betaalmethode toe of stel een standaard betaalmethode in voor uw betalingen.","screens.payment_method_management.title":"Betaalmethoden","sdk.invoice_details.customer_billing_information.title":"Jouw factuur gegevens","sdk.invoice_details.invoice.download_pdf":"Download de PDF voor een volledig overzicht","sdk.invoice_details.invoice.title":"Factuur","sdk.invoice_details.invoice_details_block.due_date":"Vervaldatum","sdk.invoice_details.invoice_details_block.invoice_date":"Factuurdatum","sdk.invoice_details.invoice_details_block.title":"Factuurgegevens","sdk.invoice_details.payment_history.payment_attempt":"Betaalpoging","sdk.invoice_details.payment_history.title":"Betaalgeschiedenis","seats.label":"Seats","seats.price_per_seat_period":"{amount} per seat/{period}","seats.tiered_price_per_seat_period":"{amount} per seat/{period}","seats.tiered_pricing_label":"Staffelprijzen","seats.tiered_range_label":"{lower_bound} - {upper_bound} seats","seats.tiered_unbounded_range_label":"> {lower_bound} seats","secure_payments_kpi.generic":"Veilige en versleutelde betalingen","secure_payments_kpi.specific_vendor":"Veilige en versleutelde betalingen door","subscription_cancellation_modal.cancel.confirm_button.label":"Abonnement opzeggen","subscription_cancellation_modal.cancel.error":"We konden je abonnement niet opzeggen. Probeer het opnieuw.","subscription_cancellation_modal.cancel.explanation":"Je abonnement wordt opgezegd, maar je houdt toegang tot het einde van de factuurperiode.","subscription_cancellation_modal.cancel.explanation_with_date":"Je abonnement wordt opgezegd, maar je houdt toegang tot {date}.","subscription_cancellation_modal.cancel.title":"Abonnement opzeggen","subscription_cancellation_modal.cancel_button.label":"Annuleren","subscription_cancellation_modal.renew.confirm_button.label":"Abonnement verlengen","subscription_cancellation_modal.renew.error":"We konden je abonnement niet verlengen. Probeer het opnieuw.","subscription_cancellation_modal.renew.explanation":"Je abonnement loopt gewoon door en de facturatie hervat volgens het normale schema.","subscription_cancellation_modal.renew.explanation_with_date":"Je kunt je abonnement verlengen tot {date}. Daarna kun je alleen nog een nieuw abonnement afsluiten.","subscription_cancellation_modal.renew.title":"Abonnement verlengen","subscription_cancellation_modal.renews_label":"Verlengt op","subscription_details.cancel_button.label":"Abonnement opzeggen","subscription_details.cancel_success":"Je abonnement is opgezegd. Je houdt toegang tot het einde van de factuurperiode.","subscription_details.empty_state.message":"Dit abonnement is niet langer beschikbaar.","subscription_details.empty_state.title":"Abonnement niet gevonden","subscription_details.load_error":"Dit abonnement kon niet worden geladen. Probeer het later opnieuw.","subscription_details.renew_button.label":"Abonnement verlengen","subscription_details.renew_success":"Je abonnement is verlengd.","subscription_details.title":"Abonnementsdetails","subscription_management.done_button.label":"Klaar","subscription_management.payment_method_selector.label":"Betaalmethode","subscription_management.success.message":"Je {subject} is gewijzigd. Houd er rekening mee dat het even kan duren voordat deze wijziging in je abonnement te zien is.","subscription_management.success.message_generic":"Je abonnement is gewijzigd. Houd er rekening mee dat het even kan duren voordat deze wijziging in je abonnement te zien is.","subscription_management.success.title":"Abonnement bijgewerkt","subscription_management.summary.empty_state":"Kies je plan om te zien wat het kost.","subscription_management.summary.error":"Het totaal kon niet worden berekend. Probeer het opnieuw.","subscription_management.summary.title":"Besteloverzicht","subscription_management.summary.total_due_heading":"Totaal te betalen","subscription_management.title":"{subject} beheren","subscription_management.title.default_subject":"abonnement","subscription_management.update_button.label":"Abonnement bijwerken","subscription_management.update_error":"Er is iets misgegaan. Probeer het opnieuw.","subscription_payment_completed_card.thank_you_for_subscribing":"Bedankt voor je abonnement.","subscription_payment_completed_card.title":"Betaling geslaagd","subscription_schedules.title":"Schema's","tax_check.invalid_vat_number":"BTW-nummer is ongeldig.","tax_check.valid_vat_number":"BTW-nummer is geldig.","topup_modal.add_payment_method.subtitle":"Voeg een nieuwe betaalmethode toe om je saldo op te waarderen.","topup_modal.add_payment_method.title":"Betaalmethode toevoegen","topup_modal.back_button.label":"Terug","topup_modal.cancel_button.label":"Annuleren","topup_modal.confirm_button.empty.label":"Saldo opwaarderen","topup_modal.confirm_button.label":"Saldo opwaarderen met {value}","topup_modal.done_button.label":"Klaar","topup_modal.flexible_option.bounds":"Tussen {minimum} en {maximum}","topup_modal.flexible_option.label":"Kies je eigen bedrag","topup_modal.invoice_preview.label":"Je betaalt","topup_modal.payment_method_required":"Kies een betaalmethode om deze opwaardering mee te betalen.","topup_modal.payment_method_selector.label":"Betaalmethode","topup_modal.pricing_items.label":"Selecteer opwaardeerbedrag","topup_modal.save_payment_method.label":"Betaalmethode opslaan","topup_modal.subscriptions.label":"Op te waarderen abonnement","topup_modal.subtitle":"Je huidige saldo is {balance}.","topup_modal.success.modal_subtitle":"Je betaling is gelukt.","topup_modal.success.modal_title":"Opwaardering voltooid","topup_modal.success.receipt.heading":"Bon","topup_modal.title":"Saldo opwaarderen","units.label":"Eenheden","units.price_per_unit":"{amount} per eenheid","wallet_balance.credit_type_fallback_label":"Tegoed","wallet_balance.details.header":"Walletsaldo","wallet_balance.load_failed":"Walletsaldi konden niet worden geladen","wallet_balance.service_period_heading":"Serviceperiode - {startAt} - {endAt}"};exports.default=t;exports.empty_value_placeholder=e;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="-",t={"add_payment_method_modal.cancel_button.label":"Annuleren","add_payment_method_modal.confirm_button.label":"Betaalmethode opslaan","add_payment_method_modal.subtitle":"Voeg een nieuwe betaalmethode toe om mee te betalen.","add_payment_method_modal.title":"Betaalmethode toevoegen","addon_multiple_editor.add_to_subscription_button":"Toevoegen aan abonnement","addon_multiple_editor.description":"Selecteer een of meer producten","addon_single_editor.description.at_least_one":"Selecteer minimaal één product","addon_single_editor.description.at_most_one":"Selecteer maximaal één product","addon_single_editor.description.exactly_one":"Selecteer één product","auto_topup_cancellation_modal.cancel":"Annuleren","auto_topup_cancellation_modal.confirm":"Ja, zet het uit","auto_topup_cancellation_modal.explanation":"Je saldo wordt niet meer automatisch bijgevuld. Je kunt nog altijd zelf bijvullen wanneer je wilt.","auto_topup_cancellation_modal.explanation_with_amount":"Je saldo wordt niet meer met {amount} bijgevuld wanneer het onder {threshold} komt. Je kunt nog altijd zelf bijvullen wanneer je wilt.","auto_topup_cancellation_modal.explanation_with_threshold":"Je saldo wordt niet meer automatisch bijgevuld wanneer het onder {threshold} komt. Je kunt nog altijd zelf bijvullen wanneer je wilt.","auto_topup_cancellation_modal.failed":"Automatisch bijvullen kon niet worden uitgezet. Probeer het later opnieuw.","auto_topup_cancellation_modal.title":"Automatisch bijvullen uitzetten","auto_topup_config.amount.at_least_minimum":"Waardeer op met minstens {minimum}.","auto_topup_config.amount.label":"Opwaarderen met","auto_topup_config.amount.positive":"Waardeer op met meer dan nul.","auto_topup_config.amount.required":"Vul het bedrag in om mee op te waarderen.","auto_topup_config.amount.within_maximum":"Waardeer op met maximaal {maximum}.","auto_topup_config.subtitle":"Waardeer je saldo automatisch op zodra het laag wordt.","auto_topup_config.threshold.label":"Wanneer je saldo lager wordt dan","auto_topup_config.threshold.not_negative":"De stand waarop wordt bijgevuld kan niet negatief zijn.","auto_topup_config.threshold.required":"Vul het saldo in waarbij er opgewaardeerd wordt.","auto_topup_config.title":"Automatisch opwaarderen","auto_topup_modal.add_payment_method.cancel":"Terug","auto_topup_modal.add_payment_method.confirm":"Betaalmethode toevoegen","auto_topup_modal.add_payment_method.subtitle":"Met deze methode wordt elke automatische bijvulling betaald.","auto_topup_modal.add_payment_method.title":"Betaalmethode toevoegen","auto_topup_modal.cancel":"Annuleren","auto_topup_modal.confirm":"Opslaan","auto_topup_modal.payment_method.label":"Automatische bijvullingen betalen met","auto_topup_modal.payment_method.required":"Selecteer een betaalmethode om automatische bijvullingen te betalen.","auto_topup_modal.subtitle":"Je saldo is {balance}.","auto_topup_modal.title":"Automatisch bijvullen","billing_information_form.submit_button.label":"Wijzigingen opslaan","checkout.address.city.placeholder":"Stad...","checkout.address.line1.placeholder":"Adresregel 1...","checkout.address.line2.placeholder":"Adresregel 2...","checkout.address.portal_code.placeholder":"Postcode...","checkout.address.state.placeholder":"Provincie...","checkout.address.title":"Factuuradres","checkout.agreement.subscription":"{subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, long}.","checkout.agreement.trial":"{discounted_amount} voor {trial_period}, daarna {subscription_amount}/{billing_period} tot annulering, startend op {start_date, date, ::MMMMd}.","checkout.agreement.trial.free":"Gratis","checkout.billing_details.add_billing_details_button.label":"Meer factuurgegevens","checkout.billing_details.remove_billing_details_button.label":"Factuurgegevens verwijderen","checkout.billing_information_block.title":"Factuurgegevens","checkout.company_purchase_toggle.sub_title":"Ik koop namens een bedrijf","checkout.company_purchase_toggle.title":"Zakelijke aankoop","checkout.contact_information_block.title":"Klantgegevens","checkout.country.label":"Factuurland","checkout.customize_plan_block.title":"Plan aanpassen","checkout.email_address.label":"E-mailadres","checkout.email_address.placeholder":"E-mailadres...","checkout.express_payment_methods.divider_text":"Of","checkout.express_payment_methods.title":"Direct abonneren met","checkout.first_name.label":"Voornaam","checkout.first_name.placeholder":"Voornaam...","checkout.invoice_preview.no_country_selected_message":"Selecteer eerst een land","checkout.invoice_preview.usage_based_message":"+ Gebruik","checkout.last_name.label":"Achternaam","checkout.last_name.placeholder":"Achternaam...","checkout.legal_name.label":"Naam rechtspersoon","checkout.legal_name.placeholder":"Naam rechtspersoon...","checkout.not_available.contact_support_message":"deze pagina om het opnieuw te proberen, of neem contact op met de klantenservice.","checkout.not_available.description":"De betaalpagina is momenteel niet beschikbaar.","checkout.not_available.reload_button":"Herladen","checkout.not_available.title":"Betaalpagina niet beschikbaar","checkout.optional_suffix.label":"(optioneel)","checkout.order_summary_block.billing_period.label":"Gefactureerd per {period}","checkout.order_summary_block.billing_period.per_label":"/{period}","checkout.order_summary_block.billing_period.per_quarter":"/kwartaal","checkout.order_summary_block.billing_period.quarterly":"Gefactureerd per kwartaal","checkout.order_summary_block.billing_period.save_badge.prefix":"Bespaar {amount}","checkout.order_summary_block.billing_period.save_badge.suffix":"/jaar","checkout.order_summary_block.billing_period.sub_label":"{amount} per {period}","checkout.order_summary_block.title":"Besteloverzicht","checkout.page_title":"Betalen en abonneren","checkout.pay_and_subscribe_button.label":"Betalen en abonneren","checkout.pay_and_subscribe_button_trial.label":"Proefperiode starten","checkout.payment_method_block.load_failed_message":"Controleer je verbinding en probeer het opnieuw.","checkout.payment_method_block.load_failed_retry_button.label":"Opnieuw proberen","checkout.payment_method_block.load_failed_title":"Betaalmethoden konden niet worden geladen","checkout.payment_method_block.no_country_selected_message":"Betaalmethoden worden getoond zodra je het factuurland hebt geselecteerd.","checkout.payment_method_block.no_country_selected_title":"Selecteer je factuurland","checkout.payment_method_block.no_payment_methods_available_title":"Geen betaalmethoden beschikbaar","checkout.payment_method_block.title":"Betaalmethode","checkout.promotion_code.add_label":"Promotiecode toevoegen","checkout.promotion_code.applied_label":"Promotie toegepast","checkout.promotion_code.applied_status":"Promotiecode toegepast","checkout.promotion_code.apply_aria_label":"Promotiecode toepassen","checkout.promotion_code.apply_button":"Toepassen","checkout.promotion_code.apply_failed":"Promotiecode kon niet worden toegepast. Probeer het opnieuw.","checkout.promotion_code.collapse_aria_label":"Invoerveld voor promotiecode samenvouwen","checkout.promotion_code.expand_aria_label":"Invoerveld voor promotiecode uitvouwen","checkout.promotion_code.input_aria_label":"Promotiecode","checkout.promotion_code.placeholder":"Promotiecode","checkout.promotion_code.remove_aria_label":"Promotiecode verwijderen","checkout.promotion_code.remove_failed":"Promotiecode kon niet worden verwijderd. Probeer het opnieuw.","checkout.promotion_code.removed_status":"Promotiecode verwijderd","checkout.subscription_description":"Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, vanaf vandaag.","checkout.subscription_description_without_price":"per {period_name}, vanaf vandaag","checkout.trial.label":"Proefperiode","checkout.trial_period_description":"Je wordt gefactureerd voor <strong>{price}</strong> per {period_name}, startend op {startDate, date, long}.","checkout.trial_period_description_without_price":"per {period_name}, startend op {startDate, date, long}","checkout.vat_number.check_button.label":"Controleren","checkout.vat_number.label":"BTW-nummer","checkout.vat_number.placeholder":"BTW-nummer...","components.payment_method_form.continue_button.label":"Doorgaan","components.payment_method_form.section_title":"Beschikbare betaalmethoden","components.payment_method_form.submit_button.label":"Betaalmethode opslaan","converted_amount_input.bounds.maximum":"Tot {maximum} {unit}","converted_amount_input.bounds.minimum":"Minstens {minimum} {unit}","converted_amount_input.bounds.range":"Tussen {minimum} en {maximum} {unit}","converted_amount_input.buys":"Levert ongeveer {credits} op","converted_amount_input.cost":"Kost {amount} exclusief belastingen","converted_amount_input.credits":"credits","customer.invoice_table.pay_invoice_button.label":"Betalen","customer.subscriptions_block.next_billing_date":"Volgende factuurdatum","customer.subscriptions_block.show_details_button_label":"Abonnementsdetails","customer_overview.billing_information_block.view_all_payment_methods_link_label":"Bewerken","customer_overview.payment_methods.title":"{count,plural,one{Betaalmethode} other{Betaalmethoden}}","customer_overview.payment_methods_block.add_payment_method_button_label":"Betaalmethode toevoegen","customer_overview.payment_methods_block.add_payment_method_helper_text":"Voeg een betaalmethode toe voor terugkerende factuurbetalingen.","customer_overview.payment_methods_block.view_all_payment_methods_link_label":"Alles weergeven","customer_overview.subscriptions_block.fallback_subscription_name":"Abonnement","customer_overview.subscriptions_block.no_active_subscription_content":"Er is geen actief abonnement om weer te geven.","customer_overview.subscriptions_block.no_active_subscription_title":"Geen abonnementen","customer_overview.subscriptions_block.title":"{count,plural,one{Mijn abonnement} other{Mijn abonnementen}}","customer_overview.subscriptions_block.view_all_button_label":"Alles weergeven","customer_overview.wallet_balances_block.title":"{count,plural,one{Wallet} other{Wallets}}",empty_value_placeholder:e,"enabled_pricings_list.item.price":"{amount} per {period}","enabled_pricings_list.item.upgrade_button.label":"Upgraden","enabled_pricings_list.title":"Upgrades","invoice_credits.balance.table_header":"Saldo","invoice_credits.credit_breakdown.table_header":"Kredietoverzicht","invoice_credits.remaining.table_header":"Resterend","invoice_credits.used.table_header":"Gebruikt","invoice_preview.taxes_not_determined_by_billing_information_tooltip":"Wordt bepaald aan de hand van de factuurgegevens","invoice_table.button.load_more":"Meer laden","invoice_table.chip.paid":"Betaald","invoice_table.header.amount":"Bedrag","invoice_table.header.date":"Datum","invoice_table.header.invoice_number":"Factuur","invoice_table.header.status":"Status","invoices_list.title":"Facturen","pay_button.label.amount_and_payment_method":"Betaal {amount} met {type}","pay_button.label.amount_only":"Betaal {amount}","pay_button.label.default":"Betalen","pay_invoice.error.description":"Probeer het opnieuw of neem contact op met de klantenservice.","pay_invoice.error.title":"Er is iets misgegaan","pay_invoice.paid.title":"Bedankt voor je betaling!","pay_invoice.payment_methods.title":"Betaalmethoden","pay_invoice.store_payment_method.label":"Deze betaalmethode opslaan voor toekomstige betalingen","pay_invoice.unavailable.download_invoice":"Factuur downloaden","payment_completed_card.redirect_message":"Je wordt doorgestuurd...","payment_completed_card.title.authorize":"Betaling geslaagd","payment_completed_card.title.tokenize":"Je betaalmethode is toegevoegd","payment_integration_form.select_payment_method_error":"Selecteer een betaalmethode","payment_method.context_menu.delete.label":"Verwijderen","payment_method.context_menu.set_as_default.label":"Instellen als standaard","payment_method_selector.add_payment_method":"Betaalmethode toevoegen","payment_method_selector.empty_state.title":"Geen betaalmethoden beschikbaar","payment_method_selector.no_payment_methods_available":"Er zijn geen beschikbare betaalmethoden. Neem contact op met de ondersteuning voor meer informatie.","payment_methods_list.delete_modal.body":"Weet u zeker dat u deze betaalmethode wilt verwijderen?","payment_methods_list.delete_modal.cancel":"Annuleren","payment_methods_list.delete_modal.confirm":"Verwijderen","payment_methods_list.delete_modal.error":"We konden deze betaalmethode niet verwijderen. Probeer het opnieuw.","payment_methods_list.delete_modal.title":"Betaalmethode verwijderen","payment_methods_unavailable_card.description.authorize":"Online betalen is niet ingesteld voor deze factuur. De partij die de factuur heeft verstuurd kan dit rechtstreeks met je afhandelen.","payment_methods_unavailable_card.description.authorize_with_seller":"Online betalen is niet ingesteld voor deze factuur. {sellerName} kan dit rechtstreeks met je afhandelen.","payment_methods_unavailable_card.description.tokenize":"Er zijn geen online betaalmethoden ingesteld.","payment_methods_unavailable_card.description.tokenize_with_seller":"Er zijn geen online betaalmethoden ingesteld. {sellerName} kan de betaling rechtstreeks met je regelen.","payment_methods_unavailable_card.title.authorize":"Deze factuur kan niet online worden betaald","payment_methods_unavailable_card.title.tokenize":"Er kunnen geen betaalmethoden worden toegevoegd","payments.error_card.authorization_failed.message":"De betaling kon niet worden voltooid. Probeer het opnieuw of gebruik een andere betaalmethode.","payments.error_card.authorization_failed.title":"Betaling mislukt","payments.error_card.payment_details_call_failed.message":"Er ging iets mis bij het bevestigen van je betaling.","payments.error_card.payment_details_call_failed.title":"Betaling kon niet worden bevestigd","payments.error_card.payment_integration_initialization_failed.message":"Het betaalformulier kon niet worden geladen.","payments.error_card.payment_integration_initialization_failed.title":"Betaalmethoden konden niet worden geladen","payments.error_card.payment_method_storage_failed.message":"Er ging iets mis bij het opslaan van je betaalmethode.","payments.error_card.payment_method_storage_failed.title":"Betaalmethode kon niet worden opgeslagen","payments.error_card.redirect_result_payment_acceptor_missing.message":"We konden je betaling niet koppelen aan deze bestelling.","payments.error_card.redirect_result_payment_acceptor_missing.title":"Betaling kon niet worden voltooid","payments.error_card.reference.copied.label":"Gekopieerd","payments.error_card.reference.copy.label":"Referentie kopiëren","payments.error_card.reference.description":"Deel deze referentie met de klantenservice als het probleem aanhoudt","payments.error_card.resource_revoked.message":"De link die je hebt gevolgd is verlopen of ingetrokken.","payments.error_card.resource_revoked.title":"Deze pagina is niet meer beschikbaar","payments.error_card.tokenize_failed.message":"Je betaalmethode kon niet worden opgeslagen. Probeer het opnieuw of gebruik een andere.","payments.error_card.tokenize_failed.title":"Betaalmethode kon niet worden opgeslagen","payments.error_card.unknown_error.message":"Er is een onbekende fout opgetreden","payments.error_card.unknown_error.title":"Er is iets misgegaan","payments.retry_button.label":"Opnieuw proberen","payments.sepa_mandate.authorisation":"Door deze machtiging te bevestigen machtig je {billingEntityName} om je bank opdracht te geven betalingen van je rekening te innen, en machtig je je bank om die opdrachten uit te voeren.","payments.sepa_mandate.authorisation_unnamed":"Door deze machtiging te bevestigen machtig je ons om je bank opdracht te geven betalingen van je rekening te innen, en machtig je je bank om die opdrachten uit te voeren.","payments.sepa_mandate.recurrence":"Deze bankrekening wordt automatisch gebruikt om volgende facturen van {billingEntityName} te betalen totdat je deze machtiging intrekt.","payments.sepa_mandate.recurrence_unnamed":"Deze bankrekening wordt automatisch gebruikt om volgende facturen te betalen totdat je deze machtiging intrekt.","payments.sepa_mandate.refund_rights":"Als onderdeel van je rechten heb je recht op terugbetaling door je bank volgens de voorwaarden van je overeenkomst met je bank. Je moet de terugbetaling binnen 8 weken na de datum waarop je rekening werd gedebiteerd aanvragen. Je kunt bij je bank een verklaring van je rechten opvragen.","payments.sepa_mandate.title":"SEPA-incassomachtiging — terugkerende betalingen","pricing_item_pricing.unsupported_pricing_error":"Niet-ondersteunde prijsstelling","screens.payment_method_management.description":"Voeg een nieuwe betaalmethode toe of stel een standaard betaalmethode in voor uw betalingen.","screens.payment_method_management.title":"Betaalmethoden","sdk.invoice_details.customer_billing_information.title":"Jouw factuur gegevens","sdk.invoice_details.invoice.download_pdf":"Download de PDF voor een volledig overzicht","sdk.invoice_details.invoice.title":"Factuur","sdk.invoice_details.invoice_details_block.due_date":"Vervaldatum","sdk.invoice_details.invoice_details_block.invoice_date":"Factuurdatum","sdk.invoice_details.invoice_details_block.title":"Factuurgegevens","sdk.invoice_details.payment_history.payment_attempt":"Betaalpoging","sdk.invoice_details.payment_history.title":"Betaalgeschiedenis","seats.label":"Seats","seats.price_per_seat_period":"{amount} per seat/{period}","seats.tiered_price_per_seat_period":"{amount} per seat/{period}","seats.tiered_pricing_label":"Staffelprijzen","seats.tiered_range_label":"{lower_bound} - {upper_bound} seats","seats.tiered_unbounded_range_label":"> {lower_bound} seats","secure_payments_kpi.generic":"Veilige en versleutelde betalingen","secure_payments_kpi.specific_vendor":"Veilige en versleutelde betalingen door","subscription_cancellation_modal.cancel.confirm_button.label":"Abonnement opzeggen","subscription_cancellation_modal.cancel.error":"We konden je abonnement niet opzeggen. Probeer het opnieuw.","subscription_cancellation_modal.cancel.explanation":"Je abonnement wordt opgezegd, maar je houdt toegang tot het einde van de factuurperiode.","subscription_cancellation_modal.cancel.explanation_with_date":"Je abonnement wordt opgezegd, maar je houdt toegang tot {date}.","subscription_cancellation_modal.cancel.title":"Abonnement opzeggen","subscription_cancellation_modal.cancel_button.label":"Annuleren","subscription_cancellation_modal.renew.confirm_button.label":"Abonnement verlengen","subscription_cancellation_modal.renew.error":"We konden je abonnement niet verlengen. Probeer het opnieuw.","subscription_cancellation_modal.renew.explanation":"Je abonnement loopt gewoon door en de facturatie hervat volgens het normale schema.","subscription_cancellation_modal.renew.explanation_with_date":"Je kunt je abonnement verlengen tot {date}. Daarna kun je alleen nog een nieuw abonnement afsluiten.","subscription_cancellation_modal.renew.title":"Abonnement verlengen","subscription_cancellation_modal.renews_label":"Verlengt op","subscription_details.cancel_button.label":"Abonnement opzeggen","subscription_details.cancel_success":"Je abonnement is opgezegd. Je houdt toegang tot het einde van de factuurperiode.","subscription_details.empty_state.message":"Dit abonnement is niet langer beschikbaar.","subscription_details.empty_state.title":"Abonnement niet gevonden","subscription_details.load_error":"Dit abonnement kon niet worden geladen. Probeer het later opnieuw.","subscription_details.renew_button.label":"Abonnement verlengen","subscription_details.renew_success":"Je abonnement is verlengd.","subscription_details.title":"Abonnementsdetails","subscription_management.done_button.label":"Klaar","subscription_management.payment_method_selector.label":"Betaalmethode","subscription_management.success.message":"Je {subject} is gewijzigd. Houd er rekening mee dat het even kan duren voordat deze wijziging in je abonnement te zien is.","subscription_management.success.message_generic":"Je abonnement is gewijzigd. Houd er rekening mee dat het even kan duren voordat deze wijziging in je abonnement te zien is.","subscription_management.success.title":"Abonnement bijgewerkt","subscription_management.summary.empty_state":"Kies je plan om te zien wat het kost.","subscription_management.summary.error":"Het totaal kon niet worden berekend. Probeer het opnieuw.","subscription_management.summary.title":"Besteloverzicht","subscription_management.summary.total_due_heading":"Totaal te betalen","subscription_management.title":"{subject} beheren","subscription_management.title.default_subject":"abonnement","subscription_management.update_button.label":"Abonnement bijwerken","subscription_management.update_error":"Er is iets misgegaan. Probeer het opnieuw.","subscription_payment_completed_card.thank_you_for_subscribing":"Bedankt voor je abonnement.","subscription_payment_completed_card.title":"Betaling geslaagd","subscription_schedules.title":"Schema's","tax_check.invalid_vat_number":"BTW-nummer is ongeldig.","tax_check.valid_vat_number":"BTW-nummer is geldig.","topup_modal.add_payment_method.subtitle":"Voeg een nieuwe betaalmethode toe om je saldo op te waarderen.","topup_modal.add_payment_method.title":"Betaalmethode toevoegen","topup_modal.back_button.label":"Terug","topup_modal.cancel_button.label":"Annuleren","topup_modal.confirm_button.empty.label":"Saldo opwaarderen","topup_modal.confirm_button.label":"Saldo opwaarderen met {value}","topup_modal.done_button.label":"Klaar","topup_modal.flexible_option.bounds":"Tussen {minimum} en {maximum}","topup_modal.flexible_option.label":"Kies je eigen bedrag","topup_modal.invoice_preview.label":"Je betaalt","topup_modal.payment_method_required":"Kies een betaalmethode om deze opwaardering mee te betalen.","topup_modal.payment_method_selector.label":"Betaalmethode","topup_modal.pricing_items.label":"Selecteer opwaardeerbedrag","topup_modal.save_payment_method.label":"Betaalmethode opslaan","topup_modal.subscriptions.label":"Op te waarderen abonnement","topup_modal.subtitle":"Je huidige saldo is {balance}.","topup_modal.success.modal_subtitle":"Je betaling is gelukt.","topup_modal.success.modal_title":"Opwaardering voltooid","topup_modal.success.receipt.heading":"Bon","topup_modal.title":"Saldo opwaarderen","units.label":"Eenheden","units.price_per_unit":"{amount} per eenheid","wallet_balance.credit_type_fallback_label":"Tegoed","wallet_balance.details.header":"Walletsaldo","wallet_balance.load_failed":"Walletsaldi konden niet worden geladen","wallet_balance.service_period_heading":"Serviceperiode - {startAt} - {endAt}"};exports.default=t;exports.empty_value_placeholder=e;
|
|
@@ -201,6 +201,7 @@ const e = "-", t = {
|
|
|
201
201
|
"payments.sepa_mandate.authorisation_unnamed": "Door deze machtiging te bevestigen machtig je ons om je bank opdracht te geven betalingen van je rekening te innen, en machtig je je bank om die opdrachten uit te voeren.",
|
|
202
202
|
"payments.sepa_mandate.recurrence": "Deze bankrekening wordt automatisch gebruikt om volgende facturen van {billingEntityName} te betalen totdat je deze machtiging intrekt.",
|
|
203
203
|
"payments.sepa_mandate.recurrence_unnamed": "Deze bankrekening wordt automatisch gebruikt om volgende facturen te betalen totdat je deze machtiging intrekt.",
|
|
204
|
+
"payments.sepa_mandate.refund_rights": "Als onderdeel van je rechten heb je recht op terugbetaling door je bank volgens de voorwaarden van je overeenkomst met je bank. Je moet de terugbetaling binnen 8 weken na de datum waarop je rekening werd gedebiteerd aanvragen. Je kunt bij je bank een verklaring van je rechten opvragen.",
|
|
204
205
|
"payments.sepa_mandate.title": "SEPA-incassomachtiging — terugkerende betalingen",
|
|
205
206
|
"pricing_item_pricing.unsupported_pricing_error": "Niet-ondersteunde prijsstelling",
|
|
206
207
|
"screens.payment_method_management.description": "Voeg een nieuwe betaalmethode toe of stel een standaard betaalmethode in voor uw betalingen.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const h=require("./api.es-duCDtZD9.js"),c=require("./customElements-
|
|
1
|
+
const h=require("./api.es-duCDtZD9.js"),c=require("./customElements-hH6pju3X.js");function P(){const e=c.createRequestService(),n=c.useConfig(),r="/portal/payment-methods";function u({paymentMethodId:t}){return e({url:`${n.apiUrls.config}${r}/${t}`,options:{method:"PATCH"},data:{is_default:!0}})}function d({paymentMethodId:t}){return e({url:`${n.apiUrls.config}${r}/${t}`,options:{method:"PATCH"},data:{status:"ARCHIVED"}})}async function m({customerId:t,pagination:o,query:i}){const a=h.withPagination({customer_id:t,...i??{}},o),s=await e({url:`${n.apiUrls.config}${r}`,query:a,isCollection:!0});return{...s,data:(s.data??[]).filter(({status:f})=>f!=="ARCHIVED")}}function p({customerId:t,country:o,subscriptionId:i,amount:a}){return e({url:`${n.apiUrls.config}/portal/payment-method-options`,options:{method:"POST"},data:{...t&&{customer_id:t},...o&&{country:o},...i&&{pricing_plan_subscription_id:i},amount:a}})}function l(t){return e({url:`${n.apiUrls.config}/portal/payment-methods/tokenize`,options:{method:"POST"},data:t})}return{archivePaymentMethod:d,getPaymentMethods:m,getPaymentMethodOptions:p,tokenizePaymentMethod:l,setDefaultPaymentMethod:u}}exports.createPaymentMethodsService=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a=require("./customElements-
|
|
1
|
+
const a=require("./customElements-hH6pju3X.js"),r="/portal/payments",l=()=>{const e=a.createRequestService(),n=a.useConfig();function i(t){return e({url:`${n.apiUrls.transaction}${r}`,query:{invoice_id:t},isCollection:!0})}function o({paymentAcceptorId:t,paymentGatewayVariant:c,adyen:u}){return e({url:`${n.apiUrls.transaction}${r}/verify-details`,options:{method:"POST"},data:{payment_acceptor_id:t,payment_gateway_variant:c,adyen:u}})}function s(t){return e({url:`${n.apiUrls.transaction}${r}/authorize`,options:{method:"POST"},data:t})}return{getPayments:i,getPaymentDetails:o,authorizePayment:s}};exports.createPaymentsService=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkout.entry.ce-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkout.entry.ce-DgA0ckyl.js");require("../../customElements-hH6pju3X.js");exports.defineSolvimonCheckout=e.defineSolvimonCheckout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../../error-CmduqgVq.js"),T=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../useInvoicesList-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../../error-CmduqgVq.js"),T=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../useInvoicesList-duu_b5GW.js"),k=require("../../usePortal-Hm7wvtgQ.js"),_=require("../../customElements-hH6pju3X.js"),h=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js"),E=require("../../useCustomer-DSYr0F58.js"),x=require("../../usePaymentMethods-DZ1a0mnr.js"),U=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js"),j=require("../../useLoadInitialData-U2WvBmXT.js"),V=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js"),W=require("../../CustomerPaymentMethods.lib-BKgQTCtc.js"),S=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js"),D=require("../../pricingPlanSchedule-BM8vsKkV.js"),F=require("../../sessionReference-m_6Rp4X1.js"),R=2,$=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(i){var f;const p=i,u=k.usePortal(),c=_.useLogger(),o=(f=u.value)==null?void 0:f.customer_id,n=E.useCustomer({customerId:o}),l=g.useInvoicesList({customerId:o,batchSize:5}),s=h.useSubscriptionsList({customerId:o}),r=x.usePaymentMethods({customerId:o}),m=S.useCustomerWalletBalances({customerId:o}),w=e.computed(()=>{var t;return((t=m.walletBalances.value)==null?void 0:t.wallet_balances)??[]}),C=e.computed(()=>s.items.value.slice(0,R)),b=e.computed(()=>{var t;return r.items.value.slice(0,((t=p.configuration)==null?void 0:t.maxItems)??W.DEFAULT_MAX_ITEMS)}),{isLoading:a}=j.useLoadInitialData(n.get.execute(),l.fetchInitial(),s.fetchAll(),r.fetchAll(),m.fetch()),B=()=>{r.fetchAll()},d=()=>{m.fetch()},L=e.computed(()=>D.getActiveDefaultScheduleId(s.items.value));return e.watch([L,()=>s.items.value],([t,v])=>{t||v.length===0||c.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:v.flatMap(({pricing_plan_schedule_infos:O})=>(O??[]).map(({id:q,type:M,start_at:A,end_at:I,...N})=>{var y;return{id:q,type:((y=N.pricing_plan_schedule)==null?void 0:y.type)??M,start_at:A,end_at:I}}))})}),(t,v)=>(e.openBlock(),e.createBlock(e.unref(T.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(n).customer.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(n).customer.value,subscriptions:C.value,"payment-methods":e.unref(r).items.value,"is-loading":e.unref(a)},null,8,["customer","subscriptions","payment-methods","is-loading"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(g._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(l).items.value,"has-more-items":e.unref(l).hasNextBatch.value,"is-loading":e.unref(a),onLoadMore:e.unref(l).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(S._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(m).apiStatus.value===e.unref(P.ApiStatus).Failed,"is-loading":e.unref(a),"wallet-balances":w.value,"show-top-up-button":"",customer:e.unref(n).customer.value,"payment-methods":e.unref(r).items.value,subscriptions:e.unref(s).items.value,onTopUpCharged:d,onAutoTopUpSaved:d,onAutoTopUpCancelled:d,onPaymentMethodStored:B},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),e.createVNode(V._sfc_main,{class:"sv-customer-overview__payment-methods",configuration:i.configuration,"is-loading":e.unref(a),"payment-methods":b.value},null,8,["configuration","is-loading","payment-methods"]),e.unref(n).customer.value?(e.openBlock(),e.createBlock(U._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(a),customer:e.unref(n).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0)]),_:1}))}}),H=e.defineComponent({__name:"CustomerOverview.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(i){const p=F.getComponentName("customer-overview");return(u,c)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main$1),{entry:u.$props,"component-name":e.unref(p),"allowed-portal-types":["CUSTOMER"],onError:c[0]||(c[0]=o=>u.$emit("error",o))},{default:e.withCtx(()=>[e.createVNode($,{configuration:i.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:z}=_.createSolvimonElement(H,"customer-overview");exports.defineSolvimonCustomerOverview=z;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as C, computed as p, watch as P, openBlock as d, createBlock as v, unref as e, withCtx as f, createVNode as _, createCommentVNode as b } from "vue";
|
|
2
2
|
import { A as j } from "../../error-BHVZJGwD.mjs";
|
|
3
3
|
import { C as x } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
4
|
-
import { u as D, _ as F } from "../../useInvoicesList-
|
|
5
|
-
import { u as W } from "../../usePortal-
|
|
6
|
-
import { b as k, d as R, e as V } from "../../customElements-
|
|
7
|
-
import { u as H, _ as z } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as X } from "../../useCustomer-
|
|
9
|
-
import { u as q } from "../../usePaymentMethods-
|
|
10
|
-
import { _ as G } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as J } from "../../useLoadInitialData-
|
|
12
|
-
import { _ as K } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as D, _ as F } from "../../useInvoicesList-BGwcJn4I.mjs";
|
|
5
|
+
import { u as W } from "../../usePortal-C4rR5Rhu.mjs";
|
|
6
|
+
import { b as k, d as R, e as V } from "../../customElements-q_i9y0Ph.mjs";
|
|
7
|
+
import { u as H, _ as z } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs";
|
|
8
|
+
import { u as X } from "../../useCustomer-D8ixhuuj.mjs";
|
|
9
|
+
import { u as q } from "../../usePaymentMethods-BnmSo_rr.mjs";
|
|
10
|
+
import { _ as G } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs";
|
|
11
|
+
import { u as J } from "../../useLoadInitialData-BDmmpcfb.mjs";
|
|
12
|
+
import { _ as K } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs";
|
|
13
13
|
import { D as Q } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
|
|
14
|
-
import { u as Y, _ as Z } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { u as Y, _ as Z } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs";
|
|
15
15
|
import { a as ee } from "../../pricingPlanSchedule-BPrS2WRd.mjs";
|
|
16
16
|
import { a as te } from "../../sessionReference-3h-6FdrC.mjs";
|
|
17
17
|
const oe = 2, se = /* @__PURE__ */ C({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("../../formatting.es-C72Nsrmh.js"),C=require("../../Button.vue.es-TCF-bvDF.js"),B=require("../../index.es-BclokHQX.js"),S=require("../../usePayments-CIJocDhR.js"),M=require("../../InvoiceSummary.vue.es-BOnvORpf.js"),_=require("../../Section.vue.es-CBZx5x53.js"),f=require("../../customElements-CSzbVZIH.js"),O=require("../../ContentWithAsideLayout-RSdKXqAf.js"),V=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js"),k=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),P=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js"),x=require("../../usePaymentMethodAvailability-DKyscbom.js"),A=require("../../customer.es-BButyYo0.js"),I=require("../../useLoadInitialData-Cjkc70u-.js"),N=require("../../usePaymentMethodOptions-DuXKS36F.js"),T=require("../../usePaymentMethods-BDFVB-kK.js"),q=require("../../sessionReference-m_6Rp4X1.js"),z={class:"flex items-center gap-1 border-0 py-0"},E=["id","name","disabled","value"],L=["for"],j=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=B.useVModel(n,"modelValue"),l={sm:"size-2",md:"size-4"},r=e.computed(()=>l[n.size]),s={sm:"text-xs",md:"text-sm"},c=e.computed(()=>s[n.size]);return(a,i)=>(e.openBlock(),e.createElementBlock("label",z,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},a.$attrs,{"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(o)?o.value=m:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))}),null,16,E),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,L)]))}}),$=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const n=t,{$t:o}=f.useIntl(),l=e.computed(()=>({intent:n.intent??"primary",disabled:n.disabled,iconPrefix:n.iconPrefix,iconSuffix:n.iconSuffix,loading:n.loading,pill:n.pill,size:n.size??"lg",square:n.square,tag:n.tag,type:n.type})),r=e.computed(()=>{var c,a,i;switch((c=n.paymentMethod)==null?void 0:c.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(a=n.paymentMethod)!=null&&a.paymentMethodType?e.capitalize((i=n.paymentMethod)==null?void 0:i.paymentMethodType):""}}),s=e.computed(()=>n.amount&&n.paymentMethod?o({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:w.formatAmount(n.amount),type:r.value}):n.amount?o({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:w.formatAmount(n.amount),type:r.value}):o({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(c,a)=>(e.openBlock(),e.createBlock(e.unref(C._sfc_main),e.mergeProps(l.value,{class:"w-full",onClick:a[0]||(a[0]=i=>c.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},16))}}),R={class:"mt-4"},D={key:0},F=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:n}=f.useIntl(),o=t,{availability:l}=x.usePaymentMethodAvailability({paymentMethodOptions:()=>o.paymentMethodOptions,isLoading:()=>o.isLoading,context:()=>{var y;return{invoiceId:(y=o.invoice)==null?void 0:y.id}}}),r=e.ref(),s=e.ref(!0),c=e.ref(),a=e.ref(!1);function i(){if(!c.value)throw new Error("payment integration form not found");a.value=!0,c.value.submit()}const m=()=>{o.configuration.onPaymentSuccess&&o.configuration.onPaymentSuccess()},v=()=>{a.value=!1};return(y,d)=>(e.openBlock(),e.createBlock(e.unref(O.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(k._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var g,u;return[t.isLoading?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(g=t.invoice)!=null&&g.paid?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,status:"success",title:e.unref(n)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(w.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,status:"error",title:e.unref(n)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(l)==="READY"?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,title:e.unref(n)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>{var p,h;return[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":a.value})},[e.createVNode(V._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:c,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"store-payment-method":s.value,"invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions??[],variant:"AUTHORIZE","billing-entity-name":(h=(p=t.invoice)==null?void 0:p.billing_entity)==null?void 0:h.legal_name,onPaymentSuccess:m,onPaymentFailed:v,onSelect:d[0]||(d[0]=b=>r.value=b)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options","billing-entity-name"]),e.createElementVNode("div",R,[e.createVNode(e.unref(j),{id:"pay-invoice-store-payment-method",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=b=>s.value=b),label:e.unref(n)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]}),_:1},8,["title"])):(e.openBlock(),e.createBlock(x._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":(u=t.invoice.billing_entity)==null?void 0:u.legal_name},{default:e.withCtx(()=>[t.downloadService?(e.openBlock(),e.createBlock(e.unref(C._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d[2]||(d[2]=()=>{var p;return(p=t.downloadService)==null?void 0:p.call(t,t.invoice)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(k._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice&&!t.invoice.paid&&e.unref(l)==="READY"?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode($,{disabled:!r.value||a.value,loading:a.value,amount:t.amount,"payment-method":r.value,onClick:i},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),U=e.defineComponent({__name:"PayInvoice.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{invoice:o,get:l,downloadInvoicePdf:r,error:s}=S.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:a}=S.usePayments(),{fetchInitial:i}=T.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:m,get:v}=N.usePaymentMethodOptions(),y=async()=>{const u=await l();await v({customerId:u.customer.id,amount:u.open_invoice_amount})},{isLoading:d}=I.useLoadInitialData(y(),i(),a(n.configuration.invoiceId)),g=e.computed(()=>{var u;return(u=o.value)!=null&&u.customer?A.getCustomerCountry(o.value.customer):void 0});return(u,p)=>{var h;return e.renderSlot(u.$slots,"default",{invoice:e.unref(o),isLoading:e.unref(d),amount:(h=e.unref(o))==null?void 0:h.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(m),paymentAttempts:e.unref(c),downloadService:e.unref(r),error:e.unref(s)})}}}),W=e.defineComponent({__name:"PayInvoice.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=q.getComponentName("pay-invoice");return(o,l)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:l[0]||(l[0]=r=>o.$emit("error",r))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:r,isLoading:s,amount:c,countryCode:a,paymentMethodOptions:i,paymentAttempts:m,downloadService:v,error:y})=>[e.createVNode(F,{"is-loading":s,invoice:r,amount:c,"country-code":a,"payment-method-options":i,configuration:t.configuration,"payment-attempts":m??[],"download-service":v,error:y},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service","error"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:H}=f.createSolvimonElement(W,"pay-invoice");exports.defineSolvimonPayInvoice=H;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("../../formatting.es-C72Nsrmh.js"),C=require("../../Button.vue.es-CeUTAc2n.js"),B=require("../../index.es-BclokHQX.js"),S=require("../../usePayments-DL4agK2i.js"),M=require("../../InvoiceSummary.vue.es-v1TkOUhA.js"),_=require("../../Section.vue.es-CSrVPlUK.js"),f=require("../../customElements-hH6pju3X.js"),O=require("../../ContentWithAsideLayout-RSdKXqAf.js"),V=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js"),k=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),P=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js"),x=require("../../usePaymentMethodAvailability-DwtT5Czz.js"),A=require("../../customer.es-BButyYo0.js"),I=require("../../useLoadInitialData-U2WvBmXT.js"),N=require("../../usePaymentMethodOptions-CXdFKFqZ.js"),T=require("../../usePaymentMethods-DZ1a0mnr.js"),q=require("../../sessionReference-m_6Rp4X1.js"),z={class:"flex items-center gap-1 border-0 py-0"},E=["id","name","disabled","value"],L=["for"],j=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=B.useVModel(n,"modelValue"),l={sm:"size-2",md:"size-4"},r=e.computed(()=>l[n.size]),s={sm:"text-xs",md:"text-sm"},c=e.computed(()=>s[n.size]);return(a,i)=>(e.openBlock(),e.createElementBlock("label",z,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},a.$attrs,{"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(o)?o.value=m:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))}),null,16,E),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,L)]))}}),$=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const n=t,{$t:o}=f.useIntl(),l=e.computed(()=>({intent:n.intent??"primary",disabled:n.disabled,iconPrefix:n.iconPrefix,iconSuffix:n.iconSuffix,loading:n.loading,pill:n.pill,size:n.size??"lg",square:n.square,tag:n.tag,type:n.type})),r=e.computed(()=>{var c,a,i;switch((c=n.paymentMethod)==null?void 0:c.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(a=n.paymentMethod)!=null&&a.paymentMethodType?e.capitalize((i=n.paymentMethod)==null?void 0:i.paymentMethodType):""}}),s=e.computed(()=>n.amount&&n.paymentMethod?o({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:w.formatAmount(n.amount),type:r.value}):n.amount?o({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:w.formatAmount(n.amount),type:r.value}):o({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(c,a)=>(e.openBlock(),e.createBlock(e.unref(C._sfc_main),e.mergeProps(l.value,{class:"w-full",onClick:a[0]||(a[0]=i=>c.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},16))}}),R={class:"mt-4"},D={key:0},F=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:n}=f.useIntl(),o=t,{availability:l}=x.usePaymentMethodAvailability({paymentMethodOptions:()=>o.paymentMethodOptions,isLoading:()=>o.isLoading,context:()=>{var y;return{invoiceId:(y=o.invoice)==null?void 0:y.id}}}),r=e.ref(),s=e.ref(!0),c=e.ref(),a=e.ref(!1);function i(){if(!c.value)throw new Error("payment integration form not found");a.value=!0,c.value.submit()}const m=()=>{o.configuration.onPaymentSuccess&&o.configuration.onPaymentSuccess()},v=()=>{a.value=!1};return(y,d)=>(e.openBlock(),e.createBlock(e.unref(O.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(k._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var g,u;return[t.isLoading?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(g=t.invoice)!=null&&g.paid?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,status:"success",title:e.unref(n)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(w.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,status:"error",title:e.unref(n)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(l)==="READY"?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,title:e.unref(n)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>{var p,h;return[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":a.value})},[e.createVNode(V._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:c,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"store-payment-method":s.value,"invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions??[],variant:"AUTHORIZE","billing-entity-name":(h=(p=t.invoice)==null?void 0:p.billing_entity)==null?void 0:h.legal_name,onPaymentSuccess:m,onPaymentFailed:v,onSelect:d[0]||(d[0]=b=>r.value=b)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options","billing-entity-name"]),e.createElementVNode("div",R,[e.createVNode(e.unref(j),{id:"pay-invoice-store-payment-method",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=b=>s.value=b),label:e.unref(n)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]}),_:1},8,["title"])):(e.openBlock(),e.createBlock(x._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":(u=t.invoice.billing_entity)==null?void 0:u.legal_name},{default:e.withCtx(()=>[t.downloadService?(e.openBlock(),e.createBlock(e.unref(C._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d[2]||(d[2]=()=>{var p;return(p=t.downloadService)==null?void 0:p.call(t,t.invoice)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(k._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice&&!t.invoice.paid&&e.unref(l)==="READY"?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode($,{disabled:!r.value||a.value,loading:a.value,amount:t.amount,"payment-method":r.value,onClick:i},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),U=e.defineComponent({__name:"PayInvoice.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{invoice:o,get:l,downloadInvoicePdf:r,error:s}=S.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:a}=S.usePayments(),{fetchInitial:i}=T.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:m,get:v}=N.usePaymentMethodOptions(),y=async()=>{const u=await l();await v({customerId:u.customer.id,amount:u.open_invoice_amount})},{isLoading:d}=I.useLoadInitialData(y(),i(),a(n.configuration.invoiceId)),g=e.computed(()=>{var u;return(u=o.value)!=null&&u.customer?A.getCustomerCountry(o.value.customer):void 0});return(u,p)=>{var h;return e.renderSlot(u.$slots,"default",{invoice:e.unref(o),isLoading:e.unref(d),amount:(h=e.unref(o))==null?void 0:h.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(m),paymentAttempts:e.unref(c),downloadService:e.unref(r),error:e.unref(s)})}}}),W=e.defineComponent({__name:"PayInvoice.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=q.getComponentName("pay-invoice");return(o,l)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:l[0]||(l[0]=r=>o.$emit("error",r))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:r,isLoading:s,amount:c,countryCode:a,paymentMethodOptions:i,paymentAttempts:m,downloadService:v,error:y})=>[e.createVNode(F,{"is-loading":s,invoice:r,amount:c,"country-code":a,"payment-method-options":i,configuration:t.configuration,"payment-attempts":m??[],"download-service":v,error:y},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service","error"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:H}=f.createSolvimonElement(W,"pay-invoice");exports.defineSolvimonPayInvoice=H;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineComponent as C, computed as w, openBlock as c, createElementBlock as B, withDirectives as _, createElementVNode as A, mergeProps as j, withModifiers as F, unref as n, isRef as D, vModelCheckbox as N, normalizeClass as V, toDisplayString as k, capitalize as U, createBlock as u, withCtx as r, createTextVNode as O, ref as x, createVNode as p, createCommentVNode as b, Fragment as W, renderSlot as q, normalizeProps as H, guardReactiveProps as K } from "vue";
|
|
2
2
|
import { f as z } from "../../formatting.es-RclXHhKo.mjs";
|
|
3
|
-
import { _ as E, a as Y } from "../../Button.vue.es-
|
|
3
|
+
import { _ as E, a as Y } from "../../Button.vue.es-BbSN0uOk.mjs";
|
|
4
4
|
import { u as Z } from "../../index.es-CXkP_k3u.mjs";
|
|
5
|
-
import { _ as G, u as J, a as Q } from "../../usePayments-
|
|
6
|
-
import { _ as X } from "../../InvoiceSummary.vue.es-
|
|
7
|
-
import { _ as ee } from "../../Section.vue.es-
|
|
8
|
-
import { u as R, _ as T, d as te, e as ne } from "../../customElements-
|
|
5
|
+
import { _ as G, u as J, a as Q } from "../../usePayments-s-Z1di8d.mjs";
|
|
6
|
+
import { _ as X } from "../../InvoiceSummary.vue.es-6qpbyymg.mjs";
|
|
7
|
+
import { _ as ee } from "../../Section.vue.es-D5svcVS_.mjs";
|
|
8
|
+
import { u as R, _ as T, d as te, e as ne } from "../../customElements-q_i9y0Ph.mjs";
|
|
9
9
|
import { C as ae } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
10
|
-
import { _ as oe } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as oe } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs";
|
|
11
11
|
import { _ as $ } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
|
|
12
|
-
import { _ as L } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as ie, _ as re } from "../../usePaymentMethodAvailability-
|
|
12
|
+
import { _ as L } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs";
|
|
13
|
+
import { u as ie, _ as re } from "../../usePaymentMethodAvailability-adqRujTA.mjs";
|
|
14
14
|
import { g as se } from "../../customer.es-B5ppZf0j.mjs";
|
|
15
|
-
import { u as le } from "../../useLoadInitialData-
|
|
16
|
-
import { u as ce } from "../../usePaymentMethodOptions-
|
|
17
|
-
import { u as de } from "../../usePaymentMethods-
|
|
15
|
+
import { u as le } from "../../useLoadInitialData-BDmmpcfb.mjs";
|
|
16
|
+
import { u as ce } from "../../usePaymentMethodOptions-DlZtTQNQ.mjs";
|
|
17
|
+
import { u as de } from "../../usePaymentMethods-BnmSo_rr.mjs";
|
|
18
18
|
import { a as me } from "../../sessionReference-3h-6FdrC.mjs";
|
|
19
19
|
const ue = { class: "flex items-center gap-1 border-0 py-0" }, ye = ["id", "name", "disabled", "value"], pe = ["for"], ve = /* @__PURE__ */ C({
|
|
20
20
|
__name: "Checkbox",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("../../Button.vue.es-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("../../Button.vue.es-CeUTAc2n.js"),y=require("../../Section.vue.es-CSrVPlUK.js"),c=require("../../customElements-hH6pju3X.js"),f=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js"),h=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js"),_=require("../../useCustomer-DSYr0F58.js"),v=require("../../usePaymentMethods-DZ1a0mnr.js"),S=require("../../usePaymentMethodOptions-CXdFKFqZ.js"),C=require("../../useLoadInitialData-U2WvBmXT.js"),M=require("../../sessionReference-m_6Rp4X1.js"),k={class:"grid gap-4 sm:grid-cols-1 md:grid-cols-2"},O={key:0},B=e.defineComponent({__name:"ScreenTitle",props:{title:{type:String},description:{type:String}},setup(o){return(r,a)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",null,[e.createVNode(e.unref(c._sfc_main),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),o.description?(e.openBlock(),e.createBlock(e.unref(c._sfc_main),{key:0,variant:"body-sm",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1})):e.createCommentVNode("",!0)]),r.$slots.right?(e.openBlock(),e.createElementBlock("div",O,[e.renderSlot(r.$slots,"right")])):e.createCommentVNode("",!0)]))}}),b=e.defineComponent({__name:"PaymentMethodsManagement",props:{customer:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},error:{type:null}},emits:["set-default","delete","added"],setup(o,{emit:r}){const a=r,{$t:i}=c.useIntl(),n=e.ref(!1),m=()=>{n.value=!1,a("added")};return(d,t)=>(e.openBlock(),e.createBlock(e.unref(f.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(B,{title:e.unref(i)({defaultMessage:"Payment methods",id:"screens.payment_method_management.title",description:"The title for the payment method management screen "}),description:e.unref(i)({defaultMessage:"Add a new payment method or set a default payment method for your payments.",id:"screens.payment_method_management.description",description:"The descriptive text for the payment method management screen"})},null,8,["title","description"])]),content:e.withCtx(()=>[e.createVNode(e.unref(y._sfc_main),{"no-border":"","no-spacing":"","content-background":"none",title:"Your payment methods"},{default:e.withCtx(()=>[e.createVNode(g._sfc_main,{"payment-methods":o.paymentMethods,onSetDefault:t[0]||(t[0]=s=>a("set-default")),onDelete:t[1]||(t[1]=s=>a("delete"))},null,8,["payment-methods"])]),_:1}),n.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,customer:o.customer,"payment-method-options":o.paymentMethodOptions,onSuccess:m},null,8,["customer","payment-method-options"])):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:1,intent:"secondary",onClick:t[2]||(t[2]=s=>n.value=!1)},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("Cancel",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:2,intent:"secondary",onClick:t[3]||(t[3]=s=>n.value=!0)},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("Add payment method",-1)])]),_:1}))]),_:1}))}}),P=e.defineComponent({__name:"PaymentMethodsManagement.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(o){const r=o,a=r.portalObject.customer_id,{customer:i,get:n}=_.useCustomer({customerId:a}),{items:m,fetchInitial:d}=v.usePaymentMethods({customerId:r.portalObject.customer_id}),{paymentMethodOptions:t,get:s}=S.usePaymentMethodOptions(),{isLoading:p}=C.useLoadInitialData(n.execute(),d(),s({customerId:r.portalObject.customer_id}));return(u,x)=>e.renderSlot(u.$slots,"default",{customer:e.unref(i),paymentMethods:e.unref(m),paymentMethodOptions:e.unref(t),isLoading:e.unref(p),refreshPaymentMethods:e.unref(d)})}}),w=e.defineComponent({__name:"PaymentMethodsManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(o){const r=M.getComponentName("payment-methods-management");return(a,i)=>(e.openBlock(),e.createBlock(e.unref(c._sfc_main$1),{entry:a.$props,"component-name":e.unref(r),"allowed-portal-types":["CUSTOMER"],onError:i[0]||(i[0]=n=>a.$emit("error",n))},{default:e.withCtx(()=>[e.createVNode(P,e.normalizeProps(e.guardReactiveProps(a.$props)),{default:e.withCtx(({customer:n,paymentMethods:m,paymentMethodOptions:d,isLoading:t,refreshPaymentMethods:s})=>[n?(e.openBlock(),e.createBlock(b,{key:0,"is-loading":t,"payment-methods":m,"payment-method-options":d,customer:n,onSetDefault:s,onDelete:s,onAdded:s},null,8,["is-loading","payment-methods","payment-method-options","customer","onSetDefault","onDelete","onAdded"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:N}=c.createSolvimonElement(w,"payment-methods-management");exports.defineSolvimonPaymentMethodsManagement=N;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as f, openBlock as i, createElementBlock as h, createElementVNode as b, createVNode as c, unref as t, withCtx as m, createTextVNode as u, toDisplayString as _, createBlock as p, createCommentVNode as g, renderSlot as M, ref as C, normalizeProps as A, guardReactiveProps as j } from "vue";
|
|
2
|
-
import { _ as S } from "../../Button.vue.es-
|
|
3
|
-
import { _ as k } from "../../Section.vue.es-
|
|
4
|
-
import { _ as v, u as P, d as L, e as w } from "../../customElements-
|
|
2
|
+
import { _ as S } from "../../Button.vue.es-BbSN0uOk.mjs";
|
|
3
|
+
import { _ as k } from "../../Section.vue.es-D5svcVS_.mjs";
|
|
4
|
+
import { _ as v, u as P, d as L, e as w } from "../../customElements-q_i9y0Ph.mjs";
|
|
5
5
|
import { C as D } from "../../ContentWithAsideLayout-BCM8tmZN.mjs";
|
|
6
|
-
import { _ as T } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as B } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as I } from "../../useCustomer-
|
|
9
|
-
import { u as N } from "../../usePaymentMethods-
|
|
10
|
-
import { u as x } from "../../usePaymentMethodOptions-
|
|
11
|
-
import { u as E } from "../../useLoadInitialData-
|
|
6
|
+
import { _ as T } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs";
|
|
7
|
+
import { _ as B } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs";
|
|
8
|
+
import { u as I } from "../../useCustomer-D8ixhuuj.mjs";
|
|
9
|
+
import { u as N } from "../../usePaymentMethods-BnmSo_rr.mjs";
|
|
10
|
+
import { u as x } from "../../usePaymentMethodOptions-DlZtTQNQ.mjs";
|
|
11
|
+
import { u as E } from "../../useLoadInitialData-BDmmpcfb.mjs";
|
|
12
12
|
import { a as F } from "../../sessionReference-3h-6FdrC.mjs";
|
|
13
13
|
const R = { class: "grid gap-4 sm:grid-cols-1 md:grid-cols-2" }, V = { key: 0 }, z = /* @__PURE__ */ f({
|
|
14
14
|
__name: "ScreenTitle",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),D=require("../../Alert.vue.es-RyK53a2P.js"),P=require("../../Button.vue.es-TCF-bvDF.js"),T=require("../../ErrorNotification.vue.es-BF6swP7o.js"),b=require("../../customElements-CSzbVZIH.js"),$=require("../../ContentWithAsideLayout-RSdKXqAf.js"),I=require("../../useActionDispatchProvider-DDHrhy3i.js"),E=require("../../subscription-ZA62t4E9.js"),L=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js"),O=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js"),R=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js"),U=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),A=require("../../Section.vue.es-CBZx5x53.js"),j=require("../../pricing-BVAld27Y.js"),V=require("../../formatting.es-C72Nsrmh.js"),W=require("../../PaymentMethod.vue.es-CXV_ThBY.js"),F=require("../../Modal.vue.es-BbdtdxsO.js"),Y=require("../../subscriptions-BKER9RUc.js"),z=require("../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js"),G=require("../../api.es-duCDtZD9.js"),H=require("../../useIncrementalLoading-CaWOE8Xl.js"),Z=require("../../paymentMethods-Bwym8l9a.js"),J=require("../../error-CmduqgVq.js"),K=require("../../useSubscription-DRBUt9H5.js"),Q=require("../../useCustomer-BW0DBEJh.js"),X=require("../../usePaymentMethods-BDFVB-kK.js"),ee=require("../../useLoadInitialData-Cjkc70u-.js"),te=require("../../sessionReference-m_6Rp4X1.js");function ne({subscription:t}){const{dispatchAction:s}=I.useActionDispatchProvider(),i=e.computed(()=>{if(!t.value)return!1;const u=t.value.inactive_periods;return!u||u.length===0}),n=e.computed(()=>{var g;const u=(g=t.value)==null?void 0:g.inactive_periods;return Array.isArray(u)&&u.length>0}),a=e.ref();return{isCancellable:i,isRenewable:n,pendingVariant:a,cancel:()=>{t.value&&(a.value="CANCEL")},renew:()=>{t.value&&(a.value="RENEW")},dismiss:()=>{a.value=void 0},manage:()=>{t.value&&s({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}function ie(t){var n,a,o,r,c,d,u;const s=(o=(a=(n=t.items)==null?void 0:n[0])==null?void 0:a.configs)==null?void 0:o[0],i=(c=(r=s==null?void 0:s.details)==null?void 0:r.bands)==null?void 0:c[0];return{amount:(i==null?void 0:i.amount)??(i==null?void 0:i.fixed_amount),billingPeriod:((d=s==null?void 0:s.details)==null?void 0:d.pricing_period)??((u=s==null?void 0:s.details)==null?void 0:u.billing_period)}}function oe(t){var n,a,o;const s=new Set((((n=t.pricing_plan_schedule)==null?void 0:n.enabled_pricings)??[]).map(({pricing_id:r})=>r));return s.size===0?[]:(((o=(a=t.pricing_plan_version)==null?void 0:a.pricing_categories)==null?void 0:o.flatMap(r=>r.pricing_groups??[]))??[]).flatMap(r=>(r.pricings??[]).filter(c=>s.has(c.id)).map(c=>({pricingId:c.id,pricingGroupId:r.id,groupName:r.name,name:j.getNameFromPricing(c)||r.name,...ie(c)})))}const ae={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},se={class:"sv-enabled-pricings-list__item-content grow"},re=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const s=t,{$t:i}=b.useIntl(),n=e.computed(()=>{const{amount:a,billingPeriod:o}=s.entry;if(a)return o?i({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:V.formatAmount(a),period:V.formatBillingPeriod(o,{short:!0,hideValueForExactPeriods:!0})}):V.formatAmount(a)});return(a,o)=>(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",ae,[e.createElementVNode("div",se,[e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"subtle",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(b._sfc_main),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),n.value?(e.openBlock(),e.createBlock(e.unref(b._sfc_main),{key:0,tag:"span",variant:"body-sm",color:"subtle",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(P._sfc_main),{intent:"secondary",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:o[0]||(o[0]=r=>a.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),ce={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},le=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const s=t,{$t:i}=b.useIntl(),n=e.computed(()=>oe(s.pricingPlanSchedule));return(a,o)=>n.value.length>0?(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(i)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,r=>(e.openBlock(),e.createBlock(re,{key:r.pricingId,entry:r,onUpgrade:o[0]||(o[0]=c=>a.$emit("upgrade",c))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}});function ue({variant:t,renewableUntil:s,billingPeriodEndsAt:i}){const{$t:n}=b.useIntl(),a=e.computed(()=>t.value==="RENEW"),o=e.computed(()=>a.value?n({defaultMessage:"Renew subscription",description:"Title of the renew subscription confirmation modal",id:"subscription_cancellation_modal.renew.title"}):n({defaultMessage:"Cancel subscription",description:"Title of the cancel subscription confirmation modal",id:"subscription_cancellation_modal.cancel.title"})),r=e.computed(()=>a.value?s.value?n({defaultMessage:"You can renew your subscription until {date}. After this period you can only create a new subscription.",description:"Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",id:"subscription_cancellation_modal.renew.explanation_with_date"},{date:s.value}):n({defaultMessage:"Your subscription will continue as before, and billing will resume on its usual schedule.",description:"Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",id:"subscription_cancellation_modal.renew.explanation"}):i.value?n({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until {date}.",description:"Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation_with_date"},{date:i.value}):n({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",description:"Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation"})),c=e.computed(()=>a.value?n({defaultMessage:"Renew subscription",description:"Label of the confirm button in the renew subscription modal",id:"subscription_cancellation_modal.renew.confirm_button.label"}):n({defaultMessage:"Cancel subscription",description:"Label of the confirm button in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.confirm_button.label"})),d=e.computed(()=>n({defaultMessage:"Cancel",description:"Label of the button that dismisses the cancellation modal",id:"subscription_cancellation_modal.cancel_button.label"})),u=e.computed(()=>a.value?n({defaultMessage:"We could not renew your subscription. Please try again.",description:"Error shown when undoing a cancellation fails",id:"subscription_cancellation_modal.renew.error"}):n({defaultMessage:"We could not cancel your subscription. Please try again.",description:"Error shown when cancelling a subscription fails",id:"subscription_cancellation_modal.cancel.error"}));return{title:o,explanation:r,confirmButtonText:c,cancelButtonText:d,errorMessage:u}}const de=50;function pe(){const{getPaymentMethods:t}=Z.createPaymentMethodsService(),s=e.shallowRef();return{paymentMethod:s,get:async({customerId:n,paymentMethodId:a})=>{const o=await G.getPaginatedFullList(async r=>{const c=await t({customerId:n,pagination:{page:r,pageSize:de}});if(!H.isApiSuccessCollectionResponse(c))throw new Error("Could not load the customer’s payment methods.");return c});return s.value=o.data.find(({id:r})=>r===a),s.value}}}const me={class:"sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3"},be={key:0,class:"sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"},fe={key:0,class:"sv-subscription-cancellation-modal__renews flex gap-1"},ge=e.defineComponent({__name:"SubscriptionCancellationModal",props:{showModal:{type:Boolean},variant:{type:null},subscription:{type:Object},avatar:{type:String}},emits:["confirmed","close"],setup(t,{emit:s}){const i=t,n=s,{$t:a,formatDate:o}=b.useIntl(),r=b.useLogger(),{setSubscriptionCancellation:c}=Y.createSubscriptionsService(),d=e.computed(()=>i.variant),u=e.computed(()=>{var _;const l=((_=i.subscription)==null?void 0:_.inactive_periods)??[],f=l.find(({type:N})=>N==="CANCEL")??l[0];if(f)return o({date:f.start_at,format:"date",offsetType:"local"})}),g=e.computed(()=>{var f,_;const l=(_=(f=i.subscription)==null?void 0:f.next_invoice)==null?void 0:_.invoice_date;if(l)return o({date:l,format:"date",offsetType:"local"})}),y=g,w=e.computed(()=>{var l,f;return(((f=(l=E.getMostRecentScheduleInfo(i.subscription))==null?void 0:l.pricing_plan_schedule)==null?void 0:f.enabled_pricings)??[]).map(({pricing_id:_})=>_).filter(_=>!!_)}),{title:h,explanation:C,confirmButtonText:S,cancelButtonText:k,errorMessage:B}=ue({variant:d,renewableUntil:u,billingPeriodEndsAt:g}),{paymentMethod:v,get:M}=pe();e.watch([()=>i.showModal,()=>{var l;return(l=i.subscription)==null?void 0:l.payment_method_id},()=>{var l;return(l=i.subscription)==null?void 0:l.customer_id}],([l,f,_])=>{var N;!l||!f||!_||f!==((N=v.value)==null?void 0:N.id)&&M({customerId:_,paymentMethodId:f}).catch(()=>{})},{immediate:!0});const p=e.ref(!1),m=e.ref(!1);e.watch(()=>i.showModal,l=>{l&&(m.value=!1)});const x=async()=>{if(!(!i.subscription||!i.variant||p.value)){p.value=!0,m.value=!1;try{await c({id:i.subscription.id,variant:i.variant}),n("confirmed"),n("close")}catch(l){r.error("SUBSCRIPTION_CANCELLATION_FAILED","Failed to change the cancellation state of a subscription",{variant:i.variant},l),m.value=!0}finally{p.value=!1}}},q=()=>{p.value||n("close")};return(l,f)=>(e.openBlock(),e.createBlock(e.unref(F.Modal),{size:"md","show-modal":t.showModal,title:e.unref(h),"confirm-button-text":e.unref(S),"cancel-button-text":e.unref(k),"is-loading":p.value,"no-click-away":p.value,"no-backdrop-close":p.value,onConfirm:x,onClose:q},{body:e.withCtx(()=>[e.createElementVNode("div",me,[e.createVNode(e.unref(b._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-subscription-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(C)),1)]),_:1}),t.subscription?(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{key:0,"no-spacing":"",class:"sv-subscription-cancellation-modal__subscription"},{default:e.withCtx(()=>[e.createVNode(z._sfc_main,{subscription:t.subscription,avatar:t.avatar,"enabled-pricing-ids":w.value},null,8,["subscription","avatar","enabled-pricing-ids"]),e.unref(y)||e.unref(v)?(e.openBlock(),e.createElementBlock("div",be,[e.unref(y)?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"secondary",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Renews",description:"Label before the date the subscription renews, shown in the cancel subscription modal",id:"subscription_cancellation_modal.renews_label"})),1)]),_:1}),e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)),1)]),_:1})])):e.createCommentVNode("",!0),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(W._sfc_main),{key:1,variant:"condensed",class:"sv-subscription-cancellation-modal__payment-method","payment-method":e.unref(v)},null,8,["payment-method"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(e.unref(T._sfc_main),{key:1,class:"sv-subscription-cancellation-modal__error sv-error",title:e.unref(B)},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","title","confirm-button-text","cancel-button-text","is-loading","no-click-away","no-backdrop-close"]))}}),_e={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},he=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},hasWalletBalancesError:{type:Boolean},avatar:{type:String},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","subscription-changed"],setup(t,{emit:s}){const i=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("../../SubscriptionSchedules-1ikoGncQ.js"))),n=t,a=s,{$t:o}=b.useIntl(),{isCancellable:r,isRenewable:c,pendingVariant:d,cancel:u,renew:g,dismiss:y,manage:w}=ne({subscription:e.toRef(n,"subscription")}),h=e.ref();e.watch(d,p=>{p&&(h.value=void 0)});const C=()=>{h.value=d.value,a("subscription-changed")},S=e.computed(()=>{if(h.value)return h.value==="RENEW"?o({defaultMessage:"Your subscription has been renewed.",id:"subscription_details.renew_success",description:"Confirmation shown after a cancellation has been undone"}):o({defaultMessage:"Your subscription has been cancelled. You keep access until the end of the billing period.",id:"subscription_details.cancel_success",description:"Confirmation shown after a subscription has been cancelled"})}),k=e.computed(()=>E.getMostRecentScheduleInfo(n.subscription)),B=e.computed(()=>(n.paymentMethods??[]).find(({id:p})=>{var m;return p===((m=n.subscription)==null?void 0:m.payment_method_id)})),v=e.computed(()=>n.subscription?[n.subscription]:[]),M=e.computed(()=>E.getSubscriptionName({subscription:n.subscription,fallback:o({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(p,m)=>(e.openBlock(),e.createBlock(e.unref($.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",_e,[e.createVNode(e.unref(b._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.value),1)]),_:1}),e.unref(c)?(e.openBlock(),e.createBlock(e.unref(P._sfc_main),{key:0,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(g)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createBlock(e.unref(P._sfc_main),{key:1,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[S.value?(e.openBlock(),e.createBlock(e.unref(D._sfc_main),{key:0,class:"sv-subscription-details__cancellation-success",type:"success",title:S.value},null,8,["title"])):e.createCommentVNode("",!0),t.error?(e.openBlock(),e.createBlock(e.unref(T._sfc_main),{key:1,class:"sv-subscription-details__error sv-error",title:e.unref(o)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):t.isLoading?(e.openBlock(),e.createBlock(U._sfc_main,{key:2,variant:"section",class:"min-h-[220px]"})):t.subscription?(e.openBlock(),e.createBlock(e.unref(i),{key:3,class:"sv-subscription-details__schedules","schedules-data":t.schedulesData??[],configuration:{subscriptionId:t.subscription.id},"is-loading":t.isLoading},null,8,["schedules-data","configuration","is-loading"])):(e.openBlock(),e.createBlock(R._sfc_main,{key:4,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode(L._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":!!t.hasWalletBalancesError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances,"show-top-up-button":"",customer:t.customer,"payment-methods":t.paymentMethods,subscriptions:v.value,onTopUpCharged:m[0]||(m[0]=x=>p.$emit("top-up-charged")),onAutoTopUpSaved:m[1]||(m[1]=x=>p.$emit("auto-top-up-saved")),onAutoTopUpCancelled:m[2]||(m[2]=x=>p.$emit("auto-top-up-cancelled")),onPaymentMethodStored:m[3]||(m[3]=x=>p.$emit("payment-method-stored"))},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),k.value?(e.openBlock(),e.createBlock(le,{key:0,class:"sv-subscription-details__upgrades","pricing-plan-schedule":k.value,onUpgrade:e.unref(w)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(O._sfc_main,{key:1,class:"sv-subscription-details__payment-method","is-loading":t.isLoading,"payment-methods":[B.value],configuration:{showViewAllButton:!1,showAddButton:!1}},null,8,["is-loading","payment-methods"])):e.createCommentVNode("",!0),e.createVNode(ge,{"show-modal":!!e.unref(d),variant:e.unref(d),subscription:t.subscription,avatar:t.avatar,onConfirmed:C,onClose:e.unref(y)},null,8,["show-modal","variant","subscription","avatar","onClose"])]),_:1}))}}),ve=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const s=t,i=s.portalObject.customer_id,{subscription:n,withPlanData:a,get:o,error:r}=K.useSubscription({subscriptionId:s.configuration.subscriptionId}),{customer:c,get:d}=Q.useCustomer({customerId:i}),{items:u,fetchAll:g}=X.usePaymentMethods({customerId:i}),{walletBalances:y,apiStatus:w,fetch:h}=L.useCustomerWalletBalances({customerId:i}),{isLoading:C}=ee.useLoadInitialData(o(),d.execute(),g(),h()),S=e.computed(()=>n.value?a(n.value):[]),k=e.computed(()=>{var v;return((v=y.value)==null?void 0:v.wallet_balances)??[]}),B=e.computed(()=>w.value===J.ApiStatus.Failed);return(v,M)=>e.renderSlot(v.$slots,"default",{subscription:e.unref(n),schedulesData:S.value,customer:e.unref(c),paymentMethods:e.unref(u),walletBalances:k.value,hasWalletBalancesError:B.value,isLoading:e.unref(C),error:e.unref(r),refreshWalletBalances:e.unref(h),refreshPaymentMethods:e.unref(g),refreshSubscription:e.unref(o)})}}),ye=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const s=te.getComponentName("subscription-details");return(i,n)=>(e.openBlock(),e.createBlock(e.unref(b._sfc_main$1),{entry:i.$props,"component-name":e.unref(s),"allowed-portal-types":["CUSTOMER"],onError:n[0]||(n[0]=a=>i.$emit("error",a))},{default:e.withCtx(()=>[e.createVNode(ve,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({subscription:a,schedulesData:o,customer:r,paymentMethods:c,walletBalances:d,hasWalletBalancesError:u,isLoading:g,error:y,refreshWalletBalances:w,refreshPaymentMethods:h,refreshSubscription:C})=>[e.createVNode(he,{subscription:a,"schedules-data":o,customer:r,avatar:t.configuration.avatar,"payment-methods":c,"wallet-balances":d,"has-wallet-balances-error":u,"is-loading":g,error:y,onTopUpCharged:w,onAutoTopUpSaved:w,onAutoTopUpCancelled:w,onPaymentMethodStored:h,onSubscriptionChanged:C},null,8,["subscription","schedules-data","customer","avatar","payment-methods","wallet-balances","has-wallet-balances-error","is-loading","error","onTopUpCharged","onAutoTopUpSaved","onAutoTopUpCancelled","onPaymentMethodStored","onSubscriptionChanged"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:we}=b.createSolvimonElement(ye,"subscription-details");exports.defineSolvimonSubscriptionDetails=we;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),D=require("../../Alert.vue.es-RyK53a2P.js"),P=require("../../Button.vue.es-CeUTAc2n.js"),T=require("../../ErrorNotification.vue.es-QfRoDhkn.js"),b=require("../../customElements-hH6pju3X.js"),$=require("../../ContentWithAsideLayout-RSdKXqAf.js"),I=require("../../useActionDispatchProvider-CKzeqXzY.js"),E=require("../../subscription-ZA62t4E9.js"),L=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js"),O=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js"),R=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js"),U=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),A=require("../../Section.vue.es-CSrVPlUK.js"),j=require("../../pricing-BVAld27Y.js"),V=require("../../formatting.es-C72Nsrmh.js"),W=require("../../PaymentMethod.vue.es-ZWda5GqF.js"),F=require("../../Modal.vue.es-JpE0eh_Q.js"),Y=require("../../subscriptions-BArXBCFr.js"),z=require("../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js"),G=require("../../api.es-duCDtZD9.js"),H=require("../../useIncrementalLoading-CaWOE8Xl.js"),Z=require("../../paymentMethods-CZGP6_4W.js"),J=require("../../error-CmduqgVq.js"),K=require("../../useSubscription-DMAEJves.js"),Q=require("../../useCustomer-DSYr0F58.js"),X=require("../../usePaymentMethods-DZ1a0mnr.js"),ee=require("../../useLoadInitialData-U2WvBmXT.js"),te=require("../../sessionReference-m_6Rp4X1.js");function ne({subscription:t}){const{dispatchAction:s}=I.useActionDispatchProvider(),i=e.computed(()=>{if(!t.value)return!1;const u=t.value.inactive_periods;return!u||u.length===0}),n=e.computed(()=>{var g;const u=(g=t.value)==null?void 0:g.inactive_periods;return Array.isArray(u)&&u.length>0}),a=e.ref();return{isCancellable:i,isRenewable:n,pendingVariant:a,cancel:()=>{t.value&&(a.value="CANCEL")},renew:()=>{t.value&&(a.value="RENEW")},dismiss:()=>{a.value=void 0},manage:()=>{t.value&&s({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}function ie(t){var n,a,o,r,c,d,u;const s=(o=(a=(n=t.items)==null?void 0:n[0])==null?void 0:a.configs)==null?void 0:o[0],i=(c=(r=s==null?void 0:s.details)==null?void 0:r.bands)==null?void 0:c[0];return{amount:(i==null?void 0:i.amount)??(i==null?void 0:i.fixed_amount),billingPeriod:((d=s==null?void 0:s.details)==null?void 0:d.pricing_period)??((u=s==null?void 0:s.details)==null?void 0:u.billing_period)}}function oe(t){var n,a,o;const s=new Set((((n=t.pricing_plan_schedule)==null?void 0:n.enabled_pricings)??[]).map(({pricing_id:r})=>r));return s.size===0?[]:(((o=(a=t.pricing_plan_version)==null?void 0:a.pricing_categories)==null?void 0:o.flatMap(r=>r.pricing_groups??[]))??[]).flatMap(r=>(r.pricings??[]).filter(c=>s.has(c.id)).map(c=>({pricingId:c.id,pricingGroupId:r.id,groupName:r.name,name:j.getNameFromPricing(c)||r.name,...ie(c)})))}const ae={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},se={class:"sv-enabled-pricings-list__item-content grow"},re=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const s=t,{$t:i}=b.useIntl(),n=e.computed(()=>{const{amount:a,billingPeriod:o}=s.entry;if(a)return o?i({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:V.formatAmount(a),period:V.formatBillingPeriod(o,{short:!0,hideValueForExactPeriods:!0})}):V.formatAmount(a)});return(a,o)=>(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",ae,[e.createElementVNode("div",se,[e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"subtle",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(b._sfc_main),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),n.value?(e.openBlock(),e.createBlock(e.unref(b._sfc_main),{key:0,tag:"span",variant:"body-sm",color:"subtle",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(P._sfc_main),{intent:"secondary",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:o[0]||(o[0]=r=>a.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),ce={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},le=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const s=t,{$t:i}=b.useIntl(),n=e.computed(()=>oe(s.pricingPlanSchedule));return(a,o)=>n.value.length>0?(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(i)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,r=>(e.openBlock(),e.createBlock(re,{key:r.pricingId,entry:r,onUpgrade:o[0]||(o[0]=c=>a.$emit("upgrade",c))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}});function ue({variant:t,renewableUntil:s,billingPeriodEndsAt:i}){const{$t:n}=b.useIntl(),a=e.computed(()=>t.value==="RENEW"),o=e.computed(()=>a.value?n({defaultMessage:"Renew subscription",description:"Title of the renew subscription confirmation modal",id:"subscription_cancellation_modal.renew.title"}):n({defaultMessage:"Cancel subscription",description:"Title of the cancel subscription confirmation modal",id:"subscription_cancellation_modal.cancel.title"})),r=e.computed(()=>a.value?s.value?n({defaultMessage:"You can renew your subscription until {date}. After this period you can only create a new subscription.",description:"Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",id:"subscription_cancellation_modal.renew.explanation_with_date"},{date:s.value}):n({defaultMessage:"Your subscription will continue as before, and billing will resume on its usual schedule.",description:"Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",id:"subscription_cancellation_modal.renew.explanation"}):i.value?n({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until {date}.",description:"Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation_with_date"},{date:i.value}):n({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",description:"Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation"})),c=e.computed(()=>a.value?n({defaultMessage:"Renew subscription",description:"Label of the confirm button in the renew subscription modal",id:"subscription_cancellation_modal.renew.confirm_button.label"}):n({defaultMessage:"Cancel subscription",description:"Label of the confirm button in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.confirm_button.label"})),d=e.computed(()=>n({defaultMessage:"Cancel",description:"Label of the button that dismisses the cancellation modal",id:"subscription_cancellation_modal.cancel_button.label"})),u=e.computed(()=>a.value?n({defaultMessage:"We could not renew your subscription. Please try again.",description:"Error shown when undoing a cancellation fails",id:"subscription_cancellation_modal.renew.error"}):n({defaultMessage:"We could not cancel your subscription. Please try again.",description:"Error shown when cancelling a subscription fails",id:"subscription_cancellation_modal.cancel.error"}));return{title:o,explanation:r,confirmButtonText:c,cancelButtonText:d,errorMessage:u}}const de=50;function pe(){const{getPaymentMethods:t}=Z.createPaymentMethodsService(),s=e.shallowRef();return{paymentMethod:s,get:async({customerId:n,paymentMethodId:a})=>{const o=await G.getPaginatedFullList(async r=>{const c=await t({customerId:n,pagination:{page:r,pageSize:de}});if(!H.isApiSuccessCollectionResponse(c))throw new Error("Could not load the customer’s payment methods.");return c});return s.value=o.data.find(({id:r})=>r===a),s.value}}}const me={class:"sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3"},be={key:0,class:"sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"},fe={key:0,class:"sv-subscription-cancellation-modal__renews flex gap-1"},ge=e.defineComponent({__name:"SubscriptionCancellationModal",props:{showModal:{type:Boolean},variant:{type:null},subscription:{type:Object},avatar:{type:String}},emits:["confirmed","close"],setup(t,{emit:s}){const i=t,n=s,{$t:a,formatDate:o}=b.useIntl(),r=b.useLogger(),{setSubscriptionCancellation:c}=Y.createSubscriptionsService(),d=e.computed(()=>i.variant),u=e.computed(()=>{var _;const l=((_=i.subscription)==null?void 0:_.inactive_periods)??[],f=l.find(({type:N})=>N==="CANCEL")??l[0];if(f)return o({date:f.start_at,format:"date",offsetType:"local"})}),g=e.computed(()=>{var f,_;const l=(_=(f=i.subscription)==null?void 0:f.next_invoice)==null?void 0:_.invoice_date;if(l)return o({date:l,format:"date",offsetType:"local"})}),y=g,w=e.computed(()=>{var l,f;return(((f=(l=E.getMostRecentScheduleInfo(i.subscription))==null?void 0:l.pricing_plan_schedule)==null?void 0:f.enabled_pricings)??[]).map(({pricing_id:_})=>_).filter(_=>!!_)}),{title:h,explanation:C,confirmButtonText:S,cancelButtonText:k,errorMessage:B}=ue({variant:d,renewableUntil:u,billingPeriodEndsAt:g}),{paymentMethod:v,get:M}=pe();e.watch([()=>i.showModal,()=>{var l;return(l=i.subscription)==null?void 0:l.payment_method_id},()=>{var l;return(l=i.subscription)==null?void 0:l.customer_id}],([l,f,_])=>{var N;!l||!f||!_||f!==((N=v.value)==null?void 0:N.id)&&M({customerId:_,paymentMethodId:f}).catch(()=>{})},{immediate:!0});const p=e.ref(!1),m=e.ref(!1);e.watch(()=>i.showModal,l=>{l&&(m.value=!1)});const x=async()=>{if(!(!i.subscription||!i.variant||p.value)){p.value=!0,m.value=!1;try{await c({id:i.subscription.id,variant:i.variant}),n("confirmed"),n("close")}catch(l){r.error("SUBSCRIPTION_CANCELLATION_FAILED","Failed to change the cancellation state of a subscription",{variant:i.variant},l),m.value=!0}finally{p.value=!1}}},q=()=>{p.value||n("close")};return(l,f)=>(e.openBlock(),e.createBlock(e.unref(F.Modal),{size:"md","show-modal":t.showModal,title:e.unref(h),"confirm-button-text":e.unref(S),"cancel-button-text":e.unref(k),"is-loading":p.value,"no-click-away":p.value,"no-backdrop-close":p.value,onConfirm:x,onClose:q},{body:e.withCtx(()=>[e.createElementVNode("div",me,[e.createVNode(e.unref(b._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-subscription-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(C)),1)]),_:1}),t.subscription?(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{key:0,"no-spacing":"",class:"sv-subscription-cancellation-modal__subscription"},{default:e.withCtx(()=>[e.createVNode(z._sfc_main,{subscription:t.subscription,avatar:t.avatar,"enabled-pricing-ids":w.value},null,8,["subscription","avatar","enabled-pricing-ids"]),e.unref(y)||e.unref(v)?(e.openBlock(),e.createElementBlock("div",be,[e.unref(y)?(e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"secondary",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Renews",description:"Label before the date the subscription renews, shown in the cancel subscription modal",id:"subscription_cancellation_modal.renews_label"})),1)]),_:1}),e.createVNode(e.unref(b._sfc_main),{tag:"span",variant:"body-xs",color:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(y)),1)]),_:1})])):e.createCommentVNode("",!0),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(W._sfc_main),{key:1,variant:"condensed",class:"sv-subscription-cancellation-modal__payment-method","payment-method":e.unref(v)},null,8,["payment-method"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(e.unref(T._sfc_main),{key:1,class:"sv-subscription-cancellation-modal__error sv-error",title:e.unref(B)},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","title","confirm-button-text","cancel-button-text","is-loading","no-click-away","no-backdrop-close"]))}}),_e={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},he=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},hasWalletBalancesError:{type:Boolean},avatar:{type:String},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","subscription-changed"],setup(t,{emit:s}){const i=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("../../SubscriptionSchedules-CMVoB2bw.js"))),n=t,a=s,{$t:o}=b.useIntl(),{isCancellable:r,isRenewable:c,pendingVariant:d,cancel:u,renew:g,dismiss:y,manage:w}=ne({subscription:e.toRef(n,"subscription")}),h=e.ref();e.watch(d,p=>{p&&(h.value=void 0)});const C=()=>{h.value=d.value,a("subscription-changed")},S=e.computed(()=>{if(h.value)return h.value==="RENEW"?o({defaultMessage:"Your subscription has been renewed.",id:"subscription_details.renew_success",description:"Confirmation shown after a cancellation has been undone"}):o({defaultMessage:"Your subscription has been cancelled. You keep access until the end of the billing period.",id:"subscription_details.cancel_success",description:"Confirmation shown after a subscription has been cancelled"})}),k=e.computed(()=>E.getMostRecentScheduleInfo(n.subscription)),B=e.computed(()=>(n.paymentMethods??[]).find(({id:p})=>{var m;return p===((m=n.subscription)==null?void 0:m.payment_method_id)})),v=e.computed(()=>n.subscription?[n.subscription]:[]),M=e.computed(()=>E.getSubscriptionName({subscription:n.subscription,fallback:o({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(p,m)=>(e.openBlock(),e.createBlock(e.unref($.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",_e,[e.createVNode(e.unref(b._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.value),1)]),_:1}),e.unref(c)?(e.openBlock(),e.createBlock(e.unref(P._sfc_main),{key:0,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(g)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createBlock(e.unref(P._sfc_main),{key:1,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[S.value?(e.openBlock(),e.createBlock(e.unref(D._sfc_main),{key:0,class:"sv-subscription-details__cancellation-success",type:"success",title:S.value},null,8,["title"])):e.createCommentVNode("",!0),t.error?(e.openBlock(),e.createBlock(e.unref(T._sfc_main),{key:1,class:"sv-subscription-details__error sv-error",title:e.unref(o)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):t.isLoading?(e.openBlock(),e.createBlock(U._sfc_main,{key:2,variant:"section",class:"min-h-[220px]"})):t.subscription?(e.openBlock(),e.createBlock(e.unref(i),{key:3,class:"sv-subscription-details__schedules","schedules-data":t.schedulesData??[],configuration:{subscriptionId:t.subscription.id},"is-loading":t.isLoading},null,8,["schedules-data","configuration","is-loading"])):(e.openBlock(),e.createBlock(R._sfc_main,{key:4,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode(L._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":!!t.hasWalletBalancesError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances,"show-top-up-button":"",customer:t.customer,"payment-methods":t.paymentMethods,subscriptions:v.value,onTopUpCharged:m[0]||(m[0]=x=>p.$emit("top-up-charged")),onAutoTopUpSaved:m[1]||(m[1]=x=>p.$emit("auto-top-up-saved")),onAutoTopUpCancelled:m[2]||(m[2]=x=>p.$emit("auto-top-up-cancelled")),onPaymentMethodStored:m[3]||(m[3]=x=>p.$emit("payment-method-stored"))},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),k.value?(e.openBlock(),e.createBlock(le,{key:0,class:"sv-subscription-details__upgrades","pricing-plan-schedule":k.value,onUpgrade:e.unref(w)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createBlock(O._sfc_main,{key:1,class:"sv-subscription-details__payment-method","is-loading":t.isLoading,"payment-methods":[B.value],configuration:{showViewAllButton:!1,showAddButton:!1}},null,8,["is-loading","payment-methods"])):e.createCommentVNode("",!0),e.createVNode(ge,{"show-modal":!!e.unref(d),variant:e.unref(d),subscription:t.subscription,avatar:t.avatar,onConfirmed:C,onClose:e.unref(y)},null,8,["show-modal","variant","subscription","avatar","onClose"])]),_:1}))}}),ve=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const s=t,i=s.portalObject.customer_id,{subscription:n,withPlanData:a,get:o,error:r}=K.useSubscription({subscriptionId:s.configuration.subscriptionId}),{customer:c,get:d}=Q.useCustomer({customerId:i}),{items:u,fetchAll:g}=X.usePaymentMethods({customerId:i}),{walletBalances:y,apiStatus:w,fetch:h}=L.useCustomerWalletBalances({customerId:i}),{isLoading:C}=ee.useLoadInitialData(o(),d.execute(),g(),h()),S=e.computed(()=>n.value?a(n.value):[]),k=e.computed(()=>{var v;return((v=y.value)==null?void 0:v.wallet_balances)??[]}),B=e.computed(()=>w.value===J.ApiStatus.Failed);return(v,M)=>e.renderSlot(v.$slots,"default",{subscription:e.unref(n),schedulesData:S.value,customer:e.unref(c),paymentMethods:e.unref(u),walletBalances:k.value,hasWalletBalancesError:B.value,isLoading:e.unref(C),error:e.unref(r),refreshWalletBalances:e.unref(h),refreshPaymentMethods:e.unref(g),refreshSubscription:e.unref(o)})}}),ye=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const s=te.getComponentName("subscription-details");return(i,n)=>(e.openBlock(),e.createBlock(e.unref(b._sfc_main$1),{entry:i.$props,"component-name":e.unref(s),"allowed-portal-types":["CUSTOMER"],onError:n[0]||(n[0]=a=>i.$emit("error",a))},{default:e.withCtx(()=>[e.createVNode(ve,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({subscription:a,schedulesData:o,customer:r,paymentMethods:c,walletBalances:d,hasWalletBalancesError:u,isLoading:g,error:y,refreshWalletBalances:w,refreshPaymentMethods:h,refreshSubscription:C})=>[e.createVNode(he,{subscription:a,"schedules-data":o,customer:r,avatar:t.configuration.avatar,"payment-methods":c,"wallet-balances":d,"has-wallet-balances-error":u,"is-loading":g,error:y,onTopUpCharged:w,onAutoTopUpSaved:w,onAutoTopUpCancelled:w,onPaymentMethodStored:h,onSubscriptionChanged:C},null,8,["subscription","schedules-data","customer","avatar","payment-methods","wallet-balances","has-wallet-balances-error","is-loading","error","onTopUpCharged","onAutoTopUpSaved","onAutoTopUpCancelled","onPaymentMethodStored","onSubscriptionChanged"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:we}=b.createSolvimonElement(ye,"subscription-details");exports.defineSolvimonSubscriptionDetails=we;
|