@solvimon/solvimon-web 0.1.0-alpha.16 → 0.1.0-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/README.md +33 -31
  2. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs +238 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +1 -0
  4. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BYBAO4Au.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BWnZ98RQ.mjs} +2 -2
  5. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BI3Lg7nO.js → BillingInformation.vue_vue_type_script_setup_true_lang-DurgWlLC.js} +1 -1
  6. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CTnn1gkW.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D7gL7dZX.mjs} +3 -3
  7. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +1 -0
  8. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs +2654 -0
  9. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +1 -0
  10. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +53 -0
  11. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +1 -0
  12. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +1 -0
  13. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DbY35gE_.mjs} +1 -1
  14. package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js → InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js} +1 -1
  15. package/dist/{InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs → InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs} +1 -1
  16. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +1 -0
  17. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBMgilG2.mjs +153 -0
  18. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs +52 -0
  19. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +1 -0
  20. package/dist/{PaymentHistoryBlock-BKMttUyk.mjs → PaymentHistoryBlock-Bxr8lUGs.mjs} +1 -1
  21. package/dist/{PaymentHistoryBlock-BGbTy4Se.js → PaymentHistoryBlock-COjIVYX4.js} +1 -1
  22. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +1 -0
  23. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs} +1 -1
  24. package/dist/{PaymentIntegrationForm-D4QupHWl.js → PaymentIntegrationForm-BSauhuKv.js} +1 -1
  25. package/dist/{PaymentIntegrationForm-CypW6fZY.mjs → PaymentIntegrationForm-PIT8gHYN.mjs} +1 -1
  26. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +1 -0
  27. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-COO2ZUhN.mjs +148 -0
  28. package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +1 -0
  29. package/dist/PaymentIntegrationFormAdyen-Cjj9aK0E.mjs +729 -0
  30. package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +1 -0
  31. package/dist/PaymentIntegrationFormStripe-arpua_ZT.mjs +545 -0
  32. package/dist/PaymentMethodForm-B7T5rrNz.mjs +4 -0
  33. package/dist/PaymentMethodForm-CLz3ZS-b.js +1 -0
  34. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-B8eNptZp.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs} +25 -14
  35. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js +1 -0
  36. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BUTqn4Ey.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs} +77 -31
  37. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +1 -0
  38. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs} +115 -68
  39. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +1 -0
  40. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs +37 -0
  41. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +1 -0
  42. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +1 -0
  43. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs +100 -0
  44. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +1 -0
  45. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DB1p61kZ.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs} +22 -119
  46. package/dist/adyen-BMDZQBUG.js +1 -0
  47. package/dist/{url-1Lbg5Yni.mjs → adyen-Ba-mF3Jy.mjs} +31 -73
  48. package/dist/component--Y7Igv5i.mjs +1022 -0
  49. package/dist/component-DIy1hvJM.js +1 -0
  50. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  51. package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
  52. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  53. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +4 -4
  54. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  55. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
  56. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  57. package/dist/components/Invoice/Invoice.es.js +7 -7
  58. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  59. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
  60. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -1
  61. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +4 -4
  62. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  63. package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
  64. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  65. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
  66. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  67. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +6 -6
  68. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  69. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +7 -58
  70. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  71. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
  72. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  73. package/dist/components/WalletBalances/WalletBalances.es.js +25 -9
  74. package/dist/core/action-request.types.d.ts +3 -15
  75. package/dist/core/index.cjs.js +1 -1
  76. package/dist/core/index.es.js +1 -1
  77. package/dist/core/types.d.ts +4 -2
  78. package/dist/{customer-Bv_fqXzO.mjs → customer-DovIxTG1.mjs} +1 -1
  79. package/dist/{customer-_W8gIX5m.js → customer-brfznoHY.js} +1 -1
  80. package/dist/en-US-BvOHPudj.js +1 -0
  81. package/dist/{en-US-DAgOSlgv.mjs → en-US-CXDO3qhq.mjs} +121 -36
  82. package/dist/index-BMWWP8xj.js +1 -0
  83. package/dist/index-Do7kzLpg.mjs +265 -0
  84. package/dist/index.cjs.js +1 -1
  85. package/dist/index.d.ts +2 -1
  86. package/dist/index.es.js +7 -4
  87. package/dist/invoices-Cf3dSYSj.js +1 -0
  88. package/dist/{invoices-BGb0AwVF.mjs → invoices-Dk-z04lg.mjs} +32 -16
  89. package/dist/{nl-NL-DCsmrA8A.mjs → nl-NL-BgL_PuBn.mjs} +126 -40
  90. package/dist/nl-NL-COGUFg60.js +1 -0
  91. package/dist/{paymentMethods-DvqlWe96.mjs → paymentMethods-BnF1XYS1.mjs} +21 -5
  92. package/dist/paymentMethods-DVDC_WfL.js +1 -0
  93. package/dist/{payments-DMDDI3MK.js → payments-DVZFO5yb.js} +1 -1
  94. package/dist/{payments-CpzTVrQM.mjs → payments-TnRjtlOw.mjs} +1 -1
  95. package/dist/pricing-CuYndX6t.js +1 -0
  96. package/dist/pricing-GwLCiSzs.mjs +19 -0
  97. package/dist/pricingPlanSchedule-B9HFiXy-.js +1 -0
  98. package/dist/pricingPlanSchedule-CXG3CQ61.mjs +146 -0
  99. package/dist/{registry-B-If1W_u.mjs → registry-Ck0Gb6rj.mjs} +7 -4
  100. package/dist/registry-Cra6yoB4.js +1 -0
  101. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  102. package/dist/screens/Checkout/Checkout.es.js +429 -689
  103. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  104. package/dist/screens/CustomerOverview/CustomerOverview.es.js +61 -39
  105. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
  106. package/dist/screens/PayInvoice/PayInvoice.es.js +30 -13
  107. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -1
  108. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +28 -18
  109. package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +3 -0
  110. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +1 -0
  111. package/dist/screens/SubscriptionDetails/SubscriptionDetails.es.js +889 -0
  112. package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +3 -0
  113. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +1 -0
  114. package/dist/screens/SubscriptionManagement/SubscriptionManagement.es.js +716 -0
  115. package/dist/solvimon-web.css +1 -1
  116. package/dist/subscription-C41lG-rH.mjs +89 -0
  117. package/dist/subscription-b0OPx8Du.js +1 -0
  118. package/dist/subscriptions-BFCKVHnP.js +1 -0
  119. package/dist/subscriptions-vEE4Y7qm.mjs +58 -0
  120. package/dist/{useActionDispatchProvider-Dz8-e4gZ.mjs → useActionDispatchProvider-BlEf-RZ5.mjs} +1 -1
  121. package/dist/{useActionDispatchProvider-BHTknMoH.js → useActionDispatchProvider-aJOy3kr1.js} +1 -1
  122. package/dist/{useCustomer-Z24KchWC.js → useCustomer-C1XTqmrQ.js} +1 -1
  123. package/dist/{useCustomer-VVJi8z2w.mjs → useCustomer-Cw8LXT6S.mjs} +2 -2
  124. package/dist/{useIncrementalLoading-DmOT2MXH.mjs → useIncrementalLoading-8WtKZ-mP.mjs} +2 -2
  125. package/dist/useIncrementalLoading-CkY2klIW.js +1 -0
  126. package/dist/{useInvoiceData-Bl87gzIS.js → useInvoiceData-BrxMo4Zt.js} +1 -1
  127. package/dist/{useInvoiceData-Di5pLPM0.mjs → useInvoiceData-Cy_ysMsq.mjs} +2 -2
  128. package/dist/{useInvoicesList-z19cteaD.mjs → useInvoicesList-DMsZn1tE.mjs} +4 -4
  129. package/dist/useInvoicesList-DmisMQzy.js +1 -0
  130. package/dist/{useLoadInitialData-CkpryfjF.mjs → useLoadInitialData-BP1v7qhd.mjs} +1 -1
  131. package/dist/{useLoadInitialData-CTqfiMTN.js → useLoadInitialData-_BjCD0Jc.js} +1 -1
  132. package/dist/{usePaymentMethodOptions-BoGHJjng.mjs → usePaymentMethodOptions-CWfGvW0U.mjs} +9 -3
  133. package/dist/{usePaymentMethodOptions-BsCZnCQW.js → usePaymentMethodOptions-xeSTmaVo.js} +1 -1
  134. package/dist/{usePaymentMethods-AC-4rrR9.js → usePaymentMethods-CAFMvSOr.js} +1 -1
  135. package/dist/{usePaymentMethods-ocHmNoP7.mjs → usePaymentMethods-Cyk4cjoE.mjs} +2 -2
  136. package/dist/{usePayments-CgXZeWrU.js → usePayments-BieVBaz-.js} +1 -1
  137. package/dist/{usePayments-D85eB5l4.mjs → usePayments-D88XSZfS.mjs} +10 -4
  138. package/dist/{usePortal-B1O1zgdV.mjs → usePortal-0NDlbFr9.mjs} +1 -1
  139. package/dist/{usePortal-DVD7PcWI.js → usePortal-B954nyEB.js} +1 -1
  140. package/dist/{useService-CHrkefKd.js → useService-BiljI7XA.js} +1 -1
  141. package/dist/{useService-DF57xuDd.mjs → useService-CqfJi5ST.mjs} +1 -1
  142. package/dist/useSubscription-9rJpFNUF.mjs +29 -0
  143. package/dist/useSubscription-k3limdu_.js +1 -0
  144. package/dist/vendor-ui-Dfh3_g4q.js +1 -0
  145. package/dist/{vendor-ui-B8IlviSs.mjs → vendor-ui-ItGf7wJV.mjs} +8006 -6329
  146. package/package.json +23 -9
  147. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C_uHr21N.js +0 -1
  148. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js +0 -1
  149. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js +0 -1
  150. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BBEM-YPz.js +0 -1
  151. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CrGSfZZs.mjs +0 -1537
  152. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-eWmC5GOT.js +0 -1
  153. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-Be_fF-R_.js +0 -1
  154. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +0 -1
  155. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-56vu59V4.js +0 -1
  156. package/dist/component-Bg2JVC_O.mjs +0 -933
  157. package/dist/component-Bs8oszfD.js +0 -1
  158. package/dist/en-US-C0gIE4Q1.js +0 -1
  159. package/dist/index-CzL1ZcGi.mjs +0 -85
  160. package/dist/index-DRdBmZ2-.js +0 -1
  161. package/dist/invoices-D-OKipCg.js +0 -1
  162. package/dist/nl-NL-Br7muSHK.js +0 -1
  163. package/dist/paymentMethods-DIbB759g.js +0 -1
  164. package/dist/registry-uG2isab0.js +0 -1
  165. package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
  166. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
  167. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1102
  168. package/dist/subscriptions-BPYyv09M.mjs +0 -75
  169. package/dist/subscriptions-CC61I6Nj.js +0 -1
  170. package/dist/url-B6-3PkW2.js +0 -1
  171. package/dist/useIncrementalLoading-CuSndpP2.js +0 -1
  172. package/dist/useInvoicesList-CFk-_oVK.js +0 -1
  173. package/dist/useWalletBalanceItems-BL-R5foK.js +0 -1
  174. package/dist/useWalletBalanceItems-COQDLfoZ.mjs +0 -109
  175. package/dist/vendor-ui-C3Tq-qY_.js +0 -1
