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

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 (126) hide show
  1. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-0_VYW5Wu.js → BillingInformation.vue_vue_type_script_setup_true_lang-BI3Lg7nO.js} +1 -1
  2. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-D8ZeVBWO.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BYBAO4Au.mjs} +2 -2
  3. package/dist/ContentWithAsideLayout-DHpnJfGA.js +1 -0
  4. package/dist/{ContentWithAsideLayout-DhfUkZZg.mjs → ContentWithAsideLayout-Dy9xgxuF.mjs} +6 -3
  5. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DEqfojR8.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CTnn1gkW.mjs} +8 -23
  6. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C_uHr21N.js +1 -0
  7. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CFLR4ptB.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DU6X3zxr.js} +1 -1
  8. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-COnrD4ew.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-ryvFEQMV.mjs} +1 -1
  9. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-DdpPrYxi.js +1 -0
  10. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs +27 -0
  11. package/dist/{PaymentHistoryBlock-DUeSRR3k.js → PaymentHistoryBlock-BGbTy4Se.js} +1 -1
  12. package/dist/{PaymentHistoryBlock-BTRFc4ki.mjs → PaymentHistoryBlock-BKMttUyk.mjs} +1 -1
  13. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-TgZYSSQe.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CixdxEGm.js} +1 -1
  14. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-GeyErAW6.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.mjs} +1 -1
  15. package/dist/{PaymentIntegrationForm-DX6kv0_v.mjs → PaymentIntegrationForm-CypW6fZY.mjs} +1 -1
  16. package/dist/{PaymentIntegrationForm-CQntx0TH.js → PaymentIntegrationForm-D4QupHWl.js} +1 -1
  17. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BBEM-YPz.js +1 -0
  18. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Dkd-Cp8c.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CrGSfZZs.mjs} +736 -162
  19. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-B8eNptZp.mjs +145 -0
  20. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-eWmC5GOT.js +1 -0
  21. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-BUTqn4Ey.mjs +139 -0
  22. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-Be_fF-R_.js +1 -0
  23. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVoS3ZXS.js +1 -0
  24. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-D-BFQZiM.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cqk-vonA.mjs} +24 -23
  25. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-D-hpJL8I.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-56vu59V4.js} +1 -1
  26. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-B7IOIy-v.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DB1p61kZ.mjs} +4 -4
  27. package/dist/component-Bg2JVC_O.mjs +933 -0
  28. package/dist/component-Bs8oszfD.js +1 -0
  29. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  30. package/dist/components/BillingInformation/BillingInformation.es.js +4 -4
  31. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  32. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +3 -3
  33. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  34. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +4 -4
  35. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  36. package/dist/components/Invoice/Invoice.es.js +14 -13
  37. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  38. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
  39. package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +3 -0
  40. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +1 -0
  41. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +123 -0
  42. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  43. package/dist/components/InvoicesList/InvoicesList.es.js +3 -3
  44. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  45. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
  46. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  47. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +11 -110
  48. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  49. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +5 -5
  50. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  51. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +5 -5
  52. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  53. package/dist/components/WalletBalances/WalletBalances.es.js +3 -3
  54. package/dist/core/index.cjs.js +1 -1
  55. package/dist/core/index.es.js +1 -1
  56. package/dist/core/types.d.ts +4 -0
  57. package/dist/{customer-Bn6GdxP8.mjs → customer-Bv_fqXzO.mjs} +1 -1
  58. package/dist/{customer-CGyZojAB.js → customer-_W8gIX5m.js} +1 -1
  59. package/dist/{en-US-G2HBHqjq.js → en-US-C0gIE4Q1.js} +1 -1
  60. package/dist/{en-US-BKhsdJQ2.mjs → en-US-DAgOSlgv.mjs} +19 -12
  61. package/dist/index.cjs.js +1 -1
  62. package/dist/index.es.js +1 -1
  63. package/dist/{invoices-Rs-QBUGS.mjs → invoices-BGb0AwVF.mjs} +2 -2
  64. package/dist/{invoices-DDeL8tvI.js → invoices-D-OKipCg.js} +1 -1
  65. package/dist/{nl-NL-DvVsMfhA.js → nl-NL-Br7muSHK.js} +1 -1
  66. package/dist/{nl-NL-BdeAy1tY.mjs → nl-NL-DCsmrA8A.mjs} +9 -2
  67. package/dist/paymentMethods-DIbB759g.js +1 -0
  68. package/dist/{paymentMethods-DOH9-6M1.mjs → paymentMethods-DvqlWe96.mjs} +11 -3
  69. package/dist/{payments-DGPENXiS.mjs → payments-CpzTVrQM.mjs} +1 -1
  70. package/dist/{payments-C0vYbn5Q.js → payments-DMDDI3MK.js} +1 -1
  71. package/dist/{registry-7UKVW93Q.mjs → registry-B-If1W_u.mjs} +9 -3
  72. package/dist/registry-uG2isab0.js +1 -0
  73. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  74. package/dist/screens/Checkout/Checkout.es.js +103 -70
  75. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  76. package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -13
  77. package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -1
  78. package/dist/screens/PayInvoice/PayInvoice.es.js +45 -34
  79. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +3 -0
  80. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +1 -0
  81. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.es.js +231 -0
  82. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  83. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +29 -34
  84. package/dist/solvimon-web.css +1 -1
  85. package/dist/{subscriptions-BIGqt2N0.mjs → subscriptions-BPYyv09M.mjs} +2 -2
  86. package/dist/{subscriptions-CcpEwubd.js → subscriptions-CC61I6Nj.js} +1 -1
  87. package/dist/{adyen-D0yvZvq5.mjs → url-1Lbg5Yni.mjs} +35 -35
  88. package/dist/url-B6-3PkW2.js +1 -0
  89. package/dist/{useActionDispatchProvider-aqYyqIdb.js → useActionDispatchProvider-BHTknMoH.js} +1 -1
  90. package/dist/{useActionDispatchProvider-Ca1YbU61.mjs → useActionDispatchProvider-Dz8-e4gZ.mjs} +1 -1
  91. package/dist/{useCustomer-DUA8Y-2I.mjs → useCustomer-VVJi8z2w.mjs} +2 -2
  92. package/dist/{useCustomer-D9ZrqMFY.js → useCustomer-Z24KchWC.js} +1 -1
  93. package/dist/useIncrementalLoading-CuSndpP2.js +1 -0
  94. package/dist/{useIncrementalLoading-C1LKdVP8.mjs → useIncrementalLoading-DmOT2MXH.mjs} +4 -4
  95. package/dist/{useInvoiceData-HNnt3703.js → useInvoiceData-Bl87gzIS.js} +1 -1
  96. package/dist/{useInvoiceData-Bz4a2Mfa.mjs → useInvoiceData-Di5pLPM0.mjs} +2 -2
  97. package/dist/{useInvoicesList-DXBTGdcI.js → useInvoicesList-CFk-_oVK.js} +1 -1
  98. package/dist/{useInvoicesList-b2_fiHsc.mjs → useInvoicesList-z19cteaD.mjs} +4 -4
  99. package/dist/{useLoadInitialData-D0t-Lk3k.js → useLoadInitialData-CTqfiMTN.js} +1 -1
  100. package/dist/{useLoadInitialData-Cyp1xpuv.mjs → useLoadInitialData-CkpryfjF.mjs} +1 -1
  101. package/dist/{usePaymentMethodOptions-r0Opz7BC.mjs → usePaymentMethodOptions-BoGHJjng.mjs} +2 -2
  102. package/dist/{usePaymentMethodOptions-DgGDcVeE.js → usePaymentMethodOptions-BsCZnCQW.js} +1 -1
  103. package/dist/{usePaymentMethods-BHLXXaCa.js → usePaymentMethods-AC-4rrR9.js} +1 -1
  104. package/dist/{usePaymentMethods-C-NCtOom.mjs → usePaymentMethods-ocHmNoP7.mjs} +2 -2
  105. package/dist/{usePayments-DADpdoI7.js → usePayments-CgXZeWrU.js} +1 -1
  106. package/dist/{usePayments-BtByiIMy.mjs → usePayments-D85eB5l4.mjs} +3 -3
  107. package/dist/{usePortal-CpW3EDD-.mjs → usePortal-B1O1zgdV.mjs} +1 -1
  108. package/dist/{usePortal-DhaZBAGi.js → usePortal-DVD7PcWI.js} +1 -1
  109. package/dist/{useService-C0h9UlQW.js → useService-CHrkefKd.js} +1 -1
  110. package/dist/{useService-BcYQRxPS.mjs → useService-DF57xuDd.mjs} +1 -1
  111. package/dist/{useWalletBalanceItems-COzKSpmt.js → useWalletBalanceItems-BL-R5foK.js} +1 -1
  112. package/dist/{useWalletBalanceItems-DKz-2vUy.mjs → useWalletBalanceItems-COQDLfoZ.mjs} +3 -3
  113. package/dist/{vendor-ui-CdOX_IS-.mjs → vendor-ui-B8IlviSs.mjs} +6483 -5867
  114. package/dist/vendor-ui-C3Tq-qY_.js +1 -0
  115. package/package.json +5 -4
  116. package/dist/ContentWithAsideLayout-B5B8Kwaw.js +0 -1
  117. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-zdBaVj-K.js +0 -1
  118. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BhGQB-c9.js +0 -1
  119. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BuJGxitV.js +0 -1
  120. package/dist/adyen-BvNyYAg-.js +0 -1
  121. package/dist/component-By_A1VHh.js +0 -1
  122. package/dist/component-CGfjV_7z.mjs +0 -889
  123. package/dist/paymentMethods-BR9w3qy8.js +0 -1
  124. package/dist/registry-DrV0jFnM.js +0 -1
  125. package/dist/useIncrementalLoading-FNH4k4a3.js +0 -1
  126. package/dist/vendor-ui-1SHma7t1.js +0 -1
