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

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 (202) hide show
  1. package/dist/ApiStatus-CyNDp_op.mjs +9 -0
  2. package/dist/ApiStatus-oqvUEWJx.js +1 -0
  3. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +2 -4
  5. package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
  6. package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
  7. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +2 -5
  8. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
  9. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
  10. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +1 -2
  11. package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
  12. package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
  13. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +1 -5
  14. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
  15. package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
  16. package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
  17. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs} +32 -189
  18. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
  19. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
  20. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -31
  21. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +4 -7
  22. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
  23. package/dist/adyenLoader-CEH4A2b2.js +1 -0
  24. package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
  25. package/dist/component-C2Gc-wsE.js +1 -0
  26. package/dist/component-CM9g6tbD.mjs +804 -0
  27. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  28. package/dist/components/BillingInformation/BillingInformation.es.js +3 -7
  29. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  30. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +9 -17
  31. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  32. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
  33. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  34. package/dist/components/Invoice/Invoice.es.js +42 -2659
  35. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  36. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
  37. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  38. package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
  39. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  40. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
  41. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  42. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -33
  43. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  44. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +8 -4824
  45. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  46. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
  47. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  48. package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
  49. package/dist/core/index.cjs.js +1 -1
  50. package/dist/core/index.es.js +1 -1
  51. package/dist/core/types.d.ts +2 -0
  52. package/dist/{customer-CcQR-JIm.js → customer-C_Hz_npf.js} +1 -1
  53. package/dist/{customer-CJrpbGX4.mjs → customer-TIi7iZFw.mjs} +1 -1
  54. package/dist/en-US-CBoPxQwX.mjs +199 -0
  55. package/dist/en-US-DJq-9dD8.js +1 -0
  56. package/dist/index-CzL1ZcGi.mjs +85 -0
  57. package/dist/index-DRdBmZ2-.js +1 -0
  58. package/dist/index.cjs.js +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.es.js +4 -1
  61. package/dist/{invoices-CNK1Ushv.mjs → invoices-BuVOuTOm.mjs} +2 -15
  62. package/dist/invoices-DbvwXAsm.js +1 -0
  63. package/dist/nl-NL-BB7KbK-h.mjs +181 -0
  64. package/dist/nl-NL-CtU1Lg2F.js +1 -0
  65. package/dist/paymentMethods-B4AYGf0K.js +1 -0
  66. package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-Di32oJ39.mjs} +2 -2
  67. package/dist/{payments-CE9U7aKK.mjs → payments-C5fD1PXB.mjs} +1 -1
  68. package/dist/{payments-CLt0SExf.js → payments-DeutKq9x.js} +1 -1
  69. package/dist/{registry-B99ZnfEn.mjs → registry-BLwMl1bK.mjs} +6 -4
  70. package/dist/registry-CMSmkLcy.js +1 -0
  71. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  72. package/dist/screens/Checkout/Checkout.es.js +420 -2388
  73. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  74. package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
  75. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
  76. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
  77. package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
  78. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  79. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +79 -61
  80. package/dist/solvimon-web.css +1 -1
  81. package/dist/source-DKDKBlUm.mjs +179 -0
  82. package/dist/source-dkMNFWDc.js +1 -0
  83. package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-mOgjjzUi.mjs} +2 -2
  84. package/dist/subscriptions-wdMADcQZ.js +1 -0
  85. package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
  86. package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
  87. package/dist/{useCustomer-PthyTFLl.js → useCustomer-DanZzn-l.js} +1 -1
  88. package/dist/{useCustomer--jycAz--.mjs → useCustomer-cbhDyWJL.mjs} +2 -2
  89. package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
  90. package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -8
  91. package/dist/useInvoiceData-CxxHa5R2.js +1 -0
  92. package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
  93. package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-BQQxcPdz.mjs} +23 -260
  94. package/dist/useInvoicesList-CtJqmblZ.js +1 -0
  95. package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
  96. package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
  97. package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
  98. package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
  99. package/dist/usePayments-B13S_yai.js +1 -0
  100. package/dist/usePayments-D4uGKBsV.mjs +36 -0
  101. package/dist/usePortal-DJDJNLbo.mjs +12 -0
  102. package/dist/usePortal-DWJEVkTj.js +1 -0
  103. package/dist/useService-9fCKPTmu.js +1 -0
  104. package/dist/useService-BuWWE5ND.mjs +68 -0
  105. package/dist/useViewport-Bu0cyeSi.mjs +38 -0
  106. package/dist/useViewport-CKRY1CKR.js +1 -0
  107. package/dist/useWalletBalanceItems-B53Gkjro.mjs +106 -0
  108. package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
  109. package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
  110. package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
  111. package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
  112. package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
  113. package/package.json +17 -10
  114. package/dist/Alert.vue.es-DMPvSykx.js +0 -1
  115. package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
  116. package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
  117. package/dist/Amount.vue.es-h8wulbBG.js +0 -1
  118. package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
  119. package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
  120. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
  121. package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
  122. package/dist/Button.vue.es-BC4_TItq.js +0 -1
  123. package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
  124. package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
  125. package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
  126. package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
  127. package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
  128. package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
  129. package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
  130. package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
  131. package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
  132. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
  133. package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
  134. package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
  135. package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
  136. package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
  137. package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
  138. package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
  139. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
  140. package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
  141. package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
  142. package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
  143. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
  144. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
  145. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
  146. package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
  147. package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
  148. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
  149. package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
  150. package/dist/Section.vue.es-BuzTXRLP.js +0 -1
  151. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
  152. package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
  153. package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
  154. package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
  155. package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
  156. package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
  157. package/dist/_Uint8Array-DxISR7XF.js +0 -1
  158. package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
  159. package/dist/_flatRest.es-dFffnTpX.js +0 -1
  160. package/dist/api.es-B4qAAJKr.js +0 -1
  161. package/dist/api.es-UkfpLiLL.mjs +0 -83
  162. package/dist/cloneDeep-Hs8Pp07F.js +0 -1
  163. package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
  164. package/dist/cn.es-C7xoIs3C.js +0 -1
  165. package/dist/cn.es-tfxVlz02.mjs +0 -3191
  166. package/dist/component-ZRZIt3ZW.js +0 -1
  167. package/dist/component-dpA83LIN.mjs +0 -6569
  168. package/dist/countryData.es--zJAd6LA.mjs +0 -252
  169. package/dist/countryData.es-D3MFzU92.js +0 -1
  170. package/dist/customer.es-D42Md24r.js +0 -1
  171. package/dist/customer.es-LIW2YmLL.mjs +0 -30
  172. package/dist/formatting.es-9hM8aHSg.js +0 -1
  173. package/dist/formatting.es-D5H_ySFv.mjs +0 -68
  174. package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
  175. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
  176. package/dist/index-2jo9BSPM.js +0 -1
  177. package/dist/index-BFZ0dPh9.mjs +0 -179
  178. package/dist/index-CI71bVGE.mjs +0 -2521
  179. package/dist/index-CWSXne1Q.js +0 -1
  180. package/dist/index-D3v7hAtc.mjs +0 -253
  181. package/dist/index-WLSPwi90.js +0 -1
  182. package/dist/index.es-BBJF2O2l.js +0 -1
  183. package/dist/index.es-LCAKs4tH.mjs +0 -438
  184. package/dist/invoices-3kVHsAXr.js +0 -1
  185. package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
  186. package/dist/isEmpty.es-Dycf-CD_.js +0 -1
  187. package/dist/paymentMethods-DZRf0WRl.js +0 -1
  188. package/dist/pick.es-BgDAfhAl.js +0 -1
  189. package/dist/pick.es-DdVOyp0Q.mjs +0 -45
  190. package/dist/registry-ClZ43bQn.js +0 -1
  191. package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
  192. package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
  193. package/dist/subscriptions-CS8HTxzC.js +0 -1
  194. package/dist/typeGuards.es-C4nR5FkL.js +0 -1
  195. package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
  196. package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
  197. package/dist/useInvoiceData-DvQO_nKz.js +0 -1
  198. package/dist/useInvoicesList-CHkwSNO9.js +0 -1
  199. package/dist/useService-B67YWAcN.js +0 -1
  200. package/dist/useService-DG_zedHV.mjs +0 -282
  201. package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
  202. package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
