@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,105 +0,0 @@
1
- import { defineComponent, renderSlot, unref, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
2
- import { u as useInvoicesList, _ as _sfc_main$3 } from "./useInvoicesList-rDvRzMqe.mjs";
3
- import { o as _sfc_main$2, p as defineCustomElement, n as getComponentName } from "./component-BkmcE85U.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
- };
100
- export {
101
- COMPONENT_NAME as C,
102
- SolvimonInvoicesList as S,
103
- _sfc_main as _,
104
- defineSolvimonInvoicesList as d
105
- };
@@ -1 +0,0 @@
1
- const e=require("vue"),t=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-8UxAr2hU.js"),o=require("./Skeleton.vue_vue_type_script_setup_true_lang-CQqTurIt.js"),n=require("./useInvoiceData-DImEH1ca.js"),r=require("./component-Df5eNqYX.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._sfc_main=l,exports.defineSolvimonPaymentHistory=()=>{customElements.get(s)||customElements.define(s,p)};
@@ -1,134 +0,0 @@
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-CknZKCmY.mjs";
3
- import { _ as _sfc_main$3 } from "./Skeleton.vue_vue_type_script_setup_true_lang-BFFJw-5h.mjs";
4
- import { u as useInvoiceData } from "./useInvoiceData-dyvoDwFF.mjs";
5
- import { o as _sfc_main$5, p as defineCustomElement, n as getComponentName } from "./component-BkmcE85U.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
- };
129
- export {
130
- COMPONENT_NAME as C,
131
- SolvimonPaymentHistory as S,
132
- _sfc_main as _,
133
- defineSolvimonPaymentHistory as d
134
- };