@solvimon/solvimon-web 0.1.0-alpha.24 → 0.1.0-alpha.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BM1_31Tl.js} +1 -1
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Dh_a0NRB.mjs} +6 -6
  3. package/dist/{Avatar.vue.es-DzjFvLuK.mjs → Avatar.vue.es-C9Jkfuvp.mjs} +1 -1
  4. package/dist/{Avatar.vue.es-nr8srGuK.js → Avatar.vue.es-CvxRdCes.js} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js → BillingInformation.vue_vue_type_script_setup_true_lang-7wQAw6Lv.js} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BRSUpMPU.mjs} +4 -4
  7. package/dist/{Button.vue.es-PbJFK8z7.mjs → Button.vue.es-BbSN0uOk.mjs} +1 -1
  8. package/dist/{Button.vue.es-TCF-bvDF.js → Button.vue.es-CeUTAc2n.js} +1 -1
  9. package/dist/{Checkout.entry.ce-DHFx5Vnb.mjs → Checkout.entry.ce-BMzK8nQg.mjs} +24 -24
  10. package/dist/{Checkout.entry.ce-D8O4qJ24.js → Checkout.entry.ce-DgA0ckyl.js} +2 -2
  11. package/dist/{Chip.vue.es-CAoisngJ.js → Chip.vue.es-BN83K3Tk.js} +1 -1
  12. package/dist/{Chip.vue.es-DpcOM3Ai.mjs → Chip.vue.es-T22Q7AF9.mjs} +2 -2
  13. package/dist/{ContextMenu.vue.es-tAuFp-6i.mjs → ContextMenu.vue.es-0PRmCAzL.mjs} +4 -4
  14. package/dist/{ContextMenu.vue.es-kzZ3JJHG.js → ContextMenu.vue.es-DXKR7WFg.js} +1 -1
  15. package/dist/{CustomerBillingInformation.vue.es-BQSl9q6W.mjs → CustomerBillingInformation.vue.es-C2j40TYP.mjs} +2 -2
  16. package/dist/{CustomerBillingInformation.vue.es-Nac6HgLo.js → CustomerBillingInformation.vue.es-yrLGc7oL.js} +1 -1
  17. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BZwGWhaL.mjs} +5 -5
  18. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C8diNL5x.js} +1 -1
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DzbPUvHN.js} +1 -1
  20. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-xqMsbuU6.mjs} +14 -14
  21. package/dist/{DividerText.vue.es-CSE7a-T0.mjs → DividerText.vue.es-CV1XK_Vz.mjs} +1 -1
  22. package/dist/{DividerText.vue.es-LJ2kZakb.js → DividerText.vue.es-DsYRZzuE.js} +1 -1
  23. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-kpjrC-4q.mjs} +4 -4
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-srXOpUb0.js} +1 -1
  25. package/dist/{ErrorNotification.vue.es-CVUuIt8Z.mjs → ErrorNotification.vue.es-CiUJva6S.mjs} +1 -1
  26. package/dist/{ErrorNotification.vue.es-BF6swP7o.js → ErrorNotification.vue.es-QfRoDhkn.js} +1 -1
  27. package/dist/{IconButton.vue.es-DGflbWFk.mjs → IconButton.vue.es-ChvsCZQG.mjs} +2 -2
  28. package/dist/{IconButton.vue.es-CB1lIPao.js → IconButton.vue.es-CytBZUkZ.js} +1 -1
  29. package/dist/{IconTitle.vue.es-BsdjyGlQ.mjs → IconTitle.vue.es-DPruIJ6l.mjs} +3 -3
  30. package/dist/{IconTitle.vue.es-CMO8EyQl.js → IconTitle.vue.es-DtnpBObk.js} +1 -1
  31. package/dist/{Input.vue.es-CREdT4nB.js → Input.vue.es-BkzQDkrz.js} +1 -1
  32. package/dist/{Input.vue.es-BFbiFXsU.mjs → Input.vue.es-DJQqJrsb.mjs} +2 -2
  33. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BC-zyUqe.mjs} +2 -2
  34. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Do0dDtkA.js} +1 -1
  35. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CFhhhwId.mjs} +2 -2
  36. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DQFS7SfE.js} +1 -1
  37. package/dist/{InvoiceSummary.vue.es-JtOIQ6SJ.mjs → InvoiceSummary.vue.es-6qpbyymg.mjs} +7 -7
  38. package/dist/{InvoiceSummary.vue.es-BOnvORpf.js → InvoiceSummary.vue.es-v1TkOUhA.js} +1 -1
  39. package/dist/{Modal.vue.es-jT61xK_A.mjs → Modal.vue.es-BuRlbyZw.mjs} +5 -5
  40. package/dist/{Modal.vue.es-BbdtdxsO.js → Modal.vue.es-JpE0eh_Q.js} +1 -1
  41. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs} +4 -4
  42. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js} +1 -1
  43. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DggCusgC.mjs} +3 -3
  44. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-YpcWHm24.js} +1 -1
  45. package/dist/{PaymentHistoryBlock-quvnCSFV.mjs → PaymentHistoryBlock-DnmParhQ.mjs} +1 -1
  46. package/dist/{PaymentHistoryBlock-Dw2wOiAI.js → PaymentHistoryBlock-uWuWjr8I.js} +1 -1
  47. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js} +1 -1
  48. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BziIf86i.mjs} +4 -4
  49. package/dist/{PaymentIntegrationForm-CQjUZi22.mjs → PaymentIntegrationForm-DL55i0HD.mjs} +1 -1
  50. package/dist/{PaymentIntegrationForm-D1oJREmH.js → PaymentIntegrationForm-DTXm56QQ.js} +1 -1
  51. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js} +1 -1
  52. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs} +3 -3
  53. package/dist/{PaymentIntegrationFormAdyen-BQXXwpUK.js → PaymentIntegrationFormAdyen-C9KoiqMh.js} +3 -3
  54. package/dist/{PaymentIntegrationFormAdyen-CyZk9ofV.mjs → PaymentIntegrationFormAdyen-Cqsy82To.mjs} +74 -68
  55. package/dist/{PaymentIntegrationFormStripe-D-GaLHwc.mjs → PaymentIntegrationFormStripe-DIU1rnwH.mjs} +4 -4
  56. package/dist/{PaymentIntegrationFormStripe-Bs4F7oK_.js → PaymentIntegrationFormStripe-DTLgGutU.js} +1 -1
  57. package/dist/{PaymentMethod.vue.es-CXV_ThBY.js → PaymentMethod.vue.es-ZWda5GqF.js} +1 -1
  58. package/dist/{PaymentMethod.vue.es-C0j580g7.mjs → PaymentMethod.vue.es-m1NasGqw.mjs} +3 -3
  59. package/dist/{PaymentMethodForm-CDV5LR8i.js → PaymentMethodForm-BEVdWCrH.js} +1 -1
  60. package/dist/{PaymentMethodForm-Bf2Ps6eV.mjs → PaymentMethodForm-BYzt1PVP.mjs} +1 -1
  61. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CzUwtVEI.js} +1 -1
  62. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-fdRTp7sc.mjs} +5 -5
  63. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-FChyZp2v.mjs} +6 -6
  64. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-FhMBZqtI.js} +1 -1
  65. package/dist/{PlanCustomizationEditor-0kEXoOcM.js → PlanCustomizationEditor-CunwwXTw.js} +1 -1
  66. package/dist/{PlanCustomizationEditor-Dv69xPbX.mjs → PlanCustomizationEditor-NLVkEYFF.mjs} +9 -9
  67. package/dist/{PricingGroupRangeInput.vue.es-CP7-dmxS.mjs → PricingGroupRangeInput.vue.es-B4ZbKxUw.mjs} +4 -4
  68. package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-Ba3v0J_R.js} +1 -1
  69. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-Dvuj-fos.mjs} +5 -5
  70. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-iE4dLawA.js} +1 -1
  71. package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-CHrcqSRq.js} +1 -1
  72. package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-CkhBp9kI.mjs} +2 -2
  73. package/dist/{Section.vue.es-CBZx5x53.js → Section.vue.es-CSrVPlUK.js} +1 -1
  74. package/dist/{Section.vue.es-KRsHeFoT.mjs → Section.vue.es-D5svcVS_.mjs} +1 -1
  75. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BM9Y4Cy3.mjs} +6 -6
  76. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BqOSBdFQ.js} +1 -1
  77. package/dist/{SubscriptionSchedules-1ikoGncQ.js → SubscriptionSchedules-CMVoB2bw.js} +1 -1
  78. package/dist/{SubscriptionSchedules-B6b6xf-E.mjs → SubscriptionSchedules-yDcsD1hd.mjs} +1 -1
  79. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DH7IZrNT.js} +1 -1
  80. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DZHsQImd.mjs} +11 -11
  81. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BgXZMihr.js} +1 -1
  82. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-BmNl5u8R.mjs} +2 -2
  83. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUzdZHah.mjs} +6 -6
  84. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-DOJ0t_fo.js} +1 -1
  85. package/dist/{TooltipParagraph.vue.es-nGFfHF1A.mjs → TooltipParagraph.vue.es-CxdL8-B7.mjs} +1 -1
  86. package/dist/{TooltipParagraph.vue.es-7IQdU3Tf.js → TooltipParagraph.vue.es-DS_69pl1.js} +1 -1
  87. package/dist/{TrialChip.vue.es-DhC5Bpmy.js → TrialChip.vue.es-BCc8q5j0.js} +1 -1
  88. package/dist/{TrialChip.vue.es-eKgO6an3.mjs → TrialChip.vue.es-BK7m7e7q.mjs} +2 -2
  89. package/dist/{cn.es-BLE3T5Rx.js → cn.es-71nFUose.js} +1 -1
  90. package/dist/{cn.es-BD7Afj5Q.mjs → cn.es-ZXNzpauQ.mjs} +2 -2
  91. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  92. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  93. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  94. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
  95. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  96. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  97. package/dist/components/Invoice/Invoice.cjs +1 -1
  98. package/dist/components/Invoice/Invoice.mjs +9 -9
  99. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  100. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
  101. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  102. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  103. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  104. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  105. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  106. package/dist/components/PaymentHistory/PaymentHistory.mjs +3 -3
  107. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  108. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  109. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  110. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  111. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  112. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  113. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  114. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  115. package/dist/{customElements-CSzbVZIH.js → customElements-hH6pju3X.js} +2 -2
  116. package/dist/{customElements-DT1YyL4O.mjs → customElements-q_i9y0Ph.mjs} +5 -5
  117. package/dist/{customer-Cq4fF__H.mjs → customer-BDoOIAFr.mjs} +1 -1
  118. package/dist/{customer-CJonIvSm.js → customer-C9q6ti8s.js} +1 -1
  119. package/dist/{de-DE-CyvjSD9b.mjs → de-DE-B_ik9VNt.mjs} +1 -0
  120. package/dist/{de-DE-DXsDvO5y.js → de-DE-npBTLtKL.js} +1 -1
  121. package/dist/{en-US-xQrWj8qI.mjs → en-US-DkCltadt.mjs} +1 -0
  122. package/dist/{en-US-DHdI11k9.js → en-US-kGduGoka.js} +1 -1
  123. package/dist/index.cjs +1 -1
  124. package/dist/index.mjs +1 -1
  125. package/dist/{invoices-EamWI_jz.js → invoices-CHp75zZI.js} +1 -1
  126. package/dist/{invoices-CVZOfEOY.mjs → invoices-DIzkXntV.mjs} +1 -1
  127. package/dist/{it-IT-CcRIzP1A.js → it-IT-BayNIAy7.js} +1 -1
  128. package/dist/{it-IT-C09oObBM.mjs → it-IT-CHj2McbF.mjs} +1 -0
  129. package/dist/{nl-NL-5PrgQl8q.js → nl-NL-0rV4nFLw.js} +1 -1
  130. package/dist/{nl-NL-BhNND_yi.mjs → nl-NL-Cdvd_XMN.mjs} +1 -0
  131. package/dist/{paymentMethods-Bwym8l9a.js → paymentMethods-CZGP6_4W.js} +1 -1
  132. package/dist/{paymentMethods-By1SebnO.mjs → paymentMethods-DEKp_4QM.mjs} +1 -1
  133. package/dist/{payments-BYZLQTJ-.mjs → payments-C0-Hq2a4.mjs} +1 -1
  134. package/dist/{payments-Dnjg9Se4.js → payments-DBvregE8.js} +1 -1
  135. package/dist/screens/Checkout/Checkout.cjs +1 -1
  136. package/dist/screens/Checkout/Checkout.mjs +2 -2
  137. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  138. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  139. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  140. package/dist/screens/PayInvoice/PayInvoice.mjs +11 -11
  141. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  142. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  143. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  144. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +18 -18
  145. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  146. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +18 -18
  147. package/dist/{subscriptions-Gj3KgCZz.mjs → subscriptions--9MaTXMb.mjs} +1 -1
  148. package/dist/{subscriptions-BKER9RUc.js → subscriptions-BArXBCFr.js} +1 -1
  149. package/dist/{useActionDispatchProvider-MjTckd4f.mjs → useActionDispatchProvider-BdciAX8T.mjs} +1 -1
  150. package/dist/{useActionDispatchProvider-DDHrhy3i.js → useActionDispatchProvider-CKzeqXzY.js} +1 -1
  151. package/dist/{useCustomer-CxnF7r8Z.mjs → useCustomer-D8ixhuuj.mjs} +1 -1
  152. package/dist/{useCustomer-BW0DBEJh.js → useCustomer-DSYr0F58.js} +1 -1
  153. package/dist/{useCustomerFormLabels-C773h3J0.js → useCustomerFormLabels-CRumh405.js} +1 -1
  154. package/dist/{useCustomerFormLabels-zPc8QrwJ.mjs → useCustomerFormLabels-htMZ0xqB.mjs} +5 -5
  155. package/dist/{useExperimentalFeature-9teNYGuP.js → useExperimentalFeature-D29-TO3R.js} +1 -1
  156. package/dist/{useExperimentalFeature-NsSDg-e3.mjs → useExperimentalFeature-JK_kAUQQ.mjs} +1 -1
  157. package/dist/{useInvoiceData-GQwk6fl4.mjs → useInvoiceData-Bpbog3zW.mjs} +2 -2
  158. package/dist/{useInvoiceData-DvV2AsgC.js → useInvoiceData-DhrItfv7.js} +1 -1
  159. package/dist/{useInvoicesList-CGmFSQSg.mjs → useInvoicesList-BGwcJn4I.mjs} +7 -7
  160. package/dist/{useInvoicesList-Xnth6s6U.js → useInvoicesList-duu_b5GW.js} +1 -1
  161. package/dist/{useLoadInitialData-BvvaWeAe.mjs → useLoadInitialData-BDmmpcfb.mjs} +1 -1
  162. package/dist/{useLoadInitialData-Cjkc70u-.js → useLoadInitialData-U2WvBmXT.js} +1 -1
  163. package/dist/{usePaymentMethodAvailability-DKyscbom.js → usePaymentMethodAvailability-DwtT5Czz.js} +1 -1
  164. package/dist/{usePaymentMethodAvailability-BWaaj3N3.mjs → usePaymentMethodAvailability-adqRujTA.mjs} +4 -4
  165. package/dist/{usePaymentMethodOptions-DuXKS36F.js → usePaymentMethodOptions-CXdFKFqZ.js} +1 -1
  166. package/dist/{usePaymentMethodOptions-l-wVAmIW.mjs → usePaymentMethodOptions-DlZtTQNQ.mjs} +1 -1
  167. package/dist/{usePaymentMethods-DvQVnsSV.mjs → usePaymentMethods-BnmSo_rr.mjs} +1 -1
  168. package/dist/{usePaymentMethods-BDFVB-kK.js → usePaymentMethods-DZ1a0mnr.js} +1 -1
  169. package/dist/{usePayments-CIJocDhR.js → usePayments-DL4agK2i.js} +1 -1
  170. package/dist/{usePayments-D_dyuf6S.mjs → usePayments-s-Z1di8d.mjs} +6 -6
  171. package/dist/{usePortal-Br5lYuPT.mjs → usePortal-C4rR5Rhu.mjs} +1 -1
  172. package/dist/{usePortal-BU4ibdWq.js → usePortal-Hm7wvtgQ.js} +1 -1
  173. package/dist/{useSubscription-DRBUt9H5.js → useSubscription-DMAEJves.js} +1 -1
  174. package/dist/{useSubscription-CqRae2I9.mjs → useSubscription-DSsXVO0h.mjs} +1 -1
  175. package/dist/{useTimePeriod.es-BxIGnCAP.mjs → useTimePeriod.es-CW8ycmpT.mjs} +1 -1
  176. package/dist/{useTimePeriod.es-DDos3-EH.js → useTimePeriod.es-anHB63am.js} +1 -1
  177. package/package.json +1 -1
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js");exports.default=e._sfc_main;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BS8N4yt9.js");exports.default=e._sfc_main;
@@ -1 +1 @@
1
- const e=require("vue"),o=require("./PaymentMethod.vue.es-CXV_ThBY.js"),c=require("./formatting.es-C72Nsrmh.js"),m=require("./Chip.vue.es-CAoisngJ.js"),_=require("./Section.vue.es-CBZx5x53.js"),n=require("./customElements-CSzbVZIH.js"),d={class:"sv-payment-history"},l={class:"sv-payment-history__items flex flex-col-reverse gap-1"},y={class:"sv-payment-history__item-header mb-2 flex items-center justify-between"},u=e.defineComponent({__name:"PaymentHistoryBlock",props:{paymentAttempts:{type:Array},customer:{type:Object}},setup(s){const{$t:a,formatDate:i}=n.useIntl(),r={AUTHORIZED:"success",CANCELLED:"danger",ERROR:"danger",PENDING:"warning",PENDING_REFUND:"warning",REFUNDED:"warning",CHARGED_BACK:"warning",REFUSED:"danger"};return(f,p)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.unref(n._sfc_main),{tag:"h2",variant:"heading-3",class:"sv-payment-history__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Payment history",description:"Title for the payment history block on the invoice details page",id:"sdk.invoice_details.payment_history.title"})),1)]),_:1}),e.createElementVNode("div",l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.paymentAttempts,t=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:t.id,class:"sv-payment-history__item mt-1 md:mt-2"},{default:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(e.unref(n._sfc_main),{variant:"caps-heading",class:"sv-payment-history__item-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Payment attempt",description:"Title for the payment attempt block",id:"sdk.invoice_details.payment_history.payment_attempt"})),1)]),_:1}),e.createVNode(e.unref(m._sfc_main),{class:"sv-payment-history__item-status",intent:r[t.result]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c.formatEnum)(t.result)),1)]),_:2},1032,["intent"])]),t.payment_method_details?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,class:"sv-payment-history__payment-method","payment-method":t.payment_method_details},{description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:t.created_at,format:"dateTime",offsetType:"offsetted",timezone:s.customer.timezone})),1)]),_:2},1032,["payment-method"])):e.createCommentVNode("",!0)]),_:2},1024))),128))])]))}});exports._sfc_main=u;
1
+ const e=require("vue"),o=require("./PaymentMethod.vue.es-ZWda5GqF.js"),c=require("./formatting.es-C72Nsrmh.js"),m=require("./Chip.vue.es-BN83K3Tk.js"),_=require("./Section.vue.es-CSrVPlUK.js"),n=require("./customElements-hH6pju3X.js"),d={class:"sv-payment-history"},l={class:"sv-payment-history__items flex flex-col-reverse gap-1"},y={class:"sv-payment-history__item-header mb-2 flex items-center justify-between"},u=e.defineComponent({__name:"PaymentHistoryBlock",props:{paymentAttempts:{type:Array},customer:{type:Object}},setup(s){const{$t:a,formatDate:i}=n.useIntl(),r={AUTHORIZED:"success",CANCELLED:"danger",ERROR:"danger",PENDING:"warning",PENDING_REFUND:"warning",REFUNDED:"warning",CHARGED_BACK:"warning",REFUSED:"danger"};return(f,p)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.unref(n._sfc_main),{tag:"h2",variant:"heading-3",class:"sv-payment-history__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Payment history",description:"Title for the payment history block on the invoice details page",id:"sdk.invoice_details.payment_history.title"})),1)]),_:1}),e.createElementVNode("div",l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.paymentAttempts,t=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:t.id,class:"sv-payment-history__item mt-1 md:mt-2"},{default:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(e.unref(n._sfc_main),{variant:"caps-heading",class:"sv-payment-history__item-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Payment attempt",description:"Title for the payment attempt block",id:"sdk.invoice_details.payment_history.payment_attempt"})),1)]),_:1}),e.createVNode(e.unref(m._sfc_main),{class:"sv-payment-history__item-status",intent:r[t.result]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c.formatEnum)(t.result)),1)]),_:2},1032,["intent"])]),t.payment_method_details?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,class:"sv-payment-history__payment-method","payment-method":t.payment_method_details},{description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:t.created_at,format:"dateTime",offsetType:"offsetted",timezone:s.customer.timezone})),1)]),_:2},1032,["payment-method"])):e.createCommentVNode("",!0)]),_:2},1024))),128))])]))}});exports._sfc_main=u;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as f, openBlock as s, createElementBlock as _, createVNode as o, unref as e, withCtx as a, createTextVNode as i, toDisplayString as n, createElementVNode as c, Fragment as h, renderList as u, createBlock as d, createCommentVNode as g } from "vue";
2
- import { _ as v } from "./PaymentMethod.vue.es-C0j580g7.mjs";
2
+ import { _ as v } from "./PaymentMethod.vue.es-m1NasGqw.mjs";
3
3
  import { a as E } from "./formatting.es-RclXHhKo.mjs";
