@feedmepos/mf-connect 0.1.38-beta.6 → 0.1.38-beta.61

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 (148) hide show
  1. package/dist/{Analytic-NBx32reB.js → Analytic-CM7mh-iO.js} +16 -16
  2. package/dist/{App-CaK9PvMd.js → App-CeCzzsDu.js} +625 -619
  3. package/dist/AuditLogs-VWx8DFKA.js +1991 -0
  4. package/dist/{Bin-CL6o1JSs.js → Bin-vUuol_I9.js} +10 -10
  5. package/dist/Broadcast-6VXz4-IG.js +233 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CV-zhJ15.js} +6 -6
  7. package/dist/{Card-DNdEjt6s.js → Card-CeIeGET1.js} +144 -140
  8. package/dist/Collections-CF_OcAL3.js +540 -0
  9. package/dist/Credit-BUqGOyp_.js +226 -0
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-0DMFuBoG.js +3150 -0
  13. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BZfchHlT.js +347 -0
  14. package/dist/Experience-BxiFH_uV.js +225 -0
  15. package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-lgg_oBvT.js} +1 -1
  16. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  17. package/dist/Game-BzYW0LfY.js +300 -0
  18. package/dist/GenerateMaterial-B5A7mx2y.js +589 -0
  19. package/dist/Grab-BgiMqwvj.js +301 -0
  20. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-DZ8DHrQ_.js} +49 -48
  21. package/dist/{Index-2wokhhFB.js → Index-B85ops8K.js} +54 -54
  22. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B5rIjxYd.js} +1 -1
  23. package/dist/{MainLayout-B1aJoR95.js → MainLayout-CXGVkD-W.js} +1 -1
  24. package/dist/Marketing-Bnijl7lA.js +145 -0
  25. package/dist/MarketingMaterialEdit-BlUKwSoP.js +746 -0
  26. package/dist/{Member-2xV4Izwa.js → Member-sT853g51.js} +38 -37
  27. package/dist/{MemberList-CYgBdyJt.js → MemberList-DYT5_fSP.js} +158 -159
  28. package/dist/{MemberTransactions-DWDV01N4.js → MemberTransactions-Cqce5ebe.js} +1 -1
  29. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js → MessageInput.vue_vue_type_script_setup_true_lang-Dq0Hswj8.js} +5940 -5668
  30. package/dist/Mission-Q5_sGgrm.js +304 -0
  31. package/dist/{Overview-BZjto86d.js → Overview-B0rwrHR1.js} +24 -25
  32. package/dist/Point-BGYFMvev.js +228 -0
  33. package/dist/Promotion-0acd63nA.js +364 -0
  34. package/dist/{Queue-D62r2qjy.js → Queue-SVqRUlD_.js} +14 -15
  35. package/dist/{Record-0iF3dG7y.js → Record-BTjg4ihy.js} +10 -10
  36. package/dist/{Reward-C5IEJYu6.js → Reward-DW58VMRO.js} +16 -16
  37. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js → RewardGroup.vue_vue_type_script_setup_true_lang-s1RI55Rc.js} +13 -14
  38. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Os17lXBX.js +1766 -0
  39. package/dist/{Segment-BknjBrUP.js → Segment-Dny8pxP1.js} +273 -274
  40. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js → SelectItems.vue_vue_type_script_setup_true_lang-Czx7rqiq.js} +12 -12
  41. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-EgVxUG_N.js} +12 -12
  42. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CO0fgI3K.js} +4 -4
  43. package/dist/Setting-CjcnxK34.js +1992 -0
  44. package/dist/SettingAdvertisements-CIyDF4C8.js +263 -0
  45. package/dist/Store-B8k5YVqU.js +1934 -0
  46. package/dist/StoreRewards-BW08rwpL.js +534 -0
  47. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BfFSfE2H.js +1034 -0
  48. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CZkKjUNQ.js +8093 -0
  49. package/dist/{Tier-B168DtFj.js → Tier-DKzu4tYw.js} +561 -480
  50. package/dist/{Title-uH0RI1N3.js → Title-BK-TXatJ.js} +149 -147
  51. package/dist/{Transaction-Bx-pmLrJ.js → Transaction-Duayg1jd.js} +2 -2
  52. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BAR9h1TV.js} +7 -7
  53. package/dist/{Voucher-Dzpz2AEB.js → Voucher-BEVAkNeJ.js} +140 -124
  54. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DvFy9Z6X.js +421 -0
  55. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js → ZodTextField.vue_vue_type_script_setup_true_lang-CU_Sx2PM.js} +2 -2
  56. package/dist/app-IvbII0ql.js +45026 -0
  57. package/dist/app.js +1 -1
  58. package/dist/{business-B65OtB5B.js → business-BFIwFfkq.js} +11 -8
  59. package/dist/campaign-RuIwxc4y.js +253 -0
  60. package/dist/{campaign-qGy6uzrC.js → campaign-w9j4I4jn.js} +29 -25
  61. package/dist/{campaign.enum-CZp2DmXI.js → campaign.enum-IHLsfdik.js} +3 -2
  62. package/dist/campaign.fn-B_P1MkRV.js +776 -0
  63. package/dist/{collectible.enum-CN-lnG1m.js → collectible.enum-CUgSjO08.js} +1 -1
  64. package/dist/{collection.fn-mMwGQWce.js → collection.fn-CrfnNb41.js} +2 -2
  65. package/dist/dto-jwO_sX9I.js +222 -0
  66. package/dist/{effect-Bg3yb9T6.js → effect--0g8PNyt.js} +1 -1
  67. package/dist/{email-addresses-CQsN724N.js → email-addresses-HtsxvXw9.js} +2 -2
  68. package/dist/{export-BLf2dhFd.js → export-CFEwMRmd.js} +9 -10
  69. package/dist/{helper-CFaph16Q.js → helper-CCfb24PO.js} +22 -7
  70. package/dist/index-B-AMMFfT.js +3419 -0
  71. package/dist/{index-BPyac0fq.js → index-BR3UbZ0F.js} +1 -1
  72. package/dist/{index-Dy5p_b1S.js → index-BZEM0T2A.js} +1 -1
  73. package/dist/index-Bflu4Rft.js +8884 -0
  74. package/dist/{index-Dkmn0jmX.js → index-CR3f3BXQ.js} +2552 -2356
  75. package/dist/{index-BkySejFg.js → index-CZPcwcUo.js} +3 -3
  76. package/dist/{index-BPZtjcTm.js → index-CkuPY85X.js} +1 -1
  77. package/dist/index-CppLPpqB.js +30933 -0
  78. package/dist/index-CuvNtC_M.js +61 -0
  79. package/dist/{index-BKOgzVx6.js → index-DDYH-IEX.js} +1 -1
  80. package/dist/{index-DaEQgaiW.js → index-DdZdHioZ.js} +455 -245
  81. package/dist/{index-BBPIZjw6.js → index-Dic_WcAL.js} +3 -3
  82. package/dist/{index-CH2d_B8c.js → index-DpjYgKTN.js} +4 -1
  83. package/dist/index-wzSeRJAd.js +36 -0
  84. package/dist/{index.esm2017-B9vJTKYg.js → index.esm2017-CUnjzfU-.js} +89 -89
  85. package/dist/loading-CivgDw5C.js +215 -0
  86. package/dist/{lodash-B5I3zXaY.js → lodash-BSbv_9TG.js} +1 -1
  87. package/dist/{membership-Du79A0Pl.js → membership-j2w1YUO-.js} +3 -3
  88. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  89. package/dist/{money-DXgYs2-R.js → money-DL-x8hiT.js} +1 -1
  90. package/dist/{number-CBMkNZvH.js → number-D1yoFGEr.js} +1 -1
  91. package/dist/objectid-CHab6j3r.js +145 -0
  92. package/dist/{campaign-iKI-L84v.js → plugins-P-V4XWmW.js} +784 -777
  93. package/dist/remy-D_Deb3ue.js +13 -0
  94. package/dist/{reward-ClX_lWcQ.js → reward-BqMlBQRu.js} +1 -1
  95. package/dist/{rule-BfidJ75Y.js → rule-CztsLdki.js} +4 -4
  96. package/dist/rule-builder-DANv7Rmz.js +102 -0
  97. package/dist/style.css +11 -2
  98. package/dist/template-Dbz3FhHK.js +188 -0
  99. package/dist/timezone-BgVqObBq.js +1151 -0
  100. package/dist/trigger-CbriUibd.js +213 -0
  101. package/dist/usePagination-DtNK7W0U.js +223 -0
  102. package/dist/user-CVapqHfr.js +55 -0
  103. package/dist/vue-i18n-tpDAnnmD.js +2365 -0
  104. package/dist/{xlsx-Be4bARvl.js → xlsx-EewcN2uY.js} +1 -1
  105. package/dist/{zod-Bg2FbC-D.js → zod-D-wiCQRJ.js} +32 -31
  106. package/package.json +13 -5
  107. package/dist/AuditLogs-C-gCCPvF.js +0 -1887
  108. package/dist/Broadcast-B2-itjvZ.js +0 -227
  109. package/dist/Collections-DepGq6WJ.js +0 -465
  110. package/dist/Credit-D7K0gFwc.js +0 -222
  111. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
  112. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js +0 -2185
  113. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js +0 -347
  114. package/dist/Experience-FlBX3eyN.js +0 -223
  115. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  116. package/dist/Game-Cc3D7lKV.js +0 -278
  117. package/dist/Marketing-D7PXYloN.js +0 -20073
  118. package/dist/Mission-BSGc9822.js +0 -296
  119. package/dist/Point-0U4TTdPW.js +0 -226
  120. package/dist/Promotion-DiUa0GcV.js +0 -289
  121. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js +0 -1751
  122. package/dist/Setting-RLI7RgmN.js +0 -1936
  123. package/dist/Store-gxmv8hWJ.js +0 -1842
  124. package/dist/StoreRewards-C_6gY_Nk.js +0 -423
  125. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js +0 -1029
  126. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js +0 -139
  127. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js +0 -419
  128. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  129. package/dist/app-B90wINOO.js +0 -33357
  130. package/dist/app-DuUxQ1ZP.js +0 -7086
  131. package/dist/campaign.fn-DKScnmjX.js +0 -758
  132. package/dist/dto-C5ri8Nws.js +0 -214
  133. package/dist/index-BCGDOgxb.js +0 -38
  134. package/dist/index-BCPBmANe.js +0 -3120
  135. package/dist/index-BN2Uyvj4.js +0 -30038
  136. package/dist/index-CrbnfAk8.js +0 -8861
  137. package/dist/index-CsaQJMAR.js +0 -66
  138. package/dist/index-DJwQICyC.js +0 -146
  139. package/dist/loading-MEQuW9Xa.js +0 -71
  140. package/dist/objectid-BeZTZYqi.js +0 -145
  141. package/dist/plugins-KiMuDTPp.js +0 -208
  142. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  143. package/dist/rule-builder-BTcZx77a.js +0 -89
  144. package/dist/template-DPpMK30W.js +0 -190
  145. package/dist/trigger-DLp1bkZP.js +0 -144
  146. package/dist/usePagination-BeF5K3M7.js +0 -223
  147. package/dist/user-Cq9CGBHZ.js +0 -54
  148. package/dist/vue-i18n-COzqUgQy.js +0 -2365
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, ref as f, resolveComponent as s, openBlock as t, createElementBlock as v, Fragment as b, createVNode as r, unref as o, createElementVNode as k, createBlock as l, KeepAlive as x, resolveDynamicComponent as m, createCommentVNode as F } from "vue";
2
- import { _ as g, a as y } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js";
3
- import { u as C } from "./vue-i18n-COzqUgQy.js";
2
+ import { _ as g, a as y } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-BfFSfE2H.js";
3
+ import { u as C } from "./vue-i18n-tpDAnnmD.js";
4
4
  const T = { class: "px-24 flex flex-col gap-y-32 pb-24" }, P = /* @__PURE__ */ d({
5
5
  __name: "Transaction",
6
6
  setup(V) {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as y, computed as b, openBlock as i, createBlock as R, unref as l, ref as E, watch as k, resolveComponent as h, createElementBlock as g, createElementVNode as B, Fragment as O, renderList as T, createVNode as V, isRef as U, createCommentVNode as v } from "vue";
2
- import "./index-CrbnfAk8.js";
3
- import { i as C, R as e } from "./rule-builder-BTcZx77a.js";
4
- import { _ as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js";
5
- import { p as N } from "./plugins-KiMuDTPp.js";
6
- import { u as S } from "./membership-Du79A0Pl.js";
7
- import { _ as j } from "./CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js";
8
- import { u as x } from "./vue-i18n-COzqUgQy.js";
2
+ import "./index-Bflu4Rft.js";
3
+ import { i as C, R as e } from "./rule-builder-DANv7Rmz.js";
4
+ import { _ as I } from "./RuleGroup.vue_vue_type_script_setup_true_lang-Os17lXBX.js";
5
+ import { p as N } from "./plugins-P-V4XWmW.js";
6
+ import { u as S } from "./membership-j2w1YUO-.js";
7
+ import { _ as j } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
8
+ import { u as x } from "./vue-i18n-tpDAnnmD.js";
9
9
  const A = /* @__PURE__ */ y({
10
10
  __name: "SegmentConfigurator",
11
11
  props: {
@@ -1,44 +1,44 @@
1
- import { defineComponent as Y, ref as x, computed as ee, h as m, onMounted as oe, resolveComponent as d, openBlock as u, createElementBlock as V, Fragment as S, createVNode as l, unref as t, createElementVNode as c, withCtx as F, renderList as te, createBlock as h, resolveDynamicComponent as ne, toDisplayString as g, createCommentVNode as E } from "vue";
2
- import { _ as ae } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as re, components as f } from "@feedmepos/ui-library";
4
- import { _ as M } from "./FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js";
5
- import { p as A, a as ce } from "./plugins-KiMuDTPp.js";
6
- import { useCoreStore as ie } from "@feedmepos/mf-common";
7
- import { u as se } from "./loading-MEQuW9Xa.js";
8
- import { u as le } from "./business-B65OtB5B.js";
9
- import { u as me } from "./campaign-qGy6uzrC.js";
10
- import { g as ue, a as O, b as B } from "./campaign-iKI-L84v.js";
11
- import "./index-Dy5p_b1S.js";
12
- import { u as de } from "./template-DPpMK30W.js";
13
- import { _ as pe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js";
14
- import { _ as fe } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js";
15
- import { u as ye } from "./vue-i18n-COzqUgQy.js";
16
- import { T as he } from "./trigger-DLp1bkZP.js";
17
- import { useRouter as ge } from "vue-router";
18
- import { c as w } from "./index-CH2d_B8c.js";
19
- import { R as H } from "./app-DuUxQ1ZP.js";
20
- var _e = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
21
- const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-center justify-between w-full" }, we = { class: "flex gap-8 overflow-x-auto" }, be = { class: "space-y-8" }, ke = { class: "flex w-full gap-4 items-center" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "flex gap-8 items-center" }, Te = { class: "flex flex-col gap-16 text-center" }, Ue = { class: "fm-typo-en-title-sm-800" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ Y({
1
+ import { defineComponent as oe, ref as V, computed as te, h as m, onMounted as ne, resolveComponent as d, openBlock as u, createElementBlock as S, Fragment as U, createVNode as l, unref as t, createElementVNode as c, withCtx as T, renderList as ae, createBlock as h, resolveDynamicComponent as re, createCommentVNode as R, toDisplayString as g } from "vue";
2
+ import { _ as ce } from "./campaign-CpzFl8Vr.js";
3
+ import { useDialog as ie, components as p } from "@feedmepos/ui-library";
4
+ import { _ as O } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
5
+ import { a as se, p as le } from "./plugins-P-V4XWmW.js";
6
+ import { useCoreStore as me } from "@feedmepos/mf-common";
7
+ import { u as ue } from "./loading-CivgDw5C.js";
8
+ import { u as de } from "./business-BFIwFfkq.js";
9
+ import { u as pe } from "./campaign-w9j4I4jn.js";
10
+ import { a as fe, b as M, c as H } from "./campaign-RuIwxc4y.js";
11
+ import "./index-BZEM0T2A.js";
12
+ import { u as he } from "./template-Dbz3FhHK.js";
13
+ import { _ as ye } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-0DMFuBoG.js";
14
+ import { _ as ge } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-CO0fgI3K.js";
15
+ import { u as ve } from "./vue-i18n-tpDAnnmD.js";
16
+ import { T as _e } from "./trigger-CbriUibd.js";
17
+ import { useRouter as Ce } from "vue-router";
18
+ import { c as b } from "./index-DpjYgKTN.js";
19
+ import { R as $ } from "./app-IvbII0ql.js";
20
+ var be = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
21
+ const we = { class: "px-24 flex flex-col gap-y-16" }, xe = { class: "flex items-center justify-between w-full" }, ke = { class: "flex gap-8 overflow-x-auto" }, Fe = { class: "space-y-8" }, Ve = { class: "flex w-full gap-4 items-center" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "space-y-4" }, Te = { class: "fm-typo-en-body-lg-600" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "flex gap-8 items-center" }, Pe = { class: "flex flex-col gap-16 text-center" }, Ee = { class: "fm-typo-en-title-sm-800" }, Ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, oo = /* @__PURE__ */ oe({
22
22
  __name: "Voucher",
23
- setup(Ie) {
24
- const { t: a } = ye(), $ = {
23
+ setup(Ae) {
24
+ const { t: a } = ve(), K = {
25
25
  label: a("connect.voucher.createCampaign"),
26
26
  value: "create",
27
27
  isPrimary: !0,
28
28
  prependIcon: "add"
29
- }, L = re(), K = de("VOUCHER", L), N = le(), p = me(), { global: D, minor: T } = se, U = ge(), i = x({
29
+ }, L = ie(), N = he("VOUCHER", L), D = de(), f = pe(), { global: j, minor: P } = ue, E = Ce(), i = V({
30
30
  searchKey: "",
31
31
  location: [],
32
32
  triggerType: []
33
- }), _ = ee(
34
- () => p.campaigns.voucher.filter(
35
- (e) => q(e) && G(e)
33
+ }), v = te(
34
+ () => f.campaigns.voucher.filter(
35
+ (e) => G(e) && X(e)
36
36
  )
37
- ), j = he.VOUCHER.map((e) => ({
37
+ ), q = _e.VOUCHER.map((e) => ({
38
38
  label: e.name,
39
39
  value: e.value
40
40
  }));
41
- function q(e) {
41
+ function G(e) {
42
42
  const o = i.value.location;
43
43
  return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some(
44
44
  (r) => {
@@ -47,27 +47,43 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
47
47
  }
48
48
  ) : e.targetLocation.includes(o);
49
49
  }
50
- function G(e) {
50
+ function w(e) {
51
+ return e.hideInApp === !1;
52
+ }
53
+ function x(e) {
54
+ return e.event.type === "SIMPLE_CLAIM" && !w(e);
55
+ }
56
+ function X(e) {
51
57
  const o = i.value.triggerType;
52
58
  if (!o || o.length === 0) return !0;
53
59
  const r = e.event.type;
54
60
  return o.includes(r);
55
61
  }
56
- const X = [
62
+ const W = [
57
63
  {
58
64
  header: a("connect.voucher.voucherTitle"),
59
- accessorFn: (e) => e.name
65
+ accessorFn: (e) => e.name,
66
+ cell(e) {
67
+ const o = [e.row.original.name];
68
+ return w(e.row.original) && o.push(
69
+ m(p.FmChip, {
70
+ label: "Feedvibe",
71
+ class: "text-fm-color-primary bg-fm-color-system-warning-100",
72
+ compact: !0
73
+ })
74
+ ), m("div", { class: "flex items-center gap-4" }, o);
75
+ }
60
76
  },
61
77
  {
62
78
  header: a("connect.voucher.status"),
63
- accessorFn: (e) => ue(e),
79
+ accessorFn: (e) => fe(e),
64
80
  cell(e) {
65
- return O(e.row.original);
81
+ return M(e.row.original);
66
82
  }
67
83
  },
68
84
  {
69
85
  header: a("connect.voucher.summary"),
70
- accessorFn: (e) => B(e)
86
+ accessorFn: (e) => H(e)
71
87
  },
72
88
  {
73
89
  header: a("connect.voucher.quota"),
@@ -87,19 +103,19 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
87
103
  header: a("connect.voucher.actions"),
88
104
  cell(e) {
89
105
  return m("div", { class: "flex items-center justify-end" }, [
90
- m(f.FmButton, {
106
+ m(p.FmButton, {
91
107
  icon: "visibility",
92
108
  variant: "tertiary",
93
109
  iconColor: "neutral-gray-400",
94
110
  onClick: async (o) => {
95
- o.stopPropagation(), await U.push({
96
- name: H["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
111
+ o.stopPropagation(), await E.push({
112
+ name: $["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
97
113
  params: { id: e.row.original._id }
98
114
  });
99
115
  }
100
116
  }),
101
117
  m(
102
- f.FmMenu,
118
+ p.FmMenu,
103
119
  {
104
120
  placement: "bottom-end",
105
121
  onClick: (o) => {
@@ -107,7 +123,7 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
107
123
  }
108
124
  },
109
125
  {
110
- "menu-button": () => m(f.FmButton, {
126
+ "menu-button": () => m(p.FmButton, {
111
127
  icon: "more_vert",
112
128
  iconColor: "neutral-gray-400",
113
129
  variant: "tertiary"
@@ -115,10 +131,10 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
115
131
  default: () => {
116
132
  const o = [
117
133
  m(
118
- f.FmMenuItem,
134
+ p.FmMenuItem,
119
135
  {
120
136
  onClick: async (r) => {
121
- r.stopPropagation(), I(e.row.original);
137
+ r.stopPropagation(), A(e.row.original);
122
138
  }
123
139
  },
124
140
  {
@@ -132,28 +148,22 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
132
148
  }
133
149
  )
134
150
  ];
135
- return e.row.original.event.type === "SIMPLE_CLAIM" && (o.unshift(
136
- m(f.FmMenuItem, {
151
+ return x(e.row.original) && (o.unshift(
152
+ m(p.FmMenuItem, {
137
153
  label: a("connect.voucher.send"),
138
154
  onClick: async (r) => {
139
155
  var s;
140
- r.stopPropagation(), (s = b.value) == null || s.showSheet({
156
+ r.stopPropagation(), (s = k.value) == null || s.showSheet({
141
157
  campaignId: e.row.original._id
142
158
  });
143
159
  }
144
160
  })
145
161
  ), o.unshift(
146
- m(f.FmMenuItem, {
162
+ m(p.FmMenuItem, {
147
163
  label: a("connect.voucher.share"),
148
164
  onClick: async (r) => {
149
- if (r.stopPropagation(), e.row.original.event.type !== "SIMPLE_CLAIM")
150
- return await A.confirm(
151
- "Cannot share a voucher that is not a simple claim.",
152
- "Share Voucher",
153
- "OK"
154
- );
155
- await ce(
156
- `https://${ie().currentBusiness.value._id}.${_e.appUrl}/vouchers/${e.row.original._id}`,
165
+ r.stopPropagation(), await se(
166
+ `https://${me().currentBusiness.value._id}.${be.appUrl}/vouchers/${e.row.original._id}`,
157
167
  {
158
168
  successMessage: "Voucher link copied to clipboard"
159
169
  }
@@ -167,11 +177,11 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
167
177
  ]);
168
178
  }
169
179
  }
170
- ], P = x(), b = x();
171
- async function I(e) {
172
- await A.remove(a("connect.voucher.confirmRemove", { name: e.name })) && await T(
180
+ ], I = V(), k = V();
181
+ async function A(e) {
182
+ await le.remove(a("connect.voucher.confirmRemove", { name: e.name })) && await P(
173
183
  async () => {
174
- await w.delete(e._id), await p.read("VOUCHER");
184
+ await b.delete(e._id), await f.read("VOUCHER");
175
185
  },
176
186
  {
177
187
  message: a("connect.voucher.removing", { name: e.name }),
@@ -181,21 +191,21 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
181
191
  }
182
192
  );
183
193
  }
184
- async function v(e) {
185
- e ? await o() : K.open(async (r) => {
194
+ async function _(e) {
195
+ e ? await o() : N.open(async (r) => {
186
196
  await o(r);
187
197
  });
188
198
  async function o(r) {
189
199
  var s;
190
- (s = P.value) == null || s.showSheet(
200
+ (s = I.value) == null || s.showSheet(
191
201
  !0,
192
202
  "VOUCHER",
193
- e ? await w.readById(e._id) : void 0,
203
+ e ? await b.readById(e._id) : void 0,
194
204
  r
195
205
  );
196
206
  }
197
207
  }
198
- async function W(e) {
208
+ async function z(e) {
199
209
  e.campaign._id && await new Promise((o) => {
200
210
  L.open({
201
211
  title: "Confirmation",
@@ -208,9 +218,9 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
208
218
  }).onSecondary(async () => {
209
219
  o();
210
220
  });
211
- }), await T(
221
+ }), await P(
212
222
  async () => {
213
- e.campaign._id ? await w.update(e.campaign._id, e) : await w.create(e), await p.read("VOUCHER");
223
+ e.campaign._id ? await b.update(e.campaign._id, e) : await b.create(e), await f.read("VOUCHER");
214
224
  },
215
225
  {
216
226
  message: a(
@@ -222,117 +232,123 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
222
232
  }
223
233
  );
224
234
  }
225
- return oe(async () => {
226
- await D(async () => {
227
- await p.read("VOUCHER");
235
+ return ne(async () => {
236
+ await j(async () => {
237
+ await f.read("VOUCHER");
228
238
  });
229
239
  }), (e, o) => {
230
- const r = d("FmPageHead"), s = d("FmSearch"), z = d("FmTable"), C = d("FmButton"), Q = d("FmListItem"), Z = d("FmList"), J = d("FmCard");
231
- return u(), V(S, null, [
240
+ const r = d("FmPageHead"), s = d("FmSearch"), Q = d("FmTable"), Z = d("FmChip"), C = d("FmButton"), J = d("FmListItem"), Y = d("FmList"), ee = d("FmCard");
241
+ return u(), S(U, null, [
232
242
  l(r, {
233
243
  title: t(a)("connect.voucher.title"),
234
- actions: t(_).length > 0 ? [$] : [],
235
- "onClick:action": o[0] || (o[0] = () => v())
244
+ actions: t(v).length > 0 ? [K] : [],
245
+ "onClick:action": o[0] || (o[0] = () => _())
236
246
  }, null, 8, ["title", "actions"]),
237
- c("div", ve, [
247
+ c("div", we, [
238
248
  l(s, {
239
249
  modelValue: t(i).searchKey,
240
250
  "onUpdate:modelValue": o[1] || (o[1] = (n) => t(i).searchKey = n),
241
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
251
+ class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
242
252
  placeholder: t(a)("connect.voucher.search"),
243
253
  collapsible: ""
244
254
  }, null, 8, ["modelValue", "placeholder"]),
245
- t(p).campaigns.voucher && t(p).campaigns.voucher.length > 0 ? (u(), V(S, { key: 0 }, [
246
- c("div", Ce, [
247
- c("div", we, [
248
- l(M, {
255
+ t(f).campaigns.voucher && t(f).campaigns.voucher.length > 0 ? (u(), S(U, { key: 0 }, [
256
+ c("div", xe, [
257
+ c("div", ke, [
258
+ l(O, {
249
259
  label: `${t(a)("connect.common.location")}: `,
250
260
  "right-icon": "keyboard_arrow_down",
251
261
  modelValue: t(i).location,
252
262
  "onUpdate:modelValue": o[2] || (o[2] = (n) => t(i).location = n),
253
263
  icon: "storefront",
254
264
  "show-item-label": !0,
255
- items: t(N).locationOptions
265
+ items: t(D).locationOptions
256
266
  }, null, 8, ["label", "modelValue", "items"]),
257
- l(M, {
267
+ l(O, {
258
268
  label: "Type:",
259
269
  "right-icon": "keyboard_arrow_down",
260
270
  modelValue: t(i).triggerType,
261
271
  "onUpdate:modelValue": o[3] || (o[3] = (n) => t(i).triggerType = n),
262
272
  icon: "filter_list",
263
273
  "show-item-label": !0,
264
- items: t(j)
274
+ items: t(q)
265
275
  }, null, 8, ["modelValue", "items"])
266
276
  ]),
267
277
  l(s, {
268
278
  modelValue: t(i).searchKey,
269
279
  "onUpdate:modelValue": o[4] || (o[4] = (n) => t(i).searchKey = n),
270
- class: "xs:hidden",
280
+ class: "xs:hidden sm:hidden",
271
281
  placeholder: t(a)("connect.voucher.search"),
272
282
  collapsible: ""
273
283
  }, null, 8, ["modelValue", "placeholder"])
274
284
  ]),
275
- l(z, {
276
- class: "xs:hidden",
277
- "row-data": t(_),
278
- "column-defs": X,
285
+ l(Q, {
286
+ class: "xs:hidden sm:hidden",
287
+ "row-data": t(v),
288
+ "column-defs": W,
279
289
  "search-value": t(i).searchKey,
280
290
  "column-filter": [],
281
- onRowClick: o[5] || (o[5] = (n) => v(n.original)),
282
- "hide-footer": t(_).length < 10
291
+ onRowClick: o[5] || (o[5] = (n) => _(n.original)),
292
+ "hide-footer": t(v).length < 10
283
293
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
284
- l(Z, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
285
- default: F(() => [
286
- (u(!0), V(S, null, te(t(_).filter(
294
+ l(Y, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
295
+ default: T(() => [
296
+ (u(!0), S(U, null, ae(t(v).filter(
287
297
  (n) => n.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
288
- ), (n) => (u(), h(Q, {
298
+ ), (n) => (u(), h(J, {
289
299
  key: n._id.toString(),
290
- onClick: (k) => v(n),
300
+ onClick: (F) => _(n),
291
301
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
292
302
  }, {
293
- default: F(() => {
294
- var k;
303
+ default: T(() => {
304
+ var F;
295
305
  return [
296
- c("div", be, [
297
- c("div", ke, [
298
- (u(), h(ne(t(O)(n)))),
299
- c("div", xe, g(((k = n.pf_collectible) == null ? void 0 : k.currentReceive) ?? 0) + " claimed ", 1)
300
- ]),
306
+ c("div", Fe, [
301
307
  c("div", Ve, [
302
- c("div", Se, g(n.name), 1),
303
- c("div", Fe, g(t(B)(n)), 1)
308
+ (u(), h(re(t(M)(n)))),
309
+ w(n) ? (u(), h(Z, {
310
+ key: 0,
311
+ label: "Feedvibe",
312
+ class: "text-fm-color-primary bg-fm-color-system-warning-100",
313
+ compact: ""
314
+ })) : R("", !0),
315
+ c("div", Se, g(((F = n.pf_collectible) == null ? void 0 : F.currentReceive) ?? 0) + " claimed ", 1)
316
+ ]),
317
+ c("div", Ue, [
318
+ c("div", Te, g(n.name), 1),
319
+ c("div", Re, g(t(H)(n)), 1)
304
320
  ])
305
321
  ]),
306
322
  c("div", Le, [
307
- n.event.type === "SIMPLE_CLAIM" ? (u(), h(C, {
323
+ x(n) ? (u(), h(C, {
308
324
  key: 0,
309
325
  icon: "visibility",
310
326
  "icon-color": "neutral-gray-400",
311
327
  variant: "tertiary",
312
328
  onClick: async (y) => {
313
- y.stopPropagation(), await t(U).push({
314
- name: t(H)["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
329
+ y.stopPropagation(), await t(E).push({
330
+ name: t($)["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
315
331
  params: { id: n._id }
316
332
  });
317
333
  }
318
- }, null, 8, ["onClick"])) : E("", !0),
319
- n.event.type === "SIMPLE_CLAIM" ? (u(), h(C, {
334
+ }, null, 8, ["onClick"])) : R("", !0),
335
+ x(n) ? (u(), h(C, {
320
336
  key: 1,
321
337
  icon: "send",
322
338
  "icon-color": "neutral-gray-400",
323
339
  variant: "tertiary",
324
340
  onClick: (y) => {
325
- var R;
326
- y.stopPropagation(), (R = t(b)) == null || R.showSheet({
341
+ var B;
342
+ y.stopPropagation(), (B = t(k)) == null || B.showSheet({
327
343
  campaignId: n._id
328
344
  });
329
345
  }
330
- }, null, 8, ["onClick"])) : E("", !0),
346
+ }, null, 8, ["onClick"])) : R("", !0),
331
347
  l(C, {
332
348
  icon: "delete",
333
349
  "icon-color": "neutral-gray-400",
334
350
  variant: "tertiary",
335
- onClick: (y) => (y.stopPropagation(), I(n))
351
+ onClick: (y) => (y.stopPropagation(), A(n))
336
352
  }, null, 8, ["onClick"])
337
353
  ])
338
354
  ];
@@ -342,37 +358,37 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
342
358
  ]),
343
359
  _: 1
344
360
  })
345
- ], 64)) : (u(), h(J, {
361
+ ], 64)) : (u(), h(ee, {
346
362
  key: 1,
347
363
  variant: "outlined",
348
364
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
349
365
  }, {
350
- default: F(() => [
366
+ default: T(() => [
351
367
  o[7] || (o[7] = c("img", {
352
- src: ae,
368
+ src: ce,
353
369
  class: "aspect-square w-[150px]"
354
370
  }, null, -1)),
355
- c("div", Te, [
356
- c("div", Ue, g(t(a)("connect.voucher.createVoucherCampaign")), 1),
357
- c("div", Pe, g(t(a)("connect.voucher.description")), 1)
371
+ c("div", Pe, [
372
+ c("div", Ee, g(t(a)("connect.voucher.createVoucherCampaign")), 1),
373
+ c("div", Ie, g(t(a)("connect.voucher.description")), 1)
358
374
  ]),
359
375
  l(C, {
360
376
  variant: "primary",
361
377
  label: t(a)("connect.voucher.createVoucherCampaign"),
362
378
  icon: "add",
363
- onClick: o[6] || (o[6] = (n) => v())
379
+ onClick: o[6] || (o[6] = (n) => _())
364
380
  }, null, 8, ["label"])
365
381
  ]),
366
382
  _: 1
367
383
  })),
368
- l(pe, {
384
+ l(ye, {
369
385
  ref_key: "sheetRef",
370
- ref: P,
371
- "onSubmit:modelValue": W
386
+ ref: I,
387
+ "onSubmit:modelValue": z
372
388
  }, null, 512),
373
- l(fe, {
389
+ l(ge, {
374
390
  ref_key: "sendVoucherSheetRef",
375
- ref: b
391
+ ref: k
376
392
  }, null, 512)
377
393
  ])
378
394
  ], 64);
@@ -380,5 +396,5 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
380
396
  }
381
397
  });
382
398
  export {
383
- Je as default
399
+ oo as default
384
400
  };