@feedmepos/mf-payment 0.0.0-beta.14 → 0.0.0-beta.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/{PayoutAccount-DuqITwjB.js → PayoutAccount-NNigMHF9.js} +5 -5
  2. package/dist/{PayoutAccount-BHwKD9si.js → PayoutAccount-nJzdU1ip.js} +3 -3
  3. package/dist/PayoutAccountSetting-uiFglxyj.js +702 -0
  4. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
  5. package/dist/{Settlement-Dr6Rmkid.js → Settlement-DLFEvFiY.js} +3 -3
  6. package/dist/{Settlement-JkH7-Wd_.js → Settlement-DuT2FxzJ.js} +28 -26
  7. package/dist/{SettlementTransactions-CSz0G9iE.js → SettlementTransactions--BvqHEHi.js} +110 -116
  8. package/dist/{SettlementTransactions-BGfDReId.js → SettlementTransactions-BQpqcrAK.js} +99 -105
  9. package/dist/{Terminal-DQqtUzV2.js → Terminal-C6ns-w6k.js} +4 -4
  10. package/dist/{TerminalSetting-T0Sxq_z0.js → TerminalSetting-Dditd6yX.js} +3 -3
  11. package/dist/{TerminalTransaction-C0g2mMBJ.js → TerminalTransaction-DOfM8pcb.js} +61 -69
  12. package/dist/TerminalTransaction-Ln59u2GT.js +230 -0
  13. package/dist/Transaction-CHHwlo39.js +242 -0
  14. package/dist/Transaction-CkRaGtkz.js +243 -0
  15. package/dist/api/pagination.d.ts +20 -0
  16. package/dist/api/payment-gateway/index.d.ts +9 -0
  17. package/dist/api/terminal-transaction/index.d.ts +8 -0
  18. package/dist/app.js +56 -48
  19. package/dist/{assets-nIQ0r4oP.js → assets-DB7pg43Y.js} +1 -1
  20. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  21. package/dist/{index-CxYMbN69.js → index-7_iwp3ZF.js} +1 -1
  22. package/dist/{index-DflgpHga.js → index-BBTjdV3w.js} +2 -2
  23. package/dist/{index-CIIojtd5.js → index-Bboaan5m.js} +1 -1
  24. package/dist/{index-DhPhiNvt.js → index-BuCL5h0R.js} +1 -1
  25. package/dist/index-CEGydext.js +20 -0
  26. package/dist/{index-DqQBDo_Y.js → index-DIT7Btp7.js} +1 -1
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js → index.vue_vue_type_script_setup_true_lang-CcT6hjAl.js} +1 -1
  28. package/dist/package.json +1 -1
  29. package/dist/{payout-account-FNZygqj-.js → payout-account-CqrgAP5S.js} +191 -191
  30. package/dist/{transaction-B4rEbejx.js → transaction-CSqbF07L.js} +1 -1
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
  33. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  34. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  35. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  36. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
  37. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
  38. package/package.json +1 -1
  39. package/dist/PayoutAccountSetting-cOThY31e.js +0 -425
  40. package/dist/Transaction-BKBh8jOT.js +0 -249
  41. package/dist/Transaction-DVS8SkBi.js +0 -247