4
- import { _ as D } from "./Chip.vue.es-DpcOM3Ai.mjs";
5
- import { _ as N } from "./Section.vue.es-KRsHeFoT.mjs";
6
- import { u as k, _ as l } from "./customElements-DT1YyL4O.mjs";
4
+ import { _ as D } from "./Chip.vue.es-T22Q7AF9.mjs";
5
+ import { _ as N } from "./Section.vue.es-D5svcVS_.mjs";
6
+ import { u as k, _ as l } from "./customElements-q_i9y0Ph.mjs";
7
7
  const R = { class: "sv-payment-history" }, x = { class: "sv-payment-history__items flex flex-col-reverse gap-1" }, C = { class: "sv-payment-history__item-header mb-2 flex items-center justify-between" }, U = /* @__PURE__ */ f({
8
8
  __name: "PaymentHistoryBlock",
9
9
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs";
1
+ import { _ as f } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvpFnl9V.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js");exports.default=e._sfc_main;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-4RmdLbzY.js");exports.default=e._sfc_main;
@@ -1 +1 @@
1
- const t=require("vue"),B=require("./FormMessage.vue.es-dqATjC2N.js"),E=require("./customElements-CSzbVZIH.js"),$=require("./adyen-Druit6gz.js"),S=e=>{var o;return((o=e.integration.payment_gateway)==null?void 0:o.variant)==="ADYEN"},I=e=>{var o;return((o=e.integration.payment_gateway)==null?void 0:o.variant)==="STRIPE"},v=({selectedIntegration:e,paymentMethodOption:o})=>{var i,s;return e===((s=(i=o.integration)==null?void 0:i.payment_gateway)==null?void 0:s.variant)},w=(e,{excludeExpressPaymentMethods:o=!1}={})=>{var i;return S(e)?$.getAdyenDropInPaymentMethods(e,{excludeExpressPaymentMethods:o}).length>0:I(e)?!!((i=e.integration.payment_gateway.stripe)!=null&&i.public_key):!1},F=(e,o={})=>e.some(i=>w(i,o)),C=t.defineComponent({__name:"PaymentIntegrationForm",props:{customerId:{type:String},variant:{type:String},context:{type:Object},paymentMethodOptions:{type:Array},countryCode:{type:String},invoiceId:{type:String},amount:{type:Object},selectedOption:{type:String},email:{type:String},name:{type:String},validateOnSubmit:{type:Function},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","ready"],setup(e,{expose:o,emit:i}){const s=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentIntegrationFormStripe-Bs4F7oK_.js")).then(a=>a.default)),b=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentIntegrationFormAdyen-BQXXwpUK.js")).then(a=>a.default)),c=e,P=i;o({submit:h});const{$t:k}=E.useIntl(),d=t.ref(),l=t.computed(()=>{var a,n;return d.value??((n=(a=c.paymentMethodOptions[0])==null?void 0:a.integration.payment_gateway)==null?void 0:n.variant)}),y=t.ref(new Map),u=t.ref(!1),g=({paymentGatewayVariant:a,paymentMethodType:n})=>{u.value=!1,d.value=a,P("select",{paymentGatewayVariant:a,paymentMethodType:n})},f=a=>n=>{var r;return y.value.set((r=a.integration.payment_gateway)==null?void 0:r.variant,n)};function h(){var a,n;l.value||(u.value=!0,(a=c.validateOnSubmit)==null||a.call(c)),(n=y.value.get(l.value))==null||n.submit()}return(a,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.paymentMethodOptions,r=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:r.integration.id},[t.unref(S)(r)?(t.openBlock(),t.createBlock(t.unref(b),{key:0,ref_for:!0,ref:f(r),context:e.context,"payment-method-option-response-entry":r,"country-code":e.countryCode,"customer-id":e.customerId,variant:e.variant,amount:e.amount,"invoice-id":e.invoiceId,selected:t.unref(v)({selectedIntegration:l.value,paymentMethodOption:r}),"validate-on-submit":e.validateOnSubmit,"force-store-payment-method":e.forceStorePaymentMethod,"store-payment-method":e.storePaymentMethod,"redirects-on-success":e.redirectsOnSuccess,"billing-entity-name":e.billingEntityName,onSelect:g,onPaymentFailed:n[0]||(n[0]=m=>a.$emit("payment-failed",m)),onPaymentSuccess:n[1]||(n[1]=m=>a.$emit("payment-success")),onReady:n[2]||(n[2]=m=>a.$emit("ready"))},null,8,["context","payment-method-option-response-entry","country-code","customer-id","variant","amount","invoice-id","selected","validate-on-submit","force-store-payment-method","store-payment-method","redirects-on-success","billing-entity-name"])):t.unref(I)(r)?(t.openBlock(),t.createBlock(t.unref(s),{key:1,ref_for:!0,ref:f(r),context:e.context,"payment-method-option-response-entry":r,"country-code":e.countryCode,"customer-id":e.customerId,variant:e.variant,amount:e.amount,"invoice-id":e.invoiceId,selected:t.unref(v)({selectedIntegration:l.value,paymentMethodOption:r}),email:e.email,name:e.name,"validate-on-submit":e.validateOnSubmit,"force-store-payment-method":e.forceStorePaymentMethod,"store-payment-method":e.storePaymentMethod,"redirects-on-success":e.redirectsOnSuccess,"billing-entity-name":e.billingEntityName,onSelect:g,onPaymentFailed:n[3]||(n[3]=m=>a.$emit("payment-failed",m)),onPaymentSuccess:n[4]||(n[4]=m=>a.$emit("payment-success")),onReady:n[5]||(n[5]=m=>a.$emit("ready"))},null,8,["context","payment-method-option-response-entry","country-code","customer-id","variant","amount","invoice-id","selected","email","name","validate-on-submit","force-store-payment-method","store-payment-method","redirects-on-success","billing-entity-name"])):t.createCommentVNode("",!0)],64))),128)),u.value?(t.openBlock(),t.createBlock(t.unref(B._sfc_main),{key:0,variant:"error",class:"mt-2"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(k)({defaultMessage:"Select a payment method",id:"payment_integration_form.select_payment_method_error",description:"Error shown when no payment method is selected"})),1)]),_:1})):t.createCommentVNode("",!0)],64))}});exports._sfc_main=C;exports.hasRenderablePaymentIntegration=F;
1
+ const t=require("vue"),B=require("./FormMessage.vue.es-dqATjC2N.js"),E=require("./customElements-hH6pju3X.js"),$=require("./adyen-Druit6gz.js"),S=e=>{var o;return((o=e.integration.payment_gateway)==null?void 0:o.variant)==="ADYEN"},I=e=>{var o;return((o=e.integration.payment_gateway)==null?void 0:o.variant)==="STRIPE"},v=({selectedIntegration:e,paymentMethodOption:o})=>{var i,s;return e===((s=(i=o.integration)==null?void 0:i.payment_gateway)==null?void 0:s.variant)},w=(e,{excludeExpressPaymentMethods:o=!1}={})=>{var i;return S(e)?$.getAdyenDropInPaymentMethods(e,{excludeExpressPaymentMethods:o}).length>0:I(e)?!!((i=e.integration.payment_gateway.stripe)!=null&&i.public_key):!1},F=(e,o={})=>e.some(i=>w(i,o)),C=t.defineComponent({__name:"PaymentIntegrationForm",props:{customerId:{type:String},variant:{type:String},context:{type:Object},paymentMethodOptions:{type:Array},countryCode:{type:String},invoiceId:{type:String},amount:{type:Object},selectedOption:{type:String},email:{type:String},name:{type:String},validateOnSubmit:{type:Function},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","ready"],setup(e,{expose:o,emit:i}){const s=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentIntegrationFormStripe-DTLgGutU.js")).then(a=>a.default)),b=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentIntegrationFormAdyen-C9KoiqMh.js")).then(a=>a.default)),c=e,P=i;o({submit:h});const{$t:k}=E.useIntl(),d=t.ref(),l=t.computed(()=>{var a,n;return d.value??((n=(a=c.paymentMethodOptions[0])==null?void 0:a.integration.payment_gateway)==null?void 0:n.variant)}),y=t.ref(new Map),u=t.ref(!1),g=({paymentGatewayVariant:a,paymentMethodType:n})=>{u.value=!1,d.value=a,P("select",{paymentGatewayVariant:a,paymentMethodType:n})},f=a=>n=>{var r;return y.value.set((r=a.integration.payment_gateway)==null?void 0:r.variant,n)};function h(){var a,n;l.value||(u.value=!0,(a=c.validateOnSubmit)==null||a.call(c)),(n=y.value.get(l.value))==null||n.submit()}return(a,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.paymentMethodOptions,r=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:r.integration.id},[t.unref(S)(r)?(t.openBlock(),t.createBlock(t.unref(b),{key:0,ref_for:!0,ref:f(r),context:e.context,"payment-method-option-response-entry":r,"country-code":e.countryCode,"customer-id":e.customerId,variant:e.variant,amount:e.amount,"invoice-id":e.invoiceId,selected:t.unref(v)({selectedIntegration:l.value,paymentMethodOption:r}),"validate-on-submit":e.validateOnSubmit,"force-store-payment-method":e.forceStorePaymentMethod,"store-payment-method":e.storePaymentMethod,"redirects-on-success":e.redirectsOnSuccess,"billing-entity-name":e.billingEntityName,onSelect:g,onPaymentFailed:n[0]||(n[0]=m=>a.$emit("payment-failed",m)),onPaymentSuccess:n[1]||(n[1]=m=>a.$emit("payment-success")),onReady:n[2]||(n[2]=m=>a.$emit("ready"))},null,8,["context","payment-method-option-response-entry","country-code","customer-id","variant","amount","invoice-id","selected","validate-on-submit","force-store-payment-method","store-payment-method","redirects-on-success","billing-entity-name"])):t.unref(I)(r)?(t.openBlock(),t.createBlock(t.unref(s),{key:1,ref_for:!0,ref:f(r),context:e.context,"payment-method-option-response-entry":r,"country-code":e.countryCode,"customer-id":e.customerId,variant:e.variant,amount:e.amount,"invoice-id":e.invoiceId,selected:t.unref(v)({selectedIntegration:l.value,paymentMethodOption:r}),email:e.email,name:e.name,"validate-on-submit":e.validateOnSubmit,"force-store-payment-method":e.forceStorePaymentMethod,"store-payment-method":e.storePaymentMethod,"redirects-on-success":e.redirectsOnSuccess,"billing-entity-name":e.billingEntityName,onSelect:g,onPaymentFailed:n[3]||(n[3]=m=>a.$emit("payment-failed",m)),onPaymentSuccess:n[4]||(n[4]=m=>a.$emit("payment-success")),onReady:n[5]||(n[5]=m=>a.$emit("ready"))},null,8,["context","payment-method-option-response-entry","country-code","customer-id","variant","amount","invoice-id","selected","email","name","validate-on-submit","force-store-payment-method","store-payment-method","redirects-on-success","billing-entity-name"])):t.createCommentVNode("",!0)],64))),128)),u.value?(t.openBlock(),t.createBlock(t.unref(B._sfc_main),{key:0,variant:"error",class:"mt-2"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(k)({defaultMessage:"Select a payment method",id:"payment_integration_form.select_payment_method_error",description:"Error shown when no payment method is selected"})),1)]),_:1})):t.createCommentVNode("",!0)],64))}});exports._sfc_main=C;exports.hasRenderablePaymentIntegration=F;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, defineAsyncComponent as h, ref as u, computed as A, openBlock as s, createElementBlock as g, Fragment as v, renderList as B, unref as r, createBlock as f, createCommentVNode as $, withCtx as N, createTextVNode as D, toDisplayString as j } from "vue";
2
2
  import { _ as O } from "./FormMessage.vue.es-jG3fQZms.mjs";
3
- import { u as T } from "./customElements-DT1YyL4O.mjs";
3
+ import { u as T } from "./customElements-q_i9y0Ph.mjs";
4
4
  import { g as L } from "./adyen-CvsH5fok.mjs";
5
5
  const k = (e) => {
6
6
  var a;
@@ -41,11 +41,11 @@ const k = (e) => {
41
41
  emits: ["select", "payment-failed", "payment-success", "ready"],
42
42
  setup(e, { expose: a, emit: o }) {
43
43
  const c = h(
44
- () => import("./PaymentIntegrationFormStripe-D-GaLHwc.mjs").then(
44
+ () => import("./PaymentIntegrationFormStripe-DIU1rnwH.mjs").then(
45
45
  (n) => n.default
46
46
  )
47
47
  ), C = h(
48
- () => import("./PaymentIntegrationFormAdyen-CyZk9ofV.mjs").then(
48
+ () => import("./PaymentIntegrationFormAdyen-Cqsy82To.mjs").then(
49
49
  (n) => n.default
50
50
  )
51
51
  ), d = e, F = o;
@@ -1,4 +1,4 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),re=require("./useService-H7BjLg8P.js"),N=require("./customElements-CSzbVZIH.js"),F=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js"),ie=require("./payments-Dnjg9Se4.js"),U=require("./url-vloPOiXd.js"),ce=require("./paymentMethods-Bwym8l9a.js"),p=require("./adyen-Druit6gz.js"),de=require("./adyenSdk-BP2XXzeJ.js"),se=require("./useExperimentalFeature-9teNYGuP.js"),Y=require("./paymentFailure-Cki8c5BX.js"),ue=".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";function me(s){return(s==null?void 0:s.querySelector(ue))??null}function pe(s,m){return!!s&&!!m&&!s.contains(m)}const ye=s=>{let m={};return s==="TOKENIZE"&&(m={"en-US":{payButton:"Add payment method",confirmPurchase:"Add payment method"},"fr-FR":{payButton:"Ajouter un moyen de paiement",confirmPurchase:"Ajouter un moyen de paiement"},"de-DE":{payButton:"Zahlungsmethode hinzufügen",confirmPurchase:"Zahlungsmethode hinzufügen"},"it-IT":{payButton:"Aggiungi metodo di pagamento",confirmPurchase:"Aggiungi metodo di pagamento"},"es-ES":{payButton:"Añadir método de pago",confirmPurchase:"Añadir método de pago"},"nl-NL":{payButton:"Betaalmethode toevoegen",confirmPurchase:"Betaalmethode toevoegen"},"pt-BR":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pt-PT":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pl-PL":{payButton:"Dodaj metodę płatności",confirmPurchase:"Dodaj metodę płatności"},"ru-RU":{payButton:"Добавить способ оплаты",confirmPurchase:"Добавить способ оплаты"},"sv-SE":{payButton:"Lägg till betalningsmetod",confirmPurchase:"Lägg till betalningsmetod"},"da-DK":{payButton:"Tilføj betalingsmetode",confirmPurchase:"Tilføj betalingsmetode"},"fi-FI":{payButton:"Lisää maksutapa",confirmPurchase:"Lisää maksutapa"},"no-NO":{payButton:"Legg til betalingsmetode",confirmPurchase:"Legg til betalingsmetode"},"cs-CZ":{payButton:"Přidat platební metodu",confirmPurchase:"Přidat platební metodu"},"hu-HU":{payButton:"Fizetési mód hozzáadása",confirmPurchase:"Fizetési mód hozzáadása"},"ro-RO":{payButton:"Adăugați metodă de plată",confirmPurchase:"Adăugați metodă de plată"},"ja-JP":{payButton:"支払い方法を追加",confirmPurchase:"支払い方法を追加"},"ko-KR":{payButton:"결제 수단 추가",confirmPurchase:"결제 수단 추가"},"zh-CN":{payButton:"添加支付方式",confirmPurchase:"添加支付方式"},"zh-TW":{payButton:"新增付款方式",confirmPurchase:"新增付款方式"},ar:{payButton:"إضافة وسيلة دفع",confirmPurchase:"إضافة وسيلة دفع"},"hr-HR":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"el-GR":{payButton:"Προσθήκη μεθόδου πληρωμής",confirmPurchase:"Προσθήκη μεθόδου πληρωμής"},"sk-SK":{payButton:"Pridať spôsob platby",confirmPurchase:"Pridať spôsob platby"},"sl-SI":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"bg-BG":{payButton:"Добавяне на начин на плащане",confirmPurchase:"Добавяне на начин на плащане"},"ca-ES":{payButton:"Afegir mètode de pagament",confirmPurchase:"Afegir mètode de pagament"},"et-EE":{payButton:"Lisa makseviis",confirmPurchase:"Lisa makseviis"},"lv-LV":{payButton:"Pievienot maksājuma veidu",confirmPurchase:"Pievienot maksājuma veidu"},"lt-LT":{payButton:"Pridėti mokėjimo metodą",confirmPurchase:"Pridėti mokėjimo metodą"}}),m},le={class:"sv-sepa-mandate mt-3","data-testid":"sepa-mandate-notice"},he=n.defineComponent({__name:"SepaMandateNotice",props:{billingEntityName:{type:String}},setup(s){const m=s,{$t:f}=N.useIntl(),y=n.computed(()=>f({defaultMessage:"SEPA Direct Debit mandate — recurring payments",description:"Title of the SEPA direct debit mandate shown inside the SEPA payment form",id:"payments.sepa_mandate.title"})),b=n.computed(()=>m.billingEntityName?f({defaultMessage:"By confirming this mandate, you authorise {billingEntityName} to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",description:"SEPA direct debit mandate authorisation, naming the billing entity",id:"payments.sepa_mandate.authorisation"},{billingEntityName:m.billingEntityName}):f({defaultMessage:"By confirming this mandate, you authorise us to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",description:"SEPA direct debit mandate authorisation, where the billing entity is not known",id:"payments.sepa_mandate.authorisation_unnamed"})),a=n.computed(()=>m.billingEntityName?f({defaultMessage:"This bank account will be used automatically to pay subsequent invoices from {billingEntityName} until you cancel this mandate.",description:"Explains that the SEPA mandate covers later invoices, naming the billing entity",id:"payments.sepa_mandate.recurrence"},{billingEntityName:m.billingEntityName}):f({defaultMessage:"This bank account will be used automatically to pay subsequent invoices until you cancel this mandate.",description:"Explains that the SEPA mandate covers later invoices, where the billing entity is not known",id:"payments.sepa_mandate.recurrence_unnamed"}));return(g,l)=>(n.openBlock(),n.createElementBlock("div",le,[n.createVNode(n.unref(N._sfc_main),{tag:"p",variant:"body-xs",class:"font-semibold"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:1}),n.createVNode(n.unref(N._sfc_main),{tag:"p",variant:"body-xs",color:"subtle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(b.value)+" "+n.toDisplayString(a.value),1)]),_:1})]))}}),T="ADYEN",_e=n.defineComponent({__name:"PaymentIntegrationFormAdyen",props:{context:{type:Object},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","ready"],setup(s,{expose:m,emit:f}){let y=null,b=null;const a=s,g=f;m({submit:V});const l=n.ref(),R=n.ref(null),A=n.ref(null);let h;const k=n.ref(!1),P=n.ref(),i=N.useLogger(),{locale:j}=N.useIntl(),{authorizePayment:Z,getPaymentDetails:z}=ie.createPaymentsService(),{tokenizePaymentMethod:G}=ce.createPaymentMethodsService(),v=se.useExperimentalFeature(),M=n.computed(()=>{var e;return p.getAdyenDropInPaymentMethods(a.paymentMethodOptionResponseEntry,{excludeExpressPaymentMethods:!!((e=v==null?void 0:v.value)!=null&&e["express-checkout"])})}),S=n.computed(()=>M.value.length>0);function u(e){return Y.createPaymentFailureContext({gateway:T,paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,variant:a.variant,invoiceId:a.invoiceId,customerId:a.customerId,...e})}function E(e){const t=Y.createPaymentFailureError(e);P.value=t,g("payment-failed",t)}function V(){try{y==null||y.submit()}catch(e){i.error("ADYEN_SUBMIT_FAILED","Failed to submit Adyen drop-in",u({reason:"ADYEN_SUBMIT_FAILED",cause:e}),e)}}async function K(){const e=p.toMinorUnitAmount(a.amount),t=M.value;return{checkoutConfig:{amount:e,clientKey:p.getAdyenClientKeyFromPaymentMethodOptionsResponse(a.paymentMethodOptionResponseEntry),environment:p.getAdyenEnvironmentFromPaymentMethodOptionsResponse(a.paymentMethodOptionResponseEntry,i),locale:j,translations:ye(a.variant),countryCode:a.countryCode,analytics:{enabled:!1},paymentMethodsResponse:{paymentMethods:t},onSubmit:J,onAdditionalDetails:X,onPaymentCompleted:ne,onPaymentFailed:te,onError:ae,showPayButton:!1},dropInConfig:{disableFinalAnimation:!0,paymentMethodsConfiguration:{card:{hasHolderName:!0,holderNameRequired:!0,enableStoreDetails:!a.forceStorePaymentMethod&&a.storePaymentMethod===void 0&&a.variant==="AUTHORIZE"},paypal:{intent:e.value>0?"authorize":"tokenize",showPayButton:!0}},openFirstPaymentMethod:a.selected,onSelect:({props:{type:r}})=>{r&&g("select",{paymentMethodType:r,paymentGatewayVariant:"ADYEN"})},onReady:()=>g("ready")}}}function H(){return Promise.all([de.loadAdyenSdk(),Promise.resolve().then(()=>require("./adyen-BJfC7N6f.js")).then(e=>e.default)])}async function D(){if(await L(),P.value=void 0,!S.value){const{payment_acceptor:e,integration:t}=a.paymentMethodOptionResponseEntry;i.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE","No Adyen payment methods to offer",{fingerprint:["PAYMENT_INTEGRATION_NOT_RENDERABLE",e.id],paymentAcceptorId:e.id,integrationId:t.id,...a.invoiceId?{invoiceId:a.invoiceId}:{}});return}if(await n.nextTick(),!!l.value)try{const[e,t]=await H(),{checkoutConfig:r,dropInConfig:o}=await K();b=await e.AdyenCheckout(r),y=new e.Dropin(b,{...o,paymentMethodComponents:e.dropInPaymentMethodComponents}).mount(l.value),Q(t),q()}catch(e){i.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to mount Adyen web drop-in",u({reason:"ADYEN_DROP_IN_MOUNT_FAILED",cause:e}),e),E({code:"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",message:"Failed to mount Adyen web drop-in",error:e})}}function C(){const e=me(l.value);if(pe(e,R.value)){A.value=null,n.nextTick(()=>A.value=e);return}A.value=e}function q(){h==null||h.disconnect(),l.value&&(h=new MutationObserver(()=>C()),h.observe(l.value,{childList:!0,subtree:!0}),C())}function $(){h==null||h.disconnect(),h=void 0,A.value=null}async function L(){$(),y&&(y.unmount(),y=null),l.value&&(l.value.innerHTML="")}function Q(e){var r;const t=(r=l.value)==null?void 0:r.getRootNode();if(t instanceof ShadowRoot){const o=document.createElement("style");o.textContent=e,t.appendChild(o);const c=document.createElement("style");c.textContent=`
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),re=require("./useService-H7BjLg8P.js"),N=require("./customElements-hH6pju3X.js"),F=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js"),ie=require("./payments-DBvregE8.js"),U=require("./url-vloPOiXd.js"),de=require("./paymentMethods-CZGP6_4W.js"),p=require("./adyen-Druit6gz.js"),ce=require("./adyenSdk-BP2XXzeJ.js"),se=require("./useExperimentalFeature-D29-TO3R.js"),Y=require("./paymentFailure-Cki8c5BX.js"),ue=".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";function me(s){return(s==null?void 0:s.querySelector(ue))??null}function pe(s,m){return!!s&&!!m&&!s.contains(m)}const ye=s=>{let m={};return s==="TOKENIZE"&&(m={"en-US":{payButton:"Add payment method",confirmPurchase:"Add payment method"},"fr-FR":{payButton:"Ajouter un moyen de paiement",confirmPurchase:"Ajouter un moyen de paiement"},"de-DE":{payButton:"Zahlungsmethode hinzufügen",confirmPurchase:"Zahlungsmethode hinzufügen"},"it-IT":{payButton:"Aggiungi metodo di pagamento",confirmPurchase:"Aggiungi metodo di pagamento"},"es-ES":{payButton:"Añadir método de pago",confirmPurchase:"Añadir método de pago"},"nl-NL":{payButton:"Betaalmethode toevoegen",confirmPurchase:"Betaalmethode toevoegen"},"pt-BR":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pt-PT":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pl-PL":{payButton:"Dodaj metodę płatności",confirmPurchase:"Dodaj metodę płatności"},"ru-RU":{payButton:"Добавить способ оплаты",confirmPurchase:"Добавить способ оплаты"},"sv-SE":{payButton:"Lägg till betalningsmetod",confirmPurchase:"Lägg till betalningsmetod"},"da-DK":{payButton:"Tilføj betalingsmetode",confirmPurchase:"Tilføj betalingsmetode"},"fi-FI":{payButton:"Lisää maksutapa",confirmPurchase:"Lisää maksutapa"},"no-NO":{payButton:"Legg til betalingsmetode",confirmPurchase:"Legg til betalingsmetode"},"cs-CZ":{payButton:"Přidat platební metodu",confirmPurchase:"Přidat platební metodu"},"hu-HU":{payButton:"Fizetési mód hozzáadása",confirmPurchase:"Fizetési mód hozzáadása"},"ro-RO":{payButton:"Adăugați metodă de plată",confirmPurchase:"Adăugați metodă de plată"},"ja-JP":{payButton:"支払い方法を追加",confirmPurchase:"支払い方法を追加"},"ko-KR":{payButton:"결제 수단 추가",confirmPurchase:"결제 수단 추가"},"zh-CN":{payButton:"添加支付方式",confirmPurchase:"添加支付方式"},"zh-TW":{payButton:"新增付款方式",confirmPurchase:"新增付款方式"},ar:{payButton:"إضافة وسيلة دفع",confirmPurchase:"إضافة وسيلة دفع"},"hr-HR":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"el-GR":{payButton:"Προσθήκη μεθόδου πληρωμής",confirmPurchase:"Προσθήκη μεθόδου πληρωμής"},"sk-SK":{payButton:"Pridať spôsob platby",confirmPurchase:"Pridať spôsob platby"},"sl-SI":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"bg-BG":{payButton:"Добавяне на начин на плащане",confirmPurchase:"Добавяне на начин на плащане"},"ca-ES":{payButton:"Afegir mètode de pagament",confirmPurchase:"Afegir mètode de pagament"},"et-EE":{payButton:"Lisa makseviis",confirmPurchase:"Lisa makseviis"},"lv-LV":{payButton:"Pievienot maksājuma veidu",confirmPurchase:"Pievienot maksājuma veidu"},"lt-LT":{payButton:"Pridėti mokėjimo metodą",confirmPurchase:"Pridėti mokėjimo metodą"}}),m},le={class:"sv-sepa-mandate mt-3","data-testid":"sepa-mandate-notice"},he=n.defineComponent({__name:"SepaMandateNotice",props:{billingEntityName:{type:String}},setup(s){const m=s,{$t:E}=N.useIntl(),y=n.computed(()=>E({defaultMessage:"SEPA Direct Debit mandate — recurring payments",description:"Title of the SEPA direct debit mandate shown inside the SEPA payment form",id:"payments.sepa_mandate.title"})),b=n.computed(()=>m.billingEntityName?E({defaultMessage:"By confirming this mandate, you authorise {billingEntityName} to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",description:"SEPA direct debit mandate authorisation, naming the billing entity",id:"payments.sepa_mandate.authorisation"},{billingEntityName:m.billingEntityName}):E({defaultMessage:"By confirming this mandate, you authorise us to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",description:"SEPA direct debit mandate authorisation, where the billing entity is not known",id:"payments.sepa_mandate.authorisation_unnamed"})),a=n.computed(()=>m.billingEntityName?E({defaultMessage:"This bank account will be used automatically to pay subsequent invoices from {billingEntityName} until you cancel this mandate.",description:"Explains that the SEPA mandate covers later invoices, naming the billing entity",id:"payments.sepa_mandate.recurrence"},{billingEntityName:m.billingEntityName}):E({defaultMessage:"This bank account will be used automatically to pay subsequent invoices until you cancel this mandate.",description:"Explains that the SEPA mandate covers later invoices, where the billing entity is not known",id:"payments.sepa_mandate.recurrence_unnamed"})),g=n.computed(()=>E({defaultMessage:"As part of your rights, you're entitled to a refund from your bank under the terms and conditions of your agreement with your bank. You must claim a refund within 8 weeks from the date your account was debited. You can request a statement from your bank explaining your rights.",description:"SEPA direct debit mandate refund rights, held against the payer's own bank",id:"payments.sepa_mandate.refund_rights"}));return(l,v)=>(n.openBlock(),n.createElementBlock("div",le,[n.createVNode(n.unref(N._sfc_main),{tag:"p",variant:"body-xs",class:"font-semibold"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:1}),n.createVNode(n.unref(N._sfc_main),{tag:"p",variant:"body-xs",color:"subtle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(b.value)+" "+n.toDisplayString(a.value)+" "+n.toDisplayString(g.value),1)]),_:1})]))}}),T="ADYEN",_e=n.defineComponent({__name:"PaymentIntegrationFormAdyen",props:{context:{type:Object},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","ready"],setup(s,{expose:m,emit:E}){let y=null,b=null;const a=s,g=E;m({submit:V});const l=n.ref(),v=n.ref(null),A=n.ref(null);let h;const O=n.ref(!1),P=n.ref(),i=N.useLogger(),{locale:j}=N.useIntl(),{authorizePayment:Z,getPaymentDetails:z}=ie.createPaymentsService(),{tokenizePaymentMethod:G}=de.createPaymentMethodsService(),k=se.useExperimentalFeature(),M=n.computed(()=>{var e;return p.getAdyenDropInPaymentMethods(a.paymentMethodOptionResponseEntry,{excludeExpressPaymentMethods:!!((e=k==null?void 0:k.value)!=null&&e["express-checkout"])})}),S=n.computed(()=>M.value.length>0);function u(e){return Y.createPaymentFailureContext({gateway:T,paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,variant:a.variant,invoiceId:a.invoiceId,customerId:a.customerId,...e})}function f(e){const t=Y.createPaymentFailureError(e);P.value=t,g("payment-failed",t)}function V(){try{y==null||y.submit()}catch(e){i.error("ADYEN_SUBMIT_FAILED","Failed to submit Adyen drop-in",u({reason:"ADYEN_SUBMIT_FAILED",cause:e}),e)}}async function K(){const e=p.toMinorUnitAmount(a.amount),t=M.value;return{checkoutConfig:{amount:e,clientKey:p.getAdyenClientKeyFromPaymentMethodOptionsResponse(a.paymentMethodOptionResponseEntry),environment:p.getAdyenEnvironmentFromPaymentMethodOptionsResponse(a.paymentMethodOptionResponseEntry,i),locale:j,translations:ye(a.variant),countryCode:a.countryCode,analytics:{enabled:!1},paymentMethodsResponse:{paymentMethods:t},onSubmit:J,onAdditionalDetails:X,onPaymentCompleted:ne,onPaymentFailed:te,onError:ae,showPayButton:!1},dropInConfig:{disableFinalAnimation:!0,paymentMethodsConfiguration:{card:{hasHolderName:!0,holderNameRequired:!0,enableStoreDetails:!a.forceStorePaymentMethod&&a.storePaymentMethod===void 0&&a.variant==="AUTHORIZE"},paypal:{intent:e.value>0?"authorize":"tokenize",showPayButton:!0}},openFirstPaymentMethod:a.selected,onSelect:({props:{type:r}})=>{r&&g("select",{paymentMethodType:r,paymentGatewayVariant:"ADYEN"})},onReady:()=>g("ready")}}}function H(){return Promise.all([ce.loadAdyenSdk(),Promise.resolve().then(()=>require("./adyen-BJfC7N6f.js")).then(e=>e.default)])}async function D(){if(await w(),P.value=void 0,!S.value){const{payment_acceptor:e,integration:t}=a.paymentMethodOptionResponseEntry;i.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE","No Adyen payment methods to offer",{fingerprint:["PAYMENT_INTEGRATION_NOT_RENDERABLE",e.id],paymentAcceptorId:e.id,integrationId:t.id,...a.invoiceId?{invoiceId:a.invoiceId}:{}});return}if(await n.nextTick(),!!l.value)try{const[e,t]=await H(),{checkoutConfig:r,dropInConfig:o}=await K();b=await e.AdyenCheckout(r),y=new e.Dropin(b,{...o,paymentMethodComponents:e.dropInPaymentMethodComponents}).mount(l.value),Q(t),q()}catch(e){i.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to mount Adyen web drop-in",u({reason:"ADYEN_DROP_IN_MOUNT_FAILED",cause:e}),e),f({code:"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",message:"Failed to mount Adyen web drop-in",error:e})}}function C(){const e=me(l.value);if(pe(e,v.value)){A.value=null,n.nextTick(()=>A.value=e);return}A.value=e}function q(){h==null||h.disconnect(),l.value&&(h=new MutationObserver(()=>C()),h.observe(l.value,{childList:!0,subtree:!0}),C())}function $(){h==null||h.disconnect(),h=void 0,A.value=null}async function w(){$(),y&&(y.unmount(),y=null),l.value&&(l.value.innerHTML="")}function Q(e){var r;const t=(r=l.value)==null?void 0:r.getRootNode();if(t instanceof ShadowRoot){const o=document.createElement("style");o.textContent=e,t.appendChild(o);const d=document.createElement("style");d.textContent=`
2
2
  :host {
3
3
  --adyen-sdk-color-background-secondary: transparent;
4
4
  --adyen-sdk-color-background-primary: rgb(243 244 246 / 0.5);
@@ -91,8 +91,8 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=requi
91
91
  .adyen-checkout__checkbox__input + .adyen-checkout__checkbox__label:after {
92
92
  border-color: rgb(229, 231, 235);
93
93
  }
94
- `,a.variant==="AUTHORIZE"&&(c.textContent+=`
94
+ `,a.variant==="AUTHORIZE"&&(d.textContent+=`
95
95
  .adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
96
96
  display: none;
97
97
  }
98
- `),t.appendChild(c)}}function x(e,{paymentMethodType:t,actions:r,logFailure:o}){if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===T){const c=W(e,t);if(!c){o(e);return}y.handleAction(c),r.resolve({resultCode:e.action.adyen.result_code,action:c});return}if(e.payment.result==="AUTHORIZED"){k.value=!0,r.resolve({resultCode:"Authorised"});return}o(e),r.resolve({resultCode:"Error"})}function J(...e){const[t,r,o]=e;a.validateOnSubmit().then(c=>{if(!c)return;const d=a.paymentMethodOptionResponseEntry.payment_acceptor.id,w={risk_data:p.transformObjectToAdyenObject(t.data.riskData),payment_method:p.transformObjectToAdyenObject(t.data.paymentMethod),browser_info:p.transformObjectToAdyenObject(t.data.browserInfo)};if(a.variant==="AUTHORIZE"){const O=p.createReturnUrl({paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});Z({payment_acceptor_id:d,...a.customerId?{customer_id:a.customerId}:{},payment_gateway_variant:T,adyen:{...w,store_payment_method:a.storePaymentMethod??(a.forceStorePaymentMethod||t.data.storePaymentMethod)},amount:a.amount,...a.context?{context:a.context}:{},return_url:O}).then(_=>x(_,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:I=>i.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${d}`,u({reason:"PAYMENT_AUTHORIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:I}),I)})).catch(_=>{i.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${d}`,u({reason:"PAYMENT_AUTHORIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:_}),_),o.resolve({resultCode:"Error"})});return}if(a.variant==="TOKENIZE"){const O=p.createReturnUrl({paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});if(!a.customerId){i.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${d}`,u({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),E({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}G({customer_id:a.customerId,payment_acceptor_id:d,payment_gateway_variant:T,adyen:w,return_url:O}).then(_=>x(_,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:I=>i.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${d}`,u({reason:"TOKENIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:I}),I)})).catch(_=>{i.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${d}`,u({reason:"TOKENIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:_}),_),o.resolve({resultCode:"Error"})})}}).catch(c=>{i.error("INTEGRATION_ERROR","Unhandled error in payment submission flow",u({reason:"ADYEN_SUBMISSION_FLOW_FAILED",cause:c}),c)})}function W(e,t){if(e.status!=="ACTION_REQUIRED")return;const r=e.action;if(r.payment_gateway_variant!="ADYEN")return;const o=r.adyen;return{paymentMethodType:(o==null?void 0:o.payment_method_type)??t,method:r.method,url:r.url,data:r.data,type:o==null?void 0:o.action_type,paymentData:o==null?void 0:o.payment_data,sdkData:o==null?void 0:o.sdk_data}}function X(...e){const[t]=e,r=t.data.details,o=t.data.paymentData;if(a.paymentMethodOptionResponseEntry.payment_acceptor.id){B({detailsResult:r?ee(r):void 0,paymentDataResult:o,paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id});return}i.error("PAYMENT_ACCEPTOR_MISSING","Additional details arrived without a payment acceptor id",u({reason:"PAYMENT_ACCEPTOR_MISSING"})),E({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Payment failed",error:e})}function ee(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}function te(...e){const[t]=e;i.error("ADYEN_PAYMENT_FAILED","Adyen reported the payment as failed",u({reason:"ADYEN_PAYMENT_FAILED",extra:{resultCode:t==null?void 0:t.resultCode}}),t),E({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:t})}function ne(...e){const[,t]=e;t==null||t.unmount(),g("payment-success")}function ae(...e){const[t,r]=e;t.name!=="CANCEL"&&(i.error("INTEGRATION_ERROR","The Adyen drop-in reported an error",u({reason:"ADYEN_INTEGRATION_ERROR",cause:t,extra:{adyenErrorName:t.name}}),t),E({code:"UNKNOWN_ERROR",message:"Something went wrong",error:t}),r==null||r.unmount())}function B({detailsResult:e,threeDSResult:t,redirectResult:r,paymentDataResult:o,paymentAcceptorId:c}){z({paymentAcceptorId:c,paymentGatewayVariant:T,adyen:{...e?{details:e}:{},...r?{redirect_result:r}:{},...t?{threeds_result:t}:{},...o?{payment_data:o}:{}}}).then(d=>{if(d.payment_status==="FAILURE"){i.error("PAYMENT_DETAILS_REJECTED","Payment details returned a failed payment",u({reason:"PAYMENT_DETAILS_REJECTED",paymentAcceptorId:c,extra:{paymentStatus:d.payment_status}})),E({code:"AUTHORIZATION_FAILED",message:"Failed getting payment details",error:d});return}if(d.payment_status==="SUCCESS"){g("payment-success");return}}).catch(d=>{i.error("PAYMENT_DETAILS_CALL_FAILED","Failed fetching payment details",u({reason:"PAYMENT_DETAILS_CALL_FAILED",paymentAcceptorId:c,cause:d}),d),E({code:"PAYMENT_DETAILS_CALL_FAILED",message:"Failed fetching payment details",error:d})})}function oe(){const e=U.getQueryParam(p.REDIRECT_RESULT_QUERY_STRING),t=U.getQueryParam(p.PAYMENT_ACCEPTOR_ID_QUERY_STRING);if(e){if(!t){i.error("INVALID_REDIRECT_RESULT","Redirect result is set but payment acceptor id is missing",u({reason:"INVALID_REDIRECT_RESULT"})),E({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Redirect result is set but payment acceptor id is missing"});return}B({paymentAcceptorId:t,detailsResult:{redirectResult:decodeURI(e)}})}}return n.onMounted(()=>{D(),oe()}),n.onBeforeUnmount(()=>{L()}),n.watch(()=>a.paymentMethodOptionResponseEntry,(e,t)=>{re.isEqual(e,t)||D()},{deep:!0}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[k.value?(n.openBlock(),n.createBlock(F._sfc_main,{key:0,variant:s.variant,redirecting:s.redirectsOnSuccess},null,8,["variant","redirecting"])):P.value?(n.openBlock(),n.createBlock(F._sfc_main$1,{key:1,error:P.value},null,8,["error"])):n.createCommentVNode("",!0),S.value?(n.openBlock(),n.createElementBlock("div",{key:2,ref_key:"dropInContainerRef",ref:l},null,512)):n.createCommentVNode("",!0),A.value?(n.openBlock(),n.createBlock(n.Teleport,{key:3,to:A.value},[n.createElementVNode("div",{ref_key:"sepaNoticeRef",ref:R},[n.createVNode(he,{"billing-entity-name":s.billingEntityName},null,8,["billing-entity-name"])],512)],8,["to"])):n.createCommentVNode("",!0)],64))}});exports.default=_e;
98
+ `),t.appendChild(d)}}function L(e,{paymentMethodType:t,actions:r,logFailure:o}){if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===T){const d=W(e,t);if(!d){o(e);return}y.handleAction(d),r.resolve({resultCode:e.action.adyen.result_code,action:d});return}if(e.payment.result==="AUTHORIZED"){O.value=!0,r.resolve({resultCode:"Authorised"});return}o(e),r.resolve({resultCode:"Error"})}function J(...e){const[t,r,o]=e;a.validateOnSubmit().then(d=>{if(!d)return;const c=a.paymentMethodOptionResponseEntry.payment_acceptor.id,B={risk_data:p.transformObjectToAdyenObject(t.data.riskData),payment_method:p.transformObjectToAdyenObject(t.data.paymentMethod),browser_info:p.transformObjectToAdyenObject(t.data.browserInfo)};if(a.variant==="AUTHORIZE"){const R=p.createReturnUrl({paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});Z({payment_acceptor_id:c,...a.customerId?{customer_id:a.customerId}:{},payment_gateway_variant:T,adyen:{...B,store_payment_method:a.storePaymentMethod??(a.forceStorePaymentMethod||t.data.storePaymentMethod)},amount:a.amount,...a.context?{context:a.context}:{},return_url:R}).then(_=>L(_,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:I=>i.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,u({reason:"PAYMENT_AUTHORIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:I}),I)})).catch(_=>{i.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,u({reason:"PAYMENT_AUTHORIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:_}),_),o.resolve({resultCode:"Error"})});return}if(a.variant==="TOKENIZE"){const R=p.createReturnUrl({paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});if(!a.customerId){i.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${c}`,u({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),f({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}G({customer_id:a.customerId,payment_acceptor_id:c,payment_gateway_variant:T,adyen:B,return_url:R}).then(_=>L(_,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:I=>i.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,u({reason:"TOKENIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:I}),I)})).catch(_=>{i.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,u({reason:"TOKENIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:_}),_),o.resolve({resultCode:"Error"})})}}).catch(d=>{i.error("INTEGRATION_ERROR","Unhandled error in payment submission flow",u({reason:"ADYEN_SUBMISSION_FLOW_FAILED",cause:d}),d)})}function W(e,t){if(e.status!=="ACTION_REQUIRED")return;const r=e.action;if(r.payment_gateway_variant!="ADYEN")return;const o=r.adyen;return{paymentMethodType:(o==null?void 0:o.payment_method_type)??t,method:r.method,url:r.url,data:r.data,type:o==null?void 0:o.action_type,paymentData:o==null?void 0:o.payment_data,sdkData:o==null?void 0:o.sdk_data}}function X(...e){const[t]=e,r=t.data.details,o=t.data.paymentData;if(a.paymentMethodOptionResponseEntry.payment_acceptor.id){x({detailsResult:r?ee(r):void 0,paymentDataResult:o,paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id});return}i.error("PAYMENT_ACCEPTOR_MISSING","Additional details arrived without a payment acceptor id",u({reason:"PAYMENT_ACCEPTOR_MISSING"})),f({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Payment failed",error:e})}function ee(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}function te(...e){const[t]=e;i.error("ADYEN_PAYMENT_FAILED","Adyen reported the payment as failed",u({reason:"ADYEN_PAYMENT_FAILED",extra:{resultCode:t==null?void 0:t.resultCode}}),t),f({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:t})}function ne(...e){const[,t]=e;t==null||t.unmount(),g("payment-success")}function ae(...e){const[t,r]=e;t.name!=="CANCEL"&&(i.error("INTEGRATION_ERROR","The Adyen drop-in reported an error",u({reason:"ADYEN_INTEGRATION_ERROR",cause:t,extra:{adyenErrorName:t.name}}),t),f({code:"UNKNOWN_ERROR",message:"Something went wrong",error:t}),r==null||r.unmount())}function x({detailsResult:e,threeDSResult:t,redirectResult:r,paymentDataResult:o,paymentAcceptorId:d}){z({paymentAcceptorId:d,paymentGatewayVariant:T,adyen:{...e?{details:e}:{},...r?{redirect_result:r}:{},...t?{threeds_result:t}:{},...o?{payment_data:o}:{}}}).then(c=>{if(c.payment_status==="FAILURE"){i.error("PAYMENT_DETAILS_REJECTED","Payment details returned a failed payment",u({reason:"PAYMENT_DETAILS_REJECTED",paymentAcceptorId:d,extra:{paymentStatus:c.payment_status}})),f({code:"AUTHORIZATION_FAILED",message:"Failed getting payment details",error:c});return}if(c.payment_status==="SUCCESS"){g("payment-success");return}}).catch(c=>{i.error("PAYMENT_DETAILS_CALL_FAILED","Failed fetching payment details",u({reason:"PAYMENT_DETAILS_CALL_FAILED",paymentAcceptorId:d,cause:c}),c),f({code:"PAYMENT_DETAILS_CALL_FAILED",message:"Failed fetching payment details",error:c})})}function oe(){const e=U.getQueryParam(p.REDIRECT_RESULT_QUERY_STRING),t=U.getQueryParam(p.PAYMENT_ACCEPTOR_ID_QUERY_STRING);if(e){if(!t){i.error("INVALID_REDIRECT_RESULT","Redirect result is set but payment acceptor id is missing",u({reason:"INVALID_REDIRECT_RESULT"})),f({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Redirect result is set but payment acceptor id is missing"});return}x({paymentAcceptorId:t,detailsResult:{redirectResult:decodeURI(e)}})}}return n.onMounted(()=>{D(),oe()}),n.onBeforeUnmount(()=>{w()}),n.watch(()=>a.paymentMethodOptionResponseEntry,(e,t)=>{re.isEqual(e,t)||D()},{deep:!0}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[O.value?(n.openBlock(),n.createBlock(F._sfc_main,{key:0,variant:s.variant,redirecting:s.redirectsOnSuccess},null,8,["variant","redirecting"])):P.value?(n.openBlock(),n.createBlock(F._sfc_main$1,{key:1,error:P.value},null,8,["error"])):n.createCommentVNode("",!0),S.value?(n.openBlock(),n.createElementBlock("div",{key:2,ref_key:"dropInContainerRef",ref:l},null,512)):n.createCommentVNode("",!0),A.value?(n.openBlock(),n.createBlock(n.Teleport,{key:3,to:A.value},[n.createElementVNode("div",{ref_key:"sepaNoticeRef",ref:v},[n.createVNode(he,{"billing-entity-name":s.billingEntityName},null,8,["billing-entity-name"])],512)],8,["to"])):n.createCommentVNode("",!0)],64))}});exports.default=_e;
@@ -1,13 +1,13 @@
1
- import { defineComponent as W, computed as N, openBlock as A, createElementBlock as S, createVNode as C, unref as G, withCtx as K, createTextVNode as H, toDisplayString as O, ref as I, onMounted as Ee, onBeforeUnmount as fe, watch as Ae, Fragment as ge, createBlock as M, createCommentVNode as k, Teleport as Ie, createElementVNode as Te, nextTick as V } from "vue";
1
+ import { defineComponent as W, computed as A, openBlock as g, createElementBlock as C, createVNode as L, unref as G, withCtx as K, createTextVNode as H, toDisplayString as v, ref as T, onMounted as Ee, onBeforeUnmount as fe, watch as ge, Fragment as Ae, createBlock as M, createCommentVNode as D, Teleport as Ie, createElementVNode as Te, nextTick as V } from "vue";
2
2
  import { a as Ne } from "./useService-Bh47bllz.mjs";
