@solvimon/solvimon-web 0.1.0-alpha.1 → 0.1.0-alpha.3

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 (135) hide show
  1. package/README.md +5 -5
  2. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-VMlVPI4O.js → BillingInformation.vue_vue_type_script_setup_true_lang-BD3CrJzj.js} +1 -1
  3. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-B42EzZ97.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DQAp1xwu.mjs} +2 -2
  4. package/dist/{ContentWithAsideLayout-BC-C5Gjt.mjs → ContentWithAsideLayout-CRsFr9TH.mjs} +1 -1
  5. package/dist/{ContentWithAsideLayout-CIVSoqFr.js → ContentWithAsideLayout-DczcgSrt.js} +1 -1
  6. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-t6E9_dWJ.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BE3I7Oe1.js} +1 -1
  7. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-5yBnSRap.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0ie9Krt.mjs} +1 -1
  8. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CknZKCmY.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DVDOsMnT.mjs} +1 -1
  9. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-sNdlKgdU.js} +1 -1
  10. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BCdv5DbH.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJEZEEwZ.mjs} +5 -5
  11. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Sn1Jq19s.js +1 -0
  12. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Bifo4jTH.js +1 -0
  13. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-DWp42_G4.mjs +75 -0
  14. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs → Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs} +5 -4
  15. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +1 -0
  16. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DfB5BqiH.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-Bp5RvQVS.mjs} +5 -5
  17. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DqZLFDCv.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-yyhwzYSM.js} +1 -1
  18. package/dist/auto-DzZuCneB.mjs +14387 -0
  19. package/dist/auto-PpnAChnH.js +6 -0
  20. package/dist/{cloneDeep-Hs8Pp07F.js → cloneDeep-DranHQkY.js} +1 -1
  21. package/dist/{component-BkmcE85U.mjs → component-DEo_ndpK.mjs} +92 -78
  22. package/dist/component-XHQYFLA_.js +1 -0
  23. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
  24. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  25. package/dist/components/BillingInformation/BillingInformation.es.js +96 -5
  26. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
  27. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  28. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +582 -5
  29. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
  30. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  31. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +132 -5
  32. package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
  33. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  34. package/dist/components/Invoice/Invoice.es.js +580 -5
  35. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
  36. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  37. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +127 -5
  38. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
  39. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  40. package/dist/components/InvoicesList/InvoicesList.es.js +102 -5
  41. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
  42. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  43. package/dist/components/PaymentHistory/PaymentHistory.es.js +131 -5
  44. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
  45. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  46. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +236 -5
  47. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
  48. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  49. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +150 -5
  50. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
  51. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  52. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +132 -5
  53. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +3 -0
  54. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -0
  55. package/dist/{InvoiceDetails.entry.ce-Cnpz8CLJ.mjs → components/WalletBalances/WalletBalances.es.js} +41 -51
  56. package/dist/core/configuration.d.ts +2 -1
  57. package/dist/core/index.cjs.js +1 -1
  58. package/dist/core/index.es.js +1 -1
  59. package/dist/core/registry.d.ts +1 -1
  60. package/dist/core/types.d.ts +4 -0
  61. package/dist/index.cjs.js +1 -1
  62. package/dist/index.d.ts +2 -0
  63. package/dist/index.es.js +40 -34
  64. package/dist/invoices-BW1notiX.js +1 -0
  65. package/dist/{invoices-C31Wz1Bu.mjs → invoices-M5oYVch6.mjs} +1 -1
  66. package/dist/{paymentMethods-CzUqDlvc.js → paymentMethods-BX80t2zk.js} +1 -1
  67. package/dist/{paymentMethods-CrU4G_2Y.mjs → paymentMethods-CqKUfc3w.mjs} +1 -1
  68. package/dist/{payments-C3LPk9k9.js → payments-BHv4hCeJ.js} +1 -1
  69. package/dist/{payments-NtWI8KlU.mjs → payments-CosaPZwo.mjs} +1 -1
  70. package/dist/registry-BwKEYOf7.js +1 -0
  71. package/dist/registry-Cag1Jj7P.mjs +143 -0
  72. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
  73. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  74. package/dist/screens/Checkout/Checkout.es.js +5140 -5
  75. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
  76. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  77. package/dist/screens/CustomerOverview/CustomerOverview.es.js +134 -5
  78. package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +3 -0
  79. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -0
  80. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +1012 -0
  81. package/dist/{subscriptions-3R7aMoky.mjs → subscriptions-Bs4DIE8f.mjs} +1 -1
  82. package/dist/{subscriptions-CqK7t-fF.js → subscriptions-CnxvsBXd.js} +1 -1
  83. package/dist/{useActionDispatchProvider-CBo_Hwu5.mjs → useActionDispatchProvider-CgRcOqv3.mjs} +1 -1
  84. package/dist/useActionDispatchProvider-Cru69mAl.js +1 -0
  85. package/dist/{useCustomer-Dp8sGHI0.js → useCustomer-B0NK96dA.js} +1 -1
  86. package/dist/{useCustomer-BRY0tuBH.mjs → useCustomer-DlcjY3fP.mjs} +2 -2
  87. package/dist/{useCustomerPaymentMethodOptions-Fe_dLxfv.mjs → useCustomerPaymentMethodOptions-BzEquyUV.mjs} +7 -6
  88. package/dist/{useCustomerPaymentMethodOptions-DYpMDnJR.js → useCustomerPaymentMethodOptions-C-8BLzqb.js} +1 -1
  89. package/dist/{useIncrementalLoading-fHCizCSo.mjs → useIncrementalLoading-C7ToTmZK.mjs} +9 -7
  90. package/dist/useIncrementalLoading-D60Vttil.js +1 -0
  91. package/dist/{useInvoiceData-dyvoDwFF.mjs → useInvoiceData-CcueV3We.mjs} +2 -2
  92. package/dist/{useInvoiceData-DImEH1ca.js → useInvoiceData-DstXfI7t.js} +1 -1
  93. package/dist/{useInvoicesList-rDvRzMqe.mjs → useInvoicesList-CXng3aUm.mjs} +4 -4
  94. package/dist/{useInvoicesList-BZQ9Y0qN.js → useInvoicesList-DmzjgMlW.js} +1 -1
  95. package/dist/{usePaymentMethods-Dbimodf0.js → usePaymentMethods-DCGVRXA4.js} +1 -1
  96. package/dist/{usePaymentMethods-Bq5fWl1Q.mjs → usePaymentMethods-Db-1R6rI.mjs} +2 -2
  97. package/dist/{useService-Dz13Nxbi.mjs → useService-B4qv5N2D.mjs} +14 -5
  98. package/dist/useService-D-CUtlp3.js +1 -0
  99. package/dist/useWalletBalanceItems-BZyiAhcV.js +1 -0
  100. package/dist/useWalletBalanceItems-CHkLaccm.mjs +105 -0
  101. package/package.json +16 -3
  102. package/dist/BillingInformation.entry.ce-1xVdsWlL.mjs +0 -99
  103. package/dist/BillingInformation.entry.ce-DkrfEvK_.js +0 -1
  104. package/dist/BillingInformationForm.entry.ce-MPMirEsk.js +0 -1
  105. package/dist/BillingInformationForm.entry.ce-xfT0Jqps.mjs +0 -579
  106. package/dist/Checkout.entry.ce-Bif6vR1K.mjs +0 -5185
  107. package/dist/Checkout.entry.ce-CkQnLAn4.js +0 -1
  108. package/dist/CustomerOverview.entry.ce-C__omsVl.js +0 -1
  109. package/dist/CustomerOverview.entry.ce-Ce_Yk8-i.mjs +0 -231
  110. package/dist/CustomerPaymentMethods.entry.ce-CZwy8Aqq.mjs +0 -135
  111. package/dist/CustomerPaymentMethods.entry.ce-DnjlRHPA.js +0 -1
  112. package/dist/Invoice.entry.ce-CdJ9TPZe.mjs +0 -583
  113. package/dist/Invoice.entry.ce-Cgr43ome.js +0 -1
  114. package/dist/InvoiceDetails.entry.ce-jHDyWra2.js +0 -1
  115. package/dist/InvoicesList.entry.ce-38iOW5qh.js +0 -1
  116. package/dist/InvoicesList.entry.ce-BBaHEtAD.mjs +0 -105
  117. package/dist/PaymentHistory.entry.ce-DDeHMhK_.js +0 -1
  118. package/dist/PaymentHistory.entry.ce-Dw2NiP4l.mjs +0 -134
  119. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-xJ8kJbRo.js +0 -1
  120. package/dist/PaymentMethodForm.entry.ce-f4cFExKc.mjs +0 -238
  121. package/dist/PaymentMethodForm.entry.ce-zxeBXZW6.js +0 -1
  122. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js +0 -1
  123. package/dist/SubscriptionSchedules.entry.ce-B4T_yQC1.js +0 -1
  124. package/dist/SubscriptionSchedules.entry.ce-B4vQ7QLk.mjs +0 -153
  125. package/dist/SubscriptionsList.entry.ce-B5SJCQW0.js +0 -1
  126. package/dist/SubscriptionsList.entry.ce-cNYuQZZj.mjs +0 -135
  127. package/dist/auto-B_36W1Fc.js +0 -6
  128. package/dist/auto-BfMZdgp-.mjs +0 -14207
  129. package/dist/component-Df5eNqYX.js +0 -1
  130. package/dist/invoices-8M_3ur_U.js +0 -1
  131. package/dist/registry-By94DXE2.js +0 -1
  132. package/dist/registry-shRKDl3K.mjs +0 -127
  133. package/dist/useActionDispatchProvider-DsIljrhi.js +0 -1
  134. package/dist/useIncrementalLoading-D8oKNxX7.js +0 -1
  135. package/dist/useService-bNNi4GB8.js +0 -1