@@ -0,0 +1,123 @@
1
+ import { defineComponent, renderSlot, unref, computed, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
+ import { u as useLoadInitialData } from "../../useLoadInitialData-CkpryfjF.mjs";
3
+ import { u as useInvoice, a as usePayments } from "../../usePayments-D85eB5l4.mjs";
4
+ import { _ as _sfc_main$3 } from "../../InvoiceHeader.vue_vue_type_script_setup_true_lang-bAiAbtMi.mjs";
5
+ import { _ as _sfc_main$2, g as getComponentName, d as defineCustomElement } from "../../component-Bg2JVC_O.mjs";
6
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7
+ __name: "InvoiceHeader.entry.view",
8
+ props: {
9
+ environment: { type: String },
10
+ locale: { type: String },
11
+ dateLocale: { type: String },
12
+ messages: { type: Object },
13
+ primaryColor: { type: String },
14
+ secondaryColor: { type: String },
15
+ isShadowRoot: { type: Boolean },
16
+ experimentalFeatures: { type: Array },
17
+ logLevel: { type: String },
18
+ onLog: { type: Function },
19
+ allowedPortalTypes: { type: Array },
20
+ portalObject: { type: Object },
21
+ cssOverrides: { type: [String, Array] },
22
+ branding: { type: Object },
23
+ configuration: { type: Object }
24
+ },
25
+ setup(__props) {
26
+ const props = __props;
27
+ const invoice = useInvoice({ invoiceId: props.configuration.invoiceId });
28
+ const payments = usePayments();
29
+ const { isLoading } = useLoadInitialData(
30
+ invoice.get(),
31
+ payments.get(props.configuration.invoiceId)
32
+ );
33
+ return (_ctx, _cache) => {
34
+ return renderSlot(_ctx.$slots, "default", {
35
+ invoice: unref(invoice).invoice.value,
36
+ invoiceDownloadService: unref(invoice).downloadInvoicePdf,
37
+ payments: unref(payments),
38
+ isLoading: unref(isLoading)
39
+ });
40
+ };
41
+ }
42
+ });
43
+ const _sfc_main = /* @__PURE__ */ defineComponent({
44
+ __name: "InvoiceHeader.entry",
45
+ props: {
46
+ environment: { type: String },
47
+ locale: { type: String },
48
+ dateLocale: { type: String },
49
+ messages: { type: Object },
50
+ primaryColor: { type: String },
51
+ secondaryColor: { type: String },
52
+ isShadowRoot: { type: Boolean },
53
+ experimentalFeatures: { type: Array },
54
+ logLevel: { type: String },
55
+ onLog: { type: Function },
56
+ allowedPortalTypes: { type: Array },
57
+ portalObject: { type: Object },
58
+ cssOverrides: { type: [String, Array] },
59
+ branding: { type: Object },
60
+ configuration: { type: Object }
61
+ },
62
+ setup(__props) {
63
+ var _a;
64
+ const COMPONENT_NAME2 = getComponentName("invoice-header");
65
+ const props = __props;
66
+ if (!((_a = props.configuration) == null ? void 0 : _a.invoiceId)) {
67
+ throw new Error("Missing invoice id");
68
+ }
69
+ const resolvedProps = computed(() => ({
70
+ ...props,
71
+ configuration: {
72
+ enableDownloadButton: true,
73
+ ...props.configuration
74
+ }
75
+ }));
76
+ return (_ctx, _cache) => {
77
+ var _a2, _b, _c, _d;
78
+ return openBlock(), createBlock(unref(_sfc_main$2), {
79
+ "custom-element-name": unref(COMPONENT_NAME2),
80
+ environment: __props.environment,
81
+ locale: __props.locale,
82
+ "portal-object": __props.portalObject,
83
+ "allowed-portal-types": ["CUSTOMER"],
84
+ "primary-color": (_b = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b.primary,
85
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
86
+ "experimental-features": __props.experimentalFeatures,
87
+ "log-level": __props.logLevel,
88
+ "on-log": __props.onLog,
89
+ "css-overrides": __props.cssOverrides,
90
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
91
+ }, {
92
+ default: withCtx(() => [
93
+ createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(resolvedProps.value)), {
94
+ default: withCtx(({ invoice, payments, isLoading, invoiceDownloadService }) => [
95
+ invoice ? (openBlock(), createBlock(_sfc_main$3, {
96
+ key: 0,
97
+ "is-loading": isLoading,
98
+ invoice,
99
+ "invoice-download-service": invoiceDownloadService,
100
+ payments: payments.payments.value,
101
+ configuration: resolvedProps.value.configuration
102
+ }, null, 8, ["is-loading", "invoice", "invoice-download-service", "payments", "configuration"])) : createCommentVNode("", true)
103
+ ]),
104
+ _: 1
105
+ }, 16)
106
+ ]),
107
+ _: 1
108
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log", "css-overrides"]);
109
+ };
110
+ }
111
+ });
112
+ const SolvimonInvoiceHeader = defineCustomElement(_sfc_main);
113
+ const COMPONENT_NAME = getComponentName("invoice-header");
114
+ const defineSolvimonInvoiceHeader = () => {
115
+ if (!customElements.get(COMPONENT_NAME)) {
116
+ customElements.define(COMPONENT_NAME, SolvimonInvoiceHeader);
117
+ }
118
+ };
119
+ export {
120
+ COMPONENT_NAME,
121
+ SolvimonInvoiceHeader,
122
+ defineSolvimonInvoiceHeader
123
+ };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../useInvoicesList-DXBTGdcI.js"),t=require("../../useLoadInitialData-D0t-Lk3k.js"),r=require("../../component-By_A1VHh.js"),n=e.defineComponent({__name:"InvoicesList.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(r){var n,i;const a=r,s=a.portalObject.customer_id,l=o.useInvoicesList({customerId:s,batchSize:(null==(i=null==(n=a.configuration)?void 0:n.pagination)?void 0:i.batchSize)||15}),{isLoading:c}=t.useLoadInitialData(l.fetchInitial());return(o,t)=>e.renderSlot(o.$slots,"default",{isLoading:e.unref(c),invoices:e.unref(l)})}}),i=e.defineComponent({__name:"InvoicesList.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=>(i,a)=>{var l,c,p,y;return e.openBlock(),e.createBlock(e.unref(r._sfc_main),{"custom-element-name":e.unref(s),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(l=t.branding)?void 0:l.colors)?void 0:c.primary,"secondary-color":null==(y=null==(p=t.branding)?void 0:p.colors)?void 0:y.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,"css-overrides":t.cssOverrides,onError:a[0]||(a[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({invoices:r,isLoading:n})=>[e.createVNode(o._sfc_main,{configuration:t.configuration,invoices:r.items.value,"is-loading":n,"has-more-items":r.hasNextBatch.value,onLoadMore:r.fetchMore},null,8,["configuration","invoices","is-loading","has-more-items","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=r.defineCustomElement(i),s=r.getComponentName("invoices-list");exports.COMPONENT_NAME=s,exports.SolvimonInvoicesList=a,exports.defineSolvimonInvoicesList=()=>{customElements.get(s)||customElements.define(s,a)};
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../useInvoicesList-CFk-_oVK.js"),t=require("../../useLoadInitialData-CTqfiMTN.js"),r=require("../../component-Bs8oszfD.js"),n=e.defineComponent({__name:"InvoicesList.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(r){var n,i;const a=r,s=a.portalObject.customer_id,l=o.useInvoicesList({customerId:s,batchSize:(null==(i=null==(n=a.configuration)?void 0:n.pagination)?void 0:i.batchSize)||15}),{isLoading:c}=t.useLoadInitialData(l.fetchInitial());return(o,t)=>e.renderSlot(o.$slots,"default",{isLoading:e.unref(c),invoices:e.unref(l)})}}),i=e.defineComponent({__name:"InvoicesList.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=>(i,a)=>{var l,c,p,y;return e.openBlock(),e.createBlock(e.unref(r._sfc_main),{"custom-element-name":e.unref(s),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(l=t.branding)?void 0:l.colors)?void 0:c.primary,"secondary-color":null==(y=null==(p=t.branding)?void 0:p.colors)?void 0:y.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,"css-overrides":t.cssOverrides,onError:a[0]||(a[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({invoices:r,isLoading:n})=>[e.createVNode(o._sfc_main,{configuration:t.configuration,invoices:r.items.value,"is-loading":n,"has-more-items":r.hasNextBatch.value,onLoadMore:r.fetchMore},null,8,["configuration","invoices","is-loading","has-more-items","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=r.defineCustomElement(i),s=r.getComponentName("invoices-list");exports.COMPONENT_NAME=s,exports.SolvimonInvoicesList=a,exports.defineSolvimonInvoicesList=()=>{customElements.get(s)||customElements.define(s,a)};
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
- import { u as useInvoicesList, _ as _sfc_main$3 } from "../../useInvoicesList-b2_fiHsc.mjs";
3
- import { u as useLoadInitialData } from "../../useLoadInitialData-Cyp1xpuv.mjs";
4
- import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-CGfjV_7z.mjs";
2
+ import { u as useInvoicesList, _ as _sfc_main$3 } from "../../useInvoicesList-z19cteaD.mjs";
3
+ import { u as useLoadInitialData } from "../../useLoadInitialData-CkpryfjF.mjs";
4
+ import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-Bg2JVC_O.mjs";
5
5
  const DEFAULT_BATCH_SIZE = 15;
6
6
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7
7
  __name: "InvoicesList.entry.view",
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-TgZYSSQe.js"),o=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),n=require("../../useInvoiceData-HNnt3703.js"),r=require("../../component-By_A1VHh.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-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,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-GeyErAW6.mjs";
2
+ import { _ as _sfc_main$4 } from "../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-tM7f_fQS.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-Bz4a2Mfa.mjs";
5
- import { _ as _sfc_main$5, d as defineCustomElement, g as getComponentName } from "../../component-CGfjV_7z.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";
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-By_A1VHh.js"),o=require("../../vendor-ui-1SHma7t1.js"),n=require("../../useLoadInitialData-D0t-Lk3k.js"),r=require("../../useCustomer-D9ZrqMFY.js"),a=require("../../usePaymentMethodOptions-DgGDcVeE.js"),i=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),s=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BhGQB-c9.js"),l=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=r.useCustomer({customerId:i.portalObject.customer_id}),l=a.usePaymentMethodOptions(),{isLoading:c}=n.useLoadInitialData((async()=>{var e;const t=await s.get.execute(),n=o.getCustomerCountry(t);await l.get({customerId:t.id,country:n,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(c)})}}),c=e.defineComponent({__name:"PaymentMethodForm",props:{customer:{type:Object},paymentMethodOptions:{type:Array},configuration:{type:Object},isLoading:{type:Boolean,default:!1},countryCode:{type:String}},setup(t){const n={currency:"EUR",quantity:"0"},r=t,{$t:a}=o.useIntl(),l=e.computed(()=>{return"AUTHORIZE"===(null==(e=r.configuration)?void 0:e.variant)?e:{...e,variant:"TOKENIZE"};var e}),c=e.computed(()=>{let e="NL";if(r.countryCode)return e=r.countryCode,e;if(r.customer){const t=o.getCustomerCountry(r.customer);if(t)return e=t,e}return"NL"}),u=e.computed(()=>"AUTHORIZE"===l.value.variant?{paymentMethodOptions:r.paymentMethodOptions,countryCode:c.value,variant:"AUTHORIZE",amount:l.value.amount,context:l.value.context,invoiceId:l.value.invoiceId,successRedirectUrl:l.value.successRedirectUrl,selectedOption:l.value.selectedOption,validateOnSubmit:l.value.validateOnSubmit,forceStorePaymentMethod:l.value.forceStorePaymentMethod}:{paymentMethodOptions:r.paymentMethodOptions,customerId:r.customer.id,countryCode:c.value,variant:"TOKENIZE",amount:l.value.amount??n,invoiceId:l.value.invoiceId,successRedirectUrl:l.value.successRedirectUrl,selectedOption:l.value.selectedOption,validateOnSubmit:l.value.validateOnSubmit,forceStorePaymentMethod:l.value.forceStorePaymentMethod});return(n,r)=>t.isLoading?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,variant:"section",class:"sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]","data-testid":"payment-method-form-skeleton"})):(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:1,class:"sv-payment-method-form sv-root sv-component","no-border":"","no-spacing":"","content-background":"none",title:e.unref(a)({defaultMessage:"Available payment methods",description:"Title of the available payment methods form",id:"components.payment_method_form.section_title"})},{default:e.withCtx(()=>[e.createVNode(s._sfc_main,e.mergeProps({class:"sv-payment-method-form__integration"},u.value),null,16)]),_:1},8,["title"]))}}),u=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 n=o;return(r,a)=>{var i,s,u,m;return e.openBlock(),e.createBlock(e.unref(t._sfc_main),{"custom-element-name":e.unref(p),environment:o.environment,locale:o.locale,"portal-object":o.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(s=null==(i=o.branding)?void 0:i.colors)?void 0:s.primary,"secondary-color":null==(m=null==(u=o.branding)?void 0:u.colors)?void 0:m.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,"css-overrides":o.cssOverrides,onError:a[0]||(a[0]=e=>r.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(l,e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(({customer:t,paymentMethodOptions:n,isLoading:r})=>[t?(e.openBlock(),e.createBlock(c,{key:0,customer:t,"payment-method-options":n.paymentMethodOptions.value,configuration:o.configuration,"is-loading":r},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"])}}}),m=t.defineCustomElement(u),p=t.getComponentName("payment-method-form");exports.COMPONENT_NAME=p,exports.SolvimonPaymentMethodForm=m,exports.defineSolvimonPaymentMethodForm=()=>{customElements.get(p)||customElements.define(p,m)};
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,12 +1,11 @@
1
- import { defineComponent, renderSlot, unref, computed, openBlock, createBlock, withCtx, createVNode, mergeProps, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$6, d as defineCustomElement, g as getComponentName } from "../../component-CGfjV_7z.mjs";
3
- import { x as getCustomerCountry, u as useIntl, _ as _sfc_main$4 } from "../../vendor-ui-CdOX_IS-.mjs";
4
- import { u as useLoadInitialData } from "../../useLoadInitialData-Cyp1xpuv.mjs";
5
- import { u as useCustomer } from "../../useCustomer-DUA8Y-2I.mjs";
6
- import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-r0Opz7BC.mjs";
7
- import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
8
- import { _ as _sfc_main$5 } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Dkd-Cp8c.mjs";
9
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
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";
8
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10
9
  __name: "PaymentMethodForm.entry.view",
11
10
  props: {
12
11
  environment: { type: String },
@@ -50,104 +49,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
50
49
  };
51
50
  }
52
51
  });
53
- const FALLBACK_COUNTRY_CODE = "NL";
54
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
55
- __name: "PaymentMethodForm",
56
- props: {
57
- customer: { type: Object },
58
- paymentMethodOptions: { type: Array },
59
- configuration: { type: Object },
60
- isLoading: { type: Boolean, default: false },
61
- countryCode: { type: String }
62
- },
63
- setup(__props) {
64
- const DEFAULT_AMOUNT = {
65
- currency: "EUR",
66
- quantity: "0"
67
- };
68
- const props = __props;
69
- const { $t } = useIntl();
70
- const resolveConfiguration = (configuration2) => {
71
- if ((configuration2 == null ? void 0 : configuration2.variant) === "AUTHORIZE") {
72
- return configuration2;
73
- }
74
- return {
75
- ...configuration2,
76
- variant: "TOKENIZE"
77
- };
78
- };
79
- const configuration = computed(
80
- () => resolveConfiguration(props.configuration)
81
- );
82
- const countryCode = computed(() => {
83
- let result = FALLBACK_COUNTRY_CODE;
84
- if (props.countryCode) {
85
- result = props.countryCode;
86
- return result;
87
- }
88
- if (props.customer) {
89
- const country = getCustomerCountry(props.customer);
90
- if (country) {
91
- result = country;
92
- return result;
93
- }
94
- }
95
- return FALLBACK_COUNTRY_CODE;
96
- });
97
- const paymentIntegrationProps = computed(() => {
98
- if (configuration.value.variant === "AUTHORIZE") {
99
- return {
100
- paymentMethodOptions: props.paymentMethodOptions,
101
- countryCode: countryCode.value,
102
- variant: "AUTHORIZE",
103
- amount: configuration.value.amount,
104
- context: configuration.value.context,
105
- invoiceId: configuration.value.invoiceId,
106
- successRedirectUrl: configuration.value.successRedirectUrl,
107
- selectedOption: configuration.value.selectedOption,
108
- validateOnSubmit: configuration.value.validateOnSubmit,
109
- forceStorePaymentMethod: configuration.value.forceStorePaymentMethod
110
- };
111
- }
112
- return {
113
- paymentMethodOptions: props.paymentMethodOptions,
114
- customerId: props.customer.id,
115
- countryCode: countryCode.value,
116
- variant: "TOKENIZE",
117
- amount: configuration.value.amount ?? DEFAULT_AMOUNT,
118
- invoiceId: configuration.value.invoiceId,
119
- successRedirectUrl: configuration.value.successRedirectUrl,
120
- selectedOption: configuration.value.selectedOption,
121
- validateOnSubmit: configuration.value.validateOnSubmit,
122
- forceStorePaymentMethod: configuration.value.forceStorePaymentMethod
123
- };
124
- });
125
- return (_ctx, _cache) => {
126
- return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
127
- key: 0,
128
- variant: "section",
129
- class: "sv-payment-method-form sv-root sv-component sv-loading min-h-[180px]",
130
- "data-testid": "payment-method-form-skeleton"
131
- })) : (openBlock(), createBlock(unref(_sfc_main$4), {
132
- key: 1,
133
- class: "sv-payment-method-form sv-root sv-component",
134
- "no-border": "",
135
- "no-spacing": "",
136
- "content-background": "none",
137
- title: unref($t)({
138
- defaultMessage: "Available payment methods",
139
- description: "Title of the available payment methods form",
140
- id: "components.payment_method_form.section_title"
141
- })
142
- }, {
143
- default: withCtx(() => [
144
- createVNode(_sfc_main$5, mergeProps({ class: "sv-payment-method-form__integration" }, paymentIntegrationProps.value), null, 16)
145
- ]),
146
- _: 1
147
- }, 8, ["title"]));
148
- };
149
- }
150
- });
151
52
  const _sfc_main = /* @__PURE__ */ defineComponent({
152
53
  __name: "PaymentMethodForm.entry",
153
54
  props: {
@@ -172,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
172
73
  const props = __props;
173
74
  return (_ctx, _cache) => {
174
75
  var _a, _b, _c, _d;
175
- return openBlock(), createBlock(unref(_sfc_main$6), {
76
+ return openBlock(), createBlock(unref(_sfc_main$2), {
176
77
  "custom-element-name": unref(COMPONENT_NAME),
177
78
  environment: __props.environment,
178
79
  locale: __props.locale,
@@ -187,9 +88,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
187
88
  onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
188
89
  }, {
189
90
  default: withCtx(() => [
190
- createVNode(_sfc_main$2, normalizeProps(guardReactiveProps(props)), {
91
+ createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(props)), {
191
92
  default: withCtx(({ customer, paymentMethodOptions, isLoading }) => [
192
- customer ? (openBlock(), createBlock(_sfc_main$1, {
93
+ customer ? (openBlock(), createBlock(_sfc_main$3, {
193
94
  key: 0,
194
95
  customer,
195
96
  "payment-method-options": paymentMethodOptions.paymentMethodOptions.value,
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-By_A1VHh.js"),n=require("../../vendor-ui-1SHma7t1.js"),r=require("../../useService-C0h9UlQW.js"),o=require("../../subscriptions-CcpEwubd.js"),i=require("../../useLoadInitialData-D0t-Lk3k.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-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,9 +1,9 @@
1
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-CGfjV_7z.mjs";
3
- import { u as useIntl, _ as _sfc_main$3, P as PricingPlanSchedules } from "../../vendor-ui-CdOX_IS-.mjs";
4
- import { u as useService } from "../../useService-BcYQRxPS.mjs";
5
- import { c as createSubscriptionsService } from "../../subscriptions-BIGqt2N0.mjs";
6
- import { u as useLoadInitialData } from "../../useLoadInitialData-Cyp1xpuv.mjs";
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
7
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8
8
  __name: "SubscriptionSchedules",
9
9
  props: {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-D-hpJL8I.js"),t=require("../../component-By_A1VHh.js"),r=require("../../useCustomer-D9ZrqMFY.js"),n=require("../../useLoadInitialData-D0t-Lk3k.js"),s=require("../../usePaymentMethods-BHLXXaCa.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-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,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-B7IOIy-v.mjs";
3
- import { _ as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-CGfjV_7z.mjs";
4
- import { u as useCustomer } from "../../useCustomer-DUA8Y-2I.mjs";
5
- import { u as useLoadInitialData } from "../../useLoadInitialData-Cyp1xpuv.mjs";
6
- import { u as usePaymentMethods } from "../../usePaymentMethods-C-NCtOom.mjs";
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";
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-COzKSpmt.js"),r=require("../../useLoadInitialData-D0t-Lk3k.js"),l=require("../../component-By_A1VHh.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"),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,8 +1,8 @@
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-DKz-2vUy.mjs";
4
- import { u as useLoadInitialData } from "../../useLoadInitialData-Cyp1xpuv.mjs";
5
- import { _ as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-CGfjV_7z.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";
6
6
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
7
  __name: "WalletBalances",
8
8
  props: {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../registry-DrV0jFnM.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-uG2isab0.js");exports.createSolvimonCore=e.createSolvimonCore,exports.getRegisteredComponentIds=e.getRegisteredComponentIds,exports.getRegisteredScreenIds=e.getRegisteredScreenIds;
@@ -1,4 +1,4 @@
1
- import { c, g, a } from "../registry-7UKVW93Q.mjs";
1
+ import { c, g, a } from "../registry-B-If1W_u.mjs";
2
2
  export {
3
3
  c as createSolvimonCore,
4
4
  g as getRegisteredComponentIds,
@@ -5,6 +5,7 @@ import { SolvimonBillingInformationEntryProps } from '../components/BillingInfor
5
5
  import { SolvimonBillingInformationFormEntryProps } from '../components/BillingInformationForm/BillingInformationForm.entry.types';
6
6
  import { SolvimonCustomerPaymentMethodsEntryProps } from '../components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types';
7
7
  import { SolvimonInvoiceEntryProps } from '../components/Invoice/Invoice.entry.types';
8
+ import { SolvimonInvoiceHeaderEntryProps } from '../components/InvoiceHeader/InvoiceHeader.entry.types';
8
9
  import { SolvimonInvoiceDetailsEntryProps } from '../components/InvoiceDetails/InvoiceDetails.entry.types';
9
10
  import { SolvimonInvoicesListEntryProps } from '../components/InvoicesList/InvoicesList.entry.types';
10
11
  import { SolvimonPaymentMethodFormEntryProps } from '../components/PaymentMethodForm/PaymentMethodForm.entry.types';
@@ -16,6 +17,7 @@ import { SolvimonCheckoutEntryProps } from '../screens/Checkout/Checkout.entry.t
16
17
  import { SolvimonCustomerOverviewEntryProps } from '../screens/CustomerOverview/CustomerOverview.entry.types';
17
18
  import { SolvimonUpgradeSubscriptionEntryProps } from '../screens/UpgradeSubscription/UpgradeSubscription.entry.types';
18
19
  import { SolvimonPayInvoiceEntryProps } from '../screens/PayInvoice/PayInvoice.entry.types';
20
+ import { SolvimonPaymentMethodsManagementEntryProps } from '../screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types';
19
21
  /**
20
22
  * Shared configuration passed to all mounted Solvimon components and screens.
21
23
  * Extends the base entry props (environment, locale, branding, etc.).
@@ -41,6 +43,7 @@ export interface SolvimonMountInstance {
41
43
  }
42
44
  interface RegisteredComponentEntryPropsById {
43
45
  invoice: SolvimonInvoiceEntryProps;
46
+ 'invoice-header': SolvimonInvoiceHeaderEntryProps;
44
47
  'invoice-details': SolvimonInvoiceDetailsEntryProps;
45
48
  'invoices-list': SolvimonInvoicesListEntryProps;
46
49
  'payment-history': SolvimonPaymentHistoryEntryProps;
@@ -57,6 +60,7 @@ interface RegisteredScreenEntryPropsById {
57
60
  'customer-overview': SolvimonCustomerOverviewEntryProps;
58
61
  'upgrade-subscription': SolvimonUpgradeSubscriptionEntryProps;
59
62
  'pay-invoice': SolvimonPayInvoiceEntryProps;
63
+ 'payment-methods-management': SolvimonPaymentMethodsManagementEntryProps;
60
64
  }
61
65
  /**
62
66
  * Registered screen ids that can be used with createScreen.
@@ -1,4 +1,4 @@
1
- import { c as createRequestService, u as useConfig } from "./component-CGfjV_7z.mjs";
1
+ import { c as createRequestService, u as useConfig } from "./component-Bg2JVC_O.mjs";
2
2
  function createCustomerService() {
3
3
  const request = createRequestService();
4
4
  const config = useConfig();
@@ -1 +1 @@
1
- const t=require("./component-By_A1VHh.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-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 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="{pricing} per {billing_period}",t={"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","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","customer.invoice_table.pay_invoice_button.label":"Pay","customer.subscriptions_block.cancel_button_label":"Cancel subscription","customer.subscriptions_block.next_billing_date":"Next billing date","customer.subscriptions_block.renew_button_label":"Renew subscription","customer.subscriptions_block.show_details_button_label":"Subscription details","customer.subscriptions_block.upgrade_button_label":"Upgrade subscription","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:"-","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","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","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_payment_completed_card.continue":"Continue to merchant","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.","upgrade_subscription.empty_state":"No one-off items are available for this subscription.","upgrade_subscription.load_error":"Unable to load items. Please try again later.","upgrade_subscription.order_summary.empty_state":"Select your items","upgrade_subscription.order_summary.item_count":"{count} items","upgrade_subscription.order_summary.one_off_label":"one-off","upgrade_subscription.order_summary.selected_item_count":"{count} items","upgrade_subscription.order_summary.selected_items_title":"Selected items","upgrade_subscription.order_summary.title":"Order summary","upgrade_subscription.payment_method_block.no_payment_methods_available_message":"There are no available payment methods. Please contact support for more information.","upgrade_subscription.payment_method_block.no_payment_methods_available_title":"No payment methods available","upgrade_subscription.payment_method_block.title":"Payment method","upgrade_subscription.payment_picker.all_title":"All payment methods","upgrade_subscription.payment_picker.saved_title":"Saved payment methods","upgrade_subscription.preview_error":"Unable to calculate the total. Please try again.","upgrade_subscription.pricing_row.add_button_label":"Add to cart","upgrade_subscription.pricing_row.one_off_label":"one-off","upgrade_subscription.pricing_row.remove_button_label":"Remove","upgrade_subscription.purchase_button.label":"Purchase","upgrade_subscription.purchase_error":"Something went wrong. Please try again.","upgrade_subscription.success.redirect":"You will be redirected shortly…","upgrade_subscription.success.subtitle":"Your purchase has been completed.","upgrade_subscription.success.title":"Payment successful","upgrade_subscription.title":"Upgrade subscription","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}","wallet_balance.wallet_ballance_title":"Balance"};exports.default=t,exports.empty_value_placeholder="-",exports.pricing_item_pricing=e;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="{pricing} per {billing_period}",t={"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","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_trial.label":"Start trial","checkout.pay_and_subscribe_button.label":"Pay and subscribe","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_period_description":"You will be billed <strong>{price}</strong> per {period_name}, starting {startDate, date, long}.","checkout.trial.label":"Trial","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","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_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.payment_methods.title":"{count,plural,one{Payment method} other{Payment methods}}","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}}","customer.invoice_table.pay_invoice_button.label":"Pay","customer.subscriptions_block.cancel_button_label":"Cancel subscription","customer.subscriptions_block.next_billing_date":"Next billing date","customer.subscriptions_block.renew_button_label":"Renew subscription","customer.subscriptions_block.show_details_button_label":"Subscription details","customer.subscriptions_block.upgrade_button_label":"Upgrade subscription","empty_state.retry.button":"Refresh",empty_value_placeholder:"-","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_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.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_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.invoice.download_pdf":"Download the PDF for a full breakdown","sdk.invoice_details.invoice.title":"Invoice","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_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.","upgrade_subscription.empty_state":"No one-off items are available for this subscription.","upgrade_subscription.load_error":"Unable to load items. Please try again later.","upgrade_subscription.order_summary.empty_state":"Select your items","upgrade_subscription.order_summary.item_count":"{count} items","upgrade_subscription.order_summary.one_off_label":"one-off","upgrade_subscription.order_summary.selected_item_count":"{count} items","upgrade_subscription.order_summary.selected_items_title":"Selected items","upgrade_subscription.order_summary.title":"Order summary","upgrade_subscription.payment_method_block.no_payment_methods_available_message":"There are no available payment methods. Please contact support for more information.","upgrade_subscription.payment_method_block.no_payment_methods_available_title":"No payment methods available","upgrade_subscription.payment_method_block.title":"Payment method","upgrade_subscription.payment_picker.all_title":"All payment methods","upgrade_subscription.payment_picker.saved_title":"Saved payment methods","upgrade_subscription.preview_error":"Unable to calculate the total. Please try again.","upgrade_subscription.pricing_row.add_button_label":"Add to cart","upgrade_subscription.pricing_row.one_off_label":"one-off","upgrade_subscription.pricing_row.remove_button_label":"Remove","upgrade_subscription.purchase_button.label":"Purchase","upgrade_subscription.purchase_error":"Something went wrong. Please try again.","upgrade_subscription.success.redirect":"You will be redirected shortly…","upgrade_subscription.success.subtitle":"Your purchase has been completed.","upgrade_subscription.success.title":"Payment successful","upgrade_subscription.title":"Upgrade subscription","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}","wallet_balance.wallet_ballance_title":"Balance"};exports.default=t,exports.empty_value_placeholder="-",exports.pricing_item_pricing=e;