3
- import { u as q, _ as $, b as be } from "./customElements-DT1YyL4O.mjs";
4
- import { _ as Pe, a as ve } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs";
5
- import { c as Re } from "./payments-BYZLQTJ-.mjs";
3
+ import { u as q, _ as $, b as be } from "./customElements-q_i9y0Ph.mjs";
4
+ import { _ as Pe, a as ve } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs";
5
+ import { c as Re } from "./payments-C0-Hq2a4.mjs";
6
6
  import { g as J } from "./url-TNRgVI8A.mjs";
7
- import { c as Oe } from "./paymentMethods-By1SebnO.mjs";
8
- import { g as Me, t as ke, a as De, b as Se, R as Ce, P as Le, c as D, d as Q } from "./adyen-CvsH5fok.mjs";
7
+ import { c as Oe } from "./paymentMethods-DEKp_4QM.mjs";
8
+ import { g as ke, t as Me, a as De, b as Se, R as Ce, P as Le, c as S, d as Q } from "./adyen-CvsH5fok.mjs";
9
9
  import { l as we } from "./adyenSdk-B01MB9Ia.mjs";
10
- import { u as xe } from "./useExperimentalFeature-NsSDg-e3.mjs";
10
+ import { u as xe } from "./useExperimentalFeature-JK_kAUQQ.mjs";
11
11
  import { c as Be, a as Fe } from "./paymentFailure-Bh60UhxA.mjs";