@@ -1,7 +1,129 @@
1
- import { C, S, d } from "../../InvoiceDetails.entry.ce-Cnpz8CLJ.mjs";
2
- import "../../component-BkmcE85U.mjs";
1
+ import { defineComponent, openBlock, createBlock, renderSlot, unref, withCtx, createVNode, normalizeProps, guardReactiveProps, createCommentVNode } from "vue";
2
+ import { _ as _sfc_main$4 } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0ie9Krt.mjs";
3
+ import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs";
4
+ import { u as useInvoiceData } from "../../useInvoiceData-CcueV3We.mjs";
5
+ import { p as _sfc_main$5, q as defineCustomElement, o as getComponentName } from "../../component-DEo_ndpK.mjs";
6
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
+ __name: "InvoiceDetails",
8
+ props: {
9
+ invoice: { type: Object },
10
+ isLoading: { type: Boolean },
11
+ configuration: { type: Object }
12
+ },
13
+ setup(__props) {
14
+ return (_ctx, _cache) => {
15
+ return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
16
+ key: 0,
17
+ variant: "section",
18
+ class: "min-h-[100px]",
19
+ "data-testid": "invoice-details-skeleton"
20
+ })) : (openBlock(), createBlock(_sfc_main$4, {
21
+ key: 1,
22
+ invoice: __props.invoice
23
+ }, null, 8, ["invoice"]));
24
+ };
25
+ }
26
+ });
27
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28
+ __name: "InvoiceDetails.entry.view",
29
+ props: {
30
+ environment: { type: String },
31
+ locale: { type: String },
32
+ dateLocale: { type: String },
33
+ messages: { type: Object },
34
+ showTimezones: { type: Boolean },
35
+ primaryColor: { type: String },
36
+ secondaryColor: { type: String },
37
+ isShadowRoot: { type: Boolean },
38
+ experimentalFeatures: { type: Array },
39
+ logLevel: { type: String },
40
+ onLog: { type: Function },
41
+ allowedPortalTypes: { type: Array },
42
+ portalObject: { type: Object },
43
+ customElementName: { type: String },
44
+ branding: { type: Object },
45
+ configuration: { type: Object }
46
+ },
47
+ setup(__props) {
48
+ const props = __props;
49
+ const invoiceData = useInvoiceData(props.configuration.invoiceId);
50
+ return (_ctx, _cache) => {
51
+ var _a;
52
+ return renderSlot(_ctx.$slots, "default", {
53
+ invoice: (_a = unref(invoiceData).data.value) == null ? void 0 : _a.invoice,
54
+ isLoading: unref(invoiceData).isPending.value
55
+ });
56
+ };
57
+ }
58
+ });
59
+ const _sfc_main = /* @__PURE__ */ defineComponent({
60
+ __name: "InvoiceDetails.entry",
61
+ props: {
62
+ environment: { type: String },
63
+ locale: { type: String },
64
+ dateLocale: { type: String },
65
+ messages: { type: Object },
66
+ showTimezones: { type: Boolean },
67
+ primaryColor: { type: String },
68
+ secondaryColor: { type: String },
69
+ isShadowRoot: { type: Boolean },
70
+ experimentalFeatures: { type: Array },
71
+ logLevel: { type: String },
72
+ onLog: { type: Function },
73
+ allowedPortalTypes: { type: Array },
74
+ portalObject: { type: Object },
75
+ customElementName: { type: String },
76
+ branding: { type: Object },
77
+ configuration: { type: Object }
78
+ },
79
+ setup(__props) {
80
+ var _a;
81
+ const props = __props;
82
+ if (!((_a = props.configuration) == null ? void 0 : _a.invoiceId)) {
83
+ throw new Error("Missing invoice id");
84
+ }
85
+ return (_ctx, _cache) => {
86
+ var _a2, _b, _c, _d;
87
+ return openBlock(), createBlock(unref(_sfc_main$5), {
88
+ "custom-element-name": unref(COMPONENT_NAME),
89
+ environment: __props.environment,
90
+ locale: __props.locale,
91
+ "portal-object": __props.portalObject,
92
+ "allowed-portal-types": ["CUSTOMER"],
93
+ "primary-color": (_b = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b.primary,
94
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
95
+ "experimental-features": __props.experimentalFeatures,
96
+ "log-level": __props.logLevel,
97
+ "on-log": __props.onLog,
98
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
99
+ }, {
100
+ default: withCtx(() => [
101
+ createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
102
+ default: withCtx(({ invoice, isLoading }) => [
103
+ invoice ? (openBlock(), createBlock(_sfc_main$2, {
104
+ key: 0,
105
+ "is-loading": isLoading,
106
+ invoice,
107
+ configuration: __props.configuration
108
+ }, null, 8, ["is-loading", "invoice", "configuration"])) : createCommentVNode("", true)
109
+ ]),
110
+ _: 1
111
+ }, 16)
112
+ ]),
113
+ _: 1
114
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log"]);
115
+ };
116
+ }
117
+ });
118
+ const SolvimonInvoiceDetails = defineCustomElement(_sfc_main);
119
+ const COMPONENT_NAME = getComponentName("invoice-details");
120
+ const defineSolvimonInvoiceDetails = () => {
121
+ if (!customElements.get(COMPONENT_NAME)) {
122
+ customElements.define(COMPONENT_NAME, SolvimonInvoiceDetails);
123
+ }
124
+ };
3
125
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonInvoiceDetails,
6
- d as defineSolvimonInvoiceDetails
126
+ COMPONENT_NAME,
127
+ SolvimonInvoiceDetails,
128
+ defineSolvimonInvoiceDetails
7
129
  };
