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

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 (193) hide show
  1. package/README.md +41 -0
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B70SyWOB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs} +6 -6
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jXClPW91.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js} +1 -1
  4. package/dist/{Avatar.vue.es-2E3laNRb.mjs → Avatar.vue.es-DzjFvLuK.mjs} +1 -1
  5. package/dist/{Avatar.vue.es-DdJreyr_.js → Avatar.vue.es-nr8srGuK.js} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-D5EoBLhj.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs} +4 -4
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-ConpyC8n.js → BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js} +1 -1
  8. package/dist/{Button.vue.es-BJEy-e9C.mjs → Button.vue.es-PbJFK8z7.mjs} +1 -1
  9. package/dist/{Button.vue.es-CJNxYacb.js → Button.vue.es-TCF-bvDF.js} +1 -1
  10. package/dist/Checkout.entry.ce-D8O4qJ24.js +2 -0
  11. package/dist/Checkout.entry.ce-DHFx5Vnb.mjs +3900 -0
  12. package/dist/{Chip.vue.es-DLQ4QEPo.js → Chip.vue.es-CAoisngJ.js} +1 -1
  13. package/dist/{Chip.vue.es-DGbc4L_D.mjs → Chip.vue.es-DpcOM3Ai.mjs} +2 -2
  14. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +38 -0
  15. package/dist/ContentWithAsideLayout-RSdKXqAf.js +1 -0
  16. package/dist/{ContextMenu.vue.es-Bd2kmeVq.js → ContextMenu.vue.es-kzZ3JJHG.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-DL1M7pcr.mjs → ContextMenu.vue.es-tAuFp-6i.mjs} +4 -4
  18. package/dist/{CustomerBillingInformation.vue.es-CE94ASC3.mjs → CustomerBillingInformation.vue.es-BQSl9q6W.mjs} +2 -2
  19. package/dist/{CustomerBillingInformation.vue.es-hiFzB43w.js → CustomerBillingInformation.vue.es-Nac6HgLo.js} +1 -1
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BE21tqgW.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js} +1 -1
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bhih7rPR.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs} +5 -5
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C5zc9n64.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs} +14 -14
  23. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D018AmFA.js → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js} +1 -1
  24. package/dist/{DividerText.vue.es-CFZUQ62L.mjs → DividerText.vue.es-CSE7a-T0.mjs} +1 -1
  25. package/dist/{DividerText.vue.es-CvCgHHXN.js → DividerText.vue.es-LJ2kZakb.js} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-YcaBJDzx.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs} +4 -4
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-jTJGN4jb.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js} +1 -1
  28. package/dist/{ErrorNotification.vue.es-DI2B7WiR.js → ErrorNotification.vue.es-BF6swP7o.js} +1 -1
  29. package/dist/{ErrorNotification.vue.es-B3mvv79S.mjs → ErrorNotification.vue.es-CVUuIt8Z.mjs} +1 -1
  30. package/dist/{IconButton.vue.es-Dp8h4YOx.js → IconButton.vue.es-CB1lIPao.js} +1 -1
  31. package/dist/{IconButton.vue.es-GLcGhoHC.mjs → IconButton.vue.es-DGflbWFk.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-CzuPQtOX.mjs → IconTitle.vue.es-BsdjyGlQ.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-DN9r6nfK.js → IconTitle.vue.es-CMO8EyQl.js} +1 -1
  34. package/dist/{Input.vue.es-5Cq8a7oH.mjs → Input.vue.es-BFbiFXsU.mjs} +2 -2
  35. package/dist/{Input.vue.es-DM81HeVv.js → Input.vue.es-CREdT4nB.js} +1 -1
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-w8w52LcV.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js} +1 -1
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D75LSIL8.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-dRLsZPNh.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs} +2 -2
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DB5h39LA.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js} +1 -1
  40. package/dist/{InvoiceSummary.vue.es-Qy99kLZs.js → InvoiceSummary.vue.es-BOnvORpf.js} +1 -1
  41. package/dist/{InvoiceSummary.vue.es-DbtqsTuP.mjs → InvoiceSummary.vue.es-JtOIQ6SJ.mjs} +7 -7
  42. package/dist/{Modal.vue.es-DgLl6XBV.js → Modal.vue.es-BbdtdxsO.js} +1 -1
  43. package/dist/{Modal.vue.es-Z2DWAN2u.mjs → Modal.vue.es-jT61xK_A.mjs} +5 -5
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBm51C7c.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DYuFPIqs.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs} +4 -4
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CcdhYTB1.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs} +3 -3
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BNZ9-GW1.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js} +1 -1
  48. package/dist/{PaymentHistoryBlock-DS1j-8m-.js → PaymentHistoryBlock-Dw2wOiAI.js} +1 -1
  49. package/dist/{PaymentHistoryBlock-CjP_514k.mjs → PaymentHistoryBlock-quvnCSFV.mjs} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dr2jtJhK.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs} +4 -4
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CSTfMB8U.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js} +1 -1
  52. package/dist/{PaymentIntegrationForm-CpOZUf-W.mjs → PaymentIntegrationForm-CQjUZi22.mjs} +1 -1
  53. package/dist/{PaymentIntegrationForm-80b19Lkq.js → PaymentIntegrationForm-D1oJREmH.js} +1 -1
  54. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js +1 -0
  55. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BgztoQH5.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs} +43 -40
  56. package/dist/PaymentIntegrationFormAdyen-BQXXwpUK.js +98 -0
  57. package/dist/{PaymentIntegrationFormAdyen-BQcgDcik.mjs → PaymentIntegrationFormAdyen-CyZk9ofV.mjs} +307 -207
  58. package/dist/{PaymentIntegrationFormStripe-CMwLqOe6.js → PaymentIntegrationFormStripe-Bs4F7oK_.js} +2 -2
  59. package/dist/{PaymentIntegrationFormStripe-Dx1H3fZ2.mjs → PaymentIntegrationFormStripe-D-GaLHwc.mjs} +22 -21
  60. package/dist/{PaymentMethod.vue.es-EhRCfeax.mjs → PaymentMethod.vue.es-C0j580g7.mjs} +3 -3
  61. package/dist/{PaymentMethod.vue.es-pLCCzVxN.js → PaymentMethod.vue.es-CXV_ThBY.js} +1 -1
  62. package/dist/{PaymentMethodForm-D3OY8zK5.mjs → PaymentMethodForm-Bf2Ps6eV.mjs} +1 -1
  63. package/dist/{PaymentMethodForm-Bw2e1tXo.js → PaymentMethodForm-CDV5LR8i.js} +1 -1
  64. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-vGprVPpn.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs} +6 -6
  65. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DHXw6qD0.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js} +1 -1
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-D7b0HhDc.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs} +6 -6
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CdT1YyeU.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js} +1 -1
  68. package/dist/{PlanCustomizationEditor-RC8kj2rC.js → PlanCustomizationEditor-0kEXoOcM.js} +1 -1
  69. package/dist/{PlanCustomizationEditor-BQqkgmzL.mjs → PlanCustomizationEditor-Dv69xPbX.mjs} +9 -9
  70. package/dist/{PricingGroupRangeInput.vue.es-ClkE98ML.js → PricingGroupRangeInput.vue.es-BchXhunH.js} +1 -1
  71. package/dist/{PricingGroupRangeInput.vue.es-DNsiUZyT.mjs → PricingGroupRangeInput.vue.es-CP7-dmxS.mjs} +4 -4
  72. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CURXAgMT.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs} +5 -5
  73. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-BJfQLRcS.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js} +1 -1
  74. package/dist/{RadioGroupExtended.vue.es-Dk9xdj76.js → RadioGroupExtended.vue.es-Cf5R1P9a.js} +1 -1
  75. package/dist/{RadioGroupExtended.vue.es-vUqn2ZUP.mjs → RadioGroupExtended.vue.es-_QMReyZ8.mjs} +2 -2
  76. package/dist/{Section.vue.es-Cybk1Nb8.js → Section.vue.es-CBZx5x53.js} +1 -1
  77. package/dist/{Section.vue.es-C2_topx4.mjs → Section.vue.es-KRsHeFoT.mjs} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-C9q_qwjt.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs} +6 -6
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DIgVzXLg.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js} +1 -1
  80. package/dist/{SubscriptionSchedules-CNTg_oRy.js → SubscriptionSchedules-1ikoGncQ.js} +1 -1
  81. package/dist/{SubscriptionSchedules-BlCU_xc5.mjs → SubscriptionSchedules-B6b6xf-E.mjs} +1 -1
  82. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-6LbR_Vni.js → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js} +1 -1
  83. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cf3Dy8Yn.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs} +11 -11
  84. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-BijBAdqp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js} +1 -1
  85. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-CjzjchsS.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs} +2 -2
  86. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Dz4s3CH_.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js} +1 -1
  87. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CxdrAanb.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs} +6 -6
  88. package/dist/{TooltipParagraph.vue.es-OX6bAWP9.js → TooltipParagraph.vue.es-7IQdU3Tf.js} +1 -1
  89. package/dist/{TooltipParagraph.vue.es-Fu9Od3Vr.mjs → TooltipParagraph.vue.es-nGFfHF1A.mjs} +1 -1
  90. package/dist/{TrialChip.vue.es-CbjdkR4i.js → TrialChip.vue.es-DhC5Bpmy.js} +1 -1
  91. package/dist/{TrialChip.vue.es-c7tZOIW3.mjs → TrialChip.vue.es-eKgO6an3.mjs} +2 -2
  92. package/dist/{cn.es-C8Ogac5T.mjs → cn.es-BD7Afj5Q.mjs} +2 -2
  93. package/dist/{cn.es-lC4_Xd0R.js → cn.es-BLE3T5Rx.js} +1 -1
  94. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  95. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  96. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  97. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
  98. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  99. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  100. package/dist/components/Invoice/Invoice.cjs +1 -1
  101. package/dist/components/Invoice/Invoice.mjs +9 -9
  102. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  103. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
  104. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  105. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  106. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  107. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  108. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  109. package/dist/components/PaymentHistory/PaymentHistory.mjs +3 -3
  110. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  111. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  112. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  113. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  114. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  115. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  116. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  117. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  118. package/dist/{customElements-BYIdPSzQ.js → customElements-CSzbVZIH.js} +14 -14
  119. package/dist/{customElements-Df6dGrN-.mjs → customElements-DT1YyL4O.mjs} +637 -601
  120. package/dist/{customer-DoLHZuMG.js → customer-CJonIvSm.js} +1 -1
  121. package/dist/{customer-DmsKYpVi.mjs → customer-Cq4fF__H.mjs} +1 -1
  122. package/dist/{de-DE-Bgm9bnmp.mjs → de-DE-CyvjSD9b.mjs} +7 -2
  123. package/dist/{de-DE-CAL9Mji2.js → de-DE-DXsDvO5y.js} +1 -1
  124. package/dist/{en-US-_xe5H4TQ.js → en-US-DHdI11k9.js} +1 -1
  125. package/dist/{en-US-E86eRIxh.mjs → en-US-xQrWj8qI.mjs} +5 -0
  126. package/dist/index.cjs +1 -1
  127. package/dist/index.mjs +1 -1
  128. package/dist/{invoices-CrO6p4Ms.mjs → invoices-CVZOfEOY.mjs} +1 -1
  129. package/dist/{invoices-mw87cNTS.js → invoices-EamWI_jz.js} +1 -1
  130. package/dist/{it-IT-co1BfV5s.mjs → it-IT-C09oObBM.mjs} +5 -0
  131. package/dist/{it-IT-QFQ1Ajbb.js → it-IT-CcRIzP1A.js} +1 -1
  132. package/dist/{nl-NL-CJXJC1bx.js → nl-NL-5PrgQl8q.js} +1 -1
  133. package/dist/{nl-NL-Drv2E66B.mjs → nl-NL-BhNND_yi.mjs} +5 -0
  134. package/dist/{paymentMethods-CQdhZwq4.js → paymentMethods-Bwym8l9a.js} +1 -1
  135. package/dist/{paymentMethods-BNQbW_f1.mjs → paymentMethods-By1SebnO.mjs} +1 -1
  136. package/dist/{payments-VS_N2xpJ.mjs → payments-BYZLQTJ-.mjs} +1 -1
  137. package/dist/{payments-KTjVHqOa.js → payments-Dnjg9Se4.js} +1 -1
  138. package/dist/screens/Checkout/Checkout.cjs +1 -1
  139. package/dist/screens/Checkout/Checkout.mjs +2 -2
  140. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  141. package/dist/screens/CustomerOverview/CustomerOverview.mjs +11 -11
  142. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  143. package/dist/screens/PayInvoice/PayInvoice.mjs +131 -127
  144. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  145. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
  146. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  147. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +19 -19
  148. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  149. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +19 -19
  150. package/dist/{subscriptions-Dugd-oZ1.js → subscriptions-BKER9RUc.js} +1 -1
  151. package/dist/{subscriptions-U4xg2CO1.mjs → subscriptions-Gj3KgCZz.mjs} +1 -1
  152. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +8 -0
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +4 -2
  154. package/dist/types/services/portals.types.d.ts +2 -0
  155. package/dist/types/services/requests.types.d.ts +2 -0
  156. package/dist/{url-DwiuKYpu.mjs → url-TNRgVI8A.mjs} +3 -2
  157. package/dist/url-vloPOiXd.js +1 -0
  158. package/dist/{useActionDispatchProvider-CTyDGRX8.js → useActionDispatchProvider-DDHrhy3i.js} +1 -1
  159. package/dist/{useActionDispatchProvider-DyQbRCxR.mjs → useActionDispatchProvider-MjTckd4f.mjs} +1 -1
  160. package/dist/{useCustomer-BXI5Vmit.js → useCustomer-BW0DBEJh.js} +1 -1
  161. package/dist/{useCustomer-dcmU1539.mjs → useCustomer-CxnF7r8Z.mjs} +1 -1
  162. package/dist/{useCustomerFormLabels-Ct6vD_b8.js → useCustomerFormLabels-C773h3J0.js} +1 -1
  163. package/dist/{useCustomerFormLabels-BC1WfqWo.mjs → useCustomerFormLabels-zPc8QrwJ.mjs} +5 -5
  164. package/dist/{useExperimentalFeature-9-p9_nP6.js → useExperimentalFeature-9teNYGuP.js} +1 -1
  165. package/dist/{useExperimentalFeature-4Y-ppDr7.mjs → useExperimentalFeature-NsSDg-e3.mjs} +1 -1
  166. package/dist/{useInvoiceData-CGvtl7Ai.js → useInvoiceData-DvV2AsgC.js} +1 -1
  167. package/dist/{useInvoiceData-B2Z9aD2w.mjs → useInvoiceData-GQwk6fl4.mjs} +2 -2
  168. package/dist/{useInvoicesList-DJPznhig.mjs → useInvoicesList-CGmFSQSg.mjs} +7 -7
  169. package/dist/{useInvoicesList-Ba0GO8p-.js → useInvoicesList-Xnth6s6U.js} +1 -1
  170. package/dist/{useLoadInitialData-CWyI3_RR.mjs → useLoadInitialData-BvvaWeAe.mjs} +1 -1
  171. package/dist/{useLoadInitialData-BO9ZsSsF.js → useLoadInitialData-Cjkc70u-.js} +1 -1
  172. package/dist/{usePaymentMethodAvailability-DqIvkjLF.mjs → usePaymentMethodAvailability-BWaaj3N3.mjs} +4 -4
  173. package/dist/{usePaymentMethodAvailability-bkmDrPXY.js → usePaymentMethodAvailability-DKyscbom.js} +1 -1
  174. package/dist/{usePaymentMethodOptions-BPBVGNDg.js → usePaymentMethodOptions-DuXKS36F.js} +1 -1
  175. package/dist/{usePaymentMethodOptions-MSEp39xQ.mjs → usePaymentMethodOptions-l-wVAmIW.mjs} +1 -1
  176. package/dist/{usePaymentMethods-BAOtOJZD.js → usePaymentMethods-BDFVB-kK.js} +1 -1
  177. package/dist/{usePaymentMethods-U7gnZ0F5.mjs → usePaymentMethods-DvQVnsSV.mjs} +1 -1
  178. package/dist/{usePayments-G-HpKpK8.js → usePayments-CIJocDhR.js} +1 -1
  179. package/dist/{usePayments-Dq2V6bTV.mjs → usePayments-D_dyuf6S.mjs} +6 -6
  180. package/dist/{usePortal-BplmMkBG.js → usePortal-BU4ibdWq.js} +1 -1
  181. package/dist/{usePortal-CMHV-ShD.mjs → usePortal-Br5lYuPT.mjs} +1 -1
  182. package/dist/{useSubscription-V53WsZwQ.mjs → useSubscription-CqRae2I9.mjs} +1 -1
  183. package/dist/{useSubscription-CvB8ROBt.js → useSubscription-DRBUt9H5.js} +1 -1
  184. package/dist/{useTimePeriod.es-D31Zl1MJ.mjs → useTimePeriod.es-BxIGnCAP.mjs} +1 -1
  185. package/dist/{useTimePeriod.es-CtCTu9cz.js → useTimePeriod.es-DDos3-EH.js} +1 -1
  186. package/package.json +1 -1
  187. package/dist/Checkout.entry.ce-BfLlnQyb.js +0 -1
  188. package/dist/Checkout.entry.ce-CQkrWscC.mjs +0 -3769
  189. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +0 -32
  190. package/dist/ContentWithAsideLayout-C6yMIVJF.js +0 -1
  191. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DKXhthkA.js +0 -1
  192. package/dist/PaymentIntegrationFormAdyen-DElXsJ96.js +0 -98
  193. package/dist/url-BNKStNY9.js +0 -1
