@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31

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 (257) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
  5. package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
  6. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
  8. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  9. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
  10. package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
  11. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
  12. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
  13. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
  14. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  15. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
  16. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
  17. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
  18. package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
  19. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
  20. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
  21. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
  22. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
  23. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
  24. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
  25. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
  26. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
  27. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
  28. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
  29. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
  30. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
  31. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
  32. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
  33. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
  34. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
  35. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
  36. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
  37. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
  38. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
  39. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
  40. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
  41. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
  42. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
  43. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
  44. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
  45. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
  46. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
  47. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
  48. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
  49. package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
  50. package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
  51. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
  52. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
  53. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
  54. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
  55. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
  56. package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
  57. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
  58. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
  59. package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
  60. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
  61. package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
  62. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
  63. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
  64. package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
  65. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
  66. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
  67. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
  68. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
  69. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  70. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
  71. package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
  72. package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
  73. package/dist/addonQuantity-BvoYTajN.mjs +128 -0
  74. package/dist/adyen-D4em6EgU.mjs +99 -0
  75. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  76. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  77. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  78. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  79. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  80. package/dist/components/Invoice/Invoice.mjs +426 -426
  81. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  82. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  83. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  84. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  86. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  87. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  89. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  90. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  91. package/dist/core/events.types.d.ts +1 -0
  92. package/dist/core/index.mjs +51 -34
  93. package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
  94. package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
  95. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
  96. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
  97. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
  98. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
  99. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  100. package/dist/index.es-BEZ2mumY.mjs +633 -0
  101. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  102. package/dist/index.mjs +37 -33
  103. package/dist/invoices-CXvL8KQx.mjs +143 -0
  104. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
  105. package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
  106. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
  107. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
  108. package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
  109. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
  110. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
  111. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  112. package/dist/payments-Dy81gmkC.mjs +71 -0
  113. package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
  114. package/dist/pricing-CBJT8C6L.mjs +42 -0
  115. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
  116. package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
  117. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  118. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  119. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  120. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
  121. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  122. package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
  123. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  124. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  125. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  126. package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
  127. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  128. package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
  129. package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
  130. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  131. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  132. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  133. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  134. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  135. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  136. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  137. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  138. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  139. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  140. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  141. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  142. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  143. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  144. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  145. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  146. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  147. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  148. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  149. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  150. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  151. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  152. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  153. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  154. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  155. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  156. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  157. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  158. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  159. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  160. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  161. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  162. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  164. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  166. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  167. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  168. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  170. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  171. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  172. package/dist/types/index.d.ts +5 -1
  173. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  174. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  175. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  176. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  177. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  178. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  179. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  180. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  181. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  182. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  183. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  184. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  185. package/dist/types/public/core/action-request.types.d.ts +18 -24
  186. package/dist/types/public/core/events.types.d.ts +99 -0
  187. package/dist/types/public/core/index.d.ts +3 -1
  188. package/dist/types/public/core/types.d.ts +11 -2
  189. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  190. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  191. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  192. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  193. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  194. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  195. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  198. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  199. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  200. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  201. package/dist/types/types/branding.d.ts +15 -0
  202. package/dist/types/types/checkoutSession.d.ts +189 -0
  203. package/dist/types/types/errors.d.ts +2 -0
  204. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  205. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
  206. package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
  207. package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
  208. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
  209. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  210. package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
  211. package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
  212. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
  213. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
  214. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
  215. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
  216. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  217. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
  218. package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
  219. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
  220. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
  221. package/dist/usePortal--Uzbpbgr.mjs +14 -0
  222. package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
  223. package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
  224. package/dist/useSubscription-lIGMFLG1.mjs +35 -0
  225. package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
  226. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  227. package/package.json +12 -5
  228. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  229. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  230. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  231. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  232. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  233. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  234. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  235. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  236. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  237. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  238. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  239. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  240. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  241. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  242. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  243. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  244. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  245. package/dist/invoices-DdREPDXV.mjs +0 -123
  246. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  247. package/dist/payments-CKpU1K3t.mjs +0 -68
  248. package/dist/pricing-CEaZGgKe.mjs +0 -29
  249. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  250. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  251. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  252. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  253. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  254. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  255. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  256. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  257. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,1173 +0,0 @@
