@solvimon/solvimon-web 0.1.0-alpha.16 → 0.1.0-alpha.17
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 +5 -5
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BYBAO4Au.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BrPsTuoW.mjs} +2 -2
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BI3Lg7nO.js → BillingInformation.vue_vue_type_script_setup_true_lang-BuQ8bzar.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C_uHr21N.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-1Op9GjGZ.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CTnn1gkW.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CuWrBcoK.mjs} +3 -3
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C66beqgf.js +1 -0
- package/dist/{useWalletBalanceItems-COQDLfoZ.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D2BhuXsh.mjs} +24 -56
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BbuEBiY3.js +1 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3cqlbGY.mjs +147 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-dwIv_xxf.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-wxP5IaGt.mjs} +1 -1
- package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js → InvoiceHeader.vue_vue_type_script_setup_true_lang-05NKI2A0.js} +1 -1
- package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs → InvoiceHeader.vue_vue_type_script_setup_true_lang-17v07F58.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-BKMttUyk.mjs → PaymentHistoryBlock-BitwS9Re.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-BGbTy4Se.js → PaymentHistoryBlock-ZtmPXXwI.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3ZUDUdw.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CMGK71zZ.js} +1 -1
- package/dist/{PaymentIntegrationForm-CypW6fZY.mjs → PaymentIntegrationForm-BK2aLPCo.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-D4QupHWl.js → PaymentIntegrationForm-BZTzCUiu.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CrGSfZZs.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B_yDNGK8.mjs} +5 -5
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-GN3WAr10.js +1 -0
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-B8eNptZp.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-CIQ0vsko.mjs} +25 -14
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-zRr8iihy.js +1 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-BQIN3zuf.mjs +156 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DyL2-vV0.js +1 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BUTqn4Ey.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DVeB_mqK.mjs} +5 -5
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-Be_fF-R_.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OvGGejpX.js} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BxqIfmkK.js +1 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D1TcP9PR.mjs} +115 -68
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BKz2QQn9.js +1 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BMXr26gF.mjs +37 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DB1p61kZ.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BDqX6OaE.mjs} +22 -119
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CyAFjCh7.js +1 -0
- package/dist/component-CUJ_G2Nw.mjs +962 -0
- package/dist/component-CiKxWtdx.js +1 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +3 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +7 -7
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.es.js +4 -4
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +6 -6
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -58
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +8 -6
- package/dist/core/action-request.types.d.ts +3 -3
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +4 -2
- package/dist/{customer-_W8gIX5m.js → customer-AfRcAZ5P.js} +1 -1
- package/dist/{customer-Bv_fqXzO.mjs → customer-DAgdegIW.mjs} +1 -1
- package/dist/{en-US-DAgOSlgv.mjs → en-US-DSzSbgL5.mjs} +68 -36
- package/dist/en-US-QzQnGXP1.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +7 -4
- package/dist/invoices-BHgajZHq.js +1 -0
- package/dist/{invoices-BGb0AwVF.mjs → invoices-BXDgW8ch.mjs} +32 -16
- package/dist/nl-NL-C4rr-1tr.js +1 -0
- package/dist/{nl-NL-DCsmrA8A.mjs → nl-NL-Li7RW89R.mjs} +72 -40
- package/dist/{paymentMethods-DIbB759g.js → paymentMethods-BMcc-eTl.js} +1 -1
- package/dist/{paymentMethods-DvqlWe96.mjs → paymentMethods-xzFD2L30.mjs} +2 -2
- package/dist/{payments-DMDDI3MK.js → payments-DMvmB5vg.js} +1 -1
- package/dist/{payments-CpzTVrQM.mjs → payments-DV6csRej.mjs} +1 -1
- package/dist/pricing-B1uImUm4.mjs +19 -0
- package/dist/pricing-BEjY_5wb.js +1 -0
- package/dist/pricingPlanSchedule-B9HFiXy-.js +1 -0
- package/dist/pricingPlanSchedule-C_cqUyTk.mjs +144 -0
- package/dist/registry-CeMxLjwU.js +1 -0
- package/dist/{registry-B-If1W_u.mjs → registry-CyENvS6l.mjs} +7 -4
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +414 -675
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +65 -19
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
- package/dist/screens/PayInvoice/PayInvoice.es.js +10 -9
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +8 -8
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +3 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +542 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +3 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.es.js +725 -0
- package/dist/solvimon-web.css +1 -1
- package/dist/subscription-B4dBAY9C.mjs +89 -0
- package/dist/subscription-b0OPx8Du.js +1 -0
- package/dist/{subscriptions-BPYyv09M.mjs → subscriptions-CrNDM9qa.mjs} +6 -2
- package/dist/{subscriptions-CC61I6Nj.js → subscriptions-DC-mxa17.js} +1 -1
- package/dist/{url-1Lbg5Yni.mjs → url-BjZ1Pg0l.mjs} +1 -1
- package/dist/url-D8GJi5rF.js +1 -0
- package/dist/{useActionDispatchProvider-BHTknMoH.js → useActionDispatchProvider-bqR_FeM4.js} +1 -1
- package/dist/{useActionDispatchProvider-Dz8-e4gZ.mjs → useActionDispatchProvider-zB_GKeUR.mjs} +1 -1
- package/dist/{useCustomer-VVJi8z2w.mjs → useCustomer-VfeQ6rG2.mjs} +2 -2
- package/dist/{useCustomer-Z24KchWC.js → useCustomer-bO4D6e4Z.js} +1 -1
- package/dist/{useIncrementalLoading-CuSndpP2.js → useIncrementalLoading-BgWuwoMo.js} +1 -1
- package/dist/{useIncrementalLoading-DmOT2MXH.mjs → useIncrementalLoading-C59FXHzp.mjs} +1 -1
- package/dist/{useInvoiceData-Bl87gzIS.js → useInvoiceData-CxxkBTGY.js} +1 -1
- package/dist/{useInvoiceData-Di5pLPM0.mjs → useInvoiceData-Dhg-hx8C.mjs} +2 -2
- package/dist/useInvoicesList-BXZ9uV9i.js +1 -0
- package/dist/{useInvoicesList-z19cteaD.mjs → useInvoicesList-DBz7T7sM.mjs} +4 -4
- package/dist/{useLoadInitialData-CkpryfjF.mjs → useLoadInitialData-BhpIg7OF.mjs} +1 -1
- package/dist/{useLoadInitialData-CTqfiMTN.js → useLoadInitialData-BqiAFNFi.js} +1 -1
- package/dist/{usePaymentMethodOptions-BsCZnCQW.js → usePaymentMethodOptions-DszFvgKX.js} +1 -1
- package/dist/{usePaymentMethodOptions-BoGHJjng.mjs → usePaymentMethodOptions-PcMjtMSF.mjs} +2 -2
- package/dist/{usePaymentMethods-ocHmNoP7.mjs → usePaymentMethods-B5AbGWsn.mjs} +2 -2
- package/dist/{usePaymentMethods-AC-4rrR9.js → usePaymentMethods-Bb1Xbads.js} +1 -1
- package/dist/{usePayments-D85eB5l4.mjs → usePayments-DgoZoBZh.mjs} +3 -3
- package/dist/{usePayments-CgXZeWrU.js → usePayments-is5c66Z6.js} +1 -1
- package/dist/{usePortal-DVD7PcWI.js → usePortal-C4qWsJeq.js} +1 -1
- package/dist/{usePortal-B1O1zgdV.mjs → usePortal-DWLtNqBB.mjs} +1 -1
- package/dist/{useService-DF57xuDd.mjs → useService-BZqFkz7p.mjs} +1 -1
- package/dist/{useService-CHrkefKd.js → useService-DKm3QtT4.js} +1 -1
- package/dist/useSubscription-CEZJw6wZ.mjs +23 -0
- package/dist/useSubscription-DuUNc1_l.js +1 -0
- package/dist/useTopUpModal-DNyWrHDv.mjs +1012 -0
- package/dist/useTopUpModal-DeF-cfCK.js +1 -0
- package/dist/{vendor-ui-B8IlviSs.mjs → vendor-ui-BoGKOJ36.mjs} +8642 -7077
- package/dist/vendor-ui-BuRqLx74.js +1 -0
- package/package.json +14 -7
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BBEM-YPz.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-eWmC5GOT.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-56vu59V4.js +0 -1
- package/dist/component-Bg2JVC_O.mjs +0 -933
- package/dist/component-Bs8oszfD.js +0 -1
- package/dist/en-US-C0gIE4Q1.js +0 -1
- package/dist/invoices-D-OKipCg.js +0 -1
- package/dist/nl-NL-Br7muSHK.js +0 -1
- package/dist/registry-uG2isab0.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1102
- package/dist/url-B6-3PkW2.js +0 -1
- package/dist/useInvoicesList-CFk-_oVK.js +0 -1
- package/dist/useWalletBalanceItems-BL-R5foK.js +0 -1
- package/dist/vendor-ui-C3Tq-qY_.js +0 -1
package/dist/solvimon-web.css
CHANGED
|
@@ -1 +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}.expand{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-in-out}.expand--open{grid-template-rows:1fr}.expand__inner{overflow:hidden;min-height:0}@media print{.expand{grid-template-rows:1fr}.expand__inner{overflow:visible}}@media print{.card-print-avoid[data-v-9ba3ddf0]{break-inside:avoid-page;page-break-inside:avoid}}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-7ffd9c3a]{-moz-column-break-after:avoid;break-after:avoid-page;page-break-after:avoid}}@media print{.collapsible-card-print-root[data-v-f07d4bc8],.collapsible-card-print-content[data-v-f07d4bc8]{-moz-column-break-inside:auto;break-inside:auto;page-break-inside:auto}.collapsible-card-print-content[data-v-f07d4bc8]{display:block!important}}.collapsible-list-item-content[data-v-0845ebd1]{content-visibility:auto}@media print{.collapsible-list-item-content[data-v-0845ebd1]{content-visibility:visible;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-30f7434b] .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-d6f7792d],.conditions-root:hover>.conditions-with-context-menu[data-v-d6f7792d]{padding-right:3rem}.conditions-root:focus-within>.conditions-with-context-menu+.context-menu-wrapper[data-v-d6f7792d],.conditions-root:hover>.conditions-with-context-menu+.context-menu-wrapper[data-v-d6f7792d]{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-adc4d4bb]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}.pricing-item-block[data-v-adc4d4bb]{-moz-column-break-inside:avoid;break-inside:avoid;page-break-inside:avoid}}@media print{.section-label[data-v-9c62e0e7]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}}@media print{.category-heading[data-v-cb4bc141]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}[data-v-cb4bc141] .collapsible-card-print-root .card-header-print-root{border-bottom-width:0}}@media print{[data-v-e3ba2515] .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
|
+
.to-right-enter-active[data-v-c0f85806],.to-right-leave-to[data-v-c0f85806]{opacity:0;transform:translate(-10px)}.to-right-leave[data-v-c0f85806],.to-right-enter-to[data-v-c0f85806]{opacity:1;transform:translate(0)}.to-right-enter-active[data-v-c0f85806],.to-right-leave-active[data-v-c0f85806]{transition:all .25s}.to-left-enter-active[data-v-c0f85806],.to-left-leave-to[data-v-c0f85806]{opacity:0;transform:translate(10px)}.to-left-leave[data-v-c0f85806],.to-left-enter-to[data-v-c0f85806]{opacity:1;transform:translate(0)}.to-left-enter-active[data-v-c0f85806],.to-left-leave-active[data-v-c0f85806]{transition:all .25s}.to-top-enter-active[data-v-c0f85806],.to-top-leave-to[data-v-c0f85806]{opacity:0;transform:translateY(10px)}.to-top-leave[data-v-c0f85806],.to-top-enter-to[data-v-c0f85806]{opacity:1;transform:translateY(0)}.to-top-enter-active[data-v-c0f85806],.to-top-leave-active[data-v-c0f85806]{transition:all .25s}.to-bottom-enter-active[data-v-c0f85806],.to-bottom-leave-to[data-v-c0f85806]{opacity:0;transform:translateY(-10px)}.to-bottom-leave[data-v-c0f85806],.to-bottom-enter-to[data-v-c0f85806]{opacity:1;transform:translateY(0)}.to-bottom-enter-active[data-v-c0f85806],.to-bottom-leave-active[data-v-c0f85806]{transition:all .25s}.expand{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-in-out}.expand--open{grid-template-rows:1fr}.expand__inner{overflow:hidden;min-height:0}@media print{.expand{grid-template-rows:1fr}.expand__inner{overflow:visible}}@media print{.card-print-avoid[data-v-561cca98]{break-inside:avoid-page;page-break-inside:avoid}}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-fd2a04c5]{-moz-column-break-after:avoid;break-after:avoid-page;page-break-after:avoid}}@media print{.collapsible-card-print-root[data-v-1072aa4b],.collapsible-card-print-content[data-v-1072aa4b]{-moz-column-break-inside:auto;break-inside:auto;page-break-inside:auto}.collapsible-card-print-content[data-v-1072aa4b]{display:block!important}}.collapsible-list-item-content[data-v-333bc619]{content-visibility:auto}@media print{.collapsible-list-item-content[data-v-333bc619]{content-visibility:visible;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-bottom:1rem;margin-top:0;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-bottom:1rem;margin-top:0;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{color:var(--color-primary-600);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-19945196] .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))}.modal-enter-active[data-v-345d512d]{transition:opacity .25s ease-out}.modal-leave-active[data-v-345d512d]{transition:opacity .2s ease-in}.modal-enter-from[data-v-345d512d],.modal-leave-to[data-v-345d512d]{opacity:0}.modal-enter-active .modal-panel[data-v-345d512d]{transition:transform .25s cubic-bezier(.16,1,.3,1)}.modal-leave-active .modal-panel[data-v-345d512d]{transition:transform .2s ease-in}.modal-enter-from .modal-panel[data-v-345d512d],.modal-leave-to .modal-panel[data-v-345d512d]{transform:translateY(1rem)}@media(prefers-reduced-motion:reduce){.modal-enter-active .modal-panel[data-v-345d512d],.modal-leave-active .modal-panel[data-v-345d512d]{transition:none}.modal-enter-from .modal-panel[data-v-345d512d],.modal-leave-to .modal-panel[data-v-345d512d]{transform:none}}.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-2d2501dc]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}.tiered-table-print-wrapper[data-v-2d2501dc]{-moz-column-break-inside:auto;break-inside:auto;page-break-inside:auto}.tiered-table-print thead[data-v-2d2501dc]{display:table-header-group}.tiered-table-print-row[data-v-2d2501dc]{-moz-column-break-inside:avoid;break-inside:avoid;page-break-inside:avoid}}.conditions-with-context-menu[data-v-48a7a4db]{padding-right:3rem}@media print{.pricing-item-heading[data-v-24491e06]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}.pricing-item-block[data-v-24491e06]{-moz-column-break-inside:avoid;break-inside:avoid;page-break-inside:avoid}}@media print{.section-label[data-v-2ae5b045]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}}@media print{.category-heading[data-v-28988ce7]{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}[data-v-28988ce7] .collapsible-card-print-root .card-header-print-root{border-bottom-width:0}}@media print{[data-v-8abb6425] .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}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { g as getFirstPricingPlanScheduleOfType } from "./pricingPlanSchedule-C_cqUyTk.mjs";
|
|
2
|
+
function getMostRecentScheduleInfo(subscription) {
|
|
3
|
+
var _a;
|
|
4
|
+
return (_a = subscription == null ? void 0 : subscription.pricing_plan_schedule_infos) == null ? void 0 : _a.at(-1);
|
|
5
|
+
}
|
|
6
|
+
function getMostRecentPricingPlan(subscription) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
return (_b = (_a = getMostRecentScheduleInfo(subscription)) == null ? void 0 : _a.pricing_plan_version) == null ? void 0 : _b.pricing_plan;
|
|
9
|
+
}
|
|
10
|
+
function getSubscriptionName({
|
|
11
|
+
subscription,
|
|
12
|
+
fallback
|
|
13
|
+
}) {
|
|
14
|
+
var _a;
|
|
15
|
+
return (subscription == null ? void 0 : subscription.name) || ((_a = getMostRecentPricingPlan(subscription)) == null ? void 0 : _a.name) || fallback;
|
|
16
|
+
}
|
|
17
|
+
function findPricingsByIds(data, ids) {
|
|
18
|
+
const results = [];
|
|
19
|
+
function recurse(obj) {
|
|
20
|
+
if (Array.isArray(obj)) {
|
|
21
|
+
obj.forEach(recurse);
|
|
22
|
+
} else if (obj && typeof obj === "object") {
|
|
23
|
+
if (obj.object_type === "PRICING" && ids.includes(obj.id)) {
|
|
24
|
+
results.push(obj);
|
|
25
|
+
}
|
|
26
|
+
Object.values(obj).forEach(recurse);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
recurse(data);
|
|
30
|
+
return results;
|
|
31
|
+
}
|
|
32
|
+
function getPricingGroupsFromExtendedPricingPlanSubscription(subscription) {
|
|
33
|
+
return subscription.pricing_plan_schedule_infos.flatMap(
|
|
34
|
+
(info) => {
|
|
35
|
+
var _a;
|
|
36
|
+
return ((_a = info.pricing_plan_version.pricing_categories) == null ? void 0 : _a.flatMap(
|
|
37
|
+
(category) => category.pricing_groups ?? []
|
|
38
|
+
)) ?? [];
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function getFallbackTrialAndSubscriptionStartAndEndDates(subscription) {
|
|
43
|
+
var _a;
|
|
44
|
+
const result = {
|
|
45
|
+
trialStartDate: void 0,
|
|
46
|
+
trialEndDate: void 0,
|
|
47
|
+
subscriptionStartDate: void 0,
|
|
48
|
+
subscriptionEndDate: void 0
|
|
49
|
+
};
|
|
50
|
+
if (!((_a = subscription == null ? void 0 : subscription.pricing_plan_schedule_infos) == null ? void 0 : _a.length)) {
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
const now = /* @__PURE__ */ new Date();
|
|
54
|
+
const trialSchedule = getFirstPricingPlanScheduleOfType({
|
|
55
|
+
type: "TRIAL",
|
|
56
|
+
pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos
|
|
57
|
+
});
|
|
58
|
+
if (trialSchedule == null ? void 0 : trialSchedule.start_at) {
|
|
59
|
+
result.trialStartDate = now;
|
|
60
|
+
if (trialSchedule.end_at) {
|
|
61
|
+
const diff = new Date(trialSchedule.end_at).getTime() - new Date(trialSchedule.start_at).getTime();
|
|
62
|
+
result.trialEndDate = new Date(now.getTime() + diff);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const subscriptionSchedule = getFirstPricingPlanScheduleOfType({
|
|
66
|
+
type: "DEFAULT",
|
|
67
|
+
pricingPlanScheduleInfos: subscription.pricing_plan_schedule_infos
|
|
68
|
+
});
|
|
69
|
+
if (subscriptionSchedule == null ? void 0 : subscriptionSchedule.start_at) {
|
|
70
|
+
if (result.trialEndDate) {
|
|
71
|
+
result.subscriptionStartDate = result.trialEndDate;
|
|
72
|
+
} else {
|
|
73
|
+
result.subscriptionStartDate = now;
|
|
74
|
+
}
|
|
75
|
+
if (subscriptionSchedule.end_at) {
|
|
76
|
+
const diff = new Date(subscriptionSchedule.end_at).getTime() - new Date(subscriptionSchedule.start_at).getTime();
|
|
77
|
+
result.subscriptionEndDate = new Date(now.getTime() + diff);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
getSubscriptionName as a,
|
|
84
|
+
getMostRecentScheduleInfo as b,
|
|
85
|
+
getPricingGroupsFromExtendedPricingPlanSubscription as c,
|
|
86
|
+
getFallbackTrialAndSubscriptionStartAndEndDates as d,
|
|
87
|
+
findPricingsByIds as f,
|
|
88
|
+
getMostRecentPricingPlan as g
|
|
89
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=require("./pricingPlanSchedule-B9HFiXy-.js");function n(t){var n;return null==(n=null==t?void 0:t.pricing_plan_schedule_infos)?void 0:n.at(-1)}function e(t){var e,i;return null==(i=null==(e=n(t))?void 0:e.pricing_plan_version)?void 0:i.pricing_plan}exports.findPricingsByIds=function(t,n){const e=[];return function t(i){Array.isArray(i)?i.forEach(t):i&&"object"==typeof i&&("PRICING"===i.object_type&&n.includes(i.id)&&e.push(i),Object.values(i).forEach(t))}(t),e},exports.getFallbackTrialAndSubscriptionStartAndEndDates=function(n){var e;const i={trialStartDate:void 0,trialEndDate:void 0,subscriptionStartDate:void 0,subscriptionEndDate:void 0};if(!(null==(e=null==n?void 0:n.pricing_plan_schedule_infos)?void 0:e.length))return i;const r=new Date,a=t.getFirstPricingPlanScheduleOfType({type:"TRIAL",pricingPlanScheduleInfos:n.pricing_plan_schedule_infos});if((null==a?void 0:a.start_at)&&(i.trialStartDate=r,a.end_at)){const t=new Date(a.end_at).getTime()-new Date(a.start_at).getTime();i.trialEndDate=new Date(r.getTime()+t)}const o=t.getFirstPricingPlanScheduleOfType({type:"DEFAULT",pricingPlanScheduleInfos:n.pricing_plan_schedule_infos});if((null==o?void 0:o.start_at)&&(i.trialEndDate?i.subscriptionStartDate=i.trialEndDate:i.subscriptionStartDate=r,o.end_at)){const t=new Date(o.end_at).getTime()-new Date(o.start_at).getTime();i.subscriptionEndDate=new Date(r.getTime()+t)}return i},exports.getMostRecentPricingPlan=e,exports.getMostRecentScheduleInfo=n,exports.getPricingGroupsFromExtendedPricingPlanSubscription=function(t){return t.pricing_plan_schedule_infos.flatMap(t=>{var n;return(null==(n=t.pricing_plan_version.pricing_categories)?void 0:n.flatMap(t=>t.pricing_groups??[]))??[]})},exports.getSubscriptionName=function({subscription:t,fallback:n}){var i;return(null==t?void 0:t.name)||(null==(i=e(t))?void 0:i.name)||n};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as withExpand, s as serializeQueryParams, a as withPagination } from "./vendor-ui-
|
|
2
|
-
import { u as useConfig, c as createRequestService } from "./component-
|
|
1
|
+
import { w as withExpand, s as serializeQueryParams, a as withPagination } from "./vendor-ui-BoGKOJ36.mjs";
|
|
2
|
+
import { u as useConfig, c as createRequestService } from "./component-CUJ_G2Nw.mjs";
|
|
3
3
|
const ENDPOINT = "/portal/pricing-plan-subscriptions";
|
|
4
4
|
function createSubscriptionsService() {
|
|
5
5
|
const config = useConfig();
|
|
@@ -55,6 +55,10 @@ function createSubscriptionsService() {
|
|
|
55
55
|
type: "BILLING"
|
|
56
56
|
},
|
|
57
57
|
expandParams: [
|
|
58
|
+
// Expanding the schedule's own id is what makes the API return the nested
|
|
59
|
+
// `pricing_plan_schedule`, and with it the DEFAULT/TRIAL type. Without it the
|
|
60
|
+
// schedule infos carry no type at all and no schedule counts as active.
|
|
61
|
+
"pricing_plan_schedule_infos.id",
|
|
58
62
|
"pricing_plan_schedule_infos.pricing_plan_version_id",
|
|
59
63
|
"pricing_plan_schedule_infos.pricing_plan_version.pricing_plan_id"
|
|
60
64
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const i=require("./vendor-ui-
|
|
1
|
+
const i=require("./vendor-ui-BuRqLx74.js"),e=require("./component-CiKxWtdx.js"),n="/portal/pricing-plan-subscriptions";exports.createSubscriptionsService=function(){const r=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:`${r.apiUrls.config}${n}/${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.id","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:`${r.apiUrls.config}${n}${t}`,isCollection:!0})}}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, normalizeClass, createTextVNode, toDisplayString, renderSlot, createCommentVNode } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1,
|
|
2
|
+
import { _ as _sfc_main$1, q as _sfc_main$2, e as _sfc_main$3 } from "./vendor-ui-BoGKOJ36.mjs";
|
|
3
3
|
function toMinorUnitAmount(amount) {
|
|
4
4
|
const formatter = new Intl.NumberFormat(void 0, {
|
|
5
5
|
style: "currency",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./vendor-ui-BuRqLx74.js");function n(e){const t=new Intl.NumberFormat(void 0,{style:"currency",currency:e.currency}),{maximumFractionDigits:n=10}=t.resolvedOptions();return{value:Math.round(+e.quantity*Math.pow(10,n)),currency:e.currency}}const r={class:"flex flex-col items-center py-10"},o=e.defineComponent({__name:"PaymentFeedbackCard",props:{status:{default:"success",type:String},title:{type:String}},setup:n=>(o,a)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main),null,{default:e.withCtx(()=>[e.createElementVNode("div",r,[e.createVNode(e.unref(t._sfc_main$9),{icon:"success"===n.status?"check_circle":"error",class:e.normalizeClass({"text-green-400":"success"===n.status,"text-red-600":"error"===n.status}),size:"lg"},null,8,["icon","class"]),e.createVNode(e.unref(t._sfc_main$3),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1}),o.$slots.default?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,tag:"div",variant:"body-sm"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3})):e.createCommentVNode("",!0)])]),_:3}))}),a="payment_acceptor_id";function s(e){var t,n;return null==(n=null==(t=e.integration.payment_gateway)?void 0:t.adyen)?void 0:n.public_key}function i(e){var t;return(null==(t=e.options)?void 0:t.filter(e=>"ADYEN"===e.payment_gateway_variant).flatMap(e=>{return{type:(t=e.adyen).type,name:t.name,...t.issuers?{issuers:t.issuers}:{},...t.brands?{brands:t.brands}:{},...t.funding_source?{fundingSource:t.funding_source}:{},...t.configuration?{configuration:t.configuration}:{}};var t}))??[]}function c(e,t){var n,r;const o=null==(r=null==(n=null==e?void 0:e.integration.payment_gateway)?void 0:n.adyen)?void 0:r.environment;if(!o)return t.warn("ADYEN_INVALID_CONFIGURATION","No environment set for adyen advanced flow, defaulted to live"),"live";switch(o){case"TEST":return"test";case"LIVE_IN":return"live-in";case"LIVE_AU":return"live-au";case"LIVE_US":return"live-us";case"LIVE_APSE":return"live-apse";case"LIVE":return"live";default:return t.warn("ADYEN_INVALID_CONFIGURATION",`Unsupported environment "${o}" for adyen advanced flow, defaulted to "live"`),"live"}}const u=new Set(["https:","http:"]);exports.PAYMENT_ACCEPTOR_ID_QUERY_STRING=a,exports.REDIRECT_RESULT_QUERY_STRING="redirectResult",exports._sfc_main=o,exports.createReturnUrl=function({paymentAcceptorId:e,redirectUrl:t=window.location.href}){const n=new URL(t);return n.searchParams.set(a,e),n.toString()},exports.getAdyenClientKeyFromPaymentMethodOptionsResponse=s,exports.getAdyenEnvironmentFromPaymentMethodOptionsResponse=c,exports.getAdyenExpressCheckoutConfiguration=function({amount:e,countryCode:t,locale:r,paymentMethodOptionResponse:o,logger:a}){return{...e?{amount:n(e)}:{},analytics:{enabled:!1},clientKey:s(o),countryCode:t,environment:c(o,a),locale:r,paymentMethodsResponse:{paymentMethods:i(o)}}},exports.getQueryParam=function(e,t=window.location.search){return new URLSearchParams(t).get(e)},exports.mapAdyenPaymentMethods=i,exports.safeUrlRedirect=function(e){const t=function(e){try{const t=new URL(e);return u.has(t.protocol)?e:""}catch{return""}}(e);t&&window.location.replace(t)},exports.toMinorUnitAmount=n,exports.transformObjectToAdyenObject=function(e){return e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,String(t)])):void 0};
|
package/dist/{useActionDispatchProvider-BHTknMoH.js → useActionDispatchProvider-bqR_FeM4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("vue"),i=require("./component-
|
|
1
|
+
const t=require("vue"),i=require("./component-CiKxWtdx.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}};
|
package/dist/{useActionDispatchProvider-Dz8-e4gZ.mjs → useActionDispatchProvider-zB_GKeUR.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-CUJ_G2Nw.mjs";
|
|
3
3
|
function useActionDispatchProvider() {
|
|
4
4
|
const dispatchAction = inject(ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);
|
|
5
5
|
if (!dispatchAction) {
|
|
@@ -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-DAgdegIW.mjs";
|
|
3
|
+
import { u as useService } from "./useService-BZqFkz7p.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-AfRcAZ5P.js"),t=require("./useService-DKm3QtT4.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 +1 @@
|
|
|
1
|
-
const e=require("./ApiStatus-oqvUEWJx.js"),a=require("./vendor-ui-
|
|
1
|
+
const e=require("./ApiStatus-oqvUEWJx.js"),a=require("./vendor-ui-BuRqLx74.js"),t=require("vue");exports.useIncrementalLoading=function({initialData:i=[],service:n}){const u=t.shallowRef(i),l=t.ref(e.ApiStatus.Initial),s=t.ref(null),r=t.ref(1),o=t.ref(!1),c=t.computed(()=>l.value===e.ApiStatus.Loading),v=async(t,{replace:i=!1}={})=>{var v;if(!c.value)try{s.value=null,l.value=e.ApiStatus.Loading;const c=await n(t);if(!a.isApiSuccessCollectionResponse(c))return void(l.value=e.ApiStatus.Done);o.value=!!(null==(v=c.links)?void 0:v.next),u.value=i?c.data:[...u.value,...c.data],l.value=e.ApiStatus.Done,r.value=t}catch(d){s.value=function(e){return e instanceof Error?e:new Error("Something went wrong while fetching data.")}(d),l.value=e.ApiStatus.Failed}};return{items:t.computed(()=>structuredClone(u.value)),error:s,fetchInitial:async()=>await v(1,{replace:!0}),fetchMore:async()=>await v(r.value+1),fetchAll:async()=>{s.value=null,l.value=e.ApiStatus.Loading;const t=await a.getPaginatedFullList(async t=>{const i=await n(t);if(!a.isApiSuccessCollectionResponse(i))throw l.value=e.ApiStatus.Failed,new Error("message"in i?i.message:"Request failed");return i});u.value=t.data,l.value=e.ApiStatus.Done},isPending:c,hasNextBatch:o}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ApiStatus } from "./ApiStatus-CyNDp_op.mjs";
|
|
2
|
-
import { h as getPaginatedFullList,
|
|
2
|
+
import { h as getPaginatedFullList, j as isApiSuccessCollectionResponse } from "./vendor-ui-BoGKOJ36.mjs";
|
|
3
3
|
import { shallowRef, ref, computed } from "vue";
|
|
4
4
|
function toError(error) {
|
|
5
5
|
return error instanceof Error ? error : new Error("Something went wrong while fetching data.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./invoices-
|
|
1
|
+
const e=require("./invoices-BHgajZHq.js"),t=require("./payments-DMvmB5vg.js"),n=require("vue"),a=require("./useWatchDebounced-C_YxgoQ6.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,5 +1,5 @@
|
|
|
1
|
-
import { c as createInvoicesService } from "./invoices-
|
|
2
|
-
import { c as createPaymentsService } from "./payments-
|
|
1
|
+
import { c as createInvoicesService } from "./invoices-BXDgW8ch.mjs";
|
|
2
|
+
import { c as createPaymentsService } from "./payments-DV6csRej.mjs";
|
|
3
3
|
import { ref, onMounted } from "vue";
|
|
4
4
|
import { u as useWatchDebounced } from "./useWatchDebounced-Zmxd6InB.mjs";
|
|
5
5
|
const useData = ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("vue"),t=require("./vendor-ui-BuRqLx74.js"),i=require("./useActionDispatchProvider-bqR_FeM4.js"),o=require("./useIncrementalLoading-BgWuwoMo.js"),a=require("./invoices-BHgajZHq.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$12),{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$13),{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$13),{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$13),{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$13),{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$14),{key:i.id,class:"sv-table__row sv-invoices-list__row"},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$15),{"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$3),{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$3),{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$15),{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$15),{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$3),{tag:"span",weight:"semibold"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$16),{value:i.invoice_amount_including_tax},null,8,["value"])]),_:2},1024)]),_:2},1024),e.createVNode(e.unref(t._sfc_main$15),{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$5),{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$1),{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$1),{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),{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,8 +1,8 @@
|
|
|
1
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,
|
|
3
|
-
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-
|
|
4
|
-
import { u as useIncrementalLoading } from "./useIncrementalLoading-
|
|
5
|
-
import { c as createInvoicesService } from "./invoices-
|
|
2
|
+
import { u as useIntl, x as _sfc_main$2, T as TableHead, y as TableHeadRow, z as _sfc_main$3, A as TableBody, B as _sfc_main$4, C as _sfc_main$5, e as _sfc_main$6, D as _sfc_main$7, l as _sfc_main$8, c as _sfc_main$9, _ as _sfc_main$a } from "./vendor-ui-BoGKOJ36.mjs";
|
|
3
|
+
import { u as useActionDispatchProvider } from "./useActionDispatchProvider-zB_GKeUR.mjs";
|
|
4
|
+
import { u as useIncrementalLoading } from "./useIncrementalLoading-C59FXHzp.mjs";
|
|
5
|
+
import { c as createInvoicesService } from "./invoices-BXDgW8ch.mjs";
|
|
6
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" };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("vue"),a=require("./component-
|
|
1
|
+
const e=require("vue"),a=require("./component-CiKxWtdx.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}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./useService-
|
|
1
|
+
const e=require("./useService-DKm3QtT4.js"),t=require("./paymentMethods-BMcc-eTl.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 useService } from "./useService-
|
|
2
|
-
import { c as createPaymentMethodsService } from "./paymentMethods-
|
|
1
|
+
import { u as useService } from "./useService-BZqFkz7p.mjs";
|
|
2
|
+
import { c as createPaymentMethodsService } from "./paymentMethods-xzFD2L30.mjs";
|
|
3
3
|
function hasCustomerId(payload) {
|
|
4
4
|
return payload.customerId !== void 0;
|
|
5
5
|
}
|
|
@@ -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-C59FXHzp.mjs";
|
|
2
|
+
import { c as createPaymentMethodsService } from "./paymentMethods-xzFD2L30.mjs";
|
|
3
3
|
function usePaymentMethods({
|
|
4
4
|
customerId,
|
|
5
5
|
pageSize = 15
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./useIncrementalLoading-
|
|
1
|
+
const e=require("./useIncrementalLoading-BgWuwoMo.js"),t=require("./paymentMethods-BMcc-eTl.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}})})};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createInvoicesService } from "./invoices-
|
|
2
|
-
import { u as useService } from "./useService-
|
|
3
|
-
import { c as createPaymentsService } from "./payments-
|
|
1
|
+
import { c as createInvoicesService } from "./invoices-BXDgW8ch.mjs";
|
|
2
|
+
import { u as useService } from "./useService-BZqFkz7p.mjs";
|
|
3
|
+
import { c as createPaymentsService } from "./payments-DV6csRej.mjs";
|
|
4
4
|
function useInvoice({ invoiceId }) {
|
|
5
5
|
const { getInvoice, getInvoicePdf: downloadInvoicePdf } = createInvoicesService();
|
|
6
6
|
const service = () => getInvoice(invoiceId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./invoices-
|
|
1
|
+
const e=require("./invoices-BHgajZHq.js"),i=require("./useService-DKm3QtT4.js"),t=require("./payments-DMvmB5vg.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}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=require("vue"),e=require("./component-
|
|
1
|
+
const r=require("vue"),e=require("./component-CiKxWtdx.js");exports.usePortal=function(){const o=r.inject(e.PORTAL_INJECTION_KEY);if(!o)throw new Error("PortalProvider is not provided");return o};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as ApiStatus } from "./ApiStatus-CyNDp_op.mjs";
|
|
2
2
|
import { shallowRef, ref, computed } from "vue";
|
|
3
|
-
import {
|
|
3
|
+
import { r as isEqual } from "./vendor-ui-BoGKOJ36.mjs";
|
|
4
4
|
function updateRefIfChanged(ref2, value) {
|
|
5
5
|
if (isEqual(ref2.value, value)) {
|
|
6
6
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./ApiStatus-oqvUEWJx.js"),t=require("vue"),r=require("./vendor-ui-
|
|
1
|
+
const e=require("./ApiStatus-oqvUEWJx.js"),t=require("vue"),r=require("./vendor-ui-BuRqLx74.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,23 @@
|
|
|
1
|
+
import { u as useService } from "./useService-BZqFkz7p.mjs";
|
|
2
|
+
import { c as createSubscriptionsService } from "./subscriptions-CrNDM9qa.mjs";
|
|
3
|
+
function useSubscription({
|
|
4
|
+
subscriptionId
|
|
5
|
+
}) {
|
|
6
|
+
const { getSubscription } = createSubscriptionsService();
|
|
7
|
+
const { data, execute: get, apiStatus, error, isPending } = useService({
|
|
8
|
+
service: () => getSubscription({ id: subscriptionId, expanded: true })
|
|
9
|
+
});
|
|
10
|
+
const withPlanData = (subscription) => {
|
|
11
|
+
return subscription.pricing_plan_schedule_infos.map((schedule) => {
|
|
12
|
+
return {
|
|
13
|
+
schedule: schedule.pricing_plan_schedule,
|
|
14
|
+
selectedPricingPlan: schedule.pricing_plan_version.pricing_plan,
|
|
15
|
+
selectedPricingPlanVersion: schedule.pricing_plan_version
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
return { subscription: data, withPlanData, apiStatus, error, get, isPending };
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
useSubscription as u
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./useService-DKm3QtT4.js"),i=require("./subscriptions-DC-mxa17.js");exports.useSubscription=function({subscriptionId:n}){const{getSubscription:r}=i.createSubscriptionsService(),{data:s,execute:c,apiStatus:t,error:p,isPending:a}=e.useService({service:()=>r({id:n,expanded:!0})});return{subscription:s,withPlanData:e=>e.pricing_plan_schedule_infos.map(e=>({schedule:e.pricing_plan_schedule,selectedPricingPlan:e.pricing_plan_version.pricing_plan,selectedPricingPlanVersion:e.pricing_plan_version})),apiStatus:t,error:p,get:c,isPending:a}};
|