@solvimon/solvimon-web 0.1.0-alpha.23 → 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/README.md +41 -0
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jXClPW91.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B70SyWOB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs} +6 -6
- package/dist/{Avatar.vue.es-2E3laNRb.mjs → Avatar.vue.es-C9Jkfuvp.mjs} +1 -1
- package/dist/{Avatar.vue.es-DdJreyr_.js → Avatar.vue.es-CvxRdCes.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-ConpyC8n.js → BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-D5EoBLhj.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs} +4 -4
- package/dist/{Button.vue.es-BJEy-e9C.mjs → Button.vue.es-BbSN0uOk.mjs} +1 -1
- package/dist/{Button.vue.es-CJNxYacb.js → Button.vue.es-CeUTAc2n.js} +1 -1
- package/dist/Checkout.entry.ce-BMzK8nQg.mjs +3900 -0
- package/dist/Checkout.entry.ce-DgA0ckyl.js +2 -0
- package/dist/{Chip.vue.es-DLQ4QEPo.js → Chip.vue.es-BN83K3Tk.js} +1 -1
- package/dist/{Chip.vue.es-DGbc4L_D.mjs → Chip.vue.es-T22Q7AF9.mjs} +2 -2
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +38 -0
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +1 -0
- package/dist/{ContextMenu.vue.es-DL1M7pcr.mjs → ContextMenu.vue.es-0PRmCAzL.mjs} +4 -4
- package/dist/{ContextMenu.vue.es-Bd2kmeVq.js → ContextMenu.vue.es-DXKR7WFg.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-CE94ASC3.mjs → CustomerBillingInformation.vue.es-C2j40TYP.mjs} +2 -2
- package/dist/{CustomerBillingInformation.vue.es-hiFzB43w.js → CustomerBillingInformation.vue.es-yrLGc7oL.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bhih7rPR.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs} +5 -5
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BE21tqgW.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D018AmFA.js → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js} +1 -1
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C5zc9n64.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs} +14 -14
- package/dist/{DividerText.vue.es-CFZUQ62L.mjs → DividerText.vue.es-CV1XK_Vz.mjs} +1 -1
- package/dist/{DividerText.vue.es-CvCgHHXN.js → DividerText.vue.es-DsYRZzuE.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-YcaBJDzx.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs} +4 -4
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-jTJGN4jb.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js} +1 -1
- package/dist/{ErrorNotification.vue.es-B3mvv79S.mjs → ErrorNotification.vue.es-CiUJva6S.mjs} +1 -1
- package/dist/{ErrorNotification.vue.es-DI2B7WiR.js → ErrorNotification.vue.es-QfRoDhkn.js} +1 -1
- package/dist/{IconButton.vue.es-GLcGhoHC.mjs → IconButton.vue.es-ChvsCZQG.mjs} +2 -2
- package/dist/{IconButton.vue.es-Dp8h4YOx.js → IconButton.vue.es-CytBZUkZ.js} +1 -1
- package/dist/{IconTitle.vue.es-CzuPQtOX.mjs → IconTitle.vue.es-DPruIJ6l.mjs} +3 -3
- package/dist/{IconTitle.vue.es-DN9r6nfK.js → IconTitle.vue.es-DtnpBObk.js} +1 -1
- package/dist/{Input.vue.es-DM81HeVv.js → Input.vue.es-BkzQDkrz.js} +1 -1
- package/dist/{Input.vue.es-5Cq8a7oH.mjs → Input.vue.es-DJQqJrsb.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D75LSIL8.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-w8w52LcV.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js} +1 -1
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-dRLsZPNh.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DB5h39LA.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js} +1 -1
- package/dist/{InvoiceSummary.vue.es-DbtqsTuP.mjs → InvoiceSummary.vue.es-6qpbyymg.mjs} +7 -7
- package/dist/{InvoiceSummary.vue.es-Qy99kLZs.js → InvoiceSummary.vue.es-v1TkOUhA.js} +1 -1
- package/dist/{Modal.vue.es-Z2DWAN2u.mjs → Modal.vue.es-BuRlbyZw.mjs} +5 -5
- package/dist/{Modal.vue.es-DgLl6XBV.js → Modal.vue.es-JpE0eh_Q.js} +1 -1
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DYuFPIqs.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs} +4 -4
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBm51C7c.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CcdhYTB1.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs} +3 -3
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BNZ9-GW1.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js} +1 -1
- package/dist/{PaymentHistoryBlock-CjP_514k.mjs → PaymentHistoryBlock-DnmParhQ.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-DS1j-8m-.js → PaymentHistoryBlock-uWuWjr8I.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CSTfMB8U.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dr2jtJhK.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-CpOZUf-W.mjs → PaymentIntegrationForm-DL55i0HD.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-80b19Lkq.js → PaymentIntegrationForm-DTXm56QQ.js} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js +1 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BgztoQH5.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs} +43 -40
- package/dist/PaymentIntegrationFormAdyen-C9KoiqMh.js +98 -0
- package/dist/{PaymentIntegrationFormAdyen-BQcgDcik.mjs → PaymentIntegrationFormAdyen-Cqsy82To.mjs} +313 -207
- package/dist/{PaymentIntegrationFormStripe-Dx1H3fZ2.mjs → PaymentIntegrationFormStripe-DIU1rnwH.mjs} +22 -21
- package/dist/{PaymentIntegrationFormStripe-CMwLqOe6.js → PaymentIntegrationFormStripe-DTLgGutU.js} +2 -2
- package/dist/{PaymentMethod.vue.es-pLCCzVxN.js → PaymentMethod.vue.es-ZWda5GqF.js} +1 -1
- package/dist/{PaymentMethod.vue.es-EhRCfeax.mjs → PaymentMethod.vue.es-m1NasGqw.mjs} +3 -3
- package/dist/{PaymentMethodForm-Bw2e1tXo.js → PaymentMethodForm-BEVdWCrH.js} +1 -1
- package/dist/{PaymentMethodForm-D3OY8zK5.mjs → PaymentMethodForm-BYzt1PVP.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DHXw6qD0.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-vGprVPpn.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-D7b0HhDc.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CdT1YyeU.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js} +1 -1
- package/dist/{PlanCustomizationEditor-RC8kj2rC.js → PlanCustomizationEditor-CunwwXTw.js} +1 -1
- package/dist/{PlanCustomizationEditor-BQqkgmzL.mjs → PlanCustomizationEditor-NLVkEYFF.mjs} +9 -9
- package/dist/{PricingGroupRangeInput.vue.es-DNsiUZyT.mjs → PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-ClkE98ML.js → PricingGroupRangeInput.vue.es-Ba3v0J_R.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CURXAgMT.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-BJfQLRcS.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js} +1 -1
- package/dist/{RadioGroupExtended.vue.es-Dk9xdj76.js → RadioGroupExtended.vue.es-CHrcqSRq.js} +1 -1
- package/dist/{RadioGroupExtended.vue.es-vUqn2ZUP.mjs → RadioGroupExtended.vue.es-CkhBp9kI.mjs} +2 -2
- package/dist/{Section.vue.es-Cybk1Nb8.js → Section.vue.es-CSrVPlUK.js} +1 -1
- package/dist/{Section.vue.es-C2_topx4.mjs → Section.vue.es-D5svcVS_.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-C9q_qwjt.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.mjs} +6 -6
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DIgVzXLg.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js} +1 -1
- package/dist/{SubscriptionSchedules-CNTg_oRy.js → SubscriptionSchedules-CMVoB2bw.js} +1 -1
- package/dist/{SubscriptionSchedules-BlCU_xc5.mjs → SubscriptionSchedules-yDcsD1hd.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-6LbR_Vni.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cf3Dy8Yn.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs} +11 -11
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BijBAdqp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js} +1 -1
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-CjzjchsS.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs} +2 -2
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CxdrAanb.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs} +6 -6
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Dz4s3CH_.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-Fu9Od3Vr.mjs → TooltipParagraph.vue.es-CxdL8-B7.mjs} +1 -1
- package/dist/{TooltipParagraph.vue.es-OX6bAWP9.js → TooltipParagraph.vue.es-DS_69pl1.js} +1 -1
- package/dist/{TrialChip.vue.es-CbjdkR4i.js → TrialChip.vue.es-BCc8q5j0.js} +1 -1
- package/dist/{TrialChip.vue.es-c7tZOIW3.mjs → TrialChip.vue.es-BK7m7e7q.mjs} +2 -2
- package/dist/{cn.es-lC4_Xd0R.js → cn.es-71nFUose.js} +1 -1
- package/dist/{cn.es-C8Ogac5T.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-BYIdPSzQ.js → customElements-hH6pju3X.js} +14 -14
- package/dist/{customElements-Df6dGrN-.mjs → customElements-q_i9y0Ph.mjs} +637 -601
- package/dist/{customer-DmsKYpVi.mjs → customer-BDoOIAFr.mjs} +1 -1
- package/dist/{customer-DoLHZuMG.js → customer-C9q6ti8s.js} +1 -1
- package/dist/{de-DE-Bgm9bnmp.mjs → de-DE-B_ik9VNt.mjs} +8 -2
- package/dist/{de-DE-CAL9Mji2.js → de-DE-npBTLtKL.js} +1 -1
- package/dist/{en-US-E86eRIxh.mjs → en-US-DkCltadt.mjs} +6 -0
- package/dist/{en-US-_xe5H4TQ.js → en-US-kGduGoka.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-mw87cNTS.js → invoices-CHp75zZI.js} +1 -1
- package/dist/{invoices-CrO6p4Ms.mjs → invoices-DIzkXntV.mjs} +1 -1
- package/dist/{it-IT-QFQ1Ajbb.js → it-IT-BayNIAy7.js} +1 -1
- package/dist/{it-IT-co1BfV5s.mjs → it-IT-CHj2McbF.mjs} +6 -0
- package/dist/{nl-NL-CJXJC1bx.js → nl-NL-0rV4nFLw.js} +1 -1
- package/dist/{nl-NL-Drv2E66B.mjs → nl-NL-Cdvd_XMN.mjs} +6 -0
- package/dist/{paymentMethods-CQdhZwq4.js → paymentMethods-CZGP6_4W.js} +1 -1
- package/dist/{paymentMethods-BNQbW_f1.mjs → paymentMethods-DEKp_4QM.mjs} +1 -1
- package/dist/{payments-VS_N2xpJ.mjs → payments-C0-Hq2a4.mjs} +1 -1
- package/dist/{payments-KTjVHqOa.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 +11 -11
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +131 -127
- 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 +19 -19
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +19 -19
- package/dist/{subscriptions-U4xg2CO1.mjs → subscriptions--9MaTXMb.mjs} +1 -1
- package/dist/{subscriptions-Dugd-oZ1.js → subscriptions-BArXBCFr.js} +1 -1
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +8 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +4 -2
- package/dist/types/services/portals.types.d.ts +2 -0
- package/dist/types/services/requests.types.d.ts +2 -0
- package/dist/{url-DwiuKYpu.mjs → url-TNRgVI8A.mjs} +3 -2
- package/dist/url-vloPOiXd.js +1 -0
- package/dist/{useActionDispatchProvider-DyQbRCxR.mjs → useActionDispatchProvider-BdciAX8T.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CTyDGRX8.js → useActionDispatchProvider-CKzeqXzY.js} +1 -1
- package/dist/{useCustomer-dcmU1539.mjs → useCustomer-D8ixhuuj.mjs} +1 -1
- package/dist/{useCustomer-BXI5Vmit.js → useCustomer-DSYr0F58.js} +1 -1
- package/dist/{useCustomerFormLabels-Ct6vD_b8.js → useCustomerFormLabels-CRumh405.js} +1 -1
- package/dist/{useCustomerFormLabels-BC1WfqWo.mjs → useCustomerFormLabels-htMZ0xqB.mjs} +5 -5
- package/dist/{useExperimentalFeature-9-p9_nP6.js → useExperimentalFeature-D29-TO3R.js} +1 -1
- package/dist/{useExperimentalFeature-4Y-ppDr7.mjs → useExperimentalFeature-JK_kAUQQ.mjs} +1 -1
- package/dist/{useInvoiceData-B2Z9aD2w.mjs → useInvoiceData-Bpbog3zW.mjs} +2 -2
- package/dist/{useInvoiceData-CGvtl7Ai.js → useInvoiceData-DhrItfv7.js} +1 -1
- package/dist/{useInvoicesList-DJPznhig.mjs → useInvoicesList-BGwcJn4I.mjs} +7 -7
- package/dist/{useInvoicesList-Ba0GO8p-.js → useInvoicesList-duu_b5GW.js} +1 -1
- package/dist/{useLoadInitialData-CWyI3_RR.mjs → useLoadInitialData-BDmmpcfb.mjs} +1 -1
- package/dist/{useLoadInitialData-BO9ZsSsF.js → useLoadInitialData-U2WvBmXT.js} +1 -1
- package/dist/{usePaymentMethodAvailability-bkmDrPXY.js → usePaymentMethodAvailability-DwtT5Czz.js} +1 -1
- package/dist/{usePaymentMethodAvailability-DqIvkjLF.mjs → usePaymentMethodAvailability-adqRujTA.mjs} +4 -4
- package/dist/{usePaymentMethodOptions-BPBVGNDg.js → usePaymentMethodOptions-CXdFKFqZ.js} +1 -1
- package/dist/{usePaymentMethodOptions-MSEp39xQ.mjs → usePaymentMethodOptions-DlZtTQNQ.mjs} +1 -1
- package/dist/{usePaymentMethods-U7gnZ0F5.mjs → usePaymentMethods-BnmSo_rr.mjs} +1 -1
- package/dist/{usePaymentMethods-BAOtOJZD.js → usePaymentMethods-DZ1a0mnr.js} +1 -1
- package/dist/{usePayments-G-HpKpK8.js → usePayments-DL4agK2i.js} +1 -1
- package/dist/{usePayments-Dq2V6bTV.mjs → usePayments-s-Z1di8d.mjs} +6 -6
- package/dist/{usePortal-CMHV-ShD.mjs → usePortal-C4rR5Rhu.mjs} +1 -1
- package/dist/{usePortal-BplmMkBG.js → usePortal-Hm7wvtgQ.js} +1 -1
- package/dist/{useSubscription-CvB8ROBt.js → useSubscription-DMAEJves.js} +1 -1
- package/dist/{useSubscription-V53WsZwQ.mjs → useSubscription-DSsXVO0h.mjs} +1 -1
- package/dist/{useTimePeriod.es-D31Zl1MJ.mjs → useTimePeriod.es-CW8ycmpT.mjs} +1 -1
- package/dist/{useTimePeriod.es-CtCTu9cz.js → useTimePeriod.es-anHB63am.js} +1 -1
- package/package.json +1 -1
- package/dist/Checkout.entry.ce-BfLlnQyb.js +0 -1
- package/dist/Checkout.entry.ce-CQkrWscC.mjs +0 -3769
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +0 -32
- package/dist/ContentWithAsideLayout-C6yMIVJF.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DKXhthkA.js +0 -1
- package/dist/PaymentIntegrationFormAdyen-DElXsJ96.js +0 -98
- package/dist/url-BNKStNY9.js +0 -1
package/README.md
CHANGED
|
@@ -216,6 +216,45 @@ automatically via GitHub Actions. See the
|
|
|
216
216
|
|
|
217
217
|
Want to contribute? Check the [developer documentation](./docs/development/readme.md).
|
|
218
218
|
|
|
219
|
+
## Tracing a failure a customer reports
|
|
220
|
+
|
|
221
|
+
Every log entry carries a `reference` — a short identifier such as `SV-7F3K2A9Q` that is the same
|
|
222
|
+
for every entry from one customer's visit. It survives the 3DS redirect and a reload, and names no
|
|
223
|
+
customer and no account. When a payment fails, the SDK shows that same reference on the error card
|
|
224
|
+
and invites the customer to quote it, so a message saying "it failed, reference SV-7F3K2A9Q" leads
|
|
225
|
+
straight to everything that session logged.
|
|
226
|
+
|
|
227
|
+
Forward it as a searchable tag, and report the thrown value as an exception only when it is one —
|
|
228
|
+
anything else arrives in Sentry as "Object captured as exception", with no title and no stack:
|
|
229
|
+
|
|
230
|
+
```js
|
|
231
|
+
onLog: (entry) => {
|
|
232
|
+
Sentry.withScope((scope) => {
|
|
233
|
+
scope.setTag('solvimon.reference', entry.reference);
|
|
234
|
+
scope.setTag('solvimon.code', entry.code);
|
|
235
|
+
scope.setContext('solvimon', entry.context);
|
|
236
|
+
if (entry.fingerprint) scope.setFingerprint(entry.fingerprint);
|
|
237
|
+
|
|
238
|
+
if (entry.error instanceof Error) {
|
|
239
|
+
Sentry.captureException(entry.error);
|
|
240
|
+
} else {
|
|
241
|
+
if (entry.error) scope.setContext('solvimon.error', entry.errorSerialized ?? {});
|
|
242
|
+
Sentry.captureMessage(`${entry.code}: ${entry.message}`, entry.level);
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Failed payments are logged with the gateway, the payment acceptor, the payment method type and —
|
|
249
|
+
where the failure came back from the Solvimon API — the `requestId` from its `X-Request-Id`
|
|
250
|
+
response header, which is what joins the entry to its server-side logs.
|
|
251
|
+
|
|
252
|
+
A failed API call rejects with an `ApiError` carrying `statusCode`, `requestId` and, for an input
|
|
253
|
+
error, the `field` it belongs to. Every failed request also emits one `REQUEST_FAILED` entry, at
|
|
254
|
+
`error` — or at `warn` where the SDK expects that status and handles it, as the token refresh does
|
|
255
|
+
with a 401. Alert on the codes the callers emit, such as `SESSION_EXPIRED`, rather than on
|
|
256
|
+
`REQUEST_FAILED`, which reports the transport and not what it meant.
|
|
257
|
+
|
|
219
258
|
<!-- log-codes:start — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
220
259
|
|
|
221
260
|
## Error logging
|
|
@@ -250,6 +289,7 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
250
289
|
| `PAYMENT_METHOD_OPTIONS_LOAD_FAILED` | Failed to load the payment methods the checkout can offer |
|
|
251
290
|
| `PROMOTION_CODE_APPLY_FAILED` | Failed to apply promotion code |
|
|
252
291
|
| `PROMOTION_CODE_REMOVE_FAILED` | Failed to remove promotion code |
|
|
292
|
+
| `REQUEST_FAILED` | Request failed |
|
|
253
293
|
| `REQUEST_PARSE_FAILED` | Failed to parse JSON response |
|
|
254
294
|
| `RESOURCE_REVOKED` | Failed to load portal resource |
|
|
255
295
|
| `SESSION_EXPIRED` | Stopped refreshing the access token after repeated 401 responses |
|
|
@@ -273,6 +313,7 @@ The SDK emits structured log entries via the [`onLog`](#error-logging) callback.
|
|
|
273
313
|
| `APPLE_PAY_ACTION_REQUIRED` | Payment requires additional action |
|
|
274
314
|
| `INVOICE_PREVIEW_SKIPPED` | Skipped the top-up invoice preview: no schedule to charge it on |
|
|
275
315
|
| `PAYMENT_INTEGRATION_NOT_RENDERABLE` | No Adyen payment methods to offer |
|
|
316
|
+
| `REQUEST_FAILED` | Request failed with an expected status |
|
|
276
317
|
| `TRANSLATION_LOAD_FAILED` | Failed to load translations for locale… |
|
|
277
318
|
|
|
278
319
|
<!-- log-codes:end — DO NOT EDIT: auto-generated by `npm run logs:list` -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),_=require("./PaymentMethod.vue.es-
|
|
1
|
+
const e=require("vue"),_=require("./PaymentMethod.vue.es-ZWda5GqF.js"),h=require("./Button.vue.es-CeUTAc2n.js"),v=require("./FormMessage.vue.es-dqATjC2N.js"),b=require("./RadioGroupExtended.vue.es-CHrcqSRq.js"),f=require("./customElements-hH6pju3X.js"),g=require("./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js"),u=t=>t.replaceAll("_"," ").toLowerCase().replace(/^./,o=>o.toUpperCase());function k(t){var n,i,l,d,a,s;const o=[];switch(t.type){case"CARD":o.push(t.card.brand&&u(t.card.brand),t.card.last_four_digits);break;case"ONLINE_BANKING":o.push(((n=t.online_banking)==null?void 0:n.variant)&&u(t.online_banking.variant),(i=t.online_banking)==null?void 0:i.owner_name);break;case"DIRECT_DEBIT":o.push(((l=t.direct_debit)==null?void 0:l.variant)&&u(t.direct_debit.variant),(d=t.direct_debit)==null?void 0:d.owner_name);break;case"BUY_NOW_PAY_LATER":o.push(((a=t.buy_now_pay_later)==null?void 0:a.variant)&&u(t.buy_now_pay_later.variant));break;case"DIGITAL_WALLET":o.push(((s=t.digital_wallet)==null?void 0:s.variant)&&u(t.digital_wallet.variant));break}return o.filter(Boolean).join(" ")||u(t.type)}function B(t){const o=e.computed(()=>t.value.map(n=>({value:n.id,label:k(n)}))),r=e.computed(()=>Object.fromEntries(t.value.map(n=>[n.id,n])));return{options:o,paymentMethodsById:r}}const w={class:"sr-only"},A=e.defineComponent({__name:"PaymentMethodSelector",props:{paymentMethods:{type:Array},modelValue:{type:String},label:{type:String},required:{type:Boolean},disabled:{type:Boolean},error:{type:[String,Object,Array]},rootClass:{type:String},showAddOption:{type:Boolean,default:!0},paymentMethodOptions:{type:Array}},emits:["update:modelValue","add-payment-method"],setup(t,{emit:o}){const r=t,n=o,{$t:i}=f.useIntl(),{options:l,paymentMethodsById:d}=B(e.toRef(r,"paymentMethods")),a=e.computed({get:()=>r.modelValue,set:c=>n("update:modelValue",typeof c=="string"?c:void 0)}),s=e.computed(()=>r.paymentMethods.length>0),p=e.computed(()=>{var c;return((c=r.paymentMethodOptions)==null?void 0:c.length)!==0});return(c,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sv-payment-method-selector grid grid-cols-1 gap-2",t.rootClass])},[!s.value&&!p.value?(e.openBlock(),e.createBlock(g._sfc_main,{key:0,class:"sv-payment-method-selector__empty",icon:"credit_card_off"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"No payment methods available",description:"Shown in place of the payment method choice when the customer has nothing stored and nothing can be added",id:"payment_method_selector.empty_state.title"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",null,[s.value?(e.openBlock(),e.createBlock(e.unref(b._sfc_main),{key:0,modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=m=>a.value=m),class:"sv-payment-method-selector__options",name:"payment-method",direction:"column",options:e.unref(l),label:t.label,required:t.required,disabled:t.disabled,error:t.error,"show-radio":!1},{prefix:e.withCtx(({optionValue:m})=>[e.createVNode(e.unref(_._sfc_main),{class:"sv-payment-method-selector__option-content grow","payment-method":e.unref(d)[String(m)]},null,8,["payment-method"])]),label:e.withCtx(({option:m})=>[e.createElementVNode("span",w,e.toDisplayString(m.label),1)]),_:1},8,["modelValue","options","label","required","disabled","error"])):e.createCommentVNode("",!0)]),t.showAddOption&&p.value?(e.openBlock(),e.createBlock(e.unref(h._sfc_main),{key:0,class:"sv-action sv-action--secondary sv-action--full-width sv-payment-method-selector__add w-full",intent:"secondary","icon-prefix":"add",type:"button",size:"sm",disabled:t.disabled,onClick:y[1]||(y[1]=m=>n("add-payment-method"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Add payment method",description:"Label of the button that adds a new payment method",id:"payment_method_selector.add_payment_method"})),1)]),_:1},8,["disabled"])):t.showAddOption?(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:1,variant:"body-sm",color:"subtle",tag:"p",class:"sv-payment-method-selector__unavailable"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"There are no available payment methods. Please contact support for more information.",description:"Shown in place of the add button when the customer cannot add any payment method",id:"payment_method_selector.no_payment_methods_available"})),1)]),_:1})):e.createCommentVNode("",!0),t.error&&!s.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:2,class:"sv-payment-method-selector__error",message:t.error,variant:"error"},null,8,["message"])):e.createCommentVNode("",!0)],64))],2))}}),C=e.defineComponent({__name:"AddPaymentMethodPane",props:{customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},isActive:{type:Boolean}},emits:["success","failure"],setup(t,{expose:o}){const r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentMethodForm-BEVdWCrH.js")).then(a=>a.default)),n=t,i=e.computed(()=>({variant:"TOKENIZE"})),l=e.ref(!1);e.watch(()=>n.isActive,a=>{l.value=l.value||!!a},{immediate:!0});const d=e.ref();return o({submit:()=>{var a;return(a=d.value)==null?void 0:a.submit()},isSaving:e.computed(()=>{var a;return!!n.isActive&&!!((a=d.value)!=null&&a.isPaymentPending)})}),(a,s)=>t.customer&&l.value?(e.openBlock(),e.createBlock(e.unref(r),{key:0,ref_key:"formRef",ref:d,class:"sv-add-payment-method-pane","hide-submit-button":"",customer:t.customer,"payment-method-options":t.paymentMethodOptions??[],"is-loading":t.isLoading,configuration:i.value,onSuccess:s[0]||(s[0]=p=>a.$emit("success")),onFailure:s[1]||(s[1]=p=>a.$emit("failure",p))},null,8,["customer","payment-method-options","is-loading","configuration"])):e.createCommentVNode("",!0)}});exports._sfc_main=A;exports._sfc_main$1=C;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { computed as c, defineComponent as O, toRef as C, openBlock as m, createElementBlock as w, normalizeClass as N, createBlock as f, withCtx as v, createTextVNode as A, toDisplayString as b, unref as s, Fragment as S, createElementVNode as k, createVNode as V, createCommentVNode as g, defineAsyncComponent as $, ref as B, watch as E } from "vue";
|
|
2
|
-
import { _ as P } from "./PaymentMethod.vue.es-
|
|
3
|
-
import { _ as I } from "./Button.vue.es-
|
|
2
|
+
import { _ as P } from "./PaymentMethod.vue.es-m1NasGqw.mjs";
|
|
3
|
+
import { _ as I } from "./Button.vue.es-BbSN0uOk.mjs";
|
|
4
4
|
import { _ as L } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
5
|
-
import { _ as T } from "./RadioGroupExtended.vue.es-
|
|
6
|
-
import { u as x, _ as R } from "./customElements-
|
|
7
|
-
import { _ as D } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as T } from "./RadioGroupExtended.vue.es-CkhBp9kI.mjs";
|
|
6
|
+
import { u as x, _ as R } from "./customElements-q_i9y0Ph.mjs";
|
|
7
|
+
import { _ as D } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs";
|
|
8
8
|
const y = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (a) => a.toUpperCase());
|
|
9
9
|
function j(e) {
|
|
10
10
|
var o, r, l, d, t, n;
|
|
@@ -176,7 +176,7 @@ const F = { class: "sr-only" }, Z = /* @__PURE__ */ O({
|
|
|
176
176
|
emits: ["success", "failure"],
|
|
177
177
|
setup(e, { expose: a }) {
|
|
178
178
|
const i = $(
|
|
179
|
-
() => import("./PaymentMethodForm-
|
|
179
|
+
() => import("./PaymentMethodForm-BYzt1PVP.mjs").then((t) => t.default)
|
|
180
180
|
), o = e, r = c(() => ({
|
|
181
181
|
variant: "TOKENIZE"
|
|
182
182
|
})), l = B(!1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as f, watch as g, defineComponent as h, computed as x, openBlock as i, createElementBlock as s, normalizeStyle as u, normalizeClass as d, toDisplayString as v, createBlock as b, unref as m, createCommentVNode as k, createElementVNode as y } from "vue";
|
|
2
|
-
import { a as w } from "./Button.vue.es-
|
|
2
|
+
import { a as w } from "./Button.vue.es-BbSN0uOk.mjs";
|
|
3
3
|
const z = (e) => {
|
|
4
4
|
const t = f(), l = (n) => {
|
|
5
5
|
let a = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),s=require("./Button.vue.es-
|
|
1
|
+
const e=require("vue"),s=require("./Button.vue.es-CeUTAc2n.js"),u=t=>{const n=e.ref(),i=l=>{let a=0;for(let o=0;o<l.length;o++)a=l.charCodeAt(o)+((a<<5)-a);let r="#";for(let o=0;o<3;o++){const c=a>>o*8&255;r+=("00"+c.toString(16)).substr(-2)}return r};return e.watch(()=>t,()=>{n.value=i(t)},{immediate:!0}),n},d=e.defineComponent({__name:"Avatar",props:{initials:{},imageSrc:{},size:{default:"md"},round:{type:Boolean,default:!1},variant:{default:"light"},colorHash:{},font:{default:"icon"},icon:{}},setup(t){const n=t,i={xs:"w-4 h-4",sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"},l={xs:"text-base",sm:"text-lg",md:"text-2xl",lg:"text-4xl",xl:"text-6xl"},a=u(n.colorHash??n.initials??"A"),r=e.computed(()=>n.imageSrc?{backgroundImage:`url(${n.imageSrc})`}:void 0);return(o,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative flex shrink-0 items-center justify-center overflow-hidden rounded bg-primary-300 bg-cover",{[i[n.size]]:!0,"rounded-full":t.round,"border border-black border-opacity-5":t.variant==="dark"}]),style:e.normalizeStyle(r.value)},[t.initials&&!t.imageSrc&&!t.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["font-regular z-10 text-2xl font-semibold",{[l[n.size]]:!0,"font-regular":t.font==="icon","font-inter drop-shadow-sm":t.font==="regular","text-white/70":t.variant==="light","text-black/10":t.variant==="dark"}])},e.toDisplayString(t.initials.toUpperCase()),3)):t.icon?(e.openBlock(),e.createBlock(e.unref(s._sfc_main$1),{key:1,icon:t.icon,class:"z-10 text-white"},null,8,["icon"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"pointer-events-none absolute inset-0 opacity-20",style:e.normalizeStyle({backgroundColor:e.unref(a)})},null,4)],6))}});exports._sfc_main=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("vue"),a=require("./Button.vue.es-
|
|
1
|
+
const t=require("vue"),a=require("./Button.vue.es-CeUTAc2n.js"),l=require("./CustomerBillingInformation.vue.es-yrLGc7oL.js"),u=require("./customElements-hH6pju3X.js"),m=require("./Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),f=require("./useActionDispatchProvider-CKzeqXzY.js"),_=require("./configuration-akTS7Wiw.js"),v=t.defineComponent({__name:"BillingInformation",props:{customer:{type:Object},isLoading:{type:Boolean},configuration:{type:Object}},emits:["edit-billing-information"],setup(e){const n={showEditButton:!0},o=e,s=t.computed(()=>_.resolveConfiguration(n,o.configuration)),{$t:r}=u.useIntl(),{dispatchAction:c}=f.useActionDispatchProvider();return(d,i)=>e.isLoading?(t.openBlock(),t.createBlock(m._sfc_main,{key:0,variant:"section",class:"sv-billing-information sv-root sv-component sv-loading min-h-[100px]","data-testid":"billing-information-skeleton"})):(t.openBlock(),t.createBlock(t.unref(l._sfc_main),{key:1,class:"sv-billing-information sv-root sv-component",customer:e.customer,"fallback-to-reference":!1},t.createSlots({_:2},[s.value.showEditButton?{name:"settings",fn:t.withCtx(()=>[t.createVNode(t.unref(a._sfc_main),{size:"sm",intent:"subtle","icon-prefix":"edit",class:"sv-action sv-action--ghost sv-billing-information__edit",onClick:i[0]||(i[0]=g=>t.unref(c)({action:"edit-billing-information"}))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)({defaultMessage:"Edit",id:"customer_overview.billing_information_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer billing information"})),1)]),_:1})]),key:"0"}:void 0]),1032,["customer"]))}});exports._sfc_main=v;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as f, computed as u, openBlock as n, createBlock as e, unref as t, createSlots as p, withCtx as s, createVNode as d, createTextVNode as _, toDisplayString as g } from "vue";
|
|
2
|
-
import { _ as v } from "./Button.vue.es-
|
|
3
|
-
import { _ as b } from "./CustomerBillingInformation.vue.es-
|
|
4
|
-
import { u as k } from "./customElements-
|
|
2
|
+
import { _ as v } from "./Button.vue.es-BbSN0uOk.mjs";
|
|
3
|
+
import { _ as b } from "./CustomerBillingInformation.vue.es-C2j40TYP.mjs";
|
|
4
|
+
import { u as k } from "./customElements-q_i9y0Ph.mjs";
|
|
5
5
|
import { _ as h } from "./Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs";
|
|
6
|
-
import { u as y } from "./useActionDispatchProvider-
|
|
6
|
+
import { u as y } from "./useActionDispatchProvider-BdciAX8T.mjs";
|
|
7
7
|
import { r as x } from "./configuration-BytDBAWs.mjs";
|
|
8
8
|
const T = /* @__PURE__ */ f({
|
|
9
9
|
__name: "BillingInformation",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, openBlock as r, createElementBlock as u, normalizeClass as v, createElementVNode as g, useSlots as _, computed as n, ref as I, toRefs as S, unref as o, createBlock as R, resolveDynamicComponent as q, withCtx as $, createVNode as z, createCommentVNode as d, renderSlot as k, mergeDefaults as V } from "vue";
|
|
2
|
-
import { _ as M } from "./customElements-
|
|
2
|
+
import { _ as M } from "./customElements-q_i9y0Ph.mjs";
|
|
3
3
|
const N = {
|
|
4
4
|
class: "h-full w-full",
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),w=require("./customElements-
|
|
1
|
+
const e=require("vue"),w=require("./customElements-hH6pju3X.js"),k={class:"h-full w-full",xmlns:"http://www.w3.org/2000/svg",viewbox:"0 0 48 48"},z=["xlink:href"],h=e.defineComponent({__name:"Icon",props:{icon:{},size:{default:"sm"},variant:{default:"default"}},setup(t){const n={"3xs":"w-[10px] h-[10px]","2xs":"w-[14px] h-[14px]",xs:"w-[16px] h-[16px]",sm:"w-[20px] h-[20px]",base:"w-[22px] h-[22px]",md:"w-[24px] h-[24px]",lg:"w-[32px] h-[32px]",xl:"w-[48px] h-[48px]"};return(s,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["icon inline-flex items-center justify-center align-middle leading-none",[n[t.size],{"rounded border bg-gray-50 p-1 selection:drop-shadow-sm":t.variant==="contained"}]])},[(e.openBlock(),e.createElementBlock("svg",k,[e.createElementVNode("use",{"xlink:href":`#${t.icon}`},null,8,z)]))],2))}}),B={primary:{rest:"border border-transparent bg-primary-600 text-white",interactive:"hover:bg-primary-700 active:bg-primary-800",focus:"focus-visible:outline-primary-600"},secondary:{rest:"border border-gray-200 bg-white text-gray-900",interactive:"hover:bg-gray-50 active:bg-gray-100",focus:"focus-visible:outline-gray-500"},subtle:{rest:"border border-transparent bg-transparent text-gray-700",interactive:"hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200",focus:"focus-visible:outline-gray-500"},danger:{rest:"border border-transparent bg-red-700 text-white",interactive:"hover:bg-red-800 active:bg-red-900",focus:"focus-visible:outline-red-700"},dangerSecondary:{rest:"border border-red-200 bg-white text-red-700",interactive:"hover:bg-red-50 active:bg-red-100",focus:"focus-visible:outline-red-700"}},C={intent:"primary",size:"md",pill:!1,square:!1,loading:!1,disabled:!1,iconPrefix:void 0,iconSuffix:void 0,tag:"button",preventDoubleClick:!0},c=(...t)=>{const n=new Set;for(const s of t)if(s)for(const l of s.split(/\s+/))l&&n.add(l);return[...n].join(" ")},S=["relative inline-flex shrink-0 items-center justify-center overflow-clip","whitespace-nowrap rounded font-medium transition-colors","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"].join(" "),R={xs:"h-6",sm:"h-8",md:"h-10",lg:"h-12"},V={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"},$={xs:"py-1",sm:"py-1.5",md:"py-2",lg:"py-3"},_={xs:"gap-0.5",sm:"gap-1.5",md:"gap-2",lg:"gap-3"},E={xs:{compactLeft:"pl-1",compactRight:"pr-1",spaciousLeft:"pl-1",spaciousRight:"pr-1"},sm:{compactLeft:"pl-1.5",compactRight:"pr-1.5",spaciousLeft:"pl-3",spaciousRight:"pr-3"},md:{compactLeft:"pl-2",compactRight:"pr-2",spaciousLeft:"pl-4",spaciousRight:"pr-4"},lg:{compactLeft:"pl-3",compactRight:"pr-3",spaciousLeft:"pl-6",spaciousRight:"pr-6"}};function L(t){const n=e.useSlots(),s=e.computed(()=>!!(n.prefix||t.iconPrefix.value)),l=e.computed(()=>!!(n.suffix||t.iconSuffix.value)),i=e.computed(()=>!!n.default),r=e.computed(()=>!i.value&&(s.value||l.value)),u=e.computed(()=>{var o;return(o=t.square)!=null&&o.value?V[t.size.value]:R[t.size.value]}),d=e.computed(()=>{var o;if((o=t.square)!=null&&o.value)return"";const a=E[t.size.value],b=r.value||s.value,y=r.value||l.value;return c($[t.size.value],b?a.compactLeft:a.spaciousLeft,y?a.compactRight:a.spaciousRight)}),f=e.computed(()=>{const o=B[t.intent.value??C.intent],a=!t.loading.value&&!t.disabled.value;return c(o.rest,o.focus,a&&o.interactive)}),p=e.computed(()=>t.pill.value?"!rounded-full":""),m=e.computed(()=>t.disabled.value||t.loading.value?"cursor-not-allowed opacity-50":""),v=e.computed(()=>c(S,f.value,u.value,d.value,p.value,m.value)),g=e.computed(()=>c("flex items-center justify-center",_[t.size.value],t.loading.value?"opacity-0":""));return{wrapperClasses:v,spanClasses:g}}const N={xs:"2",sm:"3",md:"4",lg:"5"},j={primary:"white",secondary:"gray",subtle:"gray",danger:"white",dangerSecondary:"red"};function P(t){const n=e.computed(()=>N[t.size.value]),s=e.computed(()=>j[t.intent.value]);return{size:n,color:s}}function D(t=500){const n=e.ref(!1);function s(l){if(!n.value){n.value=!0;try{l()}finally{setTimeout(()=>{n.value=!1},t)}}}return{isClicked:n,handleClick:s}}const q={0:"w-0 h-0","0.5":"w-0.5 h-0.5",1:"w-1 h-1","1.5":"w-1.5 h-1.5",10:"w-10 h-10",11:"w-11 h-11",12:"w-12 h-12",2:"w-2 h-2","2.5":"w-2.5 h-2.5",3:"w-3 h-3",4:"w-4 h-4",5:"w-5 h-5",6:"w-6 h-6",7:"w-7 h-7",8:"w-8 h-8",9:"w-9 h-9",px:"w-px h-px"},I={primary:"fill-primary-600",blue:"fill-blue-600",gray:"fill-gray-600",green:"fill-green-500",pink:"fill-pink-600",purple:"fill-purple-600",red:"fill-red-600",yellow:"fill-yellow-400",white:"fill-white"};function M(t){const n=e.computed(()=>q[t.size.value]),s=e.computed(()=>I[t.color.value]),l="text-gray-200",i="animate-spin";return{spinnerClasses:e.computed(()=>[n.value,l,s.value,i].join(" "))}}const x=e.defineComponent({__name:"Spinner",props:{size:{default:"4"},color:{default:"primary"}},setup(t){const n=t,{spinnerClasses:s}=M(e.toRefs(n));return(l,i)=>(e.openBlock(),e.createElementBlock("svg",{role:"status",class:e.normalizeClass(e.unref(s)),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...i[0]||(i[0]=[e.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])],2))}}),Z={key:0,class:"absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center bg-inherit"},H={key:0,class:"flex items-center justify-center"},F={key:2,class:"flex items-center justify-center"},G=e.defineComponent({__name:"Button",props:e.mergeDefaults({type:{},intent:{},size:{},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{},iconSuffix:{},tag:{},preventDoubleClick:{type:Boolean}},C),emits:["click"],setup(t,{emit:n}){const s=t,l=n,i=e.computed(()=>{switch(s.size){case"xs":return"2xs";case"sm":return"xs";default:return"sm"}}),r=e.computed(()=>i.value==="xs"?"4":"5"),u=e.computed(()=>["xs","sm"].includes(s.size)?"body-xs":"body-sm"),{wrapperClasses:d,spanClasses:f}=L(e.toRefs(s)),{color:p}=P(e.toRefs(s)),{handleClick:m}=D(),v=e.computed(()=>s.tag==="button"&&(s.disabled||s.loading)),g=o=>{if(s.preventDoubleClick===!1){l("click",o);return}m(()=>{l("click",o)})};return(o,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:e.normalizeClass(e.unref(d)),type:t.tag==="button"?t.type:void 0,disabled:v.value,onClick:g},{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createElementBlock("span",Z,[e.createVNode(e.unref(x),{size:r.value,color:e.unref(p)},null,8,["size","color"])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(e.unref(f))},[t.iconPrefix||o.$slots.prefix?(e.openBlock(),e.createElementBlock("span",H,[e.renderSlot(o.$slots,"prefix",{},()=>[e.createVNode(e.unref(h),{icon:t.iconPrefix,size:i.value,class:"overflow-clip"},null,8,["icon","size"])])])):e.createCommentVNode("",!0),o.$slots.default?(e.openBlock(),e.createBlock(e.unref(w._sfc_main),{key:1,tag:"span",variant:u.value,color:"inherit",class:"leading-none"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["variant"])):e.createCommentVNode("",!0),t.iconSuffix||o.$slots.suffix?(e.openBlock(),e.createElementBlock("span",F,[e.renderSlot(o.$slots,"suffix",{},()=>[e.createVNode(e.unref(h),{icon:t.iconSuffix,size:i.value},null,8,["icon","size"])])])):e.createCommentVNode("",!0)],2)]),_:3},8,["class","type","disabled"]))}});exports._sfc_main=G;exports._sfc_main$1=h;exports._sfc_main$2=x;
|