@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.
- package/README.md +124 -0
- package/dist/ApiStatus-CyNDp_op.mjs +9 -0
- package/dist/ApiStatus-oqvUEWJx.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs} +6 -6
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DGisvmez.js +1 -0
- package/dist/ContentWithAsideLayout-B5B8Kwaw.js +1 -0
- package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-DhfUkZZg.mjs} +10 -16
- 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
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs} +19 -9
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0vVUHuY.js +1 -0
- package/dist/PaymentHistoryBlock-BiiFJkpT.js +1 -0
- package/dist/PaymentHistoryBlock-D_B099M7.mjs +4 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs} +16 -13
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +1 -0
- package/dist/PaymentIntegrationForm-D1oJA9mC.js +1 -0
- package/dist/PaymentIntegrationForm-DNkjhqMF.mjs +4 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D37gDtY7.mjs} +95 -199
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D5bxFJ-p.js +1 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs} +5 -31
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js +1 -0
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +9 -6
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +1 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-AHw3iTfi.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs} +28 -22
- package/dist/adyen-B_QrYdaC.mjs +4 -0
- package/dist/adyen-Bwewy3HC.mjs +172 -0
- package/dist/adyen-R6aSZ0Yf.js +1 -0
- package/dist/adyen-mQEEOjgl.js +1 -0
- package/dist/adyen.css +1 -0
- package/dist/component-BOqPDAVk.js +1 -0
- package/dist/component-Djrf1L-Z.mjs +889 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +8 -9
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +14 -18
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +10 -10
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +70 -2673
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +10 -10
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +7 -8
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +10 -10
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +16 -38
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +17 -4826
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +11 -11
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +9 -9
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +6 -2
- package/dist/{customer-CJrpbGX4.mjs → customer-B31QzznT.mjs} +1 -1
- package/dist/{customer-CcQR-JIm.js → customer-hDxW1Dbp.js} +1 -1
- package/dist/en-US-CgPY97Vq.js +1 -0
- package/dist/en-US-N3CUCsVy.mjs +179 -0
- package/dist/index-CzL1ZcGi.mjs +85 -0
- package/dist/index-DIFK3mcJ.js +6 -0
- package/dist/index-DRdBmZ2-.js +1 -0
- package/dist/index-DyvRdSR7.mjs +9673 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -1
- package/dist/{invoices-CNK1Ushv.mjs → invoices-DIYPN2j_.mjs} +2 -15
- package/dist/invoices-DzkA1jDc.js +1 -0
- package/dist/nl-NL-B8U9b85I.mjs +197 -0
- package/dist/nl-NL-qMRaTRrM.js +1 -0
- package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-67b3UlTZ.mjs} +2 -2
- package/dist/paymentMethods-C_sdTkSF.js +1 -0
- package/dist/{payments-CLt0SExf.js → payments-DkHhTHto.js} +1 -1
- package/dist/{payments-CE9U7aKK.mjs → payments-Dq6R37Fz.mjs} +1 -1
- package/dist/registry-BkViv4tv.js +1 -0
- package/dist/{registry-B99ZnfEn.mjs → registry-Df_26rJy.mjs} +6 -4
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +632 -2538
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +23 -17
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
- package/dist/screens/PayInvoice/PayInvoice.es.js +458 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +147 -99
- package/dist/solvimon-web.css +1 -1
- package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-ClGIr_aS.mjs} +2 -2
- package/dist/subscriptions-jelITJcX.js +1 -0
- package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-BC57-Ufn.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-rw9kWeE0.js} +1 -1
- package/dist/{useCustomer--jycAz--.mjs → useCustomer-Ba9WRtuT.mjs} +2 -2
- package/dist/{useCustomer-PthyTFLl.js → useCustomer-CUcaeQn_.js} +1 -1
- package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-Cnzh2mAz.mjs} +3 -8
- package/dist/useIncrementalLoading-DoTTXM2Y.js +1 -0
- package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-BJwwDur7.mjs} +6 -12
- package/dist/useInvoiceData-D2jkdmlA.js +1 -0
- package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-CFzAxyae.mjs} +34 -267
- package/dist/useInvoicesList-CaBCGs4h.js +1 -0
- package/dist/{useLoadInitialData-Dm48tlSO.mjs → useLoadInitialData-5sgImpzc.mjs} +5 -0
- package/dist/useLoadInitialData-DjwRHcAH.js +1 -0
- package/dist/usePaymentMethodOptions-C2k4npCQ.mjs +26 -0
- package/dist/usePaymentMethodOptions-DYO6xr3-.js +1 -0
- package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-CRWbH48K.mjs} +2 -2
- package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-ryN_YohI.js} +1 -1
- package/dist/usePayments-Cw5PPEJa.mjs +36 -0
- package/dist/usePayments-DWXPGFvp.js +1 -0
- package/dist/usePortal-CxX4nrE4.js +1 -0
- package/dist/usePortal-cmE08vYs.mjs +12 -0
- package/dist/useService-Bb9r_sOQ.js +1 -0
- package/dist/useService-BsSEI8DZ.mjs +53 -0
- package/dist/useViewport-Bu0cyeSi.mjs +38 -0
- package/dist/useViewport-CKRY1CKR.js +1 -0
- package/dist/useWalletBalanceItems-CkDqmk36.mjs +109 -0
- package/dist/useWalletBalanceItems-CpZ1NWPr.js +1 -0
- package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
- package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
- package/dist/vendor-ui-5pJF5KBP.js +1 -0
- package/dist/vendor-ui-C0K3osvz.mjs +27645 -0
- package/package.json +20 -12
- package/dist/Alert.vue.es-DMPvSykx.js +0 -1
- package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
- package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
- package/dist/Amount.vue.es-h8wulbBG.js +0 -1
- package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
- package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
- package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
- package/dist/Button.vue.es-BC4_TItq.js +0 -1
- package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
- package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
- package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
- package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
- package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
- package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
- package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
- package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
- package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
- package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
- package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
- package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
- package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
- package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
- package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
- package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
- package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
- package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
- package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
- package/dist/Section.vue.es-BuzTXRLP.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
- package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
- package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
- package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
- package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
- package/dist/_flatRest.es-dFffnTpX.js +0 -1
- package/dist/adyen-51SvcyqV.mjs +0 -4
- package/dist/adyen-DZsyEXkw.js +0 -1
- package/dist/api.es-B4qAAJKr.js +0 -1
- package/dist/api.es-UkfpLiLL.mjs +0 -83
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/cloneDeep-Hs8Pp07F.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/cn.es-C7xoIs3C.js +0 -1
- package/dist/cn.es-tfxVlz02.mjs +0 -3191
- package/dist/component-ZRZIt3ZW.js +0 -1
- package/dist/component-dpA83LIN.mjs +0 -6569
- package/dist/countryData.es--zJAd6LA.mjs +0 -252
- package/dist/countryData.es-D3MFzU92.js +0 -1
- package/dist/customer.es-D42Md24r.js +0 -1
- package/dist/customer.es-LIW2YmLL.mjs +0 -30
- package/dist/formatting.es-9hM8aHSg.js +0 -1
- package/dist/formatting.es-D5H_ySFv.mjs +0 -68
- package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CI71bVGE.mjs +0 -2521
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-WLSPwi90.js +0 -1
- package/dist/index.es-BBJF2O2l.js +0 -1
- package/dist/index.es-LCAKs4tH.mjs +0 -438
- package/dist/invoices-3kVHsAXr.js +0 -1
- package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
- package/dist/isEmpty.es-Dycf-CD_.js +0 -1
- package/dist/paymentMethods-DZRf0WRl.js +0 -1
- package/dist/pick.es-BgDAfhAl.js +0 -1
- package/dist/pick.es-DdVOyp0Q.mjs +0 -45
- package/dist/registry-ClZ43bQn.js +0 -1
- package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
- package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
- package/dist/subscriptions-CS8HTxzC.js +0 -1
- package/dist/typeGuards.es-C4nR5FkL.js +0 -1
- package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
- package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
- package/dist/useInvoiceData-DvQO_nKz.js +0 -1
- package/dist/useInvoicesList-CHkwSNO9.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useService-B67YWAcN.js +0 -1
- package/dist/useService-DG_zedHV.mjs +0 -282
- package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
- package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as withExpand, s as serializeQueryParams, a as withPagination } from "./
|
|
2
|
-
import { u as useConfig, c as createRequestService } from "./component-
|
|
1
|
+
import { w as withExpand, s as serializeQueryParams, a as withPagination } from "./vendor-ui-C0K3osvz.mjs";
|
|
2
|
+
import { u as useConfig, c as createRequestService } from "./component-Djrf1L-Z.mjs";
|
|
3
3
|
const ENDPOINT = "/portal/pricing-plan-subscriptions";
|
|
4
4
|
function createSubscriptionsService() {
|
|
5
5
|
const config = useConfig();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=require("./vendor-ui-5pJF5KBP.js"),e=require("./component-BOqPDAVk.js"),r="/portal/pricing-plan-subscriptions";exports.createSubscriptionsService=function(){const n=e.useConfig(),_=e.createRequestService();return{getSubscription:function({id:e,expanded:c=!1}){const s=c?["pricing_plan_schedule_infos.id","pricing_plan_schedule_infos.pricing_plan_version_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_plan_id","pricing_plan_schedule_infos.pricing_plan_version.credit_types","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.product_category_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.product_ids","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.entitlements.feature_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.configs.conditions.meter_properties.id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.configs.wallet_grants.wallet_type_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.product_item_ids","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.product_items.usage_based.meter_value_calculation_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.product_items.usage_metric.meter_value_calculation.meter_value_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.product_items.usage_metric.meter_value_calculation.meter_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.product_items.usage_metric.meter_value_calculation.meter.meter_values.id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.product_items.usage_metric.meter_value_calculation.meter.meter_properties","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricings.items.product_items.usage_metric.meter_value_calculation.meter.meter_properties.id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.product_ids","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.configs.conditions.meter_properties.id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.configs.wallet_grants.wallet_type_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.product_item_ids","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.product_items.usage_based.meter_value_calculation_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.product_items.usage_metric.meter_value_calculation.meter_value_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.product_items.usage_metric.meter_value_calculation.meter_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.product_items.usage_metric.meter_value_calculation.meter.meter_values","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.product_items.usage_metric.meter_value_calculation.meter.meter_values.id","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.product_items.usage_metric.meter_value_calculation.meter.meter_properties","pricing_plan_schedule_infos.pricing_plan_version.pricing_categories.pricing_groups.pricings.items.product_items.usage_metric.meter_value_calculation.meter.meter_properties.id"]:[];return _({url:`${n.apiUrls.config}${r}/${e}${i.serializeQueryParams(i.withExpand({expandParams:s}))}`})},getActiveSubscriptions:function({customerId:e,pagination:c}){const s=c??{},p=i.withExpand({initialParams:{customer_id:e,statuses:["ACTIVE"],type:"BILLING"},expandParams:["pricing_plan_schedule_infos.pricing_plan_version_id","pricing_plan_schedule_infos.pricing_plan_version.pricing_plan_id"]}),t=i.serializeQueryParams(i.withPagination(p,s));return _({url:`${n.apiUrls.config}${r}${t}`,isCollection:!0})}}};
|
package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-BC57-Ufn.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject } from "vue";
|
|
2
|
-
import { A as ACTION_DISPATCHER_PROVIDER_INJECTION_KEY } from "./component-
|
|
2
|
+
import { A as ACTION_DISPATCHER_PROVIDER_INJECTION_KEY } from "./component-Djrf1L-Z.mjs";
|
|
3
3
|
function useActionDispatchProvider() {
|
|
4
4
|
const dispatchAction = inject(ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);
|
|
5
5
|
if (!dispatchAction) {
|
package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-rw9kWeE0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("vue"),i=require("./component-
|
|
1
|
+
const t=require("vue"),i=require("./component-BOqPDAVk.js");exports.useActionDispatchProvider=function(){const o=t.inject(i.ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);if(!o)throw new Error("dispatchAction is not provided");return{dispatchAction:o}};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref } from "vue";
|
|
2
|
-
import { c as createCustomerService } from "./customer-
|
|
3
|
-
import { u as useService } from "./useService-
|
|
2
|
+
import { c as createCustomerService } from "./customer-B31QzznT.mjs";
|
|
3
|
+
import { u as useService } from "./useService-BsSEI8DZ.mjs";
|
|
4
4
|
function useCustomer({ customerId }) {
|
|
5
5
|
const { getCustomer, updateCustomer } = createCustomerService();
|
|
6
6
|
const customer = ref();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),r=require("./customer-
|
|
1
|
+
const e=require("vue"),r=require("./customer-hDxW1Dbp.js"),t=require("./useService-Bb9r_sOQ.js");exports.useCustomer=function({customerId:u}){const{getCustomer:s,updateCustomer:c}=r.createCustomerService(),a=e.ref(),{data:o,...i}=t.useService({service:async()=>{const e=await s(u);return a.value=e,e}}),{data:n,...v}=t.useService({service:async e=>{const r=await c(u,e);return a.value=r,r}});return{customer:a,get:i,update:v}};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { A as ApiStatus } from "./
|
|
2
|
-
import { g as getPaginatedFullList } from "./
|
|
3
|
-
import "./component-dpA83LIN.mjs";
|
|
1
|
+
import { A as ApiStatus } from "./ApiStatus-CyNDp_op.mjs";
|
|
2
|
+
import { g as getPaginatedFullList, i as isApiSuccessCollectionResponse } from "./vendor-ui-C0K3osvz.mjs";
|
|
4
3
|
import { shallowRef, ref, computed } from "vue";
|
|
5
|
-
import { c as cloneDeep } from "./cloneDeep-sm9cY-u2.mjs";
|
|
6
|
-
function isApiSuccessCollectionResponse(response) {
|
|
7
|
-
return "data" in response && "links" in response;
|
|
8
|
-
}
|
|
9
4
|
function toError(error) {
|
|
10
5
|
return error instanceof Error ? error : new Error("Something went wrong while fetching data.");
|
|
11
6
|
}
|
|
@@ -56,7 +51,7 @@ function useIncrementalLoading({
|
|
|
56
51
|
const fetchMore = async () => {
|
|
57
52
|
return await loadPage(page.value + 1);
|
|
58
53
|
};
|
|
59
|
-
const nonMutableItems = computed(() =>
|
|
54
|
+
const nonMutableItems = computed(() => structuredClone(items.value));
|
|
60
55
|
const fetchInitial = async () => {
|
|
61
56
|
return await loadPage(1);
|
|
62
57
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./ApiStatus-oqvUEWJx.js"),a=require("./vendor-ui-5pJF5KBP.js"),t=require("vue");exports.useIncrementalLoading=function({initialData:i=[],service:n}){const u=t.shallowRef(i),s=t.ref(e.ApiStatus.Initial),l=t.ref(null),r=t.ref(1),o=t.ref(!1),c=t.computed(()=>s.value===e.ApiStatus.Loading),v=async t=>{var i;if(!c.value)try{l.value=null,s.value=e.ApiStatus.Loading;const c=await n(t);if(!a.isApiSuccessCollectionResponse(c))return void(s.value=e.ApiStatus.Done);o.value=!!(null==(i=c.links)?void 0:i.next),u.value=[...u.value,...c.data],s.value=e.ApiStatus.Done,r.value=t}catch(v){l.value=function(e){return e instanceof Error?e:new Error("Something went wrong while fetching data.")}(v),s.value=e.ApiStatus.Failed}};return{items:t.computed(()=>structuredClone(u.value)),error:l,fetchInitial:async()=>await v(1),fetchMore:async()=>await v(r.value+1),fetchAll:async()=>{l.value=null,s.value=e.ApiStatus.Loading;const t=await a.getPaginatedFullList(async t=>{const i=await n(t);if(!a.isApiSuccessCollectionResponse(i))throw s.value=e.ApiStatus.Failed,new Error("message"in i?i.message:"Request failed");return i});u.value=t.data,s.value=e.ApiStatus.Done},isPending:c,hasNextBatch:o}};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as createInvoicesService } from "./invoices-
|
|
2
|
-
import { c as createPaymentsService } from "./payments-
|
|
1
|
+
import { c as createInvoicesService } from "./invoices-DIYPN2j_.mjs";
|
|
2
|
+
import { c as createPaymentsService } from "./payments-Dq6R37Fz.mjs";
|
|
3
3
|
import { ref, onMounted } from "vue";
|
|
4
|
-
import {
|
|
4
|
+
import { u as useWatchDebounced } from "./useWatchDebounced-D1xuIX6_.mjs";
|
|
5
5
|
const useData = ({
|
|
6
6
|
getData,
|
|
7
7
|
onError,
|
|
@@ -19,17 +19,11 @@ const useData = ({
|
|
|
19
19
|
isPending.value = false;
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
+
if (watchValue) {
|
|
23
|
+
useWatchDebounced(watchValue, () => void handleGetData(), { debounce });
|
|
24
|
+
}
|
|
22
25
|
onMounted(async () => {
|
|
23
26
|
void handleGetData();
|
|
24
|
-
if (watchValue) {
|
|
25
|
-
watchDebounced(
|
|
26
|
-
watchValue,
|
|
27
|
-
() => {
|
|
28
|
-
void handleGetData();
|
|
29
|
-
},
|
|
30
|
-
{ debounce }
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
27
|
});
|
|
34
28
|
return { data, isPending };
|
|
35
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./invoices-DzkA1jDc.js"),t=require("./payments-DkHhTHto.js"),n=require("vue"),a=require("./useWatchDebounced-2ZLnfgvG.js");exports.useInvoiceData=function(c){const{getInvoice:r}=e.createInvoicesService(),{getPayments:s}=t.createPaymentsService();return(({getData:e,onError:t,watchValue:c,debounce:r=200})=>{const s=n.ref(),u=n.ref(!0),i=async()=>{try{s.value=await e(c)}catch(n){null==t||t(n)}finally{u.value=!1}};return c&&a.useWatchDebounced(c,()=>{i()},{debounce:r}),n.onMounted(async()=>{i()}),{data:s,isPending:u}})({getData:async()=>{const[e,t]=await Promise.all([r(c),s(c)]);return{invoice:e,paymentAttempts:t}}})};
|
|
@@ -1,249 +1,12 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import { _ as _sfc_main$
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { _ as _sfc_main$b, T as TooltipContent, a as _sfc_main$c } from "./TooltipParagraph.vue.es-DVJLF9Kv.mjs";
|
|
8
|
-
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-eO2qFPGv.mjs";
|
|
9
|
-
import { u as useIncrementalLoading } from "./useIncrementalLoading-CcnL3flF.mjs";
|
|
10
|
-
import { c as createInvoicesService } from "./invoices-CNK1Ushv.mjs";
|
|
11
|
-
const _hoisted_1$5 = { class: "relative" };
|
|
12
|
-
const _hoisted_2$2 = { class: "w-full text-sm text-left text-gray-500" };
|
|
13
|
-
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
14
|
-
__name: "Table",
|
|
15
|
-
props: {
|
|
16
|
-
striped: { type: Boolean },
|
|
17
|
-
stripeClass: {},
|
|
18
|
-
hoverable: { type: Boolean },
|
|
19
|
-
sorting: {},
|
|
20
|
-
rounded: { type: Boolean },
|
|
21
|
-
noBorder: { type: Boolean }
|
|
22
|
-
},
|
|
23
|
-
emits: ["sort"],
|
|
24
|
-
setup(__props, { emit: __emit }) {
|
|
25
|
-
const props = __props;
|
|
26
|
-
const emit = __emit;
|
|
27
|
-
provide("striped", props.striped);
|
|
28
|
-
provide("stripeClass", props.stripeClass);
|
|
29
|
-
provide("hoverable", props.hoverable);
|
|
30
|
-
provide("sorting", props.sorting);
|
|
31
|
-
provide("emit", emit);
|
|
32
|
-
provide("rounded", props.rounded ?? false);
|
|
33
|
-
provide("noBorder", props.noBorder ?? false);
|
|
34
|
-
return (_ctx, _cache) => {
|
|
35
|
-
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
36
|
-
createElementVNode("table", _hoisted_2$2, [
|
|
37
|
-
renderSlot(_ctx.$slots, "default")
|
|
38
|
-
])
|
|
39
|
-
]);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
const _hoisted_1$4 = {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "transition-opacity transition-duration-700 shadow-left absolute z-10 pointer-events-none w-3.5 h-full shadow-none top-0 bg-transparent right-0 translate-x-3.5 bg-gradient-to-r from-black/[.06] to-transparent [.scroll-shadow-left_&]:opacity-100 opacity-0"
|
|
46
|
-
};
|
|
47
|
-
const _hoisted_2$1 = {
|
|
48
|
-
key: 1,
|
|
49
|
-
class: "transition-opacity transition-duration-700 shadow-right absolute z-10 pointer-events-none w-3.5 h-full shadow-none top-0 bg-transparent left-0 -translate-x-3.5 bg-gradient-to-l from-black/[.06] to-transparent [.scroll-shadow-right_&]:opacity-100 opacity-0"
|
|
50
|
-
};
|
|
51
|
-
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
52
|
-
__name: "TableCellScrollShadow",
|
|
53
|
-
props: {
|
|
54
|
-
elRef: {}
|
|
55
|
-
},
|
|
56
|
-
setup(__props) {
|
|
57
|
-
const props = __props;
|
|
58
|
-
const isFirst = ref(false);
|
|
59
|
-
const isLast = ref(false);
|
|
60
|
-
onMounted(() => {
|
|
61
|
-
var _a;
|
|
62
|
-
if (((_a = props.elRef) == null ? void 0 : _a.value) && props.elRef.value.parentElement) {
|
|
63
|
-
const siblings = Array.from(props.elRef.value.parentElement.children);
|
|
64
|
-
isFirst.value = siblings[0] === props.elRef.value;
|
|
65
|
-
isLast.value = siblings[siblings.length - 1] === props.elRef.value;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
return (_ctx, _cache) => {
|
|
69
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
70
|
-
isFirst.value ? (openBlock(), createElementBlock("div", _hoisted_1$4)) : createCommentVNode("", true),
|
|
71
|
-
isLast.value ? (openBlock(), createElementBlock("div", _hoisted_2$1)) : createCommentVNode("", true)
|
|
72
|
-
], 64);
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
77
|
-
__name: "TableCell",
|
|
78
|
-
props: {
|
|
79
|
-
hasPadding: { type: Boolean, default: false }
|
|
80
|
-
},
|
|
81
|
-
setup(__props) {
|
|
82
|
-
const stripeClass = inject("stripeClass") ?? "group-odd:bg-gray-50";
|
|
83
|
-
const rounded = inject("rounded") ?? false;
|
|
84
|
-
const isHoverable = inject("hoverable");
|
|
85
|
-
const isStriped = inject("striped");
|
|
86
|
-
const tdLinkSlot = inject("tdLinkSlot");
|
|
87
|
-
const props = __props;
|
|
88
|
-
const el = ref();
|
|
89
|
-
const classes = computed(() => {
|
|
90
|
-
let classes2 = "relative transition ease-in-out px-4 py-3 text-gray-800 first:whitespace-nowrap leading-none";
|
|
91
|
-
if (isStriped) classes2 += ` group-even:bg-white ${stripeClass}`;
|
|
92
|
-
if (rounded) classes2 += " first-of-type:rounded-l last-of-type:rounded-r overflow-clip";
|
|
93
|
-
if (!props.hasPadding) classes2 += " first:pl-0";
|
|
94
|
-
if (isHoverable) classes2 += " group-hover:bg-gray-50 cursor-pointer";
|
|
95
|
-
return classes2;
|
|
96
|
-
});
|
|
97
|
-
return (_ctx, _cache) => {
|
|
98
|
-
return openBlock(), createElementBlock("td", {
|
|
99
|
-
ref_key: "el",
|
|
100
|
-
ref: el,
|
|
101
|
-
class: normalizeClass(classes.value)
|
|
102
|
-
}, [
|
|
103
|
-
el.value ? (openBlock(), createBlock(_sfc_main$8, {
|
|
104
|
-
key: 0,
|
|
105
|
-
"el-ref": toRef(el.value)
|
|
106
|
-
}, null, 8, ["el-ref"])) : createCommentVNode("", true),
|
|
107
|
-
unref(tdLinkSlot) ? (openBlock(), createBlock(resolveDynamicComponent(unref(tdLinkSlot)), { key: 1 })) : createCommentVNode("", true),
|
|
108
|
-
renderSlot(_ctx.$slots, "default")
|
|
109
|
-
], 2);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
const _hoisted_1$3 = ["colspan", "tabindex"];
|
|
114
|
-
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
115
|
-
__name: "TableHeadCell",
|
|
116
|
-
props: {
|
|
117
|
-
colspan: {},
|
|
118
|
-
columnName: {},
|
|
119
|
-
sortable: { type: Boolean },
|
|
120
|
-
hasPadding: { type: Boolean, default: false },
|
|
121
|
-
tooltip: {},
|
|
122
|
-
fixedWidth: {}
|
|
123
|
-
},
|
|
124
|
-
emits: ["sort"],
|
|
125
|
-
setup(__props, { emit: __emit }) {
|
|
126
|
-
const emit = __emit;
|
|
127
|
-
const sorting = inject("sorting");
|
|
128
|
-
const props = __props;
|
|
129
|
-
const el = ref();
|
|
130
|
-
const sorted = computed(() => {
|
|
131
|
-
if (!props.sortable || !sorting) return false;
|
|
132
|
-
return sorting.columnName === props.columnName ? sorting == null ? void 0 : sorting.direction : false;
|
|
133
|
-
});
|
|
134
|
-
const handleClick = () => {
|
|
135
|
-
if (!props.sortable || !sorting) return;
|
|
136
|
-
if (props.columnName) {
|
|
137
|
-
emit("sort", props.columnName);
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
return (_ctx, _cache) => {
|
|
141
|
-
return openBlock(), createElementBlock("th", {
|
|
142
|
-
ref_key: "el",
|
|
143
|
-
ref: el,
|
|
144
|
-
style: normalizeStyle(__props.fixedWidth ? { "--col-w": `${__props.fixedWidth}px` } : void 0),
|
|
145
|
-
class: normalizeClass([[
|
|
146
|
-
{ "cursor-pointer": __props.sortable, "first:pl-0": !__props.hasPadding },
|
|
147
|
-
__props.fixedWidth ? ["min-w-[var(--col-w)]"] : null
|
|
148
|
-
], "relative px-4 py-2 font-medium text-xs whitespace-nowrap select-none"]),
|
|
149
|
-
colspan: __props.colspan,
|
|
150
|
-
tabindex: __props.sortable ? 0 : -1,
|
|
151
|
-
scope: "col",
|
|
152
|
-
onClick: handleClick
|
|
153
|
-
}, [
|
|
154
|
-
el.value ? (openBlock(), createBlock(_sfc_main$8, {
|
|
155
|
-
key: 0,
|
|
156
|
-
"el-ref": toRef(el.value)
|
|
157
|
-
}, null, 8, ["el-ref"])) : createCommentVNode("", true),
|
|
158
|
-
createElementVNode("span", {
|
|
159
|
-
class: normalizeClass({ "text-blue-700": sorted.value })
|
|
160
|
-
}, [
|
|
161
|
-
renderSlot(_ctx.$slots, "default")
|
|
162
|
-
], 2),
|
|
163
|
-
__props.sortable ? (openBlock(), createBlock(_sfc_main$a, {
|
|
164
|
-
key: 1,
|
|
165
|
-
icon: sorted.value && sorted.value === "desc" ? "north" : "south",
|
|
166
|
-
class: normalizeClass([{ "text-blue-700": sorted.value }, "text-sm"]),
|
|
167
|
-
size: "2xs"
|
|
168
|
-
}, null, 8, ["icon", "class"])) : createCommentVNode("", true),
|
|
169
|
-
__props.tooltip ? (openBlock(), createBlock(_sfc_main$b, {
|
|
170
|
-
key: 2,
|
|
171
|
-
variant: "outline"
|
|
172
|
-
}, {
|
|
173
|
-
default: withCtx(() => [
|
|
174
|
-
createVNode(_sfc_main$a, {
|
|
175
|
-
icon: "help",
|
|
176
|
-
size: "xs",
|
|
177
|
-
class: "rounded drop-shadow-sm hover:bg-gray-50 hover:cursor-default -mt-0.5 ml-0.5"
|
|
178
|
-
})
|
|
179
|
-
]),
|
|
180
|
-
tooltip: withCtx(() => [
|
|
181
|
-
createVNode(TooltipContent, null, {
|
|
182
|
-
default: withCtx(() => [
|
|
183
|
-
createVNode(_sfc_main$c, null, {
|
|
184
|
-
default: withCtx(() => [
|
|
185
|
-
createTextVNode(toDisplayString(__props.tooltip), 1)
|
|
186
|
-
]),
|
|
187
|
-
_: 1
|
|
188
|
-
})
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
})
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
})) : createCommentVNode("", true)
|
|
195
|
-
], 14, _hoisted_1$3);
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
200
|
-
__name: "TableRow",
|
|
201
|
-
props: {
|
|
202
|
-
backgroundClass: {}
|
|
203
|
-
},
|
|
204
|
-
setup(__props) {
|
|
205
|
-
const slot = useSlots();
|
|
206
|
-
provide("tdLinkSlot", slot.link);
|
|
207
|
-
const noBorder = inject("noBorder");
|
|
208
|
-
return (_ctx, _cache) => {
|
|
209
|
-
return openBlock(), createElementBlock("tr", {
|
|
210
|
-
class: normalizeClass(["group rounded-md", {
|
|
211
|
-
"bg-white": !__props.backgroundClass,
|
|
212
|
-
"border-y border-gray-200": !unref(noBorder)
|
|
213
|
-
}])
|
|
214
|
-
}, [
|
|
215
|
-
renderSlot(_ctx.$slots, "default")
|
|
216
|
-
], 2);
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
const _sfc_main$4 = {};
|
|
221
|
-
function _sfc_render$2(_ctx, _cache) {
|
|
222
|
-
return openBlock(), createElementBlock("tbody", null, [
|
|
223
|
-
renderSlot(_ctx.$slots, "default")
|
|
224
|
-
]);
|
|
225
|
-
}
|
|
226
|
-
const TableBody = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$2]]);
|
|
227
|
-
const _sfc_main$3 = {};
|
|
228
|
-
const _hoisted_1$2 = { class: "bg-white" };
|
|
229
|
-
function _sfc_render$1(_ctx, _cache) {
|
|
230
|
-
return openBlock(), createElementBlock("thead", _hoisted_1$2, [
|
|
231
|
-
renderSlot(_ctx.$slots, "default")
|
|
232
|
-
]);
|
|
233
|
-
}
|
|
234
|
-
const TableHead = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$1]]);
|
|
235
|
-
const _sfc_main$2 = {};
|
|
236
|
-
const _hoisted_1$1 = { class: "bg-white" };
|
|
237
|
-
function _sfc_render(_ctx, _cache) {
|
|
238
|
-
return openBlock(), createElementBlock("tr", _hoisted_1$1, [
|
|
239
|
-
renderSlot(_ctx.$slots, "default")
|
|
240
|
-
]);
|
|
241
|
-
}
|
|
242
|
-
const TableHeadRow = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render]]);
|
|
243
|
-
const _hoisted_1 = { class: "grid-cols-1 gap-4" };
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, Fragment, renderList, createBlock, createSlots, createElementVNode, withModifiers, createCommentVNode } from "vue";
|
|
2
|
+
import { u as useIntl, m as _sfc_main$2, T as TableHead, n as TableHeadRow, o as _sfc_main$3, p as TableBody, q as _sfc_main$4, r as _sfc_main$5, _ as _sfc_main$6, t as _sfc_main$7, f as _sfc_main$8, e as _sfc_main$9, b as _sfc_main$a } from "./vendor-ui-C0K3osvz.mjs";
|
|
3
|
+
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BC57-Ufn.mjs";
|
|
4
|
+
import { u as useIncrementalLoading } from "./useIncrementalLoading-Cnzh2mAz.mjs";
|
|
5
|
+
import { c as createInvoicesService } from "./invoices-DIYPN2j_.mjs";
|
|
6
|
+
const _hoisted_1 = { class: "sv-table sv-invoices-list__table grid-cols-1 gap-4" };
|
|
244
7
|
const _hoisted_2 = ["onClick"];
|
|
245
8
|
const _hoisted_3 = { class: "flex flex-col" };
|
|
246
|
-
const _hoisted_4 = { class: "mt-2 flex items-center justify-center" };
|
|
9
|
+
const _hoisted_4 = { class: "sv-invoices-list__load-more mt-2 flex items-center justify-center" };
|
|
247
10
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
248
11
|
__name: "InvoiceTable",
|
|
249
12
|
props: {
|
|
@@ -261,7 +24,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
261
24
|
const showLoadMoreButton = computed(() => props.hasMoreItems);
|
|
262
25
|
return (_ctx, _cache) => {
|
|
263
26
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
264
|
-
createVNode(unref(_sfc_main$
|
|
27
|
+
createVNode(unref(_sfc_main$2), {
|
|
265
28
|
striped: "",
|
|
266
29
|
"no-border": "",
|
|
267
30
|
rounded: "",
|
|
@@ -271,9 +34,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
271
34
|
default: withCtx(() => [
|
|
272
35
|
createVNode(unref(TableHead), null, {
|
|
273
36
|
default: withCtx(() => [
|
|
274
|
-
createVNode(unref(TableHeadRow),
|
|
37
|
+
createVNode(unref(TableHeadRow), { class: "sv-table__head" }, {
|
|
275
38
|
default: withCtx(() => [
|
|
276
|
-
createVNode(unref(_sfc_main$
|
|
39
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--invoice" }, {
|
|
277
40
|
default: withCtx(() => [
|
|
278
41
|
createTextVNode(toDisplayString(unref($t)({
|
|
279
42
|
defaultMessage: "Invoice",
|
|
@@ -283,7 +46,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
283
46
|
]),
|
|
284
47
|
_: 1
|
|
285
48
|
}),
|
|
286
|
-
createVNode(unref(_sfc_main$
|
|
49
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--date hidden md:table-cell" }, {
|
|
287
50
|
default: withCtx(() => [
|
|
288
51
|
createTextVNode(toDisplayString(unref($t)({
|
|
289
52
|
defaultMessage: "Date",
|
|
@@ -293,7 +56,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
293
56
|
]),
|
|
294
57
|
_: 1
|
|
295
58
|
}),
|
|
296
|
-
createVNode(unref(_sfc_main$
|
|
59
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--amount" }, {
|
|
297
60
|
default: withCtx(() => [
|
|
298
61
|
createTextVNode(toDisplayString(unref($t)({
|
|
299
62
|
defaultMessage: "Amount",
|
|
@@ -303,7 +66,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
303
66
|
]),
|
|
304
67
|
_: 1
|
|
305
68
|
}),
|
|
306
|
-
createVNode(unref(_sfc_main$
|
|
69
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--status text-right" }, {
|
|
307
70
|
default: withCtx(() => [
|
|
308
71
|
createTextVNode(toDisplayString(unref($t)({
|
|
309
72
|
defaultMessage: "Status",
|
|
@@ -322,17 +85,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
322
85
|
createVNode(unref(TableBody), null, {
|
|
323
86
|
default: withCtx(() => [
|
|
324
87
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.invoices, (invoice) => {
|
|
325
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
326
|
-
key: invoice.id
|
|
88
|
+
return openBlock(), createBlock(unref(_sfc_main$4), {
|
|
89
|
+
key: invoice.id,
|
|
90
|
+
class: "sv-table__row sv-invoices-list__row"
|
|
327
91
|
}, createSlots({
|
|
328
92
|
default: withCtx(() => [
|
|
329
|
-
createVNode(unref(_sfc_main$
|
|
93
|
+
createVNode(unref(_sfc_main$5), {
|
|
330
94
|
"has-padding": "",
|
|
331
|
-
class: "h-14"
|
|
95
|
+
class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--invoice h-14"
|
|
332
96
|
}, {
|
|
333
97
|
default: withCtx(() => [
|
|
334
98
|
createElementVNode("div", _hoisted_3, [
|
|
335
|
-
createVNode(unref(_sfc_main$
|
|
99
|
+
createVNode(unref(_sfc_main$6), {
|
|
336
100
|
tag: "span",
|
|
337
101
|
variant: "body-sm",
|
|
338
102
|
class: "md:hidden"
|
|
@@ -347,7 +111,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
347
111
|
]),
|
|
348
112
|
_: 2
|
|
349
113
|
}, 1024),
|
|
350
|
-
createVNode(unref(_sfc_main$
|
|
114
|
+
createVNode(unref(_sfc_main$6), {
|
|
351
115
|
tag: "span",
|
|
352
116
|
variant: "body-xs",
|
|
353
117
|
shade: "lighter"
|
|
@@ -361,7 +125,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
361
125
|
]),
|
|
362
126
|
_: 2
|
|
363
127
|
}, 1024),
|
|
364
|
-
createVNode(unref(_sfc_main$
|
|
128
|
+
createVNode(unref(_sfc_main$5), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--date hidden h-14 md:table-cell" }, {
|
|
365
129
|
default: withCtx(() => [
|
|
366
130
|
createTextVNode(toDisplayString(unref(formatDate)({
|
|
367
131
|
date: invoice.invoice_date,
|
|
@@ -372,14 +136,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
372
136
|
]),
|
|
373
137
|
_: 2
|
|
374
138
|
}, 1024),
|
|
375
|
-
createVNode(unref(_sfc_main$
|
|
139
|
+
createVNode(unref(_sfc_main$5), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--amount h-14" }, {
|
|
376
140
|
default: withCtx(() => [
|
|
377
|
-
createVNode(unref(_sfc_main$
|
|
141
|
+
createVNode(unref(_sfc_main$6), {
|
|
378
142
|
tag: "span",
|
|
379
143
|
weight: "semibold"
|
|
380
144
|
}, {
|
|
381
145
|
default: withCtx(() => [
|
|
382
|
-
createVNode(unref(_sfc_main$
|
|
146
|
+
createVNode(unref(_sfc_main$7), {
|
|
383
147
|
value: invoice.invoice_amount_including_tax
|
|
384
148
|
}, null, 8, ["value"])
|
|
385
149
|
]),
|
|
@@ -388,9 +152,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
388
152
|
]),
|
|
389
153
|
_: 2
|
|
390
154
|
}, 1024),
|
|
391
|
-
createVNode(unref(_sfc_main$
|
|
155
|
+
createVNode(unref(_sfc_main$5), { class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--status h-14 text-right" }, {
|
|
392
156
|
default: withCtx(() => [
|
|
393
|
-
invoice.paid ? (openBlock(), createBlock(unref(_sfc_main$
|
|
157
|
+
invoice.paid ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
394
158
|
key: 0,
|
|
395
159
|
color: "green"
|
|
396
160
|
}, {
|
|
@@ -402,11 +166,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
402
166
|
})), 1)
|
|
403
167
|
]),
|
|
404
168
|
_: 1
|
|
405
|
-
})) : showPayButton.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
169
|
+
})) : showPayButton.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
406
170
|
key: 1,
|
|
407
171
|
variant: "outline",
|
|
408
172
|
color: "gray",
|
|
409
173
|
size: "sm",
|
|
174
|
+
class: "sv-action sv-action--secondary sv-invoices-list__pay",
|
|
410
175
|
type: "button",
|
|
411
176
|
onClick: withModifiers(($event) => _ctx.$emit("pay-invoice", { invoiceId: invoice.id }), ["stop"])
|
|
412
177
|
}, {
|
|
@@ -430,7 +195,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
430
195
|
fn: withCtx(() => [
|
|
431
196
|
createElementVNode("button", {
|
|
432
197
|
type: "button",
|
|
433
|
-
class: "absolute inset-0 h-full w-full",
|
|
198
|
+
class: "sv-invoices-list__row-action absolute inset-0 h-full w-full",
|
|
434
199
|
onClick: ($event) => _ctx.$emit("view-invoice", { invoiceId: invoice.id })
|
|
435
200
|
}, null, 8, _hoisted_2)
|
|
436
201
|
]),
|
|
@@ -445,12 +210,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
445
210
|
_: 1
|
|
446
211
|
}),
|
|
447
212
|
createElementVNode("div", _hoisted_4, [
|
|
448
|
-
showLoadMoreButton.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
213
|
+
showLoadMoreButton.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
449
214
|
key: 0,
|
|
450
215
|
variant: "outline",
|
|
451
216
|
color: "gray",
|
|
452
217
|
size: "sm",
|
|
453
|
-
class: "w-full",
|
|
218
|
+
class: "sv-action sv-action--secondary sv-action--full-width w-full",
|
|
454
219
|
loading: __props.isLoading,
|
|
455
220
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("load-more"))
|
|
456
221
|
}, {
|
|
@@ -488,7 +253,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
488
253
|
const { $t } = useIntl();
|
|
489
254
|
const { dispatchAction } = useActionDispatchProvider();
|
|
490
255
|
return (_ctx, _cache) => {
|
|
491
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
256
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
257
|
+
class: "sv-invoices-list sv-root sv-component",
|
|
492
258
|
"no-border": "",
|
|
493
259
|
"no-spacing": "",
|
|
494
260
|
"content-background": "none",
|
|
@@ -500,6 +266,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
500
266
|
}, {
|
|
501
267
|
default: withCtx(() => [
|
|
502
268
|
createVNode(_sfc_main$1, {
|
|
269
|
+
class: "sv-invoices-list__table",
|
|
503
270
|
configuration: __props.configuration,
|
|
504
271
|
"has-more-items": __props.hasMoreItems,
|
|
505
272
|
invoices: __props.invoices,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./vendor-ui-5pJF5KBP.js"),i=require("./useActionDispatchProvider-rw9kWeE0.js"),o=require("./useIncrementalLoading-DoTTXM2Y.js"),a=require("./invoices-DzkA1jDc.js"),n={class:"sv-table sv-invoices-list__table grid-cols-1 gap-4"},s=["onClick"],c={class:"flex flex-col"},l={class:"sv-invoices-list__load-more mt-2 flex items-center justify-center"},r=e.defineComponent({__name:"InvoiceTable",props:{invoices:{type:Array},isLoading:{type:Boolean},hasMoreItems:{type:Boolean},configuration:{type:Object}},emits:["view-invoice","pay-invoice","load-more"],setup(i){const o=i,{formatDate:a,$t:r}=t.useIntl(),d=e.computed(()=>o.configuration.showPayButton),u=e.computed(()=>o.configuration.showViewButton),_=e.computed(()=>o.hasMoreItems);return(o,v)=>(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(e.unref(t._sfc_main$7),{striped:"","no-border":"",rounded:"",hoverable:"","stripe-class":"group-odd:bg-gray-50/50"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.TableHead),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.TableHeadRow),{class:"sv-table__head"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$8),{class:"sv-table__cell sv-invoices-list__cell--invoice"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Invoice",description:"The title of the invoice number header column of the invoice table",id:"invoice_table.header.invoice_number"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$8),{class:"sv-table__cell sv-invoices-list__cell--date hidden md:table-cell"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Date",description:"The title of the invoice date header column of the invoice table",id:"invoice_table.header.date"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$8),{class:"sv-table__cell sv-invoices-list__cell--amount"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Amount",description:"The title of the invoice amount header column of the invoice table",id:"invoice_table.header.amount"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$8),{class:"sv-table__cell sv-invoices-list__cell--status text-right"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Status",description:"The title of the invoice status header column of the invoice table",id:"invoice_table.header.status"})),1)]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(t.TableBody),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.invoices,i=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$9),{key:i.id,class:"sv-table__row sv-invoices-list__row"},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$10),{"has-padding":"",class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--invoice h-14"},{default:e.withCtx(()=>[e.createElementVNode("div",c,[e.createVNode(e.unref(t._sfc_main),{tag:"span",variant:"body-sm",class:"md:hidden"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:i.invoice_date,format:"date",offsetType:"offsetted",timezone:i.customer.timezone})),1)]),_:2},1024),e.createVNode(e.unref(t._sfc_main),{tag:"span",variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.invoice_number),1)]),_:2},1024)])]),_:2},1024),e.createVNode(e.unref(t._sfc_main$10),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--date hidden h-14 md:table-cell"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:i.invoice_date,format:"date",offsetType:"offsetted",timezone:i.customer.timezone})),1)]),_:2},1024),e.createVNode(e.unref(t._sfc_main$10),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--amount h-14"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main),{tag:"span",weight:"semibold"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$11),{value:i.invoice_amount_including_tax},null,8,["value"])]),_:2},1024)]),_:2},1024),e.createVNode(e.unref(t._sfc_main$10),{class:"sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--status h-14 text-right"},{default:e.withCtx(()=>[i.paid?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$4),{key:0,color:"green"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Paid",description:"The label of the chip for paid invoices",id:"invoice_table.chip.paid"})),1)]),_:1})):d.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:1,variant:"outline",color:"gray",size:"sm",class:"sv-action sv-action--secondary sv-invoices-list__pay",type:"button",onClick:e.withModifiers(e=>o.$emit("pay-invoice",{invoiceId:i.id}),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Pay",description:"The label for the pay invoice button",id:"customer.invoice_table.pay_invoice_button.label"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:2},1024)]),_:2},[u.value?{name:"link",fn:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"sv-invoices-list__row-action absolute inset-0 h-full w-full",onClick:e=>o.$emit("view-invoice",{invoiceId:i.id})},null,8,s)]),key:"0"}:void 0]),1024))),128))]),_:1})]),_:1}),e.createElementVNode("div",l,[_.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,variant:"outline",color:"gray",size:"sm",class:"sv-action sv-action--secondary sv-action--full-width w-full",loading:i.isLoading,onClick:v[0]||(v[0]=e=>o.$emit("load-more"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Load more",description:"The label for the load more button",id:"invoice_table.button.load_more"})),1)]),_:1},8,["loading"])):e.createCommentVNode("",!0)])]))}}),d=e.defineComponent({__name:"InvoicesList",props:{invoices:{type:Array},isLoading:{type:Boolean},hasMoreItems:{type:Boolean},configuration:{default:()=>({showPayButton:!0,showViewButton:!0,pagination:{batchSize:15,enabled:!0}}),type:Object}},emits:["load-more"],setup(o){const{$t:a}=t.useIntl(),{dispatchAction:n}=i.useActionDispatchProvider();return(i,s)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{class:"sv-invoices-list sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(a)({defaultMessage:"Invoices",description:"Invoices list title",id:"invoices_list.title"})},{default:e.withCtx(()=>[e.createVNode(r,{class:"sv-invoices-list__table",configuration:o.configuration,"has-more-items":o.hasMoreItems,invoices:o.invoices,"is-loading":o.isLoading,onLoadMore:s[0]||(s[0]=e=>i.$emit("load-more")),onViewInvoice:s[1]||(s[1]=t=>e.unref(n)({action:"view-invoice",data:{invoiceId:t.invoiceId}})),onPayInvoice:s[2]||(s[2]=t=>e.unref(n)({action:"pay-invoice",data:{invoiceId:t.invoiceId}}))},null,8,["configuration","has-more-items","invoices","is-loading"])]),_:1},8,["title"]))}});exports._sfc_main=d,exports.useInvoicesList=function({customerId:e,batchSize:t=15}){const i=a.createInvoicesService();return o.useIncrementalLoading({service:async o=>i.getInvoices({customerId:e,pagination:{page:o,pageSize:t}})})};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ref, onMounted } from "vue";
|
|
2
|
+
import { a as useLogger } from "./component-Djrf1L-Z.mjs";
|
|
2
3
|
function useLoadInitialData(...services) {
|
|
3
4
|
const isLoading = ref(true);
|
|
5
|
+
const logger = useLogger();
|
|
4
6
|
onMounted(async () => {
|
|
5
7
|
await Promise.all(services).then(() => {
|
|
6
8
|
isLoading.value = false;
|
|
9
|
+
}).catch((error) => {
|
|
10
|
+
isLoading.value = false;
|
|
11
|
+
logger.error("INITIAL_DATA_LOAD_FAILED", "Failed to load initial data", {}, error);
|
|
7
12
|
});
|
|
8
13
|
});
|
|
9
14
|
return { isLoading };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),a=require("./component-BOqPDAVk.js");exports.useLoadInitialData=function(...o){const t=e.ref(!0),n=a.useLogger();return e.onMounted(async()=>{await Promise.all(o).then(()=>{t.value=!1}).catch(e=>{t.value=!1,n.error("INITIAL_DATA_LOAD_FAILED","Failed to load initial data",{},e)})}),{isLoading:t}};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { u as useService } from "./useService-BsSEI8DZ.mjs";
|
|
2
|
+
import { c as createPaymentMethodsService } from "./paymentMethods-67b3UlTZ.mjs";
|
|
3
|
+
function hasCustomerId(payload) {
|
|
4
|
+
return payload.customerId !== void 0;
|
|
5
|
+
}
|
|
6
|
+
function usePaymentMethodOptions() {
|
|
7
|
+
const { getPaymentMethodOptions } = createPaymentMethodsService();
|
|
8
|
+
const service = (payload) => hasCustomerId(payload) ? getPaymentMethodOptions({
|
|
9
|
+
customerId: payload.customerId,
|
|
10
|
+
amount: payload.amount,
|
|
11
|
+
country: payload.country
|
|
12
|
+
}) : getPaymentMethodOptions({
|
|
13
|
+
subscriptionId: payload.subscriptionId,
|
|
14
|
+
amount: payload.amount,
|
|
15
|
+
country: payload.country
|
|
16
|
+
});
|
|
17
|
+
const initialValue = [];
|
|
18
|
+
const { data, execute: get, apiStatus, error, isPending } = useService({
|
|
19
|
+
initialValue,
|
|
20
|
+
service
|
|
21
|
+
});
|
|
22
|
+
return { paymentMethodOptions: data, get, apiStatus, error, isPending };
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
usePaymentMethodOptions as u
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./useService-Bb9r_sOQ.js"),t=require("./paymentMethods-C_sdTkSF.js");exports.usePaymentMethodOptions=function(){const{getPaymentMethodOptions:n}=t.createPaymentMethodsService(),{data:o,execute:r,apiStatus:u,error:i,isPending:s}=e.useService({initialValue:[],service:e=>function(e){return void 0!==e.customerId}(e)?n({customerId:e.customerId,amount:e.amount,country:e.country}):n({subscriptionId:e.subscriptionId,amount:e.amount,country:e.country})});return{paymentMethodOptions:o,get:r,apiStatus:u,error:i,isPending:s}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useIncrementalLoading } from "./useIncrementalLoading-
|
|
2
|
-
import { c as createPaymentMethodsService } from "./paymentMethods-
|
|
1
|
+
import { u as useIncrementalLoading } from "./useIncrementalLoading-Cnzh2mAz.mjs";
|
|
2
|
+
import { c as createPaymentMethodsService } from "./paymentMethods-67b3UlTZ.mjs";
|
|
3
3
|
function usePaymentMethods({
|
|
4
4
|
customerId,
|
|
5
5
|
pageSize = 15
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./useIncrementalLoading-
|
|
1
|
+
const e=require("./useIncrementalLoading-DoTTXM2Y.js"),t=require("./paymentMethods-C_sdTkSF.js");exports.usePaymentMethods=function({customerId:n,pageSize:s=15}){const{getPaymentMethods:a}=t.createPaymentMethodsService();return e.useIncrementalLoading({service:async e=>a({customerId:n,pagination:{page:e,pageSize:s}})})};
|