@solvimon/solvimon-web 0.1.0-alpha.5 → 0.1.0-alpha.6

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 (84) hide show
  1. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CvUwy_tp.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DZ1XkSJ3.mjs} +4 -3
  2. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-eRGZRjmq.js +1 -0
  3. package/dist/{ContentWithAsideLayout-BjJufFeN.js → ContentWithAsideLayout-BZJPhvLh.js} +1 -1
  4. package/dist/{ContentWithAsideLayout-CKbnuXMU.mjs → ContentWithAsideLayout-D_T137tN.mjs} +1 -1
  5. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BvmKLc2H.js +1 -0
  6. package/dist/{useCustomerPaymentMethodOptions-BlFH4zxG.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DK6tiecN.mjs} +5 -25
  7. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DaEPSNrY.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BWXmZmGZ.mjs} +1 -1
  8. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-sbmK2un9.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DNWspHtC.js} +1 -1
  9. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CLU-8-Ao.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BSn_Zy0Y.mjs} +1 -1
  10. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-NRmK7iN3.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Cx4c8E4i.js} +1 -1
  11. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ck_1lRDB.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ct26TY0a.js} +1 -1
  12. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DFCX2tcj.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-WRXecMCj.mjs} +3 -3
  13. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BOZurit_.js → PricingGroupContent.vue_vue_type_script_setup_true_lang-KnhKv07X.js} +1 -1
  14. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-DAwMy1l8.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-X7-dfeZP.mjs} +1 -1
  15. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js +1 -0
  16. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs} +17 -5
  17. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Cj4cnM8z.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-AxYjVFUM.mjs} +6 -9
  18. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D9_G7CyE.js +1 -0
  19. package/dist/{component-B0RYS5uK.mjs → component-DI3AxwdD.mjs} +195 -128
  20. package/dist/component-yWF07boR.js +1 -0
  21. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  22. package/dist/components/BillingInformation/BillingInformation.es.js +3 -3
  23. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  24. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +2 -2
  25. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  26. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +6 -12
  27. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  28. package/dist/components/Invoice/Invoice.es.js +5 -5
  29. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  30. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +4 -4
  31. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  32. package/dist/components/InvoicesList/InvoicesList.es.js +2 -2
  33. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  34. package/dist/components/PaymentHistory/PaymentHistory.es.js +4 -4
  35. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  36. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +8 -7
  37. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  38. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +3 -3
  39. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  40. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -4
  41. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  42. package/dist/components/WalletBalances/WalletBalances.es.js +2 -2
  43. package/dist/core/index.cjs.js +1 -1
  44. package/dist/core/index.es.js +1 -1
  45. package/dist/index.cjs.js +1 -1
  46. package/dist/index.es.js +1 -1
  47. package/dist/{invoices-CoEBP5UT.mjs → invoices-C7BHqB0g.mjs} +1 -1
  48. package/dist/{invoices-CUrXmVXe.js → invoices-CjBHfDXp.js} +1 -1
  49. package/dist/{paymentMethods-D_rYLg3F.js → paymentMethods-A-5SBmy1.js} +1 -1
  50. package/dist/{paymentMethods-C2gWIbEr.mjs → paymentMethods-BA7Kt8ti.mjs} +1 -1
  51. package/dist/{payments-ClJySb0d.js → payments-B8W0W6wZ.js} +1 -1
  52. package/dist/{payments-DLjkq_hN.mjs → payments-NTHUh5je.mjs} +1 -1
  53. package/dist/{registry-bo_7pcbl.mjs → registry-DgRnFEVF.mjs} +2 -2
  54. package/dist/{registry-EPF-VAYZ.js → registry-SwmYGFn7.js} +1 -1
  55. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  56. package/dist/screens/Checkout/Checkout.es.js +20 -19
  57. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  58. package/dist/screens/CustomerOverview/CustomerOverview.es.js +31 -17
  59. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  60. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +5 -5
  61. package/dist/{sprite-i5T7eZnk-C55G-dBo.js → sprite-DZD704h3-CCc3Mz1x.js} +1 -1
  62. package/dist/{sprite-i5T7eZnk-i5T7eZnk.mjs → sprite-DZD704h3-DZD704h3.mjs} +1 -1
  63. package/dist/{subscriptions-BepBTXR5.mjs → subscriptions-BEoXaAHw.mjs} +1 -1
  64. package/dist/{subscriptions-DERHtyHo.js → subscriptions-DSi93KpN.js} +1 -1
  65. package/dist/{useActionDispatchProvider-D4OtXsNA.js → useActionDispatchProvider-DmTJ_bqE.js} +1 -1
  66. package/dist/{useActionDispatchProvider-B_SkyymZ.mjs → useActionDispatchProvider-zSXRlc2S.mjs} +1 -1
  67. package/dist/{useCustomer-C0RKKfGJ.mjs → useCustomer-DkrBNt5f.mjs} +1 -1
  68. package/dist/{useCustomer-CEFUPIDZ.js → useCustomer-fK-w7ifj.js} +1 -1
  69. package/dist/{useIncrementalLoading-CDpeHhKs.js → useIncrementalLoading-BK6N8sYW.js} +1 -1
  70. package/dist/{useIncrementalLoading-BqD4k_-r.mjs → useIncrementalLoading-Bgs0mqyb.mjs} +1 -1
  71. package/dist/{useInvoiceData-7mqBeSPa.mjs → useInvoiceData-B6P2VShe.mjs} +2 -2
  72. package/dist/{useInvoiceData-DvNf2402.js → useInvoiceData-CS7hLTea.js} +1 -1
  73. package/dist/{useInvoicesList-B5vYDRyl.mjs → useInvoicesList-23Ra-23Z.mjs} +5 -5
  74. package/dist/{useInvoicesList-CBqZG_rw.js → useInvoicesList-CIFGVsDj.js} +1 -1
  75. package/dist/{usePaymentMethods-4Io2ZHlo.mjs → usePaymentMethods-B8Nft16c.mjs} +2 -2
  76. package/dist/{usePaymentMethods-BdZkt6re.js → usePaymentMethods-BK4unvj2.js} +1 -1
  77. package/dist/{useWalletBalanceItems-B0NZuM3W.mjs → useWalletBalanceItems-DreHuOra.mjs} +2 -2
  78. package/dist/{useWalletBalanceItems-CzV3PcJH.js → useWalletBalanceItems-NlFk6jPD.js} +1 -1
  79. package/package.json +2 -2
  80. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BouYyZhD.js +0 -1
  81. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +0 -1
  82. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D49i1DHa.js +0 -1
  83. package/dist/component-BeqkeC9h.js +0 -1
  84. package/dist/useCustomerPaymentMethodOptions-BgCFkLeQ.js +0 -1
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, createSlots, withCtx, createVNode, createTextVNode, toDisplayString } from "vue";
2
- import { b as useIntl, k as _sfc_main$14, l as _sfc_main$z, m as _sfc_main$2H } from "./component-B0RYS5uK.mjs";
3
- import { u as useActionDispatchProvider } from "./useActionDispatchProvider-B_SkyymZ.mjs";
2
+ import { b as useIntl, k as _sfc_main$z, l as _sfc_main$2H } from "./component-DI3AxwdD.mjs";
3
+ import { _ as _sfc_main$1 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
4
+ import { u as useActionDispatchProvider } from "./useActionDispatchProvider-zSXRlc2S.mjs";
4
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
6
  __name: "BillingInformation",
6
7
  props: {
@@ -15,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
16
  const { $t } = useIntl();
16
17
  const { dispatchAction } = useActionDispatchProvider();
17
18
  return (_ctx, _cache) => {
18
- return __props.isLoading ? (openBlock(), createBlock(unref(_sfc_main$14), {
19
+ return __props.isLoading ? (openBlock(), createBlock(_sfc_main$1, {
19
20
  key: 0,
20
21
  variant: "section",
21
22
  class: "min-h-[100px]",
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./component-yWF07boR.js"),i=require("./Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js"),o=require("./useActionDispatchProvider-DmTJ_bqE.js"),n=e.defineComponent({__name:"BillingInformation",props:{customer:{type:Object},isLoading:{type:Boolean},configuration:{default:()=>({showEditButton:!0}),type:Object}},emits:["edit-billing-information"],setup(n){const{$t:r}=t.useIntl(),{dispatchAction:s}=o.useActionDispatchProvider();return(o,a)=>n.isLoading?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,variant:"section",class:"min-h-[100px]","data-testid":"billing-information-skeleton"})):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$z),{key:1,customer:n.customer,"fallback-to-reference":!1},e.createSlots({_:2},[n.configuration.showEditButton?{name:"settings",fn:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$2H),{size:"sm",variant:"ghost",color:"gray","icon-prefix":"edit",onClick:a[0]||(a[0]=t=>e.unref(s)({action:"edit-billing-information"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Edit",id:"customer_overview.billing_information_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer billing information"})),1)]),_:1})]),key:"0"}:void 0]),1032,["customer"]))}});exports._sfc_main=n;
@@ -1 +1 @@
1
- const e=require("vue"),o=require("./component-BeqkeC9h.js");const t={class:"grid w-full grid-cols-1 gap-4"},r={key:0},s={class:"flex flex-col items-start gap-6 md:flex-row"},l={class:"grid w-full grow grid-cols-1 gap-4 md:w-auto"},n={class:"grid w-full grid-cols-1 gap-4 md:w-80 md:shrink-0"};const c=((e,o)=>{const t=e.__vccOpts||e;for(const[r,s]of o)t[r]=s;return t})({},[["render",function(o,c){return e.openBlock(),e.createElementBlock("div",t,[o.$slots.header?(e.openBlock(),e.createElementBlock("div",r,[e.renderSlot(o.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",s,[e.createElementVNode("div",l,[e.renderSlot(o.$slots,"content")]),e.createElementVNode("aside",n,[e.renderSlot(o.$slots,"aside")])])])}]]);exports.ContentWithAsideLayout=c,exports.usePortal=function(){const t=e.inject(o.PORTAL_INJECTION_KEY);if(!t)throw new Error("PortalProvider is not provided");return t};
1
+ const e=require("vue"),o=require("./component-yWF07boR.js");const t={class:"grid w-full grid-cols-1 gap-4"},r={key:0},s={class:"flex flex-col items-start gap-6 md:flex-row"},l={class:"grid w-full grow grid-cols-1 gap-4 md:w-auto"},n={class:"grid w-full grid-cols-1 gap-4 md:w-80 md:shrink-0"};const c=((e,o)=>{const t=e.__vccOpts||e;for(const[r,s]of o)t[r]=s;return t})({},[["render",function(o,c){return e.openBlock(),e.createElementBlock("div",t,[o.$slots.header?(e.openBlock(),e.createElementBlock("div",r,[e.renderSlot(o.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",s,[e.createElementVNode("div",l,[e.renderSlot(o.$slots,"content")]),e.createElementVNode("aside",n,[e.renderSlot(o.$slots,"aside")])])])}]]);exports.ContentWithAsideLayout=c,exports.usePortal=function(){const t=e.inject(o.PORTAL_INJECTION_KEY);if(!t)throw new Error("PortalProvider is not provided");return t};
@@ -1,5 +1,5 @@
1
1
  import { inject, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode } from "vue";
2
- import { P as PORTAL_INJECTION_KEY } from "./component-B0RYS5uK.mjs";
2
+ import { P as PORTAL_INJECTION_KEY } from "./component-DI3AxwdD.mjs";
3
3
  function usePortal() {
4
4
  const portal = inject(PORTAL_INJECTION_KEY);
5
5
  if (!portal) {
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./component-yWF07boR.js"),o=require("./Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js"),n=require("./useActionDispatchProvider-DmTJ_bqE.js"),a={key:0,class:"flex flex-col gap-2"},i=e.defineComponent({__name:"CustomerPaymentMethodsBlock",props:{paymentMethods:{type:Array},limit:{default:2,type:Number},isLoading:{type:Boolean},showViewAllButton:{type:Boolean},showAddButton:{type:Boolean}},emits:["view-all-payment-methods","add-payment-method"],setup(o){const n=o,{$t:i}=t.useIntl(),d=e.computed(()=>n.paymentMethods.length>0);return(n,s)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{"no-spacing":"","no-border":"",title:e.unref(i)({defaultMessage:"{count, plural, one {Payment method} other {Payment methods}}",description:"Title for the payment methods block on the customer overview page",id:"customer_overview.payment_methods.title"},{count:String(o.paymentMethods.length)})},e.createSlots({default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.paymentMethods,o=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{key:o.id},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main),{"payment-method":o},null,8,["payment-method"])]),_:2},1024))),128))])):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{key:1},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm",shade:"lighter","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Add a payment method for recurring invoice payments.",description:"Helper text for adding a payment method when no payment methods are configured",id:"customer_overview.payment_methods_block.add_payment_method_helper_text"})),1)]),_:1}),o.showAddButton?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2H),{key:0,class:"mt-4 w-full",variant:"outline",color:"gray","icon-prefix":"add",type:"button",onClick:s[1]||(s[1]=e=>n.$emit("add-payment-method"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Add payment method",description:"Text for the add payment method button that is shown when no payment methods have been configured",id:"customer_overview.payment_methods_block.add_payment_method_button_label"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1}))]),_:2},[o.showViewAllButton?{name:"right",fn:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$2H),{size:"sm",variant:"ghost",color:"gray","icon-suffix":"arrow_right_alt",type:"button",onClick:s[0]||(s[0]=e=>n.$emit("view-all-payment-methods"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"View all",id:"customer_overview.payment_methods_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer invoices"})),1)]),_:1})]),key:"0"}:void 0]),1032,["title"]))}}),d=e.defineComponent({__name:"CustomerPaymentMethods",props:{isLoading:{type:Boolean},paymentMethods:{type:Array},maxPaymentMethods:{type:Number},configuration:{default:()=>({showViewAllButton:!0,showAddButton:!0}),type:Object}},setup(t){const{dispatchAction:a}=n.useActionDispatchProvider();return(n,d)=>{var s,r;return t.isLoading?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,variant:"section",class:"h-72","data-testid":"customer-payment-methods-skeleton"})):(e.openBlock(),e.createBlock(i,{key:1,"is-loading":t.isLoading,"payment-methods":t.paymentMethods,"show-view-all-button":null==(s=t.configuration)?void 0:s.showViewAllButton,"show-add-button":null==(r=t.configuration)?void 0:r.showAddButton,onViewAllPaymentMethods:d[0]||(d[0]=t=>e.unref(a)({action:"view-all-payment-methods"})),onAddPaymentMethod:d[1]||(d[1]=t=>e.unref(a)({action:"add-payment-method"}))},null,8,["is-loading","payment-methods","show-view-all-button","show-add-button"]))}}});exports._sfc_main=d;
@@ -1,9 +1,7 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, createSlots, withCtx, createElementBlock, Fragment, renderList, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { b as useIntl, d as _sfc_main$1g, g as _sfc_main$2, _ as _sfc_main$2$1, m as _sfc_main$2H } from "./component-B0RYS5uK.mjs";
3
- import { _ as _sfc_main$3 } from "./Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs";
4
- import { u as useActionDispatchProvider } from "./useActionDispatchProvider-B_SkyymZ.mjs";
5
- import { c as createPaymentMethodsService } from "./paymentMethods-C2gWIbEr.mjs";
6
- import { u as useService } from "./useService-B4qv5N2D.mjs";
2
+ import { b as useIntl, d as _sfc_main$1g, g as _sfc_main$2, _ as _sfc_main$2$1, l as _sfc_main$2H } from "./component-DI3AxwdD.mjs";
3
+ import { _ as _sfc_main$3 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
4
+ import { u as useActionDispatchProvider } from "./useActionDispatchProvider-zSXRlc2S.mjs";
7
5
  const _hoisted_1 = {
8
6
  key: 0,
9
7
  class: "flex flex-col gap-2"
@@ -119,7 +117,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
119
117
  props: {
120
118
  isLoading: { type: Boolean },
121
119
  paymentMethods: { type: Array },
122
- paymentMethodsOptions: { type: Array },
123
120
  maxPaymentMethods: { type: Number },
124
121
  configuration: { default: () => ({
125
122
  showViewAllButton: true,
@@ -139,31 +136,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
139
136
  key: 1,
140
137
  "is-loading": __props.isLoading,
141
138
  "payment-methods": __props.paymentMethods,
142
- "payment-methods-options": __props.paymentMethodsOptions,
143
139
  "show-view-all-button": (_a = __props.configuration) == null ? void 0 : _a.showViewAllButton,
144
140
  "show-add-button": (_b = __props.configuration) == null ? void 0 : _b.showAddButton,
145
141
  onViewAllPaymentMethods: _cache[0] || (_cache[0] = ($event) => unref(dispatchAction)({ action: "view-all-payment-methods" })),
146
142
  onAddPaymentMethod: _cache[1] || (_cache[1] = ($event) => unref(dispatchAction)({ action: "add-payment-method" }))
147
- }, null, 8, ["is-loading", "payment-methods", "payment-methods-options", "show-view-all-button", "show-add-button"]));
143
+ }, null, 8, ["is-loading", "payment-methods", "show-view-all-button", "show-add-button"]));
148
144
  };
149
145
  }
150
146
  });
151
- function useCustomerPaymentMethodOptions({
152
- customerId,
153
- amount
154
- }) {
155
- const { getPaymentMethodOptions } = createPaymentMethodsService();
156
- const initialValue = [];
157
- const { data, execute, error, apiStatus, isPending } = useService({
158
- initialValue,
159
- service: async () => {
160
- const response = await getPaymentMethodOptions({ customerId, amount });
161
- return response.flatMap((entry) => entry.options ?? []);
162
- }
163
- });
164
- return { error, apiStatus, items: data, fetch: execute, isPending };
165
- }
166
147
  export {
167
- _sfc_main as _,
168
- useCustomerPaymentMethodOptions as u
148
+ _sfc_main as _
169
149
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, withCtx, createElementBlock, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { b as useIntl, d as _sfc_main$1g, _ as _sfc_main$2 } from "./component-B0RYS5uK.mjs";
2
+ import { b as useIntl, d as _sfc_main$1g, _ as _sfc_main$2 } from "./component-DI3AxwdD.mjs";
3
3
  const _hoisted_1 = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-2"
@@ -1 +1 @@
1
- const e=require("vue"),t=require("./component-BeqkeC9h.js"),i={key:0,class:"flex flex-col gap-2"},o=e.defineComponent({__name:"InvoiceDetailsBlock",props:{invoice:{type:Object}},setup(o){const{$t:n,formatDate:a}=t.useIntl();return(c,d)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{title:e.unref(n)({defaultMessage:"Invoice details",description:"Title for the invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.title"})},{default:e.withCtx(()=>[o.invoice?(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Invoice date",description:"Title for the invoice date in invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.invoice_date"})),1)]),_:1}),o.invoice.invoice_date?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:0,variant:"body-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:o.invoice.invoice_date,format:"date",timezone:o.invoice.customer.timezone,offsetType:"offsetted"})),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Due date",description:"Title for the due date in invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.due_date"})),1)]),_:1}),o.invoice.due_date?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:0,variant:"body-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:o.invoice.due_date,format:"date",timezone:o.invoice.customer.timezone,offsetType:"offsetted"})),1)]),_:1})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});exports._sfc_main=o;
1
+ const e=require("vue"),t=require("./component-yWF07boR.js"),i={key:0,class:"flex flex-col gap-2"},o=e.defineComponent({__name:"InvoiceDetailsBlock",props:{invoice:{type:Object}},setup(o){const{$t:n,formatDate:a}=t.useIntl();return(c,d)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{title:e.unref(n)({defaultMessage:"Invoice details",description:"Title for the invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.title"})},{default:e.withCtx(()=>[o.invoice?(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Invoice date",description:"Title for the invoice date in invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.invoice_date"})),1)]),_:1}),o.invoice.invoice_date?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:0,variant:"body-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:o.invoice.invoice_date,format:"date",timezone:o.invoice.customer.timezone,offsetType:"offsetted"})),1)]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Due date",description:"Title for the due date in invoice details block on the invoice overview page",id:"sdk.invoice_details.invoice_details_block.due_date"})),1)]),_:1}),o.invoice.due_date?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:0,variant:"body-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({date:o.invoice.due_date,format:"date",timezone:o.invoice.customer.timezone,offsetType:"offsetted"})),1)]),_:1})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1},8,["title"]))}});exports._sfc_main=o;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createBlock, createCommentVNode } from "vue";
2
- import { b as useIntl, _ as _sfc_main$2, d as _sfc_main$1g, e as _sfc_main$3, f as formatEnum, g as _sfc_main$1 } from "./component-B0RYS5uK.mjs";
2
+ import { b as useIntl, _ as _sfc_main$2, d as _sfc_main$1g, e as _sfc_main$3, f as formatEnum, g as _sfc_main$1 } from "./component-DI3AxwdD.mjs";
3
3
  const _hoisted_1 = { class: "flex flex-col-reverse gap-1" };