@@ -1,3 +1,3 @@
1
- export declare const SolvimonInvoicesList: import('vue').VueElementConstructor<unknown>;
1
+ export declare const SolvimonInvoicesList: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
2
  export declare const COMPONENT_NAME: string;
3
3
  export declare const defineSolvimonInvoicesList: () => void;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../InvoicesList.entry.ce-38iOW5qh.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonInvoicesList=e.SolvimonInvoicesList,exports.defineSolvimonInvoicesList=e.defineSolvimonInvoicesList;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../useInvoicesList-DmzjgMlW.js"),t=require("../../component-XHQYFLA_.js"),n=e.defineComponent({__name:"InvoicesList.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup(t){var n,r;const i=t,a=i.portalObject.customer_id,l=o.useInvoicesList({customerId:a,batchSize:(null==(r=null==(n=i.configuration)?void 0:n.pagination)?void 0:r.batchSize)||15});return(o,t)=>e.renderSlot(o.$slots,"default",{invoices:e.unref(l)})}}),r=e.defineComponent({__name:"InvoicesList.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup:r=>(i,l)=>{var s,c,p,m;return e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{"custom-element-name":e.unref(a),environment:r.environment,locale:r.locale,"portal-object":r.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(s=r.branding)?void 0:s.colors)?void 0:c.primary,"secondary-color":null==(m=null==(p=r.branding)?void 0:p.colors)?void 0:m.secondary,"experimental-features":r.experimentalFeatures,"log-level":r.logLevel,"on-log":r.onLog,onError:l[0]||(l[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({invoices:t})=>[e.createVNode(o._sfc_main,{configuration:r.configuration,invoices:t.items.value,"is-loading":t.isPending.value,"has-more-items":t.hasNextBatch.value,onLoadMore:t.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"])}}),i=t.defineCustomElement(r),a=t.getComponentName("customer-overview");exports.COMPONENT_NAME=a,exports.SolvimonInvoicesList=i,exports.defineSolvimonInvoicesList=()=>{customElements.get(a)||customElements.define(a,i)};