@@ -1 +1 @@
1
- const e=require("vue"),M=require("./index.es-BclokHQX.js"),L=require("./ContextMenu.vue.es-Bd2kmeVq.js"),k=require("./Button.vue.es-CJNxYacb.js"),C=require("./slots.es-T9ZJRGtG.js"),X=require("./Avatar.vue.es-DdJreyr_.js"),q=require("./customElements-BYIdPSzQ.js"),Y=require("./IconButton.vue.es-Dp8h4YOx.js"),J=require("./floating-ui.vue.es-Bly3DGWm.js"),w=60,B="z-index-tracker",Q=()=>({defaultZIndex:w,getZIndex:()=>{const o=document.querySelectorAll(`.${B}`);let i=w;return(o??[]).forEach(s=>{const r=window.getComputedStyle(s).getPropertyValue("z-index");r&&+r>=i&&(i=+r+1)}),i},getTopZIndex:()=>{const o=document.querySelectorAll(`.${B}`);let i=w;return(o??[]).forEach(s=>{const r=window.getComputedStyle(s).getPropertyValue("z-index");r&&+r>i&&(i=+r)}),i},trackingClass:B}),W=e.defineComponent({__name:"Backdrop",props:{blurred:{type:Boolean,default:!1},color:{default:"gray"},zIndex:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fixed inset-0",{"bg-white/90 backdrop-blur":t.blurred&&t.color==="white","bg-white/80":!t.blurred&&t.color==="white","bg-gray-200/90 backdrop-blur":t.blurred&&t.color==="gray","bg-gray-200/80":!t.blurred&&t.color==="gray"}]),style:e.normalizeStyle({zIndex:t.zIndex})},[e.renderSlot(n.$slots,"default")],6))}}),_={class:"grow overflow-hidden text-ellipsis"},ee=e.defineComponent({__name:"Title",props:{title:{},subTitle:{},variant:{default:"default"},suffix:{},size:{default:"md"},avatar:{type:Boolean,default:!1},uppercase:{type:Boolean,default:!0},resourceId:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex text-left",{"gap-4":["md","lg"].includes(t.size),"gap-3":t.size==="sm","gap-2":t.size==="xs"&&t.variant!=="transparent","gap-1":t.size==="xs"&&t.variant==="transparent"}])},[t.avatar&&t.title?(e.openBlock(),e.createBlock(e.unref(X._sfc_main),{key:0,initials:t.title.slice(0,1),"color-hash":t.title,size:["sm","xs"].includes(t.size)?"lg":"xl"},null,8,["initials","color-hash","size"])):e.createCommentVNode("",!0),e.createElementVNode("div",_,[t.title||n.$slots.default?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"text-3xl":t.size==="lg","text-2xl":t.size==="md","text-base":t.size==="sm","text-xs text-subtle":t.size==="xs","text-default":t.size!=="xs",uppercase:t.size==="xs"&&t.uppercase,"font-general-sans":["md","lg"].includes(t.size)},"flex items-center font-semibold"])},[e.renderSlot(n.$slots,"prefix"),e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),e.renderSlot(n.$slots,"suffix",{},()=>[e.createTextVNode(e.toDisplayString(t.suffix),1)])],2)):e.createCommentVNode("",!0),t.subTitle||n.$slots.subTitle&&!e.unref(C.isVnodeEmpty)(n.$slots.subTitle({}))?(e.openBlock(),e.createBlock(e.unref(q._sfc_main),{key:1,variant:"body-sm",color:"secondary","no-spacing":"",class:"mt-1"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"subTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.subTitle),1)])]),_:3})):e.createCommentVNode("",!0)])],2))}}),te=["aria-label","aria-labelledby","aria-busy"],le={key:0,role:"status",class:"absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center justify-center bg-white/80"},oe={class:"sr-only"},ae={key:1,"data-testid":"modal-top-bar",class:"flex justify-end border-b border-gray-200 py-2 pr-2"},ne={"aria-hidden":"true",class:"sticky top-0 z-10 -mx-6 h-0"},se={"data-testid":"modal-body-content",class:"py-6"},re=["id"],ie={"aria-hidden":"true",class:"sticky bottom-0 z-10 -mx-6 h-0"},de={key:0},ce={key:3,"data-testid":"modal-footer",class:"border-t border-gray-200 px-6 py-3 [&_button]:w-full"},ue={class:"flex flex-col gap-2"},fe=e.defineComponent({__name:"Modal",props:{children:{default:()=>[]},size:{default:"2xl"},noCloseButton:{type:Boolean,default:!1},noClickAway:{type:Boolean,default:!1},noBackdropClose:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},blurred:{type:Boolean,default:!1},title:{},subTitle:{},confirmButtonText:{},cancelButtonText:{},overflowVisible:{type:Boolean},isLoading:{type:Boolean,default:!1},isEmbedded:{type:Boolean,default:!1},ariaLabel:{},ariaLabelledby:{}},emits:["confirm","close"],setup(t,{emit:n}){const o=t,i=n,s=e.useSlots(),{$t:r}=q.useIntl(),z=e.computed(()=>{var l,a;return!!((l=s.body)!=null&&l.call(s))&&!C.isVnodeEmpty((a=s.body)==null?void 0:a.call(s,{}))}),u=e.computed(()=>{var l,a;return!!o.title||!!((l=s.header)!=null&&l.call(s))&&!C.isVnodeEmpty((a=s.header)==null?void 0:a.call(s,{}))}),D=e.computed(()=>z.value||u.value),{getZIndex:A,getTopZIndex:Z,trackingClass:R,defaultZIndex:E}=Q(),m=e.ref(),c=e.ref(),f=e.ref(E),p=e.useId(),V=e.computed(()=>{if(o.ariaLabelledby)return o.ariaLabelledby;if(!o.ariaLabel&&!o.title&&u.value)return p}),F=e.computed(()=>{if(!V.value)return o.ariaLabel||o.title||void 0}),S=e.ref(!1),N=e.ref(!1),K=e.computed(()=>o.blurred||o.isEmbedded),O={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},U=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[contenteditable="true"]','[tabindex]:not([tabindex^="-"])'].join(","),y=e.ref(null),T=()=>c.value?Array.from(c.value.querySelectorAll(U)).filter(l=>!l.closest('[aria-hidden="true"]')):[],j=()=>{const l=c.value;if(!l)return;(l.querySelector("[autofocus]")??T()[0]??l).focus()},I=()=>o.showModal&&f.value>=Z(),b=()=>i("close"),H=()=>{o.noBackdropClose||b()},G=()=>{if(!m.value)return;const{scrollTop:l,scrollHeight:a,clientHeight:d}=m.value;S.value=l>0,N.value=l+d<a-1};M.onKeyStroke("Escape",()=>{o.noClickAway||!I()||b()}),M.onKeyStroke("Tab",l=>{const a=c.value;if(!a||!I())return;const d=T();if(!d.length){l.preventDefault(),a.focus();return}const v=d[0],h=d[d.length-1],g=document.activeElement;if(!a.contains(g)){l.preventDefault(),(l.shiftKey?h:v).focus();return}l.shiftKey&&g===v?(l.preventDefault(),h.focus()):!l.shiftKey&&g===h&&(l.preventDefault(),v.focus())});const x=l=>{const a=document.querySelector("body");a&&(a.style.overflowY=l)},$=async()=>{f.value=A(),x("hidden"),y.value=document.activeElement,await e.nextTick(),j()},P=()=>{var l;f.value=E,x("unset"),(l=y.value)==null||l.focus(),y.value=null};return e.watch(()=>o.showModal,l=>l?$():P()),e.onMounted(()=>{o.showModal&&$()}),e.onBeforeUnmount(()=>{x("unset")}),(l,a)=>(e.openBlock(),e.createBlock(e.unref(L._sfc_main),{to:"modal"},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"modal",appear:""},{default:e.withCtx(()=>[t.showModal?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["h-modal z-60 fixed left-0 right-0 top-0 flex w-full items-center justify-center overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",e.unref(R)]),style:e.normalizeStyle({zIndex:f.value})},[e.createVNode(e.unref(W),{"aria-hidden":"true",blurred:K.value,color:o.isEmbedded?"white":void 0,onMousedown:e.withModifiers(H,["self"])},null,8,["blurred","color"]),e.createElementVNode("div",{class:e.normalizeClass(["modal-panel relative h-full w-full p-4 md:h-auto",`${O[t.size]}`])},[e.createElementVNode("div",{ref_key:"dialogElementRef",ref:c,role:"dialog","aria-modal":"true",tabindex:"-1","aria-label":F.value,"aria-labelledby":V.value,"aria-busy":t.isLoading,class:"relative flex max-h-[min(95vh,920px)] flex-col rounded-xl bg-white shadow-lg focus:outline-none"},[t.isLoading?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(k._sfc_main$2,{size:"6","aria-hidden":"true"}),e.createElementVNode("span",oe,e.toDisplayString(e.unref(r)({defaultMessage:"Loading",id:"h+GlcT",description:"Modal loading state"})),1)])):e.createCommentVNode("",!0),t.noCloseButton?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(e.unref(Y._sfc_main),{icon:"close",size:"xs",intent:"secondary","data-testid":"close-button","aria-label":e.unref(r)({defaultMessage:"Close",id:"U+ONwt",description:"Modal close button"}),onClick:b},null,8,["aria-label"])])),D.value?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"contentElementRef",ref:m,class:e.normalizeClass(["overflow-auto px-6",{"overflow-visible":t.overflowVisible}]),onScroll:G},[e.createElementVNode("div",ne,[e.createElementVNode("div",{class:e.normalizeClass(["transition-duration-700 pointer-events-none h-6 w-full bg-gradient-to-b from-black/[.06] to-transparent transition-opacity",S.value?"opacity-100":"opacity-0"])},null,2)]),e.createElementVNode("div",se,[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(p)},[e.renderSlot(l.$slots,"header",{},()=>[t.title?(e.openBlock(),e.createBlock(ee,{key:0,title:t.title,"sub-title":t.subTitle,size:"md"},null,8,["title","sub-title"])):e.createCommentVNode("",!0)],!0)],8,re)):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass({"mt-4":u.value})},[e.renderSlot(l.$slots,"body",{},void 0,!0)],2)):e.createCommentVNode("",!0)]),e.createElementVNode("div",ie,[e.createElementVNode("div",{class:e.normalizeClass(["transition-duration-700 pointer-events-none h-6 w-full -translate-y-6 bg-gradient-to-t from-black/[.06] to-transparent transition-opacity",N.value?"opacity-100":"opacity-0"])},null,2)])],34)):e.createCommentVNode("",!0),e.createVNode(L.Fade,null,{default:e.withCtx(()=>[l.$slots.error?(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(l.$slots,"error",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:3}),l.$slots.footer||t.confirmButtonText||t.cancelButtonText?(e.openBlock(),e.createElementBlock("div",ce,[e.renderSlot(l.$slots,"footer",{},()=>[e.createElementVNode("div",ue,[e.createVNode(e.unref(k._sfc_main),{size:"md",autofocus:"",loading:t.isLoading,onClick:a[0]||(a[0]=d=>l.$emit("confirm"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmButtonText||e.unref(r)({defaultMessage:"Confirm",id:"N2IrpM",description:"Modal comfirm button"})),1)]),_:1},8,["loading"]),e.createVNode(e.unref(k._sfc_main),{size:"md",intent:"secondary",onClick:a[1]||(a[1]=d=>l.$emit("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText||e.unref(r)({defaultMessage:"Cancel",id:"47FYwb",description:"Modal cancel button"})),1)]),_:1})])],!0)])):e.createCommentVNode("",!0)],8,te)],2)],6)):e.createCommentVNode("",!0)]),_:3})]),_:3}))}}),me=J._export_sfc(fe,[["__scopeId","data-v-f0b441a8"]]);exports.Modal=me;
1
+ const e=require("vue"),M=require("./index.es-BclokHQX.js"),L=require("./ContextMenu.vue.es-kzZ3JJHG.js"),k=require("./Button.vue.es-TCF-bvDF.js"),C=require("./slots.es-T9ZJRGtG.js"),X=require("./Avatar.vue.es-nr8srGuK.js"),q=require("./customElements-CSzbVZIH.js"),Y=require("./IconButton.vue.es-CB1lIPao.js"),J=require("./floating-ui.vue.es-Bly3DGWm.js"),w=60,B="z-index-tracker",Q=()=>({defaultZIndex:w,getZIndex:()=>{const o=document.querySelectorAll(`.${B}`);let i=w;return(o??[]).forEach(s=>{const r=window.getComputedStyle(s).getPropertyValue("z-index");r&&+r>=i&&(i=+r+1)}),i},getTopZIndex:()=>{const o=document.querySelectorAll(`.${B}`);let i=w;return(o??[]).forEach(s=>{const r=window.getComputedStyle(s).getPropertyValue("z-index");r&&+r>i&&(i=+r)}),i},trackingClass:B}),W=e.defineComponent({__name:"Backdrop",props:{blurred:{type:Boolean,default:!1},color:{default:"gray"},zIndex:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fixed inset-0",{"bg-white/90 backdrop-blur":t.blurred&&t.color==="white","bg-white/80":!t.blurred&&t.color==="white","bg-gray-200/90 backdrop-blur":t.blurred&&t.color==="gray","bg-gray-200/80":!t.blurred&&t.color==="gray"}]),style:e.normalizeStyle({zIndex:t.zIndex})},[e.renderSlot(n.$slots,"default")],6))}}),_={class:"grow overflow-hidden text-ellipsis"},ee=e.defineComponent({__name:"Title",props:{title:{},subTitle:{},variant:{default:"default"},suffix:{},size:{default:"md"},avatar:{type:Boolean,default:!1},uppercase:{type:Boolean,default:!0},resourceId:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex text-left",{"gap-4":["md","lg"].includes(t.size),"gap-3":t.size==="sm","gap-2":t.size==="xs"&&t.variant!=="transparent","gap-1":t.size==="xs"&&t.variant==="transparent"}])},[t.avatar&&t.title?(e.openBlock(),e.createBlock(e.unref(X._sfc_main),{key:0,initials:t.title.slice(0,1),"color-hash":t.title,size:["sm","xs"].includes(t.size)?"lg":"xl"},null,8,["initials","color-hash","size"])):e.createCommentVNode("",!0),e.createElementVNode("div",_,[t.title||n.$slots.default?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"text-3xl":t.size==="lg","text-2xl":t.size==="md","text-base":t.size==="sm","text-xs text-subtle":t.size==="xs","text-default":t.size!=="xs",uppercase:t.size==="xs"&&t.uppercase,"font-general-sans":["md","lg"].includes(t.size)},"flex items-center font-semibold"])},[e.renderSlot(n.$slots,"prefix"),e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),e.renderSlot(n.$slots,"suffix",{},()=>[e.createTextVNode(e.toDisplayString(t.suffix),1)])],2)):e.createCommentVNode("",!0),t.subTitle||n.$slots.subTitle&&!e.unref(C.isVnodeEmpty)(n.$slots.subTitle({}))?(e.openBlock(),e.createBlock(e.unref(q._sfc_main),{key:1,variant:"body-sm",color:"secondary","no-spacing":"",class:"mt-1"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"subTitle",{},()=>[e.createTextVNode(e.toDisplayString(t.subTitle),1)])]),_:3})):e.createCommentVNode("",!0)])],2))}}),te=["aria-label","aria-labelledby","aria-busy"],le={key:0,role:"status",class:"absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center justify-center bg-white/80"},oe={class:"sr-only"},ae={key:1,"data-testid":"modal-top-bar",class:"flex justify-end border-b border-gray-200 py-2 pr-2"},ne={"aria-hidden":"true",class:"sticky top-0 z-10 -mx-6 h-0"},se={"data-testid":"modal-body-content",class:"py-6"},re=["id"],ie={"aria-hidden":"true",class:"sticky bottom-0 z-10 -mx-6 h-0"},de={key:0},ce={key:3,"data-testid":"modal-footer",class:"border-t border-gray-200 px-6 py-3 [&_button]:w-full"},ue={class:"flex flex-col gap-2"},fe=e.defineComponent({__name:"Modal",props:{children:{default:()=>[]},size:{default:"2xl"},noCloseButton:{type:Boolean,default:!1},noClickAway:{type:Boolean,default:!1},noBackdropClose:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1},blurred:{type:Boolean,default:!1},title:{},subTitle:{},confirmButtonText:{},cancelButtonText:{},overflowVisible:{type:Boolean},isLoading:{type:Boolean,default:!1},isEmbedded:{type:Boolean,default:!1},ariaLabel:{},ariaLabelledby:{}},emits:["confirm","close"],setup(t,{emit:n}){const o=t,i=n,s=e.useSlots(),{$t:r}=q.useIntl(),z=e.computed(()=>{var l,a;return!!((l=s.body)!=null&&l.call(s))&&!C.isVnodeEmpty((a=s.body)==null?void 0:a.call(s,{}))}),u=e.computed(()=>{var l,a;return!!o.title||!!((l=s.header)!=null&&l.call(s))&&!C.isVnodeEmpty((a=s.header)==null?void 0:a.call(s,{}))}),D=e.computed(()=>z.value||u.value),{getZIndex:A,getTopZIndex:Z,trackingClass:R,defaultZIndex:E}=Q(),m=e.ref(),c=e.ref(),f=e.ref(E),p=e.useId(),V=e.computed(()=>{if(o.ariaLabelledby)return o.ariaLabelledby;if(!o.ariaLabel&&!o.title&&u.value)return p}),F=e.computed(()=>{if(!V.value)return o.ariaLabel||o.title||void 0}),S=e.ref(!1),N=e.ref(!1),K=e.computed(()=>o.blurred||o.isEmbedded),O={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},U=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[contenteditable="true"]','[tabindex]:not([tabindex^="-"])'].join(","),y=e.ref(null),T=()=>c.value?Array.from(c.value.querySelectorAll(U)).filter(l=>!l.closest('[aria-hidden="true"]')):[],j=()=>{const l=c.value;if(!l)return;(l.querySelector("[autofocus]")??T()[0]??l).focus()},I=()=>o.showModal&&f.value>=Z(),b=()=>i("close"),H=()=>{o.noBackdropClose||b()},G=()=>{if(!m.value)return;const{scrollTop:l,scrollHeight:a,clientHeight:d}=m.value;S.value=l>0,N.value=l+d<a-1};M.onKeyStroke("Escape",()=>{o.noClickAway||!I()||b()}),M.onKeyStroke("Tab",l=>{const a=c.value;if(!a||!I())return;const d=T();if(!d.length){l.preventDefault(),a.focus();return}const v=d[0],h=d[d.length-1],g=document.activeElement;if(!a.contains(g)){l.preventDefault(),(l.shiftKey?h:v).focus();return}l.shiftKey&&g===v?(l.preventDefault(),h.focus()):!l.shiftKey&&g===h&&(l.preventDefault(),v.focus())});const x=l=>{const a=document.querySelector("body");a&&(a.style.overflowY=l)},$=async()=>{f.value=A(),x("hidden"),y.value=document.activeElement,await e.nextTick(),j()},P=()=>{var l;f.value=E,x("unset"),(l=y.value)==null||l.focus(),y.value=null};return e.watch(()=>o.showModal,l=>l?$():P()),e.onMounted(()=>{o.showModal&&$()}),e.onBeforeUnmount(()=>{x("unset")}),(l,a)=>(e.openBlock(),e.createBlock(e.unref(L._sfc_main),{to:"modal"},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"modal",appear:""},{default:e.withCtx(()=>[t.showModal?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["h-modal z-60 fixed left-0 right-0 top-0 flex w-full items-center justify-center overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",e.unref(R)]),style:e.normalizeStyle({zIndex:f.value})},[e.createVNode(e.unref(W),{"aria-hidden":"true",blurred:K.value,color:o.isEmbedded?"white":void 0,onMousedown:e.withModifiers(H,["self"])},null,8,["blurred","color"]),e.createElementVNode("div",{class:e.normalizeClass(["modal-panel relative h-full w-full p-4 md:h-auto",`${O[t.size]}`])},[e.createElementVNode("div",{ref_key:"dialogElementRef",ref:c,role:"dialog","aria-modal":"true",tabindex:"-1","aria-label":F.value,"aria-labelledby":V.value,"aria-busy":t.isLoading,class:"relative flex max-h-[min(95vh,920px)] flex-col rounded-xl bg-white shadow-lg focus:outline-none"},[t.isLoading?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(k._sfc_main$2,{size:"6","aria-hidden":"true"}),e.createElementVNode("span",oe,e.toDisplayString(e.unref(r)({defaultMessage:"Loading",id:"h+GlcT",description:"Modal loading state"})),1)])):e.createCommentVNode("",!0),t.noCloseButton?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(e.unref(Y._sfc_main),{icon:"close",size:"xs",intent:"secondary","data-testid":"close-button","aria-label":e.unref(r)({defaultMessage:"Close",id:"U+ONwt",description:"Modal close button"}),onClick:b},null,8,["aria-label"])])),D.value?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"contentElementRef",ref:m,class:e.normalizeClass(["overflow-auto px-6",{"overflow-visible":t.overflowVisible}]),onScroll:G},[e.createElementVNode("div",ne,[e.createElementVNode("div",{class:e.normalizeClass(["transition-duration-700 pointer-events-none h-6 w-full bg-gradient-to-b from-black/[.06] to-transparent transition-opacity",S.value?"opacity-100":"opacity-0"])},null,2)]),e.createElementVNode("div",se,[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(p)},[e.renderSlot(l.$slots,"header",{},()=>[t.title?(e.openBlock(),e.createBlock(ee,{key:0,title:t.title,"sub-title":t.subTitle,size:"md"},null,8,["title","sub-title"])):e.createCommentVNode("",!0)],!0)],8,re)):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass({"mt-4":u.value})},[e.renderSlot(l.$slots,"body",{},void 0,!0)],2)):e.createCommentVNode("",!0)]),e.createElementVNode("div",ie,[e.createElementVNode("div",{class:e.normalizeClass(["transition-duration-700 pointer-events-none h-6 w-full -translate-y-6 bg-gradient-to-t from-black/[.06] to-transparent transition-opacity",N.value?"opacity-100":"opacity-0"])},null,2)])],34)):e.createCommentVNode("",!0),e.createVNode(L.Fade,null,{default:e.withCtx(()=>[l.$slots.error?(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(l.$slots,"error",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:3}),l.$slots.footer||t.confirmButtonText||t.cancelButtonText?(e.openBlock(),e.createElementBlock("div",ce,[e.renderSlot(l.$slots,"footer",{},()=>[e.createElementVNode("div",ue,[e.createVNode(e.unref(k._sfc_main),{size:"md",autofocus:"",loading:t.isLoading,onClick:a[0]||(a[0]=d=>l.$emit("confirm"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmButtonText||e.unref(r)({defaultMessage:"Confirm",id:"N2IrpM",description:"Modal comfirm button"})),1)]),_:1},8,["loading"]),e.createVNode(e.unref(k._sfc_main),{size:"md",intent:"secondary",onClick:a[1]||(a[1]=d=>l.$emit("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelButtonText||e.unref(r)({defaultMessage:"Cancel",id:"47FYwb",description:"Modal cancel button"})),1)]),_:1})])],!0)])):e.createCommentVNode("",!0)],8,te)],2)],6)):e.createCommentVNode("",!0)]),_:3})]),_:3}))}}),me=J._export_sfc(fe,[["__scopeId","data-v-f0b441a8"]]);exports.Modal=me;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as V, openBlock as a, createElementBlock as u, normalizeStyle as X, normalizeClass as m, renderSlot as b, createBlock as T, unref as s, createCommentVNode as r, createElementVNode as c, createTextVNode as k, toDisplayString as w, withCtx as g, useSlots as ie, computed as v, ref as h, useId as de, watch as re, onMounted as ue, onBeforeUnmount as ce, createVNode as x, Transition as fe, withModifiers as me, nextTick as be } from "vue";
2
2
  import { o as G } from "./index.es-CXkP_k3u.mjs";
3
- import { _ as ye, F as xe } from "./ContextMenu.vue.es-DL1M7pcr.mjs";
4
- import { b as ve, _ as P } from "./Button.vue.es-BJEy-e9C.mjs";
3
+ import { _ as ye, F as xe } from "./ContextMenu.vue.es-tAuFp-6i.mjs";
4
+ import { b as ve, _ as P } from "./Button.vue.es-PbJFK8z7.mjs";
5
5
  import { i as N } from "./slots.es-BA4MyEAa.mjs";
6
- import { _ as he } from "./Avatar.vue.es-2E3laNRb.mjs";
7
- import { _ as ge, u as we } from "./customElements-Df6dGrN-.mjs";
8
- import { _ as ze } from "./IconButton.vue.es-GLcGhoHC.mjs";
6
+ import { _ as he } from "./Avatar.vue.es-DzjFvLuK.mjs";
7
+ import { _ as ge, u as we } from "./customElements-DT1YyL4O.mjs";
8
+ import { _ as ze } from "./IconButton.vue.es-DGflbWFk.mjs";
9
9
  import { _ as ke } from "./floating-ui.vue.es-CYt0fSY7.mjs";
10
10
  const A = 60, Z = "z-index-tracker", Be = () => ({
11
11
  defaultZIndex: A,
@@ -1 +1 @@
1
- const e=require("vue"),f=require("./formatting.es-C72Nsrmh.js"),l=require("./Button.vue.es-CJNxYacb.js"),n=require("./customElements-BYIdPSzQ.js"),u=require("./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BNZ9-GW1.js"),_=require("./IconButton.vue.es-Dp8h4YOx.js"),h=()=>{const t=e.ref(null);return[async r=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(r),t.value=r,!0}catch{return t.value=null,!1}},t.value]},y=e.defineComponent({__name:"PaymentCompletedCard",props:{amount:{type:Object},variant:{type:String},redirecting:{type:Boolean}},setup(t){const a=t,{$t:r}=n.useIntl(),o=e.computed(()=>a.variant==="AUTHORIZE"?r({defaultMessage:"Payment successful",description:"The title for when a payment has been successful",id:"payment_completed_card.title.authorize"}):r({defaultMessage:"Your payment method is added",description:"The title for when a payment method was successfully added",id:"payment_completed_card.title.tokenize"}));return(i,s)=>(e.openBlock(),e.createBlock(u._sfc_main,{status:"success",title:o.value},{default:e.withCtx(()=>[t.amount?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(l._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(f.formatAmount)(t.amount)),1)]),_:1})):e.createCommentVNode("",!0),t.redirecting?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:1,variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"You are being redirected...",description:"The text shown after a successful message before a redirect",id:"payment_completed_card.redirect_message"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});function g(t){return{UNKNOWN_ERROR:{title:t({defaultMessage:"Something went wrong",description:"Title of the error card shown when a payment failed for no known reason",id:"payments.error_card.unknown_error.title"}),message:t({defaultMessage:"An unknown error has occurred",description:"Message of the error card shown when a payment failed for no known reason",id:"payments.error_card.unknown_error.message"}),isReloadButtonVisible:!0},AUTHORIZATION_FAILED:{title:t({defaultMessage:"Payment failed",description:"Title of the error card shown when a payment was not authorized",id:"payments.error_card.authorization_failed.title"}),message:t({defaultMessage:"The payment could not be completed. Try again, or use a different payment method.",description:"Message of the error card shown when a payment was not authorized",id:"payments.error_card.authorization_failed.message"}),isReloadButtonVisible:!0},PAYMENT_DETAILS_CALL_FAILED:{title:t({defaultMessage:"Payment could not be confirmed",description:"Title of the error card shown when the payment details could not be retrieved",id:"payments.error_card.payment_details_call_failed.title"}),message:t({defaultMessage:"There was a problem confirming your payment.",description:"Message of the error card shown when the payment details could not be retrieved",id:"payments.error_card.payment_details_call_failed.message"}),isReloadButtonVisible:!0},PAYMENT_METHOD_STORAGE_FAILED:{title:t({defaultMessage:"Payment method could not be saved",description:"Title of the error card shown when storing a payment method failed",id:"payments.error_card.payment_method_storage_failed.title"}),message:t({defaultMessage:"Something went wrong while saving your payment method.",description:"Message of the error card shown when storing a payment method failed",id:"payments.error_card.payment_method_storage_failed.message"}),isReloadButtonVisible:!0},REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING:{title:t({defaultMessage:"Payment could not be completed",description:"Title of the error card shown when a redirect returned without a payment acceptor",id:"payments.error_card.redirect_result_payment_acceptor_missing.title"}),message:t({defaultMessage:"Your payment could not be matched to this order.",description:"Message of the error card shown when a redirect returned without a payment acceptor",id:"payments.error_card.redirect_result_payment_acceptor_missing.message"})},TOKENIZE_FAILED:{title:t({defaultMessage:"Payment method could not be saved",description:"Title of the error card shown when tokenization failed",id:"payments.error_card.tokenize_failed.title"}),message:t({defaultMessage:"Your payment method could not be saved. Try again, or use a different one.",description:"Message of the error card shown when tokenization failed",id:"payments.error_card.tokenize_failed.message"}),isReloadButtonVisible:!0},PAYMENT_INTEGRATION_INITIALIZATION_FAILED:{title:t({defaultMessage:"Payment methods could not be loaded",description:"Title of the error card shown when the payment form failed to load",id:"payments.error_card.payment_integration_initialization_failed.title"}),message:t({defaultMessage:"The payment form could not be loaded.",description:"Message of the error card shown when the payment form failed to load",id:"payments.error_card.payment_integration_initialization_failed.message"}),isReloadButtonVisible:!0},RESOURCE_REVOKED:{title:t({defaultMessage:"This page is no longer available",description:"Title of the error card shown when the portal resource was revoked",id:"payments.error_card.resource_revoked.title"}),message:t({defaultMessage:"The link you followed has expired or was withdrawn.",description:"Message of the error card shown when the portal resource was revoked",id:"payments.error_card.resource_revoked.message"}),isReloadButtonVisible:!0}}}const w=2e3;function b({resetAfterMs:t=w}={}){const[a]=h(),r=e.ref(!1);let o;const i=async s=>{const d=await a(s);return r.value=d,d&&(clearTimeout(o),o=setTimeout(()=>{r.value=!1},t)),d};return e.onBeforeUnmount(()=>clearTimeout(o)),{copy:i,hasCopied:r}}const T={class:"flex flex-col items-center gap-6"},v={key:1,class:"flex flex-col items-center gap-1"},C={class:"flex items-center gap-1"},M=e.defineComponent({__name:"PaymentErrorCard",props:{error:{type:Object}},setup(t){const a=t,{$t:r}=n.useIntl(),{copy:o,hasCopied:i}=b(),s=e.computed(()=>g(r)[a.error.code]),d=()=>{window.location.reload()},c=e.computed(()=>r({defaultMessage:"Copy reference",description:"Label of the button that copies the payment error reference",id:"payments.error_card.reference.copy.label"})),m=e.computed(()=>r({defaultMessage:"Copied",description:"Confirmation shown after copying the payment error reference",id:"payments.error_card.reference.copied.label"})),p=()=>{a.error.reference&&o(a.error.reference)};return(k,E)=>(e.openBlock(),e.createBlock(u._sfc_main,{status:"error",title:s.value.title},{default:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode(e.unref(n._sfc_main),{variant:"body-xs",color:"subtle",class:"mt-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.message),1)]),_:1}),s.value.isReloadButtonVisible?(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Try again",description:"Retry button text when an error has happened during a payment",id:"payments.retry_button.label"})),1)]),_:1})):e.createCommentVNode("",!0),t.error.reference?(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(n._sfc_main),{variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Share this reference with support if the problem continues",description:"Explains what the reference below a failed payment is for",id:"payments.error_card.reference.description"})),1)]),_:1}),e.createElementVNode("div",C,[e.createVNode(e.unref(n._sfc_main),{variant:"body-xs",tag:"span",class:"select-all font-mono","data-testid":"payment-error-reference"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.error.reference),1)]),_:1}),e.createVNode(e.unref(_._sfc_main),{type:"button",intent:"subtle",size:"sm",icon:e.unref(i)?"check":"content_copy","aria-label":c.value,tooltip:e.unref(i)?m.value:c.value,onClick:p},null,8,["icon","aria-label","tooltip"])])])):e.createCommentVNode("",!0)])]),_:1},8,["title"]))}});exports._sfc_main=y;exports._sfc_main$1=M;
1
+ const e=require("vue"),f=require("./formatting.es-C72Nsrmh.js"),l=require("./Button.vue.es-TCF-bvDF.js"),n=require("./customElements-CSzbVZIH.js"),u=require("./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js"),_=require("./IconButton.vue.es-CB1lIPao.js"),h=()=>{const t=e.ref(null);return[async r=>{if(!(navigator!=null&&navigator.clipboard))return!1;try{return await navigator.clipboard.writeText(r),t.value=r,!0}catch{return t.value=null,!1}},t.value]},y=e.defineComponent({__name:"PaymentCompletedCard",props:{amount:{type:Object},variant:{type:String},redirecting:{type:Boolean}},setup(t){const a=t,{$t:r}=n.useIntl(),o=e.computed(()=>a.variant==="AUTHORIZE"?r({defaultMessage:"Payment successful",description:"The title for when a payment has been successful",id:"payment_completed_card.title.authorize"}):r({defaultMessage:"Your payment method is added",description:"The title for when a payment method was successfully added",id:"payment_completed_card.title.tokenize"}));return(i,s)=>(e.openBlock(),e.createBlock(u._sfc_main,{status:"success",title:o.value},{default:e.withCtx(()=>[t.amount?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(l._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(f.formatAmount)(t.amount)),1)]),_:1})):e.createCommentVNode("",!0),t.redirecting?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:1,variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"You are being redirected...",description:"The text shown after a successful message before a redirect",id:"payment_completed_card.redirect_message"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});function g(t){return{UNKNOWN_ERROR:{title:t({defaultMessage:"Something went wrong",description:"Title of the error card shown when a payment failed for no known reason",id:"payments.error_card.unknown_error.title"}),message:t({defaultMessage:"An unknown error has occurred",description:"Message of the error card shown when a payment failed for no known reason",id:"payments.error_card.unknown_error.message"}),isReloadButtonVisible:!0},AUTHORIZATION_FAILED:{title:t({defaultMessage:"Payment failed",description:"Title of the error card shown when a payment was not authorized",id:"payments.error_card.authorization_failed.title"}),message:t({defaultMessage:"The payment could not be completed. Try again, or use a different payment method.",description:"Message of the error card shown when a payment was not authorized",id:"payments.error_card.authorization_failed.message"}),isReloadButtonVisible:!0},PAYMENT_DETAILS_CALL_FAILED:{title:t({defaultMessage:"Payment could not be confirmed",description:"Title of the error card shown when the payment details could not be retrieved",id:"payments.error_card.payment_details_call_failed.title"}),message:t({defaultMessage:"There was a problem confirming your payment.",description:"Message of the error card shown when the payment details could not be retrieved",id:"payments.error_card.payment_details_call_failed.message"}),isReloadButtonVisible:!0},PAYMENT_METHOD_STORAGE_FAILED:{title:t({defaultMessage:"Payment method could not be saved",description:"Title of the error card shown when storing a payment method failed",id:"payments.error_card.payment_method_storage_failed.title"}),message:t({defaultMessage:"Something went wrong while saving your payment method.",description:"Message of the error card shown when storing a payment method failed",id:"payments.error_card.payment_method_storage_failed.message"}),isReloadButtonVisible:!0},REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING:{title:t({defaultMessage:"Payment could not be completed",description:"Title of the error card shown when a redirect returned without a payment acceptor",id:"payments.error_card.redirect_result_payment_acceptor_missing.title"}),message:t({defaultMessage:"Your payment could not be matched to this order.",description:"Message of the error card shown when a redirect returned without a payment acceptor",id:"payments.error_card.redirect_result_payment_acceptor_missing.message"})},TOKENIZE_FAILED:{title:t({defaultMessage:"Payment method could not be saved",description:"Title of the error card shown when tokenization failed",id:"payments.error_card.tokenize_failed.title"}),message:t({defaultMessage:"Your payment method could not be saved. Try again, or use a different one.",description:"Message of the error card shown when tokenization failed",id:"payments.error_card.tokenize_failed.message"}),isReloadButtonVisible:!0},PAYMENT_INTEGRATION_INITIALIZATION_FAILED:{title:t({defaultMessage:"Payment methods could not be loaded",description:"Title of the error card shown when the payment form failed to load",id:"payments.error_card.payment_integration_initialization_failed.title"}),message:t({defaultMessage:"The payment form could not be loaded.",description:"Message of the error card shown when the payment form failed to load",id:"payments.error_card.payment_integration_initialization_failed.message"}),isReloadButtonVisible:!0},RESOURCE_REVOKED:{title:t({defaultMessage:"This page is no longer available",description:"Title of the error card shown when the portal resource was revoked",id:"payments.error_card.resource_revoked.title"}),message:t({defaultMessage:"The link you followed has expired or was withdrawn.",description:"Message of the error card shown when the portal resource was revoked",id:"payments.error_card.resource_revoked.message"}),isReloadButtonVisible:!0}}}const w=2e3;function b({resetAfterMs:t=w}={}){const[a]=h(),r=e.ref(!1);let o;const i=async s=>{const d=await a(s);return r.value=d,d&&(clearTimeout(o),o=setTimeout(()=>{r.value=!1},t)),d};return e.onBeforeUnmount(()=>clearTimeout(o)),{copy:i,hasCopied:r}}const T={class:"flex flex-col items-center gap-6"},v={key:1,class:"flex flex-col items-center gap-1"},C={class:"flex items-center gap-1"},M=e.defineComponent({__name:"PaymentErrorCard",props:{error:{type:Object}},setup(t){const a=t,{$t:r}=n.useIntl(),{copy:o,hasCopied:i}=b(),s=e.computed(()=>g(r)[a.error.code]),d=()=>{window.location.reload()},c=e.computed(()=>r({defaultMessage:"Copy reference",description:"Label of the button that copies the payment error reference",id:"payments.error_card.reference.copy.label"})),m=e.computed(()=>r({defaultMessage:"Copied",description:"Confirmation shown after copying the payment error reference",id:"payments.error_card.reference.copied.label"})),p=()=>{a.error.reference&&o(a.error.reference)};return(k,E)=>(e.openBlock(),e.createBlock(u._sfc_main,{status:"error",title:s.value.title},{default:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode(e.unref(n._sfc_main),{variant:"body-xs",color:"subtle",class:"mt-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.message),1)]),_:1}),s.value.isReloadButtonVisible?(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Try again",description:"Retry button text when an error has happened during a payment",id:"payments.retry_button.label"})),1)]),_:1})):e.createCommentVNode("",!0),t.error.reference?(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(n._sfc_main),{variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Share this reference with support if the problem continues",description:"Explains what the reference below a failed payment is for",id:"payments.error_card.reference.description"})),1)]),_:1}),e.createElementVNode("div",C,[e.createVNode(e.unref(n._sfc_main),{variant:"body-xs",tag:"span",class:"select-all font-mono","data-testid":"payment-error-reference"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.error.reference),1)]),_:1}),e.createVNode(e.unref(_._sfc_main),{type:"button",intent:"subtle",size:"sm",icon:e.unref(i)?"check":"content_copy","aria-label":c.value,tooltip:e.unref(i)?m.value:c.value,onClick:p},null,8,["icon","aria-label","tooltip"])])])):e.createCommentVNode("",!0)])]),_:1},8,["title"]))}});exports._sfc_main=y;exports._sfc_main$1=M;
@@ -1,9 +1,9 @@
1
1
  import { ref as w, defineComponent as b, computed as h, openBlock as l, createBlock as p, withCtx as n, unref as r, createVNode as u, createTextVNode as i, toDisplayString as d, createCommentVNode as _, onBeforeUnmount as C, createElementVNode as g, createElementBlock as k } from "vue";
2
2
  import { f as R } from "./formatting.es-RclXHhKo.mjs";
3
- import { a as A, _ as I } from "./Button.vue.es-BJEy-e9C.mjs";
4
- import { u as T, _ as f } from "./customElements-Df6dGrN-.mjs";
5
- import { _ as M } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CcdhYTB1.mjs";
6
- import { _ as x } from "./IconButton.vue.es-GLcGhoHC.mjs";
3
+ import { a as A, _ as I } from "./Button.vue.es-PbJFK8z7.mjs";
4
+ import { u as T, _ as f } from "./customElements-DT1YyL4O.mjs";
5
+ import { _ as M } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs";
6
+ import { _ as x } from "./IconButton.vue.es-DGflbWFk.mjs";
7
7
  const N = () => {
8
8
  const e = w(null);
9
9
  return [async (t) => {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as r, createBlock as c, unref as t, withCtx as s, createElementVNode as i, createVNode as n, normalizeClass as m, createTextVNode as d, toDisplayString as u, renderSlot as f, createCommentVNode as _ } from "vue";
2
- import { a as p } from "./Button.vue.es-BJEy-e9C.mjs";
3
- import { _ as g } from "./Section.vue.es-C2_topx4.mjs";
4
- import { _ as o } from "./customElements-Df6dGrN-.mjs";
2
+ import { a as p } from "./Button.vue.es-PbJFK8z7.mjs";
3
+ import { _ as g } from "./Section.vue.es-KRsHeFoT.mjs";
4
+ import { _ as o } from "./customElements-DT1YyL4O.mjs";
5
5
  const y = { class: "flex flex-col items-center py-10" }, v = /* @__PURE__ */ l({
6
6
  __name: "PaymentFeedbackCard",
7
7
  props: {
@@ -1 +1 @@
1
- const e=require("vue"),n=require("./Button.vue.es-CJNxYacb.js"),a=require("./Section.vue.es-Cybk1Nb8.js"),c=require("./customElements-BYIdPSzQ.js"),r={class:"flex flex-col items-center py-10"},i=e.defineComponent({__name:"PaymentFeedbackCard",props:{status:{default:"success",type:String},title:{type:String}},setup(t){return(s,l)=>(e.openBlock(),e.createBlock(e.unref(a._sfc_main),null,{default:e.withCtx(()=>[e.createElementVNode("div",r,[e.createVNode(e.unref(n._sfc_main$1),{icon:t.status==="success"?"check_circle":"error",class:e.normalizeClass({"text-green-400":t.status==="success","text-red-600":t.status==="error"}),size:"lg"},null,8,["icon","class"]),e.createVNode(e.unref(c._sfc_main),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),s.$slots.default?(e.openBlock(),e.createBlock(e.unref(c._sfc_main),{key:0,tag:"div",variant:"body-sm"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})):e.createCommentVNode("",!0)])]),_:3}))}});exports._sfc_main=i;
1
+ const e=require("vue"),n=require("./Button.vue.es-TCF-bvDF.js"),a=require("./Section.vue.es-CBZx5x53.js"),c=require("./customElements-CSzbVZIH.js"),r={class:"flex flex-col items-center py-10"},i=e.defineComponent({__name:"PaymentFeedbackCard",props:{status:{default:"success",type:String},title:{type:String}},setup(t){return(s,l)=>(e.openBlock(),e.createBlock(e.unref(a._sfc_main),null,{default:e.withCtx(()=>[e.createElementVNode("div",r,[e.createVNode(e.unref(n._sfc_main$1),{icon:t.status==="success"?"check_circle":"error",class:e.normalizeClass({"text-green-400":t.status==="success","text-red-600":t.status==="error"}),size:"lg"},null,8,["icon","class"]),e.createVNode(e.unref(c._sfc_main),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),s.$slots.default?(e.openBlock(),e.createBlock(e.unref(c._sfc_main),{key:0,tag:"div",variant:"body-sm"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3})):e.createCommentVNode("",!0)])]),_:3}))}});exports._sfc_main=i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CSTfMB8U.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-C0XIdBbx.js");exports.default=e._sfc_main;
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dr2jtJhK.mjs";
1
+ import { _ as f } from "./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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-EhRCfeax.mjs";
2
+ import { _ as v } from "./PaymentMethod.vue.es-C0j580g7.mjs";
3
3
  import { a as E } from "./formatting.es-RclXHhKo.mjs";
4
- import { _ as D } from "./Chip.vue.es-DGbc4L_D.mjs";
5
- import { _ as N } from "./Section.vue.es-C2_topx4.mjs";
6
- import { u as k, _ as l } from "./customElements-Df6dGrN-.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";
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 +1 @@
1
- const e=require("vue"),o=require("./PaymentMethod.vue.es-pLCCzVxN.js"),c=require("./formatting.es-C72Nsrmh.js"),m=require("./Chip.vue.es-DLQ4QEPo.js"),_=require("./Section.vue.es-Cybk1Nb8.js"),n=require("./customElements-BYIdPSzQ.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-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,4 +1,4 @@
1
- import { _ as f } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BgztoQH5.mjs";
1
+ import { _ as f } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.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-DKXhthkA.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-De7h9-fH.js");exports.default=e._sfc_main;
@@ -0,0 +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,25 +1,25 @@
1
- import { defineComponent as A, defineAsyncComponent as h, ref as l, computed as B, openBlock as s, createElementBlock as v, Fragment as g, renderList as E, unref as i, createBlock as f, createCommentVNode as $, withCtx as D, createTextVNode as N, toDisplayString as j } from "vue";
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-Df6dGrN-.mjs";
3
+ import { u as T } from "./customElements-DT1YyL4O.mjs";
4
4
  import { g as L } from "./adyen-CvsH5fok.mjs";
5
- const p = (e) => {
5
+ const k = (e) => {
6
6
  var a;
7
7
  return ((a = e.integration.payment_gateway) == null ? void 0 : a.variant) === "ADYEN";
8
- }, k = (e) => {
8
+ }, E = (e) => {
9
9
  var a;
10
10
  return ((a = e.integration.payment_gateway) == null ? void 0 : a.variant) === "STRIPE";
11
11
  }, w = ({
12
12
  selectedIntegration: e,
13
13
  paymentMethodOption: a
14
14
  }) => {
15
- var r, c;
16
- return e === ((c = (r = a.integration) == null ? void 0 : r.payment_gateway) == null ? void 0 : c.variant);
15
+ var o, c;
16
+ return e === ((c = (o = a.integration) == null ? void 0 : o.payment_gateway) == null ? void 0 : c.variant);
17
17
  }, M = (e, { excludeExpressPaymentMethods: a = !1 } = {}) => {
18
- var r;
19
- return p(e) ? L(e, { excludeExpressPaymentMethods: a }).length > 0 : k(e) ? !!((r = e.integration.payment_gateway.stripe) != null && r.public_key) : !1;
18
+ var o;
19
+ return k(e) ? L(e, { excludeExpressPaymentMethods: a }).length > 0 : E(e) ? !!((o = e.integration.payment_gateway.stripe) != null && o.public_key) : !1;
20
20
  }, H = (e, a = {}) => e.some(
21
- (r) => M(r, a)
22
- ), J = /* @__PURE__ */ A({
21
+ (o) => M(o, a)
22
+ ), J = /* @__PURE__ */ x({
23
23
  __name: "PaymentIntegrationForm",
24
24
  props: {
25
25
  customerId: { type: String },
@@ -35,93 +35,96 @@ const p = (e) => {
35
35
  validateOnSubmit: { type: Function },
36
36
  forceStorePaymentMethod: { type: Boolean },
37
37
  storePaymentMethod: { type: Boolean, default: void 0 },
38
- redirectsOnSuccess: { type: Boolean }
38
+ redirectsOnSuccess: { type: Boolean },
39
+ billingEntityName: { type: String }
39
40
  },
40
41
  emits: ["select", "payment-failed", "payment-success", "ready"],
41
- setup(e, { expose: a, emit: r }) {
42
+ setup(e, { expose: a, emit: o }) {
42
43
  const c = h(
43
- () => import("./PaymentIntegrationFormStripe-Dx1H3fZ2.mjs").then(
44
+ () => import("./PaymentIntegrationFormStripe-D-GaLHwc.mjs").then(
44
45
  (n) => n.default
45
46
  )
46
47
  ), C = h(
47
- () => import("./PaymentIntegrationFormAdyen-BQcgDcik.mjs").then(
48
+ () => import("./PaymentIntegrationFormAdyen-CyZk9ofV.mjs").then(
48
49
  (n) => n.default
49
50
  )
50
- ), d = e, F = r;
51
- a({ submit: x });
52
- const { $t: R } = T(), S = l(), u = B(
51
+ ), d = e, F = o;
52
+ a({ submit: p });
53
+ const { $t: R } = T(), S = u(), l = A(
53
54
  () => {
54
55
  var n, t;
55
56
  return S.value ?? ((t = (n = d.paymentMethodOptions[0]) == null ? void 0 : n.integration.payment_gateway) == null ? void 0 : t.variant);
56
57
  }
57
- ), I = l(/* @__PURE__ */ new Map()), y = l(!1), P = ({
58
+ ), I = u(/* @__PURE__ */ new Map()), y = u(!1), b = ({
58
59
  paymentGatewayVariant: n,
59
60
  paymentMethodType: t
60
61
  }) => {
61
62
  y.value = !1, S.value = n, F("select", { paymentGatewayVariant: n, paymentMethodType: t });
62
- }, b = (n) => (t) => {
63
- var o;
64
- return I.value.set((o = n.integration.payment_gateway) == null ? void 0 : o.variant, t);
63
+ }, P = (n) => (t) => {
64
+ var i;
65
+ return I.value.set((i = n.integration.payment_gateway) == null ? void 0 : i.variant, t);
65
66
  };
66
- function x() {
67
+ function p() {
67
68
  var n, t;
68
- u.value || (y.value = !0, (n = d.validateOnSubmit) == null || n.call(d)), (t = I.value.get(u.value)) == null || t.submit();
69
+ l.value || (y.value = !0, (n = d.validateOnSubmit) == null || n.call(d)), (t = I.value.get(l.value)) == null || t.submit();
69
70
  }
70
- return (n, t) => (s(), v(g, null, [
71
- (s(!0), v(g, null, E(e.paymentMethodOptions, (o) => (s(), v(g, {
72
- key: o.integration.id
71
+ return (n, t) => (s(), g(v, null, [
72
+ (s(!0), g(v, null, B(e.paymentMethodOptions, (i) => (s(), g(v, {
73
+ key: i.integration.id
73
74
  }, [
74
- i(p)(o) ? (s(), f(i(C), {
75
+ r(k)(i) ? (s(), f(r(C), {
75
76
  key: 0,
76
77
  ref_for: !0,
77
- ref: b(o),
78
+ ref: P(i),
78
79
  context: e.context,
79
- "payment-method-option-response-entry": o,
80
+ "payment-method-option-response-entry": i,
80
81
  "country-code": e.countryCode,
81
82
  "customer-id": e.customerId,
82
83
  variant: e.variant,
83
84
  amount: e.amount,
84
85
  "invoice-id": e.invoiceId,
85
- selected: i(w)({ selectedIntegration: u.value, paymentMethodOption: o }),
86
+ selected: r(w)({ selectedIntegration: l.value, paymentMethodOption: i }),
86
87
  "validate-on-submit": e.validateOnSubmit,
87
88
  "force-store-payment-method": e.forceStorePaymentMethod,
88
89
  "store-payment-method": e.storePaymentMethod,
89
90
  "redirects-on-success": e.redirectsOnSuccess,
90
- onSelect: P,
91
+ "billing-entity-name": e.billingEntityName,
92
+ onSelect: b,
91
93
  onPaymentFailed: t[0] || (t[0] = (m) => n.$emit("payment-failed", m)),
92
94
  onPaymentSuccess: t[1] || (t[1] = (m) => n.$emit("payment-success")),
93
95
  onReady: t[2] || (t[2] = (m) => n.$emit("ready"))
94
- }, 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"])) : i(k)(o) ? (s(), f(i(c), {
96
+ }, 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"])) : r(E)(i) ? (s(), f(r(c), {
95
97
  key: 1,
96
98
  ref_for: !0,
97
- ref: b(o),
99
+ ref: P(i),
98
100
  context: e.context,
99
- "payment-method-option-response-entry": o,
101
+ "payment-method-option-response-entry": i,
100
102
  "country-code": e.countryCode,
101
103
  "customer-id": e.customerId,
102
104
  variant: e.variant,
103
105
  amount: e.amount,
104
106
  "invoice-id": e.invoiceId,
105
- selected: i(w)({ selectedIntegration: u.value, paymentMethodOption: o }),
107
+ selected: r(w)({ selectedIntegration: l.value, paymentMethodOption: i }),
106
108
  email: e.email,
107
109
  name: e.name,
108
110
  "validate-on-submit": e.validateOnSubmit,
109
111
  "force-store-payment-method": e.forceStorePaymentMethod,
110
112
  "store-payment-method": e.storePaymentMethod,
111
113
  "redirects-on-success": e.redirectsOnSuccess,
112
- onSelect: P,
114
+ "billing-entity-name": e.billingEntityName,
115
+ onSelect: b,
113
116
  onPaymentFailed: t[3] || (t[3] = (m) => n.$emit("payment-failed", m)),
114
117
  onPaymentSuccess: t[4] || (t[4] = (m) => n.$emit("payment-success")),
115
118
  onReady: t[5] || (t[5] = (m) => n.$emit("ready"))
116
- }, 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"])) : $("", !0)
119
+ }, 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"])) : $("", !0)
117
120
  ], 64))), 128)),
118
- y.value ? (s(), f(i(O), {
121
+ y.value ? (s(), f(r(O), {
119
122
  key: 0,
120
123
  variant: "error",
121
124
  class: "mt-2"
122
125
  }, {
123
- default: D(() => [
124
- N(j(i(R)({
126
+ default: N(() => [
127
+ D(j(r(R)({
125
128
  defaultMessage: "Select a payment method",
126
129
  id: "payment_integration_form.select_payment_method_error",
127
130
  description: "Error shown when no payment method is selected"
@@ -0,0 +1,98 @@
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=`
2
+ :host {
3
+ --adyen-sdk-color-background-secondary: transparent;
4
+ --adyen-sdk-color-background-primary: rgb(243 244 246 / 0.5);
5
+ --adyen-sdk-color-outline-secondary: #e5e7eb;
6
+ --adyen-sdk-color-outline-primary: transparent;
7
+ --adyen-sdk-color-background-always-dark: var(--color-primary-500);
8
+ --adyen-sdk-color-background-inverse-primary-hover: var(--color-primary-600);
9
+ }
10
+
11
+ .adyen-checkout__payment-method__image__wrapper {
12
+ width: 32px;
13
+ height: 32px;
14
+ }
15
+
16
+ .adyen-checkout__payment-method__image {
17
+ height: 32px;
18
+ }
19
+
20
+ .adyen-checkout__input-wrapper,
21
+ .adyen-checkout__input {
22
+ border-color: rgb(229, 231, 235);
23
+ border-radius: var(--adyen-sdk-border-radius-s, 4px);
24
+ }
25
+
26
+ .adyen-checkout__button,
27
+ .adyen-checkout__payment-method {
28
+ border-radius: var(--adyen-sdk-border-radius-s, 4px);
29
+ }
30
+
31
+ .adyen-checkout__payment-method {
32
+ border-color: rgb(229, 231, 235);
33
+ box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
34
+ transition: box-shadow 0.2s ease-in-out;
35
+ }
36
+
37
+ .adyen-checkout__payment-method--selected {
38
+ box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
39
+ }
40
+
41
+ .adyen-checkout__payment-method:after {
42
+ transform: scale(0%);
43
+ }
44
+
45
+ .adyen-checkout__paypal__button {
46
+ display: block !important;
47
+ }
48
+
49
+ .adyen-checkout__payment-methods-list {
50
+ gap: 4px;
51
+ }
52
+
53
+ .adyen-checkout__dropdown__list {
54
+ background-color: white;
55
+ border-radius: var(--adyen-sdk-border-radius-s, 4px);
56
+ }
57
+
58
+ .adyen-checkout__payment-method.adyen-checkout__payment-method--selected:after {
59
+ content: '✓';
60
+ width: 20px;
61
+ height: 20px;
62
+ border-radius: 10px;
63
+ background-color: var(--color-primary-600);
64
+ position: absolute;
65
+ top: 14px;
66
+ right: 14px;
67
+ text-align: center;
68
+ line-height: 20px;
69
+ color: white;
70
+ transform: scale(100%);
71
+ font-size: 12px;
72
+ }
73
+
74
+ .adyen-checkout__payment-method__header {
75
+ padding: 8px 16px !important;
76
+ }
77
+
78
+ .adyen-checkout__payment-method__brands {
79
+ align-items: center;
80
+ }
81
+ .adyen-checkout__payment-method__brand-number {
82
+ line-height: 1;
83
+ }
84
+ .adyen-checkout__button__text {
85
+ font-size: 14px;
86
+ }
87
+ .adyen-checkout__store-details {
88
+ background: transparent;
89
+ padding: 0;
90
+ }
91
+ .adyen-checkout__checkbox__input + .adyen-checkout__checkbox__label:after {
92
+ border-color: rgb(229, 231, 235);
93
+ }
94
+ `,a.variant==="AUTHORIZE"&&(c.textContent+=`
95
+ .adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
96
+ display: none;
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;