@@ -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-af6dc6e1],.collapsible-card-print-content[data-v-af6dc6e1]{-moz-column-break-inside:auto;break-inside:auto;page-break-inside:auto}.collapsible-card-print-content[data-v-af6dc6e1]{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-f0379c5c]{transition:opacity .25s ease-out}.modal-leave-active[data-v-f0379c5c]{transition:opacity .2s ease-in}.modal-enter-from[data-v-f0379c5c],.modal-leave-to[data-v-f0379c5c]{opacity:0}.modal-enter-active .modal-panel[data-v-f0379c5c]{transition:transform .25s cubic-bezier(.16,1,.3,1)}.modal-leave-active .modal-panel[data-v-f0379c5c]{transition:transform .2s ease-in}.modal-enter-from .modal-panel[data-v-f0379c5c],.modal-leave-to .modal-panel[data-v-f0379c5c]{transform:translateY(1rem)}@media(prefers-reduced-motion:reduce){.modal-enter-active .modal-panel[data-v-f0379c5c],.modal-leave-active .modal-panel[data-v-f0379c5c]{transition:none}.modal-enter-from .modal-panel[data-v-f0379c5c],.modal-leave-to .modal-panel[data-v-f0379c5c]{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-CXG3CQ61.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};
@@ -0,0 +1 @@
1
+ const i=require("./vendor-ui-Dfh3_g4q.js"),e=require("./component-DIy1hvJM.js"),n="/portal/pricing-plan-subscriptions",t={CANCEL:"NEXT_BILLING_PERIOD",RENEW:"UNDO"};exports.createSubscriptionsService=function(){const r=e.useConfig(),a=e.createRequestService();return{getSubscription:function({id:t,expanded:s=!1}){return a({url:`${r.apiUrls.config}${n}/${t}${i.serializeQueryParams(i.withExpand({expandParams:e.EXPAND_ALL,expand:s}))}`})},getActiveSubscriptions:function({customerId:t,pagination:s}){const o=s??{},c=i.withExpand({initialParams:{customer_id:t,statuses:["ACTIVE"],type:"BILLING"},expandParams:e.EXPAND_ALL}),u=i.serializeQueryParams(i.withPagination(c,o));return a({url:`${r.apiUrls.config}${n}${u}`,isCollection:!0})},setSubscriptionCancellation:function({id:i,variant:e}){return a({url:`${r.apiUrls.config}${n}/${i}/cancel`,data:{type:t[e]},options:{method:"POST"}})}}};
@@ -0,0 +1,58 @@
1
+ import { w as withExpand, s as serializeQueryParams, d as withPagination } from "./vendor-ui-ItGf7wJV.mjs";
2
+ import { u as useConfig, c as createRequestService, E as EXPAND_ALL } from "./component--Y7Igv5i.mjs";
3
+ const ENDPOINT = "/portal/pricing-plan-subscriptions";
4
+ const SUBSCRIPTION_CANCELLATION_TYPES = {
5
+ CANCEL: "NEXT_BILLING_PERIOD",
6
+ RENEW: "UNDO"
7
+ };
8
+ function createSubscriptionsService() {
9
+ const config = useConfig();
10
+ const request = createRequestService();
11
+ function getSubscription({
12
+ id,
13
+ expanded = false
14
+ }) {
15
+ return request({
16
+ url: `${config.apiUrls.config}${ENDPOINT}/${id}${serializeQueryParams(
17
+ withExpand({ expandParams: EXPAND_ALL, expand: expanded })
18
+ )}`
19
+ });
20
+ }
21
+ function getActiveSubscriptions({
22
+ customerId,
23
+ pagination
24
+ }) {
25
+ const paginationParams = pagination ?? {};
26
+ const queryWithExpand = withExpand({
27
+ initialParams: {
28
+ customer_id: customerId,
29
+ statuses: ["ACTIVE"],
30
+ type: "BILLING"
31
+ },
32
+ expandParams: EXPAND_ALL
33
+ });
34
+ const queryString = serializeQueryParams(withPagination(queryWithExpand, paginationParams));
35
+ return request({
36
+ url: `${config.apiUrls.config}${ENDPOINT}${queryString}`,
37
+ isCollection: true
38
+ });
39
+ }
40
+ function setSubscriptionCancellation({
41
+ id,
42
+ variant
43
+ }) {
44
+ return request({
45
+ url: `${config.apiUrls.config}${ENDPOINT}/${id}/cancel`,
46
+ data: { type: SUBSCRIPTION_CANCELLATION_TYPES[variant] },
47
+ options: { method: "POST" }
48
+ });
49
+ }
50
+ return {
51
+ getSubscription,
52
+ getActiveSubscriptions,
53
+ setSubscriptionCancellation
54
+ };
55
+ }
56
+ export {
57
+ createSubscriptionsService as c
58
+ };
@@ -1,5 +1,5 @@
1
1
  import { inject } from "vue";
2
- import { A as ACTION_DISPATCHER_PROVIDER_INJECTION_KEY } from "./component-Bg2JVC_O.mjs";
2
+ import { A as ACTION_DISPATCHER_PROVIDER_INJECTION_KEY } from "./component--Y7Igv5i.mjs";
3
3
  function useActionDispatchProvider() {
4
4
  const dispatchAction = inject(ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);
5
5
  if (!dispatchAction) {
@@ -1 +1 @@
1
- const t=require("vue"),i=require("./component-Bs8oszfD.js");exports.useActionDispatchProvider=function(){const o=t.inject(i.ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);if(!o)throw new Error("dispatchAction is not provided");return{dispatchAction:o}};
1
+ const t=require("vue"),i=require("./component-DIy1hvJM.js");exports.useActionDispatchProvider=function(){const o=t.inject(i.ACTION_DISPATCHER_PROVIDER_INJECTION_KEY);if(!o)throw new Error("dispatchAction is not provided");return{dispatchAction:o}};
@@ -1 +1 @@
1
- const e=require("vue"),r=require("./customer-_W8gIX5m.js"),t=require("./useService-CHrkefKd.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
+ const e=require("vue"),r=require("./customer-brfznoHY.js"),t=require("./useService-BiljI7XA.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,6 +1,6 @@
1
1
  import { ref } from "vue";
2
- import { c as createCustomerService } from "./customer-Bv_fqXzO.mjs";
3
- import { u as useService } from "./useService-DF57xuDd.mjs";
2
+ import { c as createCustomerService } from "./customer-DovIxTG1.mjs";
3
+ import { u as useService } from "./useService-CqfJi5ST.mjs";
4
4
  function useCustomer({ customerId }) {
5
5
  const { getCustomer, updateCustomer } = createCustomerService();
6
6
  const customer = ref();
@@ -1,5 +1,5 @@
1
1
  import { A as ApiStatus } from "./ApiStatus-CyNDp_op.mjs";
2
- import { h as getPaginatedFullList, i as isApiSuccessCollectionResponse } from "./vendor-ui-B8IlviSs.mjs";
2
+ import { g as getPaginatedFullList, h as isApiSuccessCollectionResponse } from "./vendor-ui-ItGf7wJV.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.");
@@ -51,7 +51,7 @@ function useIncrementalLoading({
51
51
  const fetchMore = async () => {
52
52
  return await loadPage(page.value + 1);
53
53
  };
54
- const nonMutableItems = computed(() => structuredClone(items.value));
54
+ const nonMutableItems = computed(() => [...items.value]);
55
55
  const fetchInitial = async () => {
56
56
  return await loadPage(1, { replace: true });
57
57
  };
@@ -0,0 +1 @@
1
+ const e=require("./ApiStatus-oqvUEWJx.js"),a=require("./vendor-ui-Dfh3_g4q.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(p){s.value=function(e){return e instanceof Error?e:new Error("Something went wrong while fetching data.")}(p),l.value=e.ApiStatus.Failed}};return{items:t.computed(()=>[...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 +1 @@
1
- const e=require("./invoices-D-OKipCg.js"),t=require("./payments-DMDDI3MK.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
+ const e=require("./invoices-Cf3dSYSj.js"),t=require("./payments-DVZFO5yb.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-BGb0AwVF.mjs";
2
- import { c as createPaymentsService } from "./payments-CpzTVrQM.mjs";
1
+ import { c as createInvoicesService } from "./invoices-Dk-z04lg.mjs";
2
+ import { c as createPaymentsService } from "./payments-TnRjtlOw.mjs";
3
3
  import { ref, onMounted } from "vue";
4
4
  import { u as useWatchDebounced } from "./useWatchDebounced-Zmxd6InB.mjs";
5
5
  const useData = ({
@@ -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, o as _sfc_main$2, T as TableHead, p as TableHeadRow, q as _sfc_main$3, r as TableBody, t as _sfc_main$4, v as _sfc_main$5, e as _sfc_main$6, x as _sfc_main$7, k as _sfc_main$8, c as _sfc_main$9, _ as _sfc_main$a } from "./vendor-ui-B8IlviSs.mjs";
3
- import { u as useActionDispatchProvider } from "./useActionDispatchProvider-Dz8-e4gZ.mjs";
4
- import { u as useIncrementalLoading } from "./useIncrementalLoading-DmOT2MXH.mjs";
5
- import { c as createInvoicesService } from "./invoices-BGb0AwVF.mjs";
2
+ import { u as useIntl, v as _sfc_main$2, T as TableHead, x as TableHeadRow, y as _sfc_main$3, z as TableBody, A as _sfc_main$4, B as _sfc_main$5, a as _sfc_main$6, C as _sfc_main$7, l as _sfc_main$8, k as _sfc_main$9, b as _sfc_main$a } from "./vendor-ui-ItGf7wJV.mjs";
3
+ import { u as useActionDispatchProvider } from "./useActionDispatchProvider-BlEf-RZ5.mjs";
4
+ import { u as useIncrementalLoading } from "./useIncrementalLoading-8WtKZ-mP.mjs";
5
+ import { c as createInvoicesService } from "./invoices-Dk-z04lg.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" };
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./vendor-ui-Dfh3_g4q.js"),i=require("./useActionDispatchProvider-aJOy3kr1.js"),o=require("./useIncrementalLoading-CkY2klIW.js"),a=require("./invoices-Cf3dSYSj.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$11),{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$12),{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$12),{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$12),{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$12),{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$13),{key:i.id,class:"sv-table__row sv-invoices-list__row"},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$14),{"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$1),{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$1),{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$14),{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$14),{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$1),{tag:"span",weight:"semibold"},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$15),{value:i.invoice_amount_including_tax},null,8,["value"])]),_:2},1024)]),_:2},1024),e.createVNode(e.unref(t._sfc_main$14),{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$7),{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$6),{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$6),{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$2),{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,5 +1,5 @@
1
1
  import { ref, onMounted } from "vue";
2
- import { a as useLogger } from "./component-Bg2JVC_O.mjs";
2
+ import { a as useLogger } from "./component--Y7Igv5i.mjs";
3
3
  function useLoadInitialData(...services) {
4
4
  const isLoading = ref(true);
5
5
  const logger = useLogger();
@@ -1 +1 @@
1
- const e=require("vue"),a=require("./component-Bs8oszfD.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
+ const e=require("vue"),a=require("./component-DIy1hvJM.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,5 +1,5 @@
1
- import { u as useService } from "./useService-DF57xuDd.mjs";
2
- import { c as createPaymentMethodsService } from "./paymentMethods-DvqlWe96.mjs";
1
+ import { u as useService } from "./useService-CqfJi5ST.mjs";
2
+ import { c as createPaymentMethodsService } from "./paymentMethods-BnF1XYS1.mjs";
3
3
  function hasCustomerId(payload) {
4
4
  return payload.customerId !== void 0;
5
5
  }
@@ -15,7 +15,13 @@ function usePaymentMethodOptions() {
15
15
  country: payload.country
16
16
  });
17
17
  const initialValue = [];
18
- const { data, execute: get, apiStatus, error, isPending } = useService({
18
+ const {
19
+ data,
20
+ execute: get,
21
+ apiStatus,
22
+ error,
23
+ isPending
24
+ } = useService({
19
25
  initialValue,
20
26
  service
21
27
  });
@@ -1 +1 @@
1
- const e=require("./useService-CHrkefKd.js"),t=require("./paymentMethods-DIbB759g.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
+ const e=require("./useService-BiljI7XA.js"),t=require("./paymentMethods-DVDC_WfL.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 +1 @@
1
- const e=require("./useIncrementalLoading-CuSndpP2.js"),t=require("./paymentMethods-DIbB759g.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
+ const e=require("./useIncrementalLoading-CkY2klIW.js"),t=require("./paymentMethods-DVDC_WfL.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,5 +1,5 @@
1
- import { u as useIncrementalLoading } from "./useIncrementalLoading-DmOT2MXH.mjs";
2
- import { c as createPaymentMethodsService } from "./paymentMethods-DvqlWe96.mjs";
1
+ import { u as useIncrementalLoading } from "./useIncrementalLoading-8WtKZ-mP.mjs";
2
+ import { c as createPaymentMethodsService } from "./paymentMethods-BnF1XYS1.mjs";
3
3
  function usePaymentMethods({
4
4
  customerId,
5
5
  pageSize = 15
@@ -1 +1 @@
1
- const e=require("./invoices-D-OKipCg.js"),i=require("./useService-CHrkefKd.js"),t=require("./payments-DMDDI3MK.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
+ const e=require("./invoices-Cf3dSYSj.js"),i=require("./useService-BiljI7XA.js"),t=require("./payments-DVZFO5yb.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,6 +1,6 @@
1
- import { c as createInvoicesService } from "./invoices-BGb0AwVF.mjs";
2
- import { u as useService } from "./useService-DF57xuDd.mjs";
3
- import { c as createPaymentsService } from "./payments-CpzTVrQM.mjs";
1
+ import { c as createInvoicesService } from "./invoices-Dk-z04lg.mjs";
2
+ import { u as useService } from "./useService-CqfJi5ST.mjs";
3
+ import { c as createPaymentsService } from "./payments-TnRjtlOw.mjs";
4
4
  function useInvoice({ invoiceId }) {
5
5
  const { getInvoice, getInvoicePdf: downloadInvoicePdf } = createInvoicesService();
6
6
  const service = () => getInvoice(invoiceId);
@@ -24,7 +24,13 @@ function useInvoice({ invoiceId }) {
24
24
  }
25
25
  function usePayments() {
26
26
  const { getPayments } = createPaymentsService();
27
- const { data, execute: get, error, apiStatus, isPending } = useService({
27
+ const {
28
+ data,
29
+ execute: get,
30
+ error,
31
+ apiStatus,
32
+ isPending
33
+ } = useService({
28
34
  service: getPayments,
29
35
  isCollection: true
30
36
  });
@@ -1,5 +1,5 @@
1
1
  import { inject } from "vue";
2
- import { P as PORTAL_INJECTION_KEY } from "./component-Bg2JVC_O.mjs";
2
+ import { P as PORTAL_INJECTION_KEY } from "./component--Y7Igv5i.mjs";
3
3
  function usePortal() {
4
4
  const portal = inject(PORTAL_INJECTION_KEY);
5
5
  if (!portal) {
@@ -1 +1 @@
1
- const r=require("vue"),e=require("./component-Bs8oszfD.js");exports.usePortal=function(){const o=r.inject(e.PORTAL_INJECTION_KEY);if(!o)throw new Error("PortalProvider is not provided");return o};
1
+ const r=require("vue"),e=require("./component-DIy1hvJM.js");exports.usePortal=function(){const o=r.inject(e.PORTAL_INJECTION_KEY);if(!o)throw new Error("PortalProvider is not provided");return o};
@@ -1 +1 @@
1
- const e=require("./ApiStatus-oqvUEWJx.js"),t=require("vue"),r=require("./vendor-ui-C3Tq-qY_.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}};
1
+ const e=require("./ApiStatus-oqvUEWJx.js"),t=require("vue"),r=require("./vendor-ui-Dfh3_g4q.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}};
@@ -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 { n as isEqual } from "./vendor-ui-B8IlviSs.mjs";
3
+ import { q as isEqual } from "./vendor-ui-ItGf7wJV.mjs";
4
4
  function updateRefIfChanged(ref2, value) {
5
5
  if (isEqual(ref2.value, value)) {
6
6
  return;
@@ -0,0 +1,29 @@
1
+ import { u as useService } from "./useService-CqfJi5ST.mjs";
2
+ import { c as createSubscriptionsService } from "./subscriptions-vEE4Y7qm.mjs";
3
+ function useSubscription({
4
+ subscriptionId
5
+ }) {
6
+ const { getSubscription } = createSubscriptionsService();
7
+ const {
8
+ data,
9
+ execute: get,
10
+ apiStatus,
11
+ error,
12
+ isPending
13
+ } = useService({
14
+ service: () => getSubscription({ id: subscriptionId, expanded: true })
15
+ });
16
+ const withPlanData = (subscription) => {
17
+ return subscription.pricing_plan_schedule_infos.map((schedule) => {
18
+ return {
19
+ schedule: schedule.pricing_plan_schedule,
20
+ selectedPricingPlan: schedule.pricing_plan_version.pricing_plan,
21
+ selectedPricingPlanVersion: schedule.pricing_plan_version
22
+ };
23
+ });
24
+ };
25
+ return { subscription: data, withPlanData, apiStatus, error, get, isPending };
26
+ }
27
+ export {
28
+ useSubscription as u
29
+ };
@@ -0,0 +1 @@
1
+ const e=require("./useService-BiljI7XA.js"),i=require("./subscriptions-BFCKVHnP.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}};