@solvimon/solvimon-web 0.1.0-alpha.7 → 0.1.0-alpha.9

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 (217) hide show
  1. package/README.md +124 -0
  2. package/dist/ApiStatus-CyNDp_op.mjs +9 -0
  3. package/dist/ApiStatus-oqvUEWJx.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs} +6 -6
  5. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js +1 -0
  6. package/dist/ContentWithAsideLayout-B5B8Kwaw.js +1 -0
  7. package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-DhfUkZZg.mjs} +10 -16
  8. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs} +21 -13
  9. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +1 -0
  10. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs} +19 -9
  11. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +1 -0
  12. package/dist/PaymentHistoryBlock-BiiFJkpT.js +1 -0
  13. package/dist/PaymentHistoryBlock-D_B099M7.mjs +4 -0
  14. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs} +16 -13
  15. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +1 -0
  16. package/dist/PaymentIntegrationForm-D1oJA9mC.js +1 -0
  17. package/dist/PaymentIntegrationForm-DNkjhqMF.mjs +4 -0
  18. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D37gDtY7.mjs} +95 -199
  19. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D5bxFJ-p.js +1 -0
  20. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs} +5 -31
  21. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js +1 -0
  22. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +9 -6
  23. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +1 -0
  24. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js +1 -0
  25. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs} +28 -22
  26. package/dist/adyen-B_QrYdaC.mjs +4 -0
  27. package/dist/adyen-Bwewy3HC.mjs +172 -0
  28. package/dist/adyen-R6aSZ0Yf.js +1 -0
  29. package/dist/adyen-mQEEOjgl.js +1 -0
  30. package/dist/adyen.css +1 -0
  31. package/dist/component-BOqPDAVk.js +1 -0
  32. package/dist/component-Djrf1L-Z.mjs +889 -0
  33. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  34. package/dist/components/BillingInformation/BillingInformation.es.js +8 -9
  35. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  36. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +14 -18
  37. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  38. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +10 -10
  39. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  40. package/dist/components/Invoice/Invoice.es.js +70 -2673
  41. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  42. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +10 -10
  43. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  44. package/dist/components/InvoicesList/InvoicesList.es.js +7 -8
  45. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  46. package/dist/components/PaymentHistory/PaymentHistory.es.js +10 -10
  47. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  48. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +16 -38
  49. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  50. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +17 -4826
  51. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  52. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +11 -11
  53. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  54. package/dist/components/WalletBalances/WalletBalances.es.js +9 -9
  55. package/dist/core/index.cjs.js +1 -1
  56. package/dist/core/index.d.ts +1 -0
  57. package/dist/core/index.es.js +1 -1
  58. package/dist/core/types.d.ts +6 -2
  59. package/dist/{customer-CJrpbGX4.mjs → customer-B31QzznT.mjs} +1 -1
  60. package/dist/{customer-CcQR-JIm.js → customer-hDxW1Dbp.js} +1 -1
  61. package/dist/en-US-CgPY97Vq.js +1 -0
  62. package/dist/en-US-N3CUCsVy.mjs +179 -0
  63. package/dist/index-CzL1ZcGi.mjs +85 -0
  64. package/dist/index-DIFK3mcJ.js +6 -0
  65. package/dist/index-DRdBmZ2-.js +1 -0
  66. package/dist/index-DyvRdSR7.mjs +9673 -0
  67. package/dist/index.cjs.js +1 -1
  68. package/dist/index.d.ts +1 -0
  69. package/dist/index.es.js +4 -1
  70. package/dist/{invoices-CNK1Ushv.mjs → invoices-DIYPN2j_.mjs} +2 -15
  71. package/dist/invoices-DzkA1jDc.js +1 -0
  72. package/dist/nl-NL-B8U9b85I.mjs +197 -0
  73. package/dist/nl-NL-qMRaTRrM.js +1 -0
  74. package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-67b3UlTZ.mjs} +2 -2
  75. package/dist/paymentMethods-C_sdTkSF.js +1 -0
  76. package/dist/{payments-CLt0SExf.js → payments-DkHhTHto.js} +1 -1
  77. package/dist/{payments-CE9U7aKK.mjs → payments-Dq6R37Fz.mjs} +1 -1
  78. package/dist/registry-BkViv4tv.js +1 -0
  79. package/dist/{registry-B99ZnfEn.mjs → registry-Df_26rJy.mjs} +6 -4
  80. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  81. package/dist/screens/Checkout/Checkout.es.js +632 -2538
  82. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  83. package/dist/screens/CustomerOverview/CustomerOverview.es.js +23 -17
  84. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
  85. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
  86. package/dist/screens/PayInvoice/PayInvoice.es.js +458 -0
  87. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  88. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +147 -99
  89. package/dist/solvimon-web.css +1 -1
  90. package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-ClGIr_aS.mjs} +2 -2
  91. package/dist/subscriptions-jelITJcX.js +1 -0
  92. package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-BC57-Ufn.mjs} +1 -1
  93. package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-rw9kWeE0.js} +1 -1
  94. package/dist/{useCustomer--jycAz--.mjs → useCustomer-Ba9WRtuT.mjs} +2 -2
  95. package/dist/{useCustomer-PthyTFLl.js → useCustomer-CUcaeQn_.js} +1 -1
  96. package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-Cnzh2mAz.mjs} +3 -8
  97. package/dist/useIncrementalLoading-DoTTXM2Y.js +1 -0
  98. package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-BJwwDur7.mjs} +6 -12
  99. package/dist/useInvoiceData-D2jkdmlA.js +1 -0
  100. package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-CFzAxyae.mjs} +34 -267
  101. package/dist/useInvoicesList-CaBCGs4h.js +1 -0
  102. package/dist/{useLoadInitialData-Dm48tlSO.mjs → useLoadInitialData-5sgImpzc.mjs} +5 -0
  103. package/dist/useLoadInitialData-DjwRHcAH.js +1 -0
  104. package/dist/usePaymentMethodOptions-C2k4npCQ.mjs +26 -0
  105. package/dist/usePaymentMethodOptions-DYO6xr3-.js +1 -0
  106. package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-CRWbH48K.mjs} +2 -2
  107. package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-ryN_YohI.js} +1 -1
  108. package/dist/usePayments-Cw5PPEJa.mjs +36 -0
  109. package/dist/usePayments-DWXPGFvp.js +1 -0
  110. package/dist/usePortal-CxX4nrE4.js +1 -0
  111. package/dist/usePortal-cmE08vYs.mjs +12 -0
  112. package/dist/useService-Bb9r_sOQ.js +1 -0
  113. package/dist/useService-BsSEI8DZ.mjs +53 -0
  114. package/dist/useViewport-Bu0cyeSi.mjs +38 -0
  115. package/dist/useViewport-CKRY1CKR.js +1 -0
  116. package/dist/useWalletBalanceItems-CkDqmk36.mjs +109 -0
  117. package/dist/useWalletBalanceItems-CpZ1NWPr.js +1 -0
  118. package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
  119. package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
  120. package/dist/vendor-ui-5pJF5KBP.js +1 -0
  121. package/dist/vendor-ui-C0K3osvz.mjs +27645 -0
  122. package/package.json +20 -12
  123. package/dist/Alert.vue.es-DMPvSykx.js +0 -1
  124. package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
  125. package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
  126. package/dist/Amount.vue.es-h8wulbBG.js +0 -1
  127. package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
  128. package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
  129. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
  130. package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
  131. package/dist/Button.vue.es-BC4_TItq.js +0 -1
  132. package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
  133. package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
  134. package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
  135. package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
  136. package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
  137. package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
  138. package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
  139. package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
  140. package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
  141. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
  142. package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
  143. package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
  144. package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
  145. package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
  146. package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
  147. package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
  148. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
  149. package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
  150. package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
  151. package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
  152. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
  153. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
  154. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
  155. package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
  156. package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
  157. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
  158. package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
  159. package/dist/Section.vue.es-BuzTXRLP.js +0 -1
  160. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js +0 -1
  161. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
  162. package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
  163. package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
  164. package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
  165. package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
  166. package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
  167. package/dist/_Uint8Array-DxISR7XF.js +0 -1
  168. package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
  169. package/dist/_flatRest.es-dFffnTpX.js +0 -1
  170. package/dist/adyen-51SvcyqV.mjs +0 -4
  171. package/dist/adyen-DZsyEXkw.js +0 -1
  172. package/dist/api.es-B4qAAJKr.js +0 -1
  173. package/dist/api.es-UkfpLiLL.mjs +0 -83
  174. package/dist/auto-DzZuCneB.mjs +0 -14387
  175. package/dist/auto-PpnAChnH.js +0 -6
  176. package/dist/cloneDeep-Hs8Pp07F.js +0 -1
  177. package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
  178. package/dist/cn.es-C7xoIs3C.js +0 -1
  179. package/dist/cn.es-tfxVlz02.mjs +0 -3191
  180. package/dist/component-ZRZIt3ZW.js +0 -1
  181. package/dist/component-dpA83LIN.mjs +0 -6569
  182. package/dist/countryData.es--zJAd6LA.mjs +0 -252
  183. package/dist/countryData.es-D3MFzU92.js +0 -1
  184. package/dist/customer.es-D42Md24r.js +0 -1
  185. package/dist/customer.es-LIW2YmLL.mjs +0 -30
  186. package/dist/formatting.es-9hM8aHSg.js +0 -1
  187. package/dist/formatting.es-D5H_ySFv.mjs +0 -68
  188. package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
  189. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
  190. package/dist/index-2jo9BSPM.js +0 -1
  191. package/dist/index-BFZ0dPh9.mjs +0 -179
  192. package/dist/index-CI71bVGE.mjs +0 -2521
  193. package/dist/index-CWSXne1Q.js +0 -1
  194. package/dist/index-D3v7hAtc.mjs +0 -253
  195. package/dist/index-WLSPwi90.js +0 -1
  196. package/dist/index.es-BBJF2O2l.js +0 -1
  197. package/dist/index.es-LCAKs4tH.mjs +0 -438
  198. package/dist/invoices-3kVHsAXr.js +0 -1
  199. package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
  200. package/dist/isEmpty.es-Dycf-CD_.js +0 -1
  201. package/dist/paymentMethods-DZRf0WRl.js +0 -1
  202. package/dist/pick.es-BgDAfhAl.js +0 -1
  203. package/dist/pick.es-DdVOyp0Q.mjs +0 -45
  204. package/dist/registry-ClZ43bQn.js +0 -1
  205. package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
  206. package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
  207. package/dist/subscriptions-CS8HTxzC.js +0 -1
  208. package/dist/typeGuards.es-C4nR5FkL.js +0 -1
  209. package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
  210. package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
  211. package/dist/useInvoiceData-DvQO_nKz.js +0 -1
  212. package/dist/useInvoicesList-CHkwSNO9.js +0 -1
  213. package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
  214. package/dist/useService-B67YWAcN.js +0 -1
  215. package/dist/useService-DG_zedHV.mjs +0 -282
  216. package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
  217. package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
