@solvimon/solvimon-web 0.1.0-alpha.21 → 0.1.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B70SyWOB.mjs} +6 -6
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jXClPW91.js} +1 -1
- package/dist/Alert.vue.es-RyK53a2P.js +1 -0
- package/dist/Alert.vue.es-lIiAWf2S.mjs +146 -0
- package/dist/{Avatar.vue.es-ChcLSNaN.mjs → Avatar.vue.es-2E3laNRb.mjs} +1 -1
- package/dist/{Avatar.vue.es-CJw5z7Uu.js → Avatar.vue.es-DdJreyr_.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js → BillingInformation.vue_vue_type_script_setup_true_lang-ConpyC8n.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-D5EoBLhj.mjs} +4 -4
- package/dist/{Button.vue.es-VQCd3V3C.mjs → Button.vue.es-BJEy-e9C.mjs} +1 -1
- package/dist/{Button.vue.es-BWl37nzm.js → Button.vue.es-CJNxYacb.js} +1 -1
- package/dist/Checkout.entry.ce-BfLlnQyb.js +1 -0
- package/dist/{Checkout.entry.ce-DRHqEFd7.mjs → Checkout.entry.ce-CQkrWscC.mjs} +1397 -1302
- package/dist/{Chip.vue.es-CXG8o1Qf.mjs → Chip.vue.es-DGbc4L_D.mjs} +2 -2
- package/dist/{Chip.vue.es-DUgjuRWm.js → Chip.vue.es-DLQ4QEPo.js} +1 -1
- package/dist/{ContextMenu.vue.es-BllxeDTt.js → ContextMenu.vue.es-Bd2kmeVq.js} +1 -1
- package/dist/{ContextMenu.vue.es-C6TKlSXs.mjs → ContextMenu.vue.es-DL1M7pcr.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-CKQH_ds0.mjs → CustomerBillingInformation.vue.es-CE94ASC3.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-CMCZ-lIM.js → CustomerBillingInformation.vue.es-hiFzB43w.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BE21tqgW.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bhih7rPR.mjs} +5 -5
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C5zc9n64.mjs} +486 -502
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D018AmFA.js +1 -0
- package/dist/{DividerText.vue.es-Bomiy4if.mjs → DividerText.vue.es-CFZUQ62L.mjs} +1 -1
- package/dist/{DividerText.vue.es-BBdydUy_.js → DividerText.vue.es-CvCgHHXN.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-YcaBJDzx.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-jTJGN4jb.js} +1 -1
- package/dist/{ErrorNotification.vue.es-C6ngWAVU.mjs → ErrorNotification.vue.es-B3mvv79S.mjs} +2 -2
- package/dist/ErrorNotification.vue.es-DI2B7WiR.js +1 -0
- package/dist/IconButton.vue.es-Dp8h4YOx.js +1 -0
- package/dist/IconButton.vue.es-GLcGhoHC.mjs +56 -0
- package/dist/{IconTitle.vue.es-Bbusc4wK.mjs → IconTitle.vue.es-CzuPQtOX.mjs} +3 -3
- package/dist/{IconTitle.vue.es-D-q6w2E-.js → IconTitle.vue.es-DN9r6nfK.js} +1 -1
- package/dist/{Input.vue.es-AY1c0Rui.mjs → Input.vue.es-5Cq8a7oH.mjs} +2 -2
- package/dist/{Input.vue.es-BN95nPBw.js → Input.vue.es-DM81HeVv.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D75LSIL8.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-w8w52LcV.js} +1 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DB5h39LA.js +1 -0
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-dRLsZPNh.mjs} +3 -3
- package/dist/{InvoiceSummary.vue.es-Bs5c2Ovx.mjs → InvoiceSummary.vue.es-DbtqsTuP.mjs} +692 -705
- package/dist/InvoiceSummary.vue.es-Qy99kLZs.js +1 -0
- package/dist/{Modal.vue.es-Chi6_MH_.js → Modal.vue.es-DgLl6XBV.js} +1 -1
- package/dist/{Modal.vue.es-DSkC4eMv.mjs → Modal.vue.es-Z2DWAN2u.mjs} +5 -5
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBm51C7c.js +1 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DYuFPIqs.mjs +294 -0
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BNZ9-GW1.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CcdhYTB1.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-budeR7ep.mjs → PaymentHistoryBlock-CjP_514k.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-DGJ_PiVq.js → PaymentHistoryBlock-DS1j-8m-.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CSTfMB8U.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dr2jtJhK.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-DqqGcEP1.js → PaymentIntegrationForm-80b19Lkq.js} +1 -1
- package/dist/{PaymentIntegrationForm-Crrhar96.mjs → PaymentIntegrationForm-CpOZUf-W.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BgztoQH5.mjs} +3 -3
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DKXhthkA.js} +1 -1
- package/dist/{PaymentIntegrationFormAdyen-DM-xMcm0.mjs → PaymentIntegrationFormAdyen-BQcgDcik.mjs} +281 -204
- package/dist/PaymentIntegrationFormAdyen-DElXsJ96.js +98 -0
- package/dist/PaymentIntegrationFormStripe-CMwLqOe6.js +102 -0
- package/dist/{PaymentIntegrationFormStripe-yBm4KnpV.mjs → PaymentIntegrationFormStripe-Dx1H3fZ2.mjs} +249 -178
- package/dist/{PaymentMethod.vue.es-BdMcKq8_.mjs → PaymentMethod.vue.es-EhRCfeax.mjs} +3 -3
- package/dist/{PaymentMethod.vue.es-Ctw9Es1g.js → PaymentMethod.vue.es-pLCCzVxN.js} +1 -1
- package/dist/{PaymentMethodForm-BQ5TVHlS.js → PaymentMethodForm-Bw2e1tXo.js} +1 -1
- package/dist/{PaymentMethodForm-C1bIGX10.mjs → PaymentMethodForm-D3OY8zK5.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DHXw6qD0.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-vGprVPpn.mjs} +5 -5
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CdT1YyeU.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-D7b0HhDc.mjs} +6 -6
- package/dist/PlanCustomizationEditor-BQqkgmzL.mjs +877 -0
- package/dist/PlanCustomizationEditor-RC8kj2rC.js +1 -0
- package/dist/{PricingGroupRangeInput.vue.es-D82XvoC_.js → PricingGroupRangeInput.vue.es-ClkE98ML.js} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Bnb-ARie.mjs → PricingGroupRangeInput.vue.es-DNsiUZyT.mjs} +4 -4
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-BJfQLRcS.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CURXAgMT.mjs} +5 -5
- package/dist/RadioGroupExtended.vue.es-Dk9xdj76.js +1 -0
- package/dist/{RadioGroupExtended.vue.es-WDbo_yj1.mjs → RadioGroupExtended.vue.es-vUqn2ZUP.mjs} +3 -3
- package/dist/{Section.vue.es-By1JltGi.mjs → Section.vue.es-C2_topx4.mjs} +1 -1
- package/dist/{Section.vue.es-DuK52y67.js → Section.vue.es-Cybk1Nb8.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-C9q_qwjt.mjs} +6 -6
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DIgVzXLg.js} +1 -1
- package/dist/{SubscriptionSchedules-DDCjVEbG.mjs → SubscriptionSchedules-BlCU_xc5.mjs} +1 -1
- package/dist/{SubscriptionSchedules-DEjIERyF.js → SubscriptionSchedules-CNTg_oRy.js} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-6LbR_Vni.js +1 -0
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cf3Dy8Yn.mjs} +1655 -1620
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BijBAdqp.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-CjzjchsS.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CxdrAanb.mjs} +7 -7
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Dz4s3CH_.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-DYu2ReL7.mjs → TooltipParagraph.vue.es-Fu9Od3Vr.mjs} +1 -1
- package/dist/{TooltipParagraph.vue.es-sTgWAgcd.js → TooltipParagraph.vue.es-OX6bAWP9.js} +1 -1
- package/dist/{TrialChip.vue.es-Cl-9_pdr.js → TrialChip.vue.es-CbjdkR4i.js} +1 -1
- package/dist/{TrialChip.vue.es-DX53r0ku.mjs → TrialChip.vue.es-c7tZOIW3.mjs} +2 -2
- package/dist/{cn.es-DjnGlmqV.mjs → cn.es-C8Ogac5T.mjs} +2 -2
- package/dist/{cn.es-CNvIP217.js → cn.es-lC4_Xd0R.js} +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +5 -5
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +7 -7
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +5 -5
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +10 -10
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +8 -8
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +4 -4
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +9 -9
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +6 -6
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +5 -5
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +6 -6
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +4 -4
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +26 -23
- package/dist/{customElements-Bt8PbjIn.js → customElements-BYIdPSzQ.js} +43 -19
- package/dist/{customElements-Com2NiGU.mjs → customElements-Df6dGrN-.mjs} +603 -572
- package/dist/{customer-CKgMJEgv.mjs → customer-DmsKYpVi.mjs} +1 -1
- package/dist/{customer-Q4JGfVfq.js → customer-DoLHZuMG.js} +1 -1
- package/dist/{de-DE-DqLD4IX2.js → de-DE-BSlbAnPE.js} +1 -1
- package/dist/{de-DE-CVCmzlNH.mjs → de-DE-Bgm9bnmp.mjs} +21 -0
- package/dist/{de-DE-Ds_yJLS3.js → de-DE-CAL9Mji2.js} +1 -1
- package/dist/{de-DE-DBO5f-Eu.mjs → de-DE-DXsG-vXA.mjs} +13 -8
- package/dist/{en-US-CvFmmI_O.js → en-US-9xdcz3T5.js} +1 -1
- package/dist/{en-US-3UmnS23B.mjs → en-US-C939IZ5i.mjs} +13 -8
- package/dist/{en-US-DVR9O7b_.mjs → en-US-E86eRIxh.mjs} +21 -0
- package/dist/{en-US-C51ILrVv.js → en-US-_xe5H4TQ.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-CV9iAUHf.mjs → invoices-CrO6p4Ms.mjs} +8 -5
- package/dist/invoices-mw87cNTS.js +1 -0
- package/dist/{it-IT-CxBRisRm.mjs → it-IT-BxpwB3oJ.mjs} +8 -3
- package/dist/it-IT-DT3rfjOY.js +1 -0
- package/dist/{it-IT-Dxw59eR_.js → it-IT-QFQ1Ajbb.js} +1 -1
- package/dist/{it-IT-CDMnnFKZ.mjs → it-IT-co1BfV5s.mjs} +23 -2
- package/dist/{nl-NL-Btbfd9p2.js → nl-NL-CJXJC1bx.js} +1 -1
- package/dist/nl-NL-DfkhOJKc.js +1 -0
- package/dist/{nl-NL-o3UvtSNg.mjs → nl-NL-Drv2E66B.mjs} +21 -0
- package/dist/{nl-NL-BWGkVweu.mjs → nl-NL-na2I4aiP.mjs} +8 -3
- package/dist/paymentFailure-Bh60UhxA.mjs +47 -0
- package/dist/paymentFailure-Cki8c5BX.js +1 -0
- package/dist/{paymentMethods-BuwoJ1y9.mjs → paymentMethods-BNQbW_f1.mjs} +1 -1
- package/dist/{paymentMethods-ChWAwDSF.js → paymentMethods-CQdhZwq4.js} +1 -1
- package/dist/{payments-DGckugN0.js → payments-KTjVHqOa.js} +1 -1
- package/dist/{payments-C_cMXQzE.mjs → payments-VS_N2xpJ.mjs} +1 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +1 -0
- package/dist/{pricingItemConfigs.es-DMf1e6y7.mjs → pricingItemConfigs.es-ORxsk_YS.mjs} +23 -22
- package/dist/pricingPlanSchedule-BM8vsKkV.js +1 -0
- package/dist/pricingPlanSchedule-BPrS2WRd.mjs +132 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +21 -21
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +14 -14
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +21 -21
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +20 -20
- package/dist/sessionReference-3h-6FdrC.mjs +43 -0
- package/dist/sessionReference-m_6Rp4X1.js +1 -0
- package/dist/{subscription-CvfAEJeP.mjs → subscription-CrVOr5MF.mjs} +1 -1
- package/dist/{subscription-9GORG-Gt.js → subscription-ZA62t4E9.js} +1 -1
- package/dist/subscriptions-Dugd-oZ1.js +1 -0
- package/dist/{subscriptions-B5VqRayX.mjs → subscriptions-U4xg2CO1.mjs} +2 -2
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +2 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +10 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +1 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +1 -1
- package/dist/types/types/errors.d.ts +5 -0
- package/dist/{useActionDispatchProvider-B54GYEY7.js → useActionDispatchProvider-CTyDGRX8.js} +1 -1
- package/dist/{useActionDispatchProvider-e2lQXTid.mjs → useActionDispatchProvider-DyQbRCxR.mjs} +1 -1
- package/dist/{useCustomer-BJwJ9BkJ.js → useCustomer-BXI5Vmit.js} +1 -1
- package/dist/{useCustomer-CC9zxV6c.mjs → useCustomer-dcmU1539.mjs} +1 -1
- package/dist/useCustomerFormLabels-BC1WfqWo.mjs +968 -0
- package/dist/useCustomerFormLabels-Ct6vD_b8.js +1 -0
- package/dist/{useExperimentalFeature-B0IFn3Uw.mjs → useExperimentalFeature-4Y-ppDr7.mjs} +1 -1
- package/dist/{useExperimentalFeature-8Mzpj5wc.js → useExperimentalFeature-9-p9_nP6.js} +1 -1
- package/dist/{useInvoiceData-6mHUZC9a.mjs → useInvoiceData-B2Z9aD2w.mjs} +2 -2
- package/dist/{useInvoiceData-Bblwdl0f.js → useInvoiceData-CGvtl7Ai.js} +1 -1
- package/dist/{useInvoicesList-_U1-tn9_.js → useInvoicesList-Ba0GO8p-.js} +1 -1
- package/dist/{useInvoicesList-B5H5JfvY.mjs → useInvoicesList-DJPznhig.mjs} +7 -7
- package/dist/{useLoadInitialData-CezlvhBV.js → useLoadInitialData-BO9ZsSsF.js} +1 -1
- package/dist/{useLoadInitialData-ux_wpNiR.mjs → useLoadInitialData-CWyI3_RR.mjs} +1 -1
- package/dist/{usePaymentMethodAvailability-CkR4TwoV.mjs → usePaymentMethodAvailability-DqIvkjLF.mjs} +4 -4
- package/dist/{usePaymentMethodAvailability-DRwrBdto.js → usePaymentMethodAvailability-bkmDrPXY.js} +1 -1
- package/dist/{usePaymentMethodOptions-B6GIM9q4.js → usePaymentMethodOptions-BPBVGNDg.js} +1 -1
- package/dist/{usePaymentMethodOptions-BfnLBZOo.mjs → usePaymentMethodOptions-MSEp39xQ.mjs} +1 -1
- package/dist/{usePaymentMethods-GFmQRp0X.js → usePaymentMethods-BAOtOJZD.js} +1 -1
- package/dist/{usePaymentMethods-C3QfLSrP.mjs → usePaymentMethods-U7gnZ0F5.mjs} +1 -1
- package/dist/{usePayments-BkwGyZT0.mjs → usePayments-Dq2V6bTV.mjs} +6 -6
- package/dist/{usePayments-SQF_V7oL.js → usePayments-G-HpKpK8.js} +1 -1
- package/dist/{usePortal-BdM7hDge.js → usePortal-BplmMkBG.js} +1 -1
- package/dist/{usePortal-DDG9b6FI.mjs → usePortal-CMHV-ShD.mjs} +1 -1
- package/dist/{useSubscription-Q4C2DPhw.js → useSubscription-CvB8ROBt.js} +1 -1
- package/dist/{useSubscription-BJJYHYgr.mjs → useSubscription-V53WsZwQ.mjs} +1 -1
- package/dist/{useTimePeriod.es-pepm2TpV.js → useTimePeriod.es-CtCTu9cz.js} +1 -1
- package/dist/{useTimePeriod.es-9tZvAhyb.mjs → useTimePeriod.es-D31Zl1MJ.mjs} +1 -1
- package/dist/wallets.es-CNIMW5ay.js +1 -0
- package/dist/wallets.es-eH2C2ygn.mjs +102 -0
- package/package.json +2 -1
- package/dist/Checkout.entry.ce-BTVuGyNq.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +0 -1
- package/dist/ErrorNotification.vue.es-0ZC_DozN.js +0 -1
- package/dist/IconButton.vue.es-DAR7e8NA.mjs +0 -198
- package/dist/IconButton.vue.es-DGLIdHkR.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +0 -1
- package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs +0 -144
- package/dist/PaymentIntegrationFormAdyen-DronjwO3.js +0 -98
- package/dist/PaymentIntegrationFormStripe-ybM6wirp.js +0 -102
- package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +0 -769
- package/dist/PlanCustomizationEditor-CiZnVCM6.js +0 -1
- package/dist/RadioGroupExtended.vue.es-B1YtLNKG.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +0 -1
- package/dist/component-5wqcK7yz.mjs +0 -8
- package/dist/component-B7ZDyqBp.js +0 -1
- package/dist/invoices-CvpL4rv5.js +0 -1
- package/dist/it-IT-CFEfSpPH.js +0 -1
- package/dist/nl-NL-jtVgF3jx.js +0 -1
- package/dist/pricingItemConfigs.es-DlybwIh1.js +0 -1
- package/dist/pricingPlanSchedule-COfmWv_o.js +0 -1
- package/dist/pricingPlanSchedule-J1nb9pCu.mjs +0 -129
- package/dist/subscriptions-X0Ciw8z3.js +0 -1
- package/dist/useCustomerFormLabels-72Pxw8X5.js +0 -1
- package/dist/useCustomerFormLabels-V2YuYMLU.mjs +0 -930
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("../../CustomerBillingInformation.vue.es-CMCZ-lIM.js"),g=require("../../customElements-Bt8PbjIn.js"),C=require("../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js"),N=require("../../Button.vue.es-BWl37nzm.js"),s=require("../../InvoiceSummary.vue.es-B0MPR0oI.js"),B=require("../../Section.vue.es-DuK52y67.js"),$=require("../../Comparators.vue.es-DmkxV0gb.js"),S=require("../../DividerText.vue.es-BBdydUy_.js"),E=require("../../useViewport-hPRVDWCm.js"),I=require("../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js"),T=require("../../component-B7ZDyqBp.js"),D={class:"flex items-center gap-2"},M=e.defineComponent({__name:"InfoBlock",props:{variant:{default:"info"},hasIcon:{type:Boolean}},setup(t){const c={info:"info",warning:"error",danger:"error",success:"check_circle"};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-center justify-between gap-2 rounded-sm border px-4 py-3 text-sm",{"border-blue-200 bg-feedback-info text-feedback-info":t.variant==="info","border-red-200 bg-feedback-danger text-feedback-danger":t.variant==="danger","border-yellow-200 bg-feedback-warning text-feedback-warning":t.variant==="warning","border-green-200 bg-feedback-success text-feedback-success":t.variant==="success"}])},[e.createElementVNode("div",D,[t.hasIcon?(e.openBlock(),e.createBlock(e.unref(N._sfc_main$1),{key:0,icon:c[t.variant],size:"xs",class:"shrink-0"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.renderSlot(o.$slots,"default")])]),e.createElementVNode("div",null,[e.renderSlot(o.$slots,"cta")])],2))}}),q=({invoice:t,getPeriodTitle:c,getCreditTypeLabel:o,formatQuantity:a})=>[...t.periods??[],...t.closed_periods??[]].map(r=>{var _,v,p,w;const d=new Map,u=new Map;for(const y of r.groups??[])for(const n of y.lines??[]){const f=(_=n==null?void 0:n.details)==null?void 0:_.wallet_balance_details;if(!f)continue;const b=f.used_wallet_credits??f.left_wallet_credits??f.available_wallet_credits,i=o(b),l={id:`${r.period_order}-${y.group_order}-${n.line_order}`,label:i,used:a((v=f.used_wallet_credits)==null?void 0:v.quantity),left:a((p=f.left_wallet_credits)==null?void 0:p.quantity),available:a((w=f.available_wallet_credits)==null?void 0:w.quantity)},k=`${l.label}-${l.used}-${l.left}-${l.available}`,h=u.get(i)??new Set;if(h.has(k))continue;h.add(k),u.set(i,h);const x=d.get(i)??{id:`${r.period_order}-${i}`,label:i,amount:l.available,rows:[]};x.rows.push(l),d.set(i,x)}return{id:`${r.period_order}-${r.start_at}`,title:c(r),rows:[...d.values()]}}).filter(r=>r.rows.length>0),j={key:0,class:"mt-8"},O={class:"flex flex-col gap-6"},L=["onClick","onKeyup"],A={class:"ml-1 inline-flex h-3.5 w-3.5 items-center justify-center rounded-full bg-blue-100 text-2xs font-bold text-blue-600"},P={key:0},F={class:"p-0"},z={class:"-mx-9 bg-gray-50 px-9 py-3 text-xs"},K=e.defineComponent({__name:"InvoiceCreditsBreakdown",props:{invoice:{type:Object}},setup(t){const c=t,{formatDate:o,$t:a,formatMessage:m,formatNumber:r}=g.useIntl(),{getIsOpen:d,toggle:u}=$.useToggleList(),_=e.computed(()=>Object.fromEntries((c.invoice.credit_types??[]).map(n=>[n.id,n]))),v=n=>m({defaultMessage:"Service period - {startAt} - {endAt}",id:"wallet_balance.service_period_heading",description:"Heading shown above wallet balance details for an invoice period"},{startAt:o({date:n.start_at,format:"date",offsetType:"offsetted",timezone:c.invoice.customer.timezone}),endAt:o({date:n.end_at,format:"date",offsetType:"offsetted",timezone:c.invoice.customer.timezone})}),p=n=>{var f;return n!=null&&n.credit_type_id?((f=_.value[n.credit_type_id])==null?void 0:f.name)??n.credit_type_id:m({defaultMessage:"Credits",id:"wallet_balance.credit_type_fallback_label",description:"Fallback label for wallet balance credit types when no name is available"})},w=n=>n?r(Number(n)):m({defaultMessage:"-",id:"empty_value_placeholder",description:"Placeholder shown when a wallet balance quantity is missing"}),y=e.computed(()=>q({invoice:c.invoice,getPeriodTitle:v,getCreditTypeLabel:p,formatQuantity:w}));return(n,f)=>y.value.length>0?(e.openBlock(),e.createElementBlock("section",j,[e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,b=>(e.openBlock(),e.createElementBlock("section",{key:b.id},[e.createVNode(e.unref(S._sfc_main),{class:"mt-4"},{default:e.withCtx(()=>[e.createVNode(e.unref(g._sfc_main),{tag:"h3",variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024)]),_:2},1024),e.createVNode(e.unref(s.InvoiceTable),{class:"mt-3"},{default:e.withCtx(()=>[e.createElementVNode("tr",null,[e.createVNode(e.unref(s._sfc_main$1),{left:"",class:"text-gray-600"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Wallet balance",id:"wallet_balance.details.header",description:"Section header for invoice wallet balance details"})),1)]),_:1})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.rows,i=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:i.id},[e.createElementVNode("tr",{class:"cursor-pointer border-t",tabindex:"0",onClick:l=>e.unref(u)(i.id),onKeyup:[e.withKeys(l=>e.unref(u)(i.id),["enter"]),e.withKeys(l=>e.unref(u)(i.id),["space"])]},[e.createVNode(e.unref(s._sfc_main$2),{class:"p-0"},{default:e.withCtx(()=>[e.createVNode(e.unref(N._sfc_main$1),{icon:"keyboard_arrow_down",size:"md",class:e.normalizeClass(["absolute -translate-x-7 text-slate-400",{"-rotate-90":!e.unref(d)(i.id)}])},null,8,["class"]),e.createTextVNode(" "+e.toDisplayString(i.label)+" ",1),e.createElementVNode("span",A,e.toDisplayString(i.rows.length),1)]),_:2},1024)],40,L),e.unref(d)(i.id)?(e.openBlock(),e.createElementBlock("tr",P,[e.createElementVNode("td",F,[e.createElementVNode("div",z,[e.createVNode(e.unref(s.InvoiceTable),null,{default:e.withCtx(()=>[e.createElementVNode("tr",null,[e.createVNode(e.unref(s._sfc_main$1),{left:"",class:"w-2/5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Credit breakdown",id:"invoice_credits.credit_breakdown.table_header",description:"Column header for wallet balance credit type details"})),1)]),_:1}),e.createVNode(e.unref(s._sfc_main$1),{right:"",class:"w-1/5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Balance",id:"invoice_credits.balance.table_header",description:"Column header for the available wallet balance amount"})),1)]),_:1}),e.createVNode(e.unref(s._sfc_main$1),{right:"",class:"w-1/5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Used",id:"invoice_credits.used.table_header",description:"Column header for the used wallet credit amount"})),1)]),_:1}),e.createVNode(e.unref(s._sfc_main$1),{right:"",class:"w-1/5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Remaining",id:"invoice_credits.remaining.table_header",description:"Column header for the remaining wallet credit amount"})),1)]),_:1})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.rows,l=>(e.openBlock(),e.createElementBlock("tr",{key:l.id,class:"border-t"},[e.createVNode(e.unref(s._sfc_main$2),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1024),e.createVNode(e.unref(s._sfc_main$2),{number:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.available),1)]),_:2},1024),e.createVNode(e.unref(s._sfc_main$2),{number:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.used),1)]),_:2},1024),e.createVNode(e.unref(s._sfc_main$2),{number:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.left),1)]),_:2},1024)]))),128))]),_:2},1024)])])])):e.createCommentVNode("",!0)],64))),128))]),_:2},1024)]))),128))])])):e.createCommentVNode("",!0)}}),H=e.defineComponent({__name:"InvoiceBlock",props:{invoice:{type:Object}},setup(t){const{$t:c}=g.useIntl(),{isMobileViewport:o}=E.useViewport();return(a,m)=>(e.openBlock(),e.createBlock(e.unref(B._sfc_main),{class:"sv-invoice__summary grow",title:e.unref(c)({defaultMessage:"Invoice",description:"Title for the invoice block on the invoice details page",id:"sdk.invoice_details.invoice.title"})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["sv-invoice__summary-body",{"p-6 pt-2":!e.unref(o)}])},[e.unref(o)?(e.openBlock(),e.createBlock(e.unref(M),{key:0,variant:"info","has-icon":"",class:"sv-invoice__download-hint justify-center border-gray-100 bg-gray-50 font-semibold text-gray-800"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({defaultMessage:"Download the PDF for a full breakdown",description:"Download the PDF for a full breakdown",id:"sdk.invoice_details.invoice.download_pdf"})),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(s._sfc_main),{class:"sv-invoice__summary-content",invoice:t.invoice,"is-expandable":!e.unref(o)},{logo:e.withCtx(()=>[e.renderSlot(a.$slots,"logo")]),_:3},8,["invoice","is-expandable"]),e.createVNode(K,{class:"sv-invoice__credits-breakdown",invoice:t.invoice},null,8,["invoice"])],2)]),_:3},8,["title"]))}}),U={class:"sv-invoice sv-root sv-component"},W={class:"sv-invoice__body flex flex-col gap-3 lg:flex-row lg:gap-6"},R={class:"sv-invoice__aside flex shrink-0 flex-col gap-8 lg:w-72 lg:gap-6"},Y=e.defineComponent({__name:"Invoice",props:{isLoading:{type:Boolean},invoice:{type:Object},payments:{type:Array},invoiceDownloadService:{type:Function},configuration:{type:Object}},setup(t){const c=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("../../PaymentHistoryBlock-DGJ_PiVq.js"))),{$t:o}=g.useIntl();return(a,m)=>{var r,d;return e.openBlock(),e.createElementBlock("div",U,[e.createVNode(C._sfc_main$1,{class:"sv-invoice__header mb-6",invoice:t.invoice,payments:t.payments,"invoice-download-service":t.invoiceDownloadService,"is-loading":t.isLoading,configuration:t.configuration},null,8,["invoice","payments","invoice-download-service","is-loading","configuration"]),e.createElementVNode("div",W,[t.invoice?(e.openBlock(),e.createBlock(H,{key:0,class:"sv-invoice__main",invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0),e.createElementVNode("div",R,[e.createVNode(I._sfc_main,{class:"sv-invoice__details",invoice:t.invoice},null,8,["invoice"]),(r=t.configuration)!=null&&r.enablePaymentAttempts&&((d=t.payments)!=null&&d.length)?(e.openBlock(),e.createBlock(e.unref(c),{key:0,class:"sv-invoice__payment-history","payment-attempts":t.payments,customer:t.invoice.customer},null,8,["payment-attempts","customer"])):e.createCommentVNode("",!0),t.configuration.enableCustomerBillingInformation?(e.openBlock(),e.createBlock(e.unref(V._sfc_main),{key:1,class:"sv-invoice__billing-information",customer:t.invoice.customer,title:e.unref(o)({defaultMessage:"Your billing information",description:"Title for the billing information on the detailed invoice view",id:"sdk.invoice_details.customer_billing_information.title"})},null,8,["customer","title"])):e.createCommentVNode("",!0)])])])}}}),G=e.defineComponent({__name:"Invoice.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){var m;const c=T.getComponentName("invoice"),o=t;if(!((m=o.configuration)!=null&&m.invoiceId))throw new Error("Missing invoice id");const a=e.computed(()=>({...o,configuration:{enableCustomerBillingInformation:!0,enableDownloadButton:!0,enablePaymentAttempts:!0,...o.configuration}}));return(r,d)=>(e.openBlock(),e.createBlock(e.unref(g._sfc_main$1),{entry:r.$props,"component-name":e.unref(c),"allowed-portal-types":["CUSTOMER"],onError:d[0]||(d[0]=u=>r.$emit("error",u))},{default:e.withCtx(()=>[e.createVNode(C._sfc_main,{"invoice-id":a.value.configuration.invoiceId},{default:e.withCtx(({invoice:u,payments:_,isLoading:v,invoiceDownloadService:p})=>[u?(e.openBlock(),e.createBlock(Y,{key:0,"is-loading":v,invoice:u,"invoice-download-service":p,payments:_.payments.value,configuration:a.value.configuration},null,8,["is-loading","invoice","invoice-download-service","payments","configuration"])):e.createCommentVNode("",!0)]),_:1},8,["invoice-id"])]),_:1},8,["entry","component-name"]))}}),{define:J}=g.createSolvimonElement(G,"invoice");exports.defineSolvimonInvoice=J;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("../../CustomerBillingInformation.vue.es-hiFzB43w.js"),g=require("../../customElements-BYIdPSzQ.js"),C=require("../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-DB5h39LA.js"),N=require("../../Button.vue.es-CJNxYacb.js"),s=require("../../InvoiceSummary.vue.es-Qy99kLZs.js"),B=require("../../Section.vue.es-Cybk1Nb8.js"),$=require("../../Comparators.vue.es-DmkxV0gb.js"),S=require("../../DividerText.vue.es-CvCgHHXN.js"),E=require("../../useViewport-hPRVDWCm.js"),I=require("../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-w8w52LcV.js"),T=require("../../sessionReference-m_6Rp4X1.js"),D={class:"flex items-center gap-2"},M=e.defineComponent({__name:"InfoBlock",props:{variant:{default:"info"},hasIcon:{type:Boolean}},setup(t){const c={info:"info",warning:"error",danger:"error",success:"check_circle"};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex items-center justify-between gap-2 rounded-sm border px-4 py-3 text-sm",{"border-blue-200 bg-feedback-info text-feedback-info":t.variant==="info","border-red-200 bg-feedback-danger text-feedback-danger":t.variant==="danger","border-yellow-200 bg-feedback-warning text-feedback-warning":t.variant==="warning","border-green-200 bg-feedback-success text-feedback-success":t.variant==="success"}])},[e.createElementVNode("div",D,[t.hasIcon?(e.openBlock(),e.createBlock(e.unref(N._sfc_main$1),{key:0,icon:c[t.variant],size:"xs",class:"shrink-0"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.renderSlot(o.$slots,"default")])]),e.createElementVNode("div",null,[e.renderSlot(o.$slots,"cta")])],2))}}),q=({invoice:t,getPeriodTitle:c,getCreditTypeLabel:o,formatQuantity:a})=>[...t.periods??[],...t.closed_periods??[]].map(r=>{var _,v,p,w;const d=new Map,u=new Map;for(const y of r.groups??[])for(const n of y.lines??[]){const f=(_=n==null?void 0:n.details)==null?void 0:_.wallet_balance_details;if(!f)continue;const b=f.used_wallet_credits??f.left_wallet_credits??f.available_wallet_credits,i=o(b),l={id:`${r.period_order}-${y.group_order}-${n.line_order}`,label:i,used:a((v=f.used_wallet_credits)==null?void 0:v.quantity),left:a((p=f.left_wallet_credits)==null?void 0:p.quantity),available:a((w=f.available_wallet_credits)==null?void 0:w.quantity)},k=`${l.label}-${l.used}-${l.left}-${l.available}`,h=u.get(i)??new Set;if(h.has(k))continue;h.add(k),u.set(i,h);const x=d.get(i)??{id:`${r.period_order}-${i}`,label:i,amount:l.available,rows:[]};x.rows.push(l),d.set(i,x)}return{id:`${r.period_order}-${r.start_at}`,title:c(r),rows:[...d.values()]}}).filter(r=>r.rows.length>0),j={key:0,class:"mt-8"},O={class:"flex flex-col gap-6"},L=["onClick","onKeyup"],A={class:"ml-1 inline-flex h-3.5 w-3.5 items-center justify-center rounded-full bg-blue-100 text-2xs font-bold text-blue-600"},P={key:0},F={class:"p-0"},z={class:"-mx-9 bg-gray-50 px-9 py-3 text-xs"},K=e.defineComponent({__name:"InvoiceCreditsBreakdown",props:{invoice:{type:Object}},setup(t){const c=t,{formatDate:o,$t:a,formatMessage:m,formatNumber:r}=g.useIntl(),{getIsOpen:d,toggle:u}=$.useToggleList(),_=e.computed(()=>Object.fromEntries((c.invoice.credit_types??[]).map(n=>[n.id,n]))),v=n=>m({defaultMessage:"Service period - {startAt} - {endAt}",id:"wallet_balance.service_period_heading",description:"Heading shown above wallet balance details for an invoice period"},{startAt:o({date:n.start_at,format:"date",offsetType:"offsetted",timezone:c.invoice.customer.timezone}),endAt:o({date:n.end_at,format:"date",offsetType:"offsetted",timezone:c.invoice.customer.timezone})}),p=n=>{var f;return n!=null&&n.credit_type_id?((f=_.value[n.credit_type_id])==null?void 0:f.name)??n.credit_type_id:m({defaultMessage:"Credits",id:"wallet_balance.credit_type_fallback_label",description:"Fallback label for wallet balance credit types when no name is available"})},w=n=>n?r(Number(n)):m({defaultMessage:"-",id:"empty_value_placeholder",description:"Placeholder shown when a wallet balance quantity is missing"}),y=e.computed(()=>q({invoice:c.invoice,getPeriodTitle:v,getCreditTypeLabel:p,formatQuantity:w}));return(n,f)=>y.value.length>0?(e.openBlock(),e.createElementBlock("section",j,[e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,b=>(e.openBlock(),e.createElementBlock("section",{key:b.id},[e.createVNode(e.unref(S._sfc_main),{class:"mt-4"},{default:e.withCtx(()=>[e.createVNode(e.unref(g._sfc_main),{tag:"h3",variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.title),1)]),_:2},1024)]),_:2},1024),e.createVNode(e.unref(s.InvoiceTable),{class:"mt-3"},{default:e.withCtx(()=>[e.createElementVNode("tr",null,[e.createVNode(e.unref(s._sfc_main$1),{left:"",class:"text-gray-600"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Wallet balance",id:"wallet_balance.details.header",description:"Section header for invoice wallet balance details"})),1)]),_:1})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.rows,i=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:i.id},[e.createElementVNode("tr",{class:"cursor-pointer border-t",tabindex:"0",onClick:l=>e.unref(u)(i.id),onKeyup:[e.withKeys(l=>e.unref(u)(i.id),["enter"]),e.withKeys(l=>e.unref(u)(i.id),["space"])]},[e.createVNode(e.unref(s._sfc_main$2),{class:"p-0"},{default:e.withCtx(()=>[e.createVNode(e.unref(N._sfc_main$1),{icon:"keyboard_arrow_down",size:"md",class:e.normalizeClass(["absolute -translate-x-7 text-slate-400",{"-rotate-90":!e.unref(d)(i.id)}])},null,8,["class"]),e.createTextVNode(" "+e.toDisplayString(i.label)+" ",1),e.createElementVNode("span",A,e.toDisplayString(i.rows.length),1)]),_:2},1024)],40,L),e.unref(d)(i.id)?(e.openBlock(),e.createElementBlock("tr",P,[e.createElementVNode("td",F,[e.createElementVNode("div",z,[e.createVNode(e.unref(s.InvoiceTable),null,{default:e.withCtx(()=>[e.createElementVNode("tr",null,[e.createVNode(e.unref(s._sfc_main$1),{left:"",class:"w-2/5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Credit breakdown",id:"invoice_credits.credit_breakdown.table_header",description:"Column header for wallet balance credit type details"})),1)]),_:1}),e.createVNode(e.unref(s._sfc_main$1),{right:"",class:"w-1/5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Balance",id:"invoice_credits.balance.table_header",description:"Column header for the available wallet balance amount"})),1)]),_:1}),e.createVNode(e.unref(s._sfc_main$1),{right:"",class:"w-1/5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Used",id:"invoice_credits.used.table_header",description:"Column header for the used wallet credit amount"})),1)]),_:1}),e.createVNode(e.unref(s._sfc_main$1),{right:"",class:"w-1/5"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Remaining",id:"invoice_credits.remaining.table_header",description:"Column header for the remaining wallet credit amount"})),1)]),_:1})]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.rows,l=>(e.openBlock(),e.createElementBlock("tr",{key:l.id,class:"border-t"},[e.createVNode(e.unref(s._sfc_main$2),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1024),e.createVNode(e.unref(s._sfc_main$2),{number:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.available),1)]),_:2},1024),e.createVNode(e.unref(s._sfc_main$2),{number:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.used),1)]),_:2},1024),e.createVNode(e.unref(s._sfc_main$2),{number:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.left),1)]),_:2},1024)]))),128))]),_:2},1024)])])])):e.createCommentVNode("",!0)],64))),128))]),_:2},1024)]))),128))])])):e.createCommentVNode("",!0)}}),H=e.defineComponent({__name:"InvoiceBlock",props:{invoice:{type:Object}},setup(t){const{$t:c}=g.useIntl(),{isMobileViewport:o}=E.useViewport();return(a,m)=>(e.openBlock(),e.createBlock(e.unref(B._sfc_main),{class:"sv-invoice__summary grow",title:e.unref(c)({defaultMessage:"Invoice",description:"Title for the invoice block on the invoice details page",id:"sdk.invoice_details.invoice.title"})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["sv-invoice__summary-body",{"p-6 pt-2":!e.unref(o)}])},[e.unref(o)?(e.openBlock(),e.createBlock(e.unref(M),{key:0,variant:"info","has-icon":"",class:"sv-invoice__download-hint justify-center border-gray-100 bg-gray-50 font-semibold text-gray-800"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({defaultMessage:"Download the PDF for a full breakdown",description:"Download the PDF for a full breakdown",id:"sdk.invoice_details.invoice.download_pdf"})),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(s._sfc_main),{class:"sv-invoice__summary-content",invoice:t.invoice,"is-expandable":!e.unref(o)},{logo:e.withCtx(()=>[e.renderSlot(a.$slots,"logo")]),_:3},8,["invoice","is-expandable"]),e.createVNode(K,{class:"sv-invoice__credits-breakdown",invoice:t.invoice},null,8,["invoice"])],2)]),_:3},8,["title"]))}}),R={class:"sv-invoice sv-root sv-component"},U={class:"sv-invoice__body flex flex-col gap-3 lg:flex-row lg:gap-6"},W={class:"sv-invoice__aside flex shrink-0 flex-col gap-8 lg:w-72 lg:gap-6"},Y=e.defineComponent({__name:"Invoice",props:{isLoading:{type:Boolean},invoice:{type:Object},payments:{type:Array},invoiceDownloadService:{type:Function},configuration:{type:Object}},setup(t){const c=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("../../PaymentHistoryBlock-DS1j-8m-.js"))),{$t:o}=g.useIntl();return(a,m)=>{var r,d;return e.openBlock(),e.createElementBlock("div",R,[e.createVNode(C._sfc_main$1,{class:"sv-invoice__header mb-6",invoice:t.invoice,payments:t.payments,"invoice-download-service":t.invoiceDownloadService,"is-loading":t.isLoading,configuration:t.configuration},null,8,["invoice","payments","invoice-download-service","is-loading","configuration"]),e.createElementVNode("div",U,[t.invoice?(e.openBlock(),e.createBlock(H,{key:0,class:"sv-invoice__main",invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0),e.createElementVNode("div",W,[e.createVNode(I._sfc_main,{class:"sv-invoice__details",invoice:t.invoice},null,8,["invoice"]),(r=t.configuration)!=null&&r.enablePaymentAttempts&&((d=t.payments)!=null&&d.length)?(e.openBlock(),e.createBlock(e.unref(c),{key:0,class:"sv-invoice__payment-history","payment-attempts":t.payments,customer:t.invoice.customer},null,8,["payment-attempts","customer"])):e.createCommentVNode("",!0),t.configuration.enableCustomerBillingInformation?(e.openBlock(),e.createBlock(e.unref(V._sfc_main),{key:1,class:"sv-invoice__billing-information",customer:t.invoice.customer,title:e.unref(o)({defaultMessage:"Your billing information",description:"Title for the billing information on the detailed invoice view",id:"sdk.invoice_details.customer_billing_information.title"})},null,8,["customer","title"])):e.createCommentVNode("",!0)])])])}}}),G=e.defineComponent({__name:"Invoice.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){var m;const c=T.getComponentName("invoice"),o=t;if(!((m=o.configuration)!=null&&m.invoiceId))throw new Error("Missing invoice id");const a=e.computed(()=>({...o,configuration:{enableCustomerBillingInformation:!0,enableDownloadButton:!0,enablePaymentAttempts:!0,...o.configuration}}));return(r,d)=>(e.openBlock(),e.createBlock(e.unref(g._sfc_main$1),{entry:r.$props,"component-name":e.unref(c),"allowed-portal-types":["CUSTOMER"],onError:d[0]||(d[0]=u=>r.$emit("error",u))},{default:e.withCtx(()=>[e.createVNode(C._sfc_main,{"invoice-id":a.value.configuration.invoiceId},{default:e.withCtx(({invoice:u,payments:_,isLoading:v,invoiceDownloadService:p})=>[u?(e.openBlock(),e.createBlock(Y,{key:0,"is-loading":v,invoice:u,"invoice-download-service":p,payments:_.payments.value,configuration:a.value.configuration},null,8,["is-loading","invoice","invoice-download-service","payments","configuration"])):e.createCommentVNode("",!0)]),_:1},8,["invoice-id"])]),_:1},8,["entry","component-name"]))}}),{define:J}=g.createSolvimonElement(G,"invoice");exports.defineSolvimonInvoice=J;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as M, openBlock as o, createElementBlock as b, normalizeClass as P, createElementVNode as m, createBlock as w, unref as e, createCommentVNode as h, renderSlot as D, computed as L, Fragment as O, renderList as T, createVNode as n, withCtx as a, createTextVNode as _, toDisplayString as f, withKeys as F, defineAsyncComponent as q } from "vue";
|
|
2
|
-
import { _ as H } from "../../CustomerBillingInformation.vue.es-
|
|
3
|
-
import { u as N, _ as U, d as W, e as R } from "../../customElements-
|
|
4
|
-
import { a as Y, _ as G } from "../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { a as V } from "../../Button.vue.es-
|
|
6
|
-
import { I as K, a as B, b as I, _ as J } from "../../InvoiceSummary.vue.es-
|
|
7
|
-
import { _ as X } from "../../Section.vue.es-
|
|
2
|
+
import { _ as H } from "../../CustomerBillingInformation.vue.es-CE94ASC3.mjs";
|
|
3
|
+
import { u as N, _ as U, d as W, e as R } from "../../customElements-Df6dGrN-.mjs";
|
|
4
|
+
import { a as Y, _ as G } from "../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-dRLsZPNh.mjs";
|
|
5
|
+
import { a as V } from "../../Button.vue.es-BJEy-e9C.mjs";
|
|
6
|
+
import { I as K, a as B, b as I, _ as J } from "../../InvoiceSummary.vue.es-DbtqsTuP.mjs";
|
|
7
|
+
import { _ as X } from "../../Section.vue.es-C2_topx4.mjs";
|
|
8
8
|
import { u as Z } from "../../Comparators.vue.es-CwhX3rbx.mjs";
|
|
9
|
-
import { _ as Q } from "../../DividerText.vue.es-
|
|
9
|
+
import { _ as Q } from "../../DividerText.vue.es-CFZUQ62L.mjs";
|
|
10
10
|
import { u as ee } from "../../useViewport-BgdA2PPt.mjs";
|
|
11
|
-
import { _ as te } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import {
|
|
11
|
+
import { _ as te } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D75LSIL8.mjs";
|
|
12
|
+
import { a as ie } from "../../sessionReference-3h-6FdrC.mjs";
|
|
13
13
|
const ne = { class: "flex items-center gap-2" }, ae = /* @__PURE__ */ M({
|
|
14
14
|
__name: "InfoBlock",
|
|
15
15
|
props: {
|
|
@@ -367,7 +367,7 @@ const ne = { class: "flex items-center gap-2" }, ae = /* @__PURE__ */ M({
|
|
|
367
367
|
},
|
|
368
368
|
setup(t) {
|
|
369
369
|
const d = q(
|
|
370
|
-
() => import("../../PaymentHistoryBlock-
|
|
370
|
+
() => import("../../PaymentHistoryBlock-CjP_514k.mjs")
|
|
371
371
|
), { $t: s } = N();
|
|
372
372
|
return (r, y) => {
|
|
373
373
|
var c, v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-w8w52LcV.js"),y=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),u=require("../../useInvoiceData-CGvtl7Ai.js"),s=require("../../customElements-BYIdPSzQ.js"),v=require("../../sessionReference-m_6Rp4X1.js"),d=e.defineComponent({__name:"InvoiceDetails",props:{invoice:{type:Object},isLoading:{type:Boolean},configuration:{type:Object}},setup(t){return(o,i)=>t.isLoading?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,variant:"section",class:"sv-invoice-details sv-root sv-component sv-loading min-h-[100px]","data-testid":"invoice-details-skeleton"})):(e.openBlock(),e.createBlock(l._sfc_main,{key:1,class:"sv-invoice-details sv-root sv-component",invoice:t.invoice},null,8,["invoice"]))}}),g=e.defineComponent({__name:"InvoiceDetails.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 o=t,i=u.useInvoiceData(o.configuration.invoiceId);return(r,a)=>{var n;return e.renderSlot(r.$slots,"default",{invoice:(n=e.unref(i).data.value)==null?void 0:n.invoice,isLoading:e.unref(i).isPending.value})}}}),m=e.defineComponent({__name:"InvoiceDetails.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){var r;const o=v.getComponentName("invoice-details");if(!((r=t.configuration)!=null&&r.invoiceId))throw new Error("Missing invoice id");return(a,n)=>(e.openBlock(),e.createBlock(e.unref(s._sfc_main$1),{entry:a.$props,"component-name":e.unref(o),"allowed-portal-types":["CUSTOMER"],onError:n[0]||(n[0]=c=>a.$emit("error",c))},{default:e.withCtx(()=>[e.createVNode(g,e.normalizeProps(e.guardReactiveProps(a.$props)),{default:e.withCtx(({invoice:c,isLoading:p})=>[c?(e.openBlock(),e.createBlock(d,{key:0,"is-loading":p,invoice:c,configuration:t.configuration},null,8,["is-loading","invoice","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:f}=s.createSolvimonElement(m,"invoice-details");exports.defineSolvimonInvoiceDetails=f;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as a, createBlock as s, renderSlot as d, unref as c, withCtx as y, createVNode as g, normalizeProps as v, guardReactiveProps as u, createCommentVNode as f } from "vue";
|
|
2
|
-
import { _ as S } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as S } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D75LSIL8.mjs";
|
|
3
3
|
import { _ } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
|
|
4
|
-
import { u as O } from "../../useInvoiceData-
|
|
5
|
-
import { d as b, e as j } from "../../customElements-
|
|
6
|
-
import {
|
|
4
|
+
import { u as O } from "../../useInvoiceData-B2Z9aD2w.mjs";
|
|
5
|
+
import { d as b, e as j } from "../../customElements-Df6dGrN-.mjs";
|
|
6
|
+
import { a as w } from "../../sessionReference-3h-6FdrC.mjs";
|
|
7
7
|
const C = /* @__PURE__ */ l({
|
|
8
8
|
__name: "InvoiceDetails",
|
|
9
9
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-DB5h39LA.js"),s=require("../../customElements-BYIdPSzQ.js"),m=require("../../sessionReference-m_6Rp4X1.js"),v=e.defineComponent({__name:"InvoiceHeader.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(p){var r;const l=m.getComponentName("invoice-header"),o=p;if(!((r=o.configuration)!=null&&r.invoiceId))throw new Error("Missing invoice id");const t=e.computed(()=>({...o,configuration:{enableDownloadButton:!0,...o.configuration}}));return(i,a)=>(e.openBlock(),e.createBlock(e.unref(s._sfc_main$1),{entry:i.$props,"component-name":e.unref(l),"allowed-portal-types":["CUSTOMER"],onError:a[0]||(a[0]=n=>i.$emit("error",n))},{default:e.withCtx(()=>[e.createVNode(c._sfc_main,{"invoice-id":t.value.configuration.invoiceId},{default:e.withCtx(({invoice:n,payments:u,isLoading:d,invoiceDownloadService:y})=>[n?(e.openBlock(),e.createBlock(c._sfc_main$1,{key:0,"is-loading":d,invoice:n,"invoice-download-service":y,payments:u.payments.value,configuration:t.value.configuration},null,8,["is-loading","invoice","invoice-download-service","payments","configuration"])):e.createCommentVNode("",!0)]),_:1},8,["invoice-id"])]),_:1},8,["entry","component-name"]))}}),{define:g}=s.createSolvimonElement(v,"invoice-header");exports.defineSolvimonInvoiceHeader=g;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _, a as w } from "../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as b, e as C } from "../../customElements-
|
|
4
|
-
import {
|
|
5
|
-
const j = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as f, computed as g, openBlock as a, createBlock as c, unref as p, withCtx as s, createVNode as v, createCommentVNode as S } from "vue";
|
|
2
|
+
import { _, a as w } from "../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-dRLsZPNh.mjs";
|
|
3
|
+
import { d as b, e as C } from "../../customElements-Df6dGrN-.mjs";
|
|
4
|
+
import { a as O } from "../../sessionReference-3h-6FdrC.mjs";
|
|
5
|
+
const j = /* @__PURE__ */ f({
|
|
6
6
|
__name: "InvoiceHeader.entry",
|
|
7
7
|
props: {
|
|
8
8
|
environment: { type: String },
|
|
@@ -26,7 +26,7 @@ const j = /* @__PURE__ */ u({
|
|
|
26
26
|
const l = O("invoice-header"), o = m;
|
|
27
27
|
if (!((t = o.configuration) != null && t.invoiceId))
|
|
28
28
|
throw new Error("Missing invoice id");
|
|
29
|
-
const n =
|
|
29
|
+
const n = g(() => ({
|
|
30
30
|
...o,
|
|
31
31
|
configuration: {
|
|
32
32
|
enableDownloadButton: !0,
|
|
@@ -43,12 +43,12 @@ const j = /* @__PURE__ */ u({
|
|
|
43
43
|
v(_, {
|
|
44
44
|
"invoice-id": n.value.configuration.invoiceId
|
|
45
45
|
}, {
|
|
46
|
-
default: s(({ invoice: e, payments: d, isLoading: y, invoiceDownloadService:
|
|
46
|
+
default: s(({ invoice: e, payments: d, isLoading: y, invoiceDownloadService: u }) => [
|
|
47
47
|
e ? (a(), c(w, {
|
|
48
48
|
key: 0,
|
|
49
49
|
"is-loading": y,
|
|
50
50
|
invoice: e,
|
|
51
|
-
"invoice-download-service":
|
|
51
|
+
"invoice-download-service": u,
|
|
52
52
|
payments: d.payments.value,
|
|
53
53
|
configuration: n.value.configuration
|
|
54
54
|
}, null, 8, ["is-loading", "invoice", "invoice-download-service", "payments", "configuration"])) : S("", !0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("../../useInvoicesList-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("../../useInvoicesList-Ba0GO8p-.js"),y=require("../../useLoadInitialData-BO9ZsSsF.js"),p=require("../../customElements-BYIdPSzQ.js"),u=require("../../sessionReference-m_6Rp4X1.js"),m=15,d=e.defineComponent({__name:"InvoicesList.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(a){var i,s;const r=a,o=r.portalObject.customer_id,n=c.useInvoicesList({customerId:o,batchSize:((s=(i=r.configuration)==null?void 0:i.pagination)==null?void 0:s.batchSize)||m}),{isLoading:t}=y.useLoadInitialData(n.fetchInitial());return(l,S)=>e.renderSlot(l.$slots,"default",{isLoading:e.unref(t),invoices:e.unref(n)})}}),g=e.defineComponent({__name:"InvoicesList.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(a){const r=u.getComponentName("invoices-list");return(o,n)=>(e.openBlock(),e.createBlock(e.unref(p._sfc_main$1),{entry:o.$props,"component-name":e.unref(r),"allowed-portal-types":["CUSTOMER"],onError:n[0]||(n[0]=t=>o.$emit("error",t))},{default:e.withCtx(()=>[e.createVNode(d,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoices:t,isLoading:i})=>[e.createVNode(c._sfc_main,{configuration:a.configuration,invoices:t.items.value,"is-loading":i,"has-more-items":t.hasNextBatch.value,onLoadMore:t.fetchMore},null,8,["configuration","invoices","is-loading","has-more-items","onLoadMore"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:f}=p.createSolvimonElement(g,"invoices-list");exports.defineSolvimonInvoicesList=f;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as l, renderSlot as m, unref as i, openBlock as g, createBlock as d, withCtx as p, createVNode as c, normalizeProps as u, guardReactiveProps as f } from "vue";
|
|
2
|
-
import { u as S, _ as v } from "../../useInvoicesList-
|
|
3
|
-
import { u as L } from "../../useLoadInitialData-
|
|
4
|
-
import { d as _, e as b } from "../../customElements-
|
|
5
|
-
import {
|
|
2
|
+
import { u as S, _ as v } from "../../useInvoicesList-DJPznhig.mjs";
|
|
3
|
+
import { u as L } from "../../useLoadInitialData-CWyI3_RR.mjs";
|
|
4
|
+
import { d as _, e as b } from "../../customElements-Df6dGrN-.mjs";
|
|
5
|
+
import { a as O } from "../../sessionReference-3h-6FdrC.mjs";
|
|
6
6
|
const h = 15, j = /* @__PURE__ */ l({
|
|
7
7
|
__name: "InvoicesList.entry.view",
|
|
8
8
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CSTfMB8U.js"),l=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),u=require("../../useInvoiceData-CGvtl7Ai.js"),c=require("../../customElements-BYIdPSzQ.js"),g=require("../../sessionReference-m_6Rp4X1.js"),d=e.defineComponent({__name:"PaymentHistory",props:{customer:{type:Object},paymentAttempts:{type:Array},isLoading:{type:Boolean},configuration:{type:Object}},setup(t){return(a,o)=>t.isLoading?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,variant:"section",class:"sv-payment-history sv-root sv-component sv-loading min-h-[100px]","data-testid":"payment-history-skeleton"})):t.paymentAttempts.length?(e.openBlock(),e.createBlock(m._sfc_main,{key:1,class:"sv-payment-history sv-root sv-component","payment-attempts":t.paymentAttempts,customer:t.customer},null,8,["payment-attempts","customer"])):e.createCommentVNode("",!0)}}),v=e.defineComponent({__name:"PaymentHistory.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 a=t,o=u.useInvoiceData(a.configuration.invoiceId);return(i,s)=>{var r,n;return e.renderSlot(i.$slots,"default",{invoice:(r=e.unref(o).data.value)==null?void 0:r.invoice,paymentAttempts:(n=e.unref(o).data.value)==null?void 0:n.paymentAttempts.data,isLoading:e.unref(o).isPending.value})}}}),f=e.defineComponent({__name:"PaymentHistory.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){var i;const a=g.getComponentName("payment-history");if(!((i=t.configuration)!=null&&i.invoiceId))throw new Error("Missing invoice id");return(s,r)=>(e.openBlock(),e.createBlock(e.unref(c._sfc_main$1),{entry:s.$props,"component-name":e.unref(a),"allowed-portal-types":["CUSTOMER"],onError:r[0]||(r[0]=n=>s.$emit("error",n))},{default:e.withCtx(()=>[e.createVNode(v,e.normalizeProps(e.guardReactiveProps(s.$props)),{default:e.withCtx(({invoice:n,paymentAttempts:p,isLoading:y})=>[n&&p?(e.openBlock(),e.createBlock(d,{key:0,"is-loading":y,customer:n.customer,"payment-attempts":p,configuration:t.configuration},null,8,["is-loading","customer","payment-attempts","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:_}=c.createSolvimonElement(f,"payment-history");exports.defineSolvimonPaymentHistory=_;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as s, createBlock as p, createCommentVNode as
|
|
2
|
-
import { _ as O } from "../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as m, openBlock as s, createBlock as p, createCommentVNode as u, renderSlot as d, unref as r, withCtx as l, createVNode as f, normalizeProps as v, guardReactiveProps as S } from "vue";
|
|
2
|
+
import { _ as O } from "../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dr2jtJhK.mjs";
|
|
3
3
|
import { _ as b } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
|
|
4
|
-
import { u as _ } from "../../useInvoiceData-
|
|
5
|
-
import { d as h, e as j } from "../../customElements-
|
|
6
|
-
import {
|
|
4
|
+
import { u as _ } from "../../useInvoiceData-B2Z9aD2w.mjs";
|
|
5
|
+
import { d as h, e as j } from "../../customElements-Df6dGrN-.mjs";
|
|
6
|
+
import { a as A } from "../../sessionReference-3h-6FdrC.mjs";
|
|
7
7
|
const w = /* @__PURE__ */ m({
|
|
8
8
|
__name: "PaymentHistory",
|
|
9
9
|
props: {
|
|
@@ -23,7 +23,7 @@ const w = /* @__PURE__ */ m({
|
|
|
23
23
|
class: "sv-payment-history sv-root sv-component",
|
|
24
24
|
"payment-attempts": t.paymentAttempts,
|
|
25
25
|
customer: t.customer
|
|
26
|
-
}, null, 8, ["payment-attempts", "customer"])) :
|
|
26
|
+
}, null, 8, ["payment-attempts", "customer"])) : u("", !0);
|
|
27
27
|
}
|
|
28
28
|
}), C = /* @__PURE__ */ m({
|
|
29
29
|
__name: "PaymentHistory.entry.view",
|
|
@@ -87,14 +87,14 @@ const w = /* @__PURE__ */ m({
|
|
|
87
87
|
}, {
|
|
88
88
|
default: l(() => [
|
|
89
89
|
f(C, v(S(i.$props)), {
|
|
90
|
-
default: l(({ invoice: e, paymentAttempts: c, isLoading:
|
|
90
|
+
default: l(({ invoice: e, paymentAttempts: c, isLoading: g }) => [
|
|
91
91
|
e && c ? (s(), p(w, {
|
|
92
92
|
key: 0,
|
|
93
|
-
"is-loading":
|
|
93
|
+
"is-loading": g,
|
|
94
94
|
customer: e.customer,
|
|
95
95
|
"payment-attempts": c,
|
|
96
96
|
configuration: t.configuration
|
|
97
|
-
}, null, 8, ["is-loading", "customer", "payment-attempts", "configuration"])) :
|
|
97
|
+
}, null, 8, ["is-loading", "customer", "payment-attempts", "configuration"])) : u("", !0)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 16)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("../../customer.es-BButyYo0.js"),u=require("../../useLoadInitialData-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("../../customer.es-BButyYo0.js"),u=require("../../useLoadInitialData-BO9ZsSsF.js"),l=require("../../useCustomer-BXI5Vmit.js"),d=require("../../usePaymentMethodOptions-BPBVGNDg.js"),g=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-DHXw6qD0.js"),m=require("../../customElements-BYIdPSzQ.js"),f=require("../../sessionReference-m_6Rp4X1.js"),S=e.defineComponent({__name:"PaymentMethodForm.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},countryCode:{type:String}},setup(r){const a=r,i=l.useCustomer({customerId:a.portalObject.customer_id}),n=d.usePaymentMethodOptions(),s=async()=>{var c;const o=await i.get.execute(),p=y.getCustomerCountry(o);await n.get({customerId:o.id,country:p,amount:(c=a.configuration)==null?void 0:c.amount})},{isLoading:t}=u.useLoadInitialData(s());return(o,p)=>e.renderSlot(o.$slots,"default",{customer:e.unref(i).customer.value,paymentMethodOptions:e.unref(n),isLoading:e.unref(t)})}}),O=e.defineComponent({__name:"PaymentMethodForm.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},countryCode:{type:String}},setup(r){const a=f.getComponentName("payment-method-form"),i=r;return(n,s)=>(e.openBlock(),e.createBlock(e.unref(m._sfc_main$1),{entry:n.$props,"component-name":e.unref(a),"allowed-portal-types":["CUSTOMER"],onError:s[0]||(s[0]=t=>n.$emit("error",t))},{default:e.withCtx(()=>[e.createVNode(S,e.normalizeProps(e.guardReactiveProps(i)),{default:e.withCtx(({customer:t,paymentMethodOptions:o,isLoading:p})=>[t?(e.openBlock(),e.createBlock(g._sfc_main,{key:0,customer:t,"payment-method-options":o.paymentMethodOptions.value,configuration:r.configuration,"is-loading":p},null,8,["customer","payment-method-options","configuration","is-loading"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:_}=m.createSolvimonElement(O,"payment-method-form");exports.defineSolvimonPaymentMethodForm=_;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as d, renderSlot as u, unref as n, openBlock as y, createBlock as c, withCtx as l, createVNode as g, normalizeProps as f, guardReactiveProps as S, createCommentVNode as O } from "vue";
|
|
2
2
|
import { g as h } from "../../customer.es-B5ppZf0j.mjs";
|
|
3
|
-
import { u as C } from "../../useLoadInitialData-
|
|
4
|
-
import { u as b } from "../../useCustomer-
|
|
5
|
-
import { u as _ } from "../../usePaymentMethodOptions-
|
|
6
|
-
import { _ as v } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { d as j, e as L } from "../../customElements-
|
|
8
|
-
import {
|
|
3
|
+
import { u as C } from "../../useLoadInitialData-CWyI3_RR.mjs";
|
|
4
|
+
import { u as b } from "../../useCustomer-dcmU1539.mjs";
|
|
5
|
+
import { u as _ } from "../../usePaymentMethodOptions-MSEp39xQ.mjs";
|
|
6
|
+
import { _ as v } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-vGprVPpn.mjs";
|
|
7
|
+
import { d as j, e as L } from "../../customElements-Df6dGrN-.mjs";
|
|
8
|
+
import { a as w } from "../../sessionReference-3h-6FdrC.mjs";
|
|
9
9
|
const M = /* @__PURE__ */ d({
|
|
10
10
|
__name: "PaymentMethodForm.entry.view",
|
|
11
11
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-6LbR_Vni.js"),u=require("../../useSubscription-CvB8ROBt.js"),l=require("../../useLoadInitialData-BO9ZsSsF.js"),c=require("../../customElements-BYIdPSzQ.js"),y=require("../../sessionReference-m_6Rp4X1.js"),d=e.defineComponent({__name:"SubscriptionSchedules.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(n){const s=n,{subscription:o,withPlanData:r,get:i}=u.useSubscription({subscriptionId:s.configuration.subscriptionId}),{isLoading:t}=l.useLoadInitialData(i());return(a,S)=>e.renderSlot(a.$slots,"default",{schedulesData:e.unref(o)?e.unref(r)(e.unref(o)):void 0,isLoading:e.unref(t)})}}),g=e.defineComponent({__name:"SubscriptionSchedules.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(n){const s=y.getComponentName("subscription-schedules"),o=n;return(r,i)=>(e.openBlock(),e.createBlock(e.unref(c._sfc_main$1),{entry:r.$props,"component-name":e.unref(s),"allowed-portal-types":["CUSTOMER"],onError:i[0]||(i[0]=t=>r.$emit("error",t))},{default:e.withCtx(()=>[e.createVNode(d,e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(({schedulesData:t,isLoading:a})=>[t?(e.openBlock(),e.createBlock(p._sfc_main,{key:0,"schedules-data":t,"is-loading":a,configuration:n.configuration},null,8,["schedules-data","is-loading","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:m}=c.createSolvimonElement(g,"subscription-schedules");exports.defineSolvimonSubscriptionSchedules=m;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as y, renderSlot as u, unref as t, openBlock as p, createBlock as c, withCtx as l, createVNode as m, normalizeProps as d, guardReactiveProps as g, createCommentVNode as S } from "vue";
|
|
2
|
-
import { _ as f } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as b } from "../../useSubscription-
|
|
4
|
-
import { u as O } from "../../useLoadInitialData-
|
|
5
|
-
import { d as _, e as h } from "../../customElements-
|
|
6
|
-
import {
|
|
2
|
+
import { _ as f } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cf3Dy8Yn.mjs";
|
|
3
|
+
import { u as b } from "../../useSubscription-V53WsZwQ.mjs";
|
|
4
|
+
import { u as O } from "../../useLoadInitialData-CWyI3_RR.mjs";
|
|
5
|
+
import { d as _, e as h } from "../../customElements-Df6dGrN-.mjs";
|
|
6
|
+
import { a as v } from "../../sessionReference-3h-6FdrC.mjs";
|
|
7
7
|
const j = /* @__PURE__ */ y({
|
|
8
8
|
__name: "SubscriptionSchedules.entry.view",
|
|
9
9
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-Dz4s3CH_.js"),y=require("../../useCustomer-BXI5Vmit.js"),m=require("../../useLoadInitialData-BO9ZsSsF.js"),d=require("../../usePaymentMethods-BAOtOJZD.js"),l=require("../../customElements-BYIdPSzQ.js"),g=require("../../sessionReference-m_6Rp4X1.js"),f=e.defineComponent({__name:"SubscriptionsList.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(s){const t=s.portalObject.customer_id,n=y.useCustomer({customerId:t}),o=u.useSubscriptionsList({customerId:t}),r=d.usePaymentMethods({customerId:t}),{isLoading:i}=m.useLoadInitialData(n.get.execute(),o.fetchInitial(),r.fetchAll());return(a,c)=>e.renderSlot(a.$slots,"default",{customer:e.unref(n),subscriptions:e.unref(o).items,paymentMethods:e.unref(r).items,isLoading:e.unref(i),loadMore:e.unref(o).fetchMore})}}),S=e.defineComponent({__name:"SubscriptionsList.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(s){const p=g.getComponentName("subscriptions-list");return(t,n)=>(e.openBlock(),e.createBlock(e.unref(l._sfc_main$1),{entry:t.$props,"component-name":e.unref(p),"allowed-portal-types":["CUSTOMER"],onError:n[0]||(n[0]=o=>t.$emit("error",o))},{default:e.withCtx(()=>[e.createVNode(f,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(({customer:o,subscriptions:r,paymentMethods:i,isLoading:a,loadMore:c})=>[e.createVNode(u._sfc_main,{configuration:s.configuration,customer:o.customer.value,subscriptions:r.value,"payment-methods":i.value,"is-loading":a,onLoadMore:c},null,8,["configuration","customer","subscriptions","payment-methods","is-loading","onLoadMore"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:b}=l.createSolvimonElement(S,"subscriptions-list");exports.defineSolvimonSubscriptionsList=b;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as y, renderSlot as u, unref as o, openBlock as d, createBlock as g, withCtx as m, createVNode as l, normalizeProps as f, guardReactiveProps as S } from "vue";
|
|
2
|
-
import { u as b, _ as L } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as O } from "../../useCustomer-
|
|
4
|
-
import { u as _ } from "../../useLoadInitialData-
|
|
5
|
-
import { u as v } from "../../usePaymentMethods-
|
|
6
|
-
import { d as h, e as j } from "../../customElements-
|
|
7
|
-
import {
|
|
2
|
+
import { u as b, _ as L } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-CxdrAanb.mjs";
|
|
3
|
+
import { u as O } from "../../useCustomer-dcmU1539.mjs";
|
|
4
|
+
import { u as _ } from "../../useLoadInitialData-CWyI3_RR.mjs";
|
|
5
|
+
import { u as v } from "../../usePaymentMethods-U7gnZ0F5.mjs";
|
|
6
|
+
import { d as h, e as j } from "../../customElements-Df6dGrN-.mjs";
|
|
7
|
+
import { a as C } from "../../sessionReference-3h-6FdrC.mjs";
|
|
8
8
|
const M = /* @__PURE__ */ y({
|
|
9
9
|
__name: "SubscriptionsList.entry.view",
|
|
10
10
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("../../error-CmduqgVq.js"),i=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("../../error-CmduqgVq.js"),i=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D018AmFA.js"),y=require("../../useLoadInitialData-BO9ZsSsF.js"),c=require("../../customElements-BYIdPSzQ.js"),m=require("../../sessionReference-m_6Rp4X1.js"),d=e.defineComponent({__name:"WalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array},showTopUpButton:{type:Boolean},customer:{type:Object},paymentMethods:{type:Array},subscriptions:{type:Array}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","payment-failed"],setup(n,{emit:s}){const o=s;return(r,t)=>(e.openBlock(),e.createBlock(i._sfc_main,{class:"sv-wallet-balances sv-root sv-component","has-error":n.hasError,"is-loading":n.isLoading,"wallet-balances":n.walletBalances,"show-top-up-button":n.showTopUpButton,customer:n.customer,"payment-methods":n.paymentMethods,subscriptions:n.subscriptions,onTopUpCharged:t[0]||(t[0]=a=>o("top-up-charged")),onAutoTopUpSaved:t[1]||(t[1]=a=>o("auto-top-up-saved")),onAutoTopUpCancelled:t[2]||(t[2]=a=>o("auto-top-up-cancelled")),onPaymentMethodStored:t[3]||(t[3]=a=>o("payment-method-stored")),onPaymentFailed:t[4]||(t[4]=a=>o("payment-failed",a))},null,8,["has-error","is-loading","wallet-balances","show-top-up-button","customer","payment-methods","subscriptions"]))}}),g=e.defineComponent({__name:"WalletBalances.entry.view",props:{portalObject:{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},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(n){const o=n.portalObject.customer_id,r=i.useCustomerWalletBalances({customerId:o}),{walletBalances:t}=r,{isLoading:a}=y.useLoadInitialData(r.fetch());return(l,v)=>{var p;return e.renderSlot(l.$slots,"default",{customerWalletBalances:e.unref(r),walletBalanceItems:((p=e.unref(t))==null?void 0:p.wallet_balances)??[],isLoading:e.unref(a)})}}}),b=e.defineComponent({__name:"WalletBalances.entry",props:{portalObject:{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},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(n){const s=m.getComponentName("wallet-balances");return(o,r)=>(e.openBlock(),e.createBlock(e.unref(c._sfc_main$1),{entry:o.$props,"component-name":e.unref(s),"allowed-portal-types":["CUSTOMER"],onError:r[0]||(r[0]=t=>o.$emit("error",t))},{default:e.withCtx(()=>[e.createVNode(g,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({customerWalletBalances:t,walletBalanceItems:a,isLoading:l})=>[e.createVNode(d,{"has-error":t.apiStatus.value===e.unref(u.ApiStatus).Failed,"is-loading":l,"wallet-balances":a},null,8,["has-error","is-loading","wallet-balances"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:S}=c.createSolvimonElement(b,"wallet-balances");exports.defineSolvimonWalletBalances=S;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as y, createBlock as u, renderSlot as d, unref as r, withCtx as m, createVNode as c, normalizeProps as g, guardReactiveProps as b } from "vue";
|
|
2
2
|
import { A as S } from "../../error-BHVZJGwD.mjs";
|
|
3
|
-
import { _ as w, u as f } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as v } from "../../useLoadInitialData-
|
|
5
|
-
import { d as B, e as h } from "../../customElements-
|
|
6
|
-
import {
|
|
3
|
+
import { _ as w, u as f } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C5zc9n64.mjs";
|
|
4
|
+
import { u as v } from "../../useLoadInitialData-CWyI3_RR.mjs";
|
|
5
|
+
import { d as B, e as h } from "../../customElements-Df6dGrN-.mjs";
|
|
6
|
+
import { a as A } from "../../sessionReference-3h-6FdrC.mjs";
|
|
7
7
|
const O = /* @__PURE__ */ p({
|
|
8
8
|
__name: "WalletBalances",
|
|
9
9
|
props: {
|
package/dist/core/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../sessionReference-m_6Rp4X1.js"),s={"customer-overview":()=>Promise.resolve().then(()=>require("../screens/CustomerOverview/CustomerOverview.cjs")).then(e=>e.defineSolvimonCustomerOverview),checkout:()=>Promise.resolve().then(()=>require("../screens/Checkout/Checkout.cjs")).then(e=>e.defineSolvimonCheckout),"subscription-management":()=>Promise.resolve().then(()=>require("../screens/SubscriptionManagement/SubscriptionManagement.cjs")).then(e=>e.defineSolvimonSubscriptionManagement),"subscription-details":()=>Promise.resolve().then(()=>require("../screens/SubscriptionDetails/SubscriptionDetails.cjs")).then(e=>e.defineSolvimonSubscriptionDetails),"pay-invoice":()=>Promise.resolve().then(()=>require("../screens/PayInvoice/PayInvoice.cjs")).then(e=>e.defineSolvimonPayInvoice),"payment-methods-management":()=>Promise.resolve().then(()=>require("../screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs")).then(e=>e.defineSolvimonPaymentMethodsManagement)},m={invoice:()=>Promise.resolve().then(()=>require("../components/Invoice/Invoice.cjs")).then(e=>e.defineSolvimonInvoice),"invoice-header":()=>Promise.resolve().then(()=>require("../components/InvoiceHeader/InvoiceHeader.cjs")).then(e=>e.defineSolvimonInvoiceHeader),"invoice-details":()=>Promise.resolve().then(()=>require("../components/InvoiceDetails/InvoiceDetails.cjs")).then(e=>e.defineSolvimonInvoiceDetails),"invoices-list":()=>Promise.resolve().then(()=>require("../components/InvoicesList/InvoicesList.cjs")).then(e=>e.defineSolvimonInvoicesList),"payment-history":()=>Promise.resolve().then(()=>require("../components/PaymentHistory/PaymentHistory.cjs")).then(e=>e.defineSolvimonPaymentHistory),"subscriptions-list":()=>Promise.resolve().then(()=>require("../components/SubscriptionsList/SubscriptionsList.cjs")).then(e=>e.defineSolvimonSubscriptionsList),"subscription-schedules":()=>Promise.resolve().then(()=>require("../components/SubscriptionSchedules/SubscriptionSchedules.cjs")).then(e=>e.defineSolvimonSubscriptionSchedules),"customer-payment-methods":()=>Promise.resolve().then(()=>require("../components/CustomerPaymentMethods/CustomerPaymentMethods.cjs")).then(e=>e.defineSolvimonCustomerPaymentMethods),"wallet-balances":()=>Promise.resolve().then(()=>require("../components/WalletBalances/WalletBalances.cjs")).then(e=>e.defineSolvimonWalletBalances),"billing-information":()=>Promise.resolve().then(()=>require("../components/BillingInformation/BillingInformation.cjs")).then(e=>e.defineSolvimonBillingInformation),"billing-information-form":()=>Promise.resolve().then(()=>require("../components/BillingInformationForm/BillingInformationForm.cjs")).then(e=>e.defineSolvimonBillingInformationForm),"payment-method-form":()=>Promise.resolve().then(()=>require("../components/PaymentMethodForm/PaymentMethodForm.cjs")).then(e=>e.defineSolvimonPaymentMethodForm)};function p(e){return Object.hasOwn(s,e)}function g(e){return Object.hasOwn(m,e)}function P(e){return v.getComponentName(e)}function b(e,n){const o=n==="screen"?p(e)&&s[e]:g(e)&&m[e];if(!o)throw new Error(`Solvimon: unknown ${n} id "${e}". Registered ${n}s: ${Object.keys(n==="screen"?s:m).join(", ")}.`);return o().then(t=>t())}function E(e){if(typeof e=="string"){const n=document.querySelector(e);if(!n)throw new Error(`Solvimon: container not found for selector "${e}"`);return n}return e}function q(e,n){const o={};for(const[t,i]of Object.entries(n))i!==void 0&&(o[t]=i);Object.assign(e,o)}function y(e,n,o,t){if(!t)throw o;t({schemaVersion:1,level:"error",code:"INITIAL_DATA_LOAD_FAILED",message:`Solvimon: failed to load the "${e}" ${n}`,timestamp:new Date().toISOString(),reference:v.getSessionReference(),context:{id:e,type:n},error:o})}function l(e,n,o,t,i){const h=E(e),d=P(n),f=b(n,o);let r,c=!1;return f.then(()=>{c||(r=document.createElement(d),q(r,t),h.appendChild(r))}).catch(S=>y(n,o,S,i)),{unmount(){c=!0,r==null||r.remove(),r=void 0}}}function u(e){const{container:n,...o}=e;return{container:n,props:Object.fromEntries(Object.entries(o))}}function a(e,n){return{...e,...n}}function C(e={}){return{config:e,createComponent(n,o){const{container:t,props:i}=u(o);return l(t,n,"component",a(e,i),e.onLog).unmount},createScreen(n,o){const{container:t,props:i}=u(o);return l(t,n,"screen",a(e,i),e.onLog).unmount}}}const O=["customer-overview","checkout","subscription-management","subscription-details","pay-invoice","payment-methods-management"],I=["invoice","invoice-header","invoice-details","invoices-list","payment-history","subscriptions-list","subscription-schedules","customer-payment-methods","wallet-balances","billing-information","billing-information-form","payment-method-form"];function R(){return[...O]}function D(){return[...I]}exports.createSolvimonCore=C;exports.getRegisteredComponentIds=D;exports.getRegisteredScreenIds=R;
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { a as v, g as S } from "../sessionReference-3h-6FdrC.mjs";
|
|
2
|
+
const s = {
|
|
3
3
|
"customer-overview": () => import("../screens/CustomerOverview/CustomerOverview.mjs").then(
|
|
4
4
|
(e) => e.defineSolvimonCustomerOverview
|
|
5
5
|
),
|
|
@@ -18,7 +18,7 @@ const m = {
|
|
|
18
18
|
"payment-methods-management": () => import("../screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs").then(
|
|
19
19
|
(e) => e.defineSolvimonPaymentMethodsManagement
|
|
20
20
|
)
|
|
21
|
-
},
|
|
21
|
+
}, m = {
|
|
22
22
|
invoice: () => import("../components/Invoice/Invoice.mjs").then(
|
|
23
23
|
(e) => e.defineSolvimonInvoice
|
|
24
24
|
),
|
|
@@ -56,26 +56,26 @@ const m = {
|
|
|
56
56
|
(e) => e.defineSolvimonPaymentMethodForm
|
|
57
57
|
)
|
|
58
58
|
};
|
|
59
|
-
function S(e) {
|
|
60
|
-
return Object.hasOwn(m, e);
|
|
61
|
-
}
|
|
62
59
|
function g(e) {
|
|
63
60
|
return Object.hasOwn(s, e);
|
|
64
61
|
}
|
|
65
62
|
function b(e) {
|
|
63
|
+
return Object.hasOwn(m, e);
|
|
64
|
+
}
|
|
65
|
+
function E(e) {
|
|
66
66
|
return v(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const o = n === "screen" ?
|
|
68
|
+
function O(e, n) {
|
|
69
|
+
const o = n === "screen" ? g(e) && s[e] : b(e) && m[e];
|
|
70
70
|
if (!o)
|
|
71
71
|
throw new Error(
|
|
72
72
|
`Solvimon: unknown ${n} id "${e}". Registered ${n}s: ${Object.keys(
|
|
73
|
-
n === "screen" ?
|
|
73
|
+
n === "screen" ? s : m
|
|
74
74
|
).join(", ")}.`
|
|
75
75
|
);
|
|
76
76
|
return o().then((t) => t());
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function y(e) {
|
|
79
79
|
if (typeof e == "string") {
|
|
80
80
|
const n = document.querySelector(e);
|
|
81
81
|
if (!n)
|
|
@@ -84,13 +84,13 @@ function O(e) {
|
|
|
84
84
|
}
|
|
85
85
|
return e;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function C(e, n) {
|
|
88
88
|
const o = {};
|
|
89
89
|
for (const [t, i] of Object.entries(n))
|
|
90
90
|
i !== void 0 && (o[t] = i);
|
|
91
91
|
Object.assign(e, o);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function I(e, n, o, t) {
|
|
94
94
|
if (!t) throw o;
|
|
95
95
|
t({
|
|
96
96
|
schemaVersion: 1,
|
|
@@ -98,16 +98,19 @@ function C(e, n, o, t) {
|
|
|
98
98
|
code: "INITIAL_DATA_LOAD_FAILED",
|
|
99
99
|
message: `Solvimon: failed to load the "${e}" ${n}`,
|
|
100
100
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
101
|
+
// The same reference the logger inside the tree uses, so a load failure and whatever the
|
|
102
|
+
// customer did next are one session rather than two unconnected reports.
|
|
103
|
+
reference: S(),
|
|
101
104
|
context: { id: e, type: n },
|
|
102
105
|
error: o
|
|
103
106
|
});
|
|
104
107
|
}
|
|
105
108
|
function a(e, n, o, t, i) {
|
|
106
|
-
const p =
|
|
109
|
+
const p = y(e), d = E(n), f = O(n, o);
|
|
107
110
|
let r, c = !1;
|
|
108
111
|
return f.then(() => {
|
|
109
|
-
c || (r = document.createElement(d),
|
|
110
|
-
}).catch((h) =>
|
|
112
|
+
c || (r = document.createElement(d), C(r, t), p.appendChild(r));
|
|
113
|
+
}).catch((h) => I(n, o, h, i)), {
|
|
111
114
|
unmount() {
|
|
112
115
|
c = !0, r == null || r.remove(), r = void 0;
|
|
113
116
|
}
|
|
@@ -123,7 +126,7 @@ function u(e, n) {
|
|
|
123
126
|
...n
|
|
124
127
|
};
|
|
125
128
|
}
|
|
126
|
-
function
|
|
129
|
+
function N(e = {}) {
|
|
127
130
|
return {
|
|
128
131
|
config: e,
|
|
129
132
|
createComponent(n, o) {
|
|
@@ -148,7 +151,7 @@ function w(e = {}) {
|
|
|
148
151
|
}
|
|
149
152
|
};
|
|
150
153
|
}
|
|
151
|
-
const
|
|
154
|
+
const R = [
|
|
152
155
|
"customer-overview",
|
|
153
156
|
"checkout",
|
|
154
157
|
"subscription-management",
|
|
@@ -169,14 +172,14 @@ const I = [
|
|
|
169
172
|
"billing-information-form",
|
|
170
173
|
"payment-method-form"
|
|
171
174
|
];
|
|
172
|
-
function N() {
|
|
173
|
-
return [...I];
|
|
174
|
-
}
|
|
175
175
|
function P() {
|
|
176
|
+
return [...R];
|
|
177
|
+
}
|
|
178
|
+
function L() {
|
|
176
179
|
return [...D];
|
|
177
180
|
}
|
|
178
181
|
export {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
N as createSolvimonCore,
|
|
183
|
+
L as getRegisteredComponentIds,
|
|
184
|
+
P as getRegisteredScreenIds
|
|
182
185
|
};
|