@@ -1,7 +1,104 @@
1
- import { C, S, d } from "../../InvoicesList.entry.ce-BBaHEtAD.mjs";
2
- import "../../component-BkmcE85U.mjs";
1
+ import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
+ import { u as useInvoicesList, _ as _sfc_main$3 } from "../../useInvoicesList-CXng3aUm.mjs";
3
+ import { p as _sfc_main$2, q as defineCustomElement, o as getComponentName } from "../../component-DEo_ndpK.mjs";
4
+ const DEFAULT_BATCH_SIZE = 15;
5
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
6
+ __name: "InvoicesList.entry.view",
7
+ props: {
8
+ environment: { type: String },
9
+ locale: { type: String },
10
+ dateLocale: { type: String },
11
+ messages: { type: Object },
12
+ showTimezones: { type: Boolean },
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
+ customElementName: { type: String },
22
+ branding: { type: Object },
23
+ configuration: { type: Object }
24
+ },
25
+ setup(__props) {
26
+ var _a, _b;
27
+ const props = __props;
28
+ const customerId = props.portalObject.customer_id;
29
+ const invoices = useInvoicesList({
30
+ customerId,
31
+ batchSize: ((_b = (_a = props.configuration) == null ? void 0 : _a.pagination) == null ? void 0 : _b.batchSize) || DEFAULT_BATCH_SIZE
32
+ });
33
+ return (_ctx, _cache) => {
34
+ return renderSlot(_ctx.$slots, "default", { invoices: unref(invoices) });
35
+ };
36
+ }
37
+ });
38
+ const _sfc_main = /* @__PURE__ */ defineComponent({
39
+ __name: "InvoicesList.entry",
40
+ props: {
41
+ environment: { type: String },
42
+ locale: { type: String },
43
+ dateLocale: { type: String },
44
+ messages: { type: Object },
45
+ showTimezones: { type: Boolean },
46
+ primaryColor: { type: String },
47
+ secondaryColor: { type: String },
48
+ isShadowRoot: { type: Boolean },
49
+ experimentalFeatures: { type: Array },
50
+ logLevel: { type: String },
51
+ onLog: { type: Function },
52
+ allowedPortalTypes: { type: Array },
53
+ portalObject: { type: Object },
54
+ customElementName: { type: String },
55
+ branding: { type: Object },
56
+ configuration: { type: Object }
57
+ },
58
+ setup(__props) {
59
+ return (_ctx, _cache) => {
60
+ var _a, _b, _c, _d;
61
+ return openBlock(), createBlock(unref(_sfc_main$2), {
62
+ "custom-element-name": unref(COMPONENT_NAME),
63
+ environment: __props.environment,
64
+ locale: __props.locale,
65
+ "portal-object": __props.portalObject,
66
+ "allowed-portal-types": ["CUSTOMER"],
67
+ "primary-color": (_b = (_a = __props.branding) == null ? void 0 : _a.colors) == null ? void 0 : _b.primary,
68
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
69
+ "experimental-features": __props.experimentalFeatures,
70
+ "log-level": __props.logLevel,
71
+ "on-log": __props.onLog,
72
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
73
+ }, {
74
+ default: withCtx(() => [
75
+ createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
76
+ default: withCtx(({ invoices }) => [
77
+ createVNode(_sfc_main$3, {
78
+ configuration: __props.configuration,
79
+ invoices: invoices.items.value,
80
+ "is-loading": invoices.isPending.value,
81
+ "has-more-items": invoices.hasNextBatch.value,
82
+ onLoadMore: invoices.fetchMore
83
+ }, null, 8, ["configuration", "invoices", "is-loading", "has-more-items", "onLoadMore"])
84
+ ]),
85
+ _: 1
86
+ }, 16)
87
+ ]),
88
+ _: 1
89
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log"]);
90
+ };
91
+ }
92
+ });
93
+ const SolvimonInvoicesList = defineCustomElement(_sfc_main);
94
+ const COMPONENT_NAME = getComponentName("customer-overview");
95
+ const defineSolvimonInvoicesList = () => {
96
+ if (!customElements.get(COMPONENT_NAME)) {
97
+ customElements.define(COMPONENT_NAME, SolvimonInvoicesList);
98
+ }
99
+ };
3
100
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonInvoicesList,
6
- d as defineSolvimonInvoicesList
101
+ COMPONENT_NAME,
102
+ SolvimonInvoicesList,
103
+ defineSolvimonInvoicesList
7
104
  };