@@ -0,0 +1,243 @@
1
+ import { defineComponent as p, resolveComponent as y, openBlock as _, createBlock as A, normalizeClass as O, withCtx as I, createElementVNode as h, toDisplayString as R, createElementBlock as b, unref as r, ref as S, h as x, onMounted as K, watch as V, createVNode as g, isRef as N } from "vue";
2
+ import { t as E, a as C } from "./transaction-CSqbF07L.js";
3
+ import { e as v, u as k } from "./index-BBTjdV3w.js";
4
+ import "@feedmepos/ui-library";
5
+ import "./dinero-CIVmXLL-.js";
6
+ import { h as F } from "./moment-h96o7c8I.js";
7
+ import { g as P, a as L } from "./assets-DB7pg43Y.js";
8
+ import { useCoreStore as $ } from "@feedmepos/mf-common";
9
+ import { u as B } from "./index-Bboaan5m.js";
10
+ import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
11
+ import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
+ const G = /* @__PURE__ */ p({
13
+ __name: "Status",
14
+ props: {
15
+ row: {},
16
+ data: {}
17
+ },
18
+ setup(i) {
19
+ const a = i;
20
+ function t() {
21
+ return a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
22
+ }
23
+ return (c, d) => {
24
+ const o = y("FmBadge");
25
+ return _(), A(o, {
26
+ inline: "",
27
+ class: O(t())
28
+ }, {
29
+ default: I(() => [
30
+ h("div", null, R(c.data), 1)
31
+ ]),
32
+ _: 1
33
+ }, 8, ["class"]);
34
+ };
35
+ }
36
+ }), Y = ["src"], q = /* @__PURE__ */ p({
37
+ __name: "Gateway",
38
+ props: {
39
+ row: {},
40
+ data: {}
41
+ },
42
+ setup(i) {
43
+ return (a, t) => (_(), b("img", {
44
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
45
+ src: r(P)(a.row.original.gateway)
46
+ }, null, 8, Y));
47
+ }
48
+ }), J = ["src"], j = /* @__PURE__ */ p({
49
+ __name: "Method",
50
+ props: {
51
+ row: {},
52
+ data: {}
53
+ },
54
+ setup(i) {
55
+ return (a, t) => (_(), b("img", {
56
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
57
+ src: r(L)(a.row.original.method.issuer)
58
+ }, null, 8, J));
59
+ }
60
+ }), z = /* @__PURE__ */ p({
61
+ __name: "TransactionTable",
62
+ props: {
63
+ data: {
64
+ type: Array,
65
+ required: !0
66
+ },
67
+ loading: {
68
+ type: Boolean,
69
+ required: !0
70
+ }
71
+ },
72
+ emits: ["row-click"],
73
+ setup(i, { emit: a }) {
74
+ const t = i, c = a, d = S(""), o = [
75
+ {
76
+ header: () => "Transaction ID",
77
+ accessorKey: "id"
78
+ },
79
+ {
80
+ header: () => "Pay ID",
81
+ accessorKey: "payId"
82
+ },
83
+ {
84
+ header: () => "Gateway",
85
+ accessorKey: "gateway",
86
+ meta: {
87
+ textAlign: "center"
88
+ },
89
+ cell: ({ cell: n, row: e }) => e.original.method ? x(q, { row: e, data: n.getValue() }) : ""
90
+ },
91
+ {
92
+ header: () => "Method",
93
+ accessorKey: "method",
94
+ meta: {
95
+ textAlign: "center"
96
+ },
97
+ cell: ({ cell: n, row: e }) => e.original.method ? x(j, { row: e, data: n.getValue() }) : ""
98
+ },
99
+ {
100
+ header: () => "Type",
101
+ accessorKey: "type",
102
+ meta: {
103
+ textAlign: "center"
104
+ },
105
+ cell: ({ row: n }) => {
106
+ if (!n.original.method)
107
+ return "";
108
+ const e = n.original.method.variant;
109
+ return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
110
+ }
111
+ },
112
+ {
113
+ header: () => "Status",
114
+ accessorKey: "status",
115
+ cell: ({ cell: n, row: e }) => x(G, { row: e, data: n.getValue() })
116
+ },
117
+ {
118
+ header: () => "Transaction At",
119
+ accessorKey: "transactionAt",
120
+ meta: {
121
+ width: "180px"
122
+ }
123
+ },
124
+ {
125
+ header: () => "Sales Amount",
126
+ accessorKey: "amount"
127
+ },
128
+ {
129
+ header: () => "Fee",
130
+ accessorKey: "fee"
131
+ },
132
+ {
133
+ header: () => "Settlement Amount",
134
+ accessorKey: "payout"
135
+ }
136
+ ];
137
+ return (n, e) => {
138
+ const T = y("FmTable");
139
+ return _(), A(T, {
140
+ modelValue: d.value,
141
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => d.value = l),
142
+ "column-defs": o,
143
+ "row-data": t.data,
144
+ loading: t.loading,
145
+ onRowClick: e[1] || (e[1] = (l) => c("row-click", t.data.at(l.index)))
146
+ }, null, 8, ["modelValue", "row-data", "loading"]);
147
+ };
148
+ }
149
+ }), Q = { class: "flex justify-between mb-6 items-center" }, H = { class: "flex space-x-4" }, W = { class: "flex space-x-4" }, ce = /* @__PURE__ */ p({
150
+ __name: "Transaction",
151
+ setup(i) {
152
+ const { dateRange: a, searchKey: t } = B({
153
+ searchKey: "",
154
+ dateRange: {
155
+ startDate: F().startOf("day").toISOString(),
156
+ endDate: F().endOf("day").toISOString()
157
+ }
158
+ }), { isLoading: c, startAsyncCall: d } = k(!0);
159
+ $();
160
+ const o = S([]), n = S([]);
161
+ async function e() {
162
+ await d(async () => {
163
+ const { startDate: f, endDate: s } = a.value, u = await E.readTransactions({
164
+ start: f,
165
+ end: s
166
+ });
167
+ if (o.value = C(u), n.value = o.value, t.value > "") {
168
+ var w = new RegExp(t.value, "i");
169
+ n.value = o.value.filter((m) => {
170
+ const D = JSON.stringify(m);
171
+ return w.test(D);
172
+ });
173
+ }
174
+ });
175
+ }
176
+ function T() {
177
+ e();
178
+ }
179
+ K(T);
180
+ let l;
181
+ return V(t, async () => {
182
+ l && clearTimeout(l), l = setTimeout(() => {
183
+ var f = new RegExp(t.value, "i");
184
+ n.value = o.value.filter((s) => {
185
+ const u = JSON.stringify(s);
186
+ return f.test(u);
187
+ });
188
+ }, 700);
189
+ }), (f, s) => {
190
+ const u = y("FmSearch"), w = y("FmDateRangePicker");
191
+ return _(), A(M, {
192
+ title: "Transactions",
193
+ loading: r(c)
194
+ }, {
195
+ default: I(() => [
196
+ h("div", Q, [
197
+ h("div", H, [
198
+ g(u, {
199
+ "model-value": r(t),
200
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => N(t) ? t.value = m : null),
201
+ class: "mr-8",
202
+ label: "Search",
203
+ placeholder: "Search Transactions ..."
204
+ }, null, 8, ["model-value"]),
205
+ g(w, {
206
+ modelValue: r(a),
207
+ "onUpdate:modelValue": [
208
+ s[1] || (s[1] = (m) => N(a) ? a.value = m : null),
209
+ e
210
+ ],
211
+ compare: "",
212
+ "show-predefined-range": ""
213
+ }, null, 8, ["modelValue"])
214
+ ]),
215
+ h("div", W, [
216
+ g(U, {
217
+ button: {
218
+ appendIcon: "file_download",
219
+ variant: "primary",
220
+ label: "Export"
221
+ },
222
+ handler: async () => {
223
+ await r(E).downloadTransactionReport({
224
+ start: r(a).startDate,
225
+ end: r(a).endDate
226
+ });
227
+ }
228
+ }, null, 8, ["handler"])
229
+ ])
230
+ ]),
231
+ g(z, {
232
+ loading: r(c),
233
+ data: n.value
234
+ }, null, 8, ["loading", "data"])
235
+ ]),
236
+ _: 1
237
+ }, 8, ["loading"]);
238
+ };
239
+ }
240
+ });
241
+ export {
242
+ ce as default
243
+ };
@@ -0,0 +1,20 @@
1
+ export interface PaginationRequest {
2
+ skip: number;
3
+ limit: number;
4
+ sortBy: string;
5
+ descending?: boolean;
6
+ search?: string;
7
+ }
8
+ export interface PaginatedResponse<T> {
9
+ resources: T[];
10
+ meta: PaginatedMeta;
11
+ }
12
+ export interface PaginatedMeta {
13
+ skip: number;
14
+ limit: number;
15
+ sortBy: string;
16
+ descending?: boolean;
17
+ search?: string;
18
+ totalPages: number | null;
19
+ totalResources: number | null;
20
+ }
@@ -0,0 +1,9 @@
1
+ import type { FdoPaymentGateway } from "@feedmepos/payment-entity";
2
+ /**
3
+ * Relying on the payout account so need pass in the restaurant id from the payout account
4
+ */
5
+ export declare const paymentGatewayApi: {
6
+ get(restaurantId: string): Promise<FdoPaymentGateway[]>;
7
+ upsert(restaurantId: string, body: FdoPaymentGateway): Promise<FdoPaymentGateway[]>;
8
+ delete(restaurantId: string, gatewayId: string): Promise<FdoPaymentGateway[]>;
9
+ };
@@ -8,4 +8,12 @@ export declare const terminalTransactionApi: {
8
8
  limit: number;
9
9
  cursor: string;
10
10
  }): Promise<PaginatedResult<FdoTerminalTransaction>>;