4
4
  const _hoisted_2 = { class: "flex justify-between items-center mb-2" };
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1 +1 @@
1
- const e=require("vue"),t=require("./component-BeqkeC9h.js"),a={class:"flex flex-col-reverse gap-1"},n={class:"flex justify-between items-center mb-2"},o=e.defineComponent({__name:"PaymentHistoryBlock",props:{paymentAttempts:{type:Array},customer:{type:Object}},setup(o){const{$t:r,formatDate:i}=t.useIntl(),s={AUTHORIZED:"green",CANCELLED:"red",ERROR:"red",PENDING:"orange",PENDING_REFUND:"orange",REFUNDED:"orange",CHARGED_BACK:"orange",REFUSED:"red"};return(m,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(t._sfc_main$2),{tag:"h2",variant:"heading-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Payment history",description:"Title for the payment history block on the invoice details page",id:"sdk.invoice_details.payment_history.title"})),1)]),_:1}),e.createElementVNode("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.paymentAttempts,a=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{key:a.id,class:"mt-1 md:mt-2"},{default:e.withCtx(()=>[e.createElementVNode("div",n,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Payment attempt",description:"Title for the payment attempt block",id:"sdk.invoice_details.payment_history.payment_attempt"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$3),{color:s[a.result]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatEnum)(a.result)),1)]),_:2},1032,["color"])]),a.payment_method_details?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,"payment-method":a.payment_method_details},{description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:a.created_at,format:"dateTime",offsetType:"offsetted",timezone:o.customer.timezone})),1)]),_:2},1032,["payment-method"])):e.createCommentVNode("",!0)]),_:2},1024))),128))])]))}});exports._sfc_main=o;
1
+ const e=require("vue"),t=require("./component-yWF07boR.js"),a={class:"flex flex-col-reverse gap-1"},n={class:"flex justify-between items-center mb-2"},o=e.defineComponent({__name:"PaymentHistoryBlock",props:{paymentAttempts:{type:Array},customer:{type:Object}},setup(o){const{$t:r,formatDate:i}=t.useIntl(),s={AUTHORIZED:"green",CANCELLED:"red",ERROR:"red",PENDING:"orange",PENDING_REFUND:"orange",REFUNDED:"orange",CHARGED_BACK:"orange",REFUSED:"red"};return(m,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(t._sfc_main$2),{tag:"h2",variant:"heading-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Payment history",description:"Title for the payment history block on the invoice details page",id:"sdk.invoice_details.payment_history.title"})),1)]),_:1}),e.createElementVNode("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.paymentAttempts,a=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{key:a.id,class:"mt-1 md:mt-2"},{default:e.withCtx(()=>[e.createElementVNode("div",n,[e.createVNode(e.unref(t._sfc_main$2),{variant:"caps-heading"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"Payment attempt",description:"Title for the payment attempt block",id:"sdk.invoice_details.payment_history.payment_attempt"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$3),{color:s[a.result]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatEnum)(a.result)),1)]),_:2},1032,["color"])]),a.payment_method_details?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,"payment-method":a.payment_method_details},{description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({date:a.created_at,format:"dateTime",offsetType:"offsetted",timezone:o.customer.timezone})),1)]),_:2},1032,["payment-method"])):e.createCommentVNode("",!0)]),_:2},1024))),128))])]))}});exports._sfc_main=o;