@@ -1,3 +1,3 @@
1
- export declare const SolvimonPaymentHistory: import('vue').VueElementConstructor<unknown>;
1
+ export declare const SolvimonPaymentHistory: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
2
  export declare const COMPONENT_NAME: string;
3
3
  export declare const defineSolvimonPaymentHistory: () => void;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../PaymentHistory.entry.ce-DDeHMhK_.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonPaymentHistory=e.SolvimonPaymentHistory,exports.defineSolvimonPaymentHistory=e.defineSolvimonPaymentHistory;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-sNdlKgdU.js"),o=require("../../Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js"),n=require("../../useInvoiceData-DstXfI7t.js"),r=require("../../component-XHQYFLA_.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:"min-h-[100px]","data-testid":"payment-history-skeleton"})):n.paymentAttempts.length?(e.openBlock(),e.createBlock(t._sfc_main,{key:1,"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},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},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})}}}),l=e.defineComponent({__name:"PaymentHistory.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},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 l,p,m,c;return e.openBlock(),e.createBlock(e.unref(r._sfc_main$1),{"custom-element-name":e.unref(s),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(p=null==(l=t.branding)?void 0:l.colors)?void 0:p.primary,"secondary-color":null==(c=null==(m=t.branding)?void 0:m.colors)?void 0:c.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,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"])}}}),p=r.defineCustomElement(l),s=r.getComponentName("payment-history");exports.COMPONENT_NAME=s,exports.SolvimonPaymentHistory=p,exports.defineSolvimonPaymentHistory=()=>{customElements.get(s)||customElements.define(s,p)};
@@ -1,7 +1,133 @@
1
- import { C, S, d } from "../../PaymentHistory.entry.ce-Dw2NiP4l.mjs";
2
- import "../../component-BkmcE85U.mjs";
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-DVDOsMnT.mjs";
3
+ import { _ as _sfc_main$3 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs";
4
+ import { u as useInvoiceData } from "../../useInvoiceData-CcueV3We.mjs";
5
+ import { p as _sfc_main$5, q as defineCustomElement, o as getComponentName } from "../../component-DEo_ndpK.mjs";
6
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
+ __name: "PaymentHistory",
8
+ props: {
9
+ customer: { type: Object },
10
+ paymentAttempts: { type: Array },
11
+ isLoading: { type: Boolean },
12
+ configuration: { type: Object }
13
+ },
14
+ setup(__props) {
15
+ return (_ctx, _cache) => {
16
+ return __props.isLoading ? (openBlock(), createBlock(_sfc_main$3, {
17
+ key: 0,
18
+ variant: "section",
19
+ class: "min-h-[100px]",
20
+ "data-testid": "payment-history-skeleton"
21
+ })) : __props.paymentAttempts.length ? (openBlock(), createBlock(_sfc_main$4, {
22
+ key: 1,
23
+ "payment-attempts": __props.paymentAttempts,
24
+ customer: __props.customer
25
+ }, null, 8, ["payment-attempts", "customer"])) : createCommentVNode("", true);
26
+ };
27
+ }
28
+ });
29
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
30
+ __name: "PaymentHistory.entry.view",
31
+ props: {
32
+ environment: { type: String },
33
+ locale: { type: String },
34
+ dateLocale: { type: String },
35
+ messages: { type: Object },
36
+ showTimezones: { type: Boolean },
37
+ primaryColor: { type: String },
38
+ secondaryColor: { type: String },
39
+ isShadowRoot: { type: Boolean },
40
+ experimentalFeatures: { type: Array },
41
+ logLevel: { type: String },
42
+ onLog: { type: Function },
43
+ allowedPortalTypes: { type: Array },
44
+ portalObject: { type: Object },
45
+ customElementName: { type: String },
46
+ branding: { type: Object },
47
+ configuration: { type: Object }
48
+ },
49
+ setup(__props) {
50
+ const props = __props;
51
+ const invoiceData = useInvoiceData(props.configuration.invoiceId);
52
+ return (_ctx, _cache) => {
53
+ var _a, _b;
54
+ return renderSlot(_ctx.$slots, "default", {
55
+ invoice: (_a = unref(invoiceData).data.value) == null ? void 0 : _a.invoice,
56
+ paymentAttempts: (_b = unref(invoiceData).data.value) == null ? void 0 : _b.paymentAttempts.data,
57
+ isLoading: unref(invoiceData).isPending.value
58
+ });
59
+ };
60
+ }
61
+ });
62
+ const _sfc_main = /* @__PURE__ */ defineComponent({
63
+ __name: "PaymentHistory.entry",
64
+ props: {
65
+ environment: { type: String },
66
+ locale: { type: String },
67
+ dateLocale: { type: String },
68
+ messages: { type: Object },
69
+ showTimezones: { type: Boolean },
70
+ primaryColor: { type: String },
71
+ secondaryColor: { type: String },
72
+ isShadowRoot: { type: Boolean },
73
+ experimentalFeatures: { type: Array },
74
+ logLevel: { type: String },
75
+ onLog: { type: Function },
76
+ allowedPortalTypes: { type: Array },
77
+ portalObject: { type: Object },
78
+ customElementName: { type: String },
79
+ branding: { type: Object },
80
+ configuration: { type: Object }
81
+ },
82
+ setup(__props) {
83
+ var _a;
84
+ const props = __props;
85
+ if (!((_a = props.configuration) == null ? void 0 : _a.invoiceId)) {
86
+ throw new Error("Missing invoice id");
87
+ }
88
+ return (_ctx, _cache) => {
89
+ var _a2, _b, _c, _d;
90
+ return openBlock(), createBlock(unref(_sfc_main$5), {
91
+ "custom-element-name": unref(COMPONENT_NAME),
92
+ environment: __props.environment,
93
+ locale: __props.locale,
94
+ "portal-object": __props.portalObject,
95
+ "allowed-portal-types": ["CUSTOMER"],
96
+ "primary-color": (_b = (_a2 = __props.branding) == null ? void 0 : _a2.colors) == null ? void 0 : _b.primary,
97
+ "secondary-color": (_d = (_c = __props.branding) == null ? void 0 : _c.colors) == null ? void 0 : _d.secondary,
98
+ "experimental-features": __props.experimentalFeatures,
99
+ "log-level": __props.logLevel,
100
+ "on-log": __props.onLog,
101
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
102
+ }, {
103
+ default: withCtx(() => [
104
+ createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
105
+ default: withCtx(({ invoice, paymentAttempts, isLoading }) => [
106
+ invoice && paymentAttempts ? (openBlock(), createBlock(_sfc_main$2, {
107
+ key: 0,
108
+ "is-loading": isLoading,
109
+ customer: invoice.customer,
110
+ "payment-attempts": paymentAttempts,
111
+ configuration: __props.configuration
112
+ }, null, 8, ["is-loading", "customer", "payment-attempts", "configuration"])) : createCommentVNode("", true)
113
+ ]),
114
+ _: 1
115
+ }, 16)
116
+ ]),
117
+ _: 1
118
+ }, 8, ["custom-element-name", "environment", "locale", "portal-object", "primary-color", "secondary-color", "experimental-features", "log-level", "on-log"]);
119
+ };
120
+ }
121
+ });
122
+ const SolvimonPaymentHistory = defineCustomElement(_sfc_main);
123
+ const COMPONENT_NAME = getComponentName("payment-history");
124
+ const defineSolvimonPaymentHistory = () => {
125
+ if (!customElements.get(COMPONENT_NAME)) {
126
+ customElements.define(COMPONENT_NAME, SolvimonPaymentHistory);
127
+ }
128
+ };
3
129
  export {
4
- C as COMPONENT_NAME,
5
- S as SolvimonPaymentHistory,
6
- d as defineSolvimonPaymentHistory
130
+ COMPONENT_NAME,
131
+ SolvimonPaymentHistory,
132
+ defineSolvimonPaymentHistory
7
133
  };