@@ -1,438 +0,0 @@
1
- import { i as isIOS, n as noop, a as isClient, b as isString, r as resolveUnref, t as tryOnScopeDispose, c as isDef, d as isFunction, e as tryOnMounted, f as resolveRef, g as increaseWithUnit, h as identity } from "./_flatRest.es-BHFPCqZh.mjs";
2
- import { watch, getCurrentInstance, ref, computed, watchEffect } from "vue";
3
- function unrefElement(elRef) {
4
- var _a;
5
- const plain = resolveUnref(elRef);
6
- return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
7
- }
8
- const defaultWindow = isClient ? window : void 0;
9
- function useEventListener(...args) {
10
- let target;
11
- let events;
12
- let listeners;
13
- let options;
14
- if (isString(args[0]) || Array.isArray(args[0])) {
15
- [events, listeners, options] = args;
16
- target = defaultWindow;
17
- } else {
18
- [target, events, listeners, options] = args;
19
- }
20
- if (!target)
21
- return noop;
22
- if (!Array.isArray(events))
23
- events = [events];
24
- if (!Array.isArray(listeners))
25
- listeners = [listeners];
26
- const cleanups = [];
27
- const cleanup = () => {
28
- cleanups.forEach((fn) => fn());
29
- cleanups.length = 0;
30
- };
31
- const register = (el, event, listener, options2) => {
32
- el.addEventListener(event, listener, options2);
33
- return () => el.removeEventListener(event, listener, options2);
34
- };
35
- const stopWatch = watch(() => [unrefElement(target), resolveUnref(options)], ([el, options2]) => {
36
- cleanup();
37
- if (!el)
38
- return;
39
- cleanups.push(...events.flatMap((event) => {
40
- return listeners.map((listener) => register(el, event, listener, options2));
41
- }));
42
- }, { immediate: true, flush: "post" });
43
- const stop = () => {
44
- stopWatch();
45
- cleanup();
46
- };
47
- tryOnScopeDispose(stop);
48
- return stop;
49
- }
50
- let _iOSWorkaround = false;
51
- function onClickOutside(target, handler, options = {}) {
52
- const { window: window2 = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;
53
- if (!window2)
54
- return;
55
- if (isIOS && !_iOSWorkaround) {
56
- _iOSWorkaround = true;
57
- Array.from(window2.document.body.children).forEach((el) => el.addEventListener("click", noop));
58
- }
59
- let shouldListen = true;
60
- const shouldIgnore = (event) => {
61
- return ignore.some((target2) => {
62
- if (typeof target2 === "string") {
63
- return Array.from(window2.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
64
- } else {
65
- const el = unrefElement(target2);
66
- return el && (event.target === el || event.composedPath().includes(el));
67
- }
68
- });
69
- };
70
- const listener = (event) => {
71
- const el = unrefElement(target);
72
- if (!el || el === event.target || event.composedPath().includes(el))
73
- return;
74
- if (event.detail === 0)
75
- shouldListen = !shouldIgnore(event);
76
- if (!shouldListen) {
77
- shouldListen = true;
78
- return;
79
- }
80
- handler(event);
81
- };
82
- const cleanup = [
83
- useEventListener(window2, "click", listener, { passive: true, capture }),
84
- useEventListener(window2, "pointerdown", (e) => {
85
- const el = unrefElement(target);
86
- if (el)
87
- shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);
88
- }, { passive: true }),
89
- detectIframe && useEventListener(window2, "blur", (event) => {
90
- var _a;
91
- const el = unrefElement(target);
92
- if (((_a = window2.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window2.document.activeElement)))
93
- handler(event);
94
- })
95
- ].filter(Boolean);
96
- const stop = () => cleanup.forEach((fn) => fn());
97
- return stop;
98
- }
99
- const createKeyPredicate = (keyFilter) => {
100
- if (typeof keyFilter === "function")
101
- return keyFilter;
102
- else if (typeof keyFilter === "string")
103
- return (event) => event.key === keyFilter;
104
- else if (Array.isArray(keyFilter))
105
- return (event) => keyFilter.includes(event.key);
106
- return () => true;
107
- };
108
- function onKeyStroke(...args) {
109
- let key;
110
- let handler;
111
- let options = {};
112
- if (args.length === 3) {
113
- key = args[0];
114
- handler = args[1];
115
- options = args[2];
116
- } else if (args.length === 2) {
117
- if (typeof args[1] === "object") {
118
- key = true;
119
- handler = args[0];
120
- options = args[1];
121
- } else {
122
- key = args[0];
123
- handler = args[1];
124
- }
125
- } else {
126
- key = true;
127
- handler = args[0];
128
- }
129
- const { target = defaultWindow, eventName = "keydown", passive = false } = options;
130
- const predicate = createKeyPredicate(key);
131
- const listener = (e) => {
132
- if (predicate(e))
133
- handler(e);
134
- };
135
- return useEventListener(target, eventName, listener, passive);
136
- }
137
- function useSupported(callback, sync = false) {
138
- const isSupported = ref();
139
- const update = () => isSupported.value = Boolean(callback());
140
- update();
141
- tryOnMounted(update, sync);
142
- return isSupported;
143
- }
144
- function useMediaQuery(query, options = {}) {
145
- const { window: window2 = defaultWindow } = options;
146
- const isSupported = useSupported(() => window2 && "matchMedia" in window2 && typeof window2.matchMedia === "function");
147
- let mediaQuery;
148
- const matches = ref(false);
149
- const cleanup = () => {
150
- if (!mediaQuery)
151
- return;
152
- if ("removeEventListener" in mediaQuery)
153
- mediaQuery.removeEventListener("change", update);
154
- else
155
- mediaQuery.removeListener(update);
156
- };
157
- const update = () => {
158
- if (!isSupported.value)
159
- return;
160
- cleanup();
161
- mediaQuery = window2.matchMedia(resolveRef(query).value);
162
- matches.value = mediaQuery.matches;
163
- if ("addEventListener" in mediaQuery)
164
- mediaQuery.addEventListener("change", update);
165
- else
166
- mediaQuery.addListener(update);
167
- };
168
- watchEffect(update);
169
- tryOnScopeDispose(() => cleanup());
170
- return matches;
171
- }
172
- const breakpointsTailwind = {
173
- "sm": 640,
174
- "md": 768,
175
- "lg": 1024,
176
- "xl": 1280,
177
- "2xl": 1536
178
- };
179
- var __defProp$m = Object.defineProperty;
180
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
181
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
182
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
183
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
184
- var __spreadValues$m = (a, b) => {
185
- for (var prop in b || (b = {}))
186
- if (__hasOwnProp$o.call(b, prop))
187
- __defNormalProp$m(a, prop, b[prop]);
188
- if (__getOwnPropSymbols$o)
189
- for (var prop of __getOwnPropSymbols$o(b)) {
190
- if (__propIsEnum$o.call(b, prop))
191
- __defNormalProp$m(a, prop, b[prop]);
192
- }
193
- return a;
194
- };
195
- function useBreakpoints(breakpoints, options = {}) {
196
- function getValue(k, delta) {
197
- let v = breakpoints[k];
198
- if (delta != null)
199
- v = increaseWithUnit(v, delta);
200
- if (typeof v === "number")
201
- v = `${v}px`;
202
- return v;
203
- }
204
- const { window: window2 = defaultWindow } = options;
205
- function match(query) {
206
- if (!window2)
207
- return false;
208
- return window2.matchMedia(query).matches;
209
- }
210
- const greaterOrEqual = (k) => {
211
- return useMediaQuery(`(min-width: ${getValue(k)})`, options);
212
- };
213
- const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => {
214
- Object.defineProperty(shortcuts, k, {
215
- get: () => greaterOrEqual(k),
216
- enumerable: true,
217
- configurable: true
218
- });
219
- return shortcuts;
220
- }, {});
221
- return __spreadValues$m({
222
- greater(k) {
223
- return useMediaQuery(`(min-width: ${getValue(k, 0.1)})`, options);
224
- },
225
- greaterOrEqual,
226
- smaller(k) {
227
- return useMediaQuery(`(max-width: ${getValue(k, -0.1)})`, options);
228
- },
229
- smallerOrEqual(k) {
230
- return useMediaQuery(`(max-width: ${getValue(k)})`, options);
231
- },
232
- between(a, b) {
233
- return useMediaQuery(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`, options);
234
- },
235
- isGreater(k) {
236
- return match(`(min-width: ${getValue(k, 0.1)})`);
237
- },
238
- isGreaterOrEqual(k) {
239
- return match(`(min-width: ${getValue(k)})`);
240
- },
241
- isSmaller(k) {
242
- return match(`(max-width: ${getValue(k, -0.1)})`);
243
- },
244
- isSmallerOrEqual(k) {
245
- return match(`(max-width: ${getValue(k)})`);
246
- },
247
- isInBetween(a, b) {
248
- return match(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`);
249
- }
250
- }, shortcutMethods);
251
- }
252
- function cloneFnJSON(source) {
253
- return JSON.parse(JSON.stringify(source));
254
- }
255
- const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
256
- const globalKey = "__vueuse_ssr_handlers__";
257
- _global[globalKey] = _global[globalKey] || {};
258
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
259
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
260
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
261
- var __objRest$2 = (source, exclude) => {
262
- var target = {};
263
- for (var prop in source)
264
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
265
- target[prop] = source[prop];
266
- if (source != null && __getOwnPropSymbols$g)
267
- for (var prop of __getOwnPropSymbols$g(source)) {
268
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
269
- target[prop] = source[prop];
270
- }
271
- return target;
272
- };
273
- function useResizeObserver(target, callback, options = {}) {
274
- const _a = options, { window: window2 = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]);
275
- let observer;
276
- const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
277
- const cleanup = () => {
278
- if (observer) {
279
- observer.disconnect();
280
- observer = void 0;
281
- }
282
- };
283
- const stopWatch = watch(() => unrefElement(target), (el) => {
284
- cleanup();
285
- if (isSupported.value && window2 && el) {
286
- observer = new ResizeObserver(callback);
287
- observer.observe(el, observerOptions);
288
- }
289
- }, { immediate: true, flush: "post" });
290
- const stop = () => {
291
- cleanup();
292
- stopWatch();
293
- };
294
- tryOnScopeDispose(stop);
295
- return {
296
- isSupported,
297
- stop
298
- };
299
- }
300
- function useElementSize(target, initialSize = { width: 0, height: 0 }, options = {}) {
301
- const { window: window2 = defaultWindow, box = "content-box" } = options;
302
- const isSVG = computed(() => {
303
- var _a, _b;
304
- return (_b = (_a = unrefElement(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes("svg");
305
- });
306
- const width = ref(initialSize.width);
307
- const height = ref(initialSize.height);
308
- useResizeObserver(target, ([entry]) => {
309
- const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;
310
- if (window2 && isSVG.value) {
311
- const $elem = unrefElement(target);
312
- if ($elem) {
313
- const styles = window2.getComputedStyle($elem);
314
- width.value = parseFloat(styles.width);
315
- height.value = parseFloat(styles.height);
316
- }
317
- } else {
318
- if (boxSize) {
319
- const formatBoxSize = Array.isArray(boxSize) ? boxSize : [boxSize];
320
- width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0);
321
- height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0);
322
- } else {
323
- width.value = entry.contentRect.width;
324
- height.value = entry.contentRect.height;
325
- }
326
- }
327
- }, options);
328
- watch(() => unrefElement(target), (ele) => {
329
- width.value = ele ? initialSize.width : 0;
330
- height.value = ele ? initialSize.height : 0;
331
- });
332
- return {
333
- width,
334
- height
335
- };
336
- }
337
- var SwipeDirection;
338
- (function(SwipeDirection2) {
339
- SwipeDirection2["UP"] = "UP";
340
- SwipeDirection2["RIGHT"] = "RIGHT";
341
- SwipeDirection2["DOWN"] = "DOWN";
342
- SwipeDirection2["LEFT"] = "LEFT";
343
- SwipeDirection2["NONE"] = "NONE";
344
- })(SwipeDirection || (SwipeDirection = {}));
345
- var __defProp = Object.defineProperty;
346
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
347
- var __hasOwnProp = Object.prototype.hasOwnProperty;
348
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
349
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
350
- var __spreadValues = (a, b) => {
351
- for (var prop in b || (b = {}))
352
- if (__hasOwnProp.call(b, prop))
353
- __defNormalProp(a, prop, b[prop]);
354
- if (__getOwnPropSymbols)
355
- for (var prop of __getOwnPropSymbols(b)) {
356
- if (__propIsEnum.call(b, prop))
357
- __defNormalProp(a, prop, b[prop]);
358
- }
359
- return a;
360
- };
361
- const _TransitionPresets = {
362
- easeInSine: [0.12, 0, 0.39, 0],
363
- easeOutSine: [0.61, 1, 0.88, 1],
364
- easeInOutSine: [0.37, 0, 0.63, 1],
365
- easeInQuad: [0.11, 0, 0.5, 0],
366
- easeOutQuad: [0.5, 1, 0.89, 1],
367
- easeInOutQuad: [0.45, 0, 0.55, 1],
368
- easeInCubic: [0.32, 0, 0.67, 0],
369
- easeOutCubic: [0.33, 1, 0.68, 1],
370
- easeInOutCubic: [0.65, 0, 0.35, 1],
371
- easeInQuart: [0.5, 0, 0.75, 0],
372
- easeOutQuart: [0.25, 1, 0.5, 1],
373
- easeInOutQuart: [0.76, 0, 0.24, 1],
374
- easeInQuint: [0.64, 0, 0.78, 0],
375
- easeOutQuint: [0.22, 1, 0.36, 1],
376
- easeInOutQuint: [0.83, 0, 0.17, 1],
377
- easeInExpo: [0.7, 0, 0.84, 0],
378
- easeOutExpo: [0.16, 1, 0.3, 1],
379
- easeInOutExpo: [0.87, 0, 0.13, 1],
380
- easeInCirc: [0.55, 0, 1, 0.45],
381
- easeOutCirc: [0, 0.55, 0.45, 1],
382
- easeInOutCirc: [0.85, 0, 0.15, 1],
383
- easeInBack: [0.36, 0, 0.66, -0.56],
384
- easeOutBack: [0.34, 1.56, 0.64, 1],
385
- easeInOutBack: [0.68, -0.6, 0.32, 1.6]
386
- };
387
- __spreadValues({
388
- linear: identity
389
- }, _TransitionPresets);
390
- function useVModel(props, key, emit, options = {}) {
391
- var _a, _b, _c;
392
- const {
393
- clone = false,
394
- passive = false,
395
- eventName,
396
- deep = false,
397
- defaultValue
398
- } = options;
399
- const vm = getCurrentInstance();
400
- const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));
401
- let event = eventName;
402
- if (!key) {
403
- {
404
- key = "modelValue";
405
- }
406
- }
407
- event = eventName || event || `update:${key.toString()}`;
408
- const cloneFn = (val) => !clone ? val : isFunction(clone) ? clone(val) : cloneFnJSON(val);
409
- const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
410
- if (passive) {
411
- const initialValue = getValue();
412
- const proxy = ref(initialValue);
413
- watch(() => props[key], (v) => proxy.value = cloneFn(v));
414
- watch(proxy, (v) => {
415
- if (v !== props[key] || deep)
416
- _emit(event, v);
417
- }, { deep });
418
- return proxy;
419
- } else {
420
- return computed({
421
- get() {
422
- return getValue();
423
- },
424
- set(value) {
425
- _emit(event, value);
426
- }
427
- });
428
- }
429
- }
430
- export {
431
- useVModel as a,
432
- breakpointsTailwind as b,
433
- useElementSize as c,
434
- useEventListener as d,
435
- onKeyStroke as e,
436
- onClickOutside as o,
437
- useBreakpoints as u
438
- };
@@ -1 +0,0 @@
1
- const e=require("./api.es-B4qAAJKr.js"),t=require("./component-ZRZIt3ZW.js"),n=(e,t)=>{const n=document.createElement("a");n.href=e,n.download=t,n.click(),setTimeout(()=>{window.URL.revokeObjectURL(e)},250)};exports.createInvoicesService=function(){const i=t.createRequestService(),r=t.useConfig();return{getInvoice:function(e){return i({url:`${r.apiUrls.transaction}/portal/invoices/${e}`})},getInvoices:function({customerId:t,pagination:n,query:o}){const c=e.withPagination({customer_id:t,...o??{}},n),a=new URL(`${r.apiUrls.transaction}/portal/invoices`);return Object.entries(c).forEach(([e,t])=>{null!=t&&(Array.isArray(t)?t.forEach(t=>{a.searchParams.append(`${e}[]`,`${t}`)}):a.searchParams.append(e,`${t}`))}),i({url:a.toString(),isCollection:!0})},getInvoicePdf:async function(e){return i({url:`${r.apiUrls.transaction}/portal/invoices/${e}/pdf`,options:{headers:{"Content-Type":"application/pdf"}}}).then(t=>{((e,t)=>{const i=window.URL.createObjectURL(e);n(i,t)})(new Blob([t],{type:"application/pdf"}),`invoice-${e}.pdf`)})},getInvoicePreview:function({customer:e,pricingPlanSubscriptionId:t,startAt:n,customizations:o,pricing_plan_schedule_customizations:c}){return i({url:`${r.apiUrls.transaction}/portal/invoices/preview`,options:{method:"POST"},data:{template_pricing_plan_subscription_id:t,...n&&{start_at:n},...o&&{pricing_plan_schedule_customizations:o},...c&&{pricing_plan_schedule_customizations:c},customer_details:{...e,reference:"preview"}}})}}};
@@ -1,131 +0,0 @@
1
- import { u as getNative, v as root, w as baseGetTag, x as toSource, M as Map, y as isLength, z as isFunction, A as isObjectLike, B as freeGlobal, C as isArray, D as isArguments } from "./_flatRest.es-BHFPCqZh.mjs";
2
- var objectProto$2 = Object.prototype;
3
- function isPrototype(value) {
4
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$2;
5
- return value === proto;
6
- }
7
- function overArg(func, transform) {
8
- return function(arg) {
9
- return func(transform(arg));
10
- };
11
- }
12
- var nativeKeys = overArg(Object.keys, Object);
13
- var objectProto$1 = Object.prototype;
14
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
15
- function baseKeys(object) {
16
- if (!isPrototype(object)) {
17
- return nativeKeys(object);
18
- }
19
- var result = [];
20
- for (var key in Object(object)) {
21
- if (hasOwnProperty$1.call(object, key) && key != "constructor") {
22
- result.push(key);
23
- }
24
- }
25
- return result;
26
- }
27
- var DataView = getNative(root, "DataView");
28
- var Promise$1 = getNative(root, "Promise");
29
- var Set = getNative(root, "Set");
30
- var WeakMap = getNative(root, "WeakMap");
31
- var mapTag$2 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$2 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
32
- var dataViewTag$1 = "[object DataView]";
33
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
34
- var getTag = baseGetTag;
35
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$1 || Map && getTag(new Map()) != mapTag$2 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$2 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) {
36
- getTag = function(value) {
37
- var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
38
- if (ctorString) {
39
- switch (ctorString) {
40
- case dataViewCtorString:
41
- return dataViewTag$1;
42
- case mapCtorString:
43
- return mapTag$2;
44
- case promiseCtorString:
45
- return promiseTag;
46
- case setCtorString:
47
- return setTag$2;
48
- case weakMapCtorString:
49
- return weakMapTag$1;
50
- }
51
- }
52
- return result;
53
- };
54
- }
55
- function isArrayLike(value) {
56
- return value != null && isLength(value.length) && !isFunction(value);
57
- }
58
- function stubFalse() {
59
- return false;
60
- }
61
- var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
62
- var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
63
- var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
64
- var Buffer = moduleExports$1 ? root.Buffer : void 0;
65
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
66
- var isBuffer = nativeIsBuffer || stubFalse;
67
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]";
68
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
69
- var typedArrayTags = {};
70
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
71
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
72
- function baseIsTypedArray(value) {
73
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
74
- }
75
- function baseUnary(func) {
76
- return function(value) {
77
- return func(value);
78
- };
79
- }
80
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
81
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
82
- var moduleExports = freeModule && freeModule.exports === freeExports;
83
- var freeProcess = moduleExports && freeGlobal.process;
84
- var nodeUtil = (function() {
85
- try {
86
- var types = freeModule && freeModule.require && freeModule.require("util").types;
87
- if (types) {
88
- return types;
89
- }
90
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
91
- } catch (e) {
92
- }
93
- })();
94
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
95
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
96
- var mapTag = "[object Map]", setTag = "[object Set]";
97
- var objectProto = Object.prototype;
98
- var hasOwnProperty = objectProto.hasOwnProperty;
99
- function isEmpty(value) {
100
- if (value == null) {
101
- return true;
102
- }
103
- if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
104
- return !value.length;
105
- }
106
- var tag = getTag(value);
107
- if (tag == mapTag || tag == setTag) {
108
- return !value.size;
109
- }
110
- if (isPrototype(value)) {
111
- return !baseKeys(value).length;
112
- }
113
- for (var key in value) {
114
- if (hasOwnProperty.call(value, key)) {
115
- return false;
116
- }
117
- }
118
- return true;
119
- }
120
- export {
121
- isArrayLike as a,
122
- baseUnary as b,
123
- isBuffer as c,
124
- isTypedArray as d,
125
- baseKeys as e,
126
- isPrototype as f,
127
- getTag as g,
128
- isEmpty as i,
129
- nodeUtil as n,
130
- overArg as o
131
- };
@@ -1 +0,0 @@
1
- const e=require("./_flatRest.es-dFffnTpX.js");var t=Object.prototype;function r(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}function o(e,t){return function(r){return e(t(r))}}var n=o(Object.keys,Object),c=Object.prototype.hasOwnProperty;function a(e){if(!r(e))return n(e);var t=[];for(var o in Object(e))c.call(e,o)&&"constructor"!=o&&t.push(o);return t}var s=e.getNative(e.root,"DataView"),u=e.getNative(e.root,"Promise"),i=e.getNative(e.root,"Set"),p=e.getNative(e.root,"WeakMap"),b="[object Map]",j="[object Promise]",f="[object Set]",y="[object WeakMap]",g="[object DataView]",l=e.toSource(s),x=e.toSource(e.Map),d=e.toSource(u),v=e.toSource(i),A=e.toSource(p);function T(t){return null!=t&&e.isLength(t.length)&&!e.isFunction$1(t)}exports.getTag=e.baseGetTag,(s&&exports.getTag(new s(new ArrayBuffer(1)))!=g||e.Map&&exports.getTag(new e.Map)!=b||u&&exports.getTag(u.resolve())!=j||i&&exports.getTag(new i)!=f||p&&exports.getTag(new p)!=y)&&(exports.getTag=function(t){var r=e.baseGetTag(t),o="[object Object]"==r?t.constructor:void 0,n=o?e.toSource(o):"";if(n)switch(n){case l:return g;case x:return b;case d:return j;case v:return f;case A:return y}return r});var m="object"==typeof exports&&exports&&!exports.nodeType&&exports,h=m&&"object"==typeof module&&module&&!module.nodeType&&module,w=h&&h.exports===m?e.root.Buffer:void 0,O=(w?w.isBuffer:void 0)||function(){return!1},S={};function M(e){return function(t){return e(t)}}S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object Boolean]"]=S["[object DataView]"]=S["[object Date]"]=S["[object Error]"]=S["[object Function]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object WeakMap]"]=!1;var k="object"==typeof exports&&exports&&!exports.nodeType&&exports,B=k&&"object"==typeof module&&module&&!module.nodeType&&module,U=B&&B.exports===k&&e.freeGlobal.process,N=function(){try{var e=B&&B.require&&B.require("util").types;return e||U&&U.binding&&U.binding("util")}catch(t){}}(),P=N&&N.isTypedArray,D=P?M(P):function(t){return e.isObjectLike(t)&&e.isLength(t.length)&&!!S[e.baseGetTag(t)]},F=Object.prototype.hasOwnProperty;exports.baseKeys=a,exports.baseUnary=M,exports.isArrayLike=T,exports.isBuffer=O,exports.isEmpty=function(t){if(null==t)return!0;if(T(t)&&(e.isArray(t)||"string"==typeof t||"function"==typeof t.splice||O(t)||D(t)||e.isArguments(t)))return!t.length;var o=exports.getTag(t);if("[object Map]"==o||"[object Set]"==o)return!t.size;if(r(t))return!a(t).length;for(var n in t)if(F.call(t,n))return!1;return!0},exports.isPrototype=r,exports.isTypedArray=D,exports.nodeUtil=N,exports.overArg=o;
@@ -1 +0,0 @@
1
- const t=require("./api.es-B4qAAJKr.js"),e=require("./component-ZRZIt3ZW.js");exports.createPaymentMethodsService=function(){const n=e.createRequestService(),o=e.useConfig();return{getPaymentMethods:function({customerId:e,pagination:r,query:i}){const a=t.withPagination({customer_id:e,...i??{}},r),s=new URL(`${o.apiUrls.config}/portal/payment-methods`);return Object.entries(a).forEach(([t,e])=>{null!=e&&(Array.isArray(e)?e.forEach(e=>{s.searchParams.append(`${t}[]`,`${e}`)}):s.searchParams.append(t,`${e}`))}),n({url:s.toString(),isCollection:!0})},getPaymentMethodOptions:function({customerId:t,country:e,subscriptionId:r,amount:i}){return n({url:`${o.apiUrls.config}/portal/payment-method-options`,options:{method:"POST"},data:{...t&&{customer_id:t},...e&&{country:e},...r&&{pricing_plan_subscription_id:r},amount:i}})},tokenizePaymentMethod:function(t){return n({url:`${o.apiUrls.config}/portal/payment-methods/tokenize`,options:{method:"POST"},data:t})}}};
@@ -1 +0,0 @@
1
- const t=require("./_flatRest.es-dFffnTpX.js");function r(r,n,e,o){if(!t.isObject(r))return r;for(var u=-1,a=(n=t.castPath(n,r)).length,i=a-1,s=r;null!=s&&++u<a;){var c=t.toKey(n[u]),f=e;if("__proto__"===c||"constructor"===c||"prototype"===c)return r;if(u!=i){var l=s[c];void 0===(f=void 0)&&(f=t.isObject(l)?l:t.isIndex(n[u+1])?[]:{})}t.assignValue(s,c,f),s=s[c]}return r}function n(n,e){return function(n,e,o){for(var u=-1,a=e.length,i={};++u<a;){var s=e[u],c=t.baseGet(n,s);o(c,s)&&r(i,t.castPath(s,n),c)}return i}(n,e,function(r,e){return t.hasIn(n,e)})}var e=t.flatRest(function(t,r){return null==t?{}:n(t,r)});exports.pick=e;
@@ -1,45 +0,0 @@
1
- import { j as isObject, k as castPath, l as toKey, m as isIndex, o as assignValue, p as baseGet, q as hasIn, s as flatRest } from "./_flatRest.es-BHFPCqZh.mjs";
2
- function baseSet(object, path, value, customizer) {
3
- if (!isObject(object)) {
4
- return object;
5
- }
6
- path = castPath(path, object);
7
- var index = -1, length = path.length, lastIndex = length - 1, nested = object;
8
- while (nested != null && ++index < length) {
9
- var key = toKey(path[index]), newValue = value;
10
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
11
- return object;
12
- }
13
- if (index != lastIndex) {
14
- var objValue = nested[key];
15
- newValue = void 0;
16
- if (newValue === void 0) {
17
- newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
18
- }
19
- }
20
- assignValue(nested, key, newValue);
21
- nested = nested[key];
22
- }
23
- return object;
24
- }
25
- function basePickBy(object, paths, predicate) {
26
- var index = -1, length = paths.length, result = {};
27
- while (++index < length) {
28
- var path = paths[index], value = baseGet(object, path);
29
- if (predicate(value, path)) {
30
- baseSet(result, castPath(path, object), value);
31
- }
32
- }
33
- return result;
34
- }
35
- function basePick(object, paths) {
36
- return basePickBy(object, paths, function(value, path) {
37
- return hasIn(object, path);
38
- });
39
- }
40
- var pick = flatRest(function(object, paths) {
41
- return object == null ? {} : basePick(object, paths);
42
- });
43
- export {
44
- pick as p
45
- };
@@ -1 +0,0 @@
1
- const e=require("./components/PaymentMethodForm/PaymentMethodForm.cjs.js"),n=require("./screens/CustomerOverview/CustomerOverview.cjs.js"),o=require("./screens/Checkout/Checkout.cjs.js"),i=require("./screens/UpgradeSubscription/UpgradeSubscription.cjs.js"),t=require("./components/Invoice/Invoice.cjs.js"),r=require("./components/InvoiceDetails/InvoiceDetails.cjs.js"),s=require("./components/InvoicesList/InvoicesList.cjs.js"),c=require("./components/PaymentHistory/PaymentHistory.cjs.js"),m=require("./components/SubscriptionsList/SubscriptionsList.cjs.js"),u=require("./components/SubscriptionSchedules/SubscriptionSchedules.cjs.js"),l=require("./components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js"),a=require("./components/WalletBalances/WalletBalances.cjs.js"),p=require("./components/BillingInformation/BillingInformation.cjs.js"),d=require("./components/BillingInformationForm/BillingInformationForm.cjs.js"),f=require("./component-ZRZIt3ZW.js");require("vue");const v={"customer-overview":n.defineSolvimonCustomerOverview,checkout:o.defineSolvimonCheckout,"upgrade-subscription":i.defineSolvimonUpgradeSubscription},j={invoice:t.defineSolvimonInvoice,"invoice-details":r.defineSolvimonInvoiceDetails,"invoices-list":s.defineSolvimonInvoicesList,"payment-history":c.defineSolvimonPaymentHistory,"subscriptions-list":m.defineSolvimonSubscriptionsList,"subscription-schedules":u.defineSolvimonSubscriptionSchedules,"customer-payment-methods":l.defineSolvimonCustomerPaymentMethods,"wallet-balances":a.defineSolvimonWalletBalances,"billing-information":p.defineSolvimonBillingInformation,"billing-information-form":d.defineSolvimonBillingInformationForm,"payment-method-form":e.defineSolvimonPaymentMethodForm};function S(e,n){const o="screen"===n?(i=e,Object.hasOwn(v,i)&&v[e]):function(e){return Object.hasOwn(j,e)}(e)&&j[e];var i;if(!o)throw new Error(`Solvimon: unknown ${n} id "${e}". Registered ${n}s: ${Object.keys("screen"===n?v:j).join(", ")}.`);o()}function b(e,n,o,i){const t=function(e){if("string"==typeof e){const n=document.querySelector(e);if(!n)throw new Error(`Solvimon: container not found for selector "${e}"`);return n}return e}(e);S(n,o);const r=(s=n,f.getComponentName(s));var s;const c=document.createElement(r);return function(e,n){const o={};for(const[i,t]of Object.entries(n))void 0!==t&&(o[i]=t);Object.assign(e,o)}(c,i),t.appendChild(c),{unmount(){c.remove()}}}function h(e){const{container:n,...o}=e;return{container:n,props:Object.fromEntries(Object.entries(o))}}function g(e,n){return{...e,...n}}const y=["customer-overview","checkout","upgrade-subscription"],q=["invoice","invoice-details","invoices-list","payment-history","subscriptions-list","subscription-schedules","customer-payment-methods","wallet-balances","billing-information","billing-information-form","payment-method-form"];exports.createSolvimonCore=function(e={}){return{config:e,createComponent(n,o){const{container:i,props:t}=h(o);return b(i,n,"component",g(e,t)).unmount},createScreen(n,o){const{container:i,props:t}=h(o);return b(i,n,"screen",g(e,t)).unmount}}},exports.getRegisteredComponentIds=function(){return[...q]},exports.getRegisteredScreenIds=function(){return[...y]};