12
12
  const Ue = ".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";
13
13
  function Ye(d) {
@@ -153,63 +153,69 @@ const Ze = (d) => {
153
153
  billingEntityName: { type: String }
154
154
  },
155
155
  setup(d) {
156
- const u = d, { $t: _ } = q(), m = N(
157
- () => _({
156
+ const u = d, { $t: h } = q(), m = A(
157
+ () => h({
158
158
  defaultMessage: "SEPA Direct Debit mandate — recurring payments",
159
159
  description: "Title of the SEPA direct debit mandate shown inside the SEPA payment form",
160
160
  id: "payments.sepa_mandate.title"
161
161
  })
162
- ), b = N(
163
- () => u.billingEntityName ? _(
162
+ ), b = A(
163
+ () => u.billingEntityName ? h(
164
164
  {
165
165
  defaultMessage: "By confirming this mandate, you authorise {billingEntityName} to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",
166
166
  description: "SEPA direct debit mandate authorisation, naming the billing entity",
167
167
  id: "payments.sepa_mandate.authorisation"
168
168
  },
169
169
  { billingEntityName: u.billingEntityName }
170
- ) : _({
170
+ ) : h({
171
171
  defaultMessage: "By confirming this mandate, you authorise us to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",
172
172
  description: "SEPA direct debit mandate authorisation, where the billing entity is not known",
173
173
  id: "payments.sepa_mandate.authorisation_unnamed"
174
174
  })
175
- ), n = N(
176
- () => u.billingEntityName ? _(
175
+ ), n = A(
176
+ () => u.billingEntityName ? h(
177
177
  {
178
178
  defaultMessage: "This bank account will be used automatically to pay subsequent invoices from {billingEntityName} until you cancel this mandate.",
179
179
  description: "Explains that the SEPA mandate covers later invoices, naming the billing entity",
180
180
  id: "payments.sepa_mandate.recurrence"
181
181
  },
182
182
  { billingEntityName: u.billingEntityName }
183
- ) : _({
183
+ ) : h({
184
184
  defaultMessage: "This bank account will be used automatically to pay subsequent invoices until you cancel this mandate.",
185
185
  description: "Explains that the SEPA mandate covers later invoices, where the billing entity is not known",
186
186
  id: "payments.sepa_mandate.recurrence_unnamed"
187
187
  })
188
+ ), E = A(
189
+ () => h({
190
+ defaultMessage: "As part of your rights, you're entitled to a refund from your bank under the terms and conditions of your agreement with your bank. You must claim a refund within 8 weeks from the date your account was debited. You can request a statement from your bank explaining your rights.",
191
+ description: "SEPA direct debit mandate refund rights, held against the payer's own bank",
192
+ id: "payments.sepa_mandate.refund_rights"
193
+ })
188
194
  );
189
- return (E, p) => (A(), S("div", ze, [
190
- C(G($), {
195
+ return (p, R) => (g(), C("div", ze, [
196
+ L(G($), {
191
197
  tag: "p",
192
198
  variant: "body-xs",
193
199
  class: "font-semibold"
194
200
  }, {
195
201
  default: K(() => [
196
- H(O(m.value), 1)
202
+ H(v(m.value), 1)
197
203
  ]),
198
204
  _: 1
199
205
  }),
200
- C(G($), {
206
+ L(G($), {
201
207
  tag: "p",
202
208
  variant: "body-xs",
203
209
  color: "subtle"
204
210
  }, {
205
211
  default: K(() => [
206
- H(O(b.value) + " " + O(n.value), 1)
212
+ H(v(b.value) + " " + v(n.value) + " " + v(E.value), 1)
207
213
  ]),
208
214
  _: 1
209
215
  })
210
216
  ]));
211
217
  }
212
- }), T = "ADYEN", nt = /* @__PURE__ */ W({
218
+ }), N = "ADYEN", nt = /* @__PURE__ */ W({
213
219
  __name: "PaymentIntegrationFormAdyen",
214
220
  props: {
215
221
  context: { type: Object },
@@ -227,23 +233,23 @@ const Ze = (d) => {
227
233
  billingEntityName: { type: String }
228
234
  },
229
235
  emits: ["select", "payment-failed", "payment-success", "ready"],
230
- setup(d, { expose: u, emit: _ }) {
236
+ setup(d, { expose: u, emit: h }) {
231
237
  let m = null, b = null;
232
- const n = d, E = _;
238
+ const n = d, E = h;
233
239
  u({ submit: ae });
234
- const p = I(), L = I(null), f = I(null);
240
+ const p = T(), R = T(null), f = T(null);
235
241
  let y;
236
- const w = I(!1), P = I(), r = be(), { locale: X } = q(), { authorizePayment: ee, getPaymentDetails: te } = Re(), { tokenizePaymentMethod: ne } = Oe(), v = xe(), x = N(
242
+ const w = T(!1), P = T(), r = be(), { locale: X } = q(), { authorizePayment: ee, getPaymentDetails: te } = Re(), { tokenizePaymentMethod: ne } = Oe(), O = xe(), x = A(
237
243
  () => {
238
244
  var e;
239
- return Me(n.paymentMethodOptionResponseEntry, {
240
- excludeExpressPaymentMethods: !!((e = v == null ? void 0 : v.value) != null && e["express-checkout"])
245
+ return ke(n.paymentMethodOptionResponseEntry, {
246
+ excludeExpressPaymentMethods: !!((e = O == null ? void 0 : O.value) != null && e["express-checkout"])
241
247
  });
242
248
  }
243
- ), B = N(() => x.value.length > 0);
249
+ ), B = A(() => x.value.length > 0);
244
250
  function c(e) {
245
251
  return Be({
246
- gateway: T,
252
+ gateway: N,
247
253
  paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
248
254
  variant: n.variant,
249
255
  invoiceId: n.invoiceId,
@@ -251,7 +257,7 @@ const Ze = (d) => {
251
257
  ...e
252
258
  });
253
259
  }
254
- function h(e) {
260
+ function _(e) {
255
261
  const t = Fe(e);
256
262
  P.value = t, E("payment-failed", t);
257
263
  }
@@ -268,7 +274,7 @@ const Ze = (d) => {
268
274
  }
269
275
  }
270
276
  async function oe() {
271
- const e = ke(n.amount), t = x.value;
277
+ const e = Me(n.amount), t = x.value;
272
278
  return {
273
279
  checkoutConfig: {
274
280
  amount: e,
@@ -342,7 +348,7 @@ const Ze = (d) => {
342
348
  "Failed to mount Adyen web drop-in",
343
349
  c({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause: e }),
344
350
  e
345
- ), h({
351
+ ), _({
346
352
  code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
347
353
  message: "Failed to mount Adyen web drop-in",
348
354
  error: e
@@ -351,7 +357,7 @@ const Ze = (d) => {
351
357
  }
352
358
  function U() {
353
359
  const e = Ye(p.value);
354
- if (je(e, L.value)) {
360
+ if (je(e, R.value)) {
355
361
  f.value = null, V(() => f.value = e);
356
362
  return;
357
363
  }
@@ -478,7 +484,7 @@ const Ze = (d) => {
478
484
  actions: o,
479
485
  logFailure: a
480
486
  }) {
481
- if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === T) {
487
+ if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === N) {
482
488
  const i = ue(e, t);
483
489
  if (!i) {
484
490
  a(e);
@@ -502,39 +508,39 @@ const Ze = (d) => {
502
508
  if (!i)
503
509
  return;
504
510
  const s = n.paymentMethodOptionResponseEntry.payment_acceptor.id, z = {
505
- risk_data: D(t.data.riskData),
506
- payment_method: D(t.data.paymentMethod),
507
- browser_info: D(t.data.browserInfo)
511
+ risk_data: S(t.data.riskData),
512
+ payment_method: S(t.data.paymentMethod),
513
+ browser_info: S(t.data.browserInfo)
508
514
  };
509
515
  if (n.variant === "AUTHORIZE") {
510
- const R = Q({
516
+ const k = Q({
511
517
  paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
512
518
  redirectUrl: window.location.href
513
519
  });
514
520
  ee({
515
521
  payment_acceptor_id: s,
516
522
  ...n.customerId ? { customer_id: n.customerId } : {},
517
- payment_gateway_variant: T,
523
+ payment_gateway_variant: N,
518
524
  adyen: {
519
525
  ...z,
520
526
  store_payment_method: n.storePaymentMethod ?? (n.forceStorePaymentMethod || t.data.storePaymentMethod)
521
527
  },
522
528
  amount: n.amount,
523
529
  ...n.context ? { context: n.context } : {},
524
- return_url: R
530
+ return_url: k
525
531
  }).then(
526
532
  (l) => j(l, {
527
533
  paymentMethodType: t.data.paymentMethod.type,
528
534
  actions: a,
529
- logFailure: (g) => r.error(
535
+ logFailure: (I) => r.error(
530
536
  "PAYMENT_AUTHORIZATION_FAILED",
531
537
  `Failed payment authorization for payment acceptor with id ${s}`,
532
538
  c({
533
539
  reason: "PAYMENT_AUTHORIZATION_REJECTED",
534
540
  paymentMethodType: t.data.paymentMethod.type,
535
- cause: g
541
+ cause: I
536
542
  }),
537
- g
543
+ I
538
544
  )
539
545
  })
540
546
  ).catch((l) => {
@@ -552,7 +558,7 @@ const Ze = (d) => {
552
558
  return;
553
559
  }
554
560
  if (n.variant === "TOKENIZE") {
555
- const R = Q({
561
+ const k = Q({
556
562
  paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
557
563
  redirectUrl: window.location.href
558
564
  });
@@ -561,28 +567,28 @@ const Ze = (d) => {
561
567
  "TOKENIZATION_FAILED",
562
568
  `Missing customer id for payment acceptor with id ${s}`,
563
569
  c({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
564
- ), h({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
570
+ ), _({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
565
571
  return;
566
572
  }
567
573
  ne({
568
574
  customer_id: n.customerId,
569
575
  payment_acceptor_id: s,
570
- payment_gateway_variant: T,
576
+ payment_gateway_variant: N,
571
577
  adyen: z,
572
- return_url: R
578
+ return_url: k
573
579
  }).then(
574
580
  (l) => j(l, {
575
581
  paymentMethodType: t.data.paymentMethod.type,
576
582
  actions: a,
577
- logFailure: (g) => r.error(
583
+ logFailure: (I) => r.error(
578
584
  "TOKENIZATION_FAILED",
579
585
  `Tokenization failed for payment acceptor with id ${s}`,
580
586
  c({
581
587
  reason: "TOKENIZATION_REJECTED",
582
588
  paymentMethodType: t.data.paymentMethod.type,
583
- cause: g
589
+ cause: I
584
590
  }),
585
- g
591
+ I
586
592
  )
587
593
  })
588
594
  ).catch((l) => {
@@ -639,7 +645,7 @@ const Ze = (d) => {
639
645
  "PAYMENT_ACCEPTOR_MISSING",
640
646
  "Additional details arrived without a payment acceptor id",
641
647
  c({ reason: "PAYMENT_ACCEPTOR_MISSING" })
642
- ), h({
648
+ ), _({
643
649
  code: "REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",
644
650
  message: "Payment failed",
645
651
  error: e
@@ -660,7 +666,7 @@ const Ze = (d) => {
660
666
  extra: { resultCode: t == null ? void 0 : t.resultCode }
661
667
  }),
662
668
  t
663
- ), h({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: t });
669
+ ), _({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: t });
664
670
  }
665
671
  function le(...e) {
666
672
  const [, t] = e;
@@ -677,7 +683,7 @@ const Ze = (d) => {
677
683
  extra: { adyenErrorName: t.name }
678
684
  }),
679
685
  t
680
- ), h({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), o == null || o.unmount());
686
+ ), _({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), o == null || o.unmount());
681
687
  }
682
688
  function Z({
683
689
  detailsResult: e,
@@ -688,7 +694,7 @@ const Ze = (d) => {
688
694
  }) {
689
695
  te({
690
696
  paymentAcceptorId: i,
691
- paymentGatewayVariant: T,
697
+ paymentGatewayVariant: N,
692
698
  adyen: {
693
699
  ...e ? { details: e } : {},
694
700
  ...o ? { redirect_result: o } : {},
@@ -705,7 +711,7 @@ const Ze = (d) => {
705
711
  paymentAcceptorId: i,
706
712
  extra: { paymentStatus: s.payment_status }
707
713
  })
708
- ), h({
714
+ ), _({
709
715
  code: "AUTHORIZATION_FAILED",
710
716
  message: "Failed getting payment details",
711
717
  error: s
@@ -726,7 +732,7 @@ const Ze = (d) => {
726
732
  cause: s
727
733
  }),
728
734
  s
729
- ), h({
735
+ ), _({
730
736
  code: "PAYMENT_DETAILS_CALL_FAILED",
731
737
  message: "Failed fetching payment details",
732
738
  error: s
@@ -741,7 +747,7 @@ const Ze = (d) => {
741
747
  "INVALID_REDIRECT_RESULT",
742
748
  "Redirect result is set but payment acceptor id is missing",
743
749
  c({ reason: "INVALID_REDIRECT_RESULT" })
744
- ), h({
750
+ ), _({
745
751
  code: "REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",
746
752
  message: "Redirect result is set but payment acceptor id is missing"
747
753
  });
@@ -759,37 +765,37 @@ const Ze = (d) => {
759
765
  F(), _e();
760
766
  }), fe(() => {
761
767
  Y();
762
- }), Ae(
768
+ }), ge(
763
769
  () => n.paymentMethodOptionResponseEntry,
764
770
  (e, t) => {
765
771
  Ne(e, t) || F();
766
772
  },
767
773
  { deep: !0 }
768
- ), (e, t) => (A(), S(ge, null, [
769
- w.value ? (A(), M(Pe, {
774
+ ), (e, t) => (g(), C(Ae, null, [
775
+ w.value ? (g(), M(Pe, {
770
776
  key: 0,
771
777
  variant: d.variant,
772
778
  redirecting: d.redirectsOnSuccess
773
- }, null, 8, ["variant", "redirecting"])) : P.value ? (A(), M(ve, {
779
+ }, null, 8, ["variant", "redirecting"])) : P.value ? (g(), M(ve, {
774
780
  key: 1,
775
781
  error: P.value
776
- }, null, 8, ["error"])) : k("", !0),
777
- B.value ? (A(), S("div", {
782
+ }, null, 8, ["error"])) : D("", !0),
783
+ B.value ? (g(), C("div", {
778
784
  key: 2,
779
785
  ref_key: "dropInContainerRef",
780
786
  ref: p
781
- }, null, 512)) : k("", !0),
782
- f.value ? (A(), M(Ie, {
787
+ }, null, 512)) : D("", !0),
788
+ f.value ? (g(), M(Ie, {
783
789
  key: 3,
784
790
  to: f.value
785
791
  }, [
786
792
  Te("div", {
787
793
  ref_key: "sepaNoticeRef",
788
- ref: L
794
+ ref: R
789
795
  }, [
790
- C(Ge, { "billing-entity-name": d.billingEntityName }, null, 8, ["billing-entity-name"])
796
+ L(Ge, { "billing-entity-name": d.billingEntityName }, null, 8, ["billing-entity-name"])
791
797
  ], 512)
792
- ], 8, ["to"])) : k("", !0)
798
+ ], 8, ["to"])) : D("", !0)
793
799
  ], 64));
794
800
  }
795
801
  });
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as D, ref as g, onMounted as L, onBeforeUnmount as M, watch as B, openBlock as v, createElementBlock as Y, computed as h, createBlock as N, unref as G, createCommentVNode as $ } from "vue";
2
2
  import { a as W } from "./useService-Bh47bllz.mjs";
3
3
  import { t as V, d as Q, P as X } from "./adyen-CvsH5fok.mjs";
4
- import { _ as q, a as J } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs";
5
- import { c as ee } from "./payments-BYZLQTJ-.mjs";
6
- import { c as te } from "./paymentMethods-By1SebnO.mjs";
4
+ import { _ as q, a as J } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-UmKgVvdj.mjs";
5
+ import { c as ee } from "./payments-C0-Hq2a4.mjs";
6
+ import { c as te } from "./paymentMethods-DEKp_4QM.mjs";
7
7
  import { g as b } from "./url-TNRgVI8A.mjs";
8
- import { b as re } from "./customElements-DT1YyL4O.mjs";
8
+ import { b as re } from "./customElements-q_i9y0Ph.mjs";
9
9
  import { c as ne, a as ae } from "./paymentFailure-Bh60UhxA.mjs";
10
10
  const F = "https://js.stripe.com/dahlia/stripe.js", oe = `<!DOCTYPE html>
11
11
  <html>
@@ -1,4 +1,4 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),K=require("./useService-H7BjLg8P.js"),O=require("./adyen-Druit6gz.js"),P=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js"),j=require("./payments-Dnjg9Se4.js"),H=require("./paymentMethods-Bwym8l9a.js"),v=require("./url-vloPOiXd.js"),z=require("./customElements-CSzbVZIH.js"),N=require("./paymentFailure-Cki8c5BX.js"),D="https://js.stripe.com/dahlia/stripe.js",q=`<!DOCTYPE html>
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),K=require("./useService-H7BjLg8P.js"),O=require("./adyen-Druit6gz.js"),P=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-nAuhIopc.js"),j=require("./payments-DBvregE8.js"),H=require("./paymentMethods-CZGP6_4W.js"),v=require("./url-vloPOiXd.js"),z=require("./customElements-hH6pju3X.js"),N=require("./paymentFailure-Cki8c5BX.js"),D="https://js.stripe.com/dahlia/stripe.js",q=`<!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="UTF-8">