@@ -1,12 +1,9 @@
1
- import { u as useIncrementalLoading } from "./useIncrementalLoading-CcnL3flF.mjs";
2
- import { c as createSubscriptionsService } from "./subscriptions-CoeCrY1I.mjs";
1
+ import { u as useIncrementalLoading } from "./useIncrementalLoading-Cnzh2mAz.mjs";
2
+ import { c as createSubscriptionsService } from "./subscriptions-ClGIr_aS.mjs";
3
3
  import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementBlock, createSlots, Fragment, renderList } from "vue";
4
- import { _ as _sfc_main$3 } from "./Section.vue.es-3-H1pUTB.mjs";
5
- import { _ as _sfc_main$6 } from "./Button.vue.es-6sBk5tBL.mjs";
6
- import { a as useIntl, _ as _sfc_main$4 } from "./component-dpA83LIN.mjs";
7
- import { _ as _sfc_main$5 } from "./PaymentMethod.vue.es-nXZoQjG3.mjs";
8
- import { _ as _sfc_main$7 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
9
- import { u as useActionDispatchProvider } from "./useActionDispatchProvider-eO2qFPGv.mjs";
4
+ import { u as useIntl, b as _sfc_main$3, _ as _sfc_main$4, j as _sfc_main$5, e as _sfc_main$6 } from "./vendor-ui-C0K3osvz.mjs";
5
+ import { _ as _sfc_main$7 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
6
+ import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BC57-Ufn.mjs";
10
7
  function useSubscriptionsList({
11
8
  customerId,
12
9
  batchSize: pageSize = 15
@@ -18,14 +15,14 @@ function useSubscriptionsList({
18
15
  });
19
16
  return useIncrementalLoading({ service });
20
17
  }
21
- const _hoisted_1$1 = { class: "flex flex-col gap-4 md:flex-row" };
22
- const _hoisted_2 = { class: "grow" };
23
- const _hoisted_3 = { class: "mt-4 flex items-center gap-6" };
18
+ const _hoisted_1$1 = { class: "sv-subscriptions-list__item-body flex flex-col gap-4 md:flex-row" };
19
+ const _hoisted_2 = { class: "sv-subscriptions-list__item-content grow" };
20
+ const _hoisted_3 = { class: "sv-subscriptions-list__item-meta mt-4 flex items-center gap-6" };
24
21
  const _hoisted_4 = {
25
22
  key: 1,
26
- class: "flex gap-1"
23
+ class: "sv-subscriptions-list__item-next-invoice flex gap-1"
27
24
  };
28
- const _hoisted_5 = { class: "flex flex-col items-center gap-2 md:flex-row" };
25
+ const _hoisted_5 = { class: "sv-subscriptions-list__item-actions flex flex-col items-center gap-2 md:flex-row" };
29
26
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30
27
  __name: "SubscriptionsListItem",
31
28
  props: {
@@ -82,13 +79,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
82
79
  );
83
80
  const isDetailButtonVisible = computed(() => props.showViewSubscriptionDetailsButton);
84
81
  return (_ctx, _cache) => {
85
- return openBlock(), createBlock(unref(_sfc_main$3), null, {
82
+ return openBlock(), createBlock(unref(_sfc_main$3), { class: "sv-subscriptions-list__item" }, {
86
83
  default: withCtx(() => [
87
84
  createElementVNode("div", _hoisted_1$1, [
88
85
  createElementVNode("div", _hoisted_2, [
89
86
  createVNode(unref(_sfc_main$4), {
90
87
  tag: "h3",
91
- variant: "heading-2"
88
+ variant: "heading-2",
89
+ class: "sv-subscriptions-list__item-title"
92
90
  }, {
93
91
  default: withCtx(() => [
94
92
  createTextVNode(toDisplayString(subscriptionName.value), 1)
@@ -99,7 +97,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
99
97
  key: 0,
100
98
  variant: "body-sm",
101
99
  tag: "span",
102
- shade: "lighter"
100
+ shade: "lighter",
101
+ class: "sv-subscriptions-list__item-description"
103
102
  }, {
104
103
  default: withCtx(() => [
105
104
  createTextVNode(toDisplayString(subscriptionDescription.value), 1)
@@ -110,6 +109,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
110
109
  __props.paymentMethod ? (openBlock(), createBlock(unref(_sfc_main$5), {
111
110
  key: 0,
112
111
  variant: "condensed",
112
+ class: "sv-payment-methods__item",
113
113
  "payment-method": __props.paymentMethod
114
114
  }, null, 8, ["payment-method"])) : createCommentVNode("", true),
115
115
  __props.subscription.next_invoice ? (openBlock(), createElementBlock("div", _hoisted_4, [
@@ -150,7 +150,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
150
150
  isDetailButtonVisible.value ? (openBlock(), createBlock(unref(_sfc_main$6), {
151
151
  key: 0,
152
152
  color: "primary",
153
- class: "w-full md:w-auto",
153
+ class: "sv-action sv-action--primary sv-subscriptions-list__item-details w-full md:w-auto",
154
154
  type: "button",
155
155
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("view-subscription-details", { subscriptionId: __props.subscription.id }))
156
156
  }, {
@@ -167,7 +167,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
167
167
  key: 1,
168
168
  variant: "outline",
169
169
  color: "gray",
170
- class: "w-full md:w-auto",
170
+ class: "sv-action sv-action--secondary sv-subscriptions-list__item-cancel w-full md:w-auto",
171
171
  type: "button",
172
172
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("cancel-subscription", { subscriptionId: __props.subscription.id }))
173
173
  }, {
@@ -183,7 +183,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
183
183
  key: 2,
184
184
  variant: "outline",
185
185
  color: "gray",
186
- class: "w-full md:w-auto",
186
+ class: "sv-action sv-action--secondary sv-subscriptions-list__item-renew w-full md:w-auto",
187
187
  type: "button",
188
188
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("renew-subscription", { subscriptionId: __props.subscription.id }))
189
189
  }, {
@@ -206,7 +206,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
206
206
  });
207
207
  const _hoisted_1 = {
208
208
  key: 1,
209
- class: "grid grid-cols-1 gap-4"
209
+ class: "sv-subscriptions-list__items grid grid-cols-1 gap-4"
210
210
  };
211
211
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
212
212
  __name: "SubscriptionsList",
@@ -232,6 +232,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
232
232
  const isViewAllButtonVisible = computed(() => props.showViewAllButton);
233
233
  return (_ctx, _cache) => {
234
234
  return openBlock(), createBlock(unref(_sfc_main$3), {
235
+ class: "sv-subscriptions-list",
235
236
  "no-spacing": "",
236
237
  "no-border": "",
237
238
  title: unref($t)(
@@ -244,7 +245,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
244
245
  )
245
246
  }, createSlots({
246
247
  default: withCtx(() => [
247
- !hasSubscriptions.value ? (openBlock(), createBlock(unref(_sfc_main$3), { key: 0 }, {
248
+ !hasSubscriptions.value ? (openBlock(), createBlock(unref(_sfc_main$3), {
249
+ key: 0,
250
+ class: "sv-empty-state sv-subscriptions-list__empty"
251
+ }, {
248
252
  default: withCtx(() => [
249
253
  createVNode(unref(_sfc_main$4), {
250
254
  tag: "h3",
@@ -301,6 +305,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
301
305
  variant: "ghost",
302
306
  color: "gray",
303
307
  "icon-suffix": "arrow_right_alt",
308
+ class: "sv-action sv-action--ghost sv-subscriptions-list__view-all",
304
309
  type: "button",
305
310
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("view-all-subscriptions"))
306
311
  }, {
@@ -337,10 +342,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
337
342
  return __props.isLoading ? (openBlock(), createBlock(_sfc_main$7, {
338
343
  key: 0,
339
344
  variant: "section",
340
- class: "min-h-[100px]",
345
+ class: "sv-subscriptions-list sv-root sv-component sv-loading min-h-[100px]",
341
346
  "data-testid": "subscriptions-list-skeleton"
342
347
  })) : __props.customer ? (openBlock(), createBlock(_sfc_main$1, {
343
348
  key: 1,
349
+ class: "sv-subscriptions-list sv-root sv-component",
344
350
  customer: __props.customer,
345
351
  subscriptions: __props.subscriptions,
346
352
  "payment-methods": __props.paymentMethods,
@@ -0,0 +1,4 @@
1
+ const adyen = "/adyen.css";
2
+ export {
3
+ adyen as default
4
+ };
@@ -0,0 +1,172 @@
1
+ import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, normalizeClass, createTextVNode, toDisplayString, renderSlot, createCommentVNode } from "vue";
2
+ import { b as _sfc_main$1, l as _sfc_main$2, _ as _sfc_main$3 } from "./vendor-ui-C0K3osvz.mjs";
3
+ const _hoisted_1 = { class: "flex flex-col items-center py-10" };
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "PaymentFeedbackCard",
6
+ props: {
7
+ status: { default: "success", type: String },
8
+ title: { type: String }
9
+ },
10
+ setup(__props) {
11
+ return (_ctx, _cache) => {
12
+ return openBlock(), createBlock(unref(_sfc_main$1), null, {
13
+ default: withCtx(() => [
14
+ createElementVNode("div", _hoisted_1, [
15
+ createVNode(unref(_sfc_main$2), {
16
+ icon: __props.status === "success" ? "check_circle" : "error",
17
+ class: normalizeClass({
18
+ "text-green-400": __props.status === "success",
19
+ "text-red-600": __props.status === "error"
20
+ }),
21
+ size: "lg"
22
+ }, null, 8, ["icon", "class"]),
23
+ createVNode(unref(_sfc_main$3), {
24
+ variant: "heading-3",
25
+ tag: "span",
26
+ class: "mt-2"
27
+ }, {
28
+ default: withCtx(() => [
29
+ createTextVNode(toDisplayString(__props.title), 1)
30
+ ]),
31
+ _: 1
32
+ }),
33
+ _ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$3), {
34
+ key: 0,
35
+ tag: "div",
36
+ variant: "body-sm"
37
+ }, {
38
+ default: withCtx(() => [
39
+ renderSlot(_ctx.$slots, "default")
40
+ ]),
41
+ _: 3
42
+ })) : createCommentVNode("", true)
43
+ ])
44
+ ]),
45
+ _: 3
46
+ });
47
+ };
48
+ }
49
+ });
50
+ const SAFE_PROTOCOLS = /* @__PURE__ */ new Set(["https:", "http:"]);
51
+ function getQueryParam(name, locationSearch = window.location.search) {
52
+ const currentUrl = new URLSearchParams(locationSearch);
53
+ return currentUrl.get(name);
54
+ }
55
+ function sanitizeUrl(url) {
56
+ try {
57
+ const parsed = new URL(url);
58
+ if (!SAFE_PROTOCOLS.has(parsed.protocol)) return "";
59
+ return url;
60
+ } catch {
61
+ return "";
62
+ }
63
+ }
64
+ function safeUrlRedirect(url) {
65
+ const safe = sanitizeUrl(url);
66
+ if (safe) window.location.replace(safe);
67
+ }
68
+ const PAYMENT_ACCEPTOR_ID_QUERY_STRING = "payment_acceptor_id";
69
+ const REDIRECT_RESULT_QUERY_STRING = "redirectResult";
70
+ function getAdyenClientKeyFromPaymentMethodOptionsResponse(paymentMethodOptionResponse) {
71
+ var _a, _b;
72
+ return (_b = (_a = paymentMethodOptionResponse.integration.payment_gateway) == null ? void 0 : _a.adyen) == null ? void 0 : _b.public_key;
73
+ }
74
+ function transformToAdyenAmount(amount) {
75
+ const formatter = new Intl.NumberFormat(void 0, {
76
+ style: "currency",
77
+ currency: amount.currency
78
+ });
79
+ const { maximumFractionDigits = 10 } = formatter.resolvedOptions();
80
+ return {
81
+ value: Math.round(+amount.quantity * Math.pow(10, maximumFractionDigits)),
82
+ currency: amount.currency
83
+ };
84
+ }
85
+ function mapAdyenPaymentMethods(paymentMethodOptionResponse) {
86
+ var _a;
87
+ return ((_a = paymentMethodOptionResponse.options) == null ? void 0 : _a.flatMap(
88
+ (adyenPaymentMethodOption) => mapAdyenPaymentMethod(adyenPaymentMethodOption.adyen)
89
+ )) ?? [];
90
+ }
91
+ function mapAdyenPaymentMethod(adyen) {
92
+ return {
93
+ type: adyen.type,
94
+ name: adyen.name,
95
+ ...adyen.issuers ? { issuers: adyen.issuers } : {},
96
+ ...adyen.brands ? { brands: adyen.brands } : {},
97
+ ...adyen.funding_source ? { fundingSource: adyen.funding_source } : {},
98
+ ...adyen.configuration ? { configuration: adyen.configuration } : {}
99
+ };
100
+ }
101
+ function createReturnUrl({
102
+ paymentAcceptorId,
103
+ redirectUrl = window.location.href
104
+ }) {
105
+ const returnUrl = new URL(redirectUrl);
106
+ returnUrl.searchParams.set(PAYMENT_ACCEPTOR_ID_QUERY_STRING, paymentAcceptorId);
107
+ return returnUrl.toString();
108
+ }
109
+ function getAdyenEnvironmentFromPaymentMethodOptionsResponse(paymentMethodsOptionsResponse, logger) {
110
+ var _a, _b;
111
+ const environment = (_b = (_a = paymentMethodsOptionsResponse == null ? void 0 : paymentMethodsOptionsResponse.integration.payment_gateway) == null ? void 0 : _a.adyen) == null ? void 0 : _b.environment;
112
+ if (!environment) {
113
+ logger.warn("ADYEN_INVALID_CONFIGURATION", "No environment set for adyen advanced flow, defaulted to live");
114
+ return "live";
115
+ }
116
+ switch (environment) {
117
+ case "TEST":
118
+ return "test";
119
+ case "LIVE_IN":
120
+ return "live-in";
121
+ case "LIVE_AU":
122
+ return "live-au";
123
+ case "LIVE_US":
124
+ return "live-us";
125
+ case "LIVE_APSE":
126
+ return "live-apse";
127
+ case "LIVE":
128
+ return "live";
129
+ default:
130
+ logger.warn("ADYEN_INVALID_CONFIGURATION", `Unsupported environment "${environment}" for adyen advanced flow, defaulted to "live"`);
131
+ return "live";
132
+ }
133
+ }
134
+ function getAdyenExpressCheckoutConfiguration({
135
+ amount,
136
+ countryCode,
137
+ locale,
138
+ paymentMethodOptionResponse,
139
+ logger
140
+ }) {
141
+ return {
142
+ ...amount ? { amount: transformToAdyenAmount(amount) } : {},
143
+ analytics: { enabled: false },
144
+ clientKey: getAdyenClientKeyFromPaymentMethodOptionsResponse(paymentMethodOptionResponse),
145
+ countryCode,
146
+ environment: getAdyenEnvironmentFromPaymentMethodOptionsResponse(
147
+ paymentMethodOptionResponse,
148
+ logger
149
+ ),
150
+ locale,
151
+ paymentMethodsResponse: {
152
+ paymentMethods: mapAdyenPaymentMethods(paymentMethodOptionResponse)
153
+ }
154
+ };
155
+ }
156
+ function transformObjectToAdyenObject(obj) {
157
+ return obj ? Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, String(value)])) : void 0;
158
+ }
159
+ export {
160
+ PAYMENT_ACCEPTOR_ID_QUERY_STRING as P,
161
+ REDIRECT_RESULT_QUERY_STRING as R,
162
+ _sfc_main as _,
163
+ getAdyenEnvironmentFromPaymentMethodOptionsResponse as a,
164
+ getAdyenClientKeyFromPaymentMethodOptionsResponse as b,
165
+ transformObjectToAdyenObject as c,
166
+ createReturnUrl as d,
167
+ getAdyenExpressCheckoutConfiguration as e,
168
+ getQueryParam as g,
169
+ mapAdyenPaymentMethods as m,
170
+ safeUrlRedirect as s,
171
+ transformToAdyenAmount as t
172
+ };
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./vendor-ui-5pJF5KBP.js"),n={class:"flex flex-col items-center py-10"},r=e.defineComponent({__name:"PaymentFeedbackCard",props:{status:{default:"success",type:String},title:{type:String}},setup:r=>(o,a)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),null,{default:e.withCtx(()=>[e.createElementVNode("div",n,[e.createVNode(e.unref(t._sfc_main$6),{icon:"success"===r.status?"check_circle":"error",class:e.normalizeClass({"text-green-400":"success"===r.status,"text-red-600":"error"===r.status}),size:"lg"},null,8,["icon","class"]),e.createVNode(e.unref(t._sfc_main),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:1}),o.$slots.default?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,tag:"div",variant:"body-sm"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3})):e.createCommentVNode("",!0)])]),_:3}))}),o=new Set(["https:","http:"]);const a="payment_acceptor_id";function s(e){var t,n;return null==(n=null==(t=e.integration.payment_gateway)?void 0:t.adyen)?void 0:n.public_key}function i(e){const t=new Intl.NumberFormat(void 0,{style:"currency",currency:e.currency}),{maximumFractionDigits:n=10}=t.resolvedOptions();return{value:Math.round(+e.quantity*Math.pow(10,n)),currency:e.currency}}function c(e){var t;return(null==(t=e.options)?void 0:t.flatMap(e=>{return{type:(t=e.adyen).type,name:t.name,...t.issuers?{issuers:t.issuers}:{},...t.brands?{brands:t.brands}:{},...t.funding_source?{fundingSource:t.funding_source}:{},...t.configuration?{configuration:t.configuration}:{}};var t}))??[]}function u(e,t){var n,r;const o=null==(r=null==(n=null==e?void 0:e.integration.payment_gateway)?void 0:n.adyen)?void 0:r.environment;if(!o)return t.warn("ADYEN_INVALID_CONFIGURATION","No environment set for adyen advanced flow, defaulted to live"),"live";switch(o){case"TEST":return"test";case"LIVE_IN":return"live-in";case"LIVE_AU":return"live-au";case"LIVE_US":return"live-us";case"LIVE_APSE":return"live-apse";case"LIVE":return"live";default:return t.warn("ADYEN_INVALID_CONFIGURATION",`Unsupported environment "${o}" for adyen advanced flow, defaulted to "live"`),"live"}}exports.PAYMENT_ACCEPTOR_ID_QUERY_STRING=a,exports.REDIRECT_RESULT_QUERY_STRING="redirectResult",exports._sfc_main=r,exports.createReturnUrl=function({paymentAcceptorId:e,redirectUrl:t=window.location.href}){const n=new URL(t);return n.searchParams.set(a,e),n.toString()},exports.getAdyenClientKeyFromPaymentMethodOptionsResponse=s,exports.getAdyenEnvironmentFromPaymentMethodOptionsResponse=u,exports.getAdyenExpressCheckoutConfiguration=function({amount:e,countryCode:t,locale:n,paymentMethodOptionResponse:r,logger:o}){return{...e?{amount:i(e)}:{},analytics:{enabled:!1},clientKey:s(r),countryCode:t,environment:u(r,o),locale:n,paymentMethodsResponse:{paymentMethods:c(r)}}},exports.getQueryParam=function(e,t=window.location.search){return new URLSearchParams(t).get(e)},exports.mapAdyenPaymentMethods=c,exports.safeUrlRedirect=function(e){const t=function(e){try{const t=new URL(e);return o.has(t.protocol)?e:""}catch{return""}}(e);t&&window.location.replace(t)},exports.transformObjectToAdyenObject=function(e){return e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,String(t)])):void 0},exports.transformToAdyenAmount=i;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default="/adyen.css";