@solvimon/solvimon-web 0.1.0-alpha.1 → 0.1.0-alpha.10
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 +196 -44
- 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-B42EzZ97.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CX8vlY2Z.mjs} +9 -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-BC-C5Gjt.mjs → ContentWithAsideLayout-DhfUkZZg.mjs} +10 -16
- package/dist/{useCustomerPaymentMethodOptions-Fe_dLxfv.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bus-5gC3.mjs} +29 -37
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CkRsyMlJ.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-5yBnSRap.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Bc2hkpTb.mjs} +20 -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-CknZKCmY.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CaMDtHrL.mjs} +19 -12
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DWTEfLrE.js +1 -0
- package/dist/PaymentIntegrationForm-D1ZaHCTm.js +1 -0
- package/dist/PaymentIntegrationForm-Dmmhqqn1.mjs +4 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CSPZRvMV.js +1 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Do2KIVKH.mjs +962 -0
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-BChVMzCj.mjs +50 -0
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Br3bEUlP.js +1 -0
- package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +24 -8
- 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-DfB5BqiH.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BkzLj8n2.mjs} +42 -36
- package/dist/adyen-51SvcyqV.mjs +4 -0
- package/dist/adyen-Bwewy3HC.mjs +172 -0
- package/dist/adyen-DZsyEXkw.js +1 -0
- package/dist/adyen-R6aSZ0Yf.js +1 -0
- package/dist/component-BOqPDAVk.js +1 -0
- package/dist/component-Djrf1L-Z.mjs +889 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +99 -5
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +582 -5
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +126 -5
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +538 -5
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +127 -5
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +106 -5
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +131 -5
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +217 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +154 -5
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +132 -5
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +3 -0
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -0
- package/dist/components/WalletBalances/WalletBalances.es.js +120 -0
- package/dist/core/configuration.d.ts +2 -1
- 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/registry.d.ts +1 -1
- package/dist/core/types.d.ts +10 -2
- package/dist/customer-B31QzznT.mjs +32 -0
- package/dist/customer-hDxW1Dbp.js +1 -0
- package/dist/en-US-CgPY97Vq.js +1 -0
- package/dist/en-US-N3CUCsVy.mjs +179 -0
- package/dist/index-DIFK3mcJ.js +6 -0
- package/dist/index-DyvRdSR7.mjs +9673 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +43 -34
- package/dist/{invoices-C31Wz1Bu.mjs → invoices-DIYPN2j_.mjs} +2 -1
- 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-CrU4G_2Y.mjs → paymentMethods-67b3UlTZ.mjs} +2 -1
- package/dist/paymentMethods-C_sdTkSF.js +1 -0
- package/dist/{payments-C3LPk9k9.js → payments-DkHhTHto.js} +1 -1
- package/dist/{payments-NtWI8KlU.mjs → payments-Dq6R37Fz.mjs} +1 -1
- package/dist/registry-BkViv4tv.js +1 -0
- package/dist/registry-Df_26rJy.mjs +144 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +4935 -5
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +154 -5
- 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.ce.d.ts +3 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +1066 -0
- package/dist/solvimon-web.css +1 -1
- package/dist/{subscriptions-3R7aMoky.mjs → subscriptions-ClGIr_aS.mjs} +2 -1
- package/dist/subscriptions-jelITJcX.js +1 -0
- package/dist/{useActionDispatchProvider-CBo_Hwu5.mjs → useActionDispatchProvider-BC57-Ufn.mjs} +1 -1
- package/dist/useActionDispatchProvider-rw9kWeE0.js +1 -0
- package/dist/useCustomer-Ba9WRtuT.mjs +25 -0
- package/dist/useCustomer-CUcaeQn_.js +1 -0
- package/dist/{useIncrementalLoading-fHCizCSo.mjs → useIncrementalLoading-Cnzh2mAz.mjs} +11 -10
- package/dist/useIncrementalLoading-DoTTXM2Y.js +1 -0
- package/dist/{useInvoiceData-dyvoDwFF.mjs → useInvoiceData-BJwwDur7.mjs} +6 -12
- package/dist/useInvoiceData-D2jkdmlA.js +1 -0
- package/dist/{useInvoicesList-rDvRzMqe.mjs → useInvoicesList-CFzAxyae.mjs} +34 -30
- 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-Bq5fWl1Q.mjs → usePaymentMethods-CRWbH48K.mjs} +2 -2
- package/dist/{usePaymentMethods-Dbimodf0.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 +47 -20
- package/dist/BillingInformation.entry.ce-1xVdsWlL.mjs +0 -99
- package/dist/BillingInformation.entry.ce-DkrfEvK_.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-VMlVPI4O.js +0 -1
- package/dist/BillingInformationForm.entry.ce-MPMirEsk.js +0 -1
- package/dist/BillingInformationForm.entry.ce-xfT0Jqps.mjs +0 -579
- package/dist/Checkout.entry.ce-Bif6vR1K.mjs +0 -5185
- package/dist/Checkout.entry.ce-CkQnLAn4.js +0 -1
- package/dist/ContentWithAsideLayout-CIVSoqFr.js +0 -1
- package/dist/CustomerOverview.entry.ce-C__omsVl.js +0 -1
- package/dist/CustomerOverview.entry.ce-Ce_Yk8-i.mjs +0 -231
- package/dist/CustomerPaymentMethods.entry.ce-CZwy8Aqq.mjs +0 -135
- package/dist/CustomerPaymentMethods.entry.ce-DnjlRHPA.js +0 -1
- package/dist/Invoice.entry.ce-CdJ9TPZe.mjs +0 -583
- package/dist/Invoice.entry.ce-Cgr43ome.js +0 -1
- package/dist/InvoiceDetails.entry.ce-Cnpz8CLJ.mjs +0 -130
- package/dist/InvoiceDetails.entry.ce-jHDyWra2.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-t6E9_dWJ.js +0 -1
- package/dist/InvoicesList.entry.ce-38iOW5qh.js +0 -1
- package/dist/InvoicesList.entry.ce-BBaHEtAD.mjs +0 -105
- package/dist/PaymentHistory.entry.ce-DDeHMhK_.js +0 -1
- package/dist/PaymentHistory.entry.ce-Dw2NiP4l.mjs +0 -134
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BCdv5DbH.mjs +0 -6568
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-xJ8kJbRo.js +0 -1
- package/dist/PaymentMethodForm.entry.ce-f4cFExKc.mjs +0 -238
- package/dist/PaymentMethodForm.entry.ce-zxeBXZW6.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js +0 -1
- package/dist/SubscriptionSchedules.entry.ce-B4T_yQC1.js +0 -1
- package/dist/SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs +0 -153
- package/dist/SubscriptionsList.entry.ce-B5SJCQW0.js +0 -1
- package/dist/SubscriptionsList.entry.ce-cNYuQZZj.mjs +0 -135
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DqZLFDCv.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/auto-B_36W1Fc.js +0 -6
- package/dist/auto-BfMZdgp-.mjs +0 -14207
- package/dist/cloneDeep-Hs8Pp07F.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-BkmcE85U.mjs +0 -58654
- package/dist/component-Df5eNqYX.js +0 -1
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/invoices-8M_3ur_U.js +0 -1
- package/dist/paymentMethods-CzUqDlvc.js +0 -1
- package/dist/registry-By94DXE2.js +0 -1
- package/dist/registry-shRKDl3K.mjs +0 -127
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
- package/dist/subscriptions-CqK7t-fF.js +0 -1
- package/dist/useActionDispatchProvider-DsIljrhi.js +0 -1
- package/dist/useCustomer-BRY0tuBH.mjs +0 -45
- package/dist/useCustomer-Dp8sGHI0.js +0 -1
- package/dist/useCustomerPaymentMethodOptions-DYpMDnJR.js +0 -1
- package/dist/useIncrementalLoading-D8oKNxX7.js +0 -1
- package/dist/useInvoiceData-DImEH1ca.js +0 -1
- package/dist/useInvoicesList-BZQ9Y0qN.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useService-Dz13Nxbi.mjs +0 -272
- package/dist/useService-bNNi4GB8.js +0 -1
package/dist/solvimon-web.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '[data-v-afd5600c].tiptap h1,.editor-content-typography[data-v-afd5600c]h1{margin-top: 0px;font-size: 2.1428571em;font-weight: 700;line-height: 1.2;}[data-v-afd5600c].tiptap h2,.editor-content-typography[data-v-afd5600c]h2{margin-top: 0px;font-size: 1.5em;font-weight: 700;line-height: 1.3333333;}[data-v-afd5600c].tiptap h3,.editor-content-typography[data-v-afd5600c]h3{margin-top: 0px;font-size: 1.2857143em;font-weight: 600;line-height: 1.4444444;}[data-v-afd5600c].tiptap h4,.editor-content-typography[data-v-afd5600c]h4{margin-top: 0px;font-size: 1.1em;font-weight: 600;line-height: 1.4444444;}[data-v-afd5600c].tiptap p,.editor-content-typography[data-v-afd5600c]p{margin-top: 0px;line-height: 1.45;--tw-text-opacity: 1;color: rgb(71 85 105/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap ul,[data-v-afd5600c].tiptap ol,.editor-content-typography[data-v-afd5600c]ul,.editor-content-typography[data-v-afd5600c]ol{margin-top: 0px;padding-left: 1.625em;}[data-v-afd5600c].tiptap ul,.editor-content-typography[data-v-afd5600c]ul{list-style-type: disc;}[data-v-afd5600c].tiptap ol,.editor-content-typography[data-v-afd5600c]ol{list-style-type: decimal;}[data-v-afd5600c].tiptap li,.editor-content-typography[data-v-afd5600c]li{margin-top: 0.2em;line-height: 1.45;--tw-text-opacity: 1;color: rgb(71 85 105/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap blockquote,.editor-content-typography[data-v-afd5600c]blockquote{margin-top: 0px;margin-bottom: 1rem;border-left-width: 3px;--tw-border-opacity: 1;border-color: rgb(203 213 225/var(--tw-border-opacity,1));padding-left: 0.875rem;font-style: italic;line-height: 1.45;--tw-text-opacity: 1;color: rgb(100 116 139/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap blockquote p,.editor-content-typography[data-v-afd5600c]blockquote p{margin-bottom: 0px;color: inherit;}[data-v-afd5600c].tiptap pre,.editor-content-typography[data-v-afd5600c]pre{margin-top: 0px;margin-bottom: 1rem;white-space: pre-wrap;border-radius: 0.375rem;border-width: 1px;--tw-border-opacity: 1;border-color: rgb(226 232 240/var(--tw-border-opacity,1));--tw-bg-opacity: 1;background-color: rgb(248 250 252/var(--tw-bg-opacity,1));padding-left: 0.75rem;padding-right: 0.75rem;padding-top: 0.5rem;padding-bottom: 0.5rem;font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size: 0.875em;line-height: 1.5;--tw-text-opacity: 1;color: rgb(51 65 85/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap pre code,.editor-content-typography[data-v-afd5600c]pre code{background-color: transparent;padding: 0px;color: inherit;}[data-v-afd5600c].tiptap code:not(pre code),.editor-content-typography[data-v-afd5600c]code:not(pre code){border-radius: 0.25rem;--tw-bg-opacity: 1;background-color: rgb(241 245 249/var(--tw-bg-opacity,1));padding-left: 0.25rem;padding-right: 0.25rem;padding-top: 0.125rem;padding-bottom: 0.125rem;font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size: 0.875em;--tw-text-opacity: 1;color: rgb(51 65 85/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap a,.editor-content-typography[data-v-afd5600c]a{--tw-text-opacity: 1;color: rgb(37 99 235/var(--tw-text-opacity,1));text-decoration-line: none;}[data-v-afd5600c].tiptap a:hover,.editor-content-typography[data-v-afd5600c]a:hover{text-decoration-line: underline;}[data-v-afd5600c].tiptap>*:last-child,.editor-content-typography[data-v-afd5600c]*:last-child{margin-bottom: 0px;}[data-v-afd5600c].tiptap .is-empty::before{content: attr(data-placeholder);float: left;height: 0;pointer-events: none;font-weight: 400;font-style: italic;--tw-text-opacity: 1;color: rgb(148 163 184/var(--tw-text-opacity,1));}';export default ".to-right-enter-active[data-v-ce4df87e],.to-right-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateX(-10px);}.to-right-leave[data-v-ce4df87e],.to-right-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateX(0);}.to-right-enter-active[data-v-ce4df87e],.to-right-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-left-enter-active[data-v-ce4df87e],.to-left-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateX(10px);}.to-left-leave[data-v-ce4df87e],.to-left-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateX(0);}.to-left-enter-active[data-v-ce4df87e],.to-left-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-top-enter-active[data-v-ce4df87e],.to-top-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateY(10px);}.to-top-leave[data-v-ce4df87e],.to-top-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateY(0);}.to-top-enter-active[data-v-ce4df87e],.to-top-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-bottom-enter-active[data-v-ce4df87e],.to-bottom-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateY(-10px);}.to-bottom-leave[data-v-ce4df87e],.to-bottom-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateY(0);}.to-bottom-enter-active[data-v-ce4df87e],.to-bottom-leave-active[data-v-ce4df87e]{transition: all 250ms;}.expand-enter-active,.expand-leave-active{transition: height 300ms ease-in-out;overflow: hidden;}.expand-enter,.expand-leave-to{height: 0;}input[type='range']{-webkit-appearance: none;-moz-appearance: none;appearance: none;width: 100%;background: transparent;margin: 0.5rem 0;}input[type='range']::-webkit-slider-thumb{-webkit-appearance: none;appearance: none;width: 1rem;height: 1rem;border: 2px solid rgb(229 231 235);border-radius: 50%;background: #ffffff;box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3);cursor: pointer;-webkit-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}input[type='range']:disabled::-webkit-slider-thumb{cursor: not-allowed;}input[type='range']::-moz-range-thumb{-moz-appearance: none;appearance: none;width: 1rem;height: 1rem;border: 2px solid rgb(229 231 235);border-radius: 50%;background: #ffffff;box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3);cursor: pointer;-moz-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}input[type='range']:disabled::-moz-range-thumb{cursor: not-allowed;}input[type='range']:not(:disabled):hover::-webkit-slider-thumb{box-shadow: 0 0 0 6px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):hover::-moz-range-thumb{box-shadow: 0 0 0 6px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):active::-webkit-slider-thumb{box-shadow: 0 0 0 8px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):active::-moz-range-thumb{box-shadow: 0 0 0 8px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']::-webkit-slider-runnable-track{width: 100%;height: 0.5rem;cursor: pointer;background: linear-gradient(to right,var(--color-primary-600)var(--range-percentage,0%),n#e0e5eb var(--range-percentage, 0%)n);border-radius: 0.25rem;}input[type='range']:disabled::-webkit-slider-runnable-track{background: #e0e5eb;cursor: not-allowed;}input[type='range']::-moz-range-track{width: 100%;height: 0.5rem;cursor: pointer;background: linear-gradient(to right,var(--color-primary-600)var(--range-percentage,0%),n#e0e5eb var(--range-percentage, 0%)n);border-radius: 0.25rem;}input[type='range']:disabled::-moz-range-track{background: #e0e5eb;cursor: not-allowed;}input[type='range'].range-sm::-webkit-slider-thumb{width: 0.8rem;height: 0.8rem;margin-top:-0.2rem;}input[type='range'].range-sm::-moz-range-thumb{width: 0.8rem;height: 0.8rem;}input[type='range'].range-sm::-webkit-slider-runnable-track{height: 0.4rem;border-radius: 0.2rem;}input[type='range'].range-sm::-moz-range-track{height: 0.4rem;border-radius: 0.2rem;}input[type='range'].range-md::-webkit-slider-thumb{width: 1rem;height: 1rem;margin-top:-0.25rem;}input[type='range'].range-md::-moz-range-thumb{width: 1rem;height: 1rem;}input[type='range'].range-md::-webkit-slider-runnable-track{height: 0.5rem;border-radius: 0.25rem;}input[type='range'].range-md::-moz-range-track{height: 0.5rem;border-radius: 0.25rem;}input[type='range'].range-lg::-webkit-slider-thumb{width: 1.4rem;height: 1.4rem;margin-top:-0.35rem;}input[type='range'].range-lg::-moz-range-thumb{width: 1.4rem;height: 1.4rem;}input[type='range'].range-lg::-webkit-slider-runnable-track{height: 0.7rem;border-radius: 0.35rem;}input[type='range'].range-lg::-moz-range-track{height: 0.7rem;border-radius: 0.35rem;}input[type='range'].range-xl::-webkit-slider-thumb{width: 1.8rem;height: 1.8rem;margin-top:-0.5rem;}input[type='range'].range-xl::-moz-range-thumb{width: 1.8rem;height: 1.8rem;}input[type='range'].range-xl::-webkit-slider-runnable-track{height: 0.9rem;border-radius: 0.45rem;}input[type='range'].range-xl::-moz-range-track{height: 0.9rem;border-radius: 0.45rem;}thead th:first-of-type,tr td:first-of-type{position: sticky;left: 0;background: inherit;z-index: 2;}thead th:last-of-type,tr td:last-of-type{position: sticky;right: 0;background: inherit;z-index: 2;}.slide-left-enter-active[data-v-1a3d5742],.slide-left-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-left-enter-from[data-v-1a3d5742],.slide-left-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateX(30px);}.slide-right-enter-active[data-v-1a3d5742],.slide-right-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-right-enter-from[data-v-1a3d5742],.slide-right-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateX(-30px);}.slide-top-enter-active[data-v-1a3d5742],.slide-top-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-top-enter-from[data-v-1a3d5742],.slide-top-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateY(30px);}.slide-bottom-enter-active[data-v-1a3d5742],.slide-bottom-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-bottom-enter-from[data-v-1a3d5742],.slide-bottom-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateY(-30px);}.fade-enter-active[data-v-1a3d5742],.fade-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.fade-enter-from[data-v-1a3d5742],.fade-leave-to[data-v-1a3d5742]{opacity: 0;}.animated-gradient[data-v-f1f0dadf]{background: repeating-linear-gradient(to right,rgba(255,255,255,0)0%,rgba(255,255,255,0.75)50%,rgba(255,255,255,0)100%);width: 100%;background-size: 200% auto;background-position: 0 100%;animation: gradient-f1f0dadf 2s infinite;animation-fill-mode: forwards;animation-timing-function: linear;}@keyframes gradient-f1f0dadf{0%{background-position: 0 0;}100%{background-position:-200% 0;}}.nested-conditions-border::before{background-image: url(\"data:image/svg+xml,%3Csvg width='4' height='5' fill='none' xmlns='http:}.conditions-root:focus-within>.conditions-with-context-menu[data-v-8d2c7588],.conditions-root:hover>.conditions-with-context-menu[data-v-8d2c7588]{padding-right: 3rem;}.conditions-root:focus-within>.conditions-with-context-menu+.context-menu-wrapper[data-v-8d2c7588],.conditions-root:hover>.conditions-with-context-menu+.context-menu-wrapper[data-v-8d2c7588]{opacity: 1;}";{}
|
|
1
|
+
.to-right-enter-active[data-v-ce4df87e],.to-right-leave-to[data-v-ce4df87e]{opacity:0;transform:translate(-10px)}.to-right-leave[data-v-ce4df87e],.to-right-enter-to[data-v-ce4df87e]{opacity:1;transform:translate(0)}.to-right-enter-active[data-v-ce4df87e],.to-right-leave-active[data-v-ce4df87e]{transition:all .25s}.to-left-enter-active[data-v-ce4df87e],.to-left-leave-to[data-v-ce4df87e]{opacity:0;transform:translate(10px)}.to-left-leave[data-v-ce4df87e],.to-left-enter-to[data-v-ce4df87e]{opacity:1;transform:translate(0)}.to-left-enter-active[data-v-ce4df87e],.to-left-leave-active[data-v-ce4df87e]{transition:all .25s}.to-top-enter-active[data-v-ce4df87e],.to-top-leave-to[data-v-ce4df87e]{opacity:0;transform:translateY(10px)}.to-top-leave[data-v-ce4df87e],.to-top-enter-to[data-v-ce4df87e]{opacity:1;transform:translateY(0)}.to-top-enter-active[data-v-ce4df87e],.to-top-leave-active[data-v-ce4df87e]{transition:all .25s}.to-bottom-enter-active[data-v-ce4df87e],.to-bottom-leave-to[data-v-ce4df87e]{opacity:0;transform:translateY(-10px)}.to-bottom-leave[data-v-ce4df87e],.to-bottom-enter-to[data-v-ce4df87e]{opacity:1;transform:translateY(0)}.to-bottom-enter-active[data-v-ce4df87e],.to-bottom-leave-active[data-v-ce4df87e]{transition:all .25s}@media print{.card-print-avoid[data-v-9ba3ddf0]{break-inside:avoid-page;page-break-inside:avoid}}.expand-enter-active,.expand-leave-active{transition:height .3s ease-in-out;overflow:hidden}.expand-enter,.expand-leave-to{height:0}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;background:transparent;margin:.5rem 0}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:1rem;height:1rem;border:2px solid rgb(229 231 235);border-radius:50%;background:#fff;box-shadow:0 1px 3px #0000004d;cursor:pointer;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}input[type=range]:disabled::-webkit-slider-thumb{cursor:not-allowed}input[type=range]::-moz-range-thumb{-moz-appearance:none;-webkit-appearance:none;appearance:none;width:1rem;height:1rem;border:2px solid rgb(229 231 235);border-radius:50%;background:#fff;box-shadow:0 1px 3px #0000004d;cursor:pointer;-moz-transition:all .1s ease-in-out;transition:all .1s ease-in-out}input[type=range]:disabled::-moz-range-thumb{cursor:not-allowed}input[type=range]:not(:disabled):hover::-webkit-slider-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--color-primary-200) 50%,transparent)}input[type=range]:not(:disabled):hover::-moz-range-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--color-primary-200) 50%,transparent)}input[type=range]:not(:disabled):active::-webkit-slider-thumb{box-shadow:0 0 0 8px color-mix(in srgb,var(--color-primary-200) 50%,transparent)}input[type=range]:not(:disabled):active::-moz-range-thumb{box-shadow:0 0 0 8px color-mix(in srgb,var(--color-primary-200) 50%,transparent)}input[type=range]::-webkit-slider-runnable-track{width:100%;height:.5rem;cursor:pointer;background:linear-gradient(to right,var(--color-primary-600) var(--range-percentage, 0%),#e0e5eb var(--range-percentage, 0%));border-radius:.25rem}input[type=range]:disabled::-webkit-slider-runnable-track{background:#e0e5eb;cursor:not-allowed}input[type=range]::-moz-range-track{width:100%;height:.5rem;cursor:pointer;background:linear-gradient(to right,var(--color-primary-600) var(--range-percentage, 0%),#e0e5eb var(--range-percentage, 0%));border-radius:.25rem}input[type=range]:disabled::-moz-range-track{background:#e0e5eb;cursor:not-allowed}input[type=range].range-sm::-webkit-slider-thumb{width:.8rem;height:.8rem;margin-top:-.2rem}input[type=range].range-sm::-moz-range-thumb{width:.8rem;height:.8rem}input[type=range].range-sm::-webkit-slider-runnable-track{height:.4rem;border-radius:.2rem}input[type=range].range-sm::-moz-range-track{height:.4rem;border-radius:.2rem}input[type=range].range-md::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem}input[type=range].range-md::-moz-range-thumb{width:1rem;height:1rem}input[type=range].range-md::-webkit-slider-runnable-track{height:.5rem;border-radius:.25rem}input[type=range].range-md::-moz-range-track{height:.5rem;border-radius:.25rem}input[type=range].range-lg::-webkit-slider-thumb{width:1.4rem;height:1.4rem;margin-top:-.35rem}input[type=range].range-lg::-moz-range-thumb{width:1.4rem;height:1.4rem}input[type=range].range-lg::-webkit-slider-runnable-track{height:.7rem;border-radius:.35rem}input[type=range].range-lg::-moz-range-track{height:.7rem;border-radius:.35rem}input[type=range].range-xl::-webkit-slider-thumb{width:1.8rem;height:1.8rem;margin-top:-.5rem}input[type=range].range-xl::-moz-range-thumb{width:1.8rem;height:1.8rem}input[type=range].range-xl::-webkit-slider-runnable-track{height:.9rem;border-radius:.45rem}input[type=range].range-xl::-moz-range-track{height:.9rem;border-radius:.45rem}thead th:first-of-type,tr td:first-of-type{position:sticky;left:0;background:inherit;z-index:2}thead th:last-of-type,tr td:last-of-type{position:sticky;right:0;background:inherit;z-index:2}@media print{.card-header-print-root[data-v-9316d9b2]{-moz-column-break-after:avoid;break-after:avoid-page;page-break-after:avoid}}@media print{.collapsible-card-print-root[data-v-6f1525c7],.collapsible-card-print-content[data-v-6f1525c7]{-moz-column-break-inside:auto;break-inside:auto;page-break-inside:auto}.collapsible-card-print-content[data-v-6f1525c7]{display:block!important}}@media print{.collapsible-list-item-content[data-v-9da2d94d]{display:block!important}}.tiptap h1,.editor-content-typography h1{margin-top:0;font-size:2.1428571em;font-weight:700;line-height:1.2}.tiptap h2,.editor-content-typography h2{margin-top:0;font-size:1.5em;font-weight:700;line-height:1.3333333}.tiptap h3,.editor-content-typography h3{margin-top:0;font-size:1.2857143em;font-weight:600;line-height:1.4444444}.tiptap h4,.editor-content-typography h4{margin-top:0;font-size:1.1em;font-weight:600;line-height:1.4444444}.tiptap p,.editor-content-typography p{margin-top:0;line-height:1.45;--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.tiptap ul,.tiptap ol,.editor-content-typography ul,.editor-content-typography ol{margin-top:0;padding-left:1.625em}.tiptap ul,.editor-content-typography ul{list-style-type:disc}.tiptap ol,.editor-content-typography ol{list-style-type:decimal}.tiptap li,.editor-content-typography li{margin-top:.2em;line-height:1.45;--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.tiptap blockquote,.editor-content-typography blockquote{margin-top:0;margin-bottom:1rem;border-left-width:3px;--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1));padding-left:.875rem;font-style:italic;line-height:1.45;--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.tiptap blockquote p,.editor-content-typography blockquote p{margin-bottom:0;color:inherit}.tiptap pre,.editor-content-typography pre{margin-top:0;margin-bottom:1rem;white-space:pre-wrap;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875em;line-height:1.5;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.tiptap pre code,.editor-content-typography pre code{background-color:transparent;padding:0;color:inherit}.tiptap code:not(pre code),.editor-content-typography code:not(pre code){border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1));padding:.125rem .25rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875em;--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.tiptap a,.editor-content-typography a{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1));text-decoration-line:none}.tiptap a:hover,.editor-content-typography a:hover{text-decoration-line:underline}.tiptap>*:last-child,.editor-content-typography *:last-child{margin-bottom:0}[data-v-438af34f] .tiptap .is-empty:before{content:attr(data-placeholder);float:left;height:0;pointer-events:none;font-weight:400;font-style:italic;--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.animated-gradient[data-v-f1f0dadf]{background:repeating-linear-gradient(to right,#fff0,#ffffffbf,#fff0);width:100%;background-size:200% auto;background-position:0 100%;animation:gradient-f1f0dadf 2s infinite;animation-fill-mode:forwards;animation-timing-function:linear}@keyframes gradient-f1f0dadf{0%{background-position:0 0}to{background-position:-200% 0}}@media print{.tiered-rule-header[data-v-9e78b558]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}.tiered-table-print-wrapper[data-v-9e78b558]{-moz-column-break-inside:auto;break-inside:auto;page-break-inside:auto}.tiered-table-print thead[data-v-9e78b558]{display:table-header-group}.tiered-table-print-row[data-v-9e78b558]{-moz-column-break-inside:avoid;break-inside:avoid;page-break-inside:avoid}}.conditions-root:focus-within>.conditions-with-context-menu[data-v-ecf44f22],.conditions-root:hover>.conditions-with-context-menu[data-v-ecf44f22]{padding-right:3rem}.conditions-root:focus-within>.conditions-with-context-menu+.context-menu-wrapper[data-v-ecf44f22],.conditions-root:hover>.conditions-with-context-menu+.context-menu-wrapper[data-v-ecf44f22]{opacity:1}.nested-conditions-border:before{background-image:url("data:image/svg+xml,%3Csvg width='4' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='m0 0 4 4v1L0 1V0Z' fill='%23CDD6DF'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h4v5H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E")}@media print{.pricing-item-heading[data-v-3d026d53]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}.pricing-item-block[data-v-3d026d53]{-moz-column-break-inside:avoid;break-inside:avoid;page-break-inside:avoid}}@media print{.section-label[data-v-f430a83c]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}}@media print{.category-heading[data-v-2ac99a3d]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}[data-v-2ac99a3d] .collapsible-card-print-root .card-header-print-root{border-bottom-width:0}}@media print{[data-v-82e565eb] .card-surface{box-shadow:none!important;border-color:#e5e7eb!important}}.slide-left-enter-active[data-v-1a3d5742],.slide-left-leave-active[data-v-1a3d5742]{transition:all .5s ease}.slide-left-enter-from[data-v-1a3d5742],.slide-left-leave-to[data-v-1a3d5742]{opacity:0;transform:translate(30px)}.slide-right-enter-active[data-v-1a3d5742],.slide-right-leave-active[data-v-1a3d5742]{transition:all .5s ease}.slide-right-enter-from[data-v-1a3d5742],.slide-right-leave-to[data-v-1a3d5742]{opacity:0;transform:translate(-30px)}.slide-top-enter-active[data-v-1a3d5742],.slide-top-leave-active[data-v-1a3d5742]{transition:all .5s ease}.slide-top-enter-from[data-v-1a3d5742],.slide-top-leave-to[data-v-1a3d5742]{opacity:0;transform:translateY(30px)}.slide-bottom-enter-active[data-v-1a3d5742],.slide-bottom-leave-active[data-v-1a3d5742]{transition:all .5s ease}.slide-bottom-enter-from[data-v-1a3d5742],.slide-bottom-leave-to[data-v-1a3d5742]{opacity:0;transform:translateY(-30px)}.fade-enter-active[data-v-1a3d5742],.fade-leave-active[data-v-1a3d5742]{transition:all .5s ease}.fade-enter-from[data-v-1a3d5742],.fade-leave-to[data-v-1a3d5742]{opacity:0}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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";
|
|
2
3
|
const ENDPOINT = "/portal/pricing-plan-subscriptions";
|
|
3
4
|
function createSubscriptionsService() {
|
|
4
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-CBo_Hwu5.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) {
|
|
@@ -0,0 +1 @@
|
|
|
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}};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import { c as createCustomerService } from "./customer-B31QzznT.mjs";
|
|
3
|
+
import { u as useService } from "./useService-BsSEI8DZ.mjs";
|
|
4
|
+
function useCustomer({ customerId }) {
|
|
5
|
+
const { getCustomer, updateCustomer } = createCustomerService();
|
|
6
|
+
const customer = ref();
|
|
7
|
+
const { data: _getData, ...get } = useService({
|
|
8
|
+
service: async () => {
|
|
9
|
+
const result = await getCustomer(customerId);
|
|
10
|
+
customer.value = result;
|
|
11
|
+
return result;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const { data: _updateData, ...update } = useService({
|
|
15
|
+
service: async (payload) => {
|
|
16
|
+
const result = await updateCustomer(customerId, payload);
|
|
17
|
+
customer.value = result;
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return { customer, get, update };
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
useCustomer as u
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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,12 +1,14 @@
|
|
|
1
|
-
import { A as ApiStatus } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { ref, computed } from "vue";
|
|
4
|
-
|
|
1
|
+
import { A as ApiStatus } from "./ApiStatus-CyNDp_op.mjs";
|
|
2
|
+
import { g as getPaginatedFullList, i as isApiSuccessCollectionResponse } from "./vendor-ui-C0K3osvz.mjs";
|
|
3
|
+
import { shallowRef, ref, computed } from "vue";
|
|
4
|
+
function toError(error) {
|
|
5
|
+
return error instanceof Error ? error : new Error("Something went wrong while fetching data.");
|
|
6
|
+
}
|
|
5
7
|
function useIncrementalLoading({
|
|
6
8
|
initialData = [],
|
|
7
9
|
service
|
|
8
10
|
}) {
|
|
9
|
-
const items =
|
|
11
|
+
const items = shallowRef(initialData);
|
|
10
12
|
const status = ref(ApiStatus.Initial);
|
|
11
13
|
const error = ref(null);
|
|
12
14
|
const page = ref(1);
|
|
@@ -23,13 +25,12 @@ function useIncrementalLoading({
|
|
|
23
25
|
status.value = ApiStatus.Done;
|
|
24
26
|
return;
|
|
25
27
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
items.value = [...items.value, ...successResponse.data];
|
|
28
|
+
hasNextBatch.value = !!((_a = response.links) == null ? void 0 : _a.next);
|
|
29
|
+
items.value = [...items.value, ...response.data];
|
|
29
30
|
status.value = ApiStatus.Done;
|
|
30
31
|
page.value = pageNumber;
|
|
31
32
|
} catch (err) {
|
|
32
|
-
error.value = err;
|
|
33
|
+
error.value = toError(err);
|
|
33
34
|
status.value = ApiStatus.Failed;
|
|
34
35
|
}
|
|
35
36
|
};
|
|
@@ -50,7 +51,7 @@ function useIncrementalLoading({
|
|
|
50
51
|
const fetchMore = async () => {
|
|
51
52
|
return await loadPage(page.value + 1);
|
|
52
53
|
};
|
|
53
|
-
const nonMutableItems = computed(() =>
|
|
54
|
+
const nonMutableItems = computed(() => structuredClone(items.value));
|
|
54
55
|
const fetchInitial = async () => {
|
|
55
56
|
return await loadPage(1);
|
|
56
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,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, Fragment, renderList, createBlock, createSlots, createElementVNode, withModifiers, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-
|
|
4
|
-
import { u as useIncrementalLoading } from "./useIncrementalLoading-
|
|
5
|
-
import { c as createInvoicesService } from "./invoices-
|
|
6
|
-
const _hoisted_1 = { class: "grid-cols-1 gap-4" };
|
|
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" };
|
|
7
7
|
const _hoisted_2 = ["onClick"];
|
|
8
8
|
const _hoisted_3 = { class: "flex flex-col" };
|
|
9
|
-
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" };
|
|
10
10
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "InvoiceTable",
|
|
12
12
|
props: {
|
|
@@ -24,7 +24,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const showLoadMoreButton = computed(() => props.hasMoreItems);
|
|
25
25
|
return (_ctx, _cache) => {
|
|
26
26
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
27
|
-
createVNode(unref(_sfc_main$
|
|
27
|
+
createVNode(unref(_sfc_main$2), {
|
|
28
28
|
striped: "",
|
|
29
29
|
"no-border": "",
|
|
30
30
|
rounded: "",
|
|
@@ -34,9 +34,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
default: withCtx(() => [
|
|
35
35
|
createVNode(unref(TableHead), null, {
|
|
36
36
|
default: withCtx(() => [
|
|
37
|
-
createVNode(unref(TableHeadRow),
|
|
37
|
+
createVNode(unref(TableHeadRow), { class: "sv-table__head" }, {
|
|
38
38
|
default: withCtx(() => [
|
|
39
|
-
createVNode(unref(_sfc_main$
|
|
39
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--invoice" }, {
|
|
40
40
|
default: withCtx(() => [
|
|
41
41
|
createTextVNode(toDisplayString(unref($t)({
|
|
42
42
|
defaultMessage: "Invoice",
|
|
@@ -46,7 +46,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
]),
|
|
47
47
|
_: 1
|
|
48
48
|
}),
|
|
49
|
-
createVNode(unref(_sfc_main$
|
|
49
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--date hidden md:table-cell" }, {
|
|
50
50
|
default: withCtx(() => [
|
|
51
51
|
createTextVNode(toDisplayString(unref($t)({
|
|
52
52
|
defaultMessage: "Date",
|
|
@@ -56,7 +56,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
]),
|
|
57
57
|
_: 1
|
|
58
58
|
}),
|
|
59
|
-
createVNode(unref(_sfc_main$
|
|
59
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--amount" }, {
|
|
60
60
|
default: withCtx(() => [
|
|
61
61
|
createTextVNode(toDisplayString(unref($t)({
|
|
62
62
|
defaultMessage: "Amount",
|
|
@@ -66,7 +66,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
]),
|
|
67
67
|
_: 1
|
|
68
68
|
}),
|
|
69
|
-
createVNode(unref(_sfc_main$
|
|
69
|
+
createVNode(unref(_sfc_main$3), { class: "sv-table__cell sv-invoices-list__cell--status text-right" }, {
|
|
70
70
|
default: withCtx(() => [
|
|
71
71
|
createTextVNode(toDisplayString(unref($t)({
|
|
72
72
|
defaultMessage: "Status",
|
|
@@ -85,17 +85,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
createVNode(unref(TableBody), null, {
|
|
86
86
|
default: withCtx(() => [
|
|
87
87
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.invoices, (invoice) => {
|
|
88
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
89
|
-
key: invoice.id
|
|
88
|
+
return openBlock(), createBlock(unref(_sfc_main$4), {
|
|
89
|
+
key: invoice.id,
|
|
90
|
+
class: "sv-table__row sv-invoices-list__row"
|
|
90
91
|
}, createSlots({
|
|
91
92
|
default: withCtx(() => [
|
|
92
|
-
createVNode(unref(_sfc_main$
|
|
93
|
+
createVNode(unref(_sfc_main$5), {
|
|
93
94
|
"has-padding": "",
|
|
94
|
-
class: "h-14"
|
|
95
|
+
class: "sv-table__cell sv-invoices-list__cell sv-invoices-list__cell--invoice h-14"
|
|
95
96
|
}, {
|
|
96
97
|
default: withCtx(() => [
|
|
97
98
|
createElementVNode("div", _hoisted_3, [
|
|
98
|
-
createVNode(unref(_sfc_main$
|
|
99
|
+
createVNode(unref(_sfc_main$6), {
|
|
99
100
|
tag: "span",
|
|
100
101
|
variant: "body-sm",
|
|
101
102
|
class: "md:hidden"
|
|
@@ -110,7 +111,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
110
111
|
]),
|
|
111
112
|
_: 2
|
|
112
113
|
}, 1024),
|
|
113
|
-
createVNode(unref(_sfc_main$
|
|
114
|
+
createVNode(unref(_sfc_main$6), {
|
|
114
115
|
tag: "span",
|
|
115
116
|
variant: "body-xs",
|
|
116
117
|
shade: "lighter"
|
|
@@ -124,7 +125,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
124
125
|
]),
|
|
125
126
|
_: 2
|
|
126
127
|
}, 1024),
|
|
127
|
-
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" }, {
|
|
128
129
|
default: withCtx(() => [
|
|
129
130
|
createTextVNode(toDisplayString(unref(formatDate)({
|
|
130
131
|
date: invoice.invoice_date,
|
|
@@ -135,14 +136,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
135
136
|
]),
|
|
136
137
|
_: 2
|
|
137
138
|
}, 1024),
|
|
138
|
-
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" }, {
|
|
139
140
|
default: withCtx(() => [
|
|
140
|
-
createVNode(unref(_sfc_main$
|
|
141
|
+
createVNode(unref(_sfc_main$6), {
|
|
141
142
|
tag: "span",
|
|
142
143
|
weight: "semibold"
|
|
143
144
|
}, {
|
|
144
145
|
default: withCtx(() => [
|
|
145
|
-
createVNode(unref(_sfc_main$
|
|
146
|
+
createVNode(unref(_sfc_main$7), {
|
|
146
147
|
value: invoice.invoice_amount_including_tax
|
|
147
148
|
}, null, 8, ["value"])
|
|
148
149
|
]),
|
|
@@ -151,9 +152,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
151
152
|
]),
|
|
152
153
|
_: 2
|
|
153
154
|
}, 1024),
|
|
154
|
-
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" }, {
|
|
155
156
|
default: withCtx(() => [
|
|
156
|
-
invoice.paid ? (openBlock(), createBlock(unref(_sfc_main$
|
|
157
|
+
invoice.paid ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
157
158
|
key: 0,
|
|
158
159
|
color: "green"
|
|
159
160
|
}, {
|
|
@@ -165,11 +166,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
165
166
|
})), 1)
|
|
166
167
|
]),
|
|
167
168
|
_: 1
|
|
168
|
-
})) : showPayButton.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
169
|
+
})) : showPayButton.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
169
170
|
key: 1,
|
|
170
171
|
variant: "outline",
|
|
171
172
|
color: "gray",
|
|
172
173
|
size: "sm",
|
|
174
|
+
class: "sv-action sv-action--secondary sv-invoices-list__pay",
|
|
173
175
|
type: "button",
|
|
174
176
|
onClick: withModifiers(($event) => _ctx.$emit("pay-invoice", { invoiceId: invoice.id }), ["stop"])
|
|
175
177
|
}, {
|
|
@@ -193,7 +195,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
193
195
|
fn: withCtx(() => [
|
|
194
196
|
createElementVNode("button", {
|
|
195
197
|
type: "button",
|
|
196
|
-
class: "absolute inset-0 h-full w-full",
|
|
198
|
+
class: "sv-invoices-list__row-action absolute inset-0 h-full w-full",
|
|
197
199
|
onClick: ($event) => _ctx.$emit("view-invoice", { invoiceId: invoice.id })
|
|
198
200
|
}, null, 8, _hoisted_2)
|
|
199
201
|
]),
|
|
@@ -208,12 +210,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
208
210
|
_: 1
|
|
209
211
|
}),
|
|
210
212
|
createElementVNode("div", _hoisted_4, [
|
|
211
|
-
showLoadMoreButton.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
213
|
+
showLoadMoreButton.value ? (openBlock(), createBlock(unref(_sfc_main$9), {
|
|
212
214
|
key: 0,
|
|
213
215
|
variant: "outline",
|
|
214
216
|
color: "gray",
|
|
215
217
|
size: "sm",
|
|
216
|
-
class: "w-full",
|
|
218
|
+
class: "sv-action sv-action--secondary sv-action--full-width w-full",
|
|
217
219
|
loading: __props.isLoading,
|
|
218
220
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("load-more"))
|
|
219
221
|
}, {
|
|
@@ -251,9 +253,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
251
253
|
const { $t } = useIntl();
|
|
252
254
|
const { dispatchAction } = useActionDispatchProvider();
|
|
253
255
|
return (_ctx, _cache) => {
|
|
254
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
256
|
+
return openBlock(), createBlock(unref(_sfc_main$a), {
|
|
257
|
+
class: "sv-invoices-list sv-root sv-component",
|
|
255
258
|
"no-border": "",
|
|
256
|
-
spacing: "
|
|
259
|
+
"no-spacing": "",
|
|
257
260
|
"content-background": "none",
|
|
258
261
|
title: unref($t)({
|
|
259
262
|
defaultMessage: "Invoices",
|
|
@@ -263,6 +266,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
263
266
|
}, {
|
|
264
267
|
default: withCtx(() => [
|
|
265
268
|
createVNode(_sfc_main$1, {
|
|
269
|
+
class: "sv-invoices-list__table",
|
|
266
270
|
configuration: __props.configuration,
|
|
267
271
|
"has-more-items": __props.hasMoreItems,
|
|
268
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}})})};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { c as createInvoicesService } from "./invoices-DIYPN2j_.mjs";
|
|
2
|
+
import { u as useService } from "./useService-BsSEI8DZ.mjs";
|
|
3
|
+
import { c as createPaymentsService } from "./payments-Dq6R37Fz.mjs";
|
|
4
|
+
function useInvoice({ invoiceId }) {
|
|
5
|
+
const { getInvoice, getInvoicePdf: downloadInvoicePdf } = createInvoicesService();
|
|
6
|
+
const service = () => getInvoice(invoiceId);
|
|
7
|
+
const {
|
|
8
|
+
data,
|
|
9
|
+
execute: get,
|
|
10
|
+
apiStatus,
|
|
11
|
+
error,
|
|
12
|
+
isPending
|
|
13
|
+
} = useService({
|
|
14
|
+
service
|
|
15
|
+
});
|
|
16
|
+
return {
|
|
17
|
+
invoice: data,
|
|
18
|
+
downloadInvoicePdf,
|
|
19
|
+
apiStatus,
|
|
20
|
+
error,
|
|
21
|
+
get,
|
|
22
|
+
isPending
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function usePayments() {
|
|
26
|
+
const { getPayments } = createPaymentsService();
|
|
27
|
+
const { data, execute: get, error, apiStatus, isPending } = useService({
|
|
28
|
+
service: getPayments,
|
|
29
|
+
isCollection: true
|
|
30
|
+
});
|
|
31
|
+
return { payments: data, get, error, apiStatus, isPending };
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
usePayments as a,
|
|
35
|
+
useInvoice as u
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./invoices-DzkA1jDc.js"),i=require("./useService-Bb9r_sOQ.js"),t=require("./payments-DkHhTHto.js");exports.useInvoice=function({invoiceId:t}){const{getInvoice:r,getInvoicePdf:n}=e.createInvoicesService(),{data:s,execute:c,apiStatus:o,error:a,isPending:u}=i.useService({service:()=>r(t)});return{invoice:s,downloadInvoicePdf:n,apiStatus:o,error:a,get:c,isPending:u}},exports.usePayments=function(){const{getPayments:e}=t.createPaymentsService(),{data:r,execute:n,error:s,apiStatus:c,isPending:o}=i.useService({service:e,isCollection:!0});return{payments:r,get:n,error:s,apiStatus:c,isPending:o}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r=require("vue"),e=require("./component-BOqPDAVk.js");exports.usePortal=function(){const o=r.inject(e.PORTAL_INJECTION_KEY);if(!o)throw new Error("PortalProvider is not provided");return o};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { inject } from "vue";
|
|
2
|
+
import { P as PORTAL_INJECTION_KEY } from "./component-Djrf1L-Z.mjs";
|
|
3
|
+
function usePortal() {
|
|
4
|
+
const portal = inject(PORTAL_INJECTION_KEY);
|
|
5
|
+
if (!portal) {
|
|
6
|
+
throw new Error("PortalProvider is not provided");
|
|
7
|
+
}
|
|
8
|
+
return portal;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
usePortal as u
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./ApiStatus-oqvUEWJx.js"),t=require("vue"),r=require("./vendor-ui-5pJF5KBP.js");function n(e,t){return t?function(e){if(!function(e){return"object"==typeof e&&null!==e&&"data"in e}(e))throw new Error("Expected collection response.");return e.data}(e):e}exports.useService=function({initialValue:i,service:u,isCollection:a=!1}){const o=t.shallowRef(i),l=t.ref(e.ApiStatus.Initial),s=t.ref(null),c=t.computed(()=>l.value===e.ApiStatus.Loading);return{data:o,execute:async(...t)=>{try{l.value=e.ApiStatus.Loading,s.value=null;const v=n(await u(...t),a);return i=o,c=v,r.isEqual(i.value,c)||(i.value=c),l.value=e.ApiStatus.Done,v}catch(v){return s.value=function(e){return e instanceof Error?e:new Error("Something went wrong while fetching data.")}(v),l.value=e.ApiStatus.Failed,Promise.reject()}var i,c},apiStatus:l,isPending:c,error:s}};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { A as ApiStatus } from "./ApiStatus-CyNDp_op.mjs";
|
|
2
|
+
import { shallowRef, ref, computed } from "vue";
|
|
3
|
+
import { k as isEqual } from "./vendor-ui-C0K3osvz.mjs";
|
|
4
|
+
function updateRefIfChanged(ref2, value) {
|
|
5
|
+
if (isEqual(ref2.value, value)) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
ref2.value = value;
|
|
9
|
+
}
|
|
10
|
+
function toError(error) {
|
|
11
|
+
return error instanceof Error ? error : new Error("Something went wrong while fetching data.");
|
|
12
|
+
}
|
|
13
|
+
function isCollectionResponse(response) {
|
|
14
|
+
return typeof response === "object" && response !== null && "data" in response;
|
|
15
|
+
}
|
|
16
|
+
function getCollectionResponseData(response) {
|
|
17
|
+
if (!isCollectionResponse(response)) {
|
|
18
|
+
throw new Error("Expected collection response.");
|
|
19
|
+
}
|
|
20
|
+
return response.data;
|
|
21
|
+
}
|
|
22
|
+
function mapServiceResponse(response, isCollection) {
|
|
23
|
+
return isCollection ? getCollectionResponseData(response) : response;
|
|
24
|
+
}
|
|
25
|
+
function useService({
|
|
26
|
+
initialValue,
|
|
27
|
+
service,
|
|
28
|
+
isCollection = false
|
|
29
|
+
}) {
|
|
30
|
+
const data = shallowRef(initialValue);
|
|
31
|
+
const apiStatus = ref(ApiStatus.Initial);
|
|
32
|
+
const error = ref(null);
|
|
33
|
+
const isPending = computed(() => apiStatus.value === ApiStatus.Loading);
|
|
34
|
+
const execute = async (...args) => {
|
|
35
|
+
try {
|
|
36
|
+
apiStatus.value = ApiStatus.Loading;
|
|
37
|
+
error.value = null;
|
|
38
|
+
const response = await service(...args);
|
|
39
|
+
const mapped = mapServiceResponse(response, isCollection);
|
|
40
|
+
updateRefIfChanged(data, mapped);
|
|
41
|
+
apiStatus.value = ApiStatus.Done;
|
|
42
|
+
return mapped;
|
|
43
|
+
} catch (err) {
|
|
44
|
+
error.value = toError(err);
|
|
45
|
+
apiStatus.value = ApiStatus.Failed;
|
|
46
|
+
return Promise.reject();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return { data, execute, apiStatus, isPending, error };
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
useService as u
|
|
53
|
+
};
|