@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
@@ -1,77 +0,0 @@
1
- import { g as I } from "./comparators.es-D8WGL-c4.mjs";
2
- const o = (e, n) => {
3
- var i;
4
- const t = (i = e.details) == null ? void 0 : i.pricing_type;
5
- return !!t && n.includes(t);
6
- }, O = (e) => o(e, ["FLAT", "FLAT_TOP_UP"]), S = (e) => o(e, ["FLAT_TOP_UP", "TIERED_TOP_UP", "STAIR_STEP_TOP_UP"]), D = (e) => e == null || e === "" ? 1 : Number(e), R = (e) => o(e, ["TIERED", "TIERED_TOP_UP"]), g = (e) => o(e, ["STAIR_STEP", "STAIR_STEP_TOP_UP"]), U = (e) => o(e, ["FIXED"]), b = (e) => o(e, ["FLEXIBLE"]), m = (e) => {
7
- var n, i;
8
- return [
9
- e,
10
- ...((i = (n = e.conditions) == null ? void 0 : n.configs) == null ? void 0 : i.flatMap(
11
- // Nested config will be extended as well, but typescript doesn't understand
12
- (t) => m(t)
13
- )) ?? []
14
- ];
15
- }, h = (e) => {
16
- var n, i;
17
- return (i = (n = e.conditions) == null ? void 0 : n.meter_properties) != null && i.length ? {
18
- operator: "AND",
19
- operands: e.conditions.meter_properties.map((t) => ({
20
- meter_property: {
21
- id: t.id,
22
- comparator: t.comparator,
23
- value: t.value,
24
- values: t.values
25
- }
26
- }))
27
- } : void 0;
28
- }, A = (e) => m(e).map((n) => n.id), l = {
29
- tieredStepped: 260,
30
- flatFixedNone: 130,
31
- header: 48
32
- }, N = (e) => {
33
- var n, i;
34
- const t = !!((n = e.details) != null && n.bands || (i = e.details) != null && i.pricing_type), r = o(e, ["TIERED", "TIERED_TOP_UP", "TOP_TIERED"]) || g(e);
35
- return t ? r ? l.tieredStepped : l.flatFixedNone : l.header;
36
- }, f = (e) => ({
37
- pricing: n,
38
- item: i,
39
- config: t
40
- }) => {
41
- var r, d, u, _;
42
- const P = (s) => {
43
- var v, c, p, T;
44
- return (v = s.conditions) != null && v.name ? (c = s.conditions) == null ? void 0 : c.name : (p = s.conditions) != null && p.meter_properties ? I(e)(
45
- (T = s.conditions) == null ? void 0 : T.meter_properties.map((a) => {
46
- var E;
47
- return {
48
- propertyName: ((E = a == null ? void 0 : a.meter_property) == null ? void 0 : E.name) ?? "Unknown",
49
- comparator: a.comparator,
50
- value: a.value,
51
- values: a.values
52
- };
53
- }),
54
- { hasFormatting: !1 }
55
- ) : void 0;
56
- };
57
- return [
58
- (n == null ? void 0 : n.name) ?? ((d = (r = n == null ? void 0 : n.products) == null ? void 0 : r[0]) == null ? void 0 : d.name),
59
- (_ = (u = i == null ? void 0 : i.product_items) == null ? void 0 : u[0]) == null ? void 0 : _.name,
60
- t && P(t)
61
- ].filter(Boolean).join(" - ");
62
- };
63
- export {
64
- b as a,
65
- R as b,
66
- S as c,
67
- f as d,
68
- h as e,
69
- g as f,
70
- m as g,
71
- o as h,
72
- U as i,
73
- N as j,
74
- O as k,
75
- A as l,
76
- D as r
77
- };
@@ -1 +0,0 @@
1
- function v({pricingPlanScheduleInfos:e,type:i}){return(e??[]).find(t=>{var n;return(((n=t.pricing_plan_schedule)==null?void 0:n.type)??t.type)===i})}function D(e){var i;return(i=A(e.flatMap(({pricing_plan_schedule_infos:t})=>t??[])))==null?void 0:i.id}const m=e=>{var i;return Date.parse(e.start_at??((i=e.pricing_plan_schedule)==null?void 0:i.start_at))};function A(e){const i=Date.now();return e.filter(t=>{const n=t.pricing_plan_schedule,o=(n==null?void 0:n.type)??t.type,u=m(t),d=t.end_at??(n==null?void 0:n.end_at),_=d?Date.parse(d):void 0,y=Number.isFinite(u)&&u<=i,h=_===void 0||!Number.isFinite(_)||_>i;return o==="DEFAULT"&&y&&h}).sort((t,n)=>m(n)-m(t)).at(0)}function F({pricingPlanScheduleInfo:e,pricingId:i}){var t;return(((t=e.pricing_plan_version)==null?void 0:t.pricing_categories)??[]).flatMap(n=>n.pricing_groups??[]).find(n=>(n.pricings??[]).some(o=>o.id===i))}function I({pricingPlanScheduleInfo:e}){const i=new Map;return(e.pricing_plan_version.pricing_categories??[]).forEach(n=>{var o;(o=n.pricings)==null||o.forEach(u=>{var d;(d=u.items)==null||d.forEach(_=>{var y,h,E;(y=_.billing_period_configs)==null||y.forEach(c=>{var p;(p=c.configs)==null||p.forEach(a=>{var g,r,s,f;if(a.id){const l=(f=(s=(r=(g=a.details)==null?void 0:g.bands)==null?void 0:r.find(b=>{var P;return(P=b.amount)==null?void 0:P.currency}))==null?void 0:s.amount)==null?void 0:f.currency;i.set(a.id,{...l&&{currency:l},billingPeriod:c.billing_period})}})}),(h=_.configs)==null||h.forEach(c=>{var p,a,g,r;if(c.id){const s=(r=(g=(a=(p=c.details)==null?void 0:p.bands)==null?void 0:a.find(f=>{var l;return(l=f.amount)==null?void 0:l.currency}))==null?void 0:g.amount)==null?void 0:r.currency;i.set(c.id,{...s&&{currency:s}})}}),(E=_.pricing_currency_configs)==null||E.forEach(c=>{var a,g;const p=c.currency;(a=c.billing_period_configs)==null||a.forEach(r=>{var s;(s=r.configs)==null||s.forEach(f=>{f.id&&i.set(f.id,{currency:p,billingPeriod:r.billing_period})})}),(g=c.configs)==null||g.forEach(r=>{r.id&&i.set(r.id,{currency:p})})})})})}),i}const S=({pricing_item_config_id:e,number:i})=>({pricing_item_config_id:e,number:i});function M({enabledPricings:e,seatsValues:i,unitsValues:t,pricingPlanScheduleInfos:n,pricingCurrency:o,billingPeriod:u}){const d=v({pricingPlanScheduleInfos:n,type:"DEFAULT"});if(!(!d||!e&&!i&&!t))return[{pricing_plan_schedule_id:d.id,enabled_pricings:e,seats_values:i==null?void 0:i.map(S),...t&&{units:t.map(S)},...o&&{pricing_currency:o},...u&&{billing_period:u}}]}exports.getActiveDefaultScheduleId=D;exports.getActiveDefaultScheduleInfo=A;exports.getFirstPricingPlanScheduleOfType=v;exports.getPricingGroupByPricingId=F;exports.getPricingItemConfigMetaById=I;exports.getScheduleCustomizations=M;
@@ -1,32 +0,0 @@
1
- import { c as a, u as s } from "./customElements-D5DAoHRI.mjs";
2
- function u() {
3
- const n = a(), i = s();
4
- function r({
5
- scheduleId: e
6
- }) {
7
- return n({
8
- url: `${i.apiUrls.config}/portal/pricing-plan-schedules/${e}/on-demand-pricing-items`
9
- });
10
- }
11
- function t({
12
- pricingPlanSubscriptionId: e,
13
- enabledPricings: c
14
- }) {
15
- return n({
16
- url: `${i.apiUrls.config}/portal/pricing-plan-schedules`,
17
- options: { method: "POST" },
18
- data: {
19
- pricing_plan_subscription_id: e,
20
- enabled_pricings: c,
21
- start_at: (/* @__PURE__ */ new Date()).toJSON()
22
- }
23
- });
24
- }
25
- return {
26
- getOnDemandPricingItems: r,
27
- createPricingPlanSchedule: t
28
- };
29
- }
30
- export {
31
- u as c
32
- };
@@ -1 +0,0 @@
1
- const r=require("./customElements-C963-LtW.js");function a(){const n=r.createRequestService(),i=r.useConfig();function c({scheduleId:e}){return n({url:`${i.apiUrls.config}/portal/pricing-plan-schedules/${e}/on-demand-pricing-items`})}function t({pricingPlanSubscriptionId:e,enabledPricings:s}){return n({url:`${i.apiUrls.config}/portal/pricing-plan-schedules`,options:{method:"POST"},data:{pricing_plan_subscription_id:e,enabled_pricings:s,start_at:new Date().toJSON()}})}return{getOnDemandPricingItems:c,createPricingPlanSchedule:t}}exports.createPricingPlanSchedulesService=a;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='b'%20width='35'%20height='13'%20x='3'%20y='14'%20maskUnits='userSpaceOnUse'%20style='mask-type:luminance'%3e%3cpath%20fill='%23fff'%20d='M3%2014h34.25v12.45H3z'/%3e%3c/mask%3e%3cg%20mask='url(%23b)'%3e%3cmask%20id='c'%20width='36'%20height='18'%20x='2'%20y='13'%20maskUnits='userSpaceOnUse'%20style='mask-type:luminance'%3e%3cpath%20fill='%23fff'%20d='M2.93%2013.92h34.39v16.2H2.93z'/%3e%3c/mask%3e%3cg%20mask='url(%23c)'%3e%3cpath%20fill='%23231f20'%20fill-rule='evenodd'%20d='m20.9%2023.93%201.28-8.6c.09-.52.04-1.28-.83-1.33h-1.3l-1.49%209.93zm-3.13%200%20.97-6.5h-2.31l-.64%204.3h-1.55c-.31%200-.58-.2-.52-.6l.36-2.35c.07-.48.11-1.34-.68-1.34h-1.47l-.64%204.3c-.2%201.43.56%202.19%201.5%202.19zM5.95%2021.72h1.83c.45%200%20.87-.37.93-.82l.08-.55c.1-.54-.25-.88-.7-.88h-1.8zm-.33%202.21-.38%202.52H3l1.35-9.01h4.33A2.28%202.28%200%200%201%2011%2020.1l-.17%201.13a3.2%203.2%200%200%201-3.05%202.7z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23231f20'%20d='m34.45%2019.75.03-.26a.33.33%200%200%200-.33-.38h-1.8a.5.5%200%200%200-.43.38l-.04.26zm-3.76%204.18a1.4%201.4%200%200%201-1.44-1.6l.48-3.25c.12-.88.96-1.64%201.84-1.64h3.68c.9%200%201.52.76%201.4%201.64l-.33%202.2h-4.66l-.1.64h3.8c.58%200%20.78.53.7%201.1l-.14.91z'/%3e%3cpath%20fill='%23ee7623'%20d='m6.08%2026.45.24-1.65H35.8l-.14.96q-.12.7-.7.7z'/%3e%3cpath%20fill='%23231f20'%20d='M24.09%2017.44c-.83%200-1.51.73-1.64%201.61l-.13.8c-.1.86.35%201.58%201.14%201.62h2.93l-.08.45h-3.2c-.58%200-1.14.06-1.22.64l-.2%201.37h5.16c.85%200%201.64-.56%201.76-1.45l.17-1.1c.11-.89-.5-1.62-1.35-1.62h-2.96l.06-.42h3.38c.85%200%201.12-.1%201.23-.74l.18-1.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";exports.default=e;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Checkout.entry.ce-8EcavNgT.js");require("../../customElements-C963-LtW.js");exports.defineSolvimonCheckout=e.defineSolvimonCheckout;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../../error-CmduqgVq.js"),T=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../useInvoicesList-BQkKyyXa.js"),k=require("../../usePortal-DSLImEfr.js"),_=require("../../customElements-C963-LtW.js"),h=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js"),E=require("../../useCustomer-DGYtowRy.js"),x=require("../../usePaymentMethods-BKwrl82-.js"),U=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js"),j=require("../../useLoadInitialData-CrKnBZs_.js"),V=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js"),W=require("../../CustomerPaymentMethods.lib-BKgQTCtc.js"),S=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js"),D=require("../../pricingPlanSchedule-BM8vsKkV.js"),F=require("../../sessionReference-m_6Rp4X1.js"),R=2,$=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(i){var f;const p=i,u=k.usePortal(),c=_.useLogger(),o=(f=u.value)==null?void 0:f.customer_id,n=E.useCustomer({customerId:o}),l=g.useInvoicesList({customerId:o,batchSize:5}),s=h.useSubscriptionsList({customerId:o}),r=x.usePaymentMethods({customerId:o}),m=S.useCustomerWalletBalances({customerId:o}),w=e.computed(()=>{var t;return((t=m.walletBalances.value)==null?void 0:t.wallet_balances)??[]}),C=e.computed(()=>s.items.value.slice(0,R)),b=e.computed(()=>{var t;return r.items.value.slice(0,((t=p.configuration)==null?void 0:t.maxItems)??W.DEFAULT_MAX_ITEMS)}),{isLoading:a}=j.useLoadInitialData(n.get.execute(),l.fetchInitial(),s.fetchAll(),r.fetchAll(),m.fetch()),B=()=>{r.fetchAll()},d=()=>{m.fetch()},L=e.computed(()=>D.getActiveDefaultScheduleId(s.items.value));return e.watch([L,()=>s.items.value],([t,v])=>{t||v.length===0||c.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:v.flatMap(({pricing_plan_schedule_infos:O})=>(O??[]).map(({id:q,type:M,start_at:A,end_at:I,...N})=>{var y;return{id:q,type:((y=N.pricing_plan_schedule)==null?void 0:y.type)??M,start_at:A,end_at:I}}))})}),(t,v)=>(e.openBlock(),e.createBlock(e.unref(T.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(n).customer.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(n).customer.value,subscriptions:C.value,"payment-methods":e.unref(r).items.value,"is-loading":e.unref(a)},null,8,["customer","subscriptions","payment-methods","is-loading"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(g._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(l).items.value,"has-more-items":e.unref(l).hasNextBatch.value,"is-loading":e.unref(a),onLoadMore:e.unref(l).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(S._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(m).apiStatus.value===e.unref(P.ApiStatus).Failed,"is-loading":e.unref(a),"wallet-balances":w.value,"show-top-up-button":"",customer:e.unref(n).customer.value,"payment-methods":e.unref(r).items.value,subscriptions:e.unref(s).items.value,onTopUpCharged:d,onAutoTopUpSaved:d,onAutoTopUpCancelled:d,onPaymentMethodStored:B},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),e.createVNode(V._sfc_main,{class:"sv-customer-overview__payment-methods",configuration:i.configuration,"is-loading":e.unref(a),"payment-methods":b.value},null,8,["configuration","is-loading","payment-methods"]),e.unref(n).customer.value?(e.openBlock(),e.createBlock(U._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(a),customer:e.unref(n).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0)]),_:1}))}}),H=e.defineComponent({__name:"CustomerOverview.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(i){const p=F.getComponentName("customer-overview");return(u,c)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main$1),{entry:u.$props,"component-name":e.unref(p),"allowed-portal-types":["CUSTOMER"],onError:c[0]||(c[0]=o=>u.$emit("error",o))},{default:e.withCtx(()=>[e.createVNode($,{configuration:i.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:z}=_.createSolvimonElement(H,"customer-overview");exports.defineSolvimonCustomerOverview=z;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("../../formatting.es-C72Nsrmh.js"),C=require("../../Button.vue.es-qGvnOKnK.js"),B=require("../../index.es-BclokHQX.js"),S=require("../../usePayments-Bauj16B-.js"),M=require("../../InvoiceSummary.vue.es-DBnR9Hs7.js"),_=require("../../Section.vue.es-zVXBHAL6.js"),v=require("../../customElements-C963-LtW.js"),O=require("../../ContentWithAsideLayout-RSdKXqAf.js"),V=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js"),k=require("../../Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js"),P=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js"),x=require("../../usePaymentMethodAvailability-Ci6LeYKt.js"),I=require("../../customer.es-BButyYo0.js"),A=require("../../useLoadInitialData-CrKnBZs_.js"),N=require("../../usePaymentMethodOptions-Cqe92ZBn.js"),T=require("../../usePaymentMethods-BKwrl82-.js"),q=require("../../sessionReference-m_6Rp4X1.js"),z={class:"flex items-center gap-1 border-0 py-0"},E=["id","name","disabled","value"],L=["for"],j=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=B.useVModel(n,"modelValue"),l={sm:"size-2",md:"size-4"},r=e.computed(()=>l[n.size]),s={sm:"text-xs",md:"text-sm"},c=e.computed(()=>s[n.size]);return(a,i)=>(e.openBlock(),e.createElementBlock("label",z,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},a.$attrs,{"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(o)?o.value=m:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))}),null,16,E),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,L)]))}}),$=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const n=t,{$t:o}=v.useIntl(),l=e.computed(()=>({intent:n.intent??"primary",disabled:n.disabled,iconPrefix:n.iconPrefix,iconSuffix:n.iconSuffix,loading:n.loading,pill:n.pill,size:n.size??"lg",square:n.square,tag:n.tag,type:n.type})),r=e.computed(()=>{var c,a,i;switch((c=n.paymentMethod)==null?void 0:c.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(a=n.paymentMethod)!=null&&a.paymentMethodType?e.capitalize((i=n.paymentMethod)==null?void 0:i.paymentMethodType):""}}),s=e.computed(()=>n.amount&&n.paymentMethod?o({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:w.formatAmount(n.amount),type:r.value}):n.amount?o({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:w.formatAmount(n.amount),type:r.value}):o({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(c,a)=>(e.openBlock(),e.createBlock(e.unref(C._sfc_main),e.mergeProps(l.value,{class:"w-full",onClick:a[0]||(a[0]=i=>c.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},16))}}),R={class:"mt-4"},D={key:0},F=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:n}=v.useIntl(),o=t,{availability:l}=x.usePaymentMethodAvailability({paymentMethodOptions:()=>o.paymentMethodOptions,isLoading:()=>o.isLoading,context:()=>{var y;return{invoiceId:(y=o.invoice)==null?void 0:y.id}}}),r=e.ref(),s=e.ref(!0),c=e.ref(),a=e.ref(!1);function i(){if(!c.value)throw new Error("payment integration form not found");a.value=!0,c.value.submit()}const m=()=>{o.configuration.onPaymentSuccess&&o.configuration.onPaymentSuccess()},p=()=>{a.value=!1};return(y,d)=>(e.openBlock(),e.createBlock(e.unref(O.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(k._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var g,u;return[t.isLoading?(e.openBlock(),e.createBlock(k._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(g=t.invoice)!=null&&g.paid?(e.openBlock(),e.createBlock(P._sfc_main,{key:1,status:"success",title:e.unref(n)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(v._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(w.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(P._sfc_main,{key:2,status:"error",title:e.unref(n)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(v._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(l)==="READY"?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,title:e.unref(n)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>{var f,h;return[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":a.value})},[e.createVNode(V._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:c,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"store-payment-method":s.value,"invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions??[],variant:"AUTHORIZE","billing-entity-name":(h=(f=t.invoice)==null?void 0:f.billing_entity)==null?void 0:h.legal_name,onPaymentSuccess:m,onPaymentFailed:p,onInvalid:p,onSelect:d[0]||(d[0]=b=>r.value=b)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options","billing-entity-name"]),e.createElementVNode("div",R,[e.createVNode(e.unref(j),{id:"pay-invoice-store-payment-method",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=b=>s.value=b),label:e.unref(n)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]}),_:1},8,["title"])):(e.openBlock(),e.createBlock(x._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":(u=t.invoice.billing_entity)==null?void 0:u.legal_name},{default:e.withCtx(()=>[t.downloadService?(e.openBlock(),e.createBlock(e.unref(C._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d[2]||(d[2]=()=>{var f;return(f=t.downloadService)==null?void 0:f.call(t,t.invoice)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(k._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice&&!t.invoice.paid&&e.unref(l)==="READY"?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode($,{disabled:!r.value||a.value,loading:a.value,amount:t.amount,"payment-method":r.value,onClick:i},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),U=e.defineComponent({__name:"PayInvoice.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{invoice:o,get:l,downloadInvoicePdf:r,error:s}=S.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:a}=S.usePayments(),{fetchInitial:i}=T.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:m,get:p}=N.usePaymentMethodOptions(),y=async()=>{const u=await l();await p({customerId:u.customer.id,invoiceId:u.id,amount:u.open_invoice_amount})},{isLoading:d}=A.useLoadInitialData(y(),i(),a(n.configuration.invoiceId)),g=e.computed(()=>{var u;return(u=o.value)!=null&&u.customer?I.getCustomerCountry(o.value.customer):void 0});return(u,f)=>{var h;return e.renderSlot(u.$slots,"default",{invoice:e.unref(o),isLoading:e.unref(d),amount:(h=e.unref(o))==null?void 0:h.open_invoice_amount,countryCode:g.value,paymentMethodOptions:e.unref(m),paymentAttempts:e.unref(c),downloadService:e.unref(r),error:e.unref(s)})}}}),W=e.defineComponent({__name:"PayInvoice.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=q.getComponentName("pay-invoice");return(o,l)=>(e.openBlock(),e.createBlock(e.unref(v._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:l[0]||(l[0]=r=>o.$emit("error",r))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:r,isLoading:s,amount:c,countryCode:a,paymentMethodOptions:i,paymentAttempts:m,downloadService:p,error:y})=>[e.createVNode(F,{"is-loading":s,invoice:r,amount:c,"country-code":a,"payment-method-options":i,configuration:t.configuration,"payment-attempts":m??[],"download-service":p,error:y},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service","error"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:H}=v.createSolvimonElement(W,"pay-invoice");exports.defineSolvimonPayInvoice=H;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("../../Button.vue.es-qGvnOKnK.js"),y=require("../../Section.vue.es-zVXBHAL6.js"),c=require("../../customElements-C963-LtW.js"),f=require("../../ContentWithAsideLayout-RSdKXqAf.js"),g=require("../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js"),h=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js"),_=require("../../useCustomer-DGYtowRy.js"),v=require("../../usePaymentMethods-BKwrl82-.js"),S=require("../../usePaymentMethodOptions-Cqe92ZBn.js"),C=require("../../useLoadInitialData-CrKnBZs_.js"),M=require("../../sessionReference-m_6Rp4X1.js"),k={class:"grid gap-4 sm:grid-cols-1 md:grid-cols-2"},O={key:0},B=e.defineComponent({__name:"ScreenTitle",props:{title:{type:String},description:{type:String}},setup(o){return(r,a)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",null,[e.createVNode(e.unref(c._sfc_main),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),o.description?(e.openBlock(),e.createBlock(e.unref(c._sfc_main),{key:0,variant:"body-sm",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1})):e.createCommentVNode("",!0)]),r.$slots.right?(e.openBlock(),e.createElementBlock("div",O,[e.renderSlot(r.$slots,"right")])):e.createCommentVNode("",!0)]))}}),b=e.defineComponent({__name:"PaymentMethodsManagement",props:{customer:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},error:{type:null}},emits:["set-default","delete","added"],setup(o,{emit:r}){const a=r,{$t:i}=c.useIntl(),n=e.ref(!1),m=()=>{n.value=!1,a("added")};return(d,t)=>(e.openBlock(),e.createBlock(e.unref(f.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(B,{title:e.unref(i)({defaultMessage:"Payment methods",id:"screens.payment_method_management.title",description:"The title for the payment method management screen "}),description:e.unref(i)({defaultMessage:"Add a new payment method or set a default payment method for your payments.",id:"screens.payment_method_management.description",description:"The descriptive text for the payment method management screen"})},null,8,["title","description"])]),content:e.withCtx(()=>[e.createVNode(e.unref(y._sfc_main),{"no-border":"","no-spacing":"","content-background":"none",title:"Your payment methods"},{default:e.withCtx(()=>[e.createVNode(g._sfc_main,{"payment-methods":o.paymentMethods,onSetDefault:t[0]||(t[0]=s=>a("set-default")),onDelete:t[1]||(t[1]=s=>a("delete"))},null,8,["payment-methods"])]),_:1}),n.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,customer:o.customer,"payment-method-options":o.paymentMethodOptions,onSuccess:m},null,8,["customer","payment-method-options"])):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:1,intent:"secondary",onClick:t[2]||(t[2]=s=>n.value=!1)},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("Cancel",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.unref(l._sfc_main),{key:2,intent:"secondary",onClick:t[3]||(t[3]=s=>n.value=!0)},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("Add payment method",-1)])]),_:1}))]),_:1}))}}),P=e.defineComponent({__name:"PaymentMethodsManagement.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(o){const r=o,a=r.portalObject.customer_id,{customer:i,get:n}=_.useCustomer({customerId:a}),{items:m,fetchInitial:d}=v.usePaymentMethods({customerId:r.portalObject.customer_id}),{paymentMethodOptions:t,get:s}=S.usePaymentMethodOptions(),{isLoading:p}=C.useLoadInitialData(n.execute(),d(),s({customerId:r.portalObject.customer_id}));return(u,x)=>e.renderSlot(u.$slots,"default",{customer:e.unref(i),paymentMethods:e.unref(m),paymentMethodOptions:e.unref(t),isLoading:e.unref(p),refreshPaymentMethods:e.unref(d)})}}),w=e.defineComponent({__name:"PaymentMethodsManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(o){const r=M.getComponentName("payment-methods-management");return(a,i)=>(e.openBlock(),e.createBlock(e.unref(c._sfc_main$1),{entry:a.$props,"component-name":e.unref(r),"allowed-portal-types":["CUSTOMER"],onError:i[0]||(i[0]=n=>a.$emit("error",n))},{default:e.withCtx(()=>[e.createVNode(P,e.normalizeProps(e.guardReactiveProps(a.$props)),{default:e.withCtx(({customer:n,paymentMethods:m,paymentMethodOptions:d,isLoading:t,refreshPaymentMethods:s})=>[n?(e.openBlock(),e.createBlock(b,{key:0,"is-loading":t,"payment-methods":m,"payment-method-options":d,customer:n,onSetDefault:s,onDelete:s,onAdded:s},null,8,["is-loading","payment-methods","payment-method-options","customer","onSetDefault","onDelete","onAdded"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:N}=c.createSolvimonElement(w,"payment-methods-management");exports.defineSolvimonPaymentMethodsManagement=N;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../SubscriptionDetails.entry.ce-D4CsSoR9.js");require("../../customElements-C963-LtW.js");exports.defineSolvimonSubscriptionDetails=e.defineSolvimonSubscriptionDetails;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("../../Button.vue.es-qGvnOKnK.js"),L=require("../../ErrorNotification.vue.es-BX9dHEc-.js"),p=require("../../customElements-C963-LtW.js"),Y=require("../../ContentWithAsideLayout-RSdKXqAf.js"),K=require("../../useActionDispatchProvider-CHkVQMaE.js"),H=require("../../usePortal-DSLImEfr.js"),J=require("../../useSubscription-BiYNJT2e.js"),Q=require("../../useCustomer-DGYtowRy.js"),X=require("../../usePaymentMethods-BKwrl82-.js"),Z=require("../../usePaymentMethodOptions-Cqe92ZBn.js"),ee=require("../../useLoadInitialData-CrKnBZs_.js"),te=require("../../invoices-ClqTWYF9.js"),V=require("../../pricingPlanSchedule-BM8vsKkV.js"),ne=require("../../pricingPlanSchedules-BfsMSvN0.js"),ie=require("../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js"),oe=require("../../Divider.vue.es-UwnWvUTl.js"),ae=require("../../PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js"),T=require("../../AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js"),se=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js"),re=require("../../Section.vue.es-zVXBHAL6.js"),j=require("../../Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js"),ce=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js"),ue=require("../../Modal.vue.es-8LN4gBh0.js"),le=require("../../sessionReference-m_6Rp4X1.js");function de(){const{getInvoicePreview:n}=te.createInvoicesService(),u=p.useLogger(),t=e.ref(),c=e.ref(!1),l=e.ref(),g=p.createLatestGuard();return{invoice:t,isPending:c,error:l,load:async({subscription:s,enabledPricingIds:f})=>{const o=V.getScheduleCustomizations({enabledPricings:f.map(d=>({pricing_id:d})),pricingPlanScheduleInfos:s.pricing_plan_schedule_infos});if(!o){t.value=void 0;return}const i=g();c.value=!0,l.value=void 0;try{const d=await n({forExistingSubscription:!0,pricingPlanSubscriptionId:s.id,customizations:o});if(!i())return;t.value=d.invoice}catch(d){if(!i())return;u.error("INVOICE_PREVIEW_FAILED","Failed to load the invoice preview",{preview:"SUBSCRIPTION_UPGRADE"},d),l.value=d,t.value=void 0}finally{i()&&(c.value=!1)}}}}const me={class:"sv-subscription-management-form__body grid grid-cols-1 gap-4"},pe=e.defineComponent({__name:"SubscriptionManagementForm",props:e.mergeModels({pricingGroup:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},billingPeriod:{type:Object},currency:{type:String},disabled:{type:Boolean}},{enabledPricingIds:{required:!0},enabledPricingIdsModifiers:{},paymentMethodId:{},paymentMethodIdModifiers:{}}),emits:e.mergeModels(["add-payment-method"],["update:enabledPricingIds","update:paymentMethodId"]),setup(n,{emit:u}){const t=n,c=u,l=e.useModel(n,"enabledPricingIds"),g=e.useModel(n,"paymentMethodId"),{$t:_}=p.useIntl(),s=o=>{const i=o?Date.parse(o):NaN;return Number.isFinite(i)?i:0},f=e.computed(()=>[...t.paymentMethods??[]].sort((o,i)=>s(i.created_at)-s(o.created_at)));return e.watch(()=>t.paymentMethods,(o,i)=>{var P;const d=o==null?void 0:o.find(({id:b})=>!(i!=null&&i.some(B=>B.id===b)));if(d&&(i!=null&&i.length)){g.value=d.id;return}o!=null&&o.some(({id:b})=>b===g.value)||(g.value=(P=(o==null?void 0:o.find(({is_default:b})=>b))??f.value[0])==null?void 0:P.id)},{immediate:!0}),(o,i)=>(e.openBlock(),e.createElementBlock("form",{class:"sv-subscription-management-form",onSubmit:i[3]||(i[3]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("div",me,[e.createVNode(ae._sfc_main,{modelValue:l.value,"onUpdate:modelValue":i[0]||(i[0]=d=>l.value=d),class:"sv-subscription-management-form__pricing-group","group-name":n.pricingGroup.name,pricings:n.pricingGroup.pricings,"billing-period":n.billingPeriod,currency:n.currency},null,8,["modelValue","group-name","pricings","billing-period","currency"]),e.createElementVNode("div",null,[e.createVNode(e.unref(oe._sfc_main),{spacing:"xs"})]),e.createVNode(T._sfc_main,{modelValue:g.value,"onUpdate:modelValue":i[1]||(i[1]=d=>g.value=d),class:"sv-subscription-management-form__payment-methods","payment-methods":f.value,"payment-method-options":n.paymentMethodOptions,required:"",disabled:n.disabled,label:e.unref(_)({defaultMessage:"Payment method",id:"subscription_management.payment_method_selector.label",description:"Label above the payment method that pays for the subscription change"}),onAddPaymentMethod:i[2]||(i[2]=d=>c("add-payment-method"))},null,8,["modelValue","payment-methods","payment-method-options","disabled","label"])])],32))}}),ge=e.defineComponent({__name:"TranslationOverride",props:{messages:{type:Object}},setup(n){const u=n,t=e.inject(p.TRANSLATION_SETTINGS_KEY,void 0),c=e.computed(()=>({...t==null?void 0:t.messages.value,...u.messages}));return(l,g)=>{var _,s;return e.openBlock(),e.createBlock(e.unref(p._sfc_main$2),{locale:(_=e.unref(t))==null?void 0:_.locale.value,"date-locale":(s=e.unref(t))==null?void 0:s.dateLocale.value,messages:c.value,"show-timezones":!1},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["locale","date-locale","messages"])}}}),fe=e.defineComponent({__name:"SubscriptionManagementSummary",props:{invoice:{type:Object},isPending:{type:Boolean},hasError:{type:Boolean}},setup(n){const{$t:u}=p.useIntl(),t=e.computed(()=>({"invoice_preview.total_due_today_heading":u({defaultMessage:"Total due",id:"subscription_management.summary.total_due_heading",description:'Heading above the total of the invoice previewing a subscription change, replacing the shared preview’s "Total due today"'})}));return(c,l)=>(e.openBlock(),e.createBlock(e.unref(re._sfc_main),{class:"sv-subscription-management-summary",title:e.unref(u)({defaultMessage:"Order summary",id:"subscription_management.summary.title",description:"Title of the block previewing what a subscription change is invoiced for"})},{default:e.withCtx(()=>[n.hasError?(e.openBlock(),e.createBlock(e.unref(L._sfc_main),{key:0,class:"sv-subscription-management-summary__error sv-error",title:e.unref(u)({defaultMessage:"Unable to calculate the total. Please try again.",id:"subscription_management.summary.error",description:"Error shown when the invoice preview for a subscription change cannot be loaded"})},null,8,["title"])):n.isPending||!n.invoice?(e.openBlock(),e.createBlock(j._sfc_main,{key:1,variant:"section",class:"sv-subscription-management-summary__skeleton min-h-[120px]"},{default:e.withCtx(()=>[n.isPending?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(p._sfc_main),{key:0,variant:"body-sm",color:"subtle",tag:"div",class:"sv-subscription-management-summary__empty-state"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)({defaultMessage:"Select your plan to see what it costs.",id:"subscription_management.summary.empty_state",description:"Shown in the order summary before a plan has been picked to preview"})),1)]),_:1}))]),_:1})):(e.openBlock(),e.createBlock(ge,{key:2,messages:t.value},{default:e.withCtx(()=>[e.createVNode(e.unref(se._sfc_main$1),{class:"sv-subscription-management-summary__invoice",invoice:n.invoice,"is-customer-facing":""},null,8,["invoice"])]),_:1},8,["messages"]))]),_:1},8,["title"]))}}),_e={class:"sv-subscription-management-success grid grid-cols-1 gap-4"},ve={class:"sv-subscription-management-success__message"},be=e.defineComponent({__name:"SubscriptionManagementSuccess",props:{pricingGroupName:{type:String}},setup(n){const u=n,{$t:t}=p.useIntl(),c=e.computed(()=>t({defaultMessage:"Subscription updated",description:"Title shown on the manage subscription screen once the change is committed",id:"subscription_management.success.title"})),l=e.computed(()=>u.pricingGroupName?t({defaultMessage:"Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of the pricing group a committed subscription change applied to",id:"subscription_management.success.message"},{subject:u.pricingGroupName}):t({defaultMessage:"Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.",description:"Confirmation of a committed subscription change when the pricing group is not known",id:"subscription_management.success.message_generic"}));return(g,_)=>(e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(ce._sfc_main,{status:"success",title:c.value},{default:e.withCtx(()=>[e.createElementVNode("span",ve,e.toDisplayString(l.value),1)]),_:1},8,["title"])]))}}),he=e.defineComponent({__name:"AddPaymentMethodModal",props:{showModal:{type:Boolean},customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean}},emits:["success","failure","close"],setup(n,{emit:u}){const t=u,{$t:c}=p.useIntl(),l=e.ref(),g=e.computed(()=>{var s;return!!((s=l.value)!=null&&s.isSaving)}),_=()=>{var s;(s=l.value)==null||s.submit()};return(s,f)=>(e.openBlock(),e.createBlock(e.unref(ue.Modal),{"no-click-away":"",size:"lg","show-modal":n.showModal,"is-loading":g.value,title:e.unref(c)({defaultMessage:"Add payment method",id:"add_payment_method_modal.title",description:"Title of the modal for adding a payment method"}),"sub-title":e.unref(c)({defaultMessage:"Add a new payment method to pay with.",id:"add_payment_method_modal.subtitle",description:"Subtitle of the modal for adding a payment method"}),"confirm-button-text":e.unref(c)({defaultMessage:"Save payment method",id:"add_payment_method_modal.confirm_button.label",description:"Label of the button that stores the payment method being added"}),"cancel-button-text":e.unref(c)({defaultMessage:"Cancel",id:"add_payment_method_modal.cancel_button.label",description:"Label of the button that abandons adding a payment method"}),onConfirm:_,onClose:f[2]||(f[2]=o=>t("close"))},{body:e.withCtx(()=>[e.createVNode(T._sfc_main$1,{ref_key:"addPaymentMethodRef",ref:l,class:"sv-add-payment-method-modal sv-add-payment-method-modal__form",customer:n.customer,"payment-method-options":n.paymentMethodOptions,"is-loading":n.isLoading,"is-active":n.showModal,onSuccess:f[0]||(f[0]=o=>t("success")),onFailure:f[1]||(f[1]=o=>t("failure",o))},null,8,["customer","payment-method-options","is-loading","is-active"])]),_:1},8,["show-modal","is-loading","title","sub-title","confirm-button-text","cancel-button-text"]))}}),ye={class:"sv-subscription-management__header"},we={class:"flex flex-col gap-2"},Se=e.defineComponent({__name:"SubscriptionManagement",props:{configuration:{type:Object}},setup(n){const u=n,{$t:t}=p.useIntl(),c=H.usePortal(),l=p.useLogger(),{dispatchAction:g}=K.useActionDispatchProvider(),{createPricingPlanSchedule:_}=ne.createPricingPlanSchedulesService(),{subscription:s,get:f}=J.useSubscription({subscriptionId:u.configuration.subscriptionId}),{items:o,fetchAll:i}=X.usePaymentMethods({customerId:c.value.customer_id}),{customer:d,get:P}=Q.useCustomer({customerId:c.value.customer_id}),{paymentMethodOptions:b,get:B}=Z.usePaymentMethodOptions(),{isLoading:C}=ee.useLoadInitialData(f(),i(),P.execute(),B({customerId:c.value.customer_id})),k=e.ref(!1),D=async()=>{await i(),k.value=!1},N=e.computed(()=>{var a;return V.getActiveDefaultScheduleInfo(((a=s.value)==null?void 0:a.pricing_plan_schedule_infos)??[])}),w=e.computed(()=>{var h;const a=N.value;if(!a)return;const{enabledPricingId:r}=u.configuration;return(r?[r]:(((h=a.pricing_plan_schedule)==null?void 0:h.enabled_pricings)??[]).map(({pricing_id:m})=>m)).map(m=>V.getPricingGroupByPricingId({pricingPlanScheduleInfo:a,pricingId:m})).find(m=>!!m)}),U=e.computed(()=>{var a;return t({defaultMessage:"Manage {subject}",id:"subscription_management.title",description:"Title for the manage subscription page, naming the pricing group being changed"},{subject:((a=w.value)==null?void 0:a.name)||t({defaultMessage:"subscription",id:"subscription_management.title.default_subject",description:'Stands in for the pricing group name in the manage subscription title when no group is known, e.g. "Manage subscription"'})})}),y=e.ref([]),x=e.ref();e.watch([N,w],([a,r])=>{var q;const v=(((q=a==null?void 0:a.pricing_plan_schedule)==null?void 0:q.enabled_pricings)??[]).map(({pricing_id:S})=>S),{enabledPricingId:h}=u.configuration,m=((r==null?void 0:r.pricings)??[]).map(({id:S})=>S);y.value=h&&m.includes(h)?[...v.filter(S=>!m.includes(S)),h]:v},{immediate:!0});const{invoice:G,isPending:F,error:R,load:z}=de();e.watch([y,s],([a,r])=>{!r||a.length===0||z({subscription:r,enabledPricingIds:a})},{immediate:!0});const M=e.ref(!1),I=e.ref(),E=e.ref(!1),O=e.computed(()=>!C.value&&!M.value&&y.value.length>0&&!!s.value&&!!x.value),W=async()=>{if(!(!O.value||!s.value)){M.value=!0,I.value=void 0;try{await _({pricingPlanSubscriptionId:s.value.id,enabledPricings:y.value.map(a=>({pricing_id:a}))}),E.value=!0}catch(a){l.error("SUBSCRIPTION_UPDATE_FAILED","Failed to start a new pricing plan schedule",{},a),I.value=t({defaultMessage:"Something went wrong. Please try again.",id:"subscription_management.update_error",description:"Error shown when committing a subscription change fails"})}finally{M.value=!1}}},$=e.computed(()=>{var a,r,v;return((r=(a=N.value)==null?void 0:a.pricing_plan_schedule)==null?void 0:r.billing_period)??((v=s.value)==null?void 0:v.billing_period)});return(a,r)=>(e.openBlock(),e.createBlock(e.unref(Y.ContentWithAsideLayout),{class:"sv-subscription-management sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",ye,[e.createVNode(e.unref(p._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-management__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U.value),1)]),_:1})])]),content:e.withCtx(()=>{var v,h;return[E.value?(e.openBlock(),e.createBlock(be,{key:0,class:"sv-subscription-management__success","pricing-group-name":(v=w.value)==null?void 0:v.name},null,8,["pricing-group-name"])):e.unref(C)?(e.openBlock(),e.createBlock(j._sfc_main,{key:1,variant:"section",class:"min-h-[220px]"})):w.value&&$.value?(e.openBlock(),e.createBlock(pe,{key:2,"enabled-pricing-ids":y.value,"onUpdate:enabledPricingIds":r[0]||(r[0]=m=>y.value=m),"payment-method-id":x.value,"onUpdate:paymentMethodId":r[1]||(r[1]=m=>x.value=m),class:"sv-subscription-management__form","pricing-group":w.value,"payment-methods":e.unref(o),"payment-method-options":e.unref(b),"billing-period":$.value,currency:(h=e.unref(s))==null?void 0:h.billing_currency,onAddPaymentMethod:r[2]||(r[2]=m=>k.value=!0)},null,8,["enabled-pricing-ids","payment-method-id","pricing-group","payment-methods","payment-method-options","billing-period","currency"])):e.createCommentVNode("",!0),e.createVNode(he,{"show-modal":k.value,customer:e.unref(d),"payment-method-options":e.unref(b),onSuccess:D,onClose:r[3]||(r[3]=m=>k.value=!1)},null,8,["show-modal","customer","payment-method-options"])]}),aside:e.withCtx(()=>[E.value?(e.openBlock(),e.createBlock(e.unref(A._sfc_main),{key:0,size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__done w-full",type:"button",onClick:r[4]||(r[4]=v=>e.unref(g)({action:"navigate-to-customer-overview"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)({defaultMessage:"Done",id:"subscription_management.done_button.label",description:"Label of the button that leaves the manage subscription screen once the change is committed"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(fe,{class:"sv-subscription-management__summary",invoice:e.unref(G),"is-pending":e.unref(C)||e.unref(F),"has-error":!!e.unref(R)},null,8,["invoice","is-pending","has-error"]),I.value?(e.openBlock(),e.createBlock(e.unref(L._sfc_main),{key:0,class:"sv-subscription-management__update-error sv-error",title:I.value},null,8,["title"])):e.createCommentVNode("",!0),e.createElementVNode("div",we,[e.createVNode(e.unref(A._sfc_main),{size:"lg",class:"sv-action sv-action--primary sv-action--full-width sv-subscription-management__update w-full",type:"button",disabled:!O.value,loading:M.value,onClick:W},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)({defaultMessage:"Update subscription",id:"subscription_management.update_button.label",description:"Label of the button that commits the subscription change"})),1)]),_:1},8,["disabled","loading"]),e.createVNode(ie._sfc_main$1,{class:"sv-subscription-management__kpi","payment-method-options":e.unref(b)},null,8,["payment-method-options"])])],64))]),_:1}))}}),Pe=e.defineComponent({__name:"SubscriptionManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(n){const u=le.getComponentName("subscription-management");return(t,c)=>(e.openBlock(),e.createBlock(e.unref(p._sfc_main$1),{entry:t.$props,"component-name":e.unref(u),"allowed-portal-types":["CUSTOMER"],onError:c[0]||(c[0]=l=>t.$emit("error",l))},{default:e.withCtx(()=>[e.createVNode(Se,{configuration:n.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:ke}=p.createSolvimonElement(Pe,"subscription-management");exports.defineSolvimonSubscriptionManagement=ke;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%239a1b27'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%239a1b27'%20d='M3.08%209h33.84v22H3.08z'/%3e%3cpath%20fill='%23fefefe'%20d='M11.46%2019.5a6%206%200%200%200-1.53-.32%203%203%200%200%201-.88-.18.3.3%200%200%201-.2-.3.4.4%200%200%201%20.16-.3%201%201%200%200%201%20.51-.13q.31%200%20.59.17a.7.7%200%200%201%20.25.38l1.95-.2a2.4%202.4%200%200%200-.5-.83%202%202%200%200%200-.77-.46%205%205%200%200%200-1.42-.15q-.74-.03-1.45.2a2%202%200%200%200-.85.57%201.4%201.4%200%200%200-.3.92q-.01.47.28.86.27.38.7.54.73.24%201.49.35.45.06.88.21a.4.4%200%200%201%20.19.54.4.4%200%200%201-.13.14%201%201%200%200%201-.64.17%201%201%200%200%201-.6-.15%201%201%200%200%201-.36-.53l-2.04.2c.1.49.38.92.8%201.2a4%204%200%200%200%202.1.42q.84.03%201.64-.26a2%202%200%200%200%20.88-.7q.27-.43.28-.91a1.5%201.5%200%200%200-.26-.85%201.7%201.7%200%200%200-.77-.6'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M23.05%2017.42q.46-.24%201-.24c.65-.03%201.28.29%201.66.83a3.4%203.4%200%200%201%20.59%202.04%203%203%200%200%201-.64%202.06%202.1%202.1%200%200%201-1.63.7%202%202%200%200%201-.86-.16%202%202%200%200%201-.7-.48v2.86h-2.08V17.3h1.93v.8q.3-.4.73-.68m.35%203.85a.8.8%200%200%200%20.6-.3q.29-.46.24-1A1.5%201.5%200%200%200%2024%2019a.8.8%200%200%200-.62-.31.8.8%200%200%200-.66.31q-.3.46-.26%201-.04.53.27.95a1%201%200%200%200%20.68.31m9.56.28q-.01.3.04.6.08.28.21.55h-1.93l-.15-.32-.07-.34a3%203%200%200%201-.8.55%203%203%200%200%201-1.27.23%202%202%200%200%201-1.46-.45%201.4%201.4%200%200%201-.5-1.1q0-.57.36-1.01a2.4%202.4%200%200%201%201.33-.6l1.5-.32q.37-.1.72-.24a.7.7%200%200%200-.15-.54.8.8%200%200%200-.55-.15%201.4%201.4%200%200%200-.76.16%201%201%200%200%200-.32.48l-1.97-.2q.09-.45.32-.82.25-.33.6-.52.38-.18.79-.24.53-.1%201.07-.09.75-.01%201.49.1.52.1.93.44.3.27.42.65.14.38.15.8zm-2.14-.46q.14-.3.12-.62v-.33q-.43.15-.88.27a2%202%200%200%200-.8.33.53.53%200%200%200%200%20.77.7.7%200%200%200%20.5.16%201.3%201.3%200%200%200%20.64-.17q.27-.14.42-.4'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='M12.8%2015.18v9.64l7.06%201.25V13.93z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M23.9%2024.88v.1h.13V23.8h-.14v.43a.3.3%200%200%200-.24-.12.34.34%200%200%200-.32.22l-.04.24.05.23q.04.1.13.16a.3.3%200%200%200%20.19.06.3.3%200%200%200%20.24-.13m-.4-.08a.4.4%200%200%201-.06-.24.4.4%200%200%201%20.06-.26.2.2%200%200%201%20.33%200%20.4.4%200%200%201%20.07.27.4.4%200%200%201-.07.24.2.2%200%200%201-.32%200m1.1-.85h-.18v-.17h.17zm0%201.03h-.18v-.87h.17z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='M24.96%2024.99v-.87h.13v.13l.1-.12.09-.03a.3.3%200%200%201%20.15.05l-.05.14-.11-.04-.09.03-.05.08-.02.17V25z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='m26.42%2024.73-.15-.02a.3.3%200%200%201-.1.13.2.2%200%200%201-.13.05.2.2%200%200%201-.18-.08.3.3%200%200%201-.08-.22h.64v-.04a.5.5%200%200%200-.1-.33.4.4%200%200%200-.29-.12.4.4%200%200%200-.29.12.5.5%200%200%200-.1.34.5.5%200%200%200%20.1.33c.15.14.38.15.55.04a.4.4%200%200%200%20.13-.2m-.63-.26h.48a.3.3%200%200%200-.06-.16.2.2%200%200%200-.18-.09.2.2%200%200%200-.17.07.3.3%200%200%200-.07.18'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='m27.33%2024.67.14.02a.35.35%200%200%201-.36.32.4.4%200%200%201-.28-.12.5.5%200%200%201-.1-.33l.04-.25a.3.3%200%200%201%20.14-.15.4.4%200%200%201%20.2-.06.4.4%200%200%201%20.23.07.3.3%200%200%201%20.12.2l-.14.03a.2.2%200%200%200-.08-.13.2.2%200%200%200-.12-.05.2.2%200%200%200-.18.08.4.4%200%200%200-.07.25.4.4%200%200%200%20.07.26q.06.08.17.07a.2.2%200%200%200%20.14-.05.3.3%200%200%200%20.08-.16m.75.18.02.13-.11.02-.12-.03-.06-.06-.02-.18v-.5h-.11v-.1h.1v-.22l.15-.09v.3h.15v.12h-.15v.58l.03.03.05.01z'/%3e%3cpath%20fill='%23fefefe'%20fill-rule='evenodd'%20d='M29.49%2024.88v.1h.13V23.8h-.14v.43a.3.3%200%200%200-.24-.12.34.34%200%200%200-.32.22l-.04.24.04.23q.05.1.14.16a.3.3%200%200%200%20.19.06.3.3%200%200%200%20.24-.13m-.4-.08a.4.4%200%200%201-.07-.24.4.4%200%200%201%20.07-.26.2.2%200%200%201%20.33%200%20.4.4%200%200%201%20.07.27.4.4%200%200%201-.07.24.2.2%200%200%201-.33%200m1.66-.08-.15-.02a.3.3%200%200%201-.09.13.2.2%200%200%201-.13.05.2.2%200%200%201-.18-.08.3.3%200%200%201-.08-.22h.64v-.04a.5.5%200%200%200-.11-.33.4.4%200%200%200-.28-.12.4.4%200%200%200-.3.12.5.5%200%200%200-.1.34.5.5%200%200%200%20.1.33c.16.14.38.15.55.04a.4.4%200%200%200%20.13-.2m-.63-.26h.48a.3.3%200%200%200-.05-.16.2.2%200%200%200-.18-.09.2.2%200%200%200-.17.07.3.3%200%200%200-.07.18m.97.52h.14v-.11q.08.13.24.13a.3.3%200%200%200%20.26-.13.5.5%200%200%200%20.1-.34l-.02-.17-.07-.14a.3.3%200%200%200-.12-.1l-.15-.03a.3.3%200%200%200-.23.12v-.42h-.15zm.18-.22-.04-.22a.4.4%200%200%201%20.07-.24.2.2%200%200%201%20.32%200q.08.11.07.25a.4.4%200%200%201-.07.24.2.2%200%200%201-.28.05zm1.09-.8h-.18v-.18h.18zm0%201.02h-.18v-.87h.18z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fefefe'%20d='m33.04%2024.86.02.13h-.1l-.13-.02-.06-.06-.02-.18v-.5h-.1v-.1h.1v-.22l.15-.09v.3h.14v.12h-.14v.58l.03.03.05.01z'/%3e%3cpath%20fill='%239a1b27'%20fill-rule='evenodd'%20d='M15.3%2020.51h4.13v-.23a4%204%200%200%200-.35-1.73%202.4%202.4%200%200%200-1.01-1.02%204%204%200%200%200-1.82-.35%203%203%200%200%200-2.23.78%202.7%202.7%200%200%200-.8%202.05%203%203%200%200%200%20.4%201.55q.37.62%201.01.96.8.33%201.68.3a4%204%200%200%200%201.88-.36%203%203%200%200%200%201.13-1.16l-2.03-.19q-.15.2-.36.34-.26.15-.58.15a1%201%200%200%201-.77-.35%201.3%201.3%200%200%201-.27-.74m1.71-1.85q.3.38.32.86h-2.03q.03-.39.24-.72a1%201%200%200%201%201.47-.14'%20clip-rule='evenodd'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";exports.default=e;
@@ -1,43 +0,0 @@
1
- const f = "solvimon-", m = ["ALL"];
2
- function y(e) {
3
- return `${f}${e}`;
4
- }
5
- const r = "solvimon.sdk.session-reference", s = "SV", c = 8, i = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ", a = new RegExp(`^${s}-[${i}]{${c}}$`);
6
- let n;
7
- function u(e) {
8
- const t = new Uint8Array(e);
9
- if (typeof crypto < "u" && typeof crypto.getRandomValues == "function")
10
- return crypto.getRandomValues(t), t;
11
- for (let o = 0; o < e; o += 1)
12
- t[o] = Math.floor(Math.random() * 256);
13
- return t;
14
- }
15
- function d() {
16
- const e = Array.from(u(c), (t) => i[t & 31]).join("");
17
- return `${s}-${e}`;
18
- }
19
- function E() {
20
- try {
21
- const e = window.sessionStorage.getItem(r);
22
- return e && a.test(e) ? e : void 0;
23
- } catch {
24
- return;
25
- }
26
- }
27
- function R(e) {
28
- try {
29
- window.sessionStorage.setItem(r, e);
30
- } catch {
31
- }
32
- }
33
- function A() {
34
- if (n)
35
- return n;
36
- const e = E();
37
- return n = e ?? d(), e || R(n), n;
38
- }
39
- export {
40
- m as E,
41
- y as a,
42
- A as g
43
- };
@@ -1 +0,0 @@
1
- const f="solvimon-",a=["ALL"];function u(e){return`${f}${e}`}const r="solvimon.sdk.session-reference",s="SV",c=8,i="23456789ABCDEFGHJKLMNPQRSTUVWXYZ",d=new RegExp(`^${s}-[${i}]{${c}}$`);let t;function E(e){const n=new Uint8Array(e);if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return crypto.getRandomValues(n),n;for(let o=0;o<e;o+=1)n[o]=Math.floor(Math.random()*256);return n}function R(){const e=Array.from(E(c),n=>i[n&31]).join("");return`${s}-${e}`}function m(){try{const e=window.sessionStorage.getItem(r);return e&&d.test(e)?e:void 0}catch{return}}function A(e){try{window.sessionStorage.setItem(r,e)}catch{}}function y(){if(t)return t;const e=m();return t=e??R(),e||A(t),t}exports.EXPAND_ALL=a;exports.getComponentName=u;exports.getSessionReference=y;
@@ -1 +0,0 @@
1
- const e=require("vue"),t=i=>i.every(r=>!!(r.type===e.Comment||r.type===e.Text&&typeof r.children=="string"&&!r.children.trim()||r.type===e.Fragment&&t(r.children)));exports.isVnodeEmpty=t;
@@ -1,77 +0,0 @@
1
- import { defineComponent as d, computed as f, openBlock as u, createElementBlock as o, Fragment as g, renderList as x, createCommentVNode as h, normalizeClass as y, toDisplayString as m, ref as v, onMounted as _ } from "vue";
2
- import { i as b } from "./useService-Bh47bllz.mjs";
3
- const k = (t) => t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), C = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;"), E = ["innerHTML"], H = /* @__PURE__ */ d({
4
- __name: "TextWithHighlights",
5
- props: {
6
- text: {},
7
- search: { default: "" },
8
- highlighClasses: { default: "text-primary-600 font-bold underline" }
9
- },
10
- setup(t) {
11
- const n = t, p = f(() => {
12
- const e = C(n.text), i = [
13
- {
14
- type: "text",
15
- value: e
16
- }
17
- ];
18
- if (n.search === "")
19
- return i;
20
- const c = new RegExp(k(n.search), "gi"), s = [...e.matchAll(c)];
21
- if (b(s))
22
- return i;
23
- const l = [];
24
- return s.forEach((r, a) => {
25
- r.index !== void 0 && (a === 0 && (l.push({ type: "text", value: e.substring(0, r.index) }), l.push({
26
- type: "highlight",
27
- value: e.substring(r.index, r.index + n.search.length)
28
- })), a > 0 && a < s.length - 1 && s[a - 1].index && (l.push({
29
- type: "text",
30
- value: e.substring(
31
- s[a - 1].index ?? 0 + n.search.length,
32
- r.index
33
- )
34
- }), l.push({
35
- type: "highlight",
36
- value: e.substring(r.index, r.index + n.search.length)
37
- })), a === s.length - 1 && r.index + n.search.length < e.length && l.push({
38
- type: "text",
39
- value: e.substring(
40
- r.index + n.search.length,
41
- e.length
42
- )
43
- }));
44
- }), l;
45
- });
46
- return (e, i) => (u(), o("span", null, [
47
- (u(!0), o(g, null, x(p.value, ({ type: c, value: s }, l) => (u(), o(g, { key: l }, [
48
- c === "text" ? (u(), o("span", {
49
- key: 0,
50
- innerHTML: s
51
- }, null, 8, E)) : h("", !0),
52
- c === "highlight" ? (u(), o("span", {
53
- key: 1,
54
- class: y(t.highlighClasses)
55
- }, m(s), 3)) : h("", !0)
56
- ], 64))), 128))
57
- ]));
58
- }
59
- }), I = () => {
60
- const t = v(!1);
61
- return _(() => {
62
- t.value = !0;
63
- }), t;
64
- };
65
- function L(t, n) {
66
- const p = /* @__PURE__ */ new Set();
67
- return t.filter((e) => {
68
- const i = e[n];
69
- return p.has(i) ? !1 : (p.add(i), !0);
70
- });
71
- }
72
- export {
73
- H as _,
74
- C as e,
75
- L as s,
76
- I as u
77
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),g=require("./useService-H7BjLg8P.js"),h=n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),p=n=>n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),d=["innerHTML"],f=e.defineComponent({__name:"TextWithHighlights",props:{text:{},search:{default:""},highlighClasses:{default:"text-primary-600 font-bold underline"}},setup(n){const s=n,a=e.computed(()=>{const t=p(s.text),u=[{type:"text",value:t}];if(s.search==="")return u;const i=new RegExp(h(s.search),"gi"),r=[...t.matchAll(i)];if(g.isEmpty(r))return u;const c=[];return r.forEach((l,o)=>{l.index!==void 0&&(o===0&&(c.push({type:"text",value:t.substring(0,l.index)}),c.push({type:"highlight",value:t.substring(l.index,l.index+s.search.length)})),o>0&&o<r.length-1&&r[o-1].index&&(c.push({type:"text",value:t.substring(r[o-1].index??0+s.search.length,l.index)}),c.push({type:"highlight",value:t.substring(l.index,l.index+s.search.length)})),o===r.length-1&&l.index+s.search.length<t.length&&c.push({type:"text",value:t.substring(l.index+s.search.length,t.length)}))}),c});return(t,u)=>(e.openBlock(),e.createElementBlock("span",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,({type:i,value:r},c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i==="text"?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:r},null,8,d)):e.createCommentVNode("",!0),i==="highlight"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(n.highlighClasses)},e.toDisplayString(r),3)):e.createCommentVNode("",!0)],64))),128))]))}}),x=()=>{const n=e.ref(!1);return e.onMounted(()=>{n.value=!0}),n};function m(n,s){const a=new Set;return n.filter(t=>{const u=t[s];return a.has(u)?!1:(a.add(u),!0)})}exports._sfc_main=f;exports.escapeUserInput=p;exports.sortedUniqBy=m;exports.useIsMounted=x;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23ba0c2f'%20d='M35.96%2028.37q-.04-.09-.1-.14-.07-.08-.16-.1-.08-.05-.17-.05-.12-.01-.17.04-.08.04-.15.1a.4.4%200%200%200-.1.15q-.05.09-.05.17-.01.11.04.17a.4.4%200%200%200%20.11.14.4.4%200%200%200%20.15.1q.08.05.17.05.09.01.17-.04a.4.4%200%200%200%20.15-.1l.1-.15q.05-.08.05-.17.01-.1-.04-.17m-.05.34q-.01.06-.08.12l-.13.09-.15.02-.15-.02q-.06-.01-.12-.09l-.1-.12-.01-.15q0-.08.02-.14%200-.07.09-.13l.12-.08.15-.02.15.02q.07.01.13.08l.09.13.02.14-.02.15m-17.56-7.96c-.17-.77%200-1.5%200-1.5h-8.32s-2.16-.4-3.33-.1c-.85.2-2.18.68-2.52%202.27a2.8%202.8%200%200%200%20.85%202.65%2016%2016%200%200%200%202.78%201.36c.23.08%201.17.54.94%201.5-.2.73-1.18.92-1.41.92s-1.81.13-2.24-1.48h-.6s-.02.75-.51%201.94c0%200%20.83.71%202.99.69.12%200%202.6%200%203.67-1.78%201.17-1.98-.54-3.36-.54-3.36-.7-.6-2.8-1.44-2.8-1.44-1.66-.65-1-2.1-.14-2.23.79-.1%201.5-.09%202.82.54%200%200%202.21-.27%202.81-.19v8.31s.98-.2%202.71%200v-8.29c.49-.1%202.82.21%202.82.21zm17.43%207.69q.02-.08-.07-.1-.05-.05-.17-.05h-.19v.5h.09v-.23h.1l.1.23h.12l-.11-.23q.05%200%20.08-.04zm-.13.06h-.2v-.17h.1q.06%200%20.1.02.04.01.04.06%200%20.06-.02.07zM17.63%2014.4c4.74-.73%207.36-.6%207.36-.6v-.44s-5.93.13-10.39.8C5.5%2015.49%204%2018.13%204%2018.13h6.57s1.15-2.82%207.06-3.73m16.09%207.16c0-2.57-3.5-2.32-3.5-2.32h-4.06v9.02l-4.28-9.15s-.84.1-1.37%200c0%200-4.6%209.7-4.63%209.7.84-.15%201.86%200%201.86%200l1.13-2.79h3.4l1.1%202.82s1.34-.25%202.86%200c.9-.2%202.69-.02%202.69-.02v-4.05l2.73%204.07c1.58-.23%203.26%200%203.26%200l-3.45-4.65s2.3-.44%202.3-2.6zm-14.3%203.28%201.18-2.57%201.15%202.56zm11.31-1.99c-.47.84-1.88.75-1.88.75v-3.3s1.43-.16%201.84.5c.55.92.04%202.07.04%202.07M30.11%2010l-1.13%203.38h-3.65l2.97%202.03-1.18%203.36%203-2.11%202.98%202.09-1.17-3.34%202.96-2.03h-3.67z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";exports.default=l;
@@ -1,69 +0,0 @@
1
- import { g as f } from "./pricingPlanSchedule-BPrS2WRd.mjs";
2
- function l(t) {
3
- var e;
4
- return (e = t == null ? void 0 : t.pricing_plan_schedule_infos) == null ? void 0 : e.at(-1);
5
- }
6
- function g(t) {
7
- var e, n;
8
- return (n = (e = l(t)) == null ? void 0 : e.pricing_plan_version) == null ? void 0 : n.pricing_plan;
9
- }
10
- function s({
11
- subscription: t,
12
- fallback: e
13
- }) {
14
- var n;
15
- return (t == null ? void 0 : t.name) || ((n = g(t)) == null ? void 0 : n.name) || e;
16
- }
17
- function _(t, e) {
18
- const n = [];
19
- function i(a) {
20
- Array.isArray(a) ? a.forEach(i) : a && typeof a == "object" && (a.object_type === "PRICING" && e.includes(a.id) && n.push(a), Object.values(a).forEach(i));
21
- }
22
- return i(t), n;
23
- }
24
- function o(t) {
25
- return t.pricing_plan_schedule_infos.flatMap(
26
- (e) => {
27
- var n;
28
- return ((n = e.pricing_plan_version.pricing_categories) == null ? void 0 : n.flatMap(
29
- (i) => i.pricing_groups ?? []
30
- )) ?? [];
31
- }
32
- );
33
- }
34
- function p(t) {
35
- var c;
36
- const e = {
37
- trialStartDate: void 0,
38
- trialEndDate: void 0,
39
- subscriptionStartDate: void 0,
40
- subscriptionEndDate: void 0
41
- };
42
- if (!((c = t == null ? void 0 : t.pricing_plan_schedule_infos) != null && c.length))
43
- return e;
44
- const n = /* @__PURE__ */ new Date(), i = f({
45
- type: "TRIAL",
46
- pricingPlanScheduleInfos: t.pricing_plan_schedule_infos
47
- });
48
- if (i != null && i.start_at && (e.trialStartDate = n, i.end_at)) {
49
- const r = new Date(i.end_at).getTime() - new Date(i.start_at).getTime();
50
- e.trialEndDate = new Date(n.getTime() + r);
51
- }
52
- const a = f({
53
- type: "DEFAULT",
54
- pricingPlanScheduleInfos: t.pricing_plan_schedule_infos
55
- });
56
- if (a != null && a.start_at && (e.trialEndDate ? e.subscriptionStartDate = e.trialEndDate : e.subscriptionStartDate = n, a.end_at)) {
57
- const r = new Date(a.end_at).getTime() - new Date(a.start_at).getTime();
58
- e.subscriptionEndDate = new Date(n.getTime() + r);
59
- }
60
- return e;
61
- }
62
- export {
63
- s as a,
64
- o as b,
65
- l as c,
66
- p as d,
67
- _ as f,
68
- g
69
- };
@@ -1 +0,0 @@
1
- const l=require("./pricingPlanSchedule-BM8vsKkV.js");function g(t){var e;return(e=t==null?void 0:t.pricing_plan_schedule_infos)==null?void 0:e.at(-1)}function d(t){var e,n;return(n=(e=g(t))==null?void 0:e.pricing_plan_version)==null?void 0:n.pricing_plan}function f({subscription:t,fallback:e}){var n;return(t==null?void 0:t.name)||((n=d(t))==null?void 0:n.name)||e}function s(t,e){const n=[];function a(i){Array.isArray(i)?i.forEach(a):i&&typeof i=="object"&&(i.object_type==="PRICING"&&e.includes(i.id)&&n.push(i),Object.values(i).forEach(a))}return a(t),n}function o(t){return t.pricing_plan_schedule_infos.flatMap(e=>{var n;return((n=e.pricing_plan_version.pricing_categories)==null?void 0:n.flatMap(a=>a.pricing_groups??[]))??[]})}function _(t){var c;const e={trialStartDate:void 0,trialEndDate:void 0,subscriptionStartDate:void 0,subscriptionEndDate:void 0};if(!((c=t==null?void 0:t.pricing_plan_schedule_infos)!=null&&c.length))return e;const n=new Date,a=l.getFirstPricingPlanScheduleOfType({type:"TRIAL",pricingPlanScheduleInfos:t.pricing_plan_schedule_infos});if(a!=null&&a.start_at&&(e.trialStartDate=n,a.end_at)){const r=new Date(a.end_at).getTime()-new Date(a.start_at).getTime();e.trialEndDate=new Date(n.getTime()+r)}const i=l.getFirstPricingPlanScheduleOfType({type:"DEFAULT",pricingPlanScheduleInfos:t.pricing_plan_schedule_infos});if(i!=null&&i.start_at&&(e.trialEndDate?e.subscriptionStartDate=e.trialEndDate:e.subscriptionStartDate=n,i.end_at)){const r=new Date(i.end_at).getTime()-new Date(i.start_at).getTime();e.subscriptionEndDate=new Date(n.getTime()+r)}return e}exports.findPricingsByIds=s;exports.getFallbackTrialAndSubscriptionStartAndEndDates=_;exports.getMostRecentPricingPlan=d;exports.getMostRecentScheduleInfo=g;exports.getPricingGroupsFromExtendedPricingPlanSubscription=o;exports.getSubscriptionName=f;
@@ -1 +0,0 @@
1
- const r=require("./api.es-duCDtZD9.js"),c=require("./customElements-C963-LtW.js"),o=require("./sessionReference-m_6Rp4X1.js"),s="/portal/pricing-plan-subscriptions",N={CANCEL:"NEXT_BILLING_PERIOD",RENEW:"UNDO"};function P(){const t=c.useConfig(),i=c.createRequestService();function a({id:e,expanded:n=!1}){return i({url:`${t.apiUrls.config}${s}/${e}`,query:r.withExpand({expandParams:o.EXPAND_ALL,expand:n})})}function u({customerId:e,pagination:n}){const l=n??{},E=r.withExpand({initialParams:{customer_id:e,statuses:["ACTIVE"],type:"BILLING"},expandParams:o.EXPAND_ALL});return i({url:`${t.apiUrls.config}${s}`,query:r.withPagination(E,l),isCollection:!0})}function p({id:e,variant:n}){return i({url:`${t.apiUrls.config}${s}/${e}/cancel`,data:{type:N[n]},options:{method:"POST"}})}return{getSubscription:a,getActiveSubscriptions:u,setSubscriptionCancellation:p}}exports.createSubscriptionsService=P;
@@ -1,55 +0,0 @@
1
- import { w as s, a as f } from "./api.es-QaC926Xu.mjs";
2
- import { u as E, c as m } from "./customElements-D5DAoHRI.mjs";
3
- import { E as e } from "./sessionReference-3h-6FdrC.mjs";
4
- const a = "/portal/pricing-plan-subscriptions", N = {
5
- CANCEL: "NEXT_BILLING_PERIOD",
6
- RENEW: "UNDO"
7
- };
8
- function S() {
9
- const n = E(), r = m();
10
- function o({
11
- id: t,
12
- expanded: i = !1
13
- }) {
14
- return r({
15
- url: `${n.apiUrls.config}${a}/${t}`,
16
- query: s({ expandParams: e, expand: i })
17
- });
18
- }
19
- function c({
20
- customerId: t,
21
- pagination: i
22
- }) {
23
- const p = i ?? {}, l = s({
24
- initialParams: {
25
- customer_id: t,
26
- statuses: ["ACTIVE"],
27
- type: "BILLING"
28
- },
29
- expandParams: e
30
- });
31
- return r({
32
- url: `${n.apiUrls.config}${a}`,
33
- query: f(l, p),
34
- isCollection: !0
35
- });
36
- }
37
- function u({
38
- id: t,
39
- variant: i
40
- }) {
41
- return r({
42
- url: `${n.apiUrls.config}${a}/${t}/cancel`,
43
- data: { type: N[i] },
44
- options: { method: "POST" }
45
- });
46
- }
47
- return {
48
- getSubscription: o,
49
- getActiveSubscriptions: c,
50
- setSubscriptionCancellation: u
51
- };
52
- }
53
- export {
54
- S as c
55
- };
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cmask%20id='b'%20width='40'%20height='40'%20x='0'%20y='0'%20maskUnits='userSpaceOnUse'%20style='mask-type:luminance'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/mask%3e%3cg%20mask='url(%23b)'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%2310303f'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%2368de7a'%20d='M7.5%2018.75h8.75v-6.87l6.88%206.87-6.88%206.88v3.75H25V18.74h7.5v-8.12h-25z'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";exports.default=e;
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23000'%20d='M0%200h40v40H0z'/%3e%3cpath%20fill='%23fff'%20d='M13.78%2022.3a.4.4%200%200%201-.2.35l-3.98%202.3a.5.5%200%200%201-.42%200l-3.97-2.3A.5.5%200%200%201%205%2022.3v-4.6c0-.13.1-.29.2-.35l3.98-2.3a.5.5%200%200%201%20.42%200l3.97%202.3a.5.5%200%200%201%20.21.35zm22.08-4.27h-3.55v.85h1.27v3.64h1v-3.64h1.28zm-16.18%200h-3.56v.85h1.28v3.64h1v-3.64h1.28zM30%2017.89c-1.12%200-1.74.72-1.74%201.75v2.89h1v-2.9c0-.46.26-.8.75-.8s.75.4.75.8v2.9h1v-2.89c.01-1.04-.63-1.75-1.76-1.75m-3.76.14v4.49h1v-4.49zm-3.38%201.78.03.2.94%202.52h.4l1.28-4.5h-.98l-.6%202.36-.05.26-.05-.26-.8-2.35h-.33l-.82%202.35-.05.26-.03-.26-.6-2.35h-1l1.28%204.49h.4l.95-2.52z'/%3e%3cpath%20fill='url(%23b)'%20d='m11.47%2020.01-1.04%201.53-.53-.81.61-.92c.11-.17.36-.62.08-1.23a1.3%201.3%200%200%200-1.16-.74c-.44%200-.9.23-1.16.74a1.2%201.2%200%200%200%20.07%201.2s.34.5.63.93l.46.67.7%201.06s.1.17.3.17c.18%200%20.3-.16.31-.18l1.63-2.4h-.9zm-2.05.04-.45-.7a.51.51%200%200%201%20.45-.77c.43%200%20.64.46.45.77-.17.29-.45.7-.45.7'/%3e%3cpath%20fill='url(%23c)'%20d='M8.43%2021.49%207.4%2020.06l-.45-.7a.51.51%200%200%201%20.45-.77l.15.02.35-.66a1%201%200%200%200-.5-.1%201.3%201.3%200%200%200-1.16.73%201.2%201.2%200%200%200%20.07%201.2l1.78%202.65c.02.02.13.2.32.2s.3-.17.31-.2l.54-.81-.46-.68z'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='b'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(4.79253%200%200%205.4098%209.09%2018.26)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fc0'/%3e%3cstop%20offset='.09'%20stop-color='%23ffc800'/%3e%3cstop%20offset='.17'%20stop-color='%23ffbd00'/%3e%3cstop%20offset='.25'%20stop-color='%23ffab00'/%3e%3cstop%20offset='.33'%20stop-color='%23ff9100'/%3e%3cstop%20offset='.41'%20stop-color='%23ff7000'/%3e%3cstop%20offset='.48'%20stop-color='%23ff4700'/%3e%3cstop%20offset='.55'%20stop-color='%23ff1800'/%3e%3cstop%20offset='.58'%20stop-color='red'/%3e%3cstop%20offset='1'%20stop-color='red'/%3e%3c/radialGradient%3e%3cradialGradient%20id='c'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(4.39419%200%200%206.6533%206.2%2018.54)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2300b4e6'/%3e%3cstop%20offset='.2'%20stop-color='%2300b0e3'/%3e%3cstop%20offset='.39'%20stop-color='%2301a5db'/%3e%3cstop%20offset='.57'%20stop-color='%230292cd'/%3e%3cstop%20offset='.76'%20stop-color='%230377ba'/%3e%3cstop%20offset='.93'%20stop-color='%230455a1'/%3e%3cstop%20offset='1'%20stop-color='%23054696'/%3e%3c/radialGradient%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h40v40H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";exports.default=o;
@@ -1 +0,0 @@
1
- const i=n=>n?"number"in n:!1,s=n=>n?"count"in n:!1,o=n=>n?"amount"in n:!1,t=n=>n.type==="ORGANIZATION",u=n=>n.type==="INDIVIDUAL";exports.isBandAmount=o;exports.isBandCount=s;exports.isBandNumber=i;exports.isIndividual=u;exports.isOrganization=t;
@@ -1,14 +0,0 @@
1
- import { Customer, PaymentMethodOptionsResponse } from '../../../vendor/@solvimon/solvimon-types/index';
2
- export interface AddPaymentMethodModalProps {
3
- showModal: boolean;
4
- /** The customer the method is stored against. The form needs their country, name and email. */
5
- customer?: Customer;
6
- paymentMethodOptions: PaymentMethodOptionsResponse;
7
- isLoading?: boolean;
8
- }
9
- export interface AddPaymentMethodModalEmits {
10
- /** A payment method was tokenized and stored. */
11
- (e: 'success'): void;
12
- (e: 'failure', error: unknown): void;
13
- (e: 'close'): void;
14
- }
@@ -1,3 +0,0 @@
1
- export interface SubscriptionPaymentCompletedCardEmits {
2
- (e: 'continue-to-merchant'): void;
3
- }
@@ -1,5 +0,0 @@
1
- import { PricingGroupExtended } from '../../../vendor/@solvimon/solvimon-types/index';
2
- import { PricingGroupEditorBaseProps } from './PricingGroupEditorBase.types';
3
- export interface AddonSingleEditorProps extends PricingGroupEditorBaseProps {
4
- constraint: PricingGroupExtended['selection_constraint'];
5
- }