@solvimon/solvimon-web 0.1.0-alpha.26 → 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 (438) hide show
  1. package/README.md +138 -27
  2. package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
  3. package/dist/{Avatar.vue.es-BqQHvLGA.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +17 -19
  5. package/dist/{Button.vue.es-C32_baQN.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
  6. package/dist/{ChargeOnDemandModal-CIiI74ls.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +233 -253
  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-CKCOY5T6.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-Da-lAmTl.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
  12. package/dist/{CustomerBillingInformation.vue.es-BxBQt4Q0.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
  13. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +31 -36
  14. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
  15. package/dist/{DividerText.vue.es-DKl3FnDJ.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-rRKgmkzV.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
  18. package/dist/{IconButton.vue.es-UlqwNPAX.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
  19. package/dist/{IconTitle.vue.es-CK9k69tV.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-DUfJl07Y.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-DQ4KvTaw.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
  24. package/dist/{Modal.vue.es-B9xMiyn3.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
  25. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +73 -75
  26. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
  27. package/dist/{PaymentHistoryBlock-DYa99P1M.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
  28. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
  29. package/dist/{PaymentIntegrationForm-UWoyZgsR.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-D4qfNtZ_.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -297
  32. package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
  33. package/dist/{PaymentMethod.vue.es-CKu5nApX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
  34. package/dist/{PaymentMethodForm-B05sHWcW.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
  35. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +65 -75
  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-DGpXRtp4.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-CJpvUP3-.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
  41. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
  42. package/dist/{RadioGroupExtended.vue.es-BalV7gwp.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
  43. package/dist/{Section.vue.es-D7eiXUbk.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
  44. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.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-C3Zm6Wc9.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
  47. package/dist/{SubscriptionDetails.entry.ce-WEimiOex.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
  48. package/dist/{SubscriptionSchedules-DrrEAPlx.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
  49. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.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-DFU0IULg.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +124 -90
  52. package/dist/{TooltipParagraph.vue.es-BXbOJmjr.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
  53. package/dist/{TrialChip.vue.es-C_yRujip.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-CGa6b2Lt.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 -63
  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 -65
  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-CLfzTbbX.mjs → de-DE-BW8dMvhW.mjs} +87 -19
  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-DJTwftJv.mjs → invoices-Cf1qDAv4.mjs} +40 -35
  79. package/dist/{it-IT-Cym1UvvK.mjs → it-IT-Byg06KWc.mjs} +87 -19
  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-D0c4x5C0.mjs → nl-NL-x3zQqzZ7.mjs} +93 -25
  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/CheckoutTitle.types.d.ts +10 -0
  102. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
  103. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
  104. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
  105. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
  106. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +9 -5
  107. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -1
  108. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +5 -1
  109. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
  110. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
  111. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
  112. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
  113. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
  114. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
  115. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
  116. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
  117. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
  118. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
  119. package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
  120. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
  121. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
  122. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
  123. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
  124. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
  125. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  126. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
  127. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
  128. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
  129. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
  130. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
  131. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  132. package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
  133. package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
  134. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
  135. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
  136. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
  137. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
  138. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
  139. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
  140. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
  141. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
  142. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
  143. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
  144. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
  145. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
  146. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
  147. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
  148. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
  149. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
  150. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
  151. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
  152. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
  153. package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
  154. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
  155. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
  156. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
  157. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
  158. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
  159. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
  160. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
  161. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
  162. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
  163. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
  164. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
  165. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
  166. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
  167. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
  168. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
  169. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
  170. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
  171. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
  172. package/dist/types/public/core/action-request.types.d.ts +5 -0
  173. package/dist/types/public/core/registry.ce.d.ts +3 -3
  174. package/dist/types/public/core/registry.d.ts +0 -3
  175. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
  176. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
  177. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
  178. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
  179. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
  180. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
  181. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
  182. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
  183. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
  184. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
  185. package/dist/types/services/paymentMethods.types.d.ts +2 -10
  186. package/dist/types/services/requests.types.d.ts +16 -6
  187. package/dist/types/types/errors.d.ts +3 -2
  188. package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
  189. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
  190. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
  191. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
  192. package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
  193. package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
  194. package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
  195. package/dist/{useCustomer-XZKWsolE.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
  196. package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
  197. package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
  198. package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
  199. package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
  200. package/dist/{useLoadInitialData-CR0kbYw8.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
  201. package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
  202. package/dist/{usePaymentMethodAvailability-ZH-m3B-A.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +17 -18
  203. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
  204. package/dist/{usePaymentMethods-B-OKRyKd.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
  205. package/dist/{usePayments-CV85OV8V.mjs → usePayments-CykCZPG2.mjs} +7 -7
  206. package/dist/usePortal-CxzKGhbK.mjs +7 -0
  207. package/dist/useService-B0OQJmif.mjs +56 -0
  208. package/dist/{useTimePeriod.es-B22-fno3.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
  209. package/dist/useViewport-psZejz_H.mjs +19 -0
  210. package/package.json +35 -59
  211. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs +0 -223
  212. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js +0 -1
  213. package/dist/Alert.vue.es-RyK53a2P.js +0 -1
  214. package/dist/Amount.vue.es-DExaYBqm.js +0 -1
  215. package/dist/Avatar.vue.es-Bm6MCMAL.js +0 -1
  216. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js +0 -1
  217. package/dist/Button.vue.es-qGvnOKnK.js +0 -1
  218. package/dist/ChargeOnDemandModal-DIQaGnRs.js +0 -1
  219. package/dist/Checkout.entry.ce-8EcavNgT.js +0 -2
  220. package/dist/Checkout.entry.ce-BA5ljKj8.mjs +0 -3924
  221. package/dist/Chip.vue.es-D60gTbfe.js +0 -1
  222. package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
  223. package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
  224. package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
  225. package/dist/ContextMenu.vue.es-C7KI8Gz6.js +0 -1
  226. package/dist/CustomerBillingInformation.vue.es-bFUx81Ig.js +0 -1
  227. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
  228. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js +0 -1
  229. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs +0 -2701
  230. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +0 -1
  231. package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
  232. package/dist/DividerText.vue.es-BF3gnr4e.js +0 -1
  233. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs +0 -335
  234. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js +0 -1
  235. package/dist/ErrorNotification.vue.es-BX9dHEc-.js +0 -1
  236. package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
  237. package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
  238. package/dist/IconButton.vue.es-Bwdfu-jm.js +0 -1
  239. package/dist/IconTitle.vue.es-Cei98MBw.js +0 -1
  240. package/dist/Input.vue.es-B47l_feL.js +0 -1
  241. package/dist/Input.vue.es-D9IjIWc-.mjs +0 -235
  242. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js +0 -1
  243. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs +0 -41
  244. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js +0 -1
  245. package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +0 -1
  246. package/dist/Modal.vue.es-8LN4gBh0.js +0 -1
  247. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js +0 -1
  248. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js +0 -1
  249. package/dist/PaymentHistoryBlock-Ds93gNvh.js +0 -1
  250. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js +0 -1
  251. package/dist/PaymentIntegrationForm-B_Db4DG1.js +0 -1
  252. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +0 -1
  253. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +0 -154
  254. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +0 -98
  255. package/dist/PaymentIntegrationFormStripe-BIiMCWlV.mjs +0 -587
  256. package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +0 -102
  257. package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +0 -1
  258. package/dist/PaymentMethodForm-1d0YIGOu.js +0 -1
  259. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +0 -1
  260. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js +0 -1
  261. package/dist/PlanCustomizationEditor-CEMP_Dhz.js +0 -1
  262. package/dist/PlanCustomizationEditor-CpZeilm5.mjs +0 -694
  263. package/dist/PricingGroupRangeInput.vue.es-DZSJ5Mz0.js +0 -185
  264. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +0 -1
  265. package/dist/RadioGroupExtended.vue.es-Dt6LH9Yh.js +0 -1
  266. package/dist/Section.vue.es-zVXBHAL6.js +0 -1
  267. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js +0 -1
  268. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +0 -1
  269. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs +0 -51
  270. package/dist/StepInput.vue.es-mAnuCuDQ.js +0 -1
  271. package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +0 -1
  272. package/dist/SubscriptionSchedules-Cm5Dt-1H.js +0 -1
  273. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +0 -1
  274. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs +0 -91
  275. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js +0 -1
  276. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js +0 -1
  277. package/dist/TooltipParagraph.vue.es-Cph6zT31.js +0 -1
  278. package/dist/TrialChip.vue.es-C_wgHGuN.js +0 -1
  279. package/dist/accel.svg.es-DFJXdioD.js +0 -1
  280. package/dist/ach.svg.es-BYP873jU.js +0 -1
  281. package/dist/adyen-BJfC7N6f.js +0 -1
  282. package/dist/adyen-CvsH5fok.mjs +0 -117
  283. package/dist/adyen-Druit6gz.js +0 -1
  284. package/dist/adyenSdk-BP2XXzeJ.js +0 -1
  285. package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
  286. package/dist/amex.svg.es-DKhW4Txt.js +0 -1
  287. package/dist/api.es-duCDtZD9.js +0 -1
  288. package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
  289. package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
  290. package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
  291. package/dist/carnet.svg.es-DY04-F2L.js +0 -1
  292. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
  293. package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
  294. package/dist/cn.es-D9YMDvG2.js +0 -1
  295. package/dist/comparators.es-OGt19O9U.js +0 -1
  296. package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
  297. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
  298. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
  299. package/dist/components/Invoice/Invoice.cjs +0 -1
  300. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
  301. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
  302. package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
  303. package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
  304. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
  305. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
  306. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
  307. package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
  308. package/dist/configuration-akTS7Wiw.js +0 -1
  309. package/dist/core/index.cjs +0 -1
  310. package/dist/countryData.es-C4jHBzfo.js +0 -1
  311. package/dist/customElements-C963-LtW.js +0 -1215
  312. package/dist/customElements-D5DAoHRI.mjs +0 -6633
  313. package/dist/customer-DKa1B2vp.mjs +0 -31
  314. package/dist/customer-TE1FnGT0.js +0 -1
  315. package/dist/customer.es-BButyYo0.js +0 -1
  316. package/dist/dana.svg.es-BDtZLpwd.js +0 -1
  317. package/dist/dankort.svg.es-CksaipXF.js +0 -1
  318. package/dist/de-DE-B4TUdnUf.js +0 -1
  319. package/dist/de-DE-DaBBl-Ak.js +0 -1
  320. package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
  321. package/dist/discover.svg.es-DgqWCMUM.js +0 -1
  322. package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
  323. package/dist/elo.svg.es-C-BzjuRP.js +0 -1
  324. package/dist/en-US-BNevqm0M.js +0 -1
  325. package/dist/en-US-D6SGRAch.mjs +0 -325
  326. package/dist/en-US-J85TQRI8.js +0 -1
  327. package/dist/en-US-SDhjlY_v.mjs +0 -301
  328. package/dist/eps.svg.es-B_85bP-W.js +0 -1
  329. package/dist/error-BHVZJGwD.mjs +0 -13
  330. package/dist/error-CmduqgVq.js +0 -1
  331. package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
  332. package/dist/formControl-ODrpUvcA.js +0 -1
  333. package/dist/formControl-dX7l8o3c.mjs +0 -845
  334. package/dist/formatting.es-C72Nsrmh.js +0 -1
  335. package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
  336. package/dist/getComposedString.es-haS4bAj7.js +0 -1
  337. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
  338. package/dist/girocard.svg.es-HSOEvDif.js +0 -1
  339. package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
  340. package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
  341. package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
  342. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
  343. package/dist/ideal.svg.es-Booz1IML.js +0 -1
  344. package/dist/index-BPZPnOQQ.js +0 -7
  345. package/dist/index.cjs +0 -1
  346. package/dist/index.es-BclokHQX.js +0 -1
  347. package/dist/invoices-ClqTWYF9.js +0 -1
  348. package/dist/it-IT-BkPbTueL.js +0 -1
  349. package/dist/it-IT-CSYvGmpT.js +0 -1
  350. package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
  351. package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
  352. package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
  353. package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
  354. package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
  355. package/dist/momo.svg.es-C5aLYf_R.js +0 -1
  356. package/dist/nl-NL-CpE4IgwO.js +0 -1
  357. package/dist/nl-NL-jIfAVGv0.js +0 -1
  358. package/dist/nyce.svg.es-ArAivAZW.js +0 -1
  359. package/dist/object.es-CdriXMPs.js +0 -1
  360. package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
  361. package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
  362. package/dist/paymentFailure-Cki8c5BX.js +0 -1
  363. package/dist/paymentMethods-AL2U_byg.js +0 -1
  364. package/dist/paymentMethods-CWzJhcWK.mjs +0 -77
  365. package/dist/payments-BmiHMlQt.js +0 -1
  366. package/dist/payments-aXyfylwk.mjs +0 -45
  367. package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
  368. package/dist/pricing-BVAld27Y.js +0 -1
  369. package/dist/pricing-DLOeiAIB.mjs +0 -16
  370. package/dist/pricing.es-C07bgEZx.js +0 -1
  371. package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
  372. package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
  373. package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
  374. package/dist/pricingPlanSchedules-BD4GIP_F.mjs +0 -32
  375. package/dist/pricingPlanSchedules-BfsMSvN0.js +0 -1
  376. package/dist/pulse.svg.es-Dit33E8S.js +0 -1
  377. package/dist/screens/Checkout/Checkout.cjs +0 -1
  378. package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
  379. package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
  380. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
  381. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
  382. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
  383. package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
  384. package/dist/sessionReference-3h-6FdrC.mjs +0 -43
  385. package/dist/sessionReference-m_6Rp4X1.js +0 -1
  386. package/dist/slots.es-T9ZJRGtG.js +0 -1
  387. package/dist/sorting.es-DCihKqD2.mjs +0 -77
  388. package/dist/sorting.es-DQsjKr8A.js +0 -1
  389. package/dist/star.svg.es-D2JncY7b.js +0 -1
  390. package/dist/subscription-D1yHKUNc.mjs +0 -69
  391. package/dist/subscription-ZA62t4E9.js +0 -1
  392. package/dist/subscriptions-Cm83ckfl.js +0 -1
  393. package/dist/subscriptions-cnR5fnf7.mjs +0 -55
  394. package/dist/trustly.svg.es-GJByiFAs.js +0 -1
  395. package/dist/twint.svg.es-BJ2f48og.js +0 -1
  396. package/dist/typeGuards.es-DS3vZaJn.js +0 -1
  397. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
  398. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
  399. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
  400. package/dist/types/services/portals.types.d.ts +0 -70
  401. package/dist/types/types/subscription.d.ts +0 -4
  402. package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
  403. package/dist/url-TNRgVI8A.mjs +0 -21
  404. package/dist/url-vloPOiXd.js +0 -1
  405. package/dist/useActionDispatchProvider-CHkVQMaE.js +0 -1
  406. package/dist/useActionDispatchProvider-DDYqIh3r.mjs +0 -11
  407. package/dist/useCustomer-DGYtowRy.js +0 -1
  408. package/dist/useCustomerFormLabels-CcnkJLcB.mjs +0 -968
  409. package/dist/useCustomerFormLabels-DAZziqYt.js +0 -1
  410. package/dist/useExperimentalFeature-COOU6IZd.js +0 -1
  411. package/dist/useExperimentalFeature-ierhOt9Q.mjs +0 -6
  412. package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
  413. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
  414. package/dist/useInvoiceData-BEK-7msA.mjs +0 -38
  415. package/dist/useInvoiceData-CQRn8l9C.js +0 -1
  416. package/dist/useInvoicesList-BQkKyyXa.js +0 -1
  417. package/dist/useInvoicesList-C4I118KM.mjs +0 -500
  418. package/dist/useLoadInitialData-CrKnBZs_.js +0 -1
  419. package/dist/usePaymentMethodAvailability-Ci6LeYKt.js +0 -1
  420. package/dist/usePaymentMethodOptions-Ciifjo6c.mjs +0 -39
  421. package/dist/usePaymentMethodOptions-Cqe92ZBn.js +0 -1
  422. package/dist/usePaymentMethods-BKwrl82-.js +0 -1
  423. package/dist/usePayments-Bauj16B-.js +0 -1
  424. package/dist/usePortal-DSLImEfr.js +0 -1
  425. package/dist/usePortal-H8Tv2TnZ.mjs +0 -11
  426. package/dist/useService-Bh47bllz.mjs +0 -50
  427. package/dist/useService-H7BjLg8P.js +0 -1
  428. package/dist/useSubscription-BiYNJT2e.js +0 -1
  429. package/dist/useSubscription-DqnxWNKg.mjs +0 -210
  430. package/dist/useTimePeriod.es-D2aiyfd-.js +0 -1
  431. package/dist/useViewport-BgdA2PPt.mjs +0 -29
  432. package/dist/useViewport-hPRVDWCm.js +0 -1
  433. package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
  434. package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
  435. package/dist/visa.svg.es-NY3BHhda.js +0 -1
  436. package/dist/vpay.svg.es-VViQi42w.js +0 -1
  437. package/dist/wallets.es-CNIMW5ay.js +0 -1
  438. package/dist/zip.svg.es-C9S_F31W.js +0 -1
@@ -0,0 +1,743 @@
1
+ import { defineComponent as V, ref as T, onMounted as q, onBeforeUnmount as X, watch as ce, openBlock as D, createElementBlock as ue, unref as me, computed as k, createBlock as x, createCommentVNode as pe } from "vue";
2
+ import { i as z } from "./useService-B0OQJmif.mjs";
3
+ import { a as de, d as le } from "./customElements-Di3zwlEU.mjs";
4
+ import { t as ye } from "./amount-CondixVt.mjs";
5
+ import { _ as Ee, a as fe } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs";
6
+ import { c as Ie } from "./payments-Ci8bF4C6.mjs";
7
+ import { c as _e } from "./paymentMethods-BUuOmDq9.mjs";
8
+ import { f as ge, e as Te, c as Re } from "./usePaymentFormHold-FfNc578l.mjs";
9
+ import { c as he, i as be, b as Se, a as Oe, d as W } from "./paymentOutcome-D17VD4MV.mjs";
10
+ const Q = "https://js.stripe.com/dahlia/stripe.js", ve = `<!DOCTYPE html>
11
+ <html>
12
+ <head>
13
+ <meta charset="UTF-8">
14
+ <meta name="viewport" content="width=device-width, initial-scale=1">
15
+ <style>
16
+ * { box-sizing: border-box; margin: 0; padding: 0; }
17
+ body { overflow: hidden; }
18
+ </style>
19
+ </head>
20
+ <body>
21
+ <div id="stripe-root"></div>
22
+ <script src="${Q}"><\/script>
23
+ <script>
24
+ (function () {
25
+ let stripe, elements, paymentElement, resizeObserver, countryCode, email, name, parentOrigin;
26
+
27
+ // An opaque origin serialises as 'null', which postMessage refuses as a target. The parent
28
+ // checks that what it receives comes from this frame.
29
+ function parentTarget() {
30
+ return parentOrigin === 'null' ? '*' : parentOrigin;
31
+ }
32
+
33
+ // Every submit is answered, or the page waiting on it never stops waiting.
34
+ function postSubmitError(error) {
35
+ parent.postMessage({
36
+ type: 'stripe:submit:error',
37
+ error: {
38
+ message: error && error.message ? String(error.message) : 'Stripe submission failed',
39
+ type: error && error.type,
40
+ code: error && error.code
41
+ }
42
+ }, parentTarget());
43
+ }
44
+
45
+ window.addEventListener('message', function (event) {
46
+ if (!event.data || typeof event.data !== 'object') return;
47
+ if (event.source !== window.parent) return;
48
+
49
+ if (event.data.type === 'stripe:init') {
50
+ parentOrigin = event.origin;
51
+ const initId = event.data.initId;
52
+ countryCode = event.data.countryCode;
53
+ email = event.data.email;
54
+ name = event.data.name;
55
+ // A second Payment Element would mount beside the first, and the submit would go to it empty.
56
+ if (paymentElement) paymentElement.destroy();
57
+ stripe = Stripe(event.data.publicKey);
58
+ elements = stripe.elements(event.data.options);
59
+ paymentElement = elements.create('payment', { layout: { type: 'accordion', defaultCollapsed: false }, wallets: event.data.options.wallets, fields: event.data.options.fields });
60
+
61
+ paymentElement.on('ready', function () {
62
+ parent.postMessage({ type: 'stripe:ready', initId: initId }, parentTarget());
63
+ });
64
+
65
+ paymentElement.on('change', function (e) {
66
+ parent.postMessage({ type: 'stripe:change', paymentMethodType: e.value.type }, parentTarget());
67
+ });
68
+
69
+ paymentElement.on('loaderror', function (e) {
70
+ parent.postMessage({
71
+ type: 'stripe:loaderror',
72
+ error: { message: e.error.message, type: e.error.type }
73
+ }, parentTarget());
74
+ });
75
+
76
+ paymentElement.mount('#stripe-root');
77
+
78
+ if (!resizeObserver) {
79
+ resizeObserver = new ResizeObserver(function () {
80
+ parent.postMessage({
81
+ type: 'stripe:resize',
82
+ height: document.documentElement.scrollHeight
83
+ }, parentTarget());
84
+ });
85
+ resizeObserver.observe(document.documentElement);
86
+ }
87
+ }
88
+
89
+ if (event.data.type === 'stripe:update') {
90
+ if (!parentOrigin || event.origin !== parentOrigin || !elements) return;
91
+ const updateElements = elements;
92
+ const updateOptions = event.data.options;
93
+ // A failed update leaves the element showing the old amount; the parent sets it up anew.
94
+ Promise.resolve().then(function () {
95
+ return updateElements.update(updateOptions);
96
+ }).catch(function () {
97
+ if (updateElements !== elements) return;
98
+ parent.postMessage({ type: 'stripe:update:error' }, parentTarget());
99
+ });
100
+ }
101
+
102
+ if (event.data.type === 'stripe:submit') {
103
+ if (!parentOrigin || event.origin !== parentOrigin) return;
104
+ const submitCountryCode = 'countryCode' in event.data ? event.data.countryCode : countryCode;
105
+ const submitEmail = 'email' in event.data ? event.data.email : email;
106
+ const submitName = 'name' in event.data ? event.data.name : name;
107
+ // A setup anew while this submit is in flight replaces both; the token comes from the
108
+ // elements that were submitted.
109
+ const submitStripe = stripe;
110
+ const submitElements = elements;
111
+ if (!submitElements) {
112
+ postSubmitError();
113
+ return;
114
+ }
115
+ submitElements.submit().then(function (submitResult) {
116
+ if (submitResult.error) {
117
+ postSubmitError(submitResult.error);
118
+ return;
119
+ }
120
+ const billingDetails = {};
121
+ if (submitCountryCode) billingDetails.address = { country: submitCountryCode };
122
+ if (submitEmail) billingDetails.email = submitEmail;
123
+ if (submitName) billingDetails.name = submitName;
124
+ const tokenParams = Object.keys(billingDetails).length
125
+ ? { payment_method_data: { billing_details: billingDetails } }
126
+ : {};
127
+ return submitStripe.createConfirmationToken({ elements: submitElements, params: tokenParams }).then(function (tokenResult) {
128
+ if (tokenResult.error) {
129
+ postSubmitError(tokenResult.error);
130
+ return;
131
+ }
132
+ parent.postMessage({
133
+ type: 'stripe:submit:success',
134
+ confirmationTokenId: tokenResult.confirmationToken.id
135
+ }, parentTarget());
136
+ });
137
+ }).catch(postSubmitError);
138
+ }
139
+ });
140
+ })();
141
+ <\/script>
142
+ </body>
143
+ </html>`, $ = { link: "never" }, G = {
144
+ variables: { borderRadius: "4px", colorBackground: "rgba(243, 244, 246, 0.5)" },
145
+ rules: {
146
+ ".TermsText": { fontSize: "14px" },
147
+ ".Input": {
148
+ backgroundColor: "rgba(243, 244, 246, 0.5)",
149
+ fontSize: "14px",
150
+ borderColor: "rgb(229, 231, 235)"
151
+ }
152
+ }
153
+ };
154
+ function Ae(a, s) {
155
+ return {
156
+ billingDetails: {
157
+ address: { country: "never" },
158
+ ...a ? { email: "never" } : {},
159
+ ...s ? { name: "never" } : {}
160
+ }
161
+ };
162
+ }
163
+ function Ne({
164
+ amount: a,
165
+ email: s,
166
+ name: f,
167
+ variant: t,
168
+ storePaymentMethod: c = !1
169
+ }) {
170
+ const R = a.currency.toLowerCase(), d = Ae(s, f);
171
+ return t === "TOKENIZE" ? {
172
+ mode: "setup",
173
+ currency: R,
174
+ setup_future_usage: "off_session",
175
+ wallets: $,
176
+ fields: d,
177
+ appearance: G
178
+ } : {
179
+ mode: "payment",
180
+ currency: R,
181
+ amount: ye(a).value,
182
+ ...c ? { setup_future_usage: "off_session" } : {},
183
+ wallets: $,
184
+ fields: d,
185
+ appearance: G
186
+ };
187
+ }
188
+ function we(a, s) {
189
+ if (!(a.mode !== s.mode || !z(a.fields, s.fields) || !z(a.wallets, s.wallets)))
190
+ return {
191
+ currency: s.currency,
192
+ ...s.mode === "payment" ? { amount: s.amount } : {},
193
+ setup_future_usage: s.setup_future_usage ?? null,
194
+ ...s.appearance ? { appearance: s.appearance } : {}
195
+ };
196
+ }
197
+ function Z(a) {
198
+ return a === "null" ? "*" : a;
199
+ }
200
+ const Pe = {
201
+ api_connection_error: !0,
202
+ api_error: !0,
203
+ authentication_error: !0,
204
+ card_error: !0,
205
+ idempotency_error: !0,
206
+ invalid_request_error: !0,
207
+ rate_limit_error: !0,
208
+ validation_error: !0
209
+ };
210
+ function K(a) {
211
+ return typeof a == "string" && Object.hasOwn(Pe, a);
212
+ }
213
+ function P(a) {
214
+ if (typeof a != "object" || a === null) return {};
215
+ const s = Reflect.get(a, "code"), f = Reflect.get(a, "type"), t = Reflect.get(a, "message");
216
+ return {
217
+ code: typeof s == "string" ? s : void 0,
218
+ type: K(f) ? f : void 0,
219
+ message: typeof t == "string" ? t : void 0
220
+ };
221
+ }
222
+ const Ce = ["src", "height", "title"], De = /* @__PURE__ */ V({
223
+ __name: "PaymentIntegrationFormStripeFrame",
224
+ props: {
225
+ publicKey: { type: String },
226
+ options: { type: Object },
227
+ countryCode: { type: String },
228
+ email: { type: String },
229
+ name: { type: String }
230
+ },
231
+ emits: ["ready", "change", "loaderror", "submit-success", "submit-error"],
232
+ setup(a, { expose: s, emit: f }) {
233
+ const t = a, c = f, { $t: R } = de();
234
+ s({ triggerSubmit: M });
235
+ const d = T(), h = T(0), b = T();
236
+ let O = !1, N = 0, S;
237
+ function I() {
238
+ var n, i;
239
+ O = !1, N += 1, S = t.options, (i = (n = d.value) == null ? void 0 : n.contentWindow) == null || i.postMessage(
240
+ {
241
+ type: "stripe:init",
242
+ initId: N,
243
+ publicKey: t.publicKey,
244
+ options: t.options,
245
+ countryCode: t.countryCode,
246
+ email: t.email,
247
+ name: t.name
248
+ },
249
+ Z(window.origin)
250
+ );
251
+ }
252
+ function u(n, i) {
253
+ var _, m;
254
+ S = n, (m = (_ = d.value) == null ? void 0 : _.contentWindow) == null || m.postMessage(
255
+ { type: "stripe:update", options: i },
256
+ Z(window.origin)
257
+ );
258
+ }
259
+ function M() {
260
+ var i;
261
+ const n = (i = d.value) == null ? void 0 : i.contentWindow;
262
+ return !O || !n ? !1 : (n.postMessage(
263
+ {
264
+ type: "stripe:submit",
265
+ countryCode: t.countryCode,
266
+ email: t.email,
267
+ name: t.name
268
+ },
269
+ Z(window.origin)
270
+ ), !0);
271
+ }
272
+ function w(n) {
273
+ return typeof n == "object" && n !== null;
274
+ }
275
+ function v(n) {
276
+ if (!d.value || n.source !== d.value.contentWindow || !w(n.data)) return;
277
+ const i = n.data, _ = i.type;
278
+ if (!(typeof _ != "string" || !_.startsWith("stripe:")))
279
+ switch (_) {
280
+ case "stripe:ready":
281
+ i.initId === N && (O = !0), c("ready");
282
+ break;
283
+ case "stripe:change":
284
+ c(
285
+ "change",
286
+ typeof i.paymentMethodType == "string" ? i.paymentMethodType : "card"
287
+ );
288
+ break;
289
+ case "stripe:loaderror": {
290
+ const m = w(i.error) ? i.error : {};
291
+ c("loaderror", {
292
+ message: typeof m.message == "string" ? m.message : void 0,
293
+ type: K(m.type) ? m.type : void 0
294
+ });
295
+ break;
296
+ }
297
+ case "stripe:update:error":
298
+ I();
299
+ break;
300
+ case "stripe:resize":
301
+ typeof i.height == "number" && (h.value = i.height);
302
+ break;
303
+ case "stripe:submit:success":
304
+ typeof i.confirmationTokenId == "string" ? c("submit-success", i.confirmationTokenId) : c("submit-error", { message: "Stripe returned no confirmation token" });
305
+ break;
306
+ case "stripe:submit:error": {
307
+ const m = w(i.error) ? i.error : {};
308
+ c("submit-error", {
309
+ message: typeof m.message == "string" ? m.message : void 0,
310
+ type: K(m.type) ? m.type : void 0,
311
+ code: typeof m.code == "string" ? m.code : void 0
312
+ });
313
+ break;
314
+ }
315
+ }
316
+ }
317
+ return q(() => {
318
+ const n = new Blob([ve], { type: "text/html" });
319
+ b.value = URL.createObjectURL(n), window.addEventListener("message", v);
320
+ }), X(() => {
321
+ window.removeEventListener("message", v), b.value && URL.revokeObjectURL(b.value);
322
+ }), ce(
323
+ () => t.options,
324
+ (n) => {
325
+ if (!S || z(n, S)) return;
326
+ const i = we(S, n);
327
+ i ? u(n, i) : I();
328
+ },
329
+ { deep: !0 }
330
+ ), (n, i) => (D(), ue("iframe", {
331
+ ref_key: "iframeRef",
332
+ ref: d,
333
+ src: b.value,
334
+ height: h.value || void 0,
335
+ frameborder: "0",
336
+ style: { width: "100%", display: "block", border: "none" },
337
+ title: me(R)({
338
+ defaultMessage: "Payment form",
339
+ id: "payment_integration_form_stripe.frame_title",
340
+ description: "Accessible name of the frame that holds the Stripe payment fields"
341
+ }),
342
+ onLoad: I
343
+ }, null, 40, Ce));
344
+ }
345
+ }), A = "STRIPE", He = /* @__PURE__ */ V({
346
+ __name: "PaymentIntegrationFormStripe",
347
+ props: {
348
+ email: { type: String },
349
+ name: { type: String },
350
+ countryCode: { type: String },
351
+ customerId: { type: String },
352
+ invoiceId: { type: String },
353
+ paymentMethodOptionResponseEntry: { type: Object },
354
+ variant: { type: String },
355
+ selected: { type: Boolean },
356
+ amount: { type: Object },
357
+ validateOnSubmit: { type: Function, default: () => Promise.resolve(!0) },
358
+ context: { type: Object },
359
+ forceStorePaymentMethod: { type: Boolean },
360
+ storePaymentMethod: { type: Boolean },
361
+ redirectsOnSuccess: { type: Boolean },
362
+ billingEntityName: { type: String }
363
+ },
364
+ emits: ["select", "payment-failed", "payment-success", "invalid", "submitting", "action-required", "ready"],
365
+ setup(a, { expose: s, emit: f }) {
366
+ const t = a, c = f;
367
+ s({ submit: i });
368
+ const R = T(!1), d = T(), h = ge(
369
+ t.paymentMethodOptionResponseEntry.payment_acceptor.id
370
+ ), b = T(!!h), O = T(), N = k(
371
+ () => t.storePaymentMethod ?? t.forceStorePaymentMethod ?? !1
372
+ ), S = k(
373
+ () => Ne({
374
+ amount: t.amount,
375
+ email: t.email,
376
+ name: t.name,
377
+ variant: t.variant,
378
+ storePaymentMethod: N.value
379
+ })
380
+ ), I = T(null), u = le(), { authorizePayment: M } = Ie(), { tokenizePaymentMethod: w } = _e(), v = k(
381
+ () => {
382
+ var e, r;
383
+ return (r = (e = t.paymentMethodOptionResponseEntry.integration.payment_gateway) == null ? void 0 : e.stripe) == null ? void 0 : r.public_key;
384
+ }
385
+ );
386
+ function n(e) {
387
+ return he({
388
+ gateway: A,
389
+ paymentAcceptorId: t.paymentMethodOptionResponseEntry.payment_acceptor.id,
390
+ variant: t.variant,
391
+ invoiceId: t.invoiceId,
392
+ customerId: t.customerId,
393
+ ...e
394
+ });
395
+ }
396
+ function i() {
397
+ _().catch((e) => {
398
+ u.error(
399
+ "STRIPE_SUBMIT_FAILED",
400
+ "Unexpected error during Stripe submission",
401
+ n({ reason: "STRIPE_SUBMIT_FAILED", cause: e }),
402
+ e
403
+ ), c("invalid");
404
+ });
405
+ }
406
+ async function _() {
407
+ var r;
408
+ (!await t.validateOnSubmit() || !((r = O.value) != null && r.triggerSubmit())) && c("invalid");
409
+ }
410
+ function m(e) {
411
+ if (e.type === "validation_error") {
412
+ c("invalid");
413
+ return;
414
+ }
415
+ u.error(
416
+ "STRIPE_CONFIRMATION_TOKEN_FAILED",
417
+ "Stripe submission failed",
418
+ n({ reason: "STRIPE_CONFIRMATION_TOKEN_FAILED", cause: e }),
419
+ e
420
+ ), l({
421
+ code: t.variant === "TOKENIZE" ? "TOKENIZE_FAILED" : "AUTHORIZATION_FAILED",
422
+ message: e.message ?? "Stripe submission failed",
423
+ error: e
424
+ });
425
+ }
426
+ function J(e) {
427
+ return new Promise((r, p) => {
428
+ if (window.Stripe) {
429
+ r(window.Stripe(e));
430
+ return;
431
+ }
432
+ const o = document.createElement("script");
433
+ o.src = Q, o.onload = () => {
434
+ if (!window.Stripe) {
435
+ p(new Error("Stripe not available after script load"));
436
+ return;
437
+ }
438
+ r(window.Stripe(e));
439
+ }, o.onerror = () => p(new Error("Failed to load Stripe.js")), document.head.appendChild(o);
440
+ });
441
+ }
442
+ async function H() {
443
+ if (I.value)
444
+ return I.value;
445
+ const e = v.value;
446
+ if (!e)
447
+ throw new Error("Missing Stripe public key");
448
+ const r = await J(e);
449
+ return I.value = r, r;
450
+ }
451
+ async function ee(e) {
452
+ c("submitting");
453
+ const r = t.paymentMethodOptionResponseEntry.payment_acceptor.id, p = Te({
454
+ paymentAcceptorId: r,
455
+ redirectUrl: window.location.href
456
+ });
457
+ if (t.variant === "AUTHORIZE") {
458
+ try {
459
+ const o = await M({
460
+ payment_acceptor_id: r,
461
+ ...t.customerId ? { customer_id: t.customerId } : {},
462
+ payment_gateway_variant: A,
463
+ stripe: { confirmation_token_id: e },
464
+ amount: t.amount,
465
+ ...t.context && t.context.type !== "CHARGE_ON_DEMAND" ? { context: t.context } : {},
466
+ return_url: p
467
+ });
468
+ await Y(o);
469
+ } catch (o) {
470
+ u.error(
471
+ "PAYMENT_AUTHORIZATION_FAILED",
472
+ `Failed payment authorization for payment acceptor with id ${r}`,
473
+ n({ reason: "PAYMENT_AUTHORIZATION_FAILED", cause: o }),
474
+ o
475
+ ), l({
476
+ code: be(o) ? "PAYMENT_OUTCOME_UNCONFIRMED" : "AUTHORIZATION_FAILED",
477
+ message: "Payment authorization failed",
478
+ error: o
479
+ });
480
+ }
481
+ return;
482
+ }
483
+ if (t.variant === "TOKENIZE") {
484
+ if (!t.customerId) {
485
+ u.error(
486
+ "TOKENIZATION_FAILED",
487
+ `Missing customer id for payment acceptor with id ${r}`,
488
+ n({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
489
+ ), l({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
490
+ return;
491
+ }
492
+ try {
493
+ const o = await w({
494
+ customer_id: t.customerId,
495
+ payment_acceptor_id: r,
496
+ payment_gateway_variant: A,
497
+ stripe: { confirmation_token_id: e },
498
+ return_url: p
499
+ });
500
+ await Y(o);
501
+ } catch (o) {
502
+ u.error(
503
+ "TOKENIZATION_FAILED",
504
+ `Tokenization failed for payment acceptor with id ${r}`,
505
+ n({ reason: "TOKENIZATION_FAILED", cause: o }),
506
+ o
507
+ ), l({ code: "TOKENIZE_FAILED", message: "Tokenization failed", error: o });
508
+ }
509
+ }
510
+ }
511
+ async function Y(e) {
512
+ var p, o, y;
513
+ if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === A) {
514
+ const g = e.action.client_secret || ((p = e.action.data) == null ? void 0 : p.client_secret);
515
+ if (!g) {
516
+ u.error(
517
+ "STRIPE_ACTION_FAILED",
518
+ "Missing client_secret in Stripe ACTION_REQUIRED response",
519
+ n({
520
+ reason: "STRIPE_ACTION_MISSING_CLIENT_SECRET",
521
+ extra: { paymentStatus: e.status }
522
+ })
523
+ ), l({
524
+ code: "AUTHORIZATION_FAILED",
525
+ message: "Payment action failed",
526
+ error: e
527
+ });
528
+ return;
529
+ }
530
+ let j;
531
+ try {
532
+ j = await H();
533
+ } catch (E) {
534
+ u.error(
535
+ "STRIPE_ACTION_FAILED",
536
+ "Failed to load Stripe.js",
537
+ n({ reason: "STRIPE_SDK_LOAD_FAILED", cause: E }),
538
+ E
539
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed", error: E });
540
+ return;
541
+ }
542
+ const { error: C, paymentIntent: oe, setupIntent: se } = await j.handleNextAction({ clientSecret: g }).catch((E) => {
543
+ throw P(E);
544
+ });
545
+ if (C) {
546
+ const E = P(C);
547
+ u.error(
548
+ "STRIPE_ACTION_FAILED",
549
+ "Stripe handleNextAction failed",
550
+ n({
551
+ reason: "STRIPE_NEXT_ACTION_FAILED",
552
+ cause: E,
553
+ extra: { stripeErrorCode: C.code, stripeErrorType: C.type }
554
+ }),
555
+ E
556
+ ), l({
557
+ code: "AUTHORIZATION_FAILED",
558
+ message: "Payment action failed",
559
+ error: E
560
+ });
561
+ return;
562
+ }
563
+ const U = (o = oe ?? se) == null ? void 0 : o.status, B = W(U);
564
+ B === "SUCCEEDED" ? F() : B === "UNCONFIRMED" ? L("STRIPE_NEXT_ACTION_UNCONFIRMED", { intentStatus: U }) : (u.error(
565
+ "STRIPE_ACTION_FAILED",
566
+ "Stripe handleNextAction left the payment incomplete",
567
+ n({
568
+ reason: "STRIPE_NEXT_ACTION_INCOMPLETE",
569
+ extra: { intentStatus: U }
570
+ })
571
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment action failed" }));
572
+ return;
573
+ }
574
+ const r = Se(e);
575
+ if (r === "SUCCEEDED") {
576
+ F();
577
+ return;
578
+ }
579
+ if (r === "UNCONFIRMED") {
580
+ L("PAYMENT_PENDING", {
581
+ paymentStatus: e.status,
582
+ paymentResult: (y = e.payment) == null ? void 0 : y.result
583
+ });
584
+ return;
585
+ }
586
+ u.error(
587
+ "STRIPE_ACTION_FAILED",
588
+ "Unexpected payment result status",
589
+ n({
590
+ reason: "STRIPE_UNEXPECTED_PAYMENT_STATUS",
591
+ extra: { paymentStatus: e.status }
592
+ })
593
+ ), l({ code: "AUTHORIZATION_FAILED", message: "Payment failed", error: e });
594
+ }
595
+ async function te({
596
+ intent: e,
597
+ clientSecret: r
598
+ }) {
599
+ const p = await H(), o = (g) => {
600
+ throw P(g);
601
+ };
602
+ if (e === "PAYMENT") {
603
+ const g = await p.retrievePaymentIntent(r).catch(o);
604
+ if (g.error) throw P(g.error);
605
+ return g.paymentIntent.status;
606
+ }
607
+ const y = await p.retrieveSetupIntent(r).catch(o);
608
+ if (y.error) throw P(y.error);
609
+ return y.setupIntent.status;
610
+ }
611
+ async function re() {
612
+ if (!h) return;
613
+ const { redirectStatus: e } = h;
614
+ let r;
615
+ try {
616
+ r = await te(h);
617
+ } catch (y) {
618
+ u.error(
619
+ "STRIPE_REDIRECT_RETURN_FAILED",
620
+ "Could not retrieve the payment the Stripe redirect returned from",
621
+ n({
622
+ reason: "STRIPE_REDIRECT_RETRIEVE_FAILED",
623
+ cause: y,
624
+ extra: { redirectStatus: e }
625
+ }),
626
+ y
627
+ ), l({
628
+ code: "PAYMENT_OUTCOME_UNCONFIRMED",
629
+ message: "Payment could not be confirmed",
630
+ error: y
631
+ });
632
+ return;
633
+ }
634
+ Re();
635
+ const p = W(r);
636
+ if (p === "SUCCEEDED") {
637
+ F();
638
+ return;
639
+ }
640
+ if (p === "UNCONFIRMED") {
641
+ L("STRIPE_REDIRECT_UNCONFIRMED", { redirectStatus: e, intentStatus: r });
642
+ return;
643
+ }
644
+ const o = new globalThis.Error(
645
+ `Stripe redirect returned a payment with status: ${r}`
646
+ );
647
+ u.error(
648
+ "STRIPE_REDIRECT_RETURN_FAILED",
649
+ "Stripe redirect returned non-succeeded status",
650
+ n({
651
+ reason: "STRIPE_REDIRECT_RETURN_FAILED",
652
+ extra: { redirectStatus: e, intentStatus: r }
653
+ }),
654
+ o
655
+ ), l({
656
+ code: "AUTHORIZATION_FAILED",
657
+ message: "Payment failed",
658
+ error: o
659
+ });
660
+ }
661
+ function ne() {
662
+ d.value = void 0;
663
+ }
664
+ function ae() {
665
+ c("select", {
666
+ paymentMethodType: "card",
667
+ paymentGatewayVariant: A
668
+ }), c("ready");
669
+ }
670
+ function ie(e) {
671
+ u.error(
672
+ "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
673
+ "Failed to load the Stripe payment form",
674
+ n({
675
+ reason: "STRIPE_FORM_LOAD_FAILED",
676
+ cause: e,
677
+ extra: { stripeErrorType: e.type }
678
+ }),
679
+ e
680
+ ), l({
681
+ code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
682
+ message: e.message ?? "Failed to load payment form",
683
+ error: e
684
+ });
685
+ }
686
+ function l(e) {
687
+ const r = Oe(e);
688
+ d.value = r, c("payment-failed", r);
689
+ }
690
+ function F() {
691
+ R.value = !0, c("payment-success");
692
+ }
693
+ function L(e, r) {
694
+ u.warn(
695
+ "PAYMENT_OUTCOME_UNCONFIRMED",
696
+ "The payment outcome could not be confirmed yet",
697
+ n({ reason: e, extra: r })
698
+ ), l({ code: "PAYMENT_OUTCOME_UNCONFIRMED", message: "Payment could not be confirmed" });
699
+ }
700
+ return q(() => {
701
+ re().catch((e) => {
702
+ u.error(
703
+ "STRIPE_REDIRECT_RETURN_FAILED",
704
+ "handleRedirectReturn threw unexpectedly",
705
+ n({ reason: "STRIPE_REDIRECT_RETURN_THREW", cause: e }),
706
+ e
707
+ );
708
+ }).finally(() => {
709
+ b.value = !1;
710
+ });
711
+ }), X(() => {
712
+ I.value = null;
713
+ }), (e, r) => R.value ? (D(), x(Ee, {
714
+ key: 0,
715
+ variant: a.variant,
716
+ redirecting: a.redirectsOnSuccess
717
+ }, null, 8, ["variant", "redirecting"])) : d.value ? (D(), x(fe, {
718
+ key: 1,
719
+ error: d.value,
720
+ onRetry: ne
721
+ }, null, 8, ["error"])) : v.value && !b.value ? (D(), x(De, {
722
+ key: 2,
723
+ ref_key: "frameRef",
724
+ ref: O,
725
+ "public-key": v.value,
726
+ options: S.value,
727
+ "country-code": a.countryCode,
728
+ email: a.email,
729
+ name: a.name,
730
+ onReady: ae,
731
+ onChange: r[0] || (r[0] = (p) => c("select", {
732
+ paymentMethodType: p,
733
+ paymentGatewayVariant: A
734
+ })),
735
+ onLoaderror: ie,
736
+ onSubmitSuccess: ee,
737
+ onSubmitError: m
738
+ }, null, 8, ["public-key", "options", "country-code", "email", "name"])) : pe("", !0);
739
+ }
740
+ });
741
+ export {
742
+ He as default
743
+ };