@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
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js"),o=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),n=require("../../useInvoiceData-Bl87gzIS.js"),r=require("../../component-Bs8oszfD.js"),a=e.defineComponent({__name:"PaymentHistory",props:{customer:{type:Object},paymentAttempts:{type:Array},isLoading:{type:Boolean},configuration:{type:Object}},setup:n=>(r,a)=>n.isLoading?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,variant:"section",class:"sv-payment-history sv-root sv-component sv-loading min-h-[100px]","data-testid":"payment-history-skeleton"})):n.paymentAttempts.length?(e.openBlock(),e.createBlock(t._sfc_main,{key:1,class:"sv-payment-history sv-root sv-component","payment-attempts":n.paymentAttempts,customer:n.customer},null,8,["payment-attempts","customer"])):e.createCommentVNode("",!0)}),i=e.defineComponent({__name:"PaymentHistory.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const o=t,r=n.useInvoiceData(o.configuration.invoiceId);return(t,o)=>{var n,a;return e.renderSlot(t.$slots,"default",{invoice:null==(n=e.unref(r).data.value)?void 0:n.invoice,paymentAttempts:null==(a=e.unref(r).data.value)?void 0:a.paymentAttempts.data,isLoading:e.unref(r).isPending.value})}}}),s=e.defineComponent({__name:"PaymentHistory.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){var o;if(!(null==(o=t.configuration)?void 0:o.invoiceId))throw new Error("Missing invoice id");return(o,n)=>{var s,l,c,y;return e.openBlock(),e.createBlock(e.unref(r._sfc_main),{"custom-element-name":e.unref(p),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(l=null==(s=t.branding)?void 0:s.colors)?void 0:l.primary,"secondary-color":null==(y=null==(c=t.branding)?void 0:c.colors)?void 0:y.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,"css-overrides":t.cssOverrides,onError:n[0]||(n[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:o,paymentAttempts:n,isLoading:r})=>[o&&n?(e.openBlock(),e.createBlock(a,{key:0,"is-loading":r,customer:o.customer,"payment-attempts":n,configuration:t.configuration},null,8,["is-loading","customer","payment-attempts","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),l=r.defineCustomElement(s),p=r.getComponentName("payment-history");exports.COMPONENT_NAME=p,exports.SolvimonPaymentHistory=l,exports.defineSolvimonPaymentHistory=()=>{customElements.get(p)||customElements.define(p,l)};
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js"),o=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),n=require("../../useInvoiceData-BrxMo4Zt.js"),r=require("../../component-DIy1hvJM.js"),a=e.defineComponent({__name:"PaymentHistory",props:{customer:{type:Object},paymentAttempts:{type:Array},isLoading:{type:Boolean},configuration:{type:Object}},setup:n=>(r,a)=>n.isLoading?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,variant:"section",class:"sv-payment-history sv-root sv-component sv-loading min-h-[100px]","data-testid":"payment-history-skeleton"})):n.paymentAttempts.length?(e.openBlock(),e.createBlock(t._sfc_main,{key:1,class:"sv-payment-history sv-root sv-component","payment-attempts":n.paymentAttempts,customer:n.customer},null,8,["payment-attempts","customer"])):e.createCommentVNode("",!0)}),i=e.defineComponent({__name:"PaymentHistory.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const o=t,r=n.useInvoiceData(o.configuration.invoiceId);return(t,o)=>{var n,a;return e.renderSlot(t.$slots,"default",{invoice:null==(n=e.unref(r).data.value)?void 0:n.invoice,paymentAttempts:null==(a=e.unref(r).data.value)?void 0:a.paymentAttempts.data,isLoading:e.unref(r).isPending.value})}}}),s=e.defineComponent({__name:"PaymentHistory.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){var o;if(!(null==(o=t.configuration)?void 0:o.invoiceId))throw new Error("Missing invoice id");return(o,n)=>{var s,l,c,y;return e.openBlock(),e.createBlock(e.unref(r._sfc_main),{"custom-element-name":e.unref(p),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(l=null==(s=t.branding)?void 0:s.colors)?void 0:l.primary,"secondary-color":null==(y=null==(c=t.branding)?void 0:c.colors)?void 0:y.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,"css-overrides":t.cssOverrides,onError:n[0]||(n[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:o,paymentAttempts:n,isLoading:r})=>[o&&n?(e.openBlock(),e.createBlock(a,{key:0,"is-loading":r,customer:o.customer,"payment-attempts":n,configuration:t.configuration},null,8,["is-loading","customer","payment-attempts","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),l=r.defineCustomElement(s),p=r.getComponentName("payment-history");exports.COMPONENT_NAME=p,exports.SolvimonPaymentHistory=l,exports.defineSolvimonPaymentHistory=()=>{customElements.get(p)||customElements.define(p,l)};
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, openBlock, createBlock, createCommentVNode, renderSlot, unref, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
- import { _ as _sfc_main$4 } from "../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs";
2
+ import { _ as _sfc_main$4 } from "../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs";
3
3
  import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
4
- import { u as useInvoiceData } from "../../useInvoiceData-Di5pLPM0.mjs";
5
- import { _ as _sfc_main$5, d as defineCustomElement, g as getComponentName } from "../../component-Bg2JVC_O.mjs";
4
+ import { u as useInvoiceData } from "../../useInvoiceData-Cy_ysMsq.mjs";
5
+ import { _ as _sfc_main$5, d as defineCustomElement, g as getComponentName } from "../../component--Y7Igv5i.mjs";
6
6
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
7
  __name: "PaymentHistory",
8
8
  props: {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-Bs8oszfD.js"),o=require("../../vendor-ui-C3Tq-qY_.js"),r=require("../../useLoadInitialData-CTqfiMTN.js"),n=require("../../useCustomer-Z24KchWC.js"),a=require("../../usePaymentMethodOptions-BsCZnCQW.js"),i=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-eWmC5GOT.js"),s=e.defineComponent({__name:"PaymentMethodForm.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(t){const i=t,s=n.useCustomer({customerId:i.portalObject.customer_id}),l=a.usePaymentMethodOptions(),{isLoading:p}=r.useLoadInitialData((async()=>{var e;const t=await s.get.execute(),r=o.getCustomerCountry(t);await l.get({customerId:t.id,country:r,amount:null==(e=i.configuration)?void 0:e.amount})})());return(t,o)=>e.renderSlot(t.$slots,"default",{customer:e.unref(s).customer.value,paymentMethodOptions:e.unref(l),isLoading:e.unref(p)})}}),l=e.defineComponent({__name:"PaymentMethodForm.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(o){const r=o;return(n,a)=>{var l,p,m,u;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:o.environment,locale:o.locale,"portal-object":o.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(p=null==(l=o.branding)?void 0:l.colors)?void 0:p.primary,"secondary-color":null==(u=null==(m=o.branding)?void 0:m.colors)?void 0:u.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,"css-overrides":o.cssOverrides,onError:a[0]||(a[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(s,e.normalizeProps(e.guardReactiveProps(r)),{default:e.withCtx(({customer:t,paymentMethodOptions:r,isLoading:n})=>[t?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,customer:t,"payment-method-options":r.paymentMethodOptions.value,configuration:o.configuration,"is-loading":n},null,8,["customer","payment-method-options","configuration","is-loading"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),p=t.defineCustomElement(l),c=t.getComponentName("payment-method-form");exports.COMPONENT_NAME=c,exports.SolvimonPaymentMethodForm=p,exports.defineSolvimonPaymentMethodForm=()=>{customElements.get(c)||customElements.define(c,p)};
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-DIy1hvJM.js"),o=require("../../vendor-ui-Dfh3_g4q.js"),r=require("../../useLoadInitialData-_BjCD0Jc.js"),n=require("../../useCustomer-C1XTqmrQ.js"),a=require("../../usePaymentMethodOptions-xeSTmaVo.js"),i=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js"),s=e.defineComponent({__name:"PaymentMethodForm.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(t){const i=t,s=n.useCustomer({customerId:i.portalObject.customer_id}),l=a.usePaymentMethodOptions(),{isLoading:p}=r.useLoadInitialData((async()=>{var e;const t=await s.get.execute(),r=o.getCustomerCountry(t);await l.get({customerId:t.id,country:r,amount:null==(e=i.configuration)?void 0:e.amount})})());return(t,o)=>e.renderSlot(t.$slots,"default",{customer:e.unref(s).customer.value,paymentMethodOptions:e.unref(l),isLoading:e.unref(p)})}}),l=e.defineComponent({__name:"PaymentMethodForm.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(o){const r=o;return(n,a)=>{var l,p,m,u;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:o.environment,locale:o.locale,"portal-object":o.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(p=null==(l=o.branding)?void 0:l.colors)?void 0:p.primary,"secondary-color":null==(u=null==(m=o.branding)?void 0:m.colors)?void 0:u.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,"css-overrides":o.cssOverrides,onError:a[0]||(a[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(s,e.normalizeProps(e.guardReactiveProps(r)),{default:e.withCtx(({customer:t,paymentMethodOptions:r,isLoading:n})=>[t?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,customer:t,"payment-method-options":r.paymentMethodOptions.value,configuration:o.configuration,"is-loading":n},null,8,["customer","payment-method-options","configuration","is-loading"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),p=t.defineCustomElement(l),c=t.getComponentName("payment-method-form");exports.COMPONENT_NAME=c,exports.SolvimonPaymentMethodForm=p,exports.defineSolvimonPaymentMethodForm=()=>{customElements.get(c)||customElements.define(c,p)};
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-Bg2JVC_O.mjs";
3
- import { g as getCustomerCountry } from "../../vendor-ui-B8IlviSs.mjs";
4
- import { u as useLoadInitialData } from "../../useLoadInitialData-CkpryfjF.mjs";
5
- import { u as useCustomer } from "../../useCustomer-VVJi8z2w.mjs";
6
- import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-BoGHJjng.mjs";
7
- import { _ as _sfc_main$3 } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-B8eNptZp.mjs";
2
+ import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component--Y7Igv5i.mjs";
3
+ import { o as getCustomerCountry } from "../../vendor-ui-ItGf7wJV.mjs";
4
+ import { u as useLoadInitialData } from "../../useLoadInitialData-BP1v7qhd.mjs";
5
+ import { u as useCustomer } from "../../useCustomer-Cw8LXT6S.mjs";
6
+ import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-CWfGvW0U.mjs";
7
+ import { _ as _sfc_main$3 } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs";
8
8
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
9
9
  __name: "PaymentMethodForm.entry.view",
10
10
  props: {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-Bs8oszfD.js"),n=require("../../vendor-ui-C3Tq-qY_.js"),r=require("../../useService-CHrkefKd.js"),o=require("../../subscriptions-CC61I6Nj.js"),i=require("../../useLoadInitialData-CTqfiMTN.js"),s=e.defineComponent({__name:"SubscriptionSchedules",props:{schedulesData:{type:Array},configuration:{type:Object},isLoading:{type:Boolean}},setup(t){const{$t:r}=n.useIntl();return(o,i)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{class:"sv-subscription-schedules sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(r)({defaultMessage:"Schedules",description:"Invoices list title",id:"invoices_list.title"})},{default:e.withCtx(()=>[e.createVNode(e.unref(n.PricingPlanSchedules),{class:"sv-subscription-schedules__list",schedules:t.schedulesData},null,8,["schedules"])]),_:1},8,["title"]))}});const a=e.defineComponent({__name:"SubscriptionSchedules.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const n=t,{subscription:s,withPlanData:a,get:l}=function({subscriptionId:e}){const{getSubscription:t}=o.createSubscriptionsService(),{data:n,execute:i,apiStatus:s,error:a,isPending:l}=r.useService({service:()=>t({id:e,expanded:!0})});return{subscription:n,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:s,error:a,get:i,isPending:l}}({subscriptionId:n.configuration.subscriptionId}),{isLoading:c}=i.useLoadInitialData(l());return(t,n)=>e.renderSlot(t.$slots,"default",{schedulesData:e.unref(s)?e.unref(a)(e.unref(s)):void 0,isLoading:e.unref(c)})}}),l=e.defineComponent({__name:"SubscriptionSchedules.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(n){const r=n;return(o,i)=>{var l,c,u,d;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(p),environment:n.environment,locale:n.locale,"portal-object":n.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(l=n.branding)?void 0:l.colors)?void 0:c.primary,"secondary-color":null==(d=null==(u=n.branding)?void 0:u.colors)?void 0:d.secondary,"experimental-features":n.experimentalFeatures,"log-level":n.logLevel,"on-log":n.onLog,"css-overrides":n.cssOverrides,onError:i[0]||(i[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(a,e.normalizeProps(e.guardReactiveProps(r)),{default:e.withCtx(({schedulesData:t,isLoading:r})=>[t?(e.openBlock(),e.createBlock(s,{key:0,"schedules-data":t,"is-loading":r,configuration:n.configuration},null,8,["schedules-data","is-loading","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),c=t.defineCustomElement(l),p=t.getComponentName("subscription-schedules");exports.COMPONENT_NAME=p,exports.SolvimonSubscriptionSchedules=c,exports.defineSolvimonSubscriptionSchedules=()=>{customElements.get(p)||customElements.define(p,c)};
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-DIy1hvJM.js"),o=require("../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js"),r=require("../../useSubscription-k3limdu_.js"),n=require("../../useLoadInitialData-_BjCD0Jc.js"),i=e.defineComponent({__name:"SubscriptionSchedules.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(t){const o=t,{subscription:i,withPlanData:a,get:s}=r.useSubscription({subscriptionId:o.configuration.subscriptionId}),{isLoading:l}=n.useLoadInitialData(s());return(t,o)=>e.renderSlot(t.$slots,"default",{schedulesData:e.unref(i)?e.unref(a)(e.unref(i)):void 0,isLoading:e.unref(l)})}}),a=e.defineComponent({__name:"SubscriptionSchedules.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(r){const n=r;return(a,s)=>{var c,p,u,d;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(l),environment:r.environment,locale:r.locale,"portal-object":r.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(p=null==(c=r.branding)?void 0:c.colors)?void 0:p.primary,"secondary-color":null==(d=null==(u=r.branding)?void 0:u.colors)?void 0:d.secondary,"experimental-features":r.experimentalFeatures,"log-level":r.logLevel,"on-log":r.onLog,"css-overrides":r.cssOverrides,onError:s[0]||(s[0]=e=>a.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(({schedulesData:t,isLoading:n})=>[t?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,"schedules-data":t,"is-loading":n,configuration:r.configuration},null,8,["schedules-data","is-loading","configuration"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),s=t.defineCustomElement(a),l=t.getComponentName("subscription-schedules");exports.COMPONENT_NAME=l,exports.SolvimonSubscriptionSchedules=s,exports.defineSolvimonSubscriptionSchedules=()=>{customElements.get(l)||customElements.define(l,s)};
@@ -1,59 +1,8 @@
1
- import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-Bg2JVC_O.mjs";
3
- import { u as useIntl, _ as _sfc_main$3, P as PricingPlanSchedules } from "../../vendor-ui-B8IlviSs.mjs";
4
- import { u as useService } from "../../useService-DF57xuDd.mjs";
5
- import { c as createSubscriptionsService } from "../../subscriptions-BPYyv09M.mjs";
6
- import { u as useLoadInitialData } from "../../useLoadInitialData-CkpryfjF.mjs";
7
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8
- __name: "SubscriptionSchedules",
9
- props: {
10
- schedulesData: { type: Array },
11
- configuration: { type: Object },
12
- isLoading: { type: Boolean }
13
- },
14
- setup(__props) {
15
- const { $t } = useIntl();
16
- return (_ctx, _cache) => {
17
- return openBlock(), createBlock(unref(_sfc_main$3), {
18
- class: "sv-subscription-schedules sv-root sv-component",
19
- "no-border": "",
20
- "no-spacing": "",
21
- "content-background": "none",
22
- title: unref($t)({
23
- defaultMessage: "Schedules",
24
- description: "Invoices list title",
25
- id: "invoices_list.title"
26
- })
27
- }, {
28
- default: withCtx(() => [
29
- createVNode(unref(PricingPlanSchedules), {
30
- class: "sv-subscription-schedules__list",
31
- schedules: __props.schedulesData
32
- }, null, 8, ["schedules"])
33
- ]),
34
- _: 1
35
- }, 8, ["title"]);
36
- };
37
- }
38
- });
39
- function useSubscription({
40
- subscriptionId
41
- }) {
42
- const { getSubscription } = createSubscriptionsService();
43
- const { data, execute: get, apiStatus, error, isPending } = useService({
44
- service: () => getSubscription({ id: subscriptionId, expanded: true })
45
- });
46
- const withPlanData = (subscription) => {
47
- return subscription.pricing_plan_schedule_infos.map((schedule) => {
48
- return {
49
- schedule: schedule.pricing_plan_schedule,
50
- selectedPricingPlan: schedule.pricing_plan_version.pricing_plan,
51
- selectedPricingPlanVersion: schedule.pricing_plan_version
52
- };
53
- });
54
- };
55
- return { subscription: data, withPlanData, apiStatus, error, get, isPending };
56
- }
1
+ import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
+ import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component--Y7Igv5i.mjs";
3
+ import { _ as _sfc_main$3 } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs";
4
+ import { u as useSubscription } from "../../useSubscription-9rJpFNUF.mjs";
5
+ import { u as useLoadInitialData } from "../../useLoadInitialData-BP1v7qhd.mjs";
57
6
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
58
7
  __name: "SubscriptionSchedules.entry.view",
59
8
  props: {
@@ -110,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
59
  const props = __props;
111
60
  return (_ctx, _cache) => {
112
61
  var _a, _b, _c, _d;
113
- return openBlock(), createBlock(unref(_sfc_main$4), {
62
+ return openBlock(), createBlock(unref(_sfc_main$2), {
114
63
  "custom-element-name": unref(COMPONENT_NAME),
115
64
  environment: __props.environment,
116
65
  locale: __props.locale,
@@ -127,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
127
76
  default: withCtx(() => [
128
77
  createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(props)), {
129
78
  default: withCtx(({ schedulesData, isLoading }) => [
130
- schedulesData ? (openBlock(), createBlock(_sfc_main$2, {
79
+ schedulesData ? (openBlock(), createBlock(_sfc_main$3, {
131
80
  key: 0,
132
81
  "schedules-data": schedulesData,
133
82
  "is-loading": isLoading,
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-56vu59V4.js"),t=require("../../component-Bs8oszfD.js"),r=require("../../useCustomer-Z24KchWC.js"),n=require("../../useLoadInitialData-CTqfiMTN.js"),s=require("../../usePaymentMethods-AC-4rrR9.js"),i=e.defineComponent({__name:"SubscriptionsList.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(i){const l=i.portalObject.customer_id,a=r.useCustomer({customerId:l}),p=o.useSubscriptionsList({customerId:l}),u=s.usePaymentMethods({customerId:l}),{isLoading:m}=n.useLoadInitialData(a.get.execute(),p.fetchInitial(),u.fetchAll());return(o,r)=>{var n,s,l,d;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:i.environment,locale:i.locale,"portal-object":i.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(s=null==(n=i.branding)?void 0:n.colors)?void 0:s.primary,"secondary-color":null==(d=null==(l=i.branding)?void 0:l.colors)?void 0:d.secondary,"experimental-features":i.experimentalFeatures,"log-level":i.logLevel,"on-log":i.onLog,"css-overrides":i.cssOverrides,onError:r[0]||(r[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{customer:e.unref(a),subscriptions:e.unref(p).items,paymentMethods:e.unref(u).items,isLoading:e.unref(m),loadMore:e.unref(p).fetchMore})]),_:3},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),l=e.defineComponent({__name:"SubscriptionsList.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup:r=>(n,s)=>{var l,a,p,u;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:r.environment,locale:r.locale,"portal-object":r.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(a=null==(l=r.branding)?void 0:l.colors)?void 0:a.primary,"secondary-color":null==(u=null==(p=r.branding)?void 0:p.colors)?void 0:u.secondary,"experimental-features":r.experimentalFeatures,"log-level":r.logLevel,"on-log":r.onLog,"css-overrides":r.cssOverrides,onError:s[0]||(s[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(n.$props)),{default:e.withCtx(({customer:t,subscriptions:n,paymentMethods:s,isLoading:i,loadMore:l})=>[e.createVNode(o._sfc_main,{configuration:r.configuration,customer:t.customer.value,subscriptions:n.value,"payment-methods":s.value,"is-loading":i,onLoadMore:l},null,8,["configuration","customer","subscriptions","payment-methods","is-loading","onLoadMore"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),a=t.defineCustomElement(l),c=t.getComponentName("subscriptions-list");exports.COMPONENT_NAME=c,exports.SolvimonSubscriptionsList=a,exports.defineSolvimonSubscriptionsList=()=>{customElements.get(c)||customElements.define(c,a)};
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js"),t=require("../../component-DIy1hvJM.js"),r=require("../../useCustomer-C1XTqmrQ.js"),n=require("../../useLoadInitialData-_BjCD0Jc.js"),s=require("../../usePaymentMethods-CAFMvSOr.js"),i=e.defineComponent({__name:"SubscriptionsList.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup(i){const l=i.portalObject.customer_id,a=r.useCustomer({customerId:l}),p=o.useSubscriptionsList({customerId:l}),u=s.usePaymentMethods({customerId:l}),{isLoading:m}=n.useLoadInitialData(a.get.execute(),p.fetchInitial(),u.fetchAll());return(o,r)=>{var n,s,l,d;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:i.environment,locale:i.locale,"portal-object":i.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(s=null==(n=i.branding)?void 0:n.colors)?void 0:s.primary,"secondary-color":null==(d=null==(l=i.branding)?void 0:l.colors)?void 0:d.secondary,"experimental-features":i.experimentalFeatures,"log-level":i.logLevel,"on-log":i.onLog,"css-overrides":i.cssOverrides,onError:r[0]||(r[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{customer:e.unref(a),subscriptions:e.unref(p).items,paymentMethods:e.unref(u).items,isLoading:e.unref(m),loadMore:e.unref(p).fetchMore})]),_:3},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}}),l=e.defineComponent({__name:"SubscriptionsList.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object},configuration:{type:Object}},setup:r=>(n,s)=>{var l,a,p,u;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(c),environment:r.environment,locale:r.locale,"portal-object":r.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(a=null==(l=r.branding)?void 0:l.colors)?void 0:a.primary,"secondary-color":null==(u=null==(p=r.branding)?void 0:p.colors)?void 0:u.secondary,"experimental-features":r.experimentalFeatures,"log-level":r.logLevel,"on-log":r.onLog,"css-overrides":r.cssOverrides,onError:s[0]||(s[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(n.$props)),{default:e.withCtx(({customer:t,subscriptions:n,paymentMethods:s,isLoading:i,loadMore:l})=>[e.createVNode(o._sfc_main,{configuration:r.configuration,customer:t.customer.value,subscriptions:n.value,"payment-methods":s.value,"is-loading":i,onLoadMore:l},null,8,["configuration","customer","subscriptions","payment-methods","is-loading","onLoadMore"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),a=t.defineCustomElement(l),c=t.getComponentName("subscriptions-list");exports.COMPONENT_NAME=c,exports.SolvimonSubscriptionsList=a,exports.defineSolvimonSubscriptionsList=()=>{customElements.get(c)||customElements.define(c,a)};
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
- import { u as useSubscriptionsList, _ as _sfc_main$3 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-DB1p61kZ.mjs";
3
- import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-Bg2JVC_O.mjs";
4
- import { u as useCustomer } from "../../useCustomer-VVJi8z2w.mjs";
5
- import { u as useLoadInitialData } from "../../useLoadInitialData-CkpryfjF.mjs";
6
- import { u as usePaymentMethods } from "../../usePaymentMethods-ocHmNoP7.mjs";
2
+ import { u as useSubscriptionsList, _ as _sfc_main$3 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs";
3
+ import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component--Y7Igv5i.mjs";
4
+ import { u as useCustomer } from "../../useCustomer-Cw8LXT6S.mjs";
5
+ import { u as useLoadInitialData } from "../../useLoadInitialData-BP1v7qhd.mjs";
6
+ import { u as usePaymentMethods } from "../../usePaymentMethods-Cyk4cjoE.mjs";
7
7
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8
8
  __name: "SubscriptionsList.entry.view",
9
9
  props: {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../ApiStatus-oqvUEWJx.js"),a=require("../../useWalletBalanceItems-BL-R5foK.js"),r=require("../../useLoadInitialData-CTqfiMTN.js"),l=require("../../component-Bs8oszfD.js"),o=e.defineComponent({__name:"WalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array}},setup:t=>(r,l)=>(e.openBlock(),e.createBlock(a._sfc_main,{class:"sv-wallet-balances sv-root sv-component","has-error":t.hasError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances},null,8,["has-error","is-loading","wallet-balances"]))}),n=e.defineComponent({__name:"WalletBalances.entry.view",props:{portalObject:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const l=t.portalObject.customer_id,o=a.useCustomerWalletBalances({customerId:l}),n=a.useWalletBalanceItems(o.walletBalances),{isLoading:s}=r.useLoadInitialData(o.fetch());return(t,a)=>e.renderSlot(t.$slots,"default",{customerWalletBalances:e.unref(o),walletBalanceItems:e.unref(n),isLoading:e.unref(s)})}}),s=e.defineComponent({__name:"WalletBalances.entry",props:{portalObject:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup:a=>(r,s)=>{var i,p,m,u;return e.openBlock(),e.createBlock(e.unref(l._sfc_main),{"custom-element-name":e.unref(c),environment:a.environment,locale:a.locale,"portal-object":a.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(p=null==(i=a.branding)?void 0:i.colors)?void 0:p.primary,"secondary-color":null==(u=null==(m=a.branding)?void 0:m.colors)?void 0:u.secondary,"experimental-features":a.experimentalFeatures,"log-level":a.logLevel,"on-log":a.onLog,"css-overrides":a.cssOverrides,onError:s[0]||(s[0]=e=>r.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(r.$props)),{default:e.withCtx(({customerWalletBalances:a,walletBalanceItems:r,isLoading:l})=>[e.createVNode(o,{"has-error":a.apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":l,"wallet-balances":r},null,8,["has-error","is-loading","wallet-balances"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),i=l.defineCustomElement(s),c=l.getComponentName("wallet-balances");exports.COMPONENT_NAME=c,exports.SolvimonWalletBalances=i,exports.defineSolvimonWalletBalances=()=>{customElements.get(c)||customElements.define(c,i)};
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../ApiStatus-oqvUEWJx.js"),o=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js"),a=require("../../useLoadInitialData-_BjCD0Jc.js"),r=require("../../component-DIy1hvJM.js"),n=e.defineComponent({__name:"WalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array},showTopUpButton:{type:Boolean},customer:{type:Object},paymentMethods:{type:Array},subscriptions:{type:Array}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","payment-failed"],setup(t,{emit:a}){const r=a;return(a,n)=>(e.openBlock(),e.createBlock(o._sfc_main,{class:"sv-wallet-balances sv-root sv-component","has-error":t.hasError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances,"show-top-up-button":t.showTopUpButton,customer:t.customer,"payment-methods":t.paymentMethods,subscriptions:t.subscriptions,onTopUpCharged:n[0]||(n[0]=e=>r("top-up-charged")),onAutoTopUpSaved:n[1]||(n[1]=e=>r("auto-top-up-saved")),onAutoTopUpCancelled:n[2]||(n[2]=e=>r("auto-top-up-cancelled")),onPaymentMethodStored:n[3]||(n[3]=e=>r("payment-method-stored")),onPaymentFailed:n[4]||(n[4]=e=>r("payment-failed",e))},null,8,["has-error","is-loading","wallet-balances","show-top-up-button","customer","payment-methods","subscriptions"]))}}),l=e.defineComponent({__name:"WalletBalances.entry.view",props:{portalObject:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const r=t.portalObject.customer_id,n=o.useCustomerWalletBalances({customerId:r}),{walletBalances:l}=n,{isLoading:s}=a.useLoadInitialData(n.fetch());return(t,o)=>{var a;return e.renderSlot(t.$slots,"default",{customerWalletBalances:e.unref(n),walletBalanceItems:(null==(a=e.unref(l))?void 0:a.wallet_balances)??[],isLoading:e.unref(s)})}}}),s=e.defineComponent({__name:"WalletBalances.entry",props:{portalObject:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup:o=>(a,s)=>{var p,c,u,d;return e.openBlock(),e.createBlock(e.unref(r._sfc_main),{"custom-element-name":e.unref(i),environment:o.environment,locale:o.locale,"portal-object":o.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(p=o.branding)?void 0:p.colors)?void 0:c.primary,"secondary-color":null==(d=null==(u=o.branding)?void 0:u.colors)?void 0:d.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,"css-overrides":o.cssOverrides,onError:s[0]||(s[0]=e=>a.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(l,e.normalizeProps(e.guardReactiveProps(a.$props)),{default:e.withCtx(({customerWalletBalances:o,walletBalanceItems:a,isLoading:r})=>[e.createVNode(n,{"has-error":o.apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":r,"wallet-balances":a},null,8,["has-error","is-loading","wallet-balances"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log","css-overrides"])}}),p=r.defineCustomElement(s),i=r.getComponentName("wallet-balances");exports.COMPONENT_NAME=i,exports.SolvimonWalletBalances=p,exports.defineSolvimonWalletBalances=()=>{customElements.get(i)||customElements.define(i,p)};
@@ -1,23 +1,38 @@
1
1
  import { defineComponent, openBlock, createBlock, renderSlot, unref, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
2
  import { A as ApiStatus } from "../../ApiStatus-CyNDp_op.mjs";
3
- import { _ as _sfc_main$3, u as useCustomerWalletBalances, a as useWalletBalanceItems } from "../../useWalletBalanceItems-COQDLfoZ.mjs";
4
- import { u as useLoadInitialData } from "../../useLoadInitialData-CkpryfjF.mjs";
5
- import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-Bg2JVC_O.mjs";
3
+ import { _ as _sfc_main$3, u as useCustomerWalletBalances } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs";
4
+ import { u as useLoadInitialData } from "../../useLoadInitialData-BP1v7qhd.mjs";
5
+ import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component--Y7Igv5i.mjs";
6
6
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
7
  __name: "WalletBalances",
8
8
  props: {
9
9
  hasError: { type: Boolean },
10
10
  isLoading: { type: Boolean },
11
- walletBalances: { type: Array }
11
+ walletBalances: { type: Array },
12
+ showTopUpButton: { type: Boolean },
13
+ customer: { type: Object },
14
+ paymentMethods: { type: Array },
15
+ subscriptions: { type: Array }
12
16
  },
13
- setup(__props) {
17
+ emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "payment-failed"],
18
+ setup(__props, { emit: __emit }) {
19
+ const emit = __emit;
14
20
  return (_ctx, _cache) => {
15
21
  return openBlock(), createBlock(_sfc_main$3, {
16
22
  class: "sv-wallet-balances sv-root sv-component",
17
23
  "has-error": __props.hasError,
18
24
  "is-loading": __props.isLoading,
19
- "wallet-balances": __props.walletBalances
20
- }, null, 8, ["has-error", "is-loading", "wallet-balances"]);
25
+ "wallet-balances": __props.walletBalances,
26
+ "show-top-up-button": __props.showTopUpButton,
27
+ customer: __props.customer,
28
+ "payment-methods": __props.paymentMethods,
29
+ subscriptions: __props.subscriptions,
30
+ onTopUpCharged: _cache[0] || (_cache[0] = ($event) => emit("top-up-charged")),
31
+ onAutoTopUpSaved: _cache[1] || (_cache[1] = ($event) => emit("auto-top-up-saved")),
32
+ onAutoTopUpCancelled: _cache[2] || (_cache[2] = ($event) => emit("auto-top-up-cancelled")),
33
+ onPaymentMethodStored: _cache[3] || (_cache[3] = ($event) => emit("payment-method-stored")),
34
+ onPaymentFailed: _cache[4] || (_cache[4] = (error) => emit("payment-failed", error))
35
+ }, null, 8, ["has-error", "is-loading", "wallet-balances", "show-top-up-button", "customer", "payment-methods", "subscriptions"]);
21
36
  };
22
37
  }
23
38
  });
@@ -43,12 +58,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
43
58
  const props = __props;
44
59
  const customerId = props.portalObject.customer_id;
45
60
  const customerWalletBalances = useCustomerWalletBalances({ customerId });
46
- const walletBalanceItems = useWalletBalanceItems(customerWalletBalances.walletBalances);
61
+ const { walletBalances } = customerWalletBalances;
47
62
  const { isLoading } = useLoadInitialData(customerWalletBalances.fetch());
48
63
  return (_ctx, _cache) => {
64
+ var _a;
49
65
  return renderSlot(_ctx.$slots, "default", {
50
66
  customerWalletBalances: unref(customerWalletBalances),
51
- walletBalanceItems: unref(walletBalanceItems),
67
+ walletBalanceItems: ((_a = unref(walletBalances)) == null ? void 0 : _a.wallet_balances) ?? [],
52
68
  isLoading: unref(isLoading)
53
69
  });
54
70
  };
@@ -30,20 +30,8 @@ export interface ActionRequestDetailViewSubscriptionDetails extends ActionReques
30
30
  export interface ActionRequestDetailViewAllSubscriptions extends ActionRequestDetailBase {
31
31
  action: 'view-all-subscriptions';
32
32
  }
33
- export interface ActionRequestDetailCancelSubscription extends ActionRequestDetailBase {
34
- action: 'cancel-subscription';
35
- data: {
36
- subscriptionId: string;
37
- };
38
- }
39
- export interface ActionRequestDetailRenewSubscription extends ActionRequestDetailBase {
40
- action: 'renew-subscription';
41
- data: {
42
- subscriptionId: string;
43
- };
44
- }
45
- export interface ActionRequestDetailUpgradeSubscription extends ActionRequestDetailBase {
46
- action: 'upgrade-subscription';
33
+ export interface ActionRequestDetailManageSubscription extends ActionRequestDetailBase {
34
+ action: 'manage-subscription';
47
35
  data: {
48
36
  subscriptionId: string;
49
37
  };
@@ -60,7 +48,7 @@ export interface ActionRequestDetailAddPaymentMethod extends ActionRequestDetail
60
48
  export interface ActionRequestDetailNavigateToCustomerOverview extends ActionRequestDetailBase {
61
49
  action: 'navigate-to-customer-overview';
62
50
  }
63
- export type ActionRequestDetail = ActionRequestDetailViewInvoice | ActionRequestDetailPayInvoice | ActionRequestDetailViewSubscriptionDetails | ActionRequestDetailViewAllSubscriptions | ActionRequestDetailCancelSubscription | ActionRequestDetailRenewSubscription | ActionRequestDetailUpgradeSubscription | ActionRequestDetailEditBillingInformation | ActionRequestDetailViewAllPaymentMethods | ActionRequestDetailAddPaymentMethod | ActionRequestDetailNavigateToCustomerOverview;
51
+ export type ActionRequestDetail = ActionRequestDetailViewInvoice | ActionRequestDetailPayInvoice | ActionRequestDetailViewSubscriptionDetails | ActionRequestDetailViewAllSubscriptions | ActionRequestDetailManageSubscription | ActionRequestDetailEditBillingInformation | ActionRequestDetailViewAllPaymentMethods | ActionRequestDetailAddPaymentMethod | ActionRequestDetailNavigateToCustomerOverview;
64
52
  /**
65
53
  * Type for the 'action-request' custom event. Use when listening for action-request on document or container.
66
54
  */
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../registry-uG2isab0.js");exports.createSolvimonCore=e.createSolvimonCore,exports.getRegisteredComponentIds=e.getRegisteredComponentIds,exports.getRegisteredScreenIds=e.getRegisteredScreenIds;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../registry-Cra6yoB4.js");exports.createSolvimonCore=e.createSolvimonCore,exports.getRegisteredComponentIds=e.getRegisteredComponentIds,exports.getRegisteredScreenIds=e.getRegisteredScreenIds;
@@ -1,4 +1,4 @@
1
- import { c, g, a } from "../registry-B-If1W_u.mjs";
1
+ import { c, g, a } from "../registry-Ck0Gb6rj.mjs";
2
2
  export {
3
3
  c as createSolvimonCore,
4
4
  g as getRegisteredComponentIds,
@@ -15,8 +15,9 @@ import { SolvimonSubscriptionsListEntryProps } from '../components/Subscriptions
15
15
  import { SolvimonWalletBalancesEntryProps } from '../components/WalletBalances/WalletBalances.entry.types';
16
16
  import { SolvimonCheckoutEntryProps } from '../screens/Checkout/Checkout.entry.types';
17
17
  import { SolvimonCustomerOverviewEntryProps } from '../screens/CustomerOverview/CustomerOverview.entry.types';
18
- import { SolvimonUpgradeSubscriptionEntryProps } from '../screens/UpgradeSubscription/UpgradeSubscription.entry.types';
18
+ import { SolvimonSubscriptionManagementEntryProps } from '../screens/SubscriptionManagement/SubscriptionManagement.entry.types';
19
19
  import { SolvimonPayInvoiceEntryProps } from '../screens/PayInvoice/PayInvoice.entry.types';
20
+ import { SolvimonSubscriptionDetailsEntryProps } from '../screens/SubscriptionDetails/SubscriptionDetails.entry.types';
20
21
  import { SolvimonPaymentMethodsManagementEntryProps } from '../screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types';
21
22
  /**
22
23
  * Shared configuration passed to all mounted Solvimon components and screens.
@@ -58,7 +59,8 @@ interface RegisteredComponentEntryPropsById {
58
59
  interface RegisteredScreenEntryPropsById {
59
60
  checkout: SolvimonCheckoutEntryProps;
60
61
  'customer-overview': SolvimonCustomerOverviewEntryProps;
61
- 'upgrade-subscription': SolvimonUpgradeSubscriptionEntryProps;
62
+ 'subscription-management': SolvimonSubscriptionManagementEntryProps;
63
+ 'subscription-details': SolvimonSubscriptionDetailsEntryProps;
62
64
  'pay-invoice': SolvimonPayInvoiceEntryProps;
63
65
  'payment-methods-management': SolvimonPaymentMethodsManagementEntryProps;
64
66
  }
@@ -1,4 +1,4 @@
1
- import { c as createRequestService, u as useConfig } from "./component-Bg2JVC_O.mjs";
1
+ import { c as createRequestService, u as useConfig } from "./component--Y7Igv5i.mjs";
2
2
  function createCustomerService() {
3
3
  const request = createRequestService();
4
4
  const config = useConfig();
@@ -1 +1 @@
1
- const t=require("./component-Bs8oszfD.js");exports.createCustomerService=function(){const e=t.createRequestService(),r=t.useConfig();return{getCustomer:function(t){return e({url:`${r.apiUrls.config}/portal/customers/${t}`})},updateCustomer:function(t,o){return e({url:`${r.apiUrls.config}/portal/customers/${t}`,options:{method:"PATCH"},data:o})},checkTaxID:function(t){return e({url:`${r.apiUrls.config}/portal/customers/validate-tax-id`,options:{method:"POST"},data:t})}}};
1
+ const t=require("./component-DIy1hvJM.js");exports.createCustomerService=function(){const e=t.createRequestService(),r=t.useConfig();return{getCustomer:function(t){return e({url:`${r.apiUrls.config}/portal/customers/${t}`})},updateCustomer:function(t,o){return e({url:`${r.apiUrls.config}/portal/customers/${t}`,options:{method:"PATCH"},data:o})},checkTaxID:function(t){return e({url:`${r.apiUrls.config}/portal/customers/validate-tax-id`,options:{method:"POST"},data:t})}}};
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="{pricing} per {billing_period}",t={"add_payment_method_modal.cancel_button.label":"Cancel","add_payment_method_modal.confirm_button.label":"Save payment method","add_payment_method_modal.subtitle":"Add a new payment method to pay with.","add_payment_method_modal.title":"Add payment method","addon_multiple_editor.add_to_subscription_button":"Add to subscription","addon_multiple_editor.description":"Select any number of products","addon_multiple_editor.unsupported_pricing_error":"Unsupported pricing","addon_single_editor.description.at_least_one":"Select at least one product","addon_single_editor.description.at_most_one":"Select up to one product","addon_single_editor.description.exactly_one":"Select one product","auto_topup_cancellation_modal.cancel":"Cancel","auto_topup_cancellation_modal.confirm":"Yes, turn it off","auto_topup_cancellation_modal.explanation":"Your balance will no longer be topped up automatically. You can still top up whenever you want to.","auto_topup_cancellation_modal.explanation_with_amount":"Your balance will no longer be topped up with {amount} when it falls below {threshold}. You can still top up whenever you want to.","auto_topup_cancellation_modal.explanation_with_threshold":"Your balance will no longer be topped up automatically when it falls below {threshold}. You can still top up whenever you want to.","auto_topup_cancellation_modal.failed":"Could not turn off the automatic top-up. Please try again later.","auto_topup_cancellation_modal.title":"Turn off automatic top-up","auto_topup_config.amount.at_least_minimum":"Top up with at least {minimum}.","auto_topup_config.amount.label":"Top-up with","auto_topup_config.amount.positive":"Top up with more than zero.","auto_topup_config.amount.required":"Enter the amount to top up with.","auto_topup_config.amount.within_maximum":"Top up with at most {maximum}.","auto_topup_config.subtitle":"Automatically top up your balance when it runs low.","auto_topup_config.threshold.label":"When your balance falls below","auto_topup_config.threshold.not_negative":"The balance to top up at cannot be negative.","auto_topup_config.threshold.required":"Enter the balance to top up at.","auto_topup_config.title":"Auto top-up","auto_topup_modal.add_payment_method.cancel":"Back","auto_topup_modal.add_payment_method.confirm":"Add payment method","auto_topup_modal.add_payment_method.subtitle":"This method pays for every automatic top-up.","auto_topup_modal.add_payment_method.title":"Add payment method","auto_topup_modal.cancel":"Cancel","auto_topup_modal.confirm":"Save","auto_topup_modal.payment_method.label":"Pay automatic top-ups with","auto_topup_modal.payment_method.required":"Select a payment method to pay for automatic top-ups.","auto_topup_modal.subtitle":"Your current balance is {balance}. Enable auto top so you can stay productive","auto_topup_modal.title":"Automatic top-up","billing_information_form.submit_button.label":"Save changes","checkout.address.city.placeholder":"City...","checkout.address.line1.placeholder":"Address line 1...","checkout.address.line2.placeholder":"Address line 2...","checkout.address.portal_code.placeholder":"Postal code...","checkout.address.state.placeholder":"State...","checkout.address.title":"Billing address","checkout.agreement.subscription":"{subscription_amount}/{billing_period} until canceled, starting {start_date, date, long}.","checkout.agreement.trial":"{discounted_amount} for {trial_period}, then {subscription_amount}/{billing_period} until canceled, starting {start_date, date, ::MMMMd}.","checkout.agreement.trial.free":"Free","checkout.billing_details.add_billing_details_button.label":"More billing details","checkout.billing_details.remove_billing_details_button.label":"Remove billing details","checkout.billing_information_block.title":"Billing details","checkout.company_purchase_toggle.sub_title":"I am purchasing on behalf of a company","checkout.company_purchase_toggle.title":"Company purchase","checkout.contact_information_block.title":"Customer information","checkout.country.label":"Billing country","checkout.customize_plan_block.title":"Customize plan","checkout.email_address.label":"Email address","checkout.email_address.placeholder":"Email address...","checkout.express_payment_methods.divider_text":"Or","checkout.express_payment_methods.title":"Subscribe instantly with","checkout.first_name.label":"First name","checkout.first_name.placeholder":"First name...","checkout.invoice_preview.no_country_selected_message":"Please select a country first","checkout.invoice_preview.usage_based_message":"+ Usage","checkout.last_name.label":"Last name","checkout.last_name.placeholder":"Last name...","checkout.legal_name.label":"Legal entity name","checkout.legal_name.placeholder":"Legal entity name...","checkout.not_available.contact_support_message":"this page to try again, or contact customer support.","checkout.not_available.description":"The checkout is currently not available.","checkout.not_available.reload_button":"Reload","checkout.not_available.title":"Checkout not available","checkout.optional_suffix.label":"(optional)","checkout.order_summary_block.billing_period.label":"Billed {period}","checkout.order_summary_block.billing_period.per_label":"/{period}","checkout.order_summary_block.billing_period.per_quarter":"/quarter","checkout.order_summary_block.billing_period.quarterly":"Billed quarterly","checkout.order_summary_block.billing_period.save_badge.prefix":"Save {amount}","checkout.order_summary_block.billing_period.save_badge.suffix":"/year","checkout.order_summary_block.billing_period.sub_label":"{amount}{period}","checkout.order_summary_block.title":"Order summary","checkout.page_title":"Pay and subscribe","checkout.pay_and_subscribe_button.label":"Pay and subscribe","checkout.pay_and_subscribe_button_trial.label":"Start trial","checkout.payment_method_block.no_country_selected_message":"Payment methods will be shown after you select the billing country.","checkout.payment_method_block.no_country_selected_title":"Select your billing country","checkout.payment_method_block.no_payment_methods_available_message":"There are no available payment methods. Please contact support for more information.","checkout.payment_method_block.no_payment_methods_available_title":"No payment methods available","checkout.payment_method_block.title":"Payment method","checkout.payment_methods.no_country_selected_message":"Select a country to see the available payment methods","checkout.promotion_code.add_label":"Add promotion code","checkout.promotion_code.applied_label":"Promotion applied","checkout.promotion_code.applied_status":"Promotion code applied","checkout.promotion_code.apply_aria_label":"Apply promotion code","checkout.promotion_code.apply_button":"Apply","checkout.promotion_code.apply_failed":"Promotion code could not be applied. Please try again.","checkout.promotion_code.input_aria_label":"Promotion code","checkout.promotion_code.placeholder":"Promotion code","checkout.promotion_code.remove_aria_label":"Remove promotion code","checkout.promotion_code.remove_failed":"Promotion code could not be removed. Please try again.","checkout.promotion_code.removed_status":"Promotion code removed","checkout.subscription_description":"You will be billed <strong>{price}</strong> per {period_name}, starting today.","checkout.trial.label":"Trial","checkout.trial_period_description":"You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.","checkout.vat_number.check_button.label":"Check","checkout.vat_number.label":"VAT number","checkout.vat_number.placeholder":"VAT number...","components.payment_method_form.section_title":"Available payment methods","components.payment_method_form.submit_button.label":"Save payment method","converted_amount_input.bounds.maximum":"Up to {maximum} {unit}","converted_amount_input.bounds.minimum":"At least {minimum} {unit}","converted_amount_input.bounds.range":"Between {minimum} and {maximum} {unit}","converted_amount_input.buys":"Buys about {credits}","converted_amount_input.cost":"Will cost {amount} excluding taxes","converted_amount_input.credits":"credits","customer.invoice_table.pay_invoice_button.label":"Pay","customer.subscriptions_block.next_billing_date":"Next billing date","customer.subscriptions_block.show_details_button_label":"Subscription details","customer_overview.billing_information_block.load_failed.subtitle":"Please refresh or contact support.","customer_overview.billing_information_block.load_failed.title":"We can’t load your billing information","customer_overview.billing_information_block.title":"Billing information","customer_overview.billing_information_block.view_all_payment_methods_link_label":"Edit","customer_overview.payment_methods.title":"{count,plural,one{Payment method} other{Payment methods}}","customer_overview.payment_methods_block.add_payment_method_button_label":"Add payment method","customer_overview.payment_methods_block.add_payment_method_helper_text":"Add a payment method for recurring invoice payments.","customer_overview.payment_methods_block.view_all_payment_methods_link_label":"View all","customer_overview.subscriptions_block.fallback_subscription_name":"Subscription","customer_overview.subscriptions_block.no_active_subscription_content":"There’s no active subscription to display.","customer_overview.subscriptions_block.no_active_subscription_title":"No subscriptions","customer_overview.subscriptions_block.title":"{count,plural,one{My subscription} other{My subscriptions}}","customer_overview.subscriptions_block.view_all_button_label":"View all","customer_overview.wallet_balances_block.title":"{count,plural,one{Wallet} other{Wallets}}","empty_state.retry.button":"Refresh",empty_value_placeholder:"-","enabled_pricings_list.item.price":"{amount} per {period}","enabled_pricings_list.item.upgrade_button.label":"Upgrade","enabled_pricings_list.title":"Upgrades","invoice_credits.balance.table_header":"Balance","invoice_credits.credit_breakdown.table_header":"Credit breakdown","invoice_credits.remaining.table_header":"Remaining","invoice_credits.used.table_header":"Used","invoice_preview.taxes_not_determined_by_billing_information_tooltip":"Will be determined by billing information","invoice_table.button.load_more":"Load more","invoice_table.chip.paid":"Paid","invoice_table.header.amount":"Amount","invoice_table.header.date":"Date","invoice_table.header.invoice_number":"Invoice","invoice_table.header.status":"Status","invoices_list.title":"Schedules","on_demand_pricing_list.category_fallback_title":"Items","on_demand_pricing_row.add_to_cart_button_label":"Add to cart","on_demand_pricing_row.one_off_label":"one-off","on_demand_pricing_row.remove_button_label":"Remove","pay_button.label.amount_and_payment_method":"Pay {amount} with {type}","pay_button.label.amount_only":"Pay {amount}","pay_button.label.default":"Pay","pay_invoice.error.description":"Please try again or contact support.","pay_invoice.error.title":"Something went wrong","pay_invoice.paid.title":"Thank you for your payment!","pay_invoice.payment_methods.title":"Payment methods","payment_completed_card.redirect_message":"You are being redirected...","payment_completed_card.title.authorize":"Payment successful","payment_completed_card.title.tokenize":"Your payment method is added","payment_integration_form.select_payment_method_error":"Select a payment method","payment_method.context_menu.delete.label":"Delete","payment_method.context_menu.set_as_default.label":"Set as default","payment_method_selector.add_payment_method":"Add payment method","payment_method_selector.empty_state.title":"No payment methods available","payment_method_selector.no_payment_methods_available":"There are no available payment methods. Please contact support for more information.","payment_method_selector.title":"Payment method","payment_methods_list.delete_modal.body":"Are you sure you want to delete this payment method?","payment_methods_list.delete_modal.cancel":"Cancel","payment_methods_list.delete_modal.confirm":"Delete","payment_methods_list.delete_modal.error":"We could not delete this payment method. Please try again.","payment_methods_list.delete_modal.title":"Delete payment method","payments.retry_button.label":"Try again","pricing_group_multiple_editor.at_least_one_description":"Select at least one product",pricing_item_pricing:e,"pricing_item_pricing.unsupported_pricing_error":"Unsupported pricing","screens.payment_method_management.description":"Add a new payment method or set a default payment method for your payments.","screens.payment_method_management.title":"Payment methods","sdk.invoice_details.customer_billing_information.title":"Your billing information","sdk.invoice_details.invoice.download_pdf":"Download the PDF for a full breakdown","sdk.invoice_details.invoice.title":"Invoice","sdk.invoice_details.invoice_details_block.due_date":"Due date","sdk.invoice_details.invoice_details_block.invoice_date":"Invoice date","sdk.invoice_details.invoice_details_block.title":"Invoice details","sdk.invoice_details.payment_history.payment_attempt":"Payment attempt","sdk.invoice_details.payment_history.title":"Payment history","seats.label":"Seats","seats.price_per_seat_period":"{amount} per seat/{period}","seats.tiered_price_per_seat_period":"{amount} per seat/{period}","seats.tiered_pricing_label":"Tiered pricing","seats.tiered_range_label":"{lower_bound} - {upper_bound} seats","seats.tiered_unbounded_range_label":"> {lower_bound} seats","secure_payments_kpi.generic":"Secure and encrypted payments","secure_payments_kpi.specific_vendor":"Secure and encrypted payments by","subscription_cancellation_modal.cancel.confirm_button.label":"Cancel subscription","subscription_cancellation_modal.cancel.error":"We could not cancel your subscription. Please try again.","subscription_cancellation_modal.cancel.explanation":"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.","subscription_cancellation_modal.cancel.explanation_with_date":"Your subscription will be canceled, but you’ll continue to have access until {date}.","subscription_cancellation_modal.cancel.title":"Cancel subscription","subscription_cancellation_modal.cancel_button.label":"Cancel","subscription_cancellation_modal.renew.confirm_button.label":"Renew subscription","subscription_cancellation_modal.renew.error":"We could not renew your subscription. Please try again.","subscription_cancellation_modal.renew.explanation":"Your subscription will continue as before, and billing will resume on its usual schedule.","subscription_cancellation_modal.renew.explanation_with_date":"You can renew your subscription until {date}. After this period you can only create a new subscription.","subscription_cancellation_modal.renew.title":"Renew subscription","subscription_cancellation_modal.renews_label":"Renews","subscription_details.cancel_button.label":"Cancel subscription","subscription_details.cancel_success":"Your subscription has been cancelled. You keep access until the end of the billing period.","subscription_details.empty_state.message":"This subscription is no longer available.","subscription_details.empty_state.title":"Subscription not found","subscription_details.load_error":"Unable to load this subscription. Please try again later.","subscription_details.renew_button.label":"Renew subscription","subscription_details.renew_success":"Your subscription has been renewed.","subscription_details.title":"Subscription details","subscription_management.done_button.label":"Done","subscription_management.order_summary.empty_state":"Select your items","subscription_management.order_summary.item_count":"{count} items","subscription_management.order_summary.one_off_label":"one-off","subscription_management.order_summary.selected_item_count":"{count} items","subscription_management.order_summary.selected_items_title":"Selected items","subscription_management.order_summary.title":"Order summary","subscription_management.payment_method_selector.label":"Payment method","subscription_management.payment_picker.all_title":"All payment methods","subscription_management.payment_picker.saved_title":"Saved payment methods","subscription_management.pricing_row.add_button_label":"Add to cart","subscription_management.pricing_row.one_off_label":"one-off","subscription_management.pricing_row.remove_button_label":"Remove","subscription_management.success.message":"Your {subject} has been changed. Please be aware that it can take some time to reflect this change in your subscription.","subscription_management.success.message_generic":"Your subscription has been changed. Please be aware that it can take some time to reflect this change in your subscription.","subscription_management.success.title":"Subscription updated","subscription_management.summary.empty_state":"Select your plan to see what it costs.","subscription_management.summary.error":"Unable to calculate the total. Please try again.","subscription_management.summary.title":"Order summary","subscription_management.summary.total_due_heading":"Total due","subscription_management.title":"Manage {subject}","subscription_management.title.default_subject":"subscription","subscription_management.update_button.label":"Update subscription","subscription_management.update_error":"Something went wrong. Please try again.","subscription_payment_completed_card.thank_you_for_subscribing":"Thank you for subscribing.","subscription_payment_completed_card.title":"Payment successful","tax_check.invalid_vat_number":"VAT number is invalid.","tax_check.valid_vat_number":"VAT number is valid.","topup_modal.add_payment_method.subtitle":"Add a new payment method for topping up your balance.","topup_modal.add_payment_method.title":"Add payment method","topup_modal.back_button.label":"Back","topup_modal.cancel_button.label":"Cancel","topup_modal.confirm_button.empty.label":"Top up balance","topup_modal.confirm_button.label":"Top up balance with {value}","topup_modal.done_button.label":"Done","topup_modal.flexible_option.bounds":"Between {minimum} and {maximum}","topup_modal.flexible_option.label":"Choose your own amount","topup_modal.invoice_preview.label":"You will pay","topup_modal.payment_method_required":"Select a payment method to pay for this top-up.","topup_modal.payment_method_selector.label":"Payment method","topup_modal.pricing_items.label":"Top up amount","topup_modal.save_payment_method.label":"Save payment method","topup_modal.subscriptions.label":"Subscription to top up","topup_modal.subtitle":"Your current balance is {balance}.","topup_modal.success.added":"Your balance was topped up with {value}. Please be aware that it can take some time to reflect this change in your wallet.","topup_modal.success.modal_subtitle":"Your payment went through.","topup_modal.success.modal_title":"Top-up complete","topup_modal.success.receipt.heading":"Receipt","topup_modal.success.title":"Top-up successful","topup_modal.title":"Top up balance","wallet_balance.credit_type_fallback_label":"Credits","wallet_balance.details.header":"Wallet balance","wallet_balance.load_failed":"Could not load wallet balances","wallet_balance.service_period_heading":"Service period - {startAt} - {endAt}"};exports.default=t,exports.empty_value_placeholder="-",exports.pricing_item_pricing=e;