@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.28

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 (432) hide show
  1. package/README.md +126 -17
  2. package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
  3. package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +15 -16
  5. package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
  6. package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +235 -247
  7. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
  8. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
  9. package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
  10. package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
  11. package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
  12. package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
  13. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +33 -37
  14. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
  15. package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
  16. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
  17. package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
  18. package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
  19. package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
  20. package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
  21. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
  22. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
  23. package/dist/{InvoiceSummary.vue.es-CRiFJ5x-.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
  24. package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
  25. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +72 -73
  26. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
  27. package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
  28. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
  29. package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
  30. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
  31. package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -293
  32. package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
  33. package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
  34. package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
  35. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +57 -65
  36. package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
  37. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
  38. package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
  39. package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
  40. package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
  41. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
  42. package/dist/{RadioGroupExtended.vue.es-9YzXzZF0.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
  43. package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
  44. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
  45. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
  46. package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
  47. package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
  48. package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
  49. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
  50. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
  51. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +123 -88
  52. package/dist/{TooltipParagraph.vue.es-B9A17aG7.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
  53. package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
  54. package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
  55. package/dist/amount-CondixVt.mjs +36 -0
  56. package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-2bVdkiFV.mjs} +87 -83
  57. package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
  58. package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
  59. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
  60. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
  61. package/dist/components/Invoice/Invoice.mjs +206 -209
  62. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -62
  63. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
  64. package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
  65. package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -64
  66. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
  67. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
  68. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
  69. package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
  70. package/dist/core/index.mjs +61 -95
  71. package/dist/customElements-Di3zwlEU.mjs +6447 -0
  72. package/dist/customer-CqddTiOr.mjs +31 -0
  73. package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
  74. package/dist/{de-DE-DKp5LCu0.mjs → de-DE-BW8dMvhW.mjs} +72 -18
  75. package/dist/formControl-CsITfsBk.mjs +749 -0
  76. package/dist/index.mjs +2 -2
  77. package/dist/invoiceState-BJVHaKs7.mjs +14 -0
  78. package/dist/{invoices-3520M5AN.mjs → invoices-Cf1qDAv4.mjs} +40 -35
  79. package/dist/{it-IT-BgFVsO5S.mjs → it-IT-Byg06KWc.mjs} +72 -18
  80. package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
  81. package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
  82. package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-x3zQqzZ7.mjs} +78 -24
  83. package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
  84. package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
  85. package/dist/payments-Ci8bF4C6.mjs +45 -0
  86. package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
  87. package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
  88. package/dist/pricingPlanSchedules-BK_o9p6h.mjs +38 -0
  89. package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
  90. package/dist/screens/Checkout/Checkout.mjs +2 -2
  91. package/dist/screens/CustomerOverview/CustomerOverview.mjs +98 -91
  92. package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
  93. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
  94. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  95. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
  96. package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
  97. package/dist/sorting.es-qtEN8J8T.mjs +77 -0
  98. package/dist/subscription-BhxoqwcT.mjs +83 -0
  99. package/dist/subscriptions-CwogJODR.mjs +54 -0
  100. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
  101. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
  102. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
  103. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
  104. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
  105. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
  106. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
  107. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
  108. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
  109. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
  110. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
  111. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
  112. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
  113. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
  114. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
  115. package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
  116. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
  117. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
  118. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
  119. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
  120. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
  121. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  122. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
  123. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
  124. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
  125. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
  126. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
  127. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  128. package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
  129. package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
  130. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
  131. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
  132. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
  133. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
  134. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
  135. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
  136. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
  137. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
  138. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
  139. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
  140. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
  141. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
  142. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
  143. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
  144. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
  145. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
  146. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
  147. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
  148. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
  149. package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
  150. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
  151. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
  152. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
  153. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
  154. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
  155. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
  156. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
  157. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
  158. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
  159. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
  160. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
  161. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
  162. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
  163. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
  164. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
  165. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
  166. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
  167. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
  168. package/dist/types/public/core/action-request.types.d.ts +5 -0
  169. package/dist/types/public/core/registry.ce.d.ts +3 -3
  170. package/dist/types/public/core/registry.d.ts +0 -3
  171. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
  172. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
  173. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
  174. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
  175. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
  176. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
  177. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
  178. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
  179. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
  180. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
  181. package/dist/types/services/paymentMethods.types.d.ts +2 -10
  182. package/dist/types/services/requests.types.d.ts +16 -6
  183. package/dist/types/types/errors.d.ts +3 -2
  184. package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
  185. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
  186. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
  187. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
  188. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
  189. package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
  190. package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
  191. package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
  192. package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
  193. package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
  194. package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
  195. package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
  196. package/dist/{useLoadInitialData-D9GkzY8t.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
  197. package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
  198. package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +8 -8
  199. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
  200. package/dist/{usePaymentMethods-CbwnGONc.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
  201. package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-CykCZPG2.mjs} +7 -7
  202. package/dist/usePortal-CxzKGhbK.mjs +7 -0
  203. package/dist/useService-B0OQJmif.mjs +56 -0
  204. package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
  205. package/dist/useViewport-psZejz_H.mjs +19 -0
  206. package/package.json +28 -55
  207. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
  208. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
  209. package/dist/Alert.vue.es-RyK53a2P.js +0 -1
  210. package/dist/Amount.vue.es-DExaYBqm.js +0 -1
  211. package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
  212. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
  213. package/dist/Button.vue.es-BzkuglKw.js +0 -1
  214. package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
  215. package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
  216. package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
  217. package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
  218. package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
  219. package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
  220. package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
  221. package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
  222. package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
  223. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
  224. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
  225. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
  226. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
  227. package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
  228. package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
  229. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
  230. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
  231. package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
  232. package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
  233. package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
  234. package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
  235. package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
  236. package/dist/Input.vue.es-B60eK8Ds.js +0 -1
  237. package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
  238. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
  239. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
  240. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
  241. package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
  242. package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
  243. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
  244. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
  245. package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
  246. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
  247. package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
  248. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
  249. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
  250. package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
  251. package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
  252. package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
  253. package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
  254. package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
  255. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
  256. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
  257. package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
  258. package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
  259. package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
  260. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
  261. package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
  262. package/dist/Section.vue.es-Bbt0RITt.js +0 -1
  263. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
  264. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
  265. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
  266. package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
  267. package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
  268. package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
  269. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
  270. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
  271. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
  272. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
  273. package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
  274. package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
  275. package/dist/accel.svg.es-DFJXdioD.js +0 -1
  276. package/dist/ach.svg.es-BYP873jU.js +0 -1
  277. package/dist/adyen-BJfC7N6f.js +0 -1
  278. package/dist/adyenSdk-BP2XXzeJ.js +0 -1
  279. package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
  280. package/dist/amex.svg.es-DKhW4Txt.js +0 -1
  281. package/dist/api.es-duCDtZD9.js +0 -1
  282. package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
  283. package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
  284. package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
  285. package/dist/carnet.svg.es-DY04-F2L.js +0 -1
  286. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
  287. package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
  288. package/dist/cn.es-C9Yqq4tg.js +0 -1
  289. package/dist/comparators.es-OGt19O9U.js +0 -1
  290. package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
  291. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
  292. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
  293. package/dist/components/Invoice/Invoice.cjs +0 -1
  294. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
  295. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
  296. package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
  297. package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
  298. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
  299. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
  300. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
  301. package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
  302. package/dist/configuration-akTS7Wiw.js +0 -1
  303. package/dist/core/index.cjs +0 -1
  304. package/dist/countryData.es-C4jHBzfo.js +0 -1
  305. package/dist/customElements-B58FcXIN.mjs +0 -6633
  306. package/dist/customElements-DUMRMFQ5.js +0 -1215
  307. package/dist/customer-B3LPAhaD.mjs +0 -31
  308. package/dist/customer-CisTPaXj.js +0 -1
  309. package/dist/customer.es-BButyYo0.js +0 -1
  310. package/dist/dana.svg.es-BDtZLpwd.js +0 -1
  311. package/dist/dankort.svg.es-CksaipXF.js +0 -1
  312. package/dist/de-DE-B4TUdnUf.js +0 -1
  313. package/dist/de-DE-DL74pMLb.js +0 -1
  314. package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
  315. package/dist/discover.svg.es-DgqWCMUM.js +0 -1
  316. package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
  317. package/dist/elo.svg.es-C-BzjuRP.js +0 -1
  318. package/dist/en-US-B2XFj-_p.js +0 -1
  319. package/dist/en-US-DQ5vlv9Z.mjs +0 -339
  320. package/dist/en-US-J85TQRI8.js +0 -1
  321. package/dist/en-US-SDhjlY_v.mjs +0 -301
  322. package/dist/eps.svg.es-B_85bP-W.js +0 -1
  323. package/dist/error-BHVZJGwD.mjs +0 -13
  324. package/dist/error-CmduqgVq.js +0 -1
  325. package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
  326. package/dist/formControl-ODrpUvcA.js +0 -1
  327. package/dist/formControl-dX7l8o3c.mjs +0 -845
  328. package/dist/formatting.es-C72Nsrmh.js +0 -1
  329. package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
  330. package/dist/getComposedString.es-haS4bAj7.js +0 -1
  331. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
  332. package/dist/girocard.svg.es-HSOEvDif.js +0 -1
  333. package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
  334. package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
  335. package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
  336. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
  337. package/dist/ideal.svg.es-Booz1IML.js +0 -1
  338. package/dist/index-BPZPnOQQ.js +0 -7
  339. package/dist/index.cjs +0 -1
  340. package/dist/index.es-BclokHQX.js +0 -1
  341. package/dist/invoices-CKQBLar2.js +0 -1
  342. package/dist/it-IT-CSYvGmpT.js +0 -1
  343. package/dist/it-IT-CqNK62qe.js +0 -1
  344. package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
  345. package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
  346. package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
  347. package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
  348. package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
  349. package/dist/momo.svg.es-C5aLYf_R.js +0 -1
  350. package/dist/nl-NL-CpE4IgwO.js +0 -1
  351. package/dist/nl-NL-Dx-TNXQ1.js +0 -1
  352. package/dist/nyce.svg.es-ArAivAZW.js +0 -1
  353. package/dist/object.es-CdriXMPs.js +0 -1
  354. package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
  355. package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
  356. package/dist/paymentFailure-Cki8c5BX.js +0 -1
  357. package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
  358. package/dist/paymentMethods-Cw-i95mM.js +0 -1
  359. package/dist/payments-2qeQdpiW.mjs +0 -45
  360. package/dist/payments-CS7_YcOW.js +0 -1
  361. package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
  362. package/dist/pricing-BIMpDI_p.mjs +0 -29
  363. package/dist/pricing-BOqG21f9.js +0 -1
  364. package/dist/pricing.es-C07bgEZx.js +0 -1
  365. package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
  366. package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
  367. package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
  368. package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
  369. package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
  370. package/dist/pulse.svg.es-Dit33E8S.js +0 -1
  371. package/dist/screens/Checkout/Checkout.cjs +0 -1
  372. package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
  373. package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
  374. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
  375. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
  376. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
  377. package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
  378. package/dist/sessionReference-3h-6FdrC.mjs +0 -43
  379. package/dist/sessionReference-m_6Rp4X1.js +0 -1
  380. package/dist/slots.es-T9ZJRGtG.js +0 -1
  381. package/dist/sorting.es-DCihKqD2.mjs +0 -77
  382. package/dist/sorting.es-DQsjKr8A.js +0 -1
  383. package/dist/star.svg.es-D2JncY7b.js +0 -1
  384. package/dist/subscription-D1yHKUNc.mjs +0 -69
  385. package/dist/subscription-ZA62t4E9.js +0 -1
  386. package/dist/subscriptions-DcfcBYAq.mjs +0 -55
  387. package/dist/subscriptions-DwVsf4Ev.js +0 -1
  388. package/dist/trustly.svg.es-GJByiFAs.js +0 -1
  389. package/dist/twint.svg.es-BJ2f48og.js +0 -1
  390. package/dist/typeGuards.es-DS3vZaJn.js +0 -1
  391. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
  392. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
  393. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
  394. package/dist/types/services/portals.types.d.ts +0 -70
  395. package/dist/types/types/subscription.d.ts +0 -4
  396. package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
  397. package/dist/url-TNRgVI8A.mjs +0 -21
  398. package/dist/url-vloPOiXd.js +0 -1
  399. package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
  400. package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
  401. package/dist/useCustomer-BwZKd9i5.js +0 -1
  402. package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
  403. package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
  404. package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
  405. package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
  406. package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
  407. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
  408. package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
  409. package/dist/useInvoiceData-CNV_FMV8.js +0 -1
  410. package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
  411. package/dist/useInvoicesList-S0IbQcrD.js +0 -1
  412. package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
  413. package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
  414. package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
  415. package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
  416. package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
  417. package/dist/usePayments-DDSjo0rH.js +0 -1
  418. package/dist/usePortal-C27omjhz.js +0 -1
  419. package/dist/usePortal-C5AsegpS.mjs +0 -11
  420. package/dist/useService-Bh47bllz.mjs +0 -50
  421. package/dist/useService-H7BjLg8P.js +0 -1
  422. package/dist/useSubscription-BZJL0VOA.mjs +0 -210
  423. package/dist/useSubscription-D787IXY-.js +0 -1
  424. package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
  425. package/dist/useViewport-BgdA2PPt.mjs +0 -29
  426. package/dist/useViewport-hPRVDWCm.js +0 -1
  427. package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
  428. package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
  429. package/dist/visa.svg.es-NY3BHhda.js +0 -1
  430. package/dist/vpay.svg.es-VViQi42w.js +0 -1
  431. package/dist/wallets.es-CNIMW5ay.js +0 -1
  432. package/dist/zip.svg.es-C9S_F31W.js +0 -1
@@ -1,154 +0,0 @@
1
- import { defineComponent as p, defineAsyncComponent as h, ref as v, computed as B, openBlock as s, createElementBlock as g, Fragment as f, renderList as x, unref as m, createBlock as S, createCommentVNode as w, withCtx as D, createTextVNode as O, toDisplayString as T } from "vue";
2
- import { _ as M } from "./FormMessage.vue.es-jG3fQZms.mjs";
3
- import { a as j } from "./customElements-B58FcXIN.mjs";
4
- import { g as Y } from "./useExperimentalFeature-BciA3Ok9.mjs";
5
- const k = (e) => {
6
- var i;
7
- return ((i = e.integration.payment_gateway) == null ? void 0 : i.variant) === "ADYEN";
8
- }, N = (e) => {
9
- var i;
10
- return ((i = e.integration.payment_gateway) == null ? void 0 : i.variant) === "STRIPE";
11
- }, E = ({
12
- selectedIntegration: e,
13
- paymentMethodOption: i
14
- }) => {
15
- var o, d;
16
- return e === ((d = (o = i.integration) == null ? void 0 : o.payment_gateway) == null ? void 0 : d.variant);
17
- }, H = (e, { excludeExpressPaymentMethods: i = !1 } = {}) => {
18
- var o;
19
- return k(e) ? Y(e, { excludeExpressPaymentMethods: i }).length > 0 : N(e) ? !!((o = e.integration.payment_gateway.stripe) != null && o.public_key) : !1;
20
- }, J = (e, i = {}) => e.some(
21
- (o) => H(o, i)
22
- ), K = /* @__PURE__ */ p({
23
- __name: "PaymentIntegrationForm",
24
- props: {
25
- customerId: { type: String },
26
- variant: { type: String },
27
- context: { type: Object },
28
- paymentMethodOptions: { type: Array },
29
- countryCode: { type: String },
30
- invoiceId: { type: String },
31
- amount: { type: Object },
32
- selectedOption: { type: String },
33
- email: { type: String },
34
- name: { type: String },
35
- validateOnSubmit: { type: Function },
36
- forceStorePaymentMethod: { type: Boolean },
37
- storePaymentMethod: { type: Boolean, default: void 0 },
38
- redirectsOnSuccess: { type: Boolean },
39
- billingEntityName: { type: String }
40
- },
41
- emits: ["select", "payment-failed", "payment-success", "invalid", "ready"],
42
- setup(e, { expose: i, emit: o }) {
43
- const d = h(
44
- () => import("./PaymentIntegrationFormStripe-Ds0BXt89.mjs").then(
45
- (t) => t.default
46
- )
47
- ), A = h(
48
- () => import("./PaymentIntegrationFormAdyen-Yr8p5Fly.mjs").then(
49
- (t) => t.default
50
- )
51
- ), l = e, c = o;
52
- i({ submit: R });
53
- const { $t: C } = j(), I = v(), y = B(
54
- () => {
55
- var t, n;
56
- return I.value ?? ((n = (t = l.paymentMethodOptions[0]) == null ? void 0 : t.integration.payment_gateway) == null ? void 0 : n.variant);
57
- }
58
- ), b = v(/* @__PURE__ */ new Map()), u = v(!1), P = ({
59
- paymentGatewayVariant: t,
60
- paymentMethodType: n
61
- }) => {
62
- u.value = !1, I.value = t, c("select", { paymentGatewayVariant: t, paymentMethodType: n });
63
- }, $ = (t) => (n) => {
64
- var a;
65
- return b.value.set((a = t.integration.payment_gateway) == null ? void 0 : a.variant, n);
66
- }, F = (t) => {
67
- t === "NO_PAYMENT_METHOD" && (u.value = !0), c("invalid", t);
68
- };
69
- function R() {
70
- var n;
71
- if (!y.value) {
72
- u.value = !0, (n = l.validateOnSubmit) == null || n.call(l), c("invalid");
73
- return;
74
- }
75
- const t = b.value.get(y.value);
76
- if (!t) {
77
- c("invalid");
78
- return;
79
- }
80
- t.submit();
81
- }
82
- return (t, n) => (s(), g(f, null, [
83
- (s(!0), g(f, null, x(e.paymentMethodOptions, (a) => (s(), g(f, {
84
- key: a.integration.id
85
- }, [
86
- m(k)(a) ? (s(), S(m(A), {
87
- key: 0,
88
- ref_for: !0,
89
- ref: $(a),
90
- context: e.context,
91
- "payment-method-option-response-entry": a,
92
- "country-code": e.countryCode,
93
- "customer-id": e.customerId,
94
- variant: e.variant,
95
- amount: e.amount,
96
- "invoice-id": e.invoiceId,
97
- selected: m(E)({ selectedIntegration: y.value, paymentMethodOption: a }),
98
- "validate-on-submit": e.validateOnSubmit,
99
- "force-store-payment-method": e.forceStorePaymentMethod,
100
- "store-payment-method": e.storePaymentMethod,
101
- "redirects-on-success": e.redirectsOnSuccess,
102
- "billing-entity-name": e.billingEntityName,
103
- onSelect: P,
104
- onPaymentFailed: n[0] || (n[0] = (r) => t.$emit("payment-failed", r)),
105
- onPaymentSuccess: n[1] || (n[1] = (r) => t.$emit("payment-success")),
106
- onInvalid: F,
107
- onReady: n[2] || (n[2] = (r) => t.$emit("ready"))
108
- }, 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"])) : m(N)(a) ? (s(), S(m(d), {
109
- key: 1,
110
- ref_for: !0,
111
- ref: $(a),
112
- context: e.context,
113
- "payment-method-option-response-entry": a,
114
- "country-code": e.countryCode,
115
- "customer-id": e.customerId,
116
- variant: e.variant,
117
- amount: e.amount,
118
- "invoice-id": e.invoiceId,
119
- selected: m(E)({ selectedIntegration: y.value, paymentMethodOption: a }),
120
- email: e.email,
121
- name: e.name,
122
- "validate-on-submit": e.validateOnSubmit,
123
- "force-store-payment-method": e.forceStorePaymentMethod,
124
- "store-payment-method": e.storePaymentMethod,
125
- "redirects-on-success": e.redirectsOnSuccess,
126
- "billing-entity-name": e.billingEntityName,
127
- onSelect: P,
128
- onPaymentFailed: n[3] || (n[3] = (r) => t.$emit("payment-failed", r)),
129
- onPaymentSuccess: n[4] || (n[4] = (r) => t.$emit("payment-success")),
130
- onInvalid: n[5] || (n[5] = (r) => t.$emit("invalid")),
131
- onReady: n[6] || (n[6] = (r) => t.$emit("ready"))
132
- }, 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"])) : w("", !0)
133
- ], 64))), 128)),
134
- u.value ? (s(), S(m(M), {
135
- key: 0,
136
- variant: "error",
137
- class: "mt-2"
138
- }, {
139
- default: D(() => [
140
- O(T(m(C)({
141
- defaultMessage: "Select a payment method",
142
- id: "payment_integration_form.select_payment_method_error",
143
- description: "Error shown when no payment method is selected"
144
- })), 1)
145
- ]),
146
- _: 1
147
- })) : w("", !0)
148
- ], 64));
149
- }
150
- });
151
- export {
152
- K as _,
153
- J as h
154
- };
@@ -1,98 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),re=require("./useService-H7BjLg8P.js"),N=require("./customElements-DUMRMFQ5.js"),F=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js"),ie=require("./payments-CS7_YcOW.js"),U=require("./url-vloPOiXd.js"),de=require("./paymentMethods-Cw-i95mM.js"),y=require("./useExperimentalFeature-CGIkgFR4.js"),se=require("./adyenSdk-BP2XXzeJ.js"),Y=require("./paymentFailure-Cki8c5BX.js"),ce=".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";function ue(u){return(u==null?void 0:u.querySelector(ce))??null}function me(u,p){return!!u&&!!p&&!u.contains(p)}const pe=u=>{let p={};return u==="TOKENIZE"&&(p={"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ą"}}),p},ye={class:"sv-sepa-mandate mt-3"},le=n.defineComponent({__name:"SepaMandateNotice",props:{billingEntityName:{type:String}},setup(u){const p=u,{$t:g}=N.useIntl(),i=n.computed(()=>g({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(()=>p.billingEntityName?g({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:p.billingEntityName}):g({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(()=>p.billingEntityName?g({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:p.billingEntityName}):g({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"})),l=n.computed(()=>g({defaultMessage:"As part of your rights, you're entitled to a refund from your bank under the terms and conditions of your agreement with your bank. You must claim a refund within 8 weeks from the date your account was debited. You can request a statement from your bank explaining your rights.",description:"SEPA direct debit mandate refund rights, held against the payer's own bank",id:"payments.sepa_mandate.refund_rights"}));return(h,v)=>(n.openBlock(),n.createElementBlock("div",ye,[n.createVNode(n.unref(N._sfc_main),{tag:"p",variant:"body-xs",class:"font-semibold"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.value),1)]),_:1}),n.createVNode(n.unref(N._sfc_main),{tag:"p",variant:"body-xs",color:"subtle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(b.value)+" "+n.toDisplayString(a.value)+" "+n.toDisplayString(l.value),1)]),_:1})]))}}),T="ADYEN",he=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","invalid","ready"],setup(u,{expose:p,emit:g}){let i=null,b=null;const a=u,l=g;p({submit:V});const h=n.ref(),v=n.ref(null),A=n.ref(null);let _;const R=n.ref(!1),P=n.ref(),d=N.useLogger(),{locale:j}=N.useIntl(),{authorizePayment:Z,getPaymentDetails:z}=ie.createPaymentsService(),{tokenizePaymentMethod:G}=de.createPaymentMethodsService(),O=y.useExperimentalFeature(),M=n.computed(()=>{var e;return y.getAdyenDropInPaymentMethods(a.paymentMethodOptionResponseEntry,{excludeExpressPaymentMethods:!!((e=O==null?void 0:O.value)!=null&&e["express-checkout"])})}),S=n.computed(()=>M.value.length>0);function m(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,l("payment-failed",t)}function V(){if(!(i!=null&&i.isValid)){if(i&&!i.activePaymentMethod){l("invalid","NO_PAYMENT_METHOD");return}i==null||i.showValidation(),l("invalid");return}try{i.submit()}catch(e){d.error("ADYEN_SUBMIT_FAILED","Failed to submit Adyen drop-in",m({reason:"ADYEN_SUBMIT_FAILED",cause:e}),e),E({code:a.variant==="TOKENIZE"?"TOKENIZE_FAILED":"AUTHORIZATION_FAILED",message:"Failed to submit Adyen drop-in",error:e})}}async function K(){const e=y.toMinorUnitAmount(a.amount),t=M.value;return{checkoutConfig:{amount:e,clientKey:y.getAdyenClientKeyFromPaymentMethodOptionsResponse(a.paymentMethodOptionResponseEntry),environment:y.getAdyenEnvironmentFromPaymentMethodOptionsResponse(a.paymentMethodOptionResponseEntry,d),locale:j,translations:pe(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&&l("select",{paymentMethodType:r,paymentGatewayVariant:"ADYEN"})},onReady:()=>l("ready")}}}function H(){return Promise.all([se.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;d.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(),!!h.value)try{const[e,t]=await H(),{checkoutConfig:r,dropInConfig:o}=await K();b=await e.AdyenCheckout(r),i=new e.Dropin(b,{...o,paymentMethodComponents:e.dropInPaymentMethodComponents}).mount(h.value),Q(t),q()}catch(e){d.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to mount Adyen web drop-in",m({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=ue(h.value);if(me(e,v.value)){A.value=null,n.nextTick(()=>A.value=e);return}A.value=e}function q(){_==null||_.disconnect(),h.value&&(_=new MutationObserver(()=>C()),_.observe(h.value,{childList:!0,subtree:!0}),C())}function $(){_==null||_.disconnect(),_=void 0,A.value=null}async function L(){$(),i&&(i.unmount(),i=null),h.value&&(h.value.innerHTML="")}function Q(e){var r;const t=(r=h.value)==null?void 0:r.getRootNode();if(t instanceof ShadowRoot){const o=document.createElement("style");o.textContent=e,t.appendChild(o);const s=document.createElement("style");s.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"&&(s.textContent+=`
95
- .adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {
96
- display: none;
97
- }
98
- `),t.appendChild(s)}}function w(e,{paymentMethodType:t,actions:r,logFailure:o}){if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===T){const s=W(e,t);if(!s){o(e);return}i.handleAction(s),r.resolve({resultCode:e.action.adyen.result_code,action:s});return}if(e.payment.result==="AUTHORIZED"){R.value=!0,r.resolve({resultCode:"Authorised"});return}o(e),r.resolve({resultCode:"Error"})}function J(...e){const[t,r,o]=e;a.validateOnSubmit().then(s=>{if(!s){i==null||i.setStatus("ready"),l("invalid");return}const c=a.paymentMethodOptionResponseEntry.payment_acceptor.id,B={risk_data:y.transformObjectToAdyenObject(t.data.riskData),payment_method:y.transformObjectToAdyenObject(t.data.paymentMethod),browser_info:y.transformObjectToAdyenObject(t.data.browserInfo)};if(a.variant==="AUTHORIZE"){const k=y.createReturnUrl({paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});Z({payment_acceptor_id:c,...a.customerId?{customer_id:a.customerId}:{},payment_gateway_variant:T,adyen:{...B,store_payment_method:a.storePaymentMethod??(a.forceStorePaymentMethod||t.data.storePaymentMethod)},amount:a.amount,...a.context?{context:a.context}:{},return_url:k}).then(f=>w(f,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:I=>d.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,m({reason:"PAYMENT_AUTHORIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:I}),I)})).catch(f=>{d.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${c}`,m({reason:"PAYMENT_AUTHORIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:f}),f),o.resolve({resultCode:"Error"})});return}if(a.variant==="TOKENIZE"){const k=y.createReturnUrl({paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});if(!a.customerId){d.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${c}`,m({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),E({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}G({customer_id:a.customerId,payment_acceptor_id:c,payment_gateway_variant:T,adyen:B,return_url:k}).then(f=>w(f,{paymentMethodType:t.data.paymentMethod.type,actions:o,logFailure:I=>d.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,m({reason:"TOKENIZATION_REJECTED",paymentMethodType:t.data.paymentMethod.type,cause:I}),I)})).catch(f=>{d.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${c}`,m({reason:"TOKENIZATION_FAILED",paymentMethodType:t.data.paymentMethod.type,cause:f}),f),o.resolve({resultCode:"Error"})})}}).catch(s=>{d.error("INTEGRATION_ERROR","Unhandled error in payment submission flow",m({reason:"ADYEN_SUBMISSION_FLOW_FAILED",cause:s}),s)})}function W(e,t){if(e.status!=="ACTION_REQUIRED")return;const r=e.action;if(r.payment_gateway_variant!="ADYEN")return;const o=r.adyen;return{paymentMethodType:(o==null?void 0:o.payment_method_type)??t,method:r.method,url:r.url,data:r.data,type:o==null?void 0:o.action_type,paymentData:o==null?void 0:o.payment_data,sdkData:o==null?void 0:o.sdk_data}}function X(...e){const[t]=e,r=t.data.details,o=t.data.paymentData;if(a.paymentMethodOptionResponseEntry.payment_acceptor.id){x({detailsResult:r?ee(r):void 0,paymentDataResult:o,paymentAcceptorId:a.paymentMethodOptionResponseEntry.payment_acceptor.id});return}d.error("PAYMENT_ACCEPTOR_MISSING","Additional details arrived without a payment acceptor id",m({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;d.error("ADYEN_PAYMENT_FAILED","Adyen reported the payment as failed",m({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(),l("payment-success")}function ae(...e){const[t,r]=e;t.name!=="CANCEL"&&(d.error("INTEGRATION_ERROR","The Adyen drop-in reported an error",m({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 x({detailsResult:e,threeDSResult:t,redirectResult:r,paymentDataResult:o,paymentAcceptorId:s}){z({paymentAcceptorId:s,paymentGatewayVariant:T,adyen:{...e?{details:e}:{},...r?{redirect_result:r}:{},...t?{threeds_result:t}:{},...o?{payment_data:o}:{}}}).then(c=>{if(c.payment_status==="FAILURE"){d.error("PAYMENT_DETAILS_REJECTED","Payment details returned a failed payment",m({reason:"PAYMENT_DETAILS_REJECTED",paymentAcceptorId:s,extra:{paymentStatus:c.payment_status}})),E({code:"AUTHORIZATION_FAILED",message:"Failed getting payment details",error:c});return}if(c.payment_status==="SUCCESS"){l("payment-success");return}}).catch(c=>{d.error("PAYMENT_DETAILS_CALL_FAILED","Failed fetching payment details",m({reason:"PAYMENT_DETAILS_CALL_FAILED",paymentAcceptorId:s,cause:c}),c),E({code:"PAYMENT_DETAILS_CALL_FAILED",message:"Failed fetching payment details",error:c})})}function oe(){const e=U.getQueryParam(y.REDIRECT_RESULT_QUERY_STRING),t=U.getQueryParam(y.PAYMENT_ACCEPTOR_ID_QUERY_STRING);if(e){if(!t){d.error("INVALID_REDIRECT_RESULT","Redirect result is set but payment acceptor id is missing",m({reason:"INVALID_REDIRECT_RESULT"})),E({code:"REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING",message:"Redirect result is set but payment acceptor id is missing"});return}x({paymentAcceptorId:t,detailsResult:{redirectResult:decodeURI(e)}})}}return n.onMounted(()=>{D(),oe()}),n.onBeforeUnmount(()=>{L()}),n.watch(()=>a.paymentMethodOptionResponseEntry,(e,t)=>{re.isEqual(e,t)||D()},{deep:!0}),(e,t)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[R.value?(n.openBlock(),n.createBlock(F._sfc_main,{key:0,variant:u.variant,redirecting:u.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:h},null,512)):n.createCommentVNode("",!0),A.value?(n.openBlock(),n.createBlock(n.Teleport,{key:3,to:A.value},[n.createElementVNode("div",{ref_key:"sepaNoticeRef",ref:v},[n.createVNode(le,{"billing-entity-name":u.billingEntityName},null,8,["billing-entity-name"])],512)],8,["to"])):n.createCommentVNode("",!0)],64))}});exports.default=he;
@@ -1,102 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),j=require("./useService-H7BjLg8P.js"),N=require("./useExperimentalFeature-CGIkgFR4.js"),w=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js"),H=require("./payments-CS7_YcOW.js"),z=require("./paymentMethods-Cw-i95mM.js"),O=require("./url-vloPOiXd.js"),q=require("./customElements-DUMRMFQ5.js"),C=require("./paymentFailure-Cki8c5BX.js"),F="https://js.stripe.com/dahlia/stripe.js",Y=`<!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <style>
7
- * { box-sizing: border-box; margin: 0; padding: 0; }
8
- body { overflow: hidden; }
9
- </style>
10
- </head>
11
- <body>
12
- <div id="stripe-root"></div>
13
- <script src="${F}"><\/script>
14
- <script>
15
- (function () {
16
- let stripe, elements, countryCode, email, name, parentOrigin;
17
-
18
- window.addEventListener('message', function (event) {
19
- if (!event.data || typeof event.data !== 'object') return;
20
- if (event.source !== window.parent) return;
21
-
22
- if (event.data.type === 'stripe:init') {
23
- parentOrigin = event.origin;
24
- countryCode = event.data.countryCode;
25
- email = event.data.email;
26
- name = event.data.name;
27
- stripe = Stripe(event.data.publicKey);
28
- elements = stripe.elements(event.data.options);
29
- const paymentElement = elements.create('payment', { layout: { type: 'accordion', defaultCollapsed: false }, wallets: event.data.options.wallets, fields: event.data.options.fields });
30
-
31
- paymentElement.on('ready', function () {
32
- parent.postMessage({ type: 'stripe:ready' }, parentOrigin);
33
- });
34
-
35
- paymentElement.on('change', function (e) {
36
- parent.postMessage({ type: 'stripe:change', paymentMethodType: e.value.type }, parentOrigin);
37
- });
38
-
39
- paymentElement.on('loaderror', function (e) {
40
- parent.postMessage({
41
- type: 'stripe:loaderror',
42
- error: { message: e.error.message, type: e.error.type }
43
- }, parentOrigin);
44
- });
45
-
46
- paymentElement.mount('#stripe-root');
47
-
48
- new ResizeObserver(function () {
49
- parent.postMessage({
50
- type: 'stripe:resize',
51
- height: document.documentElement.scrollHeight
52
- }, parentOrigin);
53
- }).observe(document.documentElement);
54
- }
55
-
56
- if (event.data.type === 'stripe:submit') {
57
- if (!elements || !parentOrigin || event.origin !== parentOrigin) return;
58
- const submitEmail = 'email' in event.data ? event.data.email : email;
59
- const submitName = 'name' in event.data ? event.data.name : name;
60
- elements.submit().then(function (submitResult) {
61
- if (submitResult.error) {
62
- parent.postMessage({
63
- type: 'stripe:submit:error',
64
- error: {
65
- message: submitResult.error.message,
66
- type: submitResult.error.type,
67
- code: submitResult.error.code
68
- }
69
- }, parentOrigin);
70
- return;
71
- }
72
- const billingDetails = {};
73
- if (countryCode) billingDetails.address = { country: countryCode };
74
- if (submitEmail) billingDetails.email = submitEmail;
75
- if (submitName) billingDetails.name = submitName;
76
- const tokenParams = Object.keys(billingDetails).length
77
- ? { payment_method_data: { billing_details: billingDetails } }
78
- : {};
79
- stripe.createConfirmationToken({ elements: elements, params: tokenParams }).then(function (tokenResult) {
80
- if (tokenResult.error) {
81
- parent.postMessage({
82
- type: 'stripe:submit:error',
83
- error: {
84
- message: tokenResult.error.message,
85
- type: tokenResult.error.type,
86
- code: tokenResult.error.code
87
- }
88
- }, parentOrigin);
89
- return;
90
- }
91
- parent.postMessage({
92
- type: 'stripe:submit:success',
93
- confirmationTokenId: tokenResult.confirmationToken.id
94
- }, parentOrigin);
95
- });
96
- });
97
- }
98
- });
99
- })();
100
- <\/script>
101
- </body>
102
- </html>`,G=["src","height"],Q=n.defineComponent({__name:"PaymentIntegrationFormStripeFrame",props:{publicKey:{type:String},options:{type:Object},countryCode:{type:String},email:{type:String},name:{type:String}},emits:["ready","change","loaderror","submit-success","submit-error"],setup(p,{expose:f,emit:R}){const t=p,s=R;f({triggerSubmit:h});const m=n.ref(),y=n.ref(0),E=n.ref();function A(){var o,r;(r=(o=m.value)==null?void 0:o.contentWindow)==null||r.postMessage({type:"stripe:init",publicKey:t.publicKey,options:t.options,countryCode:t.countryCode,email:t.email,name:t.name},"*")}function h(){var o,r;(r=(o=m.value)==null?void 0:o.contentWindow)==null||r.postMessage({type:"stripe:submit",email:t.email,name:t.name},"*")}const I={api_connection_error:!0,api_error:!0,authentication_error:!0,card_error:!0,idempotency_error:!0,invalid_request_error:!0,rate_limit_error:!0,validation_error:!0};function c(o){return typeof o=="string"&&Object.hasOwn(I,o)}function S(o){return typeof o=="object"&&o!==null}function b(o){if(!m.value||o.source!==m.value.contentWindow||!S(o.data))return;const r=o.data,v=r.type;if(!(typeof v!="string"||!v.startsWith("stripe:")))switch(v){case"stripe:ready":s("ready");break;case"stripe:change":s("change",typeof r.paymentMethodType=="string"?r.paymentMethodType:"card");break;case"stripe:loaderror":{const d=S(r.error)?r.error:{};s("loaderror",{message:typeof d.message=="string"?d.message:void 0,type:c(d.type)?d.type:void 0});break}case"stripe:resize":typeof r.height=="number"&&(y.value=r.height);break;case"stripe:submit:success":typeof r.confirmationTokenId=="string"&&s("submit-success",r.confirmationTokenId);break;case"stripe:submit:error":{const d=S(r.error)?r.error:{};s("submit-error",{message:typeof d.message=="string"?d.message:void 0,type:c(d.type)?d.type:void 0,code:typeof d.code=="string"?d.code:void 0});break}}}return n.onMounted(()=>{const o=new Blob([Y],{type:"text/html"});E.value=URL.createObjectURL(o),window.addEventListener("message",b)}),n.onBeforeUnmount(()=>{window.removeEventListener("message",b),E.value&&URL.revokeObjectURL(E.value)}),n.watch(()=>t.options,(o,r)=>{j.isEqual(o,r)||A()},{deep:!0}),(o,r)=>(n.openBlock(),n.createElementBlock("iframe",{ref_key:"iframeRef",ref:m,src:E.value,height:y.value||void 0,frameborder:"0",style:{width:"100%",display:"block",border:"none"},title:"Payment form",onLoad:A},null,40,G))}}),D={link:"never"},M={variables:{borderRadius:"4px",colorBackground:"rgba(243, 244, 246, 0.5)"},rules:{".TermsText":{fontSize:"14px"},".Input":{backgroundColor:"rgba(243, 244, 246, 0.5)",fontSize:"14px",borderColor:"rgb(229, 231, 235)"}}};function W(p,f){return{billingDetails:{address:{country:"never"},...p?{email:"never"}:{},...f?{name:"never"}:{}}}}function $({amount:p,email:f,name:R,variant:t,storePaymentMethod:s=!1}){const m=p.currency.toLowerCase(),y=W(f,R);return t==="TOKENIZE"?{mode:"setup",currency:m,setup_future_usage:"off_session",wallets:D,fields:y,appearance:M}:{mode:"payment",currency:m,amount:N.toMinorUnitAmount(p).value,...s?{setup_future_usage:"off_session"}:{},wallets:D,fields:y,appearance:M}}const T="STRIPE",V=n.defineComponent({__name:"PaymentIntegrationFormStripe",props:{email:{type:String},name:{type:String},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)},context:{type:Object},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean},redirectsOnSuccess:{type:Boolean},billingEntityName:{type:String}},emits:["select","payment-failed","payment-success","invalid","ready"],setup(p,{expose:f,emit:R}){const t=p,s=R;f({submit:v});const m=n.ref(!1),y=n.ref(),E=n.ref(),A=n.computed(()=>t.storePaymentMethod??t.forceStorePaymentMethod??!1),h=n.computed(()=>$({amount:t.amount,email:t.email,name:t.name,variant:t.variant,storePaymentMethod:A.value})),I=n.ref(null),c=q.useLogger(),{authorizePayment:S}=H.createPaymentsService(),{tokenizePaymentMethod:b}=z.createPaymentMethodsService(),o=n.computed(()=>{var e,a;return(a=(e=t.paymentMethodOptionResponseEntry.integration.payment_gateway)==null?void 0:e.stripe)==null?void 0:a.public_key});function r(e){return C.createPaymentFailureContext({gateway:T,paymentAcceptorId:t.paymentMethodOptionResponseEntry.payment_acceptor.id,variant:t.variant,invoiceId:t.invoiceId,customerId:t.customerId,...e})}function v(){d().catch(e=>{c.error("STRIPE_SUBMIT_FAILED","Unexpected error during Stripe submission",r({reason:"STRIPE_SUBMIT_FAILED",cause:e}),e)})}async function d(){if(!await t.validateOnSubmit()||!E.value){s("invalid");return}E.value.triggerSubmit()}function L(e){if(e.type==="validation_error"){s("invalid");return}c.error("STRIPE_CONFIRMATION_TOKEN_FAILED","Stripe submission failed",r({reason:"STRIPE_CONFIRMATION_TOKEN_FAILED",cause:e}),e),l({code:t.variant==="TOKENIZE"?"TOKENIZE_FAILED":"AUTHORIZATION_FAILED",message:e.message??"Stripe submission failed",error:e})}function k(e){return new Promise((a,u)=>{if(window.Stripe){a(window.Stripe(e));return}const i=document.createElement("script");i.src=F,i.onload=()=>{if(!window.Stripe){u(new Error("Stripe not available after script load"));return}a(window.Stripe(e))},i.onerror=()=>u(new Error("Failed to load Stripe.js")),document.head.appendChild(i)})}async function U(){if(I.value)return I.value;const e=o.value;if(!e)throw new Error("Missing Stripe public key");const a=await k(e);return I.value=a,a}async function x(e){const a=t.paymentMethodOptionResponseEntry.payment_acceptor.id,u=N.createReturnUrl({paymentAcceptorId:a,redirectUrl:window.location.href});if(t.variant==="AUTHORIZE"){try{const i=await S({payment_acceptor_id:a,...t.customerId?{customer_id:t.customerId}:{},payment_gateway_variant:T,stripe:{confirmation_token_id:e},amount:t.amount,...t.context&&t.context.type!=="CHARGE_ON_DEMAND"?{context:t.context}:{},return_url:u});await P(i)}catch(i){c.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${a}`,r({reason:"PAYMENT_AUTHORIZATION_FAILED",cause:i}),i),l({code:"AUTHORIZATION_FAILED",message:"Payment authorization failed",error:i})}return}if(t.variant==="TOKENIZE"){if(!t.customerId){c.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${a}`,r({reason:"TOKENIZATION_FAILED_NO_CUSTOMER"})),l({code:"TOKENIZE_FAILED",message:"Missing customer id"});return}try{const i=await b({customer_id:t.customerId,payment_acceptor_id:a,payment_gateway_variant:T,stripe:{confirmation_token_id:e},return_url:u});await P(i)}catch(i){c.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${a}`,r({reason:"TOKENIZATION_FAILED",cause:i}),i),l({code:"TOKENIZE_FAILED",message:"Tokenization failed",error:i})}}}async function P(e){var a;if(e.status==="ACTION_REQUIRED"&&e.action.payment_gateway_variant===T){const u=e.action.client_secret||((a=e.action.data)==null?void 0:a.client_secret);if(!u){c.error("STRIPE_ACTION_FAILED","Missing client_secret in Stripe ACTION_REQUIRED response",r({reason:"STRIPE_ACTION_MISSING_CLIENT_SECRET",extra:{paymentStatus:e.status}})),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:e});return}let i;try{i=await U()}catch(g){c.error("STRIPE_ACTION_FAILED","Failed to load Stripe.js",r({reason:"STRIPE_SDK_LOAD_FAILED",cause:g}),g),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:g});return}const{error:_}=await i.handleNextAction({clientSecret:u});if(_){c.error("STRIPE_ACTION_FAILED","Stripe handleNextAction failed",r({reason:"STRIPE_NEXT_ACTION_FAILED",cause:_,extra:{stripeErrorCode:_.code,stripeErrorType:_.type}}),_),l({code:"AUTHORIZATION_FAILED",message:"Payment action failed",error:_});return}m.value=!0,s("payment-success");return}if(e.status==="SUCCESS"){m.value=!0,s("payment-success");return}c.error("STRIPE_ACTION_FAILED","Unexpected payment result status",r({reason:"STRIPE_UNEXPECTED_PAYMENT_STATUS",extra:{paymentStatus:e.status}})),l({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:e})}async function Z(){const e=t.paymentMethodOptionResponseEntry.payment_acceptor.id;if(O.getQueryParam(N.PAYMENT_ACCEPTOR_ID_QUERY_STRING)!==e)return;const u=O.getQueryParam("redirect_status"),i=O.getQueryParam("payment_intent_client_secret"),_=O.getQueryParam("setup_intent_client_secret");if(!u||!i&&!_)return;if(u==="succeeded"){m.value=!0,s("payment-success");return}const g=new globalThis.Error(`Stripe redirect returned status: ${u}`);c.error("STRIPE_REDIRECT_RETURN_FAILED","Stripe redirect returned non-succeeded status",r({reason:"STRIPE_REDIRECT_RETURN_FAILED",extra:{redirectStatus:u}}),g),l({code:"AUTHORIZATION_FAILED",message:"Payment failed",error:g})}function B(){s("select",{paymentMethodType:"card",paymentGatewayVariant:T}),s("ready")}function K(e){c.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to load the Stripe payment form",r({reason:"STRIPE_FORM_LOAD_FAILED",cause:e,extra:{stripeErrorType:e.type}}),e),l({code:"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",message:e.message??"Failed to load payment form",error:e})}function l(e){const a=C.createPaymentFailureError(e);y.value=a,s("payment-failed",a)}return n.onMounted(()=>{Z().catch(e=>{c.error("STRIPE_REDIRECT_RETURN_FAILED","handleRedirectReturn threw unexpectedly",r({reason:"STRIPE_REDIRECT_RETURN_THREW",cause:e}),e)})}),n.onBeforeUnmount(()=>{I.value=null}),(e,a)=>m.value?(n.openBlock(),n.createBlock(w._sfc_main,{key:0,variant:p.variant,redirecting:p.redirectsOnSuccess},null,8,["variant","redirecting"])):y.value?(n.openBlock(),n.createBlock(w._sfc_main$1,{key:1,error:y.value},null,8,["error"])):o.value?(n.openBlock(),n.createBlock(Q,{key:2,ref_key:"frameRef",ref:E,"public-key":o.value,options:h.value,"country-code":p.countryCode,email:p.email,name:p.name,onReady:B,onChange:a[0]||(a[0]=u=>s("select",{paymentMethodType:u,paymentGatewayVariant:T})),onLoaderror:K,onSubmitSuccess:x,onSubmitError:L},null,8,["public-key","options","country-code","email","name"])):n.createCommentVNode("",!0)}});exports.default=V;