@feedmepos/mf-connect 0.1.98-beta.5 → 0.1.98-beta.50

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 (139) hide show
  1. package/dist/{App-D_4snNiy.js → App-XRTSw_F1.js} +812 -666
  2. package/dist/{AuditLogs-KQU1O9_9.js → AuditLogs-CgsvZ-7X.js} +12 -11
  3. package/dist/{Bin-gp_uuNrE.js → Bin-CDwE00an.js} +8 -8
  4. package/dist/{Broadcast-CbBaOlnn.js → Broadcast-BOh56jYG.js} +39 -36
  5. package/dist/CampaignAnalytic-DZkCSGRF.js +1826 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-2bro245w.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DqYRlwCj.js} +7 -5
  7. package/dist/Card-DZ01wmGw.js +1060 -0
  8. package/dist/{Collections-CKeOHYZ4.js → Collections-CaIWOlsO.js} +14 -13
  9. package/dist/Credit-C8TM9q2f.js +286 -0
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bh2O4xdy.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-1UH_Ie4E.js} +34 -30
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BIdb46VQ.js → EffectSheet.vue_vue_type_style_index_0_lang-CVqMqYhi.js} +6 -6
  12. package/dist/{Experience-B-c5SMns.js → Experience-Cy0K8E9P.js} +112 -86
  13. package/dist/{FileSaver.min-DWnvGKCg.js → FileSaver.min-ClaVGDxU.js} +1 -1
  14. package/dist/Game-DxUNIK1H.js +356 -0
  15. package/dist/GiftCardSetup-DPuRb-29.js +662 -0
  16. package/dist/{Grab-BLC4GcgE.js → Grab-VSlV6K7E.js} +32 -31
  17. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-l2CmQ0nR.js → ImageInput.vue_vue_type_script_setup_true_lang-BJQzLNY1.js} +1 -1
  18. package/dist/{Index-DmAG2skd.js → Index-D_xXXqKL.js} +10 -10
  19. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-UmynGH00.js → LocationPicker.vue_vue_type_script_setup_true_lang-BJl8_bKp.js} +1 -1
  20. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BThofu65.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BOaXZf3X.js} +1 -1
  21. package/dist/LoyaltyDashboard-CWPV6CHM.js +2218 -0
  22. package/dist/MainLayout-CeA24f8v.js +143 -0
  23. package/dist/{Marketing-DmY25Ri9.js → Marketing-Bw437-ze.js} +7 -6
  24. package/dist/{MarketingMaterialEdit-DP9pba44.js → MarketingMaterialEdit-x6JdhQDh.js} +15 -14
  25. package/dist/Member-zLjxWmJf.js +626 -0
  26. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DM9c_Ow1.js +1287 -0
  27. package/dist/MemberImportHistory-BvvIfn9o.js +187 -0
  28. package/dist/MemberList-DqqAduX1.js +336 -0
  29. package/dist/{MemberTransactions-XRvUfeFB.js → MemberTransactions-j4nWa843.js} +1 -1
  30. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-g7v3ZoUS.js → MessageInput.vue_vue_type_script_setup_true_lang-z9lYA425.js} +5434 -5279
  31. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
  32. package/dist/Mission-CPXEtNBm.js +360 -0
  33. package/dist/Overview-Bel0iCe8.js +1316 -0
  34. package/dist/{Overview-DgmVlUVi.js → Overview-DySRWqyr.js} +21 -20
  35. package/dist/Point-ClovAwUI.js +288 -0
  36. package/dist/Promotion-BiiruWmm.js +423 -0
  37. package/dist/{Queue-DxtykwmI.js → Queue-DY9zRWWp.js} +13 -12
  38. package/dist/{Record-fLCi2Oyh.js → Record-BJ6M5bXk.js} +9 -9
  39. package/dist/Review-Cyi-vRyc.js +45 -0
  40. package/dist/ReviewFacebookCallback-CdSAfiJ7.js +238 -0
  41. package/dist/ReviewGoogleCallback-COen72wx.js +213 -0
  42. package/dist/{Reward-BbdiCAiO.js → Reward-B3--b_8h.js} +35 -35
  43. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Cfjtk46d.js → RewardGroup.vue_vue_type_script_setup_true_lang-DCmSt5io.js} +14 -13
  44. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CYEBeuQQ.js → RuleGroup.vue_vue_type_script_setup_true_lang-F2B47wb8.js} +17 -15
  45. package/dist/{Segment-EkGcR2jo.js → Segment-DydGccSi.js} +31 -29
  46. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DND48RGu.js → SelectItems.vue_vue_type_script_setup_true_lang-Bf_1Lw5R.js} +2 -2
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-sbYDSAFK.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BXrHY1DU.js} +37 -36
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8RmLtRC.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DhitF847.js} +4 -4
  49. package/dist/{Setting-D3swsR6P.js → Setting-DgXgWy7W.js} +14 -14
  50. package/dist/{SettingAdvertisements-BjhTK11W.js → SettingAdvertisements-TMTfvGdU.js} +12 -12
  51. package/dist/Settings-b3K8fH29.js +230 -0
  52. package/dist/Store-jAGYe4R6.js +2615 -0
  53. package/dist/{StoreRewards-CyrWuwLi.js → StoreRewards-23IXon0V.js} +15 -15
  54. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BUTYIDGo.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BroaESpx.js} +400 -455
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DJQ022R4.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-gnjnQhXP.js} +2 -2
  56. package/dist/{Tier-DrPqr8_e.js → Tier-B_ixl0ZY.js} +44 -41
  57. package/dist/{Title-CaZtz98p.js → Title-CUc90kzn.js} +49 -46
  58. package/dist/Transaction-BNVEjOC4.js +45 -0
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BsBqk0Rs.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CkbKlnrt.js} +6 -6
  60. package/dist/{Voucher-BZcr4D0y.js → Voucher-eALK6zg9.js} +156 -133
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DXQF3LZK.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CEsMYQ-L.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DI-tCQeb.js → ZodTextField.vue_vue_type_script_setup_true_lang-BEAJ5tb7.js} +2 -2
  63. package/dist/{app-B0vutEt5.js → app-I3z-EN92.js} +7269 -5971
  64. package/dist/app.js +1 -1
  65. package/dist/{business-IZLJeLD-.js → business-D_ksG_j8.js} +5 -5
  66. package/dist/campaign-BKIxUyuf.js +100 -0
  67. package/dist/{campaign-BPmgteCL.js → campaign-IZaOdcTr.js} +74 -96
  68. package/dist/{campaign.enum-BCdlLIt6.js → campaign.enum-k3u4N6yI.js} +1 -1
  69. package/dist/{campaign.fn-BIFWlQvS.js → campaign.fn-DeQTMPoH.js} +116 -116
  70. package/dist/{collectible.enum-CiuAWn6_.js → collectible.enum-CSQwvFfW.js} +1 -1
  71. package/dist/collection.fn-BtWAPYLz.js +26 -0
  72. package/dist/{duplicateCampaign-BouCkl9n.js → duplicateCampaign-BWdWO-Jv.js} +2 -2
  73. package/dist/{effect-Cov_Xrar.js → effect-BBSG58dq.js} +1 -1
  74. package/dist/{email-addresses-BiopO9xi.js → email-addresses-CJg5ttqC.js} +2 -2
  75. package/dist/{export-DAPTBdHb.js → export-BkjhRe8g.js} +3 -3
  76. package/dist/google-C3S8u0mT.js +4 -0
  77. package/dist/{helper-ClFo4nAk.js → helper-DsSVIIP1.js} +1 -1
  78. package/dist/index-38Rnr26K.js +53 -0
  79. package/dist/{index-N5t83KgP.js → index-BbBies0f.js} +1902 -2559
  80. package/dist/index-BmAoVlN8.js +151 -0
  81. package/dist/{index-BZvvCPbP.js → index-BsAuvfaE.js} +5 -4
  82. package/dist/{index-Kllafq_o.js → index-C-phzlda.js} +105 -123
  83. package/dist/{index-CD_3hR1g.js → index-C0qgi7n9.js} +1 -1
  84. package/dist/index-CPnv5m8Z.js +137 -0
  85. package/dist/{index-BeK9AXvx.js → index-CV1kOec1.js} +1 -1
  86. package/dist/{index-CmgQZKyo.js → index-Ckr8ODhI.js} +1 -1
  87. package/dist/{index-DTSGYksR.js → index-CtF4Z_fd.js} +281 -372
  88. package/dist/{index-k9DTOKkN.js → index-CtXqXihA.js} +4 -1
  89. package/dist/index-DCz9v1dd.js +51 -0
  90. package/dist/index-DdV1nasM.js +896 -0
  91. package/dist/index-ZPKkCZxS.js +72 -0
  92. package/dist/{index-k0hHOUBO.js → index-blX95L2R.js} +579 -571
  93. package/dist/{index-Bm5E2iD6.js → index-f0JDFqAr.js} +14 -14
  94. package/dist/{index-pKdJ8574.js → index-iagCxZ13.js} +5 -5
  95. package/dist/{index-C_AuIVay.js → index-wsdEChJx.js} +5 -5
  96. package/dist/{index.esm2017-ByFUnorr.js → index.esm2017-BMC-Q91P.js} +164 -164
  97. package/dist/{loading-t4ygCIAa.js → loading-3obmcgAf.js} +1 -1
  98. package/dist/{lodash-DwGVChOs.js → lodash-C69G7pFG.js} +1 -1
  99. package/dist/member-import-BxBe9NE7.js +187 -0
  100. package/dist/{membership-CMCTmRdh.js → membership-_XX1_j55.js} +3 -3
  101. package/dist/{money-MhQbdVIt.js → money-DZpYudCC.js} +1 -1
  102. package/dist/{number-klG94_wm.js → number-BbQQzzRA.js} +1 -1
  103. package/dist/objectid-kWi62XJQ.js +145 -0
  104. package/dist/{plugins-2py5EcqG.js → plugins-UfVjLlr4.js} +3 -3
  105. package/dist/remy-Qz_pNsUS.js +13 -0
  106. package/dist/{reward-CE9z-Us7.js → reward-1G2M5tgv.js} +1 -1
  107. package/dist/{rule-BKNHxNrQ.js → rule-DHHGjLt5.js} +3 -3
  108. package/dist/rule-builder-CgNmvg5o.js +126 -0
  109. package/dist/{template-C9yNa_0m.js → template-Ckva65hw.js} +6 -6
  110. package/dist/timezone-Ddve0ese.js +20 -0
  111. package/dist/transaction.fn-7n5XLxfA.js +64 -0
  112. package/dist/{trigger-Dk0tAyDv.js → trigger-F-XaDRpc.js} +14 -14
  113. package/dist/useMarketingMaterialActions-DIhnstdO.js +96 -0
  114. package/dist/{usePagination-cF1F_1NH.js → usePagination-C0TcC_Lo.js} +1 -1
  115. package/dist/{user-CNPPoxKh.js → user-DeuI7T2e.js} +1 -1
  116. package/dist/{vue-i18n-Bk_KpCO_.js → vue-i18n-DRrphfc1.js} +191 -191
  117. package/dist/{xlsx-D3muGzk7.js → xlsx-DaY_eyt1.js} +440 -440
  118. package/dist/{zod-D72USJGr.js → zod-BDdpK5Gp.js} +1 -1
  119. package/package.json +5 -3
  120. package/dist/Card-P7MqKEDT.js +0 -910
  121. package/dist/Credit-Dp5P2k79.js +0 -260
  122. package/dist/Game-CNSbh93g.js +0 -330
  123. package/dist/LoyaltyDashboard-Go9ClMrp.js +0 -1082
  124. package/dist/MainLayout-Dyw9Qqvh.js +0 -41
  125. package/dist/Member-DKXzaqlL.js +0 -280
  126. package/dist/MemberList-BJ5nI3Nz.js +0 -1601
  127. package/dist/Mission-BvHArY3W.js +0 -334
  128. package/dist/Point-BR0R03i6.js +0 -262
  129. package/dist/Promotion-DofFeR2N.js +0 -397
  130. package/dist/Review-7tFJOnrt.js +0 -1076
  131. package/dist/ReviewFacebookCallback-yl0w_vF9.js +0 -243
  132. package/dist/ReviewGoogleCallback-Dn_aF2ZD.js +0 -208
  133. package/dist/Store-U1jysb7b.js +0 -1996
  134. package/dist/Transaction-Bj6bSo8R.js +0 -39
  135. package/dist/campaign-Cxp-DOCG.js +0 -219
  136. package/dist/index-BQ8XZk2Y.js +0 -85
  137. package/dist/index-KmCk2ksK.js +0 -52
  138. package/dist/objectid-C4ak1ctJ.js +0 -145
  139. package/dist/useMarketingMaterialActions-BiXkdMcs.js +0 -107
