@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,758 +0,0 @@
1
- import { openBlock as u, createElementBlock as C, createElementVNode as y, renderSlot as T, defineComponent as te, computed as S, withKeys as Ee, normalizeClass as M, Fragment as Q, mergeProps as N, createBlock as b, resolveDynamicComponent as D, createCommentVNode as v, createVNode as P, normalizeProps as z, withCtx as k, createTextVNode as F, toDisplayString as q, renderList as be, getCurrentInstance as $e, ref as Y, inject as Oe, unref as I, isRef as Le, createSlots as De, guardReactiveProps as Pe, Teleport as Ae, normalizeStyle as me, nextTick as Re } from "vue";
2
- import { u as _, d as Ve, c as Be } from "./index.es-BrVTOW5D.mjs";
3
- import { _ as Te, u as Ne } from "./useLazyFloating.es-CycqRyeb.mjs";
4
- import { e as ze } from "./sanitization.es-C6dbuxUJ.mjs";
5
- import { _ as U, s as Fe, u as Ke } from "./sorting.es-C0pdMgX0.mjs";
6
- import { d as G, S as qe } from "./customElements-DK4GKNJG.mjs";
7
- import { u as Ue } from "./Label.vue.es-es7ZUBSP.mjs";
8
- import { a as Qe, _ as ee } from "./Button.vue.es-j7iYlqtJ.mjs";
9
- import { _ as je } from "./IconButton.vue.es-D8DtBW9i.mjs";
10
- import { _ as He } from "./Chip.vue.es-Dxx_0dte.mjs";
11
- import { a as Ye, i as Ge } from "./useService-BwzIBIRp.mjs";
12
- import { _ as We } from "./Input.vue.es-BLyHcmu4.mjs";
13
- import { g as Je } from "./pricingItem.es-bCPArbTa.mjs";
14
- import { a as Xe, b as Ze } from "./pricing-CEaZGgKe.mjs";
15
- import { h as _e } from "./subscription-BwzkagDI.mjs";
16
- const et = (e) => `checkbox-item-${e}`, tt = "select-search-done-button", lt = {}, nt = { class: "flex items-center pt-1" }, at = { class: "px-1.5 text-xs font-semibold text-subtle" };
17
- function ot(e, l) {
18
- return u(), C("div", nt, [
19
- l[0] || (l[0] = y("div", { class: "w-2 border-t" }, null, -1)),
20
- y("span", at, [
21
- T(e.$slots, "default")
22
- ]),
23
- l[1] || (l[1] = y("div", { class: "grow border-t" }, null, -1))
24
- ]);
25
- }
26
- const st = /* @__PURE__ */ Te(lt, [["render", ot]]), it = ["aria-selected", "aria-disabled", "data-testid"], ut = ["id", "value", "checked", "disabled"], dt = ["for"], rt = { class: "flex items-center gap-1" }, ct = { class: "flex flex-grow flex-col" }, ft = { class: "flex flex-grow gap-2" }, mt = { class: "flex flex-grow flex-col" }, vt = { class: "flex flex-grow items-start justify-between gap-2" }, bt = { class: "flex items-center gap-2" }, pt = /* @__PURE__ */ te({
27
- __name: "SelectExtendedOption",
28
- props: {
29
- multiple: { type: Boolean },
30
- inputValue: {},
31
- condensed: { type: Boolean },
32
- label: {},
33
- checked: { type: Boolean },
34
- disabled: { type: Boolean },
35
- subLabel: {},
36
- labelPrefixComponent: {},
37
- labelSuffixComponent: {},
38
- labelInlineComponent: {},
39
- value: {},
40
- labelSrOnly: { type: Boolean }
41
- },
42
- emits: ["value-changed"],
43
- setup(e, { emit: l }) {
44
- const o = l, n = e, c = (m) => {
45
- const h = m.target;
46
- o("value-changed", {
47
- value: h.value,
48
- checked: h.checked
49
- });
50
- }, a = () => {
51
- n.multiple || n.disabled || o("value-changed", { value: n.value });
52
- }, d = S(() => et(n.value)), s = S(() => ze(n.inputValue ?? ""));
53
- return (m, h) => (u(), C("li", {
54
- role: "option",
55
- "aria-selected": e.checked,
56
- "aria-disabled": e.disabled,
57
- class: M([{ "hover:bg-gray-50": !e.disabled }, "relative flex"]),
58
- "data-testid": d.value,
59
- tabindex: "0",
60
- onClick: a,
61
- onKeydown: Ee(a, ["enter"])
62
- }, [
63
- e.multiple ? (u(), C(Q, { key: 0 }, [
64
- y("input", N(m.$attrs, {
65
- id: d.value,
66
- ref: "inputRef",
67
- value: e.value,
68
- checked: e.checked,
69
- disabled: e.disabled,
70
- type: "checkbox",
71
- 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"],
72
- tabindex: "-1",
73
- onChange: c
74
- }), null, 16, ut),
75
- y("label", {
76
- for: d.value,
77
- class: M([e.disabled ? "text-disabled" : "rounded text-default", "w-full px-4 py-3 pl-10 text-sm font-medium"])
78
- }, [
79
- y("div", rt, [
80
- e.labelPrefixComponent ? (u(), b(D(e.labelPrefixComponent.component), { key: 0 })) : v("", !0),
81
- y("div", ct, [
82
- y("div", ft, [
83
- P(U, {
84
- text: e.label,
85
- search: s.value,
86
- class: M(["font-semibold", { "sr-only": e.labelSrOnly }])
87
- }, null, 8, ["text", "search", "class"]),
88
- e.labelInlineComponent ? (u(), b(D(e.labelInlineComponent.component), z(N({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : v("", !0),
89
- e.subLabel && e.condensed ? (u(), b(U, {
90
- key: 1,
91
- class: "text-xs text-secondary",
92
- text: e.subLabel,
93
- search: s.value
94
- }, null, 8, ["text", "search"])) : v("", !0)
95
- ]),
96
- e.subLabel && !e.condensed ? (u(), b(U, {
97
- key: 0,
98
- class: "text-xs text-secondary",
99
- text: e.subLabel,
100
- search: s.value
101
- }, null, 8, ["text", "search"])) : v("", !0)
102
- ]),
103
- e.labelSuffixComponent ? (u(), b(D(e.labelSuffixComponent.component), z(N({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : v("", !0)
104
- ])
105
- ], 10, dt)
106
- ], 64)) : (u(), C("div", {
107
- key: 1,
108
- class: M(["flex w-full items-start gap-3 px-4 text-sm font-medium", [
109
- e.condensed ? "p-2" : "py-3",
110
- e.disabled ?? "cursor-not-allowed",
111
- !e.disabled && "cursor-pointer"
112
- ]])
113
- }, [
114
- e.labelPrefixComponent ? (u(), b(D(e.labelPrefixComponent.component), z(N({ key: 0 }, e.labelPrefixComponent.props)), null, 16)) : v("", !0),
115
- y("div", mt, [
116
- y("div", vt, [
117
- P(U, {
118
- text: e.label,
119
- search: s.value,
120
- class: M(["font-semibold", { "text-disabled": e.disabled }])
121
- }, null, 8, ["text", "search", "class"]),
122
- y("div", bt, [
123
- e.labelInlineComponent ? (u(), b(D(e.labelInlineComponent.component), z(N({ key: 0 }, e.labelInlineComponent.props)), null, 16)) : v("", !0),
124
- e.labelSuffixComponent ? (u(), b(D(e.labelSuffixComponent.component), z(N({ key: 1 }, e.labelSuffixComponent.props)), null, 16)) : v("", !0)
125
- ])
126
- ]),
127
- e.subLabel && e.condensed ? (u(), b(U, {
128
- key: 0,
129
- class: "text-xs text-secondary",
130
- text: e.subLabel,
131
- search: s.value
132
- }, null, 8, ["text", "search"])) : v("", !0),
133
- e.subLabel && !e.condensed ? (u(), b(U, {
134
- key: 1,
135
- class: "text-xs text-secondary",
136
- text: e.subLabel,
137
- search: s.value
138
- }, null, 8, ["text", "search"])) : v("", !0)
139
- ])
140
- ], 2))
141
- ], 42, it));
142
- }
143
- }), yt = { class: "flex flex-col rounded-bl rounded-br" }, ht = { key: 0 }, gt = {
144
- key: 2,
145
- class: "border-t border-gray-200"
146
- }, xt = /* @__PURE__ */ te({
147
- __name: "SelectExtendedOptions",
148
- props: {
149
- model: {},
150
- multiple: { type: Boolean },
151
- condensed: { type: Boolean },
152
- hasLargeDropdown: { type: Boolean },
153
- inputValue: {},
154
- addOnly: { type: Boolean },
155
- options: {}
156
- },
157
- emits: ["value-changed"],
158
- setup(e, { emit: l }) {
159
- const o = e, n = l, c = (s) => n("value-changed", s), a = S(
160
- () => Fe(o.options, "group").reduce((s, m) => m.value === "" ? s : { ...s, [m.value]: m.group }, {})
161
- ), d = S(() => o.options.length === 0);
162
- return (s, m) => (u(), C("div", yt, [
163
- d.value ? (u(), b(G, {
164
- key: 0,
165
- tag: "div",
166
- "no-spacing": "",
167
- variant: "body-sm",
168
- color: "secondary",
169
- class: "px-5 py-5"
170
- }, {
171
- default: k(() => [...m[0] || (m[0] = [
172
- F("No results", -1)
173
- ])]),
174
- _: 1
175
- })) : (u(), C("ul", {
176
- key: 1,
177
- class: M(["list-none overflow-y-auto", [e.hasLargeDropdown ? "max-h-76" : "max-h-48"]])
178
- }, [
179
- e.addOnly ? (u(), C("div", ht, [
180
- P(G, {
181
- tag: "p",
182
- "no-spacing": "",
183
- variant: "body-sm",
184
- color: "secondary",
185
- class: "mt-1 px-3 py-2"
186
- }, {
187
- default: k(() => [...m[1] || (m[1] = [
188
- F(q("You can only select currently unselected options."), -1)
189
- ])]),
190
- _: 1
191
- })
192
- ])) : v("", !0),
193
- (u(!0), C(Q, null, be(e.options, ({
194
- label: h,
195
- subLabel: E,
196
- value: f,
197
- checked: w,
198
- disabled: g,
199
- labelInlineComponent: W,
200
- labelSuffixComponent: A,
201
- labelSrOnly: $,
202
- labelPrefixComponent: H,
203
- hidden: J
204
- }) => (u(), C(Q, { key: f }, [
205
- a.value[f] ? (u(), b(st, { key: 0 }, {
206
- default: k(() => [
207
- F(q(a.value[f]), 1)
208
- ]),
209
- _: 2
210
- }, 1024)) : v("", !0),
211
- J ? v("", !0) : (u(), b(pt, {
212
- key: 1,
213
- label: h,
214
- "sub-label": E,
215
- value: f,
216
- checked: w,
217
- disabled: g,
218
- multiple: e.multiple,
219
- condensed: e.condensed,
220
- "label-suffix-component": A,
221
- "label-prefix-component": H,
222
- "label-inline-component": W,
223
- "label-sr-only": $,
224
- "input-value": e.inputValue,
225
- onValueChanged: c
226
- }, null, 8, ["label", "sub-label", "value", "checked", "disabled", "multiple", "condensed", "label-suffix-component", "label-prefix-component", "label-inline-component", "label-sr-only", "input-value"]))
227
- ], 64))), 128))
228
- ], 2)),
229
- s.$slots["list-footer-content"] ? (u(), C("div", gt, [
230
- T(s.$slots, "list-footer-content")
231
- ])) : v("", !0)
232
- ]));
233
- }
234
- }), kt = ["aria-expanded", "aria-controls"], Ct = { class: "flex items-center gap-2" }, wt = { key: 1 }, St = { class: "flex items-center gap-2" }, It = {
235
- key: 0,
236
- class: "mt-2 flex flex-wrap gap-2"
237
- }, Mt = ["innerHTML"], Et = ["id"], $t = /* @__PURE__ */ te({
238
- __name: "SelectExtended",
239
- props: {
240
- addOnly: { type: Boolean, default: !1 },
241
- disabled: { type: Boolean },
242
- label: {},
243
- labelScreenReaderOnly: { type: Boolean },
244
- inputModel: {},
245
- singleModelValue: {},
246
- multiModelValue: {},
247
- options: { default: () => [] },
248
- optionsOrder: { default: () => ["asc", "asc"] },
249
- optionsOrderProperties: { default: () => ["group", "label"] },
250
- required: { type: Boolean, default: !1 },
251
- rootClass: {},
252
- size: { default: "md" },
253
- withChips: { type: Boolean, default: !1 },
254
- error: {},
255
- hasReset: { type: Boolean },
256
- name: {},
257
- hasLargeDropdown: { type: Boolean, default: !1 },
258
- showSuffixInClosedInput: { type: Boolean },
259
- showSuffixLabelInInput: { type: Boolean },
260
- showSubLabelInInput: { type: Boolean, default: !1 },
261
- condensed: { type: Boolean },
262
- form: {},
263
- isInputReadOnly: { type: Boolean, default: !0 },
264
- textContent: { default: () => ({
265
- placeholderSingleOpen: "Search",
266
- placeholderSingleEmpty: "Select an option",
267
- placeholderMultipleOpen: "Search",
268
- placeholderMultipleEmpty: "Select one or more options",
269
- buttonAddLabel: "Add",
270
- buttonClearLabel: "Reset",
271
- buttonDoneLabel: "Done"
272
- }) }
273
- },
274
- emits: ["update:inputModel", "update:singleModelValue", "update:multiModelValue", "blur", "change", "focus", "add-option"],
275
- setup(e, { emit: l }) {
276
- var o;
277
- const n = e, c = l, a = (o = $e()) == null ? void 0 : o.vnode.props, d = _(n, "inputModel", c), s = _(n, "singleModelValue", c), m = _(n, "multiModelValue", c), h = S(() => f.value ? m.value ?? [] : s.value ? [s.value] : []), E = Y(n.multiModelValue ?? []), f = S(() => Array.isArray(n.multiModelValue)), w = S({
278
- get: () => f.value ? E.value ?? [] : typeof s.value == "string" ? [s.value] : [],
279
- set(t) {
280
- f.value ? E.value = t : s.value = (t == null ? void 0 : t[0]) ?? "";
281
- }
282
- }), g = Y(!1), W = Ke(), A = Y(), $ = Y(), H = Oe(qe), J = (t) => n.options.filter((i) => t.some((p) => i.value === p)), K = S(() => J(w.value)), x = S(() => K.value[0]), he = S(() => fe.value[0]), ae = S(
283
- () => {
284
- var t;
285
- return !g.value && !f.value && ((t = x.value) == null ? void 0 : t.labelPrefixComponent);
286
- }
287
- ), ge = !!(a != null && a.onAddOption), xe = () => {
288
- c("add-option"), R();
289
- }, ke = S(() => {
290
- var t, i, p, r;
291
- if (!f.value) {
292
- if (x.value)
293
- return (t = x.value) == null ? void 0 : t.label;
294
- if (K.value.length === 0)
295
- return n.textContent.placeholderSingleEmpty;
296
- }
297
- if (f.value) {
298
- if (K.value.length === 1)
299
- return (i = x.value) == null ? void 0 : i.label;
300
- if (K.value.length >= 2)
301
- return `${(p = x.value) == null ? void 0 : p.label} +${K.value.length - 1}`;
302
- if (K.value.length === 0)
303
- return n.textContent.placeholderMultipleEmpty;
304
- }
305
- return (r = he.value) == null ? void 0 : r.label;
306
- }), R = () => {
307
- f.value, g.value = !1;
308
- }, oe = ({
309
- value: t,
310
- checked: i
311
- }) => {
312
- let p;
313
- f.value ? p = i ? [...w.value, t] : w.value.filter((r) => r !== t) : (p = [t], g.value = !1), w.value = p, c("change");
314
- }, se = S(() => n.disabled ? !1 : !!(n.addOnly && !Ye(E.value, n.multiModelValue) || !n.addOnly && w.value.length > 0 && !(w.value.length === 1 && w.value[0] === ""))), ie = () => {
315
- if (n.addOnly) {
316
- E.value = h.value, d.value = "", R();
317
- return;
318
- }
319
- w.value = [], E.value = [], d.value && (d.value = ""), R();
320
- }, ue = () => A.value ? Array.from(
321
- A.value.querySelectorAll('li[tabindex="0"], button:not([disabled])')
322
- ) : [], de = () => {
323
- var t;
324
- let i = document.activeElement;
325
- for (; (t = i == null ? void 0 : i.shadowRoot) != null && t.activeElement; )
326
- i = i.shadowRoot.activeElement;
327
- return i;
328
- }, X = () => {
329
- if (!$.value) return null;
330
- let t = $.value.querySelector("input");
331
- if (t) return t;
332
- const i = $.value.querySelectorAll("*");
333
- for (const p of i)
334
- if (p.shadowRoot && (t = p.shadowRoot.querySelector("input"), t))
335
- return t;
336
- return null;
337
- }, Ce = (t) => {
338
- var i, p;
339
- if (!g.value) return;
340
- const r = ue(), L = X();
341
- if (de() === L)
342
- switch (t.key) {
343
- case "ArrowDown":
344
- r.length > 0 && (t.preventDefault(), (i = r[0]) == null || i.focus());
345
- break;
346
- case "Tab":
347
- !t.shiftKey && r.length > 0 && (t.preventDefault(), (p = r[0]) == null || p.focus());
348
- break;
349
- case "Escape":
350
- t.preventDefault(), R();
351
- break;
352
- }
353
- }, we = (t) => {
354
- var i, p, r, L;
355
- const O = ue(), Z = de(), V = O.indexOf(Z), B = X();
356
- switch (t.key) {
357
- case "ArrowDown":
358
- V < O.length - 1 && (t.preventDefault(), (i = O[V + 1]) == null || i.focus());
359
- break;
360
- case "ArrowUp":
361
- t.preventDefault(), V <= 0 ? B == null || B.focus() : (p = O[V - 1]) == null || p.focus();
362
- break;
363
- case "Tab":
364
- t.shiftKey ? V <= 0 ? (t.preventDefault(), B == null || B.focus()) : (t.preventDefault(), (r = O[V - 1]) == null || r.focus()) : V >= O.length - 1 ? (t.preventDefault(), R(), B == null || B.focus()) : (t.preventDefault(), (L = O[V + 1]) == null || L.focus());
365
- break;
366
- case "Escape":
367
- t.preventDefault(), R(), Re(() => {
368
- B == null || B.focus();
369
- });
370
- break;
371
- }
372
- };
373
- Ve("mousedown", (t) => {
374
- const i = t.composedPath();
375
- A.value && i.includes(A.value) || $.value && i.includes($.value) || g.value && R();
376
- });
377
- const { floatingStyles: Se } = Ne($, A, {
378
- placement: "bottom",
379
- middleware: ({ offset: t, flip: i }) => [
380
- t(4),
381
- i({
382
- mainAxis: !0
383
- })
384
- ]
385
- }), re = Ue("search-select-options-"), { width: Ie } = Be($), Me = () => {
386
- const t = X();
387
- t && t.focus();
388
- }, ce = S(() => n.options.map((t) => ({
389
- ...t,
390
- checked: K.value.some((i) => i.value === t.value),
391
- disabled: n.disabled || !n.disabled && n.addOnly && !!h.value.includes(t.value)
392
- }))), fe = S(
393
- () => ce.value.filter((t) => {
394
- var i;
395
- return (i = w.value) == null ? void 0 : i.includes(t.value);
396
- })
397
- );
398
- return (t, i) => {
399
- var p;
400
- return u(), C(Q, null, [
401
- y("div", {
402
- ref_key: "wrapperRef",
403
- ref: $,
404
- class: M(["relative flex items-end", {
405
- rootClass: e.rootClass,
406
- "z-30": g.value,
407
- "cursor-text": !e.disabled
408
- }]),
409
- role: "combobox",
410
- "aria-expanded": g.value,
411
- "aria-haspopup": !0,
412
- "aria-controls": I(re),
413
- onKeydown: Ce,
414
- onClick: Me
415
- }, [
416
- P(I(We), {
417
- modelValue: I(d),
418
- "onUpdate:modelValue": i[0] || (i[0] = (r) => Le(d) ? d.value = r : null),
419
- readonly: e.isInputReadOnly,
420
- required: e.required,
421
- label: e.label,
422
- name: e.name,
423
- form: e.form,
424
- "label-screen-reader-only": e.labelScreenReaderOnly,
425
- placeholder: ke.value,
426
- class: M(["grow !outline-none", { "cursor-default": e.isInputReadOnly }]),
427
- "wrapper-class": {
428
- "border-transparent border-b-gray-200 focus-within:border-b relative z-10": g.value
429
- },
430
- "input-class": !g.value && (!f.value && I(s) || f.value && !I(Ge)(e.multiModelValue)) ? "placeholder:text-default" : "",
431
- "suffix-class": "border-l-0 pl-0",
432
- disabled: e.disabled,
433
- size: e.size,
434
- error: e.error,
435
- "prefix-has-border": !1,
436
- "aria-autocomplete": "list",
437
- onFocus: i[1] || (i[1] = () => g.value = !0),
438
- onBlur: i[2] || (i[2] = (r) => t.$emit("blur"))
439
- }, De({
440
- "label-suffix": k(() => [
441
- T(t.$slots, "label-suffix")
442
- ]),
443
- suffix: k(() => {
444
- var r, L;
445
- return [
446
- y("div", St, [
447
- !g.value && !f.value && ((r = x.value) != null && r.labelInlineComponent) && (!e.showSuffixInClosedInput || e.showSuffixLabelInInput) ? (u(), b(D(x.value.labelInlineComponent.component), z(N({ key: 0 }, x.value.labelInlineComponent.props)), null, 16)) : v("", !0),
448
- !g.value && !f.value && ((L = x.value) != null && L.labelSuffixComponent) && e.showSuffixInClosedInput ? (u(), b(D(x.value.labelSuffixComponent.component), z(N({ key: 1 }, x.value.labelSuffixComponent.props)), null, 16)) : v("", !0),
449
- !e.disabled && (I(d) || se.value && e.hasReset) ? (u(), b(je, {
450
- key: 2,
451
- icon: "close",
452
- size: "xs",
453
- intent: "subtle",
454
- type: "button",
455
- onClick: ie
456
- })) : v("", !0),
457
- P(Qe, {
458
- icon: "keyboard_arrow_down",
459
- size: "xs",
460
- class: M(["transition-transform", { "rotate-180": g.value }])
461
- }, null, 8, ["class"])
462
- ])
463
- ];
464
- }),
465
- _: 2
466
- }, [
467
- e.showSubLabelInInput && ((p = x.value) != null && p.subLabel) ? {
468
- name: "input",
469
- fn: k(() => [
470
- y("div", {
471
- class: M(["pointer-events-none absolute inset-0 bg-white", { "px-4 py-3": e.size === "xl" }])
472
- }, [
473
- P(G, {
474
- tag: "span",
475
- class: "block",
476
- variant: "body-sm",
477
- weight: "semibold"
478
- }, {
479
- default: k(() => {
480
- var r;
481
- return [
482
- F(q((r = x.value) == null ? void 0 : r.label), 1)
483
- ];
484
- }),
485
- _: 1
486
- }),
487
- P(G, {
488
- tag: "span",
489
- class: "block",
490
- variant: "body-xs",
491
- color: "secondary"
492
- }, {
493
- default: k(() => {
494
- var r;
495
- return [
496
- F(q((r = x.value) == null ? void 0 : r.subLabel), 1)
497
- ];
498
- }),
499
- _: 1
500
- })
501
- ], 2)
502
- ]),
503
- key: "0"
504
- } : void 0,
505
- t.$slots.tooltip ? {
506
- name: "tooltip",
507
- fn: k(() => [
508
- T(t.$slots, "tooltip")
509
- ]),
510
- key: "1"
511
- } : void 0,
512
- ae.value || t.$slots.prefix ? {
513
- name: "prefix",
514
- fn: k(() => {
515
- var r;
516
- return [
517
- y("div", Ct, [
518
- t.$slots.prefix ? T(t.$slots, "prefix", {}, void 0, void 0, 0) : ae.value && ((r = x.value) != null && r.labelPrefixComponent) ? (u(), C("div", wt, [
519
- (u(), b(D(x.value.labelPrefixComponent.component), z(Pe(x.value.labelPrefixComponent.props)), null, 16))
520
- ])) : v("", !0)
521
- ])
522
- ];
523
- }),
524
- key: "2"
525
- } : void 0,
526
- t.$slots.helper ? {
527
- name: "helper",
528
- fn: k(() => [
529
- T(t.$slots, "helper")
530
- ]),
531
- key: "3"
532
- } : void 0
533
- ]), 1032, ["modelValue", "readonly", "required", "label", "name", "form", "label-screen-reader-only", "placeholder", "wrapper-class", "input-class", "class", "disabled", "size", "error"])
534
- ], 42, kt),
535
- e.withChips ? (u(), C("div", It, [
536
- (u(!0), C(Q, null, be(fe.value, ({ value: r, label: L, disabled: O }) => (u(), b(He, {
537
- key: r,
538
- removable: !e.disabled && !O,
539
- onRemoved: (Z) => oe({ value: r, checked: !1 })
540
- }, {
541
- default: k(() => [
542
- y("span", { innerHTML: L }, null, 8, Mt)
543
- ]),
544
- _: 2
545
- }, 1032, ["removable", "onRemoved"]))), 128))
546
- ])) : v("", !0),
547
- I(W) && I(H) ? (u(), b(Ae, {
548
- key: 1,
549
- to: I(H)
550
- }, [
551
- g.value && !e.disabled ? (u(), C("div", {
552
- key: 0,
553
- id: I(re),
554
- ref_key: "optionsRef",
555
- ref: A,
556
- role: "listbox",
557
- style: me(I(Se)),
558
- class: "z-70 rounded bg-white drop-shadow-md",
559
- onMouseenter: i[3] || (i[3] = (r) => g.value = !0),
560
- onKeydown: we
561
- }, [
562
- y("div", {
563
- class: "rounded pt-0",
564
- style: me({ width: `${I(Ie)}px` })
565
- }, [
566
- P(xt, {
567
- options: ce.value,
568
- multiple: f.value,
569
- model: w.value,
570
- "add-only": e.addOnly,
571
- "allows-multiple-values": !!f.value,
572
- condensed: e.condensed,
573
- "has-large-dropdown": e.hasLargeDropdown,
574
- "input-value": I(d),
575
- onValueChanged: oe
576
- }, {
577
- "list-footer-content": k(() => [
578
- ge ? (u(), b(ee, {
579
- key: 0,
580
- intent: "subtle",
581
- class: "w-full",
582
- type: "button",
583
- "icon-prefix": "add",
584
- onClick: xe
585
- }, {
586
- default: k(() => [
587
- F(q(e.textContent.buttonAddLabel), 1)
588
- ]),
589
- _: 1
590
- })) : v("", !0),
591
- f.value ? (u(), C("div", {
592
- key: 1,
593
- class: M(["flex items-center justify-between", { "py-2": !t.$slots["list-footer-content"] }])
594
- }, [
595
- se.value ? (u(), b(ee, {
596
- key: 0,
597
- type: "button",
598
- intent: "subtle",
599
- size: "sm",
600
- class: "ml-2",
601
- onClick: ie
602
- }, {
603
- default: k(() => [
604
- F(q(e.textContent.buttonClearLabel), 1)
605
- ]),
606
- _: 1
607
- })) : v("", !0),
608
- y("div", null, [
609
- T(t.$slots, "list-footer-content")
610
- ]),
611
- P(ee, {
612
- type: "button",
613
- size: "sm",
614
- class: "mr-2",
615
- "data-testid": I(tt),
616
- onClick: R
617
- }, {
618
- default: k(() => [
619
- F(q(e.textContent.buttonDoneLabel), 1)
620
- ]),
621
- _: 1
622
- }, 8, ["data-testid"])
623
- ], 2)) : T(t.$slots, "list-footer-content", {}, void 0, void 0, 2)
624
- ]),
625
- _: 3
626
- }, 8, ["options", "multiple", "model", "add-only", "allows-multiple-values", "condensed", "has-large-dropdown", "input-value"])
627
- ], 4)
628
- ], 44, Et)) : v("", !0)
629
- ], 8, ["to"])) : v("", !0)
630
- ], 64);
631
- };
632
- }
633
- }), Yt = $t, ve = (e) => (e ?? []).flatMap(
634
- (l) => l.configs ?? []
635
- ), pe = (e) => [
636
- ...e.configs ?? [],
637
- ...ve(e.billing_period_configs),
638
- ...(e.pricing_currency_configs ?? []).flatMap((l) => [
639
- ...l.configs ?? [],
640
- ...ve(l.billing_period_configs)
641
- ])
642
- ];
643
- function Gt({
644
- pricings: e,
645
- pricingItemConfigId: l
646
- }) {
647
- var a, d;
648
- const o = e.flatMap((s) => s.items ?? []).find((s) => {
649
- var m;
650
- return (m = s.configs) == null ? void 0 : m.some((h) => h.id === l);
651
- }), n = (a = o == null ? void 0 : o.configs) == null ? void 0 : a.find((s) => s.id === l), c = (d = o == null ? void 0 : o.product_items) == null ? void 0 : d[0];
652
- return {
653
- config: n,
654
- productItem: c
655
- };
656
- }
657
- const le = "1", ye = {
658
- seats: { schedule: "seats_values", planDefault: "default_seats_value" },
659
- units: { schedule: "units", planDefault: "default_units" }
660
- };
661
- function Wt(e, l) {
662
- var d;
663
- const o = ye[e], n = (d = l == null ? void 0 : l.pricing_plan_schedule) == null ? void 0 : d[o.schedule];
664
- if (!l || !(n != null && n.length))
665
- return;
666
- const c = l.pricing_plan_version ? Xe(l).flatMap((s) => s.items ?? []).flatMap(pe) : [], a = new Map(
667
- c.flatMap((s) => {
668
- var h;
669
- const m = (h = s[o.planDefault]) == null ? void 0 : h.number;
670
- return m ? [[s.id, m]] : [];
671
- })
672
- );
673
- return n.map(({ pricing_item_config_id: s, number: m }) => ({
674
- pricing_item_config_id: s,
675
- number: m || a.get(s) || le
676
- }));
677
- }
678
- function Ot(e, l) {
679
- var n, c, a;
680
- const o = (c = (n = e.product_items) == null ? void 0 : n[0]) == null ? void 0 : c.model_type;
681
- if (o === "PER_SEAT") return "seats";
682
- if (o === "ONE_OFF" && ((a = l == null ? void 0 : l.details) == null ? void 0 : a.pricing_type) === "FLAT") return "units";
683
- }
684
- function j(e, l) {
685
- return (e.items ?? []).flatMap((o) => (l ? [Je({ pricingItem: o, ...l })] : pe(o)).flatMap((c) => {
686
- var d;
687
- const a = Ot(o, c);
688
- return c && a ? [
689
- {
690
- kind: a,
691
- id: c.id,
692
- defaultNumber: Number((d = c[ye[a].planDefault]) == null ? void 0 : d.number)
693
- }
694
- ] : [];
695
- }));
696
- }
697
- const ne = (e) => e.some(({ kind: l }) => l === "seats") ? "seats" : "units";
698
- function Jt(e, l = []) {
699
- const o = e.pricing_plan_schedule_infos.filter(
700
- (a) => a.pricing_plan_version
701
- ), n = new Set(l.map((a) => a.pricing_item_config_id));
702
- return [
703
- ...Ze(o).filter(
704
- (a) => a.product_type === "ADDON"
705
- ),
706
- ..._e({
707
- ...e,
708
- pricing_plan_schedule_infos: o
709
- }).filter(
710
- (a) => a.product_type === "ADDON" && a.selection_constraint === "ANY"
711
- ).flatMap((a) => a.pricings ?? [])
712
- ].filter((a) => {
713
- const d = j(a);
714
- return d.length > 0 && !d.some(({ id: s }) => n.has(s));
715
- });
716
- }
717
- function Lt(e) {
718
- return new Set(e.flatMap((l) => j(l).map(({ id: o }) => o)));
719
- }
720
- function Xt(e, l = {}) {
721
- const o = j(e, l), n = ne(o), c = o.filter((a) => a.kind === n && a.defaultNumber > 0).map(({ defaultNumber: a }) => a);
722
- return Math.max(Number(le), ...c);
723
- }
724
- function Zt(e, l) {
725
- if (!l.enabledPricingIds.includes(e.id)) return 0;
726
- const o = j(e), n = ne(o), c = new Set(o.filter((d) => d.kind === n).map(({ id: d }) => d)), a = l[`${n}Values`].find(
727
- ({ pricing_item_config_id: d }) => c.has(d)
728
- );
729
- return Number(a == null ? void 0 : a.number) || void 0;
730
- }
731
- function _t(e, l, o, n = {}) {
732
- const c = Lt([e]), a = l > 0 ? j(e, n) : [], d = ne(a), s = (h, E) => [
733
- ...h.filter(({ pricing_item_config_id: f }) => !c.has(f)),
734
- ...a.filter((f) => f.kind === E).map(({ id: f, defaultNumber: w }) => ({
735
- pricing_item_config_id: f,
736
- number: String(
737
- E === d ? l : w > 0 ? w : le
738
- )
739
- }))
740
- ], m = o.enabledPricingIds.filter((h) => h !== e.id);
741
- return {
742
- enabledPricingIds: l <= 0 ? m : o.enabledPricingIds.includes(e.id) ? o.enabledPricingIds : [...m, e.id],
743
- seatsValues: s(o.seatsValues, "seats"),
744
- unitsValues: s(o.unitsValues, "units")
745
- };
746
- }
747
- export {
748
- le as F,
749
- Yt as S,
750
- Gt as a,
751
- Xt as b,
752
- Zt as c,
753
- Jt as d,
754
- Lt as e,
755
- Wt as f,
756
- Ot as g,
757
- _t as s
758
- };