11
+ readRestaurantTransactions(payload: {
12
+ status: F_TERMINAL_TRANSACTION_ACTION[];
13
+ searchKey: string;
14
+ start: string;
15
+ end: string;
16
+ limit: number;
17
+ cursor: string;
18
+ }): Promise<PaginatedResult<FdoTerminalTransaction>>;
11
19
  };
package/dist/app.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createRouter as R, createWebHistory as D, useRouter as I } from "vue-router";
2
- import { computed as d, watch as p, defineComponent as f, ref as S, resolveComponent as y, openBlock as b, createBlock as h, onMounted as T, onBeforeMount as g } from "vue";
2
+ import { computed as d, watch as p, defineComponent as f, ref as T, resolveComponent as y, openBlock as b, createBlock as h, onMounted as S, onBeforeMount as w } from "vue";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
- import { defineStore as w } from "pinia";
4
+ import { defineStore as P } from "pinia";
5
5
  const u = [
6
6
  {
7
7
  path: "/admin/payout-accounts",
@@ -9,13 +9,13 @@ const u = [
9
9
  meta: {
10
10
  sidebarDisplay: "Payout Accounts"
11
11
  },
12
- component: () => import("./PayoutAccount-DuqITwjB.js")
12
+ component: () => import("./PayoutAccount-NNigMHF9.js")
13
13
  },
14
14
  {
15
15
  path: "/admin/payout-accounts/:accountId",
16
16
  name: "mf-payment-admin.payout-account-settings",
17
17
  props: !0,
18
- component: () => import("./PayoutAccountSetting-cOThY31e.js")
18
+ component: () => import("./PayoutAccountSetting-uiFglxyj.js")
19
19
  },
20
20
  {
21
21
  path: "/admin/transaction",
@@ -23,7 +23,7 @@ const u = [
23
23
  meta: {
24
24
  sidebarDisplay: "Transactions"
25
25
  },
26
- component: () => import("./Transaction-BKBh8jOT.js")
26
+ component: () => import("./Transaction-CkRaGtkz.js")
27
27
  },
28
28
  {
29
29
  path: "/admin/settlement",
@@ -31,13 +31,13 @@ const u = [
31
31
  meta: {
32
32
  sidebarDisplay: "Settlements"
33
33
  },
34
- component: () => import("./Settlement-Dr6Rmkid.js")
34
+ component: () => import("./Settlement-DLFEvFiY.js")
35
35
  },
36
36
  {
37
37
  path: "/admin/settlement/:settlementId",
38
38
  name: "mf-payment-admin.settlement-transaction",
39
39
  props: !0,
40
- component: () => import("./SettlementTransactions-CSz0G9iE.js")
40
+ component: () => import("./SettlementTransactions--BvqHEHi.js")
41
41
  },
42
42
  {
43
43
  path: "/admin/terminal",
@@ -45,13 +45,13 @@ const u = [
45
45
  meta: {
46
46
  sidebarDisplay: "Terminals"
47
47
  },
48
- component: () => import("./Terminal-DQqtUzV2.js")
48
+ component: () => import("./Terminal-C6ns-w6k.js")
49
49
  },
50
50
  {
51
51
  path: "/admin/terminal/:terminalId",
52
52
  name: "mf-payment-admin.terminal-setting",
53
53
  props: !0,
54
- component: () => import("./TerminalSetting-T0Sxq_z0.js")
54
+ component: () => import("./TerminalSetting-Dditd6yX.js")
55
55
  },
56
56
  {
57
57
  path: "/admin/terminal-transaction",
@@ -59,7 +59,7 @@ const u = [
59
59
  meta: {
60
60
  sidebarDisplay: "Terminal Transactions"
61
61
  },
62
- component: () => import("./TerminalTransaction-C0g2mMBJ.js")
62
+ component: () => import("./TerminalTransaction-Ln59u2GT.js")
63
63
  }
64
64
  ], l = [
65
65
  {
@@ -69,7 +69,7 @@ const u = [
69
69
  {
70
70
  path: "/payout-account",
71
71
  name: "mf-payment-payout-account",
72
- component: () => import("./PayoutAccount-BHwKD9si.js"),
72
+ component: () => import("./PayoutAccount-nJzdU1ip.js"),
73
73
  meta: {
74
74
  sidebarDisplay: "Payout Accounts"
75
75
  }
@@ -77,7 +77,7 @@ const u = [
77
77
  {
78
78
  path: "/transaction",
79
79
  name: "mf-payment-transaction",
80
- component: () => import("./Transaction-DVS8SkBi.js"),
80
+ component: () => import("./Transaction-CHHwlo39.js"),
81
81
  meta: {
82
82
  sidebarDisplay: "Transactions"
83
83
  }
@@ -85,7 +85,7 @@ const u = [
85
85
  {
86
86
  path: "/settlement",
87
87
  name: "mf-payment-settlement",
88
- component: () => import("./Settlement-JkH7-Wd_.js"),
88
+ component: () => import("./Settlement-DuT2FxzJ.js"),
89
89
  meta: {
90
90
  sidebarDisplay: "Settlements"
91
91
  }
@@ -94,36 +94,44 @@ const u = [
94
94
  path: "/settlement/:settlementId",
95
95
  name: "mf-payment-settlement-transaction",
96
96
  props: !0,
97
- component: () => import("./SettlementTransactions-BGfDReId.js")
97
+ component: () => import("./SettlementTransactions-BQpqcrAK.js")
98
+ },
99
+ {
100
+ path: "/terminal-tranasction",
101
+ name: "mf-payment-terminal-transaction",
102
+ meta: {
103
+ sidebarDisplay: "Terminal Transactions"
104
+ },
105
+ component: () => import("./TerminalTransaction-DOfM8pcb.js")
98
106
  }
99
- ], P = w("iframe", () => {
100
- const m = {
107
+ ], g = P("iframe", () => {
108
+ const o = {
101
109
  isIframe: !1
102
- }, a = d(() => m);
103
- function n(o) {
104
- m.isIframe = o;
110
+ }, n = d(() => o);
111
+ function a(m) {
112
+ o.isIframe = m;
105
113
  }
106
114
  return {
107
- state: a,
108
- init: n
115
+ state: n,
116
+ init: a
109
117
  };
110
118
  }), A = R({
111
119
  history: D(),
112
120
  routes: [...l, ...u]
113
121
  });
114
- A.beforeEach(async (m) => {
115
- const { sessionUser: a, currentRestaurant: n, readRestaurants: o, changeRestaurant: i } = c();
116
- if (console.log(m), m.name.startsWith("mf-payment-admin"))
117
- return a.value ? !0 : new Promise((r) => {
118
- const s = p(a, (e) => {
122
+ A.beforeEach(async (o) => {
123
+ const { sessionUser: n, currentRestaurant: a, readRestaurants: m, changeRestaurant: i } = c();
124
+ if (o.name.startsWith("mf-payment-admin"))
125
+ return n.value ? !0 : new Promise((r) => {
126
+ const s = p(n, (e) => {
119
127
  var t;
120
- e && (s(), r((t = a.value) == null ? void 0 : t.isInternal));
128
+ e && (s(), r((t = n.value) == null ? void 0 : t.isInternal));
121
129
  });
122
130
  });
123
- if (!n.value) {
124
- const r = await o();
131
+ if (!a.value) {
132
+ const r = await m();
125
133
  return await i(r == null ? void 0 : r.at(0)), new Promise((s) => {
126
- const e = p(n, (t) => {
134
+ const e = p(a, (t) => {
127
135
  t && (e(), s(!0));
128
136
  });
129
137
  });
@@ -132,10 +140,10 @@ A.beforeEach(async (m) => {
132
140
  });
133
141
  const C = /* @__PURE__ */ f({
134
142
  __name: "AppSidebar",
135
- setup(m) {
136
- const a = c(), n = I(), o = S(n.currentRoute.value.name);
137
- p(n.currentRoute, () => {
138
- o.value = n.currentRoute.value.name;
143
+ setup(o) {
144
+ const n = c(), a = I(), m = T(a.currentRoute.value.name);
145
+ p(a.currentRoute, () => {
146
+ m.value = a.currentRoute.value.name;
139
147
  });
140
148
  const i = l.map((e) => {
141
149
  var t;
@@ -144,8 +152,8 @@ const C = /* @__PURE__ */ f({
144
152
  label: e.meta.sidebarDisplay,
145
153
  value: e.name,
146
154
  action: () => {
147
- if (n.currentRoute.value.name !== e.name)
148
- return n.push({ name: e.name });
155
+ if (a.currentRoute.value.name !== e.name)
156
+ return a.push({ name: e.name });
149
157
  }
150
158
  };
151
159
  }).filter((e) => !!e), r = u.map((e) => {
@@ -155,14 +163,14 @@ const C = /* @__PURE__ */ f({
155
163
  label: e.meta.sidebarDisplay,
156
164
  value: e.name,
157
165
  action: () => {
158
- if (n.currentRoute.value.name !== e.name)
159
- return n.push({ name: e.name });
166
+ if (a.currentRoute.value.name !== e.name)
167
+ return a.push({ name: e.name });
160
168
  }
161
169
  };
162
170
  }).filter((e) => !!e), s = d(() => {
163
171
  var t;
164
172
  const e = [...i];
165
- return (t = a.sessionUser.value) != null && t.isInternal && (e.push({
173
+ return (t = n.sessionUser.value) != null && t.isInternal && (e.push({
166
174
  label: "",
167
175
  value: "divider",
168
176
  disabled: !0
@@ -176,8 +184,8 @@ const C = /* @__PURE__ */ f({
176
184
  return (e, t) => {
177
185
  const _ = y("FmCollapsibleTabs");
178
186
  return b(), h(_, {
179
- modelValue: o.value,
180
- "onUpdate:modelValue": t[0] || (t[0] = (v) => o.value = v),
187
+ modelValue: m.value,
188
+ "onUpdate:modelValue": t[0] || (t[0] = (v) => m.value = v),
181
189
  items: s.value,
182
190
  class: "py-16 px-8"
183
191
  }, null, 8, ["modelValue", "items"]);
@@ -185,13 +193,13 @@ const C = /* @__PURE__ */ f({
185
193
  }
186
194
  }), F = /* @__PURE__ */ f({
187
195
  __name: "App",
188
- setup(m) {
189
- const { state: a } = P(), n = c();
190
- return T(() => {
191
- a.isIframe && parent.postMessage({ event: "ready" }, "*");
192
- }), g(() => {
193
- n.registerSidebarComponent(C);
194
- }), (o, i) => {
196
+ setup(o) {
197
+ const { state: n } = g(), a = c();
198
+ return S(() => {
199
+ n.isIframe && parent.postMessage({ event: "ready" }, "*");
200
+ }), w(() => {
201
+ a.registerSidebarComponent(C);
202
+ }), (m, i) => {
195
203
  const r = y("RouterView");
196
204
  return b(), h(r);
197
205
  };