@feedmepos/mf-connect 0.1.38-beta.74 → 0.1.38-beta.76

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 (140) hide show
  1. package/dist/Analytic-BrBxRQue.js +761 -0
  2. package/dist/App-CE_19YJc.js +4642 -0
  3. package/dist/AuditLogs-CQtMmVIp.js +1991 -0
  4. package/dist/Bin-D9CHhiUb.js +166 -0
  5. package/dist/Broadcast-Dg6eBL_f.js +267 -0
  6. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CSv0R9XX.js +121 -0
  7. package/dist/Card-BTkf67i1.js +910 -0
  8. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  9. package/dist/Collections-Czq4nsdu.js +541 -0
  10. package/dist/Credit-B3nX8aJA.js +261 -0
  11. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  12. package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -0
  13. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +58 -0
  14. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D2gTuN97.js +3120 -0
  15. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-5U6cSZGZ.js +351 -0
  16. package/dist/Experience-B9Vn3NTH.js +260 -0
  17. package/dist/FileSaver.min-CJaOkSQt.js +74 -0
  18. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  19. package/dist/Game-DTx_EsM3.js +331 -0
  20. package/dist/GenerateMaterial-C3J9_YHw.js +589 -0
  21. package/dist/Grab-B29W7rka.js +301 -0
  22. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-DyegKNzM.js +145 -0
  23. package/dist/Index-Fk8EP5dG.js +259 -0
  24. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  25. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-D2XPGgTM.js +48 -0
  26. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-K8qUYrPk.js +18737 -0
  27. package/dist/MainLayout-BFmqJkE_.js +41 -0
  28. package/dist/Marketing-BRHQHAWD.js +145 -0
  29. package/dist/MarketingMaterialEdit-7s3WEDyJ.js +746 -0
  30. package/dist/Member-DwPJNAo9.js +280 -0
  31. package/dist/MemberList-mS1W0qHY.js +1601 -0
  32. package/dist/MemberOverview-wL_ailso.js +58 -0
  33. package/dist/MemberTransactions-BV3xvFYS.js +45 -0
  34. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DzKqVp2O.js +60799 -0
  35. package/dist/Mission-QmoURSu4.js +335 -0
  36. package/dist/Overview-CaTMLlq-.js +1078 -0
  37. package/dist/Point-CjG77Sma.js +263 -0
  38. package/dist/Promotion-C5I-1qPN.js +397 -0
  39. package/dist/Queue-BaIBCCaX.js +259 -0
  40. package/dist/Record-DqpGwZIU.js +341 -0
  41. package/dist/Review-Bq-edSOO.js +621 -0
  42. package/dist/ReviewFacebookCallback-yaC4rLki.js +243 -0
  43. package/dist/ReviewGoogleCallback-uxrrCQdu.js +213 -0
  44. package/dist/Reward-DGP65n5t.js +442 -0
  45. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-bNMoMZOy.js +149 -0
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dgrc6vXF.js +1912 -0
  47. package/dist/Segment-CNz0sR3c.js +881 -0
  48. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DLZEzpve.js +181 -0
  49. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CLdIeyef.js +188 -0
  50. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-ocCdtbbe.js +147 -0
  51. package/dist/Setting-BKDSGYBR.js +2000 -0
  52. package/dist/SettingAdvertisements-B2GMFfN9.js +264 -0
  53. package/dist/Store-C6uLl_Ue.js +1996 -0
  54. package/dist/StoreRewards-D4728UDf.js +535 -0
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CG09fJTP.js +1129 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-B0_bMK5u.js +7005 -0
  57. package/dist/Tier-BNzTa1_w.js +970 -0
  58. package/dist/Title-DY5knovF.js +568 -0
  59. package/dist/Transaction-Ct4yAJ9n.js +39 -0
  60. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CHnxi3XZ.js +130 -0
  61. package/dist/Voucher-DFTMRPT0.js +422 -0
  62. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DZU7XVlZ.js +421 -0
  63. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-BndLHmHB.js +56 -0
  64. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  65. package/dist/app-6lG4w5PT.js +59396 -0
  66. package/dist/app-wDQR6dpb.js +39 -0
  67. package/dist/app.js +7 -0
  68. package/dist/business-CrfQ56D0.js +82 -0
  69. package/dist/campaign-B9fR7RwT.js +100 -0
  70. package/dist/campaign-B_iIaTKz.js +253 -0
  71. package/dist/campaign-CpzFl8Vr.js +4 -0
  72. package/dist/campaign.enum-BAHf0dSv.js +26 -0
  73. package/dist/campaign.fn-DDEgBzH2.js +776 -0
  74. package/dist/collectible.enum-9os2zr5a.js +19 -0
  75. package/dist/collection.fn-7qP_m2MW.js +26 -0
  76. package/dist/dto-C2hLQKuu.js +222 -0
  77. package/dist/duplicateCampaign-C6RXfeWE.js +51 -0
  78. package/dist/effect-DGVfWyIc.js +89 -0
  79. package/dist/email-addresses-BHa_qQBd.js +705 -0
  80. package/dist/export-CRPfo4hq.js +97 -0
  81. package/dist/feedme.ico +0 -0
  82. package/dist/helper-0_zrz4kj.js +86 -0
  83. package/dist/index-4Vl1VXum.js +2639 -0
  84. package/dist/index-4bX0ewBJ.js +31 -0
  85. package/dist/index-Bj0TV_D5.js +36 -0
  86. package/dist/index-BpdSswT6.js +48 -0
  87. package/dist/index-By2wenzb.js +32 -0
  88. package/dist/index-C8L2jQ_6.js +28897 -0
  89. package/dist/index-CO5kQMIK.js +85 -0
  90. package/dist/index-CW_ub4cF.js +8912 -0
  91. package/dist/index-Cp8wkBus.js +124 -0
  92. package/dist/index-CuvNtC_M.js +61 -0
  93. package/dist/index-D6Te1BQZ.js +54 -0
  94. package/dist/index-DbJGJ2fB.js +146 -0
  95. package/dist/index-DeaGdUSH.js +30289 -0
  96. package/dist/index-Dp1J9Fxa.js +3 -0
  97. package/dist/index-QUvYZydO.js +67 -0
  98. package/dist/index-lwxV5iX0.js +3431 -0
  99. package/dist/index-vh86FiIQ.js +10 -0
  100. package/dist/index.esm2017-ofRmIpjY.js +3069 -0
  101. package/dist/loading-8_73fcXo.js +71 -0
  102. package/dist/lodash-Bz_vrY3P.js +3678 -0
  103. package/dist/membership-CpB39vNW.js +235 -0
  104. package/dist/moment-D7p2TMB-.js +2583 -0
  105. package/dist/money-DALHjzjF.js +15 -0
  106. package/dist/number-D_GJahxw.js +12 -0
  107. package/dist/object-qECH92oz.js +26 -0
  108. package/dist/objectId-dwaoBfJX.js +7 -0
  109. package/dist/objectid-BZSH63yc.js +145 -0
  110. package/dist/plugins-A4jDcmfS.js +1817 -0
  111. package/dist/remy-D_Deb3ue.js +13 -0
  112. package/dist/reward-BqFB2Yn2.js +36 -0
  113. package/dist/rule-DNylZfIG.js +1969 -0
  114. package/dist/rule-builder-2iT04EOj.js +102 -0
  115. package/dist/style.css +13 -0
  116. package/dist/template-D7rpG7FN.js +188 -0
  117. package/dist/tier-BJDhpH6X.js +4 -0
  118. package/dist/tiers/tier=1.png +0 -0
  119. package/dist/tiers/tier=2.png +0 -0
  120. package/dist/tiers/tier=3.png +0 -0
  121. package/dist/tiers/tier=4.png +0 -0
  122. package/dist/timezone-BW17tvi2.js +1154 -0
  123. package/dist/titles/type=diamond.png +0 -0
  124. package/dist/titles/type=drinks.png +0 -0
  125. package/dist/titles/type=food.png +0 -0
  126. package/dist/titles/type=heart.png +0 -0
  127. package/dist/titles/type=medal.png +0 -0
  128. package/dist/titles/type=spend.png +0 -0
  129. package/dist/titles/type=thank-you.png +0 -0
  130. package/dist/titles/type=thumbs-up.png +0 -0
  131. package/dist/titles/type=years.png +0 -0
  132. package/dist/trigger-CbVrS2i6.js +213 -0
  133. package/dist/tslib.es6-BCqqvLQ_.js +44 -0
  134. package/dist/type_drinks-D6jnpvwV.js +4 -0
  135. package/dist/usePagination-dXSoqxfG.js +266 -0
  136. package/dist/user-Ck-m3cB3.js +55 -0
  137. package/dist/vue-i18n-BvqmcBWZ.js +2365 -0
  138. package/dist/xlsx-CkqDfUNs.js +15491 -0
  139. package/dist/zod-B0YxCfoE.js +91 -0
  140. package/package.json +1 -1