@@ -0,0 +1,356 @@
1
+ import { defineComponent as J, ref as A, computed as Q, onMounted as X, resolveComponent as m, openBlock as f, createElementBlock as P, Fragment as R, createVNode as r, unref as o, withCtx as b, createElementVNode as n, toDisplayString as g, renderList as Z, createBlock as V, resolveDynamicComponent as ee, h as l } from "vue";
2
+ import { _ as te } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as oe, components as y } from "@feedmepos/ui-library";
4
+ import { c as ae, p as ne } from "./plugins-UfVjLlr4.js";
5
+ import { u as ie } from "./loading-3obmcgAf.js";
6
+ import { u as re } from "./business-D_ksG_j8.js";
7
+ import { u as se } from "./campaign-BKIxUyuf.js";
8
+ import { b as T, c as U, a as le } from "./campaign-IZaOdcTr.js";
9
+ import { c as ce, p as me } from "./duplicateCampaign-BWdWO-Jv.js";
10
+ import { _ as de } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
11
+ import { _ as ue } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-1UH_Ie4E.js";
12
+ import { u as pe } from "./template-Ckva65hw.js";
13
+ import { u as fe } from "./vue-i18n-DRrphfc1.js";
14
+ import { _ as ge } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BXrHY1DU.js";
15
+ import "./index-Ckr8ODhI.js";
16
+ import { useRouter as ye } from "vue-router";
17
+ import { c as h } from "./index-BmAoVlN8.js";
18
+ import { R as _e } from "./app-I3z-EN92.js";
19
+ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Ce = { class: "px-24 flex flex-col gap-y-16" }, ve = { class: "flex items-center justify-between w-full" }, xe = { class: "flex gap-8 overflow-x-auto" }, be = { class: "space-y-8" }, ke = { class: "flex w-full gap-4 items-center" }, Fe = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = { class: "flex items-center gap-8" }, Ve = { class: "flex flex-col gap-16 text-center" }, Le = { class: "fm-typo-en-title-sm-800" }, Be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ J({
20
+ __name: "Game",
21
+ setup(Ee) {
22
+ const { t: d } = fe(), D = ye(), I = {
23
+ label: d("connect.program.common.actions.create", {
24
+ type: d("connect.program.game.title").toLowerCase()
25
+ }),
26
+ value: "create",
27
+ isPrimary: !0,
28
+ prependIcon: "add"
29
+ }, L = oe(), K = pe("GAME", L), w = re(), u = se(), { global: j, minor: B } = ie, c = A({
30
+ searchKey: "",
31
+ location: []
32
+ });
33
+ function N(e) {
34
+ const t = c.value.location;
35
+ return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((s) => {
36
+ var i;
37
+ return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(s);
38
+ }) : e.targetLocation.includes(t);
39
+ }
40
+ const C = Q(
41
+ () => u.campaigns.token.filter((e) => N(e))
42
+ ), O = [
43
+ {
44
+ header: "Program title",
45
+ accessorKey: "name",
46
+ // accessorFn: (v) => v.name,
47
+ cell(e) {
48
+ return l("div", { class: "flex items-center justify-between gap-4" }, [
49
+ l("div", { class: "flex items-center" }, [
50
+ l(
51
+ y.FmTooltip,
52
+ {
53
+ content: e.row.original._id,
54
+ onClick: (t) => {
55
+ t.stopPropagation(), ae(e.row.original._id);
56
+ }
57
+ },
58
+ [
59
+ l(y.FmIcon, {
60
+ name: "info",
61
+ outline: !0,
62
+ size: "sm"
63
+ })
64
+ ]
65
+ )
66
+ ]),
67
+ l("div", { class: "flex-1" }, e.row.original.name)
68
+ ]);
69
+ }
70
+ },
71
+ {
72
+ header: "Status",
73
+ accessorFn: (e) => le(e),
74
+ cell(e) {
75
+ return T(e.row.original);
76
+ }
77
+ },
78
+ {
79
+ header: "Summary",
80
+ accessorFn: (e) => U(e)
81
+ //v.effect,
82
+ },
83
+ {
84
+ header: "Token received",
85
+ accessorFn: (e) => {
86
+ var t;
87
+ return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
88
+ }
89
+ },
90
+ {
91
+ header: "Actions",
92
+ cell(e) {
93
+ return l("div", { class: "flex items-center gap-8" }, [
94
+ l(y.FmButton, {
95
+ variant: "tertiary",
96
+ icon: "insights",
97
+ iconColor: "neutral-gray-400",
98
+ onClick: async (t) => {
99
+ t.stopPropagation(), await G(e.row.original);
100
+ }
101
+ }),
102
+ l(y.FmButton, {
103
+ variant: "tertiary",
104
+ icon: "content_copy",
105
+ iconColor: "neutral-gray-400",
106
+ onClick: async (t) => {
107
+ t.stopPropagation(), await $(e.row.original);
108
+ }
109
+ }),
110
+ l(y.FmButton, {
111
+ variant: "tertiary",
112
+ icon: "send",
113
+ iconColor: "neutral-gray-400",
114
+ onClick: (t) => {
115
+ t.stopPropagation(), q(e.row.original);
116
+ }
117
+ }),
118
+ l(y.FmButton, {
119
+ variant: "tertiary",
120
+ icon: "delete",
121
+ iconColor: "neutral-gray-400",
122
+ onClick: (t) => {
123
+ t.stopPropagation(), M(e.row.original);
124
+ }
125
+ })
126
+ ]);
127
+ }
128
+ }
129
+ ], k = A(), E = A();
130
+ async function M(e) {
131
+ await ne.remove(`Are you sure you want to remove ${e.name}?`) && await B(
132
+ async () => {
133
+ await h.delete(e._id), await u.read("GAME");
134
+ },
135
+ {
136
+ message: `Removing ${e.name}`,
137
+ successMessage: `Removed ${e.name} successfully`
138
+ }
139
+ );
140
+ }
141
+ async function v(e) {
142
+ e ? await t() : K.open(async (s) => {
143
+ await t(s);
144
+ });
145
+ async function t(s) {
146
+ var i;
147
+ (i = k.value) == null || i.showSheet(
148
+ !0,
149
+ "GAME",
150
+ e ? await h.readById(e._id) : void 0,
151
+ s
152
+ );
153
+ }
154
+ }
155
+ async function $(e) {
156
+ var i;
157
+ if (!await ce(e.name))
158
+ return;
159
+ const t = await h.readById(e._id), s = me(t);
160
+ (i = k.value) == null || i.showSheet(
161
+ !0,
162
+ "GAME",
163
+ s,
164
+ t.template
165
+ );
166
+ }
167
+ async function H(e) {
168
+ var t, s, i;
169
+ e.campaign._id && ((i = (s = (t = e.campaign) == null ? void 0 : t.game) == null ? void 0 : s.rewards) != null && i.some(
170
+ (p) => p.type === "VOUCHER"
171
+ )) && await new Promise((p) => {
172
+ L.open({
173
+ title: "Confirmation",
174
+ message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
175
+ primaryActions: { text: "Update all", close: !0 },
176
+ secondaryActions: { text: "Update future only", close: !0 }
177
+ }).onPrimary(async () => {
178
+ e.updateCollections = !0, p();
179
+ }).onSecondary(async () => {
180
+ p();
181
+ });
182
+ }), await B(
183
+ async () => {
184
+ e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await u.read("GAME");
185
+ },
186
+ {
187
+ message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
188
+ successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
189
+ }
190
+ );
191
+ }
192
+ function q(e) {
193
+ var t;
194
+ (t = E.value) == null || t.showSheet({
195
+ campaign: e
196
+ });
197
+ }
198
+ async function G(e) {
199
+ await D.push({
200
+ name: _e["$connect-PROGRAM_GAME_ANALYTIC"],
201
+ params: { id: e._id }
202
+ });
203
+ }
204
+ return X(async () => {
205
+ await j(async () => {
206
+ await u.read("GAME"), await w.readPremium();
207
+ });
208
+ }), (e, t) => {
209
+ const s = m("FmPill"), i = m("FmPageHead"), F = m("FmSearch"), p = m("FmTable"), x = m("FmButton"), z = m("FmListItem"), W = m("FmList"), Y = m("FmCard");
210
+ return f(), P(R, null, [
211
+ r(i, {
212
+ actions: o(C).length > 0 && o(w).isPremium ? [I] : [],
213
+ "onClick:action": t[0] || (t[0] = () => v())
214
+ }, {
215
+ title: b(() => [
216
+ n("div", he, [
217
+ n("span", we, g(o(d)("connect.program.game.title")), 1),
218
+ r(s, { variant: "premium" })
219
+ ])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["actions"]),
223
+ n("div", Ce, [
224
+ r(F, {
225
+ modelValue: o(c).searchKey,
226
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).searchKey = a),
227
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
228
+ placeholder: "search",
229
+ collapsible: ""
230
+ }, null, 8, ["modelValue"]),
231
+ o(u).campaigns.token && o(u).campaigns.token.length > 0 ? (f(), P(R, { key: 0 }, [
232
+ n("div", ve, [
233
+ n("div", xe, [
234
+ r(de, {
235
+ label: `${o(d)("connect.common.location")}: `,
236
+ "right-icon": "keyboard_arrow_down",
237
+ modelValue: o(c).location,
238
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).location = a),
239
+ icon: "storefront",
240
+ "show-item-label": !0,
241
+ items: o(w).locationOptions
242
+ }, null, 8, ["label", "modelValue", "items"])
243
+ ]),
244
+ r(F, {
245
+ modelValue: o(c).searchKey,
246
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(c).searchKey = a),
247
+ class: "xs:hidden sm:hidden",
248
+ placeholder: "search",
249
+ collapsible: ""
250
+ }, null, 8, ["modelValue"])
251
+ ]),
252
+ r(p, {
253
+ class: "xs:hidden sm:hidden",
254
+ "row-data": o(C),
255
+ "column-defs": O,
256
+ "search-value": o(c).searchKey,
257
+ "column-filter": [],
258
+ onRowClick: t[4] || (t[4] = (a) => v(a.original)),
259
+ "hide-footer": o(C).length < 10
260
+ }, null, 8, ["row-data", "search-value", "hide-footer"]),
261
+ r(W, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
262
+ default: b(() => [
263
+ (f(!0), P(R, null, Z(o(C).filter(
264
+ (a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
265
+ ), (a) => (f(), V(z, {
266
+ key: a._id.toString(),
267
+ onClick: (S) => v(a),
268
+ class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
269
+ }, {
270
+ default: b(() => {
271
+ var S;
272
+ return [
273
+ n("div", be, [
274
+ n("div", ke, [
275
+ (f(), V(ee(o(T)(a))))
276
+ ]),
277
+ n("div", Fe, [
278
+ n("div", Se, g(a.name), 1),
279
+ n("div", Ae, g(o(U)(a)), 1)
280
+ ]),
281
+ n("div", Pe, g(o(d)("connect.program.game.token_received", {
282
+ count: ((S = a.pf_collectible) == null ? void 0 : S.currentReceive) ?? 0
283
+ })), 1)
284
+ ]),
285
+ n("div", Re, [
286
+ r(x, {
287
+ icon: "insights",
288
+ "icon-color": "neutral-gray-400",
289
+ variant: "tertiary",
290
+ onClick: async (_) => {
291
+ _.stopPropagation(), await G(a);
292
+ }
293
+ }, null, 8, ["onClick"]),
294
+ r(x, {
295
+ icon: "content_copy",
296
+ "icon-color": "neutral-gray-400",
297
+ variant: "tertiary",
298
+ onClick: async (_) => {
299
+ _.stopPropagation(), await $(a);
300
+ }
301
+ }, null, 8, ["onClick"]),
302
+ r(x, {
303
+ icon: "delete",
304
+ "icon-color": "neutral-gray-400",
305
+ variant: "tertiary",
306
+ onClick: (_) => (_.stopPropagation(), M(a))
307
+ }, null, 8, ["onClick"])
308
+ ])
309
+ ];
310
+ }),
311
+ _: 2
312
+ }, 1032, ["onClick"]))), 128))
313
+ ]),
314
+ _: 1
315
+ })
316
+ ], 64)) : (f(), V(Y, {
317
+ key: 1,
318
+ variant: "outlined",
319
+ class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
320
+ }, {
321
+ default: b(() => [
322
+ t[6] || (t[6] = n("img", {
323
+ src: te,
324
+ class: "aspect-square w-[150px]"
325
+ }, null, -1)),
326
+ n("div", Ve, [
327
+ n("div", Le, g(o(d)("connect.program.game.empty_state.title")), 1),
328
+ n("div", Be, g(o(d)("connect.program.game.empty_state.description")), 1)
329
+ ]),
330
+ r(x, {
331
+ variant: "primary",
332
+ label: "Create game program",
333
+ icon: "add",
334
+ disabled: !o(w).isPremium,
335
+ onClick: t[5] || (t[5] = (a) => v())
336
+ }, null, 8, ["disabled"])
337
+ ]),
338
+ _: 1
339
+ })),
340
+ r(ue, {
341
+ ref_key: "sheetRef",
342
+ ref: k,
343
+ "onSubmit:modelValue": H
344
+ }, null, 512),
345
+ r(ge, {
346
+ ref_key: "sendCollectionSheetRef",
347
+ ref: E
348
+ }, null, 512)
349
+ ])
350
+ ], 64);
351
+ };
352
+ }
353
+ });
354
+ export {
355
+ Xe as default
356
+ };