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

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 (189) hide show
  1. package/README.md +26 -1
  2. package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
  3. package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
  4. package/dist/{Avatar.vue.es-Beg7umjO.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +8 -8
  6. package/dist/{Button.vue.es-rh6mITmN.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
  7. package/dist/{ChargeOnDemandModal-CPjPa_uq.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +35 -34
  8. package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
  9. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
  10. package/dist/{Chip.vue.es-Cn2R_0mE.mjs → Chip.vue.es-D3UDSyXC.mjs} +3 -3
  11. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  12. package/dist/{ContextMenu.vue.es-DRxsa7bZ.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
  13. package/dist/{CustomerBillingInformation.vue.es-DQfL5RMR.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
  14. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +21 -20
  15. package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
  16. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs} +798 -792
  17. package/dist/{DividerText.vue.es-M0XqSz55.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
  18. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
  19. package/dist/{ErrorNotification.vue.es-CKlt4hr2.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
  20. package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
  21. package/dist/{IconButton.vue.es-oe4MVBK1.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
  22. package/dist/{IconTitle.vue.es-BO6KBS4v.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
  23. package/dist/{Input.vue.es-DAlPmtE_.mjs → Input.vue.es-D8Oj8MWv.mjs} +23 -22
  24. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +2 -2
  25. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs} +4 -4
  26. package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
  27. package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
  28. package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
  29. package/dist/{Modal.vue.es-CTNACAst.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
  30. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
  31. package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
  32. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +46 -88
  33. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
  34. package/dist/{PaymentHistoryBlock-BmA8jbMb.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
  35. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +4 -4
  36. package/dist/{PaymentIntegrationForm-D1Xw-xIt.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
  37. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs} +68 -69
  38. package/dist/{PaymentIntegrationFormAdyen-CfT5aD4L.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +126 -117
  39. package/dist/{PaymentIntegrationFormStripe-DKXJ-mjd.mjs → PaymentIntegrationFormStripe-BYdAkvLt.mjs} +193 -179
  40. package/dist/{PaymentMethod.vue.es-Cauxx4Xr.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
  41. package/dist/{PaymentMethodForm-CypZOYUZ.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
  42. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +7 -7
  43. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs} +36 -35
  44. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +7 -7
  45. package/dist/{PlanCustomizationEditor-Xtww2r9K.mjs → PlanCustomizationEditor-D29N4HUM.mjs} +9 -9
  46. package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
  47. package/dist/{PortalNotAvailable-B_59GUwN.mjs → PortalNotAvailable-DPE9y37H.mjs} +2 -2
  48. package/dist/{PricingGroupRangeInput.vue.es-C9LJW3b8.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
  49. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +32 -32
  50. package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
  51. package/dist/{Section.vue.es-iS8hVGWA.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
  52. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
  53. package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
  54. package/dist/{StepInput.vue.es-Dpan1RQd.mjs → StepInput.vue.es-DweyzpkL.mjs} +4 -4
  55. package/dist/{SubscriptionDetails.entry.ce-DufQX3uI.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +230 -225
  56. package/dist/{SubscriptionSchedules-DAahcNoI.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
  57. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
  58. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs} +3 -3
  59. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +23 -22
  60. package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
  61. package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
  62. package/dist/{TrialChip.vue.es-B-XBSHWE.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
  63. package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
  64. package/dist/{cn.es-2bVdkiFV.mjs → cn.es-B8acFrov.mjs} +380 -476
  65. package/dist/components/BillingInformation/BillingInformation.mjs +9 -7
  66. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +57 -54
  67. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -18
  68. package/dist/components/Invoice/Invoice.mjs +2660 -193
  69. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +6 -4
  70. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +18 -17
  71. package/dist/components/InvoicesList/InvoicesList.mjs +13 -11
  72. package/dist/components/PaymentHistory/PaymentHistory.mjs +8 -6
  73. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +19 -17
  74. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +19 -17
  75. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +20 -18
  76. package/dist/components/WalletBalances/WalletBalances.mjs +17 -15
  77. package/dist/customElements-BTj4ii4f.mjs +5072 -0
  78. package/dist/{customer-CqddTiOr.mjs → customer-BIjC0CWJ.mjs} +1 -1
  79. package/dist/customer.es-DQKl6wFt.mjs +24 -0
  80. package/dist/{de-DE-BW8dMvhW.mjs → de-DE-DBbERiFr.mjs} +38 -0
  81. package/dist/{de-DE-BNMj3boy.mjs → de-DE-UJ6X6jXu.mjs} +1 -1
  82. package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
  83. package/dist/{formControl-CsITfsBk.mjs → formControl-BZQLHnOO.mjs} +5 -5
  84. package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
  85. package/dist/fr-FR-IWJE-urI.mjs +431 -0
  86. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
  87. package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
  88. package/dist/index.es-CpmQmvOg.mjs +633 -0
  89. package/dist/index.mjs +2 -2
  90. package/dist/{invoices-Cf1qDAv4.mjs → invoices-e1sKLgxg.mjs} +3 -3
  91. package/dist/{it-IT-Byg06KWc.mjs → it-IT-B7ui2oxO.mjs} +38 -0
  92. package/dist/{it-IT-DRvuxM1F.mjs → it-IT-DnJP5URH.mjs} +1 -1
  93. package/dist/{nl-NL-x3zQqzZ7.mjs → nl-NL-Bafh2xoT.mjs} +38 -0
  94. package/dist/{nl-NL-DLUwWbMG.mjs → nl-NL-q9xfTZF0.mjs} +1 -1
  95. package/dist/{paymentMethods-BUuOmDq9.mjs → paymentMethods-B_82JGk_.mjs} +2 -2
  96. package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
  97. package/dist/{paymentOutcome-D17VD4MV.mjs → paymentOutcome-BXEU5-84.mjs} +5 -5
  98. package/dist/payments-BnxbzQUC.mjs +68 -0
  99. package/dist/pricing-BOhvWWMj.mjs +29 -0
  100. package/dist/{pricingPlanScheduleOverrides-COr9F8DO.mjs → pricingPlanScheduleOverrides-Dxv5FOBd.mjs} +2 -2
  101. package/dist/{pricingPlanSchedules-BK_o9p6h.mjs → pricingPlanSchedules-Dv7ZCgNp.mjs} +1 -1
  102. package/dist/screens/Checkout/Checkout.mjs +2 -2
  103. package/dist/screens/CustomerOverview/CustomerOverview.mjs +128 -83
  104. package/dist/screens/PayInvoice/PayInvoice.mjs +572 -218
  105. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +21 -19
  106. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  107. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +261 -266
  108. package/dist/{sorting.es-qtEN8J8T.mjs → sorting.es-CVyKw23D.mjs} +1 -1
  109. package/dist/subscriptions-BWXZGK0E.mjs +66 -0
  110. package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
  111. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -0
  112. package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
  113. package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
  114. package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
  115. package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
  116. package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
  117. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
  118. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +11 -0
  119. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +4 -1
  120. package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
  121. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +23 -1
  122. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
  123. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
  124. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  125. package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
  126. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -1
  127. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
  128. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +2 -0
  129. package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
  130. package/dist/types/public/core/types.d.ts +5 -0
  131. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +3 -1
  132. package/dist/types/translations/supported.d.ts +1 -1
  133. package/dist/types/types/portalAuthentication.d.ts +2 -0
  134. package/dist/types/types/portalToken.d.ts +9 -0
  135. package/dist/types/types/shippingAddress.d.ts +9 -0
  136. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
  137. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
  138. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
  139. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
  140. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
  141. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
  142. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
  143. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
  144. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
  145. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
  146. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  147. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
  148. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
  149. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
  150. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
  151. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
  152. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
  153. package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
  154. package/dist/{useActionDispatchProvider-DC_fUykI.mjs → useActionDispatchProvider-3W2vEyIg.mjs} +1 -1
  155. package/dist/{useCustomer-C3kTh7wn.mjs → useCustomer-cObBvDOu.mjs} +2 -2
  156. package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
  157. package/dist/{useIncrementalLoading-C_sHmW7d.mjs → useIncrementalLoading-CATuO36d.mjs} +2 -2
  158. package/dist/{useInvoiceData-BIh8-h8b.mjs → useInvoiceData-DD44HTl7.mjs} +2 -2
  159. package/dist/{useInvoicesList-Y6p0Pqpy.mjs → useInvoicesList-CpB-41MQ.mjs} +10 -10
  160. package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
  161. package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
  162. package/dist/{usePaymentFormHold-FfNc578l.mjs → usePaymentFormHold-ByUZi3A-.mjs} +28 -36
  163. package/dist/{usePaymentMethodAvailability-CnYTvG15.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +4 -4
  164. package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
  165. package/dist/{usePayments-CykCZPG2.mjs → usePayments-BXABv-lF.mjs} +9 -9
  166. package/dist/{usePortal-CxzKGhbK.mjs → usePortal-CwR_FxTb.mjs} +1 -1
  167. package/dist/{useService-B0OQJmif.mjs → useService-BZcbUZHI.mjs} +3 -3
  168. package/dist/{useTimePeriod.es-JkXdHNWr.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
  169. package/package.json +7 -7
  170. package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +0 -50
  171. package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +0 -5279
  172. package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
  173. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +0 -362
  174. package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
  175. package/dist/InvoiceSummary.vue.es-DbNoGfYN.mjs +0 -2596
  176. package/dist/RadioGroupExtended.vue.es-UtKsdmiv.mjs +0 -163
  177. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs +0 -688
  178. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs +0 -5221
  179. package/dist/TooltipParagraph.vue.es-BjCn2BF6.mjs +0 -129
  180. package/dist/customElements-Di3zwlEU.mjs +0 -6447
  181. package/dist/customer.es-B5ppZf0j.mjs +0 -20
  182. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
  183. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
  184. package/dist/payments-Ci8bF4C6.mjs +0 -45
  185. package/dist/subscriptions-CwogJODR.mjs +0 -54
  186. package/dist/useCustomerFormLabels-CK7K50nB.mjs +0 -1369
  187. package/dist/useLoadInitialData-4k_Cyqef.mjs +0 -15
  188. package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +0 -40
  189. package/dist/usePaymentMethods-gvr-rmwE.mjs +0 -15
@@ -1,11 +1,12 @@
1
1
  import { defineComponent as l, renderSlot as c, unref as r, openBlock as m, createBlock as y, withCtx as p, createVNode as s, normalizeProps as g, guardReactiveProps as u } from "vue";
2
- import { _ as d } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs";
3
- import { u as f } from "../../useCustomer-C3kTh7wn.mjs";
4
- import { u as S } from "../../useLoadInitialData-4k_Cyqef.mjs";
5
- import { e as b, g as O, f as _ } from "../../customElements-Di3zwlEU.mjs";
6
- const j = /* @__PURE__ */ l({
2
+ import { _ as d } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs";
3
+ import { u as f } from "../../useCustomer-cObBvDOu.mjs";
4
+ import { u as S } from "../../useLoadInitialData-qzdnBoui.mjs";
5
+ import { g as b, h as O, j } from "../../customElements-BTj4ii4f.mjs";
6
+ const _ = /* @__PURE__ */ l({
7
7
  __name: "BillingInformation.entry.view",
8
8
  props: {
9
+ portalToken: { type: Object },
9
10
  environment: { type: String },
10
11
  locale: { type: String },
11
12
  dateLocale: { type: String },
@@ -32,6 +33,7 @@ const j = /* @__PURE__ */ l({
32
33
  }), v = /* @__PURE__ */ l({
33
34
  __name: "BillingInformation.entry",
34
35
  props: {
36
+ portalToken: { type: Object },
35
37
  environment: { type: String },
36
38
  locale: { type: String },
37
39
  dateLocale: { type: String },
@@ -57,7 +59,7 @@ const j = /* @__PURE__ */ l({
57
59
  onError: t[0] || (t[0] = (o) => e.$emit("error", o))
58
60
  }, {
59
61
  default: p(() => [
60
- s(j, g(u(e.$props)), {
62
+ s(_, g(u(e.$props)), {
61
63
  default: p(({ customer: o, isLoading: i }) => [
62
64
  s(d, {
63
65
  configuration: n.configuration,
@@ -71,7 +73,7 @@ const j = /* @__PURE__ */ l({
71
73
  _: 1
72
74
  }, 8, ["entry", "component-name"]));
73
75
  }
74
- }), { define: I } = _(
76
+ }), { define: I } = j(
75
77
  v,
76
78
  "billing-information"
77
79
  );
@@ -1,14 +1,15 @@
1
- import { shallowRef as q, ref as B, computed as S, toRaw as R, defineComponent as x, reactive as z, watch as G, openBlock as _, createElementBlock as $, withModifiers as Z, createVNode as c, unref as t, withCtx as T, createTextVNode as P, toDisplayString as U, createElementVNode as F, Fragment as Y, createCommentVNode as E, createBlock as k, renderSlot as H, normalizeProps as X, guardReactiveProps as J } from "vue";
2
- import { _ as K } from "../../Button.vue.es-rh6mITmN.mjs";
3
- import { o as Q, t as j, g as W, i as ee, D as ae, u as te, _ as oe, a as A } from "../../useCustomerFormLabels-CK7K50nB.mjs";
4
- import { _ as le } from "../../ErrorNotification.vue.es-CKlt4hr2.mjs";
5
- import { _ as N } from "../../Input.vue.es-DAlPmtE_.mjs";
6
- import { a as re, _ as w, e as ie, g as ne, f as se } from "../../customElements-Di3zwlEU.mjs";
7
- import { a as de, i as D } from "../../typeGuards.es-B4XMtlkM.mjs";
8
- import { u as me, r as M, e as ue, a as O, f as g, b as C, c as L } from "../../formControl-CsITfsBk.mjs";
9
- import { b as ce } from "../../api.es-QaC926Xu.mjs";
10
- import { u as pe } from "../../useCustomer-C3kTh7wn.mjs";
11
- import { u as ye } from "../../useLoadInitialData-4k_Cyqef.mjs";
1
+ import { shallowRef as q, ref as U, computed as S, toRaw as B, defineComponent as x, reactive as z, watch as G, openBlock as _, createElementBlock as $, withModifiers as Z, createVNode as c, unref as t, withCtx as T, createTextVNode as j, toDisplayString as P, createElementVNode as F, Fragment as Y, createCommentVNode as k, createBlock as E, renderSlot as H, normalizeProps as X, guardReactiveProps as J } from "vue";
2
+ import { _ as K } from "../../Button.vue.es-Zw--kuaU.mjs";
3
+ import { b as Q, i as W, D as ee, u as ae, c as te, _ as O } from "../../useCustomerFormLabels-DJWf2O17.mjs";
4
+ import { _ as oe } from "../../ErrorNotification.vue.es-DNd65mQq.mjs";
5
+ import { _ as N } from "../../Input.vue.es-D8Oj8MWv.mjs";
6
+ import { a as le, d as R, g as re, h as ie, j as ne } from "../../customElements-BTj4ii4f.mjs";
7
+ import { a as se, i as w } from "../../typeGuards.es-B4XMtlkM.mjs";
8
+ import { o as de, t as D } from "../../taxId.es-DkD3Ltr8.mjs";
9
+ import { u as me, b as M, e as ue, r as A, f as g, a as L, d as C } from "../../formControl-BZQLHnOO.mjs";
10
+ import { b as ce } from "../../api.es-qgvzNMU-.mjs";
11
+ import { u as pe } from "../../useCustomer-cObBvDOu.mjs";
12
+ import { u as ye } from "../../useLoadInitialData-qzdnBoui.mjs";
12
13
  const ge = {
13
14
  email: "email",
14
15
  country: "country",
@@ -37,8 +38,8 @@ const ge = {
37
38
  nullifyEmptyValues: o = !1,
38
39
  mode: l = "shallow"
39
40
  }) => {
40
- const i = q(structuredClone(a)), r = B(structuredClone(a)), p = me(e ?? {}, r), y = S(
41
- () => Q({ from: i.value, to: r.value, mode: l, nullifyEmptyValues: o })
41
+ const i = q(structuredClone(a)), r = U(structuredClone(a)), p = me(e ?? {}, r), y = S(
42
+ () => de({ from: i.value, to: r.value, mode: l, nullifyEmptyValues: o })
42
43
  ), b = S(() => Object.entries(y.value).length > 0);
43
44
  return {
44
45
  form: r,
@@ -46,11 +47,11 @@ const ge = {
46
47
  changes: y,
47
48
  hasChanges: b,
48
49
  updateInitialState: (v) => {
49
- r.value = structuredClone(R(v)), i.value = structuredClone(R(v));
50
+ r.value = structuredClone(B(v)), i.value = structuredClone(B(v));
50
51
  },
51
52
  initialState: i
52
53
  };
53
- }, ve = (a) => ee(a), _e = {
54
+ }, ve = (a) => W(a), _e = {
54
55
  type: "INDIVIDUAL",
55
56
  email: "",
56
57
  country: "",
@@ -63,12 +64,12 @@ function Ne({
63
64
  initialState: a = {},
64
65
  onSubmit: e
65
66
  }) {
66
- const o = (u) => W(
67
+ const o = (u) => Q(
67
68
  ve(y.value.country) ? y.value.country : void 0
68
- ).includes(u), l = () => y.value.type === "ORGANIZATION", i = B([]), r = (u) => {
69
+ ).includes(u), l = () => y.value.type === "ORGANIZATION", i = U([]), r = (u) => {
69
70
  var d;
70
71
  return ((u == null ? void 0 : u.trim()) ?? "") !== (((d = f.value.companyVatNumber) == null ? void 0 : d.trim()) ?? "");
71
- }, p = (u, d, n) => !r(u) || j.$validator(u, d, n), {
72
+ }, p = (u, d, n) => !r(u) || D.$validator(u, d, n), {
72
73
  form: y,
73
74
  validation: b,
74
75
  changes: s,
@@ -83,11 +84,11 @@ function Ne({
83
84
  validationRules: {
84
85
  email: { required: M, email: ue },
85
86
  country: { required: M },
86
- addressLine1: { required: O(() => o("addressLine1")) },
87
- postalCode: { required: O(() => o("postalCode")) },
88
- state: { required: O(() => o("state")) },
89
- companyLegalName: { required: O(l) },
90
- companyVatNumber: { taxId: { ...j, $validator: p } }
87
+ addressLine1: { required: A(() => o("addressLine1")) },
88
+ postalCode: { required: A(() => o("postalCode")) },
89
+ state: { required: A(() => o("state")) },
90
+ companyLegalName: { required: A(l) },
91
+ companyVatNumber: { taxId: { ...D, $validator: p } }
91
92
  },
92
93
  nullifyEmptyValues: !0,
93
94
  mode: "deep"
@@ -98,7 +99,7 @@ function Ne({
98
99
  changes: s,
99
100
  hasChanges: v,
100
101
  updateInitialState: (u) => {
101
- i.value = de(u) ? u.organization.tax_ids ?? [] : [], V(Le(u));
102
+ i.value = se(u) ? u.organization.tax_ids ?? [] : [], V(Le(u));
102
103
  },
103
104
  submit: (u, d = y.value) => e({
104
105
  customerId: u,
@@ -111,7 +112,7 @@ function Ne({
111
112
  }
112
113
  const Le = (a) => {
113
114
  var l, i, r, p;
114
- const e = D(a) ? a.individual.residential_address : a.organization.registered_address, o = {
115
+ const e = w(a) ? a.individual.residential_address : a.organization.registered_address, o = {
115
116
  email: a.email ?? "",
116
117
  country: (e == null ? void 0 : e.country) ?? "",
117
118
  addressLine1: (e == null ? void 0 : e.line1) ?? "",
@@ -120,7 +121,7 @@ const Le = (a) => {
120
121
  city: (e == null ? void 0 : e.city) ?? "",
121
122
  state: (e == null ? void 0 : e.state) ?? ""
122
123
  };
123
- return D(a) ? {
124
+ return w(a) ? {
124
125
  type: "INDIVIDUAL",
125
126
  ...o,
126
127
  firstName: ((l = a.individual.name) == null ? void 0 : l.first_name) ?? "",
@@ -137,7 +138,7 @@ const Le = (a) => {
137
138
  ...o && { display_name: o }
138
139
  }), Ie = (a, e) => {
139
140
  const o = e == null ? void 0 : e.trim(), [l, ...i] = a.map(Ve);
140
- return o ? [{ ...l, id: o, type: (l == null ? void 0 : l.type) ?? ae }, ...i] : i;
141
+ return o ? [{ ...l, id: o, type: (l == null ? void 0 : l.type) ?? ee }, ...i] : i;
141
142
  }, Ce = (a, e) => {
142
143
  const o = {
143
144
  line1: a.addressLine1,
@@ -166,10 +167,10 @@ const Le = (a) => {
166
167
  residential_address: o
167
168
  }
168
169
  };
169
- }, Se = { class: "grid grid-cols-1 gap-4" }, Te = { class: "mt-6 flex items-center justify-between gap-4" }, Fe = { class: "flex flex-col gap-2" }, Ae = {
170
+ }, Se = { class: "grid grid-cols-1 gap-4" }, Te = { class: "mt-6 flex items-center justify-between gap-4" }, Fe = { class: "flex flex-col gap-2" }, Oe = {
170
171
  key: 0,
171
172
  class: "grid grid-cols-2 gap-2"
172
- }, Oe = { class: "grid grid-cols-3 gap-2" }, Ee = /* @__PURE__ */ x({
173
+ }, Ae = { class: "grid grid-cols-3 gap-2" }, ke = /* @__PURE__ */ x({
173
174
  __name: "BillingInformationForm",
174
175
  props: {
175
176
  customer: { type: Object },
@@ -178,7 +179,7 @@ const Le = (a) => {
178
179
  updateCustomer: { type: Function }
179
180
  },
180
181
  setup(a) {
181
- const e = a, { $t: o } = re(), l = te(), { validation: i, form: r, updateInitialState: p, submit: y, hasChanges: b } = Ne({
182
+ const e = a, { $t: o } = le(), l = ae(), { validation: i, form: r, updateInitialState: p, submit: y, hasChanges: b } = Ne({
182
183
  onSubmit: ({ customerId: d, payload: n }) => e.updateCustomer({ customerId: d, payload: n })
183
184
  }), s = z({
184
185
  email: g(r, "email", C),
@@ -207,7 +208,7 @@ const Le = (a) => {
207
208
  "state",
208
209
  ...V.value ? ["companyLegalName", "companyVatNumber"] : ["firstName", "lastName"]
209
210
  ])
210
- ), h = (d) => i.value[d].$errors.length ? i.value[d].$errors : f.value.fields[d], I = B(!1), u = async () => {
211
+ ), h = (d) => i.value[d].$errors.length ? i.value[d].$errors : f.value.fields[d], I = U(!1), u = async () => {
211
212
  var d;
212
213
  if (!(I.value || !((d = e.customer) != null && d.id))) {
213
214
  I.value = !0;
@@ -229,12 +230,12 @@ const Le = (a) => {
229
230
  ), (d, n) => (_(), $("form", {
230
231
  onSubmit: Z(u, ["prevent"])
231
232
  }, [
232
- c(t(w), {
233
+ c(t(R), {
233
234
  variant: "heading-3",
234
235
  tag: "h2"
235
236
  }, {
236
237
  default: T(() => [
237
- P(U(t(l).contactInformationTitle), 1)
238
+ j(P(t(l).contactInformationTitle), 1)
238
239
  ]),
239
240
  _: 1
240
241
  }),
@@ -250,7 +251,7 @@ const Le = (a) => {
250
251
  placeholder: t(l).emailPlaceholder,
251
252
  error: h("email")
252
253
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
253
- c(t(oe), {
254
+ c(t(te), {
254
255
  "single-model-value": v.value,
255
256
  "onUpdate:singleModelValue": n[1] || (n[1] = (m) => v.value = m),
256
257
  i18n: { placeholderDefault: t(l).countryPlaceholder },
@@ -277,15 +278,15 @@ const Le = (a) => {
277
278
  placeholder: t(l).legalNamePlaceholder,
278
279
  error: h("companyLegalName")
279
280
  }, null, 8, ["modelValue", "label", "placeholder", "error"])
280
- ], 64)) : E("", !0)
281
+ ], 64)) : k("", !0)
281
282
  ]),
282
283
  F("div", Te, [
283
- c(t(w), {
284
+ c(t(R), {
284
285
  variant: "heading-3",
285
286
  tag: "h2"
286
287
  }, {
287
288
  default: T(() => [
288
- P(U(t(o)({
289
+ j(P(t(o)({
289
290
  defaultMessage: "Billing details",
290
291
  id: "checkout.billing_information_block.title",
291
292
  description: "The title of the billing information block in the checkout form"
@@ -295,7 +296,7 @@ const Le = (a) => {
295
296
  })
296
297
  ]),
297
298
  F("div", Fe, [
298
- V.value ? E("", !0) : (_(), $("div", Ae, [
299
+ V.value ? k("", !0) : (_(), $("div", Oe, [
299
300
  c(t(N), {
300
301
  modelValue: s.firstName,
301
302
  "onUpdate:modelValue": n[4] || (n[4] = (m) => s.firstName = m),
@@ -344,7 +345,7 @@ const Le = (a) => {
344
345
  }),
345
346
  error: h("addressLine1")
346
347
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
347
- c(A, {
348
+ c(O, {
348
349
  modelValue: s.addressLine2,
349
350
  "onUpdate:modelValue": n[7] || (n[7] = (m) => s.addressLine2 = m),
350
351
  name: "address_line_2",
@@ -357,8 +358,8 @@ const Le = (a) => {
357
358
  }),
358
359
  error: f.value.fields.addressLine2
359
360
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
360
- F("div", Oe, [
361
- c(A, {
361
+ F("div", Ae, [
362
+ c(O, {
362
363
  modelValue: s.postalCode,
363
364
  "onUpdate:modelValue": n[8] || (n[8] = (m) => s.postalCode = m),
364
365
  name: "postal_code",
@@ -367,7 +368,7 @@ const Le = (a) => {
367
368
  placeholder: t(l).postalCodePlaceholder,
368
369
  error: h("postalCode")
369
370
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
370
- c(A, {
371
+ c(O, {
371
372
  modelValue: s.city,
372
373
  "onUpdate:modelValue": n[9] || (n[9] = (m) => s.city = m),
373
374
  name: "city",
@@ -376,7 +377,7 @@ const Le = (a) => {
376
377
  placeholder: t(l).cityPlaceholder,
377
378
  error: f.value.fields.city
378
379
  }, null, 8, ["modelValue", "label", "placeholder", "error"]),
379
- c(A, {
380
+ c(O, {
380
381
  modelValue: s.state,
381
382
  "onUpdate:modelValue": n[10] || (n[10] = (m) => s.state = m),
382
383
  name: "state",
@@ -387,11 +388,11 @@ const Le = (a) => {
387
388
  }, null, 8, ["modelValue", "label", "placeholder", "error"])
388
389
  ])
389
390
  ]),
390
- f.value.generic ? (_(), k(t(le), {
391
+ f.value.generic ? (_(), E(t(oe), {
391
392
  key: 0,
392
393
  class: "mt-4",
393
394
  title: f.value.generic
394
- }, null, 8, ["title"])) : E("", !0),
395
+ }, null, 8, ["title"])) : k("", !0),
395
396
  c(t(K), {
396
397
  type: "submit",
397
398
  intent: "primary",
@@ -400,7 +401,7 @@ const Le = (a) => {
400
401
  class: "mt-4"
401
402
  }, {
402
403
  default: T(() => [
403
- P(U(t(o)({
404
+ j(P(t(o)({
404
405
  defaultMessage: "Save changes",
405
406
  id: "billing_information_form.submit_button.label",
406
407
  description: "The label for the submit button of the billing information form"
@@ -410,7 +411,7 @@ const Le = (a) => {
410
411
  }, 8, ["disabled", "loading"])
411
412
  ], 32));
412
413
  }
413
- }), ke = /* @__PURE__ */ x({
414
+ }), Ee = /* @__PURE__ */ x({
414
415
  __name: "BillingInformationForm",
415
416
  props: {
416
417
  customer: { type: Object },
@@ -419,7 +420,7 @@ const Le = (a) => {
419
420
  isLoading: { type: Boolean }
420
421
  },
421
422
  setup(a) {
422
- return (e, o) => (_(), k(Ee, {
423
+ return (e, o) => (_(), E(ke, {
423
424
  class: "sv-billing-form sv-root sv-component",
424
425
  customer: a.customer,
425
426
  "update-customer": a.updateCustomer,
@@ -430,6 +431,7 @@ const Le = (a) => {
430
431
  }), xe = /* @__PURE__ */ x({
431
432
  __name: "BillingInformationForm.entry.view",
432
433
  props: {
434
+ portalToken: { type: Object },
433
435
  environment: { type: String },
434
436
  locale: { type: String },
435
437
  dateLocale: { type: String },
@@ -457,6 +459,7 @@ const Le = (a) => {
457
459
  }), $e = /* @__PURE__ */ x({
458
460
  __name: "BillingInformationForm.entry",
459
461
  props: {
462
+ portalToken: { type: Object },
460
463
  environment: { type: String },
461
464
  locale: { type: String },
462
465
  dateLocale: { type: String },
@@ -474,8 +477,8 @@ const Le = (a) => {
474
477
  },
475
478
  emits: ["error"],
476
479
  setup(a) {
477
- const e = ne("billing-information-form");
478
- return (o, l) => (_(), k(t(ie), {
480
+ const e = ie("billing-information-form");
481
+ return (o, l) => (_(), E(t(re), {
479
482
  entry: o.$props,
480
483
  "component-name": t(e),
481
484
  "allowed-portal-types": ["CUSTOMER"],
@@ -484,13 +487,13 @@ const Le = (a) => {
484
487
  default: T(() => [
485
488
  c(xe, X(J(o.$props)), {
486
489
  default: T(({ customer: i, updateCustomer: r, isLoading: p, apiError: y }) => [
487
- i ? (_(), k(ke, {
490
+ i ? (_(), E(Ee, {
488
491
  key: 0,
489
492
  customer: i,
490
493
  "is-loading": p,
491
494
  "update-customer": ({ payload: b }) => r.execute(b),
492
495
  "api-error": y
493
- }, null, 8, ["customer", "is-loading", "update-customer", "api-error"])) : E("", !0)
496
+ }, null, 8, ["customer", "is-loading", "update-customer", "api-error"])) : k("", !0)
494
497
  ]),
495
498
  _: 1
496
499
  }, 16)
@@ -498,10 +501,10 @@ const Le = (a) => {
498
501
  _: 1
499
502
  }, 8, ["entry", "component-name"]));
500
503
  }
501
- }), { define: Ze } = se(
504
+ }), { define: Ye } = ne(
502
505
  $e,
503
506
  "billing-information-form"
504
507
  );
505
508
  export {
506
- Ze as defineSolvimonBillingInformationForm
509
+ Ye as defineSolvimonBillingInformationForm
507
510
  };
@@ -1,13 +1,14 @@
1
- import { defineComponent as m, renderSlot as c, unref as a, openBlock as l, createBlock as d, withCtx as i, createVNode as p, normalizeProps as g, guardReactiveProps as u } from "vue";
2
- import { _ as f } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs";
1
+ import { defineComponent as m, renderSlot as c, unref as a, openBlock as l, createBlock as d, withCtx as s, createVNode as i, normalizeProps as g, guardReactiveProps as u } from "vue";
2
+ import { _ as f } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs";
3
3
  import { D as S } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
4
- import { u as _ } from "../../useLoadInitialData-4k_Cyqef.mjs";
5
- import { u as h } from "../../usePaymentMethods-gvr-rmwE.mjs";
6
- import { e as O, g as b, f as j } from "../../customElements-Di3zwlEU.mjs";
4
+ import { u as O } from "../../useLoadInitialData-qzdnBoui.mjs";
5
+ import { u as _ } from "../../usePaymentMethods-ByaKF7mf.mjs";
6
+ import { g as b, h, j } from "../../customElements-BTj4ii4f.mjs";
7
7
  const v = /* @__PURE__ */ m({
8
8
  __name: "CustomerPaymentMethods.entry.view",
9
9
  props: {
10
10
  portalObject: { type: Object },
11
+ portalToken: { type: Object },
11
12
  environment: { type: String },
12
13
  locale: { type: String },
13
14
  dateLocale: { type: String },
@@ -23,12 +24,12 @@ const v = /* @__PURE__ */ m({
23
24
  branding: { type: Object },
24
25
  configuration: { type: Object }
25
26
  },
26
- setup(s) {
27
+ setup(p) {
27
28
  var n;
28
- const r = s, e = r.portalObject.customer_id, t = h({
29
+ const r = p, e = r.portalObject.customer_id, t = _({
29
30
  customerId: e,
30
31
  pageSize: ((n = r.configuration) == null ? void 0 : n.maxItems) || S
31
- }), { isLoading: o } = _(t.fetchInitial());
32
+ }), { isLoading: o } = O(t.fetchInitial());
32
33
  return (y, L) => c(y.$slots, "default", {
33
34
  paymentMethods: a(t).items.value,
34
35
  isLoading: a(o)
@@ -38,6 +39,7 @@ const v = /* @__PURE__ */ m({
38
39
  __name: "CustomerPaymentMethods.entry",
39
40
  props: {
40
41
  portalObject: { type: Object },
42
+ portalToken: { type: Object },
41
43
  environment: { type: String },
42
44
  locale: { type: String },
43
45
  dateLocale: { type: String },
@@ -53,19 +55,19 @@ const v = /* @__PURE__ */ m({
53
55
  branding: { type: Object },
54
56
  configuration: { type: Object }
55
57
  },
56
- setup(s) {
57
- const r = b("customer-payment-methods");
58
- return (e, t) => (l(), d(a(O), {
58
+ setup(p) {
59
+ const r = h("customer-payment-methods");
60
+ return (e, t) => (l(), d(a(b), {
59
61
  entry: e.$props,
60
62
  "component-name": a(r),
61
63
  "allowed-portal-types": ["CUSTOMER"],
62
64
  onError: t[0] || (t[0] = (o) => e.$emit("error", o))
63
65
  }, {
64
- default: i(() => [
65
- p(v, g(u(e.$props)), {
66
- default: i(({ paymentMethods: o, isLoading: n }) => [
67
- p(f, {
68
- configuration: s.configuration,
66
+ default: s(() => [
67
+ i(v, g(u(e.$props)), {
68
+ default: s(({ paymentMethods: o, isLoading: n }) => [
69
+ i(f, {
70
+ configuration: p.configuration,
69
71
  "payment-methods": o,
70
72
  "is-loading": n
71
73
  }, null, 8, ["configuration", "payment-methods", "is-loading"])
@@ -76,10 +78,10 @@ const v = /* @__PURE__ */ m({
76
78
  _: 1
77
79
  }, 8, ["entry", "component-name"]));
78
80
  }
79
- }), { define: F } = j(
81
+ }), { define: E } = j(
80
82
  C,
81
83
  "customer-payment-methods"
82
84
  );
83
85
  export {
84
- F as defineSolvimonCustomerPaymentMethods
86
+ E as defineSolvimonCustomerPaymentMethods
85
87
  };