@@ -0,0 +1,129 @@
1
+ import { defineComponent as j, ref as i, computed as g, onMounted as B, resolveComponent as r, openBlock as m, createBlock as c, unref as o, withCtx as p, createVNode as v, normalizeClass as f, createCommentVNode as k, createElementVNode as L, toDisplayString as F, isRef as M, createElementBlock as O, Fragment as A, renderList as N } from "vue";
2
+ const z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = /* @__PURE__ */ j({
3
+ __name: "FilterChip",
4
+ props: {
5
+ modelValue: {
6
+ type: Array,
7
+ required: !1
8
+ },
9
+ label: {
10
+ type: String,
11
+ required: !1,
12
+ default: ""
13
+ },
14
+ showItemLabel: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ placement: {
19
+ type: String,
20
+ required: !1,
21
+ default: "bottom-end"
22
+ },
23
+ class: {
24
+ type: String,
25
+ required: !1
26
+ },
27
+ disabled: {
28
+ type: Boolean,
29
+ required: !1
30
+ },
31
+ items: {
32
+ type: Array,
33
+ required: !0
34
+ },
35
+ icon: {
36
+ type: String,
37
+ required: !1
38
+ },
39
+ searchable: {
40
+ type: Boolean,
41
+ required: !1,
42
+ default: !0
43
+ }
44
+ },
45
+ emits: ["update:model-value"],
46
+ setup(u, { emit: C }) {
47
+ const t = u, b = C, d = i(!1), l = i({}), s = i(""), V = g(() => {
48
+ const e = Object.keys(l.value).length;
49
+ return !l.value || Object.keys(l.value).length == t.items.length || e === 0 ? "All" : `${e > 0 ? e : "None"} selected`;
50
+ });
51
+ function w(e) {
52
+ l.value[e] ? delete l.value[e] : l.value[e] = !0, b("update:model-value", Object.keys(l.value));
53
+ }
54
+ function _() {
55
+ Object.keys(l.value).length > 0 ? l.value = {} : l.value = t.items.reduce((e, n) => (e[n.value] = !0, e), {}), b("update:model-value", Object.keys(l.value));
56
+ }
57
+ const x = g(() => s.value && s.value.length > 0 ? t.items.filter(
58
+ (e) => e.label.toLowerCase().includes(s.value.trim().toLowerCase())
59
+ ) : t.items);
60
+ return B(() => {
61
+ l.value = t.modelValue.reduce(
62
+ (e, n) => (e[n] = !0, e),
63
+ {}
64
+ ), t.modelValue.length == 0;
65
+ }), (e, n) => {
66
+ const y = r("FmIcon"), q = r("FmChip"), I = r("FmTextField"), h = r("FmMenuItem"), S = r("FmMenu");
67
+ return m(), c(S, {
68
+ placement: u.placement || "bottom-end",
69
+ disabled: u.disabled == !0,
70
+ "model-value": o(d),
71
+ onMenuChanged: n[1] || (n[1] = (a) => d.value = a),
72
+ "close-on-click": !1
73
+ }, {
74
+ "menu-button": p(() => [
75
+ v(q, {
76
+ label: u.label,
77
+ class: f(t.class || "text-fm-color-neutral-gray-400 cursor-pointer")
78
+ }, {
79
+ default: p(() => [
80
+ t.icon ? (m(), c(y, {
81
+ key: 0,
82
+ name: t.icon,
83
+ class: f(t.class),
84
+ outline: "",
85
+ size: "sm"
86
+ }, null, 8, ["name", "class"])) : k("", !0),
87
+ L("div", z, F(t.label) + " " + F(u.showItemLabel ? o(V) : ""), 1),
88
+ v(y, {
89
+ name: o(d) ? "keyboard_arrow_up" : "keyboard_arrow_down",
90
+ class: f(t.class),
91
+ outline: "",
92
+ size: "sm"
93
+ }, null, 8, ["name", "class"])
94
+ ]),
95
+ _: 1
96
+ }, 8, ["label", "class"])
97
+ ]),
98
+ default: p(() => [
99
+ u.searchable ? (m(), c(I, {
100
+ key: 0,
101
+ modelValue: o(s),
102
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => M(s) ? s.value = a : null),
103
+ placeholder: "Search locations",
104
+ class: "my-8"
105
+ }, null, 8, ["modelValue"])) : k("", !0),
106
+ v(h, {
107
+ "model-value": Object.keys(o(l)).length === t.items.length,
108
+ label: "All",
109
+ "has-checkbox": !0,
110
+ indeterminate: !0,
111
+ onClick: _
112
+ }, null, 8, ["model-value"]),
113
+ (m(!0), O(A, null, N(o(x) ?? [], (a) => (m(), c(h, {
114
+ key: a.value,
115
+ value: a.value,
116
+ label: a.label,
117
+ "has-checkbox": !0,
118
+ "model-value": o(l)[a.value],
119
+ "onUpdate:modelValue": (T) => w(a.value)
120
+ }, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
121
+ ]),
122
+ _: 1
123
+ }, 8, ["placement", "disabled", "model-value"]);
124
+ };
125
+ }
126
+ });
127
+ export {
128
+ E as _
129
+ };
@@ -0,0 +1,331 @@
1
+ import { defineComponent as W, ref as P, computed as J, onMounted as Q, resolveComponent as m, openBlock as f, createElementBlock as V, Fragment as A, createVNode as r, unref as o, withCtx as x, createElementVNode as n, toDisplayString as g, renderList as X, createBlock as L, resolveDynamicComponent as Y, h as c } from "vue";
2
+ import { _ as Z } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as ee, components as y } from "@feedmepos/ui-library";
4
+ import { a as te, p as oe } from "./plugins-A4jDcmfS.js";
5
+ import { u as ae } from "./loading-8_73fcXo.js";
6
+ import { u as ne } from "./business-CrfQ56D0.js";
7
+ import { u as ie } from "./campaign-B9fR7RwT.js";
8
+ import { b as D, c as G, a as se } from "./campaign-B_iIaTKz.js";
9
+ import { c as re, p as le } from "./duplicateCampaign-C6RXfeWE.js";
10
+ import { _ as ce } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
11
+ import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D2gTuN97.js";
12
+ import { u as de } from "./template-D7rpG7FN.js";
13
+ import { u as ue } from "./vue-i18n-BvqmcBWZ.js";
14
+ import { _ as pe } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-CLdIeyef.js";
15
+ import { c as _ } from "./index-Cp8wkBus.js";
16
+ const fe = { class: "flex items-center" }, ge = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ye = { class: "px-24 flex flex-col gap-y-16" }, _e = { class: "flex items-center justify-between w-full" }, he = { class: "flex gap-8 overflow-x-auto" }, we = { class: "space-y-8" }, Ce = { class: "flex w-full gap-4 items-center" }, xe = { class: "space-y-4" }, ve = { class: "fm-typo-en-body-lg-600" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fe = { class: "flex items-center gap-8" }, Se = { class: "flex flex-col gap-16 text-center" }, Pe = { class: "fm-typo-en-title-sm-800" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = /* @__PURE__ */ W({
17
+ __name: "Game",
18
+ setup(Ae) {
19
+ const { t: d } = ue(), K = {
20
+ label: d("connect.program.common.actions.create", {
21
+ type: d("connect.program.game.title").toLowerCase()
22
+ }),
23
+ value: "create",
24
+ isPrimary: !0,
25
+ prependIcon: "add"
26
+ }, B = ee(), U = de("GAME", B), h = ne(), u = ie(), { global: I, minor: R } = ae, l = P({
27
+ searchKey: "",
28
+ location: []
29
+ });
30
+ function T(e) {
31
+ const t = l.value.location;
32
+ return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((s) => {
33
+ var i;
34
+ return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(s);
35
+ }) : e.targetLocation.includes(t);
36
+ }
37
+ const w = J(
38
+ () => u.campaigns.token.filter((e) => T(e))
39
+ ), j = [
40
+ {
41
+ header: "Program title",
42
+ accessorKey: "name",
43
+ // accessorFn: (v) => v.name,
44
+ cell(e) {
45
+ return c("div", { class: "flex items-center justify-between gap-4" }, [
46
+ c("div", { class: "flex items-center" }, [
47
+ c(
48
+ y.FmTooltip,
49
+ {
50
+ content: e.row.original._id,
51
+ onClick: (t) => {
52
+ t.stopPropagation(), te(e.row.original._id);
53
+ }
54
+ },
55
+ [
56
+ c(y.FmIcon, {
57
+ name: "info",
58
+ outline: !0,
59
+ size: "sm"
60
+ })
61
+ ]
62
+ )
63
+ ]),
64
+ c("div", { class: "flex-1" }, e.row.original.name)
65
+ ]);
66
+ }
67
+ },
68
+ {
69
+ header: "Status",
70
+ accessorFn: (e) => se(e),
71
+ cell(e) {
72
+ return D(e.row.original);
73
+ }
74
+ },
75
+ {
76
+ header: "Summary",
77
+ accessorFn: (e) => G(e)
78
+ //v.effect,
79
+ },
80
+ {
81
+ header: "Token received",
82
+ accessorFn: (e) => {
83
+ var t;
84
+ return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
85
+ }
86
+ },
87
+ {
88
+ header: "Actions",
89
+ cell(e) {
90
+ return c("div", { class: "flex items-center gap-8" }, [
91
+ c(y.FmButton, {
92
+ variant: "tertiary",
93
+ icon: "content_copy",
94
+ iconColor: "neutral-gray-400",
95
+ onClick: async (t) => {
96
+ t.stopPropagation(), await M(e.row.original);
97
+ }
98
+ }),
99
+ c(y.FmButton, {
100
+ variant: "tertiary",
101
+ icon: "send",
102
+ iconColor: "neutral-gray-400",
103
+ onClick: (t) => {
104
+ t.stopPropagation(), N(e.row.original);
105
+ }
106
+ }),
107
+ c(y.FmButton, {
108
+ variant: "tertiary",
109
+ icon: "delete",
110
+ iconColor: "neutral-gray-400",
111
+ onClick: (t) => {
112
+ t.stopPropagation(), E(e.row.original);
113
+ }
114
+ })
115
+ ]);
116
+ }
117
+ }
118
+ ], v = P(), $ = P();
119
+ async function E(e) {
120
+ await oe.remove(`Are you sure you want to remove ${e.name}?`) && await R(
121
+ async () => {
122
+ await _.delete(e._id), await u.read("GAME");
123
+ },
124
+ {
125
+ message: `Removing ${e.name}`,
126
+ successMessage: `Removed ${e.name} successfully`
127
+ }
128
+ );
129
+ }
130
+ async function C(e) {
131
+ e ? await t() : U.open(async (s) => {
132
+ await t(s);
133
+ });
134
+ async function t(s) {
135
+ var i;
136
+ (i = v.value) == null || i.showSheet(
137
+ !0,
138
+ "GAME",
139
+ e ? await _.readById(e._id) : void 0,
140
+ s
141
+ );
142
+ }
143
+ }
144
+ async function M(e) {
145
+ var i;
146
+ if (!await re(e.name))
147
+ return;
148
+ const t = await _.readById(e._id), s = le(t);
149
+ (i = v.value) == null || i.showSheet(
150
+ !0,
151
+ "GAME",
152
+ s,
153
+ t.template
154
+ );
155
+ }
156
+ async function H(e) {
157
+ var t, s, i;
158
+ e.campaign._id && ((i = (s = (t = e.campaign) == null ? void 0 : t.game) == null ? void 0 : s.rewards) != null && i.some(
159
+ (p) => p.type === "VOUCHER"
160
+ )) && await new Promise((p) => {
161
+ B.open({
162
+ title: "Confirmation",
163
+ message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
164
+ primaryActions: { text: "Update all", close: !0 },
165
+ secondaryActions: { text: "Update future only", close: !0 }
166
+ }).onPrimary(async () => {
167
+ e.updateCollections = !0, p();
168
+ }).onSecondary(async () => {
169
+ p();
170
+ });
171
+ }), await R(
172
+ async () => {
173
+ e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await u.read("GAME");
174
+ },
175
+ {
176
+ message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
177
+ successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
178
+ }
179
+ );
180
+ }
181
+ function N(e) {
182
+ var t;
183
+ (t = $.value) == null || t.showSheet({
184
+ campaign: e
185
+ });
186
+ }
187
+ return Q(async () => {
188
+ await I(async () => {
189
+ await u.read("GAME"), await h.readPremium();
190
+ });
191
+ }), (e, t) => {
192
+ const s = m("FmPill"), i = m("FmPageHead"), b = m("FmSearch"), p = m("FmTable"), k = m("FmButton"), O = m("FmListItem"), q = m("FmList"), z = m("FmCard");
193
+ return f(), V(A, null, [
194
+ r(i, {
195
+ actions: o(w).length > 0 && o(h).isPremium ? [K] : [],
196
+ "onClick:action": t[0] || (t[0] = () => C())
197
+ }, {
198
+ title: x(() => [
199
+ n("div", fe, [
200
+ n("span", ge, g(o(d)("connect.program.game.title")), 1),
201
+ r(s, { variant: "premium" })
202
+ ])
203
+ ]),
204
+ _: 1
205
+ }, 8, ["actions"]),
206
+ n("div", ye, [
207
+ r(b, {
208
+ modelValue: o(l).searchKey,
209
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
210
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
211
+ placeholder: "search",
212
+ collapsible: ""
213
+ }, null, 8, ["modelValue"]),
214
+ o(u).campaigns.token && o(u).campaigns.token.length > 0 ? (f(), V(A, { key: 0 }, [
215
+ n("div", _e, [
216
+ n("div", he, [
217
+ r(ce, {
218
+ label: `${o(d)("connect.common.location")}: `,
219
+ "right-icon": "keyboard_arrow_down",
220
+ modelValue: o(l).location,
221
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).location = a),
222
+ icon: "storefront",
223
+ "show-item-label": !0,
224
+ items: o(h).locationOptions
225
+ }, null, 8, ["label", "modelValue", "items"])
226
+ ]),
227
+ r(b, {
228
+ modelValue: o(l).searchKey,
229
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
230
+ class: "xs:hidden sm:hidden",
231
+ placeholder: "search",
232
+ collapsible: ""
233
+ }, null, 8, ["modelValue"])
234
+ ]),
235
+ r(p, {
236
+ class: "xs:hidden sm:hidden",
237
+ "row-data": o(w),
238
+ "column-defs": j,
239
+ "search-value": o(l).searchKey,
240
+ "column-filter": [],
241
+ onRowClick: t[4] || (t[4] = (a) => C(a.original)),
242
+ "hide-footer": o(w).length < 10
243
+ }, null, 8, ["row-data", "search-value", "hide-footer"]),
244
+ r(q, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
245
+ default: x(() => [
246
+ (f(!0), V(A, null, X(o(w).filter(
247
+ (a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
248
+ ), (a) => (f(), L(O, {
249
+ key: a._id.toString(),
250
+ onClick: (F) => C(a),
251
+ class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
252
+ }, {
253
+ default: x(() => {
254
+ var F;
255
+ return [
256
+ n("div", we, [
257
+ n("div", Ce, [
258
+ (f(), L(Y(o(D)(a))))
259
+ ]),
260
+ n("div", xe, [
261
+ n("div", ve, g(a.name), 1),
262
+ n("div", be, g(o(G)(a)), 1)
263
+ ]),
264
+ n("div", ke, g(o(d)("connect.program.game.token_received", {
265
+ count: ((F = a.pf_collectible) == null ? void 0 : F.currentReceive) ?? 0
266
+ })), 1)
267
+ ]),
268
+ n("div", Fe, [
269
+ r(k, {
270
+ icon: "content_copy",
271
+ "icon-color": "neutral-gray-400",
272
+ variant: "tertiary",
273
+ onClick: async (S) => {
274
+ S.stopPropagation(), await M(a);
275
+ }
276
+ }, null, 8, ["onClick"]),
277
+ r(k, {
278
+ icon: "delete",
279
+ "icon-color": "neutral-gray-400",
280
+ variant: "tertiary",
281
+ onClick: (S) => (S.stopPropagation(), E(a))
282
+ }, null, 8, ["onClick"])
283
+ ])
284
+ ];
285
+ }),
286
+ _: 2
287
+ }, 1032, ["onClick"]))), 128))
288
+ ]),
289
+ _: 1
290
+ })
291
+ ], 64)) : (f(), L(z, {
292
+ key: 1,
293
+ variant: "outlined",
294
+ class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
295
+ }, {
296
+ default: x(() => [
297
+ t[6] || (t[6] = n("img", {
298
+ src: Z,
299
+ class: "aspect-square w-[150px]"
300
+ }, null, -1)),
301
+ n("div", Se, [
302
+ n("div", Pe, g(o(d)("connect.program.game.empty_state.title")), 1),
303
+ n("div", Ve, g(o(d)("connect.program.game.empty_state.description")), 1)
304
+ ]),
305
+ r(k, {
306
+ variant: "primary",
307
+ label: "Create game program",
308
+ icon: "add",
309
+ disabled: !o(h).isPremium,
310
+ onClick: t[5] || (t[5] = (a) => C())
311
+ }, null, 8, ["disabled"])
312
+ ]),
313
+ _: 1
314
+ })),
315
+ r(me, {
316
+ ref_key: "sheetRef",
317
+ ref: v,
318
+ "onSubmit:modelValue": H
319
+ }, null, 512),
320
+ r(pe, {
321
+ ref_key: "sendCollectionSheetRef",
322
+ ref: $
323
+ }, null, 512)
324
+ ])
325
+ ], 64);
326
+ };
327
+ }
328
+ });
329
+ export {
330
+ Oe as default
331
+ };