@feedmepos/mf-connect 0.1.0-beta.33 → 0.1.0-beta.35

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 (83) hide show
  1. package/dist/{Analytic-COFvmYc_.js → Analytic-BMdB7x5F.js} +24 -23
  2. package/dist/{App-Di7kbEH7.js → App-AakWqQHx.js} +6 -6
  3. package/dist/{Broadcast-CAku3lNW.js → Broadcast-Bf5GOV7p.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1Ozu6-2.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BBTBapxi.js} +7 -7
  5. package/dist/{Card-CcRmp6aK.js → Card-DmxekNts.js} +15 -15
  6. package/dist/{Collections-BRLR37TF.js → Collections-CL7hOycU.js} +4 -4
  7. package/dist/{Credit-BEViCbtH.js → Credit-0eGxacBN.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DDSSHrcX.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BLWeJ73S.js} +27 -26
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CGBjH5AK.js → EffectSheet.vue_vue_type_style_index_0_lang-q7qJ9Ec5.js} +6 -6
  10. package/dist/{Experience-BL71InUh.js → Experience-NjmDx3_p.js} +8 -8
  11. package/dist/{Game-vmhBTg3f.js → Game-q19qmf8t.js} +8 -8
  12. package/dist/{Index-DGkT3yms.js → Index-BmzHphDm.js} +9 -9
  13. package/dist/{Marketing-BCqFnOrR.js → Marketing-BgL2CqkH.js} +5 -5
  14. package/dist/{Member-C7uOPBUa.js → Member-DXO7yer0.js} +4 -4
  15. package/dist/{MemberList-CaY2SRSx.js → MemberList-WGMopz-y.js} +14 -14
  16. package/dist/{MemberTransactions-v2sui0Sy.js → MemberTransactions-DmQgrLdy.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-za7Jz9uG.js → MessageInput.vue_vue_type_script_setup_true_lang-DFiCQcTe.js} +2 -2
  18. package/dist/{Mission-DZG8d3vM.js → Mission-DOdkoytR.js} +8 -8
  19. package/dist/Overview-Bizp0BGu.js +1064 -0
  20. package/dist/{Point-DW_SHWMs.js → Point-Bvyg1zuh.js} +8 -8
  21. package/dist/{Promotion-C8tygVa7.js → Promotion-B75LcnHm.js} +9 -9
  22. package/dist/{Record-D7XgEVn_.js → Record-BjAbPbiI.js} +5 -5
  23. package/dist/Reward-l1gt8pwu.js +432 -0
  24. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dyj14jcj.js → RewardGroup.vue_vue_type_script_setup_true_lang-C76emk8A.js} +11 -11
  25. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cmv-8YZd.js → RuleGroup.vue_vue_type_script_setup_true_lang-B4ak1Gem.js} +13 -13
  26. package/dist/{Segment-DAYnubHq.js → Segment-DJSkWWH8.js} +13 -13
  27. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BviSuL4I.js → SelectItems.vue_vue_type_script_setup_true_lang-ByqgSxPo.js} +2 -2
  28. package/dist/{Setting-Dd-PlldV.js → Setting-DTV24iE5.js} +8 -8
  29. package/dist/{Store-DmBeTkdi.js → Store-C1obQwdr.js} +46 -46
  30. package/dist/{StoreRewards-VrmRII1r.js → StoreRewards-apMVv0Ca.js} +12 -12
  31. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bx1AwHhj.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DBzA_4gb.js} +17 -17
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DanZYVUH.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-PxZ5Au5X.js} +1 -1
  33. package/dist/{Tier-h5t-OofQ.js → Tier-DSvMUZJG.js} +19 -19
  34. package/dist/{Title-BIGAZzv4.js → Title-CWoqOkd2.js} +19 -19
  35. package/dist/{Transaction-WfW0gCVl.js → Transaction-CaCsXoB5.js} +2 -2
  36. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-KB8LAOv_.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DaT8PyWl.js} +6 -6
  37. package/dist/{Voucher-CzA0AnCo.js → Voucher-BBtDXr9q.js} +11 -11
  38. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BbYPy9pR.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BCSO2-oB.js} +10 -10
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BPHAIlP5.js → ZodTextField.vue_vue_type_script_setup_true_lang-BTm3pDid.js} +1 -1
  40. package/dist/{app-C2GiWW62.js → app-B8JBXu5M.js} +212 -186
  41. package/dist/{app-BhP-DVoF.js → app-D8kcy7_R.js} +1 -1
  42. package/dist/app.js +1 -1
  43. package/dist/{business-BjQMXRkL.js → business-DN4-BTel.js} +1 -1
  44. package/dist/{campaign-tqh1zOQn.js → campaign-Cf6jJz3e.js} +2 -2
  45. package/dist/campaign.enum-DVOwgVTa.js +20 -0
  46. package/dist/campaign.fn-D8apF_YE.js +758 -0
  47. package/dist/{collectible.enum-904x3SQw.js → collectible.enum-DPsEC03C.js} +1 -1
  48. package/dist/{collection.fn-B1wW3tQk.js → collection.fn-CzeGWVx2.js} +2 -2
  49. package/dist/dto-D94IgAXy.js +2018 -0
  50. package/dist/{effect-DlIXzIWd.js → effect-CDg44P_g.js} +1 -1
  51. package/dist/{email-addresses-bquAp7UR.js → email-addresses-CDozpvzz.js} +1 -1
  52. package/dist/{export-9ZU9HjO9.js → export-DQLXrn4F.js} +3 -3
  53. package/dist/{helper-D0S39he1.js → helper-DJMf--V-.js} +1 -1
  54. package/dist/{index-DN5WVCu6.js → index-B0n_PU3b.js} +1 -1
  55. package/dist/{index-BoJwjzpx.js → index-BUZR5Bkw.js} +1 -1
  56. package/dist/{index-kkystjJw.js → index-BbPavTej.js} +3 -3
  57. package/dist/{index-D4QKa9x3.js → index-BgXfVzZF.js} +7 -7
  58. package/dist/{index-l_74COL_.js → index-BmblCnlD.js} +1 -1
  59. package/dist/{index-DF3fzy-k.js → index-BnbkejyF.js} +1 -1
  60. package/dist/{index-Dszb1Xy-.js → index-CVV5I3bh.js} +1 -1
  61. package/dist/{index-B6SrZyMF.js → index-DFbITElv.js} +214 -228
  62. package/dist/{index-DTsmbmOR.js → index-Df84_Ww3.js} +3 -3
  63. package/dist/{index-DNa1m2cM.js → index-DrvefOT4.js} +3 -3
  64. package/dist/{index-DnGzf-f8.js → index-DvE5xL4s.js} +2 -2
  65. package/dist/{index-BwDwKkyV.js → index-V6yWwXYr.js} +1 -1
  66. package/dist/{index.esm2017-CNuwLU2a.js → index.esm2017-C90-ettH.js} +1 -1
  67. package/dist/{loading-CiI8Y9Fj.js → loading-B56wz_ef.js} +4 -4
  68. package/dist/{membership-CPNrhOk0.js → membership-CF1jgR11.js} +4 -4
  69. package/dist/{money-DnAxVjb7.js → money-BEEp2WdU.js} +1 -1
  70. package/dist/{number-B5VKL1Yu.js → number-u7HbwLPt.js} +1 -1
  71. package/dist/{objectid-C-IOC4JL.js → objectid-S3_nH1F7.js} +10 -10
  72. package/dist/{reward-D4RyiYb6.js → reward-BUY77BiP.js} +1 -1
  73. package/dist/{rule-DVMHVRWb.js → rule-BdAPBN8_.js} +3 -3
  74. package/dist/{rule-builder-CFUNraRE.js → rule-builder-z51VUtHk.js} +1 -1
  75. package/dist/{template-OBoSoTcO.js → template-B_J4Q9D6.js} +4 -4
  76. package/dist/{trigger-R6mF8LNa.js → trigger-CGrv0M0q.js} +4 -4
  77. package/dist/{user-BGP1BTAw.js → user-D02jOhtd.js} +1 -1
  78. package/dist/{vue-i18n-_ooGZZRG.js → vue-i18n-rCSjqg2P.js} +333 -333
  79. package/dist/{xlsx-ByJGlrKD.js → xlsx-CL102mzm.js} +1 -1
  80. package/package.json +1 -1
  81. package/dist/Overview-egVspSvq.js +0 -1023
  82. package/dist/Reward-DqP89Pqb.js +0 -413
  83. package/dist/dto-C9SOa-xs.js +0 -2770
