@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-beta.81

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 (170) hide show
  1. package/dist/{App-DsB2o1oB.js → App-CKdnfhUE.js} +853 -683
  2. package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-vN-szmrB.js} +16 -13
  3. package/dist/{Bin-DMr7K8Kj.js → Bin-FIyWozvZ.js} +8 -8
  4. package/dist/Broadcast-CV_euppF.js +306 -0
  5. package/dist/CampaignAnalytic-Dlovlsh3.js +1830 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Fd_0aPzZ.js} +8 -5
  7. package/dist/Card-ZgfOZ7sV.js +1086 -0
  8. package/dist/{Collections-B0uGC2FE.js → Collections-DZmHKbZn.js} +14 -13
  9. package/dist/Credit-DGsbEvMw.js +286 -0
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cj89MnB0.js +53 -0
  11. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.js +4432 -0
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-CcIiEV2Z.js} +36 -36
  13. package/dist/Experience-DlJycdKe.js +288 -0
  14. package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-DVGF0TBc.js} +1 -1
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
  16. package/dist/Game-q2X_SSup.js +356 -0
  17. package/dist/GiftCardSetup-BLDm3RfC.js +736 -0
  18. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CBC5AGR-.js +424 -0
  19. package/dist/Goals-CD8vdUPQ.js +247 -0
  20. package/dist/{Grab-DmmwrGzk.js → Grab-KDYktOCn.js} +33 -32
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-DUi1YY1x.js} +1 -1
  22. package/dist/{Index-m7l4insz.js → Index-BT4esMkG.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-BRCrx3DA.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-D3G4alTX.js} +1 -1
  25. package/dist/LoyaltyDashboard-CzmwuzTw.js +2911 -0
  26. package/dist/MainLayout-CVYfxfuS.js +143 -0
  27. package/dist/{Marketing-C9pSIdBU.js → Marketing-sDWWcaL5.js} +7 -6
  28. package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-DHmI38Lo.js} +15 -14
  29. package/dist/Member-sdcMiTmr.js +654 -0
  30. package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DqchRq6h.js +1281 -0
  31. package/dist/MemberImportHistory-Df_5SiGn.js +187 -0
  32. package/dist/MemberList-BGoClGZE.js +334 -0
  33. package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-qR38yGk5.js} +1 -1
  34. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-D4yY57Vo.js} +5928 -5644
  35. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Co9oeOFx.js +40 -0
  36. package/dist/Mission-DSyqYeI6.js +363 -0
  37. package/dist/{Overview-DOJj4XvO.js → Overview-BDM8Lxfv.js} +23 -20
  38. package/dist/Overview-sLhLv5Oa.js +1316 -0
  39. package/dist/Point-DO5Z5sOL.js +297 -0
  40. package/dist/Promotion-BXm1Dxlv.js +426 -0
  41. package/dist/{Queue-55G2gtP5.js → Queue-C4kEj_Bp.js} +16 -13
  42. package/dist/{Record-DNPI02c6.js → Record-iKUy-nn3.js} +9 -9
  43. package/dist/Review-D-3-BRON.js +45 -0
  44. package/dist/ReviewFacebookCallback-SLzE3D7c.js +238 -0
  45. package/dist/ReviewGoogleCallback-DntrtfGB.js +213 -0
  46. package/dist/{Reward-CnP8R2pS.js → Reward-CNQS6F2m.js} +28 -28
  47. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-D0ZNJilO.js} +26 -23
  48. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BgvaMOAJ.js} +198 -186
  49. package/dist/{Segment-CxiQnnyj.js → Segment-Bi58A7cw.js} +278 -276
  50. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CxC6ZLZT.js} +45 -42
  51. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CToVAWKO.js} +4 -4
  52. package/dist/Setting-CixcOp_l.js +574 -0
  53. package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-DkPNDfxz.js} +12 -12
  54. package/dist/Settings-bD_DkKI0.js +230 -0
  55. package/dist/Store-BvnsumDX.js +2615 -0
  56. package/dist/{StoreRewards-DILeipMG.js → StoreRewards-CKPnV_j3.js} +15 -15
  57. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-k46T2rql.js +1319 -0
  58. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-IknvTIMG.js} +2 -2
  59. package/dist/{Tier-BAZ1xuKL.js → Tier-CiKGy-Do.js} +2576 -757
  60. package/dist/{Title-CcNAt47f.js → Title-CNFamvkQ.js} +41 -37
  61. package/dist/Transaction-C8SnyFML.js +45 -0
  62. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DQrTH7cz.js} +26 -26
  63. package/dist/Voucher-9Q-GHuvD.js +837 -0
  64. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-B-6mF0RH.js} +118 -124
  65. package/dist/WhatsappAccount-DRKJVs0I.js +325 -0
  66. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DGOPGiGH.js +96 -0
  67. package/dist/WhatsappBot-muUmTIyY.js +441 -0
  68. package/dist/WhatsappBotSettings-DUjKwiv6.js +136 -0
  69. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-7tSuZ_C3.js} +2 -2
  70. package/dist/{app-Z-UKRG5V.js → app-CQnX8TXq.js} +50951 -42514
  71. package/dist/app.js +1 -1
  72. package/dist/base.export-CwCY41wr.js +75 -0
  73. package/dist/browser-BSAOEeIM.js +1478 -0
  74. package/dist/{business-C7EF6cKC.js → business-DGYo03yh.js} +5 -5
  75. package/dist/campaign-BFhMhQWk.js +400 -0
  76. package/dist/campaign-BmVMseCM.js +100 -0
  77. package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
  78. package/dist/campaign.fn-DHdhR9C8.js +776 -0
  79. package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
  80. package/dist/collection.fn-CYrQd8Th.js +26 -0
  81. package/dist/currency-B7wFZjCM.js +7 -0
  82. package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-C62eVSKZ.js} +11 -11
  83. package/dist/{effect-BcB8IlTI.js → effect-XVC0SyM1.js} +1 -1
  84. package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-DUWzbknH.js} +209 -201
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-BSgrCJRv.js → helper-Bw_KFook.js} +1 -1
  87. package/dist/index-B88wz0DA.js +53 -0
  88. package/dist/{index-iMPtFp54.js → index-BHPcqvxB.js} +10 -9
  89. package/dist/{index-HXiYGO4_.js → index-BL01AAGF.js} +6343 -7693
  90. package/dist/index-BpcakDLo.js +32438 -0
  91. package/dist/{index-VlFWaBrg.js → index-Bu0rl1Jm.js} +1 -1
  92. package/dist/{index-BpI-BI4H.js → index-C0WVYJgp.js} +4 -4
  93. package/dist/index-C5a9ZaAM.js +151 -0
  94. package/dist/{index-CsoBDon4.js → index-CRX2b_-n.js} +1590 -1523
  95. package/dist/{index-CIBPhxlC.js → index-CSaO5mCs.js} +105 -123
  96. package/dist/{index-hlyg-wxV.js → index-CX2tKi6X.js} +1 -1
  97. package/dist/index-C_H8jFYf.js +2743 -0
  98. package/dist/{index-BoYEqLif.js → index-CmJ4UtbH.js} +1517 -263
  99. package/dist/index-CoaZuwwm.js +172 -0
  100. package/dist/{index-Bf6jNZit.js → index-CsZ7_Qzf.js} +24 -9
  101. package/dist/index-D5D85re4.js +902 -0
  102. package/dist/index-D89ye2yV.js +74 -0
  103. package/dist/index-DHRVhERM.js +14550 -0
  104. package/dist/index-DKabvlsg.js +69 -0
  105. package/dist/{index-CoHWpylO.js → index-DlFjUct2.js} +2140 -2557
  106. package/dist/index-XCHxkJPE.js +137 -0
  107. package/dist/index-o2Ga_qaX.js +39 -0
  108. package/dist/index-z0K48rtR.js +54 -0
  109. package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-cOXL--fX.js} +164 -164
  110. package/dist/{loading-CSXr0Yqz.js → loading-BlfJuA-h.js} +1 -1
  111. package/dist/{lodash-Bh7XKI-R.js → lodash-CFkpI5Sp.js} +1 -1
  112. package/dist/member-import-B4ihDPgR.js +188 -0
  113. package/dist/membership-CyNEU3ld.js +274 -0
  114. package/dist/{money-BZIST_m9.js → money-B0QV3AtE.js} +1 -1
  115. package/dist/{number-DXLR2w95.js → number-DJ7EhoTu.js} +1 -1
  116. package/dist/objectid-DZ8o9_J4.js +145 -0
  117. package/dist/onboarding-BhMbuIRK.js +131 -0
  118. package/dist/onboardingSetup-BZMYTun6.js +17 -0
  119. package/dist/{plugins-4FlbwoES.js → plugins-C7hEP98r.js} +13 -12
  120. package/dist/remy-Qz_pNsUS.js +13 -0
  121. package/dist/{reward-DUbl79bZ.js → reward-D4975Y4s.js} +1 -1
  122. package/dist/{rule-BQUoZ4l_.js → rule-BfSrqM9Z.js} +337 -275
  123. package/dist/style.css +1 -1
  124. package/dist/{template-BoiSG7G7.js → template-CTCYJKDu.js} +6 -6
  125. package/dist/timezone-hBjTK85u.js +20 -0
  126. package/dist/transaction.fn-1iGyAGZA.js +71 -0
  127. package/dist/{trigger-D5g5m6tT.js → trigger-CdJikvw9.js} +17 -17
  128. package/dist/useMarketingMaterialActions-R1rDbIr8.js +96 -0
  129. package/dist/{usePagination-DHePBBoR.js → usePagination-CqSRHo9z.js} +1 -1
  130. package/dist/{user-C_ToSo-g.js → user-C8i4TfQt.js} +1 -1
  131. package/dist/vue-i18n-CiJ_kNkt.js +2365 -0
  132. package/dist/{xlsx-h4G1C-xj.js → xlsx-DGiPalb9.js} +440 -440
  133. package/dist/{zod-CgigfJar.js → zod-CKl6yP5K.js} +1 -1
  134. package/package.json +10 -6
  135. package/dist/Broadcast-C9akM-TB.js +0 -266
  136. package/dist/Card-DRkIYs0M.js +0 -910
  137. package/dist/Credit-V5YA_hGx.js +0 -260
  138. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  139. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
  140. package/dist/Experience-WTWy5yY6.js +0 -259
  141. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  142. package/dist/Game-BwOfTCW5.js +0 -330
  143. package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
  144. package/dist/MainLayout-Du5kZOtA.js +0 -41
  145. package/dist/Member-DUV_vbPI.js +0 -280
  146. package/dist/MemberList-Ye4nOk-i.js +0 -1601
  147. package/dist/Mission-BBmCGpt8.js +0 -334
  148. package/dist/Point-Bzg6hi6o.js +0 -262
  149. package/dist/Promotion-BMXIp_ef.js +0 -397
  150. package/dist/Review-CYNPPxYU.js +0 -1141
  151. package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
  152. package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
  153. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
  154. package/dist/Setting-jHAjccod.js +0 -2047
  155. package/dist/Store-Cu-hKmVa.js +0 -1996
  156. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
  157. package/dist/Transaction-D7DO3dKQ.js +0 -39
  158. package/dist/Voucher-Cq-n1CaC.js +0 -421
  159. package/dist/campaign--MjoY1Mn.js +0 -219
  160. package/dist/campaign-DHBuP4UA.js +0 -277
  161. package/dist/campaign.fn-Bd34dVnx.js +0 -776
  162. package/dist/export-CjB7qxZ9.js +0 -97
  163. package/dist/index-BIAjmMga.js +0 -85
  164. package/dist/index-Bm0QPucw.js +0 -67
  165. package/dist/index-Bv4MBLQ5.js +0 -52
  166. package/dist/index-hbyCVNa7.js +0 -30289
  167. package/dist/membership-CfredTm3.js +0 -255
  168. package/dist/objectid-Dg4ZodlT.js +0 -145
  169. package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
  170. package/dist/vue-i18n-BcYh6_51.js +0 -2365
@@ -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-C7hEP98r.js";
5
+ import { u as ie } from "./loading-BlfJuA-h.js";
6
+ import { u as re } from "./business-DGYo03yh.js";
7
+ import { u as se } from "./campaign-BmVMseCM.js";
8
+ import { b as T, c as U, a as le } from "./campaign-BFhMhQWk.js";
9
+ import { c as ce, p as me } from "./duplicateCampaign-C62eVSKZ.js";
10
+ import { _ as de } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
11
+ import { _ as ue } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C77dXZo-.js";
12
+ import { u as pe } from "./template-CTCYJKDu.js";
13
+ import { u as fe } from "./vue-i18n-CiJ_kNkt.js";
14
+ import { _ as ge } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-CxC6ZLZT.js";
15
+ import "./index-CX2tKi6X.js";
16
+ import { useRouter as ye } from "vue-router";
17
+ import { c as h } from "./index-C5a9ZaAM.js";
18
+ import { R as _e } from "./app-CQnX8TXq.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
+ };