1
- import { defineComponent as _, openBlock as n, createElementBlock as x, createVNode as N, unref as w, withCtx as S, renderSlot as U, toDisplayString as F, createCommentVNode as m, createElementVNode as I, computed as d, withKeys as ml, withModifiers as Ue, normalizeClass as R, Fragment as le, mergeProps as E, createBlock as p, resolveDynamicComponent as P, normalizeProps as B, createTextVNode as j, renderList as Ge, inject as vl, getCurrentInstance as hl, ref as q, watch as xe, useModel as He, useSlots as pl, createSlots as we, guardReactiveProps as Be, Teleport as bl, normalizeStyle as Ee, mergeModels as ke, isRef as Re, useId as yl } from "vue";
2
- import { u as ie, c as gl, d as xl } from "./index.es-BrVTOW5D.mjs";
3
- import { c as Ke } from "./countryData.es-BegoD-cZ.mjs";
4
- import { d as re, S as Cl, a as kl } from "./customElements-DK4GKNJG.mjs";
5
- import { e as Se } from "./sanitization.es-C6dbuxUJ.mjs";
6
- import { _ as J, s as Ne, u as Sl } from "./sorting.es-C0pdMgX0.mjs";
7
- import { u as wl } from "./useLazyFloating.es-CycqRyeb.mjs";
8
- import { _ as Te } from "./IconButton.vue.es-D8DtBW9i.mjs";
9
- import { a as De, _ as Ce } from "./Button.vue.es-j7iYlqtJ.mjs";
10
- import { _ as Il } from "./Chip.vue.es-Dxx_0dte.mjs";
11
- import { i as ze, a as Ll } from "./useService-BwzIBIRp.mjs";
12
- import { c as Al } from "./cn.es-B8acFrov.mjs";
13
- import { _ as Ze } from "./Input.vue.es-BLyHcmu4.mjs";
14
- import { _ as Ml } from "./FormMessage.vue.es-CwMQpIAW.mjs";
15
- function Vl(e, r, i = []) {
16
- return [...e].sort((s, a) => {
17
- for (let f = 0; f < r.length; f++) {
18
- const v = r[f], b = typeof v == "function" ? v : (T) => T[v], o = i[f] === "desc" ? -1 : 1, A = b(s), M = b(a);
19
- if (!(A == null && M == null)) {
20
- if (A == null) return o;
21
- if (M == null || A < M) return -o;
22
- if (A > M) return o;
23
- }
24
- }
25
- return 0;
26
- });
27
- }
28
- const $l = { class: "flex items-center pt-1" }, Ol = {
29
- key: 0,
30
- class: "ml-1 normal-case"
31
- }, Pl = /* @__PURE__ */ _({
32
- __name: "SearchSelectInputOptionsDivider",
33
- props: {
34
- suffix: {}
35
- },
36
- setup(e) {
37
- return (r, i) => (n(), x("div", $l, [
38
- N(w(re), {
39
- tag: "span",
40
- variant: "caps-heading",
41
- "no-spacing": "",
42
- class: "pl-4 pr-1.5"
43
- }, {
44
- default: S(() => [
45
- U(r.$slots, "default"),
46
- e.suffix ? (n(), x("span", Ol, F(e.suffix), 1)) : m("", !0)
47
- ]),
48
- _: 3
49
- }),
50
- i[0] || (i[0] = I("div", { class: "grow border-t" }, null, -1))
51
- ]));
52
- }
53
- }), Bl = (e) => `checkbox-item-${e}`, El = "select-search-done-button", Rl = ["aria-selected", "aria-disabled", "data-testid", "onKeydown"], Nl = ["id", "value", "checked", "disabled"], Tl = ["for"], Dl = { class: "flex min-w-0 items-center gap-1" }, zl = { class: "flex min-w-0 flex-grow flex-col" }, Fl = { class: "flex min-w-0 flex-grow gap-2" }, ql = { class: "mr-8 flex min-w-0 flex-grow flex-col" }, Ul = { class: "flex min-w-0 flex-grow items-center gap-2" }, Gl = /* @__PURE__ */ _({
54
- __name: "SearchSelectInputOption",
55
- props: {
56
- multiple: { type: Boolean },
57
- search: {},
58
- condensed: { type: Boolean },
59
- label: {},
60
- checked: { type: Boolean },
61
- disabled: { type: Boolean },
62
- subLabel: {},
63
- labelPrefixComponent: {},
64
- labelSuffixComponent: {},
65
- labelInlineComponent: {},
66
- labelBeforeSuffixComponent: {},
67
- value: {},
68
- labelSrOnly: { type: Boolean }
69
- },
70
- emits: ["value-changed"],
71
- setup(e, { emit: r }) {
72
- const i = r, s = e, a = (o) => {
73
- const A = o.target, M = {
74
- value: A.value,
75
- checked: A.checked
76
- };
77
- i("value-changed", M);
78
- }, f = () => {
79
- s.multiple || s.disabled || i("value-changed", {
80
- value: s.value
81
- });
82
- }, v = d(() => Bl(s.value)), b = d(() => Se(s.search ?? ""));
83
- return (o, A) => (n(), x("li", {
84
- role: "option",
85
- "aria-selected": e.checked,
86
- "aria-disabled": e.disabled,
87
- class: R([{ "hover:bg-gray-100": !e.disabled }, "relative flex"]),
88
- "data-testid": v.value,
89
- tabindex: "0",
90
- onClick: f,
91
- onKeydown: ml(Ue(f, ["prevent"]), ["enter"])
92
- }, [
93
- e.multiple ? (n(), x(le, { key: 0 }, [
94
- I("input", E(o.$attrs, {
95
- id: v.value,
96
- ref: "inputRef",
97
- value: e.value,
98
- checked: e.checked,
99
- disabled: e.disabled,
100
- type: "checkbox",
101
- class: ["absolute left-3.5 top-1/2 h-4 w-4 -translate-y-2 rounded border-gray-300 bg-gray-100 focus:ring-2 focus:ring-primary-500", e.disabled ? "text-disabled" : "text-primary-600"],
102
- tabindex: "-1",
103
- onChange: a
104
- }), null, 16, Nl),
105
- I("label", {
106
- for: v.value,
107
- class: R([e.disabled ? "text-disabled" : "rounded text-default", "w-full px-4 py-3 pl-10 text-sm font-medium"])
108
- }, [
109
- I("div", Dl, [
110
- e.labelPrefixComponent ? (n(), p(P(e.labelPrefixComponent.component), B(E({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : m("", !0),
111
- I("div", zl, [
112
- I("div", Fl, [
113
- N(J, {
114
- text: e.label,
115
- search: b.value,
116
- title: e.label,
117
- class: R(["truncate font-semibold", { "sr-only": e.labelSrOnly }])
118
- }, null, 8, ["text", "search", "title", "class"]),
119
- e.labelInlineComponent ? (n(), p(P(e.labelInlineComponent.component), B(E({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : m("", !0),
120
- e.subLabel && e.condensed ? (n(), p(J, {
121
- key: 1,
122
- class: "truncate text-xs text-subtle",
123
- text: e.subLabel,
124
- title: e.subLabel,
125
- search: b.value
126
- }, null, 8, ["text", "title", "search"])) : m("", !0)
127
- ]),
128
- e.subLabel && !e.condensed ? (n(), p(J, {
129
- key: 0,
130
- class: "truncate text-xs text-subtle",
131
- text: e.subLabel,
132
- title: e.subLabel,
133
- search: b.value
134
- }, null, 8, ["text", "title", "search"])) : m("", !0)
135
- ]),
136
- e.labelBeforeSuffixComponent ? (n(), p(P(e.labelBeforeSuffixComponent.component), B(E({ key: 1 }, e.labelBeforeSuffixComponent.props)), null, 16)) : m("", !0),
137
- e.labelSuffixComponent ? (n(), p(P(e.labelSuffixComponent.component), B(E({ key: 2 }, e.labelSuffixComponent.props)), null, 16)) : m("", !0)
138
- ])
139
- ], 10, Tl)
140
- ], 64)) : (n(), x("div", {
141
- key: 1,
142
- class: R(["flex w-full min-w-0 items-center gap-3 px-4 text-sm font-medium", [
143
- e.condensed ? "p-2" : "py-2",
144
- e.disabled ?? "cursor-not-allowed",
145
- !e.disabled && "cursor-pointer"
146
- ]])
147
- }, [
148
- e.labelPrefixComponent ? (n(), p(P(e.labelPrefixComponent.component), B(E({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : m("", !0),
149
- I("div", ql, [
150
- I("div", Ul, [
151
- N(J, {
152
- text: e.label,
153
- search: w(Se)(e.search ?? ""),
154
- title: e.label,
155
- class: R(["truncate font-semibold", { "text-disabled": e.disabled }])
156
- }, null, 8, ["text", "search", "title", "class"]),
157
- e.labelInlineComponent ? (n(), p(P(e.labelInlineComponent.component), B(E({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : m("", !0),
158
- e.subLabel && e.condensed ? (n(), p(J, {
159
- key: 1,
160
- class: "truncate text-xs text-subtle",
161
- text: e.subLabel,
162
- title: e.subLabel,
163
- search: b.value
164
- }, null, 8, ["text", "title", "search"])) : m("", !0)
165
- ]),
166
- e.subLabel && !e.condensed ? (n(), p(J, {
167
- key: 0,
168
- class: "truncate text-xs text-subtle",
169
- text: e.subLabel,
170
- title: e.subLabel,
171
- search: b.value
172
- }, null, 8, ["text", "title", "search"])) : m("", !0)
173
- ]),
174
- e.labelBeforeSuffixComponent ? (n(), p(P(e.labelBeforeSuffixComponent.component), B(E({ key: 1 }, e.labelBeforeSuffixComponent.props)), null, 16)) : m("", !0),
175
- e.labelSuffixComponent ? (n(), p(P(e.labelSuffixComponent.component), B(E({ key: 2 }, e.labelSuffixComponent.props)), null, 16)) : m("", !0)
176
- ], 2))
177
- ], 42, Rl));
178
- }
179
- }), Hl = { class: "flex flex-col rounded-bl rounded-br" }, Kl = {
180
- key: 0,
181
- class: "px-5 py-5 text-sm text-secondary"
182
- }, Zl = { key: 0 }, Yl = ["innerHTML"], jl = { key: 0 }, Wl = /* @__PURE__ */ _({
183
- __name: "SearchSelectInputOptions",
184
- props: {
185
- i18n: {},
186
- model: {},
187
- search: {},
188
- multiple: { type: Boolean },
189
- condensed: { type: Boolean },
190
- hasLargeDropdown: { type: Boolean },
191
- addOnly: { type: Boolean },
192
- options: {}
193
- },
194
- emits: ["value-changed"],
195
- setup(e, { emit: r }) {
196
- const i = r, s = e, a = (g) => i("value-changed", g), f = d(() => {
197
- var g, C;
198
- const y = s.search ? `<span class="font-bold">"${Se(s.search)}"</span>` : "";
199
- return ((C = (g = s.i18n) == null ? void 0 : g.noResults) == null ? void 0 : C.call(g, y)) ?? `No matches found for ${y}.`;
200
- }), v = d(() => s.search === ""), b = d(() => s.options.filter((g) => !g.hidden)), o = d(() => b.value.length > 0), A = d(() => o.value ? !1 : v.value ? !0 : !!f.value), M = d(
201
- () => Ne(s.options, "group").reduce(
202
- (g, C) => C.value === "" ? g : {
203
- ...g,
204
- [C.value]: C.group
205
- },
206
- {}
207
- )
208
- ), T = d(
209
- () => Ne(s.options, "group").reduce(
210
- (g, C) => C.value === "" ? g : {
211
- ...g,
212
- [C.value]: C.groupSuffix
213
- },
214
- {}
215
- )
216
- );
217
- return (g, C) => {
218
- var y;
219
- return n(), x("div", Hl, [
220
- A.value ? (n(), x("div", Kl, [
221
- v.value ? (n(), x("span", Zl, F(((y = s.i18n) == null ? void 0 : y.noOptionsAvailable) ?? "No available options."), 1)) : (n(), x("span", {
222
- key: 1,
223
- innerHTML: f.value
224
- }, null, 8, Yl))
225
- ])) : o.value ? (n(), x("ul", {
226
- key: 1,
227
- class: R(["list-none overflow-y-auto", [e.hasLargeDropdown ? "max-h-[19rem]" : "max-h-48"]])
228
- }, [
229
- e.addOnly ? (n(), x("div", jl, [
230
- N(re, {
231
- variant: "body-sm",
232
- color: "secondary",
233
- "no-spacing": "",
234
- class: "mt-1 px-3 py-2"
235
- }, {
236
- default: S(() => {
237
- var W;
238
- return [
239
- j(F(((W = e.i18n) == null ? void 0 : W.addOnly) ?? "You can only select currently unselected options."), 1)
240
- ];
241
- }),
242
- _: 1
243
- })
244
- ])) : m("", !0),
245
- (n(!0), x(le, null, Ge(b.value, ({
246
- label: W,
247
- subLabel: te,
248
- value: G,
249
- checked: ae,
250
- disabled: de,
251
- labelInlineComponent: $,
252
- labelSuffixComponent: ce,
253
- labelSrOnly: fe,
254
- labelPrefixComponent: me,
255
- labelBeforeSuffixComponent: h,
256
- searchValues: H
257
- }) => (n(), x(le, { key: G }, [
258
- M.value[G] ? (n(), p(Pl, {
259
- key: 0,
260
- suffix: T.value[G]
261
- }, {
262
- default: S(() => [
263
- j(F(M.value[G]), 1)
264
- ]),
265
- _: 2
266
- }, 1032, ["suffix"])) : m("", !0),
267
- N(Gl, {
268
- label: W,
269
- "sub-label": te,
270
- value: G,
271
- checked: ae,
272
- disabled: de,
273
- search: H ? "" : e.search,
274
- multiple: e.multiple,
275
- condensed: e.condensed,
276
- "label-suffix-component": ce,
277
- "label-prefix-component": me,
278
- "label-before-suffix-component": h,
279
- "label-inline-component": $,
280
- "label-sr-only": fe,
281
- onValueChanged: a
282
- }, null, 8, ["label", "sub-label", "value", "checked", "disabled", "search", "multiple", "condensed", "label-suffix-component", "label-prefix-component", "label-before-suffix-component", "label-inline-component", "label-sr-only"])
283
- ], 64))), 128))
284
- ], 2)) : m("", !0),
285
- g.$slots["list-footer-content"] ? (n(), x("div", {
286
- key: 2,
287
- class: R({ "border-t border-gray-200": o.value })
288
- }, [
289
- U(g.$slots, "list-footer-content")
290
- ], 2)) : m("", !0)
291
- ]);
292
- };
293
- }
294
- }), Ql = { class: "flex flex-col gap-2" }, Xl = ["aria-expanded"], Jl = { class: "flex items-center gap-2" }, _l = { key: 2 }, et = { class: "flex items-center gap-2 self-stretch" }, lt = { class: "flex items-center" }, tt = {
295
- key: 0,
296
- class: "flex flex-wrap gap-2"
297
- }, at = ["innerHTML"], nt = /* @__PURE__ */ _({
298
- __name: "SearchSelectInput",
299
- props: /* @__PURE__ */ ke({
300
- addOnly: { type: Boolean, default: !1 },
301
- disabled: { type: Boolean },
302
- i18n: {},
303
- label: {},
304
- labelScreenReaderOnly: { type: Boolean },
305
- singleModelValue: {},
306
- multiModelValue: {},
307
- options: { default: () => [] },
308
- optionsOrder: { default: () => ["asc", "asc"] },
309
- optionsOrderProperties: { default: () => ["group", "label"] },
310
- required: { type: Boolean, default: !1 },
311
- rootClass: {},
312
- wrapperClass: {},
313
- inputClass: {},
314
- dropdownWidth: {},
315
- invalid: { type: Boolean },
316
- size: { default: "md" },
317
- withChips: { type: Boolean, default: !1 },
318
- error: {},
319
- hasReset: { type: Boolean },
320
- name: {},
321
- hasLargeDropdown: { type: Boolean, default: !1 },
322
- showSuffixInClosedInput: { type: Boolean },
323
- showSuffixLabelInInput: { type: Boolean },
324
- showSelectionInClosedInput: { type: Boolean },
325
- condensed: { type: Boolean },
326
- form: {},
327
- prefix: {}
328
- }, {
329
- search: { default: "" },
330
- searchModifiers: {}
331
- }),
332
- emits: /* @__PURE__ */ ke(["update:singleModelValue", "update:multiModelValue", "blur", "change", "focus", "add-option"], ["update:search"]),
333
- setup(e, { expose: r, emit: i }) {
334
- var s;
335
- const a = e, f = vl(Cl), v = (s = hl()) == null ? void 0 : s.vnode.props, b = !(v != null && v["onUpdate:search"]), o = d(() => Array.isArray(a.multiModelValue)), A = q(a.singleModelValue), M = i, T = ie(a, "singleModelValue", M), g = ie(a, "multiModelValue", M), C = q(g.value ?? []);
336
- xe(
337
- () => a.multiModelValue,
338
- (l) => {
339
- l && (C.value = l);
340
- }
341
- );
342
- const y = He(e, "search"), W = pl(), te = d(() => !!W.prefix), G = d(() => !!a.prefix), ae = d(() => te.value || G.value), de = d(() => ae.value || !ge.value), $ = d({
343
- get: () => o.value ? C.value ?? [] : typeof T.value == "string" ? [T.value] : [],
344
- set(l) {
345
- o.value ? C.value = l : T.value = (l == null ? void 0 : l[0]) ?? "";
346
- }
347
- }), ce = d(
348
- () => Z.value.filter((l) => {
349
- var t;
350
- return (t = $.value) == null ? void 0 : t.includes(l.value);
351
- })
352
- ), fe = d(() => ce.value[0]), me = Sl(), h = q(!1), H = q(), K = q(), Qe = q(), Ie = () => H.value ? Array.from(
353
- H.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
354
- ) : [], Le = () => {
355
- var l;
356
- let t = document.activeElement;
357
- for (; (l = t == null ? void 0 : t.shadowRoot) != null && l.activeElement; )
358
- t = t.shadowRoot.activeElement;
359
- return t;
360
- }, ve = () => {
361
- if (!K.value) return null;
362
- let l = K.value.querySelector("input");
363
- if (l) return l;
364
- const t = K.value.querySelectorAll("*");
365
- for (const u of t)
366
- if (u.shadowRoot && (l = u.shadowRoot.querySelector("input"), l))
367
- return l;
368
- return null;
369
- };
370
- let he = !1;
371
- const pe = () => {
372
- var l;
373
- he = !0, (l = ve()) == null || l.focus(), he = !1;
374
- }, be = (l) => (l == null ? void 0 : l.selectedLabel) ?? (l == null ? void 0 : l.label) ?? "", D = q(""), ee = q(!1), Xe = () => {
375
- he || (h.value = !0);
376
- }, Je = (l) => {
377
- var t;
378
- a.disabled || (t = l.target) != null && t.closest("button") || (h.value = !0);
379
- }, _e = () => {
380
- a.disabled || (ee.value = !0, h.value = !0);
381
- }, el = (l) => {
382
- var t;
383
- if (!h.value) return;
384
- const u = Ie(), k = ve();
385
- if (Le() === k)
386
- switch (l.key) {
387
- case "ArrowDown":
388
- u.length > 0 && (l.preventDefault(), (t = u[0]) == null || t.focus());
389
- break;
390
- case "Tab":
391
- z();
392
- break;
393
- case "Escape":
394
- l.preventDefault(), z();
395
- break;
396
- }
397
- }, ll = (l) => {
398
- var t, u, k;
399
- const V = Ie(), c = Le(), O = V.indexOf(c), X = ve();
400
- switch (l.key) {
401
- case "ArrowDown":
402
- O < V.length - 1 && (l.preventDefault(), (t = V[O + 1]) == null || t.focus());
403
- break;
404
- case "ArrowUp":
405
- l.preventDefault(), O <= 0 ? X == null || X.focus() : (u = V[O - 1]) == null || u.focus();
406
- break;
407
- case "Tab":
408
- if (l.preventDefault(), l.shiftKey && O > 0) {
409
- (k = V[O - 1]) == null || k.focus();
410
- break;
411
- }
412
- z(), pe();
413
- break;
414
- case "Escape":
415
- l.preventDefault(), z(), pe();
416
- break;
417
- }
418
- }, { floatingStyles: tl } = wl(K, H, {
419
- // Matches `bottom` while the dropdown is as wide as the input, and keeps a wider
420
- // `dropdownWidth` dropdown aligned to the input's left edge.
421
- placement: "bottom-start",
422
- middleware: ({ offset: l, flip: t, shift: u, size: k }) => [
423
- l(4),
424
- t({
425
- mainAxis: !0
426
- }),
427
- u({ padding: 8 }),
428
- k({
429
- padding: 8,
430
- apply({ availableHeight: V, elements: c }) {
431
- Object.assign(c.floating.style, {
432
- maxHeight: `${V}px`
433
- });
434
- }
435
- })
436
- ]
437
- }), { width: al } = gl(K), Ae = (l) => {
438
- var t;
439
- return a.disabled || !a.disabled && a.addOnly && !!((t = A.value) != null && t.includes(l));
440
- }, Z = d(() => {
441
- const l = a.options.map((u) => ({
442
- ...u,
443
- checked: $.value.includes(u.value),
444
- disabled: u.disabled ?? Ae(u.value)
445
- })), t = [
446
- ...l,
447
- ...y.value.length === 0 && ne.value ? ne.value.filter(
448
- (u) => !l.some((k) => k.value === u.value)
449
- ) : []
450
- ];
451
- return a.optionsOrderProperties && !ze(a.optionsOrderProperties) ? Vl(t, a.optionsOrderProperties, a.optionsOrder) : t;
452
- }), Me = (l) => Z.value.filter((t) => l.some((u) => t.value === u)), Y = d(() => Me($.value)), L = d(() => Y.value[0]), ye = d(() => {
453
- var l;
454
- if (!(h.value || !a.showSuffixInClosedInput) && !(o.value && Y.value.length !== 1))
455
- return (l = L.value) == null ? void 0 : l.labelSuffixComponent;
456
- }), Q = d(() => {
457
- var l;
458
- if (!a.showSelectionInClosedInput || h.value || !o.value)
459
- return;
460
- const t = (l = L.value) == null ? void 0 : l.labelPrefixComponent;
461
- if (t)
462
- return { component: t, extraCount: Y.value.length - 1 };
463
- }), nl = d(() => a.size === "xs" ? "px-1" : a.size === "sm" ? "px-2" : "px-4"), ne = q([]);
464
- xe(
465
- () => {
466
- if (o.value) return null;
467
- const l = T.value ?? "";
468
- return {
469
- selectedValue: l,
470
- label: be(a.options.find((t) => t.value === l))
471
- };
472
- },
473
- (l) => {
474
- if (l) {
475
- if (!l.selectedValue) {
476
- D.value = "", h.value || (y.value = "");
477
- return;
478
- }
479
- l.label && (D.value = l.label, h.value || (y.value = l.label));
480
- }
481
- },
482
- { immediate: !0 }
483
- );
484
- const Ve = ({
485
- value: l,
486
- checked: t
487
- }) => {
488
- let u;
489
- o.value ? u = t ? [...$.value, l] : $.value.filter((k) => k !== l) : (u = [l], D.value = be(
490
- Z.value.find((k) => k.value === l)
491
- ), y.value = D.value, ee.value = !1, h.value = !1, pe()), ne.value = Me(u), $.value = u, M("change");
492
- }, $e = d(
493
- () => $.value.length > 0 && !a.disabled && !($.value.length === 1 && $.value[0] === "")
494
- ), oe = () => {
495
- $.value = [], C.value = [], o.value || (D.value = "", y.value = "", ee.value = !1);
496
- }, ol = () => {
497
- if (!o.value && D.value && y.value === D.value) {
498
- oe();
499
- return;
500
- }
501
- y.value = "";
502
- }, sl = d(() => {
503
- if (!b || !o.value && !ee.value)
504
- return Z.value;
505
- const l = y.value.toLowerCase();
506
- return Z.value.filter((t) => t.searchValues ? t.searchValues.some(
507
- (u) => u.toLowerCase().includes(l)
508
- ) : (t.label ?? "").toLowerCase().includes(l));
509
- }), z = () => {
510
- o.value ? (g.value = C.value, y.value = "") : y.value === "" && a.hasReset ? oe() : (y.value = D.value, ee.value = !1), h.value = !1;
511
- };
512
- xe(C, () => {
513
- !h.value && !Ll(g.value, C.value) && o.value && (g.value = C.value);
514
- }), xl("mousedown", (l) => {
515
- const t = l.composedPath();
516
- H.value && t.includes(H.value) || K.value && t.includes(K.value) || h.value && z();
517
- });
518
- const il = d(() => {
519
- var l, t, u, k, V, c;
520
- return o.value && h.value ? ((l = a.i18n) == null ? void 0 : l.placeholderSearch) ?? "Search" : Q.value ? "" : o.value && Y.value.length === 1 ? (t = L.value) == null ? void 0 : t.label : o.value && Y.value.length >= 2 ? `${(u = L.value) == null ? void 0 : u.label} +${Y.value.length - 1}` : !T.value && !L.value ? h.value ? ((k = a.i18n) == null ? void 0 : k.placeholderSearch) ?? "Search" : ((V = a.i18n) == null ? void 0 : V.placeholderDefault) ?? "Select an option" : h.value ? ((c = a.i18n) == null ? void 0 : c.placeholderSearch) ?? "Search" : !a.singleModelValue && !L.value ? "" : be(
521
- Z.value.find((O) => {
522
- var X;
523
- return O.value === ((X = fe.value) == null ? void 0 : X.value);
524
- })
525
- );
526
- }), rl = d(() => {
527
- const l = !h.value && (!o.value && !!T.value || o.value && !ze(a.multiModelValue));
528
- return Al(a.inputClass, {
529
- "text-ellipsis placeholder:text-default": l
530
- });
531
- }), Oe = d(() => y.value === ""), ul = d(() => !(a.disabled || Oe.value || !o.value && D.value !== "" && y.value === D.value && !a.hasReset)), dl = d(
532
- () => $e.value && !!a.hasReset && Oe.value && (o.value || !h.value)
533
- ), cl = !!(v != null && v.onAddOption), fl = () => {
534
- M("add-option"), z();
535
- }, ge = d(
536
- () => {
537
- var l;
538
- return !h.value && !o.value && ((l = L.value) == null ? void 0 : l.labelPrefixComponent);
539
- }
540
- ), Pe = `search-select-options-${Math.random().toString(36).substring(2, 9)}`;
541
- return r({
542
- flushMemoryCachedSelectedOptions: () => ne.value = [],
543
- close: z
544
- }), (l, t) => {
545
- var u, k, V;
546
- return n(), x(le, null, [
547
- I("div", Ql, [
548
- I("div", {
549
- ref_key: "wrapperRef",
550
- ref: K,
551
- class: R(["relative flex items-end", {
552
- [`${e.rootClass}`]: e.rootClass,
553
- "z-30": h.value
554
- }]),
555
- role: "combobox",
556
- "aria-expanded": h.value,
557
- "aria-haspopup": !0,
558
- "aria-controls": Pe,
559
- onKeydown: el
560
- }, [
561
- N(w(Ze), {
562
- ref_key: "inputRef",
563
- ref: Qe,
564
- modelValue: y.value,
565
- "onUpdate:modelValue": t[1] || (t[1] = (c) => y.value = c),
566
- required: e.required,
567
- label: e.label,
568
- name: e.name,
569
- form: e.form,
570
- "label-screen-reader-only": e.labelScreenReaderOnly,
571
- placeholder: il.value,
572
- class: "grow",
573
- "wrapper-class": [
574
- {
575
- "border-transparent border border-b-gray-200 focus-within:border-b relative z-10 rounded-b-none": h.value
576
- },
577
- e.wrapperClass
578
- ],
579
- "input-class": rl.value,
580
- "suffix-class": "border-l-0",
581
- disabled: e.disabled,
582
- size: e.size,
583
- error: e.error,
584
- invalid: e.invalid,
585
- "prefix-has-border": de.value,
586
- "aria-autocomplete": "list",
587
- onFocus: Xe,
588
- onClick: Je,
589
- onInput: _e,
590
- onBlur: t[2] || (t[2] = (c) => l.$emit("blur"))
591
- }, we({
592
- suffix: S(() => {
593
- var c, O;
594
- return [
595
- I("div", et, [
596
- !h.value && !o.value && ((c = L.value) != null && c.labelInlineComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (n(), p(P(L.value.labelInlineComponent.component), B(E({ key: 0 }, L.value.labelInlineComponent.props)), null, 16)) : m("", !0),
597
- !h.value && !o.value && ((O = L.value) != null && O.labelBeforeSuffixComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (n(), p(P(L.value.labelBeforeSuffixComponent.component), B(E({ key: 1 }, L.value.labelBeforeSuffixComponent.props)), null, 16)) : m("", !0),
598
- ye.value ? (n(), p(P(ye.value.component), B(E({ key: 2 }, ye.value.props)), null, 16)) : m("", !0),
599
- I("div", lt, [
600
- dl.value ? (n(), p(Te, {
601
- key: 0,
602
- icon: "close",
603
- size: "sm",
604
- intent: "subtle",
605
- type: "button",
606
- onMousedown: t[0] || (t[0] = Ue(() => {
607
- }, ["prevent"])),
608
- onClick: oe
609
- })) : m("", !0),
610
- ul.value ? (n(), p(Te, {
611
- key: 1,
612
- icon: "close",
613
- size: "sm",
614
- intent: "subtle",
615
- type: "button",
616
- onClick: ol
617
- })) : m("", !0),
618
- N(De, {
619
- icon: h.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
620
- size: e.size === "xs" || e.size === "sm" ? "xs" : "sm",
621
- class: R(e.disabled ? "text-disabled" : "text-secondary"),
622
- "aria-hidden": "true",
623
- "data-testid": "search-select-chevron"
624
- }, null, 8, ["icon", "size", "class"])
625
- ])
626
- ])
627
- ];
628
- }),
629
- _: 2
630
- }, [
631
- l.$slots["label-suffix"] ? {
632
- name: "label-suffix",
633
- fn: S(() => [
634
- U(l.$slots, "label-suffix")
635
- ]),
636
- key: "0"
637
- } : void 0,
638
- l.$slots.tooltip ? {
639
- name: "tooltip",
640
- fn: S(() => [
641
- U(l.$slots, "tooltip")
642
- ]),
643
- key: "1"
644
- } : void 0,
645
- Q.value ? {
646
- name: "input",
647
- fn: S(() => [
648
- I("div", {
649
- class: R(["pointer-events-none absolute inset-0 flex items-center gap-1", nl.value])
650
- }, [
651
- (n(), p(P(Q.value.component.component), B(Be(Q.value.component.props)), null, 16)),
652
- Q.value.extraCount > 0 ? (n(), p(w(re), {
653
- key: 0,
654
- variant: e.size === "xs" || e.size === "sm" ? "body-xs" : "body-sm",
655
- tag: "span",
656
- weight: "semibold",
657
- "no-spacing": ""
658
- }, {
659
- default: S(() => [
660
- j(" +" + F(Q.value.extraCount), 1)
661
- ]),
662
- _: 1
663
- }, 8, ["variant"])) : m("", !0)
664
- ], 2)
665
- ]),
666
- key: "2"
667
- } : void 0,
668
- ae.value || ge.value || !b ? {
669
- name: "prefix",
670
- fn: S(() => {
671
- var c;
672
- return [
673
- I("div", Jl, [
674
- te.value ? U(l.$slots, "prefix", {}, void 0, void 0, 0) : G.value ? (n(), p(w(re), {
675
- key: 1,
676
- variant: e.size === "xs" ? "body-xs" : "body-sm",
677
- tag: "span",
678
- weight: "semibold"
679
- }, {
680
- default: S(() => [
681
- j(F(e.prefix), 1)
682
- ]),
683
- _: 1
684
- }, 8, ["variant"])) : ge.value && ((c = L.value) != null && c.labelPrefixComponent) ? (n(), x("div", _l, [
685
- (n(), p(P(L.value.labelPrefixComponent.component), B(Be(L.value.labelPrefixComponent.props)), null, 16))
686
- ])) : b ? m("", !0) : (n(), p(De, {
687
- key: 3,
688
- icon: "search",
689
- size: "sm"
690
- }))
691
- ])
692
- ];
693
- }),
694
- key: "3"
695
- } : void 0,
696
- l.$slots.helper ? {
697
- name: "helper",
698
- fn: S(() => [
699
- U(l.$slots, "helper")
700
- ]),
701
- key: "4"
702
- } : void 0
703
- ]), 1032, ["modelValue", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "input-class", "disabled", "size", "error", "invalid", "prefix-has-border"])
704
- ], 42, Xl),
705
- e.withChips ? (n(), x("div", tt, [
706
- (n(!0), x(le, null, Ge(Y.value, ({ value: c, label: O }) => (n(), p(Il, {
707
- key: c,
708
- removable: !Ae(c),
709
- onRemoved: (X) => Ve({ value: c, checked: !1 })
710
- }, {
711
- default: S(() => [
712
- I("span", { innerHTML: O }, null, 8, at)
713
- ]),
714
- _: 2
715
- }, 1032, ["removable", "onRemoved"]))), 128))
716
- ])) : m("", !0)
717
- ]),
718
- w(me) && w(f) ? (n(), p(bl, {
719
- key: 0,
720
- to: w(f)
721
- }, [
722
- h.value && !e.disabled ? (n(), x("div", {
723
- key: 0,
724
- id: Pe,
725
- ref_key: "optionsRef",
726
- ref: H,
727
- role: "listbox",
728
- style: Ee(w(tl)),
729
- class: "z-70 overflow-y-auto rounded border border-gray-200 bg-white drop-shadow-md",
730
- onMouseenter: t[3] || (t[3] = (c) => h.value = !0),
731
- onKeydown: ll
732
- }, [
733
- I("div", {
734
- class: "rounded pt-0",
735
- style: Ee({ width: `${e.dropdownWidth ?? w(al)}px` })
736
- }, [
737
- N(Wl, {
738
- i18n: {
739
- addOnly: (u = e.i18n) == null ? void 0 : u.addOnly,
740
- noResults: (k = e.i18n) == null ? void 0 : k.noResults,
741
- noOptionsAvailable: (V = e.i18n) == null ? void 0 : V.noOptionsAvailable
742
- },
743
- options: sl.value,
744
- multiple: o.value,
745
- search: y.value,
746
- model: $.value,
747
- "add-only": e.addOnly,
748
- "allows-multiple-values": !!o.value,
749
- condensed: e.condensed,
750
- "has-large-dropdown": e.hasLargeDropdown,
751
- onValueChanged: Ve
752
- }, {
753
- "list-footer-content": S(() => [
754
- cl ? (n(), p(Ce, {
755
- key: 0,
756
- intent: "subtle",
757
- class: "w-full rounded-t-none",
758
- type: "button",
759
- "icon-prefix": "add",
760
- onClick: fl
761
- }, {
762
- default: S(() => {
763
- var c;
764
- return [
765
- j(F((c = e.i18n) == null ? void 0 : c.addOption), 1)
766
- ];
767
- }),
768
- _: 1
769
- })) : m("", !0),
770
- o.value ? (n(), x("div", {
771
- key: 1,
772
- class: R(["flex items-center justify-between", { "py-2": !l.$slots["list-footer-content"] }])
773
- }, [
774
- $e.value ? (n(), p(Ce, {
775
- key: 0,
776
- type: "button",
777
- intent: "subtle",
778
- size: "xs",
779
- class: "ml-2",
780
- onClick: oe
781
- }, {
782
- default: S(() => {
783
- var c;
784
- return [
785
- j(F(((c = e.i18n) == null ? void 0 : c.multipleValuesClearButtonText) ?? "Clear"), 1)
786
- ];
787
- }),
788
- _: 1
789
- })) : m("", !0),
790
- I("div", null, [
791
- U(l.$slots, "list-footer-content", { close: z })
792
- ]),
793
- N(Ce, {
794
- type: "button",
795
- intent: "secondary",
796
- size: "xs",
797
- class: "mr-2",
798
- "data-testid": w(El),
799
- onClick: z
800
- }, {
801
- default: S(() => {
802
- var c;
803
- return [
804
- j(F(((c = e.i18n) == null ? void 0 : c.multipleValuesDoneButtonText) ?? "Done"), 1)
805
- ];
806
- }),
807
- _: 1
808
- }, 8, ["data-testid"])
809
- ], 2)) : U(l.$slots, "list-footer-content", { close: z }, void 0, void 0, 2)
810
- ]),
811
- _: 3
812
- }, 8, ["i18n", "options", "multiple", "search", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown"])
813
- ], 4)
814
- ], 36)) : m("", !0)
815
- ], 8, ["to"])) : m("", !0)
816
- ], 64);
817
- };
818
- }
819
- }), $t = /* @__PURE__ */ _({
820
- __name: "CountrySelect",
821
- props: {
822
- label: {},
823
- singleModelValue: {},
824
- multiModelValue: {},
825
- error: {},
826
- required: { type: Boolean, default: !0 },
827
- hasReset: { type: Boolean },
828
- disabled: { type: Boolean },
829
- size: {},
830
- labelScreenReaderOnly: { type: Boolean },
831
- i18n: {},
832
- name: {},
833
- form: {}
834
- },
835
- emits: ["update:modelValue", "update:singleModelValue"],
836
- setup(e, { emit: r }) {
837
- const i = e, s = ie(i, "singleModelValue"), a = ie(i, "multiModelValue"), f = r;
838
- return (v, b) => (n(), p(nt, {
839
- "multi-model-value": w(a),
840
- "onUpdate:multiModelValue": b[0] || (b[0] = (o) => Re(a) ? a.value = o : null),
841
- "single-model-value": w(s),
842
- "onUpdate:singleModelValue": [
843
- b[1] || (b[1] = (o) => Re(s) ? s.value = o : null),
844
- b[2] || (b[2] = (o) => {
845
- f("update:modelValue", o);
846
- })
847
- ],
848
- "root-class": v.$attrs.class,
849
- label: e.label,
850
- options: w(Ke).map(({ key: o, value: A }) => ({ label: A, value: o })),
851
- error: e.error,
852
- "has-reset": e.hasReset,
853
- disabled: e.disabled,
854
- required: e.required,
855
- "with-chips": !!e.multiModelValue,
856
- name: e.name,
857
- form: e.form,
858
- size: e.size,
859
- "label-screen-reader-only": e.labelScreenReaderOnly,
860
- i18n: e.i18n
861
- }, we({ _: 2 }, [
862
- v.$slots["label-suffix"] ? {
863
- name: "label-suffix",
864
- fn: S(() => [
865
- U(v.$slots, "label-suffix")
866
- ]),
867
- key: "0"
868
- } : void 0
869
- ]), 1032, ["multi-model-value", "single-model-value", "root-class", "label", "options", "error", "has-reset", "disabled", "required", "with-chips", "name", "form", "size", "label-screen-reader-only", "i18n"]));
870
- }
871
- });
872
- function Ot(e) {
873
- return !!Ke.find((r) => r.key === e);
874
- }
875
- const Fe = ["email", "country"], ot = "GENERIC_TAX_ID", qe = {
876
- US: ["addressLine1", "postalCode"],
877
- CA: ["state"]
878
- }, st = (e) => !e || !qe[e] ? Fe : [...qe[e], ...Fe], Ye = (e) => e.type === "ORGANIZATION" && e.country !== "US", ue = {
879
- BILLING: {
880
- line1: "addressLine1",
881
- line2: "addressLine2",
882
- postalCode: "postalCode",
883
- city: "city",
884
- state: "state",
885
- country: "country"
886
- },
887
- SHIPPING: {
888
- line1: "shippingAddressLine1",
889
- line2: "shippingAddressLine2",
890
- postalCode: "shippingPostalCode",
891
- city: "shippingCity",
892
- state: "shippingState",
893
- country: "shippingCountry"
894
- }
895
- }, it = ["line1", "line2", "postalCode", "city", "state", "country"], rt = ["A", "C", "S", "Z"], ut = {
896
- A: ["line1", "line2"],
897
- C: ["city"],
898
- S: ["state"],
899
- Z: ["postalCode"]
900
- }, je = (e) => rt.filter((r) => e.includes(r)).flatMap(
901
- (r) => ut[r]
902
- ), dt = (e) => je((e == null ? void 0 : e.fields) ?? "ACSZ"), ct = (e, r) => {
903
- const i = st(r);
904
- return it.filter((s) => i.includes(ue.BILLING[s])).map(
905
- (s) => ue[e][s]
906
- );
907
- }, Pt = (e, r, i) => {
908
- const s = i ? je(i.required).filter((a) => a !== "line2") : ["line1", "postalCode", "city"];
909
- return [
910
- .../* @__PURE__ */ new Set([
911
- ...s.map((a) => ue[e][a]),
912
- ...ct(e, r)
913
- ])
914
- ];
915
- }, se = (e) => (e == null ? void 0 : e.trim()) || void 0, We = (e, r, i) => {
916
- var b;
917
- const s = ue[r], a = new Set(dt(i)), f = (o) => a.has(o) ? se(e[s[o]]) : void 0, v = (b = f("postalCode")) == null ? void 0 : b.toUpperCase();
918
- return {
919
- ...f("line1") && { line1: f("line1") },
920
- ...f("line2") && { line2: f("line2") },
921
- ...f("city") && { city: f("city") },
922
- ...f("state") && { state: f("state") },
923
- ...v && { postal_code: v },
924
- country: e[s.country] ?? ""
925
- };
926
- }, ft = (e, r) => {
927
- const i = We(e, "SHIPPING", r);
928
- return {
929
- addressLine1: i.line1,
930
- addressLine2: i.line2,
931
- postalCode: i.postal_code,
932
- city: i.city,
933
- state: i.state,
934
- country: e.shippingCountry
935
- };
936
- }, Bt = (e, r, i) => {
937
- var v;
938
- const s = se(e.shippingAttentionName), a = se(e.shippingFirstName), f = se(e.shippingLastName);
939
- return {
940
- reference: r,
941
- recipient: {
942
- type: e.type,
943
- ...e.type === "ORGANIZATION" ? {
944
- organization: {
945
- company_name: e.companyLegalName ?? "",
946
- ...s && { attention_name: s }
947
- }
948
- } : {
949
- individual: {
950
- name: {
951
- ...a && { first_name: a },
952
- ...f && { last_name: f }
953
- }
954
- }
955
- },
956
- phone_number: ((v = e.shippingPhoneNumber) == null ? void 0 : v.trim()) ?? "",
957
- email: e.email ?? ""
958
- },
959
- address: We(e, "SHIPPING", i)
960
- };
961
- }, Et = (e, { isShipped: r, format: i }) => mt(r ? { ...e, ...ft(e, i) } : e, {
962
- withVatNumber: Ye(e)
963
- }), mt = (e, { withVatNumber: r = Ye(e) } = {}) => {
964
- const i = {
965
- ...e.addressLine1 && { line1: e.addressLine1 },
966
- ...e.addressLine2 && { line2: e.addressLine2 },
967
- ...e.city && { city: e.city },
968
- ...e.state && { state: e.state },
969
- ...e.postalCode && { postal_code: e.postalCode },
970
- country: e.country ?? ""
971
- };
972
- return e.type === "ORGANIZATION" ? {
973
- type: "ORGANIZATION",
974
- organization: {
975
- legal_name: e.companyLegalName ?? "",
976
- registered_address: i,
977
- ...e.companyVatNumber && r && {
978
- tax_ids: [
979
- { id: e.companyVatNumber, type: ot }
980
- ]
981
- }
982
- }
983
- } : {
984
- type: "INDIVIDUAL",
985
- individual: {
986
- residential_address: i
987
- }
988
- };
989
- }, Rt = (e = {}) => ({
990
- email: void 0,
991
- country: void 0,
992
- type: "INDIVIDUAL",
993
- companyLegalName: void 0,
994
- firstName: void 0,
995
- infix: void 0,
996
- lastName: void 0,
997
- addressLine1: void 0,
998
- addressLine2: void 0,
999
- postalCode: void 0,
1000
- city: void 0,
1001
- state: void 0,
1002
- companyVatNumber: void 0,
1003
- shippingAddressLine1: void 0,
1004
- shippingAddressLine2: void 0,
1005
- shippingPostalCode: void 0,
1006
- shippingCity: void 0,
1007
- shippingState: void 0,
1008
- shippingCountry: void 0,
1009
- shippingPhoneNumber: void 0,
1010
- shippingFirstName: void 0,
1011
- shippingLastName: void 0,
1012
- shippingAttentionName: void 0,
1013
- billingAddressSameAsShipping: !0,
1014
- seatsValues: void 0,
1015
- unitsValues: void 0,
1016
- enabledPricingIds: void 0,
1017
- ...e
1018
- }), vt = ["for"], Nt = /* @__PURE__ */ _({
1019
- __name: "HiddenLabelInput",
1020
- props: /* @__PURE__ */ ke({
1021
- label: { type: String },
1022
- name: { type: String },
1023
- placeholder: { type: String },
1024
- error: { type: [String, Array] },
1025
- autocomplete: { type: String }
1026
- }, {
1027
- modelValue: {},
1028
- modelModifiers: {}
1029
- }),
1030
- emits: ["update:modelValue"],
1031
- setup(e) {
1032
- const r = e, i = He(e, "modelValue"), s = yl(), a = d(
1033
- () => Array.isArray(r.error) ? !!r.error.length : !!r.error
1034
- );
1035
- return (f, v) => (n(), x("div", null, [
1036
- I("label", {
1037
- for: w(s),
1038
- class: "sr-only"
1039
- }, F(e.label), 9, vt),
1040
- N(w(Ze), {
1041
- id: w(s),
1042
- modelValue: i.value,
1043
- "onUpdate:modelValue": v[0] || (v[0] = (b) => i.value = b),
1044
- name: e.name,
1045
- placeholder: e.placeholder,
1046
- error: e.error,
1047
- autocomplete: e.autocomplete
1048
- }, we({ _: 2 }, [
1049
- a.value ? {
1050
- name: "helper",
1051
- fn: S(() => [
1052
- N(w(Ml), { message: e.error }, null, 8, ["message"])
1053
- ]),
1054
- key: "0"
1055
- } : void 0
1056
- ]), 1032, ["id", "modelValue", "name", "placeholder", "error", "autocomplete"])
1057
- ]));
1058
- }
1059
- });
1060
- function Tt() {
1061
- const { $t: e } = kl();
1062
- return {
1063
- contactInformationTitle: e({
1064
- defaultMessage: "Customer information",
1065
- id: "checkout.contact_information_block.title",
1066
- description: "The title of the contact information block in the checkout form"
1067
- }),
1068
- emailLabel: e({
1069
- defaultMessage: "Email address",
1070
- id: "checkout.email_address.label",
1071
- description: "The email address of the customer in the checkout form"
1072
- }),
1073
- emailPlaceholder: e({
1074
- defaultMessage: "Email address",
1075
- id: "checkout.email_address.placeholder",
1076
- description: "The email address of the customer in the checkout form"
1077
- }),
1078
- countryLabel: e({
1079
- defaultMessage: "Billing country",
1080
- id: "checkout.country.label",
1081
- description: "The country of the customer in the checkout form"
1082
- }),
1083
- countryPlaceholder: e({
1084
- defaultMessage: "Billing country",
1085
- id: "checkout.country.placeholder",
1086
- description: "Placeholder of the billing country select while no country is chosen"
1087
- }),
1088
- vatNumberLabel: e({
1089
- defaultMessage: "VAT number",
1090
- id: "checkout.vat_number.label",
1091
- description: "The label for the vat number in the checkout form"
1092
- }),
1093
- vatNumberPlaceholder: e({
1094
- defaultMessage: "VAT number",
1095
- id: "checkout.vat_number.placeholder",
1096
- description: "The label for the vat number in the checkout form"
1097
- }),
1098
- legalNameLabel: e({
1099
- defaultMessage: "Legal entity name",
1100
- id: "checkout.legal_name.label",
1101
- description: "The legal name of the organization customer in the checkout form"
1102
- }),
1103
- legalNamePlaceholder: e({
1104
- defaultMessage: "Legal entity name",
1105
- id: "checkout.legal_name.placeholder",
1106
- description: "The legal name of the organization customer in the checkout form"
1107
- }),
1108
- addressTitle: e({
1109
- defaultMessage: "Billing address",
1110
- id: "checkout.address.title",
1111
- description: "Label of the billing address, above its first line, in the checkout and billing information forms"
1112
- }),
1113
- addressLine1Label: e({
1114
- defaultMessage: "Address line 1",
1115
- id: "checkout.address.line1.label",
1116
- description: "Address line 1 of the customer address in the checkout form"
1117
- }),
1118
- addressLine2Label: e({
1119
- defaultMessage: "Address line 2",
1120
- id: "checkout.address.line2.label",
1121
- description: "Address line 2 of the customer address in the checkout form"
1122
- }),
1123
- postalCodeLabel: e({
1124
- defaultMessage: "Postal code",
1125
- id: "checkout.address.postal_code.label",
1126
- description: "Postal code of the customer address in the checkout form"
1127
- }),
1128
- cityLabel: e({
1129
- defaultMessage: "City",
1130
- id: "checkout.address.city.label",
1131
- description: "City of the customer address in the checkout form"
1132
- }),
1133
- stateLabel: e({
1134
- defaultMessage: "State",
1135
- id: "checkout.address.state.label",
1136
- description: "State of the customer address in the checkout form"
1137
- }),
1138
- postalCodePlaceholder: e({
1139
- defaultMessage: "Postal code",
1140
- id: "checkout.address.portal_code.placeholder",
1141
- description: "Postal code of the customer address in the checkout form"
1142
- }),
1143
- cityPlaceholder: e({
1144
- defaultMessage: "City",
1145
- id: "checkout.address.city.placeholder",
1146
- description: "City of the customer address in the checkout form"
1147
- }),
1148
- statePlaceholder: e({
1149
- defaultMessage: "State",
1150
- id: "checkout.address.state.placeholder",
1151
- description: "State of the customer address in the checkout form"
1152
- })
1153
- };
1154
- }
1155
- export {
1156
- ue as A,
1157
- ot as D,
1158
- Nt as _,
1159
- Pt as a,
1160
- st as b,
1161
- $t as c,
1162
- nt as d,
1163
- dt as e,
1164
- Ye as f,
1165
- Rt as g,
1166
- ft as h,
1167
- Ot as i,
1168
- ct as j,
1169
- Et as k,
1170
- We as r,
1171
- Bt as t,
1172
- Tt as u
1173
- };