@@ -1,413 +0,0 @@
1
- import { defineComponent as N, ref as F, computed as K, resolveComponent as y, openBlock as v, createBlock as S, unref as t, isRef as Z, withCtx as L, createElementVNode as u, createVNode as r, createCommentVNode as T, createElementBlock as Y, Fragment as H, h as C, onMounted as q, toDisplayString as $ } from "vue";
2
- import { _ as z } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as G, components as E } from "@feedmepos/ui-library";
4
- import { f as B, u as X, p as Q } from "./loading-CiI8Y9Fj.js";
5
- import { u as J, C as ee } from "./membership-CPNrhOk0.js";
6
- import { u as te } from "./vue-i18n-_ooGZZRG.js";
7
- import { c as oe } from "./object-qECH92oz.js";
8
- import { Z as _ } from "./zod-Bg2FbC-D.js";
9
- import "./index-DnGzf-f8.js";
10
- import { a as ae } from "./index-kkystjJw.js";
11
- import { useCoreStore as le } from "@feedmepos/mf-common";
12
- import { _ as ne, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-BbYPy9pR.js";
13
- import { _ as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-CGBjH5AK.js";
14
- import { J as j } from "./JsonViewer-v8_C7l5N.js";
15
- import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BPHAIlP5.js";
16
- import { i as de } from "./helper-D0S39he1.js";
17
- import { u as ce, r as M } from "./reward-D4RyiYb6.js";
18
- import "./index-Dszb1Xy-.js";
19
- import { useRouter as me } from "vue-router";
20
- import { R as pe } from "./app-C2GiWW62.js";
21
- const ue = { class: "flex gap-8 items-center justify-start" }, ye = /* @__PURE__ */ N({
22
- __name: "EditRewardSheet",
23
- emits: ["update"],
24
- setup(W, { expose: n, emit: A }) {
25
- const c = J(), { minor: b } = X, f = F(!1), a = F({}), w = F(), g = ae, m = K(() => {
26
- const l = g.safeParse(a.value);
27
- return l.success ? [] : l.error.errors;
28
- });
29
- function R(l, e) {
30
- l && (a.value = e), f.value = l;
31
- }
32
- const P = A;
33
- async function U() {
34
- const l = g.safeParse(a.value);
35
- !l.success || !l.data || (await b(
36
- async () => {
37
- var e;
38
- l.data.option.type === "VOUCHER" && w.value && (l.data.option.collectibleConfig.image = await B.update(
39
- ((e = l.data.option.collectibleConfig) == null ? void 0 : e.image) || B.collectibleImagePath(void 0, w.value),
40
- w.value
41
- ));
42
- },
43
- {
44
- message: "Uploading reward image",
45
- successMessage: "Reward image updated"
46
- }
47
- ), P("update", l.data));
48
- }
49
- function x(l) {
50
- l === "VOUCHER" ? a.value.option = {
51
- collectible: null,
52
- type: "VOUCHER",
53
- collectibleConfig: de("VOUCHER", {
54
- business: le().currentBusiness.value._id
55
- }),
56
- earningOption: {
57
- amount: 1,
58
- type: "FIXED"
59
- },
60
- validityOption: {
61
- validForDay: 7
62
- }
63
- } : a.value.option = {
64
- collectible: c.loyaltyRewards.raw[0]._id,
65
- collectibleType: c.loyaltyRewards.raw[0].type,
66
- type: "LOYALTY",
67
- earningOption: {
68
- amount: 1,
69
- type: "FIXED"
70
- },
71
- validityOption: {
72
- validForDay: 7
73
- }
74
- };
75
- }
76
- function I(l) {
77
- a.value.option.collectible = l, a.value.option.collectibleType = c.loyaltyRewards.raw.find(
78
- (e) => e._id === l
79
- ).type;
80
- }
81
- const O = F();
82
- return n({
83
- showSheet: R
84
- }), (l, e) => {
85
- const o = y("FmSelect"), p = y("FmForm"), h = y("FmButton"), D = y("FmSideSheet");
86
- return v(), S(D, {
87
- "max-width": 560,
88
- modelValue: t(f),
89
- "onUpdate:modelValue": [
90
- e[8] || (e[8] = (d) => Z(f) ? f.value = d : null),
91
- e[9] || (e[9] = (d) => f.value = d)
92
- ],
93
- header: "Edit reward"
94
- }, {
95
- "side-sheet-footer": L(() => [
96
- u("div", ue, [
97
- r(h, {
98
- variant: "primary",
99
- type: "button",
100
- label: "Confirm",
101
- disabled: t(m).length > 0,
102
- onClick: e[6] || (e[6] = (d) => U())
103
- }, null, 8, ["disabled"]),
104
- r(h, {
105
- variant: "secondary",
106
- type: "button",
107
- label: "Cancel",
108
- onClick: e[7] || (e[7] = (d) => f.value = !1)
109
- })
110
- ])
111
- ]),
112
- default: L(() => [
113
- r(j, { json: t(a) }, null, 8, ["json"]),
114
- r(p, {
115
- class: "flex flex-col gap-y-24",
116
- ref_key: "formRef",
117
- ref: O,
118
- onValidationSuccess: e[5] || (e[5] = (d) => U())
119
- }, {
120
- default: L(() => {
121
- var d, k, s;
122
- return [
123
- r(se, {
124
- modelValue: t(a).name,
125
- "onUpdate:modelValue": e[0] || (e[0] = (i) => t(a).name = i),
126
- label: "Reward Name",
127
- schema: t(_).typeAtPath(t(g), "name", []),
128
- "error-text": t(_).helperText(t(m), "name")
129
- }, null, 8, ["modelValue", "schema", "error-text"]),
130
- r(o, {
131
- label: "Reward Type",
132
- disabled: !!t(a)._id,
133
- items: [
134
- { label: "Voucher", value: "VOUCHER" },
135
- { label: "Loyalty", value: "LOYALTY" }
136
- ],
137
- "model-value": t(a).option.type,
138
- "onUpdate:modelValue": x
139
- }, null, 8, ["disabled", "model-value"]),
140
- t(a).option.type == "LOYALTY" ? (v(), S(o, {
141
- key: 0,
142
- label: "Loyalty type",
143
- items: t(c).loyaltyRewards.items,
144
- "model-value": t(a).option.collectible,
145
- "onUpdate:modelValue": I
146
- }, null, 8, ["items", "model-value"])) : T("", !0),
147
- t(a).option.type === "LOYALTY" ? (v(), Y(H, { key: 1 }, [
148
- e[10] || (e[10] = u("div", { class: "fm-typo-en-title-sm-800" }, "Earning option", -1)),
149
- ((d = t(c).loyaltyRewards.items.find(
150
- (i) => {
151
- var V;
152
- return i.value === ((V = t(a)) == null ? void 0 : V.option.collectible);
153
- }
154
- )) == null ? void 0 : d.raw.type) !== "TITLE" ? (v(), S(ne, {
155
- key: 0,
156
- class: "mt-[-8px]",
157
- rules: [
158
- t(_).ruleAtPath(t(g), "option.earningOption", [
159
- t(a).option.type
160
- ])
161
- ],
162
- "helper-state": t(_).helperState(t(m), "option.earningOption"),
163
- "error-text": t(_).helperText(t(m), "option.earningOption"),
164
- "fixed-type": !0,
165
- "model-value": t(a).option.earningOption,
166
- "onUpdate:modelValue": e[1] || (e[1] = (i) => t(a).option.earningOption = i)
167
- }, null, 8, ["rules", "helper-state", "error-text", "model-value"])) : T("", !0),
168
- r(re, {
169
- class: "!gap-24",
170
- "for-credit": t(a).option.type === "LOYALTY" && ((k = t(c).loyaltyRewards.items.find(
171
- (i) => {
172
- var V;
173
- return i.value === ((V = t(a).option) == null ? void 0 : V.collectible);
174
- }
175
- )) == null ? void 0 : k.raw.type) === "CREDIT",
176
- rules: [
177
- t(_).ruleAtPath(t(g), "option.validityOption", [
178
- t(a).option.type
179
- ])
180
- ],
181
- "model-value": t(a).option.validityOption,
182
- "onUpdate:modelValue": e[2] || (e[2] = (i) => t(a).option.validityOption = i)
183
- }, null, 8, ["for-credit", "rules", "model-value"])
184
- ], 64)) : T("", !0),
185
- t(a).option.type === "VOUCHER" ? (v(), S(ie, {
186
- key: 2,
187
- "reward-image": t(w),
188
- "model-value": ((s = t(a)) == null ? void 0 : s.option.collectibleConfig) ?? void 0,
189
- "onUpdate:modelValue": e[3] || (e[3] = (i) => t(a).option.collectibleConfig = i),
190
- "onUpdate:rewardImage": e[4] || (e[4] = (i) => w.value = i)
191
- }, null, 8, ["reward-image", "model-value"])) : T("", !0),
192
- r(j, { json: t(m) }, null, 8, ["json"])
193
- ];
194
- }),
195
- _: 1
196
- }, 512)
197
- ]),
198
- _: 1
199
- }, 8, ["modelValue"]);
200
- };
201
- }
202
- }), fe = { class: "px-24 flex flex-col gap-y-16" }, we = { class: "flex items-center justify-between w-full" }, ve = { class: "flex flex-col gap-16 text-center" }, ge = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, He = /* @__PURE__ */ N({
203
- __name: "Reward",
204
- setup(W) {
205
- const { t: n } = te(), A = {
206
- label: n("connect.storeRewards.create"),
207
- value: "create",
208
- isPrimary: !0,
209
- prependIcon: "add"
210
- }, c = J(), b = ce(), { global: f, minor: a } = X, w = me(), g = G(), m = F({
211
- searchKey: "",
212
- columnFilters: []
213
- }), R = K(() => b.rewards);
214
- function P(e) {
215
- w.push({
216
- name: pe["$connect-STORE_REWARD_COLLECTIONS"],
217
- params: { id: e }
218
- });
219
- }
220
- const U = [
221
- {
222
- header: n("connect.storeRewards.table.name"),
223
- accessorFn: (e) => e.name
224
- },
225
- {
226
- header: n("connect.storeRewards.table.type"),
227
- cell(e) {
228
- return e.row.original.collectibleConfig ? ee[e.row.original.collectibleConfig.type].chip() : "N/A";
229
- }
230
- },
231
- {
232
- header: n("connect.storeRewards.table.actions"),
233
- cell(e) {
234
- return C("div", { class: "flex items-center justify-end gap-4" }, [
235
- C(
236
- E.FmMenu,
237
- {
238
- placement: "bottom-end",
239
- onClick: (o) => {
240
- o.stopPropagation();
241
- }
242
- },
243
- {
244
- "menu-button": () => C(E.FmButton, {
245
- icon: "more_vert",
246
- iconColor: "neutral-gray-400",
247
- variant: "tertiary"
248
- }),
249
- default: () => [
250
- e.row.original.option.type === "VOUCHER" && C(E.FmMenuItem, {
251
- label: "View collections",
252
- onClick: async (o) => {
253
- o.stopPropagation(), P(
254
- e.row.original.option.collectible
255
- );
256
- }
257
- }),
258
- C(
259
- E.FmMenuItem,
260
- {
261
- onClick: async (o) => {
262
- o.stopPropagation(), I(e.row.original);
263
- }
264
- },
265
- {
266
- label: C(
267
- "div",
268
- {
269
- class: "text-fm-color-typo-error fm-typo-en-body-md-400"
270
- },
271
- "Delete"
272
- )
273
- }
274
- )
275
- ]
276
- }
277
- )
278
- ]);
279
- }
280
- }
281
- ], x = F();
282
- async function I(e) {
283
- await Q.remove(
284
- n("connect.storeRewards.delete.confirm"),
285
- n("connect.storeRewards.delete.title")
286
- ) && await a(
287
- async () => {
288
- await M.deleteReward(e._id), await b.readRewards();
289
- },
290
- {
291
- message: n("connect.storeRewards.delete.message"),
292
- successMessage: n("connect.storeRewards.delete.success")
293
- }
294
- );
295
- }
296
- async function O(e) {
297
- var o;
298
- e || (e = {
299
- name: "",
300
- option: {
301
- type: "LOYALTY",
302
- collectible: c.loyaltyRewards.items[0].value,
303
- collectibleType: c.loyaltyRewards.items[0].raw.type,
304
- validityOption: {
305
- validForDay: 7
306
- },
307
- earningOption: {
308
- type: "FIXED",
309
- amount: 1
310
- }
311
- }
312
- }), (o = x.value) == null || o.showSheet(!0, oe(e));
313
- }
314
- async function l(e) {
315
- let o = !1;
316
- e._id && e.option.type === "VOUCHER" && await new Promise((p) => {
317
- g.open({
318
- title: "Confirmation",
319
- message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
320
- primaryActions: { text: "Update all", close: !0 },
321
- secondaryActions: { text: "Update future only", close: !0 }
322
- }).onPrimary(async () => {
323
- o = !0, p();
324
- }).onSecondary(async () => {
325
- p();
326
- });
327
- }), await a(
328
- async () => {
329
- var p;
330
- e.collectibleConfig = void 0, e._id ? await M.updateReward(e._id, {
331
- ...e,
332
- updateCollection: o
333
- }) : await M.createReward(e), await b.readRewards(), (p = x.value) == null || p.showSheet(!1);
334
- },
335
- {
336
- message: "Updating reward",
337
- successMessage: "Reward updated successfully"
338
- }
339
- );
340
- }
341
- return q(async () => {
342
- await f(async () => {
343
- await c.readRewards(), await b.readRewards();
344
- });
345
- }), (e, o) => {
346
- const p = y("FmPageHead"), h = y("FmSearch"), D = y("FmTable"), d = y("FmButton"), k = y("FmCard");
347
- return v(), Y(H, null, [
348
- r(p, {
349
- title: t(n)("connect.reward.title"),
350
- actions: [A],
351
- "back-button": !0,
352
- "onClick:action": o[0] || (o[0] = () => O()),
353
- "onClick:back": o[1] || (o[1] = () => {
354
- var s;
355
- return (s = t(w)) == null ? void 0 : s.back();
356
- })
357
- }, null, 8, ["title", "actions"]),
358
- u("div", fe, [
359
- t(R) && t(R).length > 0 ? (v(), Y(H, { key: 0 }, [
360
- u("div", we, [
361
- o[6] || (o[6] = u("div", { class: "flex gap-8" }, null, -1)),
362
- r(h, {
363
- modelValue: t(m).searchKey,
364
- "onUpdate:modelValue": o[2] || (o[2] = (s) => t(m).searchKey = s),
365
- class: "",
366
- placeholder: "search",
367
- collapsible: ""
368
- }, null, 8, ["modelValue"])
369
- ]),
370
- r(D, {
371
- "row-data": t(R),
372
- "column-defs": U,
373
- "search-value": t(m).searchKey,
374
- "column-filter": t(m).columnFilters,
375
- onRowClick: o[3] || (o[3] = (s) => O(s.original)),
376
- "hide-footer": t(R).length < 10
377
- }, null, 8, ["row-data", "search-value", "column-filter", "hide-footer"])
378
- ], 64)) : (v(), S(k, {
379
- key: 1,
380
- variant: "outlined",
381
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
382
- }, {
383
- default: L(() => [
384
- o[7] || (o[7] = u("img", {
385
- src: z,
386
- class: "aspect-square w-[150px]"
387
- }, null, -1)),
388
- u("div", ve, [
389
- u("div", ge, $(t(n)("connect.storeRewards.empty.title")), 1),
390
- u("div", be, $(t(n)("connect.storeRewards.empty.description")), 1)
391
- ]),
392
- r(d, {
393
- variant: "primary",
394
- label: t(n)("connect.storeRewards.empty.action"),
395
- onClick: o[4] || (o[4] = (s) => O()),
396
- icon: "add"
397
- }, null, 8, ["label"])
398
- ]),
399
- _: 1
400
- })),
401
- r(ye, {
402
- ref_key: "rewardSheetRef",
403
- ref: x,
404
- onUpdate: o[5] || (o[5] = (s) => l(s))
405
- }, null, 512)
406
- ])
407
- ], 64);
408
- };
409
- }
410
- });
411
- export {
412
- He as default
413
- };