@@ -1,3 +1,3 @@
1
- export declare const SolvimonPaymentMethodForm: import('vue').VueElementConstructor<unknown>;
1
+ export declare const SolvimonPaymentMethodForm: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
2
2
  export declare const COMPONENT_NAME: string;
3
3
  export declare const defineSolvimonPaymentMethodForm: () => void;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../PaymentMethodForm.entry.ce-zxeBXZW6.js");require("../../component-Df5eNqYX.js"),exports.COMPONENT_NAME=e.COMPONENT_NAME,exports.SolvimonPaymentMethodForm=e.SolvimonPaymentMethodForm,exports.defineSolvimonPaymentMethodForm=e.defineSolvimonPaymentMethodForm;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-XHQYFLA_.js"),o=require("../../useLoadInitialData-BRg7IWqW.js"),n=require("../../useCustomer-B0NK96dA.js"),r=require("../../useService-D-CUtlp3.js"),a=require("../../paymentMethods-BX80t2zk.js"),i=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Sn1Jq19s.js");const u=e.defineComponent({__name:"PaymentMethodForm.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(i){const u=i,c=n.useCustomer({customerId:u.portalObject.customer_id}),s=function(){const{getPaymentMethodOptions:e}=a.createPaymentMethodsService(),{data:t,execute:o,apiStatus:n,error:i,isPending:u}=r.useService({initialValue:[],service:t=>function(e){return void 0!==e.customerId}(t)?e({customerId:t.customerId,amount:t.amount,country:t.country}):e({subscriptionId:t.subscriptionId,amount:t.amount,country:t.country})});return{paymentMethodOptions:t,get:o,apiStatus:n,error:i,isPending:u}}(),{isLoading:l}=o.useLoadInitialData((async()=>{var e;const o=await c.get.execute(),n=t.getCustomerCountry(o);await s.get({customerId:o.id,country:n,amount:null==(e=u.configuration)?void 0:e.amount})})());return(t,o)=>e.renderSlot(t.$slots,"default",{customer:e.unref(c).customer.value,paymentMethodOptions:e.unref(s),isLoading:e.unref(l)})}}),c=e.defineComponent({__name:"PaymentMethodForm",props:{customer:{type:Object},paymentMethodOptions:{type:Array},configuration:{type:Object},isLoading:{type:Boolean,default:!1},countryCode:{type:String}},setup(o){const n={currency:"EUR",quantity:"0"},r=o,{$t:a}=t.useIntl(),u=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 o=t.getCustomerCountry(r.customer);if(o)return e=o,e}return"NL"}),s=e.computed(()=>"AUTHORIZE"===u.value.variant?{paymentMethodOptions:r.paymentMethodOptions,countryCode:c.value,variant:"AUTHORIZE",amount:u.value.amount,context:u.value.context,invoiceId:u.value.invoiceId,successRedirectUrl:u.value.successRedirectUrl,selectedOption:u.value.selectedOption,validateOnSubmit:u.value.validateOnSubmit,forceStorePaymentMethod:u.value.forceStorePaymentMethod}:{paymentMethodOptions:r.paymentMethodOptions,customerId:r.customer.id,countryCode:c.value,variant:"TOKENIZE",amount:u.value.amount??n,invoiceId:u.value.invoiceId,successRedirectUrl:u.value.successRedirectUrl,selectedOption:u.value.selectedOption,validateOnSubmit:u.value.validateOnSubmit,forceStorePaymentMethod:u.value.forceStorePaymentMethod});return(n,r)=>o.isLoading?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$14),{key:0,variant:"section",class:"min-h-[180px]"})):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{key:1,"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(i._sfc_main,e.normalizeProps(e.guardReactiveProps(s.value)),null,16)]),_:1},8,["title"]))}}),s=e.defineComponent({__name:"PaymentMethodForm.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object},countryCode:{type:String}},setup(o){const n=o;return(r,a)=>{var i,s,l,p;return e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{"custom-element-name":e.unref(m),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==(p=null==(l=o.branding)?void 0:l.colors)?void 0:p.secondary,"experimental-features":o.experimentalFeatures,"log-level":o.logLevel,"on-log":o.onLog,onError:a[0]||(a[0]=e=>r.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(u,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"])}}}),l=t.defineCustomElement(s),m=t.getComponentName("payment-method-form");exports.COMPONENT_NAME=m,exports.SolvimonPaymentMethodForm=l,exports.defineSolvimonPaymentMethodForm=()=>{customElements.get(m)||customElements.define(m,l)};