@feedmepos/mf-connect 0.1.127-prod → 0.1.128-dev
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.
- package/dist/{App-BMF6m0GU.js → App-CPSC0ccq.js} +224 -216
- package/dist/AuditLogs-CgrYStwa.js +2016 -0
- package/dist/{Bin-Dkn-CjZE.js → Bin-Cn7sCPql.js} +8 -8
- package/dist/{Broadcast-DqaP4ON2.js → Broadcast-bR7HAyV2.js} +22 -21
- package/dist/{CampaignAnalytic-2Iuxh8-x.js → CampaignAnalytic-Dnpw_Jwo.js} +97 -97
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C8MlNehK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-HaWMLA4s.js} +9 -10
- package/dist/{Card-Cv9eldq8.js → Card-BE3Y0KHF.js} +23 -23
- package/dist/{Collections-CK-hxHpa.js → Collections-CLSp9Uah.js} +197 -185
- package/dist/{Credit-CDE4ACVm.js → Credit-DgMyKROt.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CTvIDOWy.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D8eCQE4D.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js +4584 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CuPhm1uG.js → EffectSheet.vue_vue_type_style_index_0_lang-CXw7yS8N.js} +33 -33
- package/dist/{Experience-lLK_RR69.js → Experience-CCeRbvIe.js} +32 -31
- package/dist/{FileSaver.min-zDxJKfBO.js → FileSaver.min-D8Rw2VVN.js} +1 -1
- package/dist/{Game-DCdfJkil.js → Game-CYGg8vWQ.js} +19 -18
- package/dist/{GiftCardSetup-DfF1OpFk.js → GiftCardSetup-rzea90xr.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Dbx9bwJM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BFUBfL-S.js} +140 -128
- package/dist/{Goals-t0wbcWxG.js → Goals-BnZfK7a3.js} +4 -4
- package/dist/Grab-BRbn6ffm.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Bur6iCYa.js → ImageInput.vue_vue_type_script_setup_true_lang-Cw2imjlQ.js} +1 -1
- package/dist/{Index-BUF8U-h8.js → Index-DjZi_lVg.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-kIOc-Px5.js → LocationPicker.vue_vue_type_script_setup_true_lang-B1q4NtuM.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DRmLpXsg.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CUjzbMcb.js} +1 -1
- package/dist/{LoyaltyDashboard-8laUXBGQ.js → LoyaltyDashboard-C3TZSSQz.js} +82 -82
- package/dist/{MainLayout-BeuKKVNP.js → MainLayout-uNGpBpJi.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-C7E3h_Zr.js → MainLayout.vue_vue_type_script_setup_true_lang-0PcswtGl.js} +3 -3
- package/dist/{Marketing-DZG0oIs-.js → Marketing-SXmxcw3-.js} +4 -4
- package/dist/{MarketingMaterialEdit--RDayaUN.js → MarketingMaterialEdit-DK0tjHpF.js} +214 -211
- package/dist/{Member-DeEQr2ef.js → Member-BFSwupq6.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dvcasf5O.js +1322 -0
- package/dist/{MemberImportHistory-DMXVl1qI.js → MemberImportHistory-z12l_IAQ.js} +7 -7
- package/dist/{MemberList-zqeFDkEZ.js → MemberList-DfN7ur0J.js} +103 -105
- package/dist/{MemberTransactions-BBQPNfFG.js → MemberTransactions-Bntt4bRR.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C_8yL5GL.js → MessageInput.vue_vue_type_script_setup_true_lang-ComtYItw.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-9r-eGARm.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_Imnj16x.js} +1 -1
- package/dist/{Mission-TO8w3ucB.js → Mission-CvpeYVjB.js} +22 -21
- package/dist/{Overview-CPUpEzPd.js → Overview-BkaFC5La.js} +21 -21
- package/dist/{Overview-D6YBYVxK.js → Overview-BtTkltlY.js} +145 -144
- package/dist/{Point-BSq4CRcb.js → Point-CpNAFABM.js} +22 -21
- package/dist/{Promotion-DgPNNfk7.js → Promotion-B_vD_9UF.js} +137 -131
- package/dist/{Queue-CYyabVYT.js → Queue-D5jDhI0f.js} +46 -46
- package/dist/{Record-n7s29IZH.js → Record-EsNXzy4D.js} +9 -9
- package/dist/{Review-DIYulCVl.js → Review-ByMrkymf.js} +2 -2
- package/dist/ReviewFacebookCallback-BDl6NBkw.js +225 -0
- package/dist/{ReviewGoogleCallback-CnESXIH-.js → ReviewGoogleCallback-BzU-hUy5.js} +5 -5
- package/dist/{Reward-D_L2DgT9.js → Reward-kxAuVGDE.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dsk2VqB8.js → RewardGroup.vue_vue_type_script_setup_true_lang-i9B1R3XP.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js +1923 -0
- package/dist/{Segment-BbGE6AOZ.js → Segment-C5SJs7al.js} +304 -307
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-xrdOyWX8.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RIerABcb.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CTsORsDg.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8jS4gee.js} +4 -4
- package/dist/{Setting-B9i2ufr7.js → Setting-zmlu3QcR.js} +17 -17
- package/dist/{SettingAdvertisements-Cuczz1wK.js → SettingAdvertisements-DewXGZoE.js} +12 -12
- package/dist/Settings-5HU_uY6B.js +286 -0
- package/dist/{Store-CoxREXJ-.js → Store-CiTwDcgr.js} +29 -29
- package/dist/{StoreRewards-CzkznvA1.js → StoreRewards-DaOJxsVm.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BtwDM2Fr.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BTqxeKR4.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DlFCI1BT.js +7007 -0
- package/dist/{Tier-DyOlzjE0.js → Tier-lNI7GWMP.js} +2583 -688
- package/dist/{Title-C3__B-bw.js → Title-CDxDztnl.js} +96 -95
- package/dist/{Transaction-B_v-lbed.js → Transaction-CcsUvIns.js} +2 -2
- package/dist/{Upselling-D_5nBzIN.js → Upselling-BDirPkWX.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CE5eo992.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-hqzfBpop.js} +26 -26
- package/dist/{Voucher-KxXwge4O.js → Voucher-CJDo5U_P.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-nbLXmJ5Q.js → VoucherEditor.vue_vue_type_script_setup_true_lang-WjsLHh_E.js} +12 -12
- package/dist/{WhatsappAccount-C8kinTmg.js → WhatsappAccount-CQBti7RJ.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-ydBfMtzM.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DVNZ774z.js} +1 -1
- package/dist/WhatsappBot-91lIlikm.js +882 -0
- package/dist/{WhatsappBotLogs-Dm0HJh_f.js → WhatsappBotLogs-PQTwT8e5.js} +66 -66
- package/dist/{WhatsappBotSettings-BNZcj26j.js → WhatsappBotSettings-CUES9UL-.js} +5 -5
- package/dist/{WhatsappLayout-BvBN7H-y.js → WhatsappLayout-pZGYJj0J.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BzKwTs9R.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DAoonwsO.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BY8t6jtW.js → ZodTextField.vue_vue_type_script_setup_true_lang-HEIeZYCP.js} +2 -2
- package/dist/{app-uud8OgB9.js → app--pRyBODF.js} +4159 -3395
- package/dist/app.js +4 -3
- package/dist/{base.export-Bfxt84QY.js → base.export-CSdCmt-6.js} +2 -2
- package/dist/business-BtEfH8Mt.js +83 -0
- package/dist/{campaign-CWyU-r8u.js → campaign-CwQjWU63.js} +121 -94
- package/dist/{campaign-6WrFDF05.js → campaign-t9ubUkjB.js} +31 -25
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Damu7hgo.js} +3 -2
- package/dist/campaign.fn-D3_OzyyQ.js +776 -0
- package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-C8LbgIQ7.js} +1 -1
- package/dist/{collection.fn-CO-YhhUM.js → collection.fn-BV7pDqa5.js} +2 -2
- package/dist/{currency-kWhKZnhN.js → currency-pS0xeJA6.js} +1 -1
- package/dist/duplicateCampaign-19CDT2kM.js +51 -0
- package/dist/{effect-CjSyUbur.js → effect-B532leFF.js} +1 -1
- package/dist/{email-addresses-C_yrJd12.js → email-addresses-CKkT_5O5.js} +2 -2
- package/dist/{feature-flag-DcM82jeJ.js → feature-flag-25oDCLLB.js} +84 -84
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-G8MwkrFo.js → helper-DxOj04aq.js} +1 -1
- package/dist/{index-3axft-Vz.js → index-B3sR1LMa.js} +10 -10
- package/dist/{index-ivVytFih.js → index-BCgTcZ7c.js} +609 -252
- package/dist/{index-BXSokNlS.js → index-BFJ2FmB4.js} +18 -18
- package/dist/{index-CiFPNxgn.js → index-BHnMLtU2.js} +381 -235
- package/dist/{index-6Ey495tl.js → index-BLRv_4gJ.js} +1 -1
- package/dist/index-BViMt33t.js +10767 -0
- package/dist/{index-Dv5Ja20d.js → index-BX6lcJDB.js} +1 -1
- package/dist/{index-CVVLKJj_.js → index-C6pr4oIv.js} +1315 -1243
- package/dist/{index-Dkud56R0.js → index-C7wVaeC1.js} +1 -1
- package/dist/{index-DgT4P2_R.js → index-CBYY3VEG.js} +2700 -2614
- package/dist/{index-sPf1Rhez.js → index-C_qmnOKQ.js} +9 -9
- package/dist/{index-CqvjZF-j.js → index-ClD2-18P.js} +19 -6
- package/dist/{index-h2p2DjKy.js → index-DBT1f1M3.js} +2 -2
- package/dist/{index-BNjHmUyd.js → index-DBzCfWxW.js} +2 -2
- package/dist/{index-Cj85mCmr.js → index-DEENB4la.js} +664 -664
- package/dist/{index-B3LCTMwV.js → index-DSAEs8u0.js} +68 -60
- package/dist/{index-L_2hhvso.js → index-DVlo0TO9.js} +23 -23
- package/dist/index-DiYuhtNS.js +19528 -0
- package/dist/{index-Ba4Q_XWF.js → index-Diw9710S.js} +4 -4
- package/dist/{index-CxyO5j1a.js → index-DqQ1q8sX.js} +26 -19
- package/dist/{index-RtamQHhy.js → index-ip2EqUEW.js} +1 -1
- package/dist/{index-DGrPvdRc.js → index-uCkkfjE3.js} +4 -4
- package/dist/{index.esm2017-DiUbRDfz.js → index.esm2017-DRrIFPLo.js} +57 -57
- package/dist/{loading-BdpH3z-q.js → loading--SZI7Tpo.js} +1 -1
- package/dist/{lodash-DcC4G06s.js → lodash-BZqvXM_P.js} +1 -1
- package/dist/{member-import-C99OxU-w.js → member-import-Bmt1OdRW.js} +2 -2
- package/dist/{membership-O5EN0QMl.js → membership-BTFpH7Mg.js} +3 -3
- package/dist/{money-CYS7zoiT.js → money-BVtlYyxo.js} +1 -1
- package/dist/{number-D_C66osx.js → number-DrOdGSrF.js} +1 -1
- package/dist/objectid-DdJFC6TI.js +145 -0
- package/dist/{onboarding-DGx34lkW.js → onboarding-BjcSBC8v.js} +25 -25
- package/dist/{onboardingSetup-ALOoxDHE.js → onboardingSetup-Dcv8i8qd.js} +2 -2
- package/dist/{plugins-CVh8eTG-.js → plugins-Iw52rJ1s.js} +3 -3
- package/dist/{reward-8sP3d8ie.js → reward-DF9tE7iA.js} +1 -1
- package/dist/{rule-BGMBiCRZ.js → rule-rCPhlgAq.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-v1F1rvUU.js +227 -0
- package/dist/timezone-BxJDy-bY.js +19 -0
- package/dist/{transaction.fn-Dmla3R1q.js → transaction.fn-Cp3ylqFD.js} +2 -2
- package/dist/{trigger-CArDddXr.js → trigger-O6JvCms4.js} +9 -9
- package/dist/{useMarketingMaterialActions-BX5Ynq8O.js → useMarketingMaterialActions-Cnadk3AO.js} +4 -4
- package/dist/{usePagination-BdgLVPuo.js → usePagination-C5lSxdqt.js} +1 -1
- package/dist/{user-BgTKHjea.js → user-B7iv0TRE.js} +1 -1
- package/dist/vue-i18n-CYFvlTTS.js +2365 -0
- package/dist/{xlsx-WIRNQZAx.js → xlsx-DTJ6bUKL.js} +166 -166
- package/dist/{zod-Dh_CVWJN.js → zod-cIIx_Ng9.js} +1 -1
- package/package.json +7 -3
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DUJKivXA.js +0 -3638
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dmf4WtSt.js +0 -1308
- package/dist/ReviewFacebookCallback-D07x5BnV.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BjyiiTSY.js +0 -1884
- package/dist/Settings-CCSXjpUC.js +0 -179
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-tSfwcDBG.js +0 -142
- package/dist/WhatsappBot-BuD45ou8.js +0 -878
- package/dist/business-77FEeeil.js +0 -82
- package/dist/campaign.fn-Ci_av9lZ.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-BqHB3euS.js +0 -27551
- package/dist/index-C_H8jFYf.js +0 -2743
- package/dist/objectid-Dd0NRad7.js +0 -145
- package/dist/rule-builder-DcPK2oqo.js +0 -102
- package/dist/template-Bku-aSPA.js +0 -275
- package/dist/timezone-DML8BuIK.js +0 -20
- package/dist/vue-i18n-DMEbesBm.js +0 -2365
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
|
|
2
2
|
import { components as p } from "@feedmepos/ui-library";
|
|
3
|
-
import { u as K } from "./loading
|
|
4
|
-
import { u as R } from "./business-
|
|
5
|
-
import { C as A } from "./campaign-
|
|
6
|
-
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as K } from "./loading--SZI7Tpo.js";
|
|
4
|
+
import { u as R } from "./business-BtEfH8Mt.js";
|
|
5
|
+
import { C as A } from "./campaign-CwQjWU63.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js";
|
|
7
7
|
import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
8
|
-
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as D } from "./vue-i18n-
|
|
8
|
+
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8jS4gee.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-CYFvlTTS.js";
|
|
10
10
|
import { h as E } from "./moment-D7p2TMB-.js";
|
|
11
|
-
import { p as I } from "./plugins-
|
|
12
|
-
import { c as g } from "./index-
|
|
11
|
+
import { p as I } from "./plugins-Iw52rJ1s.js";
|
|
12
|
+
import { c as g } from "./index-DBzCfWxW.js";
|
|
13
13
|
const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
|
|
14
14
|
__name: "Bin",
|
|
15
15
|
setup(H) {
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { defineComponent as X, ref as F, computed as Y, h as g, onMounted as Z, resolveComponent as d, openBlock as m, createElementBlock as y, Fragment as k, createVNode as r, unref as a, createElementVNode as n, withCtx as A, renderList as ee, createBlock as C, resolveDynamicComponent as te, toDisplayString as p, createCommentVNode as B } from "vue";
|
|
2
2
|
import { _ as ae } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as oe, components as D } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as ne } from "./plugins-
|
|
5
|
-
import { u as se } from "./loading
|
|
6
|
-
import { u as ce } from "./business-
|
|
7
|
-
import { u as re } from "./campaign-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { u as
|
|
15
|
-
import {
|
|
4
|
+
import { p as ne } from "./plugins-Iw52rJ1s.js";
|
|
5
|
+
import { u as se } from "./loading--SZI7Tpo.js";
|
|
6
|
+
import { u as ce } from "./business-BtEfH8Mt.js";
|
|
7
|
+
import { u as re } from "./campaign-t9ubUkjB.js";
|
|
8
|
+
import { a as ie, b as K, c as P, d as f } from "./campaign-CwQjWU63.js";
|
|
9
|
+
import { c as le, p as me } from "./duplicateCampaign-19CDT2kM.js";
|
|
10
|
+
import { u as de } from "./vue-i18n-CYFvlTTS.js";
|
|
11
|
+
import { _ as pe } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
12
|
+
import { _ as ue } from "./MessageInput.vue_vue_type_script_setup_true_lang-ComtYItw.js";
|
|
13
|
+
import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js";
|
|
14
|
+
import { u as fe } from "./template-v1F1rvUU.js";
|
|
15
|
+
import { u as ye } from "./onboardingSetup-Dcv8i8qd.js";
|
|
16
|
+
import { c as _ } from "./index-DBzCfWxW.js";
|
|
16
17
|
const _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-center justify-between w-full" }, be = { class: "flex gap-8 overflow-x-auto" }, we = { class: "space-y-8" }, Ce = { class: "flex w-full gap-4 items-center" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { 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" }, ke = {
|
|
17
18
|
key: 0,
|
|
18
19
|
class: "flex flex-wrap items-center gap-6"
|
|
19
|
-
}, Ae = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Be = { class: "flex items-center gap-8" }, De = { key: 0 }, Re = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, Le = { class: "flex flex-col gap-16 text-center" }, Oe = { class: "fm-typo-en-title-sm-800" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
20
|
+
}, Ae = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Be = { class: "flex items-center gap-8" }, De = { key: 0 }, Re = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, Le = { class: "flex flex-col gap-16 text-center" }, Oe = { class: "fm-typo-en-title-sm-800" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ X({
|
|
20
21
|
__name: "Broadcast",
|
|
21
22
|
setup(Te) {
|
|
22
|
-
const { t: s } =
|
|
23
|
+
const { t: s } = de(), $ = {
|
|
23
24
|
label: s("connect.campaign.common.createCampaign"),
|
|
24
25
|
value: "create",
|
|
25
26
|
isPrimary: !0,
|
|
26
27
|
prependIcon: "add"
|
|
27
|
-
}, j =
|
|
28
|
+
}, j = fe("BROADCAST", oe()), M = ce(), u = re(), { global: N, minor: R } = se, L = F((/* @__PURE__ */ new Date()).toISOString()), i = F({
|
|
28
29
|
searchKey: "",
|
|
29
30
|
location: []
|
|
30
31
|
});
|
|
@@ -131,10 +132,10 @@ const _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-
|
|
|
131
132
|
}
|
|
132
133
|
async function V(e) {
|
|
133
134
|
var c;
|
|
134
|
-
if (!await
|
|
135
|
+
if (!await le(e.name))
|
|
135
136
|
return;
|
|
136
137
|
L.value = (/* @__PURE__ */ new Date()).toISOString();
|
|
137
|
-
const t = await _.readById(e._id), l =
|
|
138
|
+
const t = await _.readById(e._id), l = me(t);
|
|
138
139
|
(c = b.value) == null || c.showSheet(
|
|
139
140
|
!0,
|
|
140
141
|
"BROADCAST",
|
|
@@ -172,7 +173,7 @@ const _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-
|
|
|
172
173
|
"onClick:action": t[0] || (t[0] = () => w())
|
|
173
174
|
}, null, 8, ["title", "actions"]),
|
|
174
175
|
n("div", _e, [
|
|
175
|
-
r(
|
|
176
|
+
r(ue),
|
|
176
177
|
r(c, {
|
|
177
178
|
modelValue: a(i).searchKey,
|
|
178
179
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => a(i).searchKey = o),
|
|
@@ -183,7 +184,7 @@ const _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-
|
|
|
183
184
|
a(u).campaigns.broadcast && a(u).campaigns.broadcast.length > 0 ? (m(), y(k, { key: 0 }, [
|
|
184
185
|
n("div", he, [
|
|
185
186
|
n("div", be, [
|
|
186
|
-
r(
|
|
187
|
+
r(pe, {
|
|
187
188
|
label: `${a(s)("connect.campaign.common.location")}: `,
|
|
188
189
|
"right-icon": "keyboard_arrow_down",
|
|
189
190
|
modelValue: a(i).location,
|
|
@@ -290,7 +291,7 @@ const _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-
|
|
|
290
291
|
]),
|
|
291
292
|
_: 1
|
|
292
293
|
})),
|
|
293
|
-
r(
|
|
294
|
+
r(ge, {
|
|
294
295
|
ref_key: "sheetRef",
|
|
295
296
|
ref: b,
|
|
296
297
|
"onSubmit:modelValue": H
|
|
@@ -301,5 +302,5 @@ const _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-
|
|
|
301
302
|
}
|
|
302
303
|
});
|
|
303
304
|
export {
|
|
304
|
-
|
|
305
|
+
Xe as default
|
|
305
306
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as z, computed as
|
|
2
|
-
import { u as he } from "./vue-i18n-
|
|
1
|
+
import { defineComponent as z, computed as O, resolveComponent as S, openBlock as r, createBlock as x, withCtx as D, createElementBlock as d, createCommentVNode as v, createElementVNode as s, toDisplayString as u, normalizeClass as Y, unref as o, Fragment as L, normalizeStyle as ye, createTextVNode as xe, renderList as ee, createVNode as $, ref as Q, onMounted as ke } from "vue";
|
|
2
|
+
import { u as he } from "./vue-i18n-CYFvlTTS.js";
|
|
3
3
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
4
|
-
import { c as U } from "./index-
|
|
5
|
-
import { u as Re } from "./loading
|
|
6
|
-
import { s as Me,
|
|
7
|
-
import {
|
|
4
|
+
import { c as U } from "./index-DBzCfWxW.js";
|
|
5
|
+
import { u as Re } from "./loading--SZI7Tpo.js";
|
|
6
|
+
import { s as Me, a as _e } from "./campaign-CwQjWU63.js";
|
|
7
|
+
import { F as be } from "./timezone-BxJDy-bY.js";
|
|
8
8
|
import { h as Se } from "./moment-D7p2TMB-.js";
|
|
9
9
|
import { s as Ce } from "./index-CuvNtC_M.js";
|
|
10
|
-
import { T as Ie } from "./transaction.fn-
|
|
11
|
-
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { useRoute as $e, useRouter as
|
|
13
|
-
const
|
|
10
|
+
import { T as Ie } from "./transaction.fn-Cp3ylqFD.js";
|
|
11
|
+
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_Imnj16x.js";
|
|
12
|
+
import { useRoute as $e, useRouter as Oe } from "vue-router";
|
|
13
|
+
const Pe = {
|
|
14
14
|
state: "populated",
|
|
15
15
|
reportRangeLabel: "Unavailable",
|
|
16
16
|
funnel: [],
|
|
@@ -94,7 +94,7 @@ const Oe = {
|
|
|
94
94
|
label: "Voucher",
|
|
95
95
|
icon: "confirmation_number",
|
|
96
96
|
objective: "Reactivation",
|
|
97
|
-
report:
|
|
97
|
+
report: Pe
|
|
98
98
|
},
|
|
99
99
|
PROMOTION: {
|
|
100
100
|
label: "Promotion",
|
|
@@ -157,7 +157,7 @@ function N(t) {
|
|
|
157
157
|
const l = Se(t);
|
|
158
158
|
return l.isValid() ? l.format("D MMM YYYY") : t;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Fe(t, l, e) {
|
|
161
161
|
var h;
|
|
162
162
|
const { metrics: a, scope: i } = l, b = a.rewardValueBasis === "FACE_VALUE", p = b ? "Redeemed Face Value" : "Reward Value Used", g = l.redemptionBreakdown ?? {
|
|
163
163
|
member: {
|
|
@@ -306,7 +306,7 @@ function Ae(t, l, e) {
|
|
|
306
306
|
sub: "issued, not yet redeemed"
|
|
307
307
|
}
|
|
308
308
|
],
|
|
309
|
-
trend:
|
|
309
|
+
trend: Ke(e),
|
|
310
310
|
breakdown: {
|
|
311
311
|
dimension: "Outlet",
|
|
312
312
|
columns: [
|
|
@@ -316,16 +316,16 @@ function Ae(t, l, e) {
|
|
|
316
316
|
"Exact sales",
|
|
317
317
|
b ? "Redeemed face value" : "Reward value used"
|
|
318
318
|
],
|
|
319
|
-
rows: l.performanceDetails.map((
|
|
319
|
+
rows: l.performanceDetails.map((F) => {
|
|
320
320
|
var ae;
|
|
321
321
|
return {
|
|
322
|
-
name:
|
|
322
|
+
name: F.restaurantName,
|
|
323
323
|
cells: [
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
((ae =
|
|
327
|
-
R(
|
|
328
|
-
R(
|
|
324
|
+
F.redeemedMembers.toLocaleString(),
|
|
325
|
+
F.voucherUses.toLocaleString(),
|
|
326
|
+
((ae = F.completedBills) == null ? void 0 : ae.toLocaleString()) ?? "—",
|
|
327
|
+
R(F.exactSales),
|
|
328
|
+
R(F.rewardValueUsed)
|
|
329
329
|
]
|
|
330
330
|
};
|
|
331
331
|
})
|
|
@@ -386,7 +386,7 @@ function Ae(t, l, e) {
|
|
|
386
386
|
]
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Ae(t, l) {
|
|
390
390
|
const { metrics: e, scope: a } = l, i = B(
|
|
391
391
|
e.memberBills,
|
|
392
392
|
e.attributedBills
|
|
@@ -771,14 +771,14 @@ function je(t, l) {
|
|
|
771
771
|
};
|
|
772
772
|
}
|
|
773
773
|
const ze = "Members can appear under more than one source, so total share may add to more than 100%.";
|
|
774
|
-
function
|
|
774
|
+
function J(t, l) {
|
|
775
775
|
return l ? R(t ?? 0) : m(t);
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function W(t, l) {
|
|
778
778
|
return t[l] ?? 0;
|
|
779
779
|
}
|
|
780
780
|
function re(t, l, e) {
|
|
781
|
-
const { metrics: a, scope: i } = l, b = a.recipients ?
|
|
781
|
+
const { metrics: a, scope: i } = l, b = a.recipients ? W(a, e.quantityKey) / a.recipients : 0, p = a.issuanceTransactions ? W(a, e.quantityKey) / a.issuanceTransactions : 0, g = [
|
|
782
782
|
"Recipients",
|
|
783
783
|
...e.includeSourceRecipientShare ? ["Recipient share"] : [],
|
|
784
784
|
"Issuance transactions",
|
|
@@ -789,8 +789,8 @@ function re(t, l, e) {
|
|
|
789
789
|
m(c.recipients),
|
|
790
790
|
...e.includeSourceRecipientShare ? [`${B(c.recipients, a.recipients)}%`] : [],
|
|
791
791
|
m(c.issuanceTransactions),
|
|
792
|
-
|
|
793
|
-
|
|
792
|
+
J(
|
|
793
|
+
W(c, e.quantityKey),
|
|
794
794
|
e.currency
|
|
795
795
|
)
|
|
796
796
|
]
|
|
@@ -798,13 +798,13 @@ function re(t, l, e) {
|
|
|
798
798
|
{
|
|
799
799
|
key: "averagePerRecipient",
|
|
800
800
|
label: `Average ${e.quantityName} per Recipient`,
|
|
801
|
-
value:
|
|
801
|
+
value: J(b, e.currency),
|
|
802
802
|
helper: `${e.quantityLabel} ÷ recipients`
|
|
803
803
|
},
|
|
804
804
|
{
|
|
805
805
|
key: "averagePerIssue",
|
|
806
806
|
label: `Average ${e.quantityName} per Issue`,
|
|
807
|
-
value:
|
|
807
|
+
value: J(p, e.currency),
|
|
808
808
|
helper: `${e.quantityLabel} ÷ issuance transactions`
|
|
809
809
|
}
|
|
810
810
|
];
|
|
@@ -831,8 +831,8 @@ function re(t, l, e) {
|
|
|
831
831
|
{
|
|
832
832
|
key: e.quantityKey,
|
|
833
833
|
label: e.quantityLabel.replace(/^./, (c) => c.toUpperCase()),
|
|
834
|
-
value:
|
|
835
|
-
|
|
834
|
+
value: J(
|
|
835
|
+
W(a, e.quantityKey),
|
|
836
836
|
e.currency
|
|
837
837
|
),
|
|
838
838
|
sub: e.quantityUnit,
|
|
@@ -867,8 +867,8 @@ function re(t, l, e) {
|
|
|
867
867
|
cells: [
|
|
868
868
|
m(c.recipients),
|
|
869
869
|
m(c.issuanceTransactions),
|
|
870
|
-
|
|
871
|
-
|
|
870
|
+
J(
|
|
871
|
+
W(c, e.quantityKey),
|
|
872
872
|
e.currency
|
|
873
873
|
)
|
|
874
874
|
]
|
|
@@ -902,7 +902,7 @@ function He(t, l) {
|
|
|
902
902
|
includeSourceRecipientShare: !0
|
|
903
903
|
});
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Ye(t, l) {
|
|
906
906
|
return re(t, l, {
|
|
907
907
|
label: "Credit",
|
|
908
908
|
quantityName: "Credit",
|
|
@@ -913,7 +913,7 @@ function Ke(t, l) {
|
|
|
913
913
|
includeSourceRecipientShare: !1
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function Ke(t) {
|
|
917
917
|
if (!(t != null && t.categories.length)) return [];
|
|
918
918
|
const l = t.rewardValueBasis === "FACE_VALUE" ? "Redeemed face value" : "Reward value used", e = {
|
|
919
919
|
key: "members",
|
|
@@ -955,7 +955,7 @@ function Qe(t) {
|
|
|
955
955
|
const Xe = {
|
|
956
956
|
key: 0,
|
|
957
957
|
class: "flex items-center gap-8 mb-8"
|
|
958
|
-
},
|
|
958
|
+
}, Ze = { class: "fm-typo-en-body-sm-600 text-fm-color-primary uppercase" }, Je = { class: "flex items-center gap-12 mb-12 flex-wrap" }, We = { class: "fm-typo-en-title-lg-800 text-fm-color-typo-primary m-0" }, et = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-wrap gap-x-16 gap-y-4" }, tt = {
|
|
959
959
|
key: 1,
|
|
960
960
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary mt-4"
|
|
961
961
|
}, at = /* @__PURE__ */ z({
|
|
@@ -972,7 +972,7 @@ const Xe = {
|
|
|
972
972
|
demo: { type: Boolean }
|
|
973
973
|
},
|
|
974
974
|
setup(t) {
|
|
975
|
-
const l = t, { t: e } = he(), a =
|
|
975
|
+
const l = t, { t: e } = he(), a = O(() => l.status ? {
|
|
976
976
|
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
977
977
|
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
978
978
|
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
@@ -992,13 +992,13 @@ const Xe = {
|
|
|
992
992
|
size: "sm",
|
|
993
993
|
class: "!text-fm-color-primary"
|
|
994
994
|
}, null, 8, ["name"])) : v("", !0),
|
|
995
|
-
s("span",
|
|
995
|
+
s("span", Ze, u(t.objective ? `${t.mechanicLabel} · ${t.objective}` : t.mechanicLabel), 1)
|
|
996
996
|
])) : v("", !0),
|
|
997
|
-
s("div",
|
|
998
|
-
s("h1",
|
|
997
|
+
s("div", Je, [
|
|
998
|
+
s("h1", We, u(t.campaignName), 1),
|
|
999
999
|
t.status ? (r(), x(g, {
|
|
1000
1000
|
key: 0,
|
|
1001
|
-
class:
|
|
1001
|
+
class: Y(o(a)),
|
|
1002
1002
|
label: o(e)(`connect.campaign.common.status.${t.status}`),
|
|
1003
1003
|
compact: ""
|
|
1004
1004
|
}, null, 8, ["class", "label"])) : v("", !0),
|
|
@@ -1105,7 +1105,7 @@ const Xe = {
|
|
|
1105
1105
|
}, St = { class: "flex xs:flex-col items-stretch" }, Ct = {
|
|
1106
1106
|
key: 0,
|
|
1107
1107
|
class: "flex-1 min-w-0 xs:hidden"
|
|
1108
|
-
}, It = { class: "flex-1 min-w-0 px-16 xs:px-4 xs:py-12" }, $t = { class: "flex items-center gap-4" },
|
|
1108
|
+
}, It = { class: "flex-1 min-w-0 px-16 xs:px-4 xs:py-12" }, $t = { class: "flex items-center gap-4" }, Ot = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-tertiary" }, Pt = {
|
|
1109
1109
|
key: 0,
|
|
1110
1110
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-disabled italic mt-8"
|
|
1111
1111
|
}, Dt = { class: "fm-typo-en-title-sm-800 text-fm-color-typo-primary mt-8" }, Lt = {
|
|
@@ -1134,7 +1134,7 @@ const Xe = {
|
|
|
1134
1134
|
secondaryStages: {}
|
|
1135
1135
|
},
|
|
1136
1136
|
setup(t) {
|
|
1137
|
-
const l = t, e =
|
|
1137
|
+
const l = t, e = O(() => {
|
|
1138
1138
|
var a;
|
|
1139
1139
|
return [
|
|
1140
1140
|
{ label: l.primaryLabel, stages: l.stages, offset: !1 },
|
|
@@ -1171,12 +1171,12 @@ const Xe = {
|
|
|
1171
1171
|
])) : v("", !0),
|
|
1172
1172
|
(r(!0), d(L, null, ee(o(e), (n, k) => (r(), d("div", {
|
|
1173
1173
|
key: n.label ?? k,
|
|
1174
|
-
class:
|
|
1174
|
+
class: Y(["flex flex-col", k ? "mt-16 pt-16 border-t border-fm-color-neutral-gray-100" : "mt-16"])
|
|
1175
1175
|
}, [
|
|
1176
1176
|
n.label ? (r(), d("div", Mt, [
|
|
1177
1177
|
n.offset ? (r(), d("div", _t)) : v("", !0),
|
|
1178
1178
|
s("div", {
|
|
1179
|
-
class:
|
|
1179
|
+
class: Y(["fm-typo-en-body-sm-600 text-fm-color-typo-secondary mb-8", n.offset ? "flex-[2]" : "flex-1"])
|
|
1180
1180
|
}, u(n.label), 3)
|
|
1181
1181
|
])) : v("", !0),
|
|
1182
1182
|
s("div", St, [
|
|
@@ -1187,13 +1187,13 @@ const Xe = {
|
|
|
1187
1187
|
}, [
|
|
1188
1188
|
s("div", It, [
|
|
1189
1189
|
s("div", $t, [
|
|
1190
|
-
s("span",
|
|
1190
|
+
s("span", Ot, u(c.label), 1),
|
|
1191
1191
|
c.helper ? (r(), x(te, {
|
|
1192
1192
|
key: 0,
|
|
1193
1193
|
description: c.helper
|
|
1194
1194
|
}, null, 8, ["description"])) : v("", !0)
|
|
1195
1195
|
]),
|
|
1196
|
-
c.notSupported ? (r(), d("div",
|
|
1196
|
+
c.notSupported ? (r(), d("div", Pt, u(c.helper), 1)) : (r(), d(L, { key: 1 }, [
|
|
1197
1197
|
s("div", Dt, u(c.primaryLabel ?? c.membersLabel ?? "—"), 1),
|
|
1198
1198
|
c.unitsLabel ? (r(), d("div", Lt, u(c.unitsLabel), 1)) : v("", !0),
|
|
1199
1199
|
c.valueLabel ? (r(), d("div", Bt, u(c.valueLabel), 1)) : v("", !0),
|
|
@@ -1223,7 +1223,7 @@ const Xe = {
|
|
|
1223
1223
|
});
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
}),
|
|
1226
|
+
}), Ft = { class: "grid grid-cols-[repeat(auto-fit,minmax(200px,1fr))] xs:grid-cols-1 gap-16" }, At = { class: "flex items-center gap-8" }, qt = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary flex-1 min-w-0 truncate" }, jt = {
|
|
1227
1227
|
key: 0,
|
|
1228
1228
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary"
|
|
1229
1229
|
}, se = /* @__PURE__ */ z({
|
|
@@ -1234,14 +1234,14 @@ const Xe = {
|
|
|
1234
1234
|
setup(t) {
|
|
1235
1235
|
return (l, e) => {
|
|
1236
1236
|
const a = S("FmCard");
|
|
1237
|
-
return r(), d("section",
|
|
1237
|
+
return r(), d("section", Ft, [
|
|
1238
1238
|
(r(!0), d(L, null, ee(t.cards, (i) => (r(), x(a, {
|
|
1239
1239
|
key: i.key,
|
|
1240
1240
|
variant: "outlined",
|
|
1241
1241
|
class: "flex flex-col gap-4 p-16 min-w-0 overflow-hidden"
|
|
1242
1242
|
}, {
|
|
1243
1243
|
default: D(() => [
|
|
1244
|
-
s("div",
|
|
1244
|
+
s("div", At, [
|
|
1245
1245
|
s("span", qt, u(i.label), 1),
|
|
1246
1246
|
i.helper ? (r(), x(te, {
|
|
1247
1247
|
key: 0,
|
|
@@ -1249,7 +1249,7 @@ const Xe = {
|
|
|
1249
1249
|
}, null, 8, ["description"])) : v("", !0)
|
|
1250
1250
|
]),
|
|
1251
1251
|
s("div", {
|
|
1252
|
-
class:
|
|
1252
|
+
class: Y([
|
|
1253
1253
|
"fm-typo-en-title-sm-800 truncate",
|
|
1254
1254
|
i.unavailable ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1255
1255
|
])
|
|
@@ -1271,13 +1271,13 @@ const Xe = {
|
|
|
1271
1271
|
},
|
|
1272
1272
|
setup(t) {
|
|
1273
1273
|
var k;
|
|
1274
|
-
const l = t, e = ["#FF7823", "#B2B3B6"], a = Q(((k = l.modes[0]) == null ? void 0 : k.key) ?? ""), i =
|
|
1274
|
+
const l = t, e = ["#FF7823", "#B2B3B6"], a = Q(((k = l.modes[0]) == null ? void 0 : k.key) ?? ""), i = O(
|
|
1275
1275
|
() => l.modes.map((c) => ({ label: c.label, value: c.key }))
|
|
1276
|
-
), b =
|
|
1276
|
+
), b = O(
|
|
1277
1277
|
() => i.value.find((c) => c.value === a.value) ?? null
|
|
1278
|
-
), p =
|
|
1278
|
+
), p = O(
|
|
1279
1279
|
() => l.modes.find((c) => c.key === a.value) ?? l.modes[0]
|
|
1280
|
-
), g =
|
|
1280
|
+
), g = O(
|
|
1281
1281
|
() => {
|
|
1282
1282
|
var c;
|
|
1283
1283
|
return (((c = p.value) == null ? void 0 : c.series) ?? []).map((C, y) => ({
|
|
@@ -1319,13 +1319,13 @@ const Xe = {
|
|
|
1319
1319
|
});
|
|
1320
1320
|
};
|
|
1321
1321
|
}
|
|
1322
|
-
}),
|
|
1322
|
+
}), Yt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Kt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary mt-4" }, Qt = {
|
|
1323
1323
|
key: 0,
|
|
1324
1324
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary mt-4"
|
|
1325
1325
|
}, Xt = {
|
|
1326
1326
|
key: 1,
|
|
1327
1327
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary mt-8"
|
|
1328
|
-
},
|
|
1328
|
+
}, Zt = {
|
|
1329
1329
|
key: 2,
|
|
1330
1330
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary mt-8"
|
|
1331
1331
|
}, ve = /* @__PURE__ */ z({
|
|
@@ -1337,7 +1337,7 @@ const Xe = {
|
|
|
1337
1337
|
note: {}
|
|
1338
1338
|
},
|
|
1339
1339
|
setup(t) {
|
|
1340
|
-
const l = t, e =
|
|
1340
|
+
const l = t, e = O(
|
|
1341
1341
|
() => l.breakdown ? Qe(l.breakdown) : []
|
|
1342
1342
|
);
|
|
1343
1343
|
return (a, i) => {
|
|
@@ -1349,9 +1349,9 @@ const Xe = {
|
|
|
1349
1349
|
default: D(() => {
|
|
1350
1350
|
var g;
|
|
1351
1351
|
return [
|
|
1352
|
-
s("div",
|
|
1352
|
+
s("div", Yt, u(t.title), 1),
|
|
1353
1353
|
(g = t.breakdown) != null && g.rows.length ? (r(), d(L, { key: 0 }, [
|
|
1354
|
-
s("div",
|
|
1354
|
+
s("div", Kt, " By " + u(t.breakdown.dimension), 1),
|
|
1355
1355
|
t.note ? (r(), d("div", Qt, u(t.note), 1)) : v("", !0),
|
|
1356
1356
|
$(b, {
|
|
1357
1357
|
class: "mt-12",
|
|
@@ -1360,14 +1360,14 @@ const Xe = {
|
|
|
1360
1360
|
"column-filter": [],
|
|
1361
1361
|
"hide-footer": ""
|
|
1362
1362
|
}, null, 8, ["row-data", "column-defs"])
|
|
1363
|
-
], 64)) : t.breakdown ? (r(), d("div", Xt, u(t.emptyMessage), 1)) : (r(), d("div",
|
|
1363
|
+
], 64)) : t.breakdown ? (r(), d("div", Xt, u(t.emptyMessage), 1)) : (r(), d("div", Zt, " No breakdown dimension is available for this campaign. "))
|
|
1364
1364
|
];
|
|
1365
1365
|
}),
|
|
1366
1366
|
_: 1
|
|
1367
1367
|
});
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
|
-
}),
|
|
1370
|
+
}), Jt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Wt = {
|
|
1371
1371
|
key: 0,
|
|
1372
1372
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary mt-4 mb-12"
|
|
1373
1373
|
}, ea = {
|
|
@@ -1392,10 +1392,10 @@ const Xe = {
|
|
|
1392
1392
|
class: "p-24"
|
|
1393
1393
|
}, {
|
|
1394
1394
|
default: D(() => [
|
|
1395
|
-
s("div",
|
|
1396
|
-
t.caption ? (r(), d("div",
|
|
1395
|
+
s("div", Jt, u(t.title), 1),
|
|
1396
|
+
t.caption ? (r(), d("div", Wt, u(t.caption), 1)) : v("", !0),
|
|
1397
1397
|
s("div", {
|
|
1398
|
-
class:
|
|
1398
|
+
class: Y(["grid grid-cols-[repeat(auto-fit,minmax(220px,1fr))] xs:grid-cols-1", t.variant === "tile" ? "gap-16" : "gap-x-16"])
|
|
1399
1399
|
}, [
|
|
1400
1400
|
(r(!0), d(L, null, ee(t.items, (i) => (r(), d(L, {
|
|
1401
1401
|
key: i.key
|
|
@@ -1409,7 +1409,7 @@ const Xe = {
|
|
|
1409
1409
|
}, null, 8, ["description"])) : v("", !0)
|
|
1410
1410
|
]),
|
|
1411
1411
|
s("div", {
|
|
1412
|
-
class:
|
|
1412
|
+
class: Y([
|
|
1413
1413
|
"fm-typo-en-body-lg-600 mt-4 truncate",
|
|
1414
1414
|
i.unavailable ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1415
1415
|
])
|
|
@@ -1423,7 +1423,7 @@ const Xe = {
|
|
|
1423
1423
|
}, null, 8, ["description"])) : v("", !0)
|
|
1424
1424
|
]),
|
|
1425
1425
|
s("span", {
|
|
1426
|
-
class:
|
|
1426
|
+
class: Y([
|
|
1427
1427
|
"fm-typo-en-body-md-600 whitespace-nowrap",
|
|
1428
1428
|
i.unavailable ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
1429
1429
|
])
|
|
@@ -1445,42 +1445,42 @@ const Xe = {
|
|
|
1445
1445
|
}, _a = /* @__PURE__ */ z({
|
|
1446
1446
|
__name: "CampaignAnalytic",
|
|
1447
1447
|
setup(t) {
|
|
1448
|
-
const { t: l } = he(), e = $e(), a =
|
|
1449
|
-
var
|
|
1450
|
-
return (
|
|
1451
|
-
}), E =
|
|
1448
|
+
const { t: l } = he(), e = $e(), a = Oe(), { global: i, minor: b } = Re, p = we(), g = Q(), n = Q(), k = Q(), c = Q(!1), C = Q(!1), y = O(() => {
|
|
1449
|
+
var P;
|
|
1450
|
+
return (P = g.value) == null ? void 0 : P.campaign;
|
|
1451
|
+
}), E = O(
|
|
1452
1452
|
() => y.value ? Ue(y.value.type) : void 0
|
|
1453
|
-
), M =
|
|
1454
|
-
var
|
|
1455
|
-
return (
|
|
1456
|
-
}), h =
|
|
1457
|
-
var
|
|
1458
|
-
return M.value && ((
|
|
1453
|
+
), M = O(() => {
|
|
1454
|
+
var P;
|
|
1455
|
+
return (P = E.value) == null ? void 0 : P.report;
|
|
1456
|
+
}), h = O(() => {
|
|
1457
|
+
var P, w, G, H, V, T, A, I, f, q, j, X, Z;
|
|
1458
|
+
return M.value && ((P = y.value) == null ? void 0 : P.type) === "COIN" ? Ge(
|
|
1459
1459
|
M.value,
|
|
1460
1460
|
((w = n.value) == null ? void 0 : w.type) === "COIN" ? n.value : ie()
|
|
1461
1461
|
) : M.value && ((G = y.value) == null ? void 0 : G.type) === "POINT" ? He(
|
|
1462
1462
|
M.value,
|
|
1463
1463
|
((H = n.value) == null ? void 0 : H.type) === "POINT" ? n.value : ce()
|
|
1464
|
-
) : M.value && ((V = y.value) == null ? void 0 : V.type) === "CREDIT" ?
|
|
1464
|
+
) : M.value && ((V = y.value) == null ? void 0 : V.type) === "CREDIT" ? Ye(
|
|
1465
1465
|
M.value,
|
|
1466
1466
|
((T = n.value) == null ? void 0 : T.type) === "CREDIT" ? n.value : me()
|
|
1467
|
-
) : M.value && ((
|
|
1467
|
+
) : M.value && ((A = y.value) == null ? void 0 : A.type) === "GAME" ? je(
|
|
1468
1468
|
M.value,
|
|
1469
1469
|
((I = n.value) == null ? void 0 : I.type) === "GAME" ? n.value : oe()
|
|
1470
1470
|
) : M.value && ((f = y.value) == null ? void 0 : f.type) === "MISSION" ? qe(
|
|
1471
1471
|
M.value,
|
|
1472
1472
|
((q = n.value) == null ? void 0 : q.type) === "MISSION" ? n.value : ne()
|
|
1473
|
-
) : M.value && ((j = y.value) == null ? void 0 : j.type) === "PROMOTION" ?
|
|
1473
|
+
) : M.value && ((j = y.value) == null ? void 0 : j.type) === "PROMOTION" ? Ae(
|
|
1474
1474
|
M.value,
|
|
1475
1475
|
((X = n.value) == null ? void 0 : X.type) === "PROMOTION" ? n.value : le()
|
|
1476
|
-
) : M.value && ((
|
|
1476
|
+
) : M.value && ((Z = n.value) == null ? void 0 : Z.type) === "VOUCHER" ? Fe(
|
|
1477
1477
|
M.value,
|
|
1478
1478
|
n.value,
|
|
1479
1479
|
k.value
|
|
1480
1480
|
) : M.value;
|
|
1481
|
-
}),
|
|
1481
|
+
}), F = O(
|
|
1482
1482
|
() => y.value ? l(Me(y.value.timeframeOptions)) : ""
|
|
1483
|
-
), ae =
|
|
1483
|
+
), ae = O(
|
|
1484
1484
|
() => y.value && y.value.type !== "MEMBERSHIP" ? _e(y.value) : void 0
|
|
1485
1485
|
);
|
|
1486
1486
|
function ge() {
|
|
@@ -1606,7 +1606,7 @@ const Xe = {
|
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
1608
|
return ke(async () => {
|
|
1609
|
-
var
|
|
1609
|
+
var P, w, G, H, V, T, A;
|
|
1610
1610
|
try {
|
|
1611
1611
|
await i(async () => {
|
|
1612
1612
|
var q, j;
|
|
@@ -1617,7 +1617,7 @@ const Xe = {
|
|
|
1617
1617
|
const I = {
|
|
1618
1618
|
timezone: be[p.currentCountry.value || "MY"] ?? be.MY
|
|
1619
1619
|
};
|
|
1620
|
-
((
|
|
1620
|
+
((P = g.value) == null ? void 0 : P.campaign.type) === "VOUCHER" ? (n.value = ge(), await Promise.all([
|
|
1621
1621
|
b(
|
|
1622
1622
|
() => U.readAnalyticsOverview(e.params.id, {
|
|
1623
1623
|
...I
|
|
@@ -1655,7 +1655,7 @@ const Xe = {
|
|
|
1655
1655
|
).then((f) => {
|
|
1656
1656
|
f.type === "POINT" && (n.value = f);
|
|
1657
1657
|
}).catch(() => {
|
|
1658
|
-
})) : ((
|
|
1658
|
+
})) : ((A = g.value) == null ? void 0 : A.campaign.type) === "CREDIT" && (n.value = me(), await b(
|
|
1659
1659
|
() => U.readAnalyticsOverview(e.params.id, I)
|
|
1660
1660
|
).then((f) => {
|
|
1661
1661
|
f.type === "CREDIT" && (n.value = f);
|
|
@@ -1664,14 +1664,14 @@ const Xe = {
|
|
|
1664
1664
|
} catch {
|
|
1665
1665
|
c.value = !0;
|
|
1666
1666
|
}
|
|
1667
|
-
}), (
|
|
1668
|
-
var
|
|
1667
|
+
}), (P, w) => {
|
|
1668
|
+
var A, I, f, q, j, X, Z, ue, de, pe;
|
|
1669
1669
|
const G = S("FmPill"), H = S("FmPageHead"), V = S("FmIcon"), T = S("FmCard");
|
|
1670
1670
|
return r(), d(L, null, [
|
|
1671
1671
|
$(H, {
|
|
1672
1672
|
title: "Campaign analytic",
|
|
1673
1673
|
"back-button": !0,
|
|
1674
|
-
"onClick:back": w[0] || (w[0] = (
|
|
1674
|
+
"onClick:back": w[0] || (w[0] = (K) => o(a).back())
|
|
1675
1675
|
}, {
|
|
1676
1676
|
title: D(() => [
|
|
1677
1677
|
s("div", na, [
|
|
@@ -1701,9 +1701,9 @@ const Xe = {
|
|
|
1701
1701
|
})) : o(y) ? (r(), d(L, { key: 1 }, [
|
|
1702
1702
|
$(at, {
|
|
1703
1703
|
"campaign-name": o(y).name,
|
|
1704
|
-
"dates-label": o(
|
|
1704
|
+
"dates-label": o(F),
|
|
1705
1705
|
status: o(ae),
|
|
1706
|
-
"mechanic-label": (
|
|
1706
|
+
"mechanic-label": (A = o(E)) == null ? void 0 : A.label,
|
|
1707
1707
|
icon: (I = o(E)) == null ? void 0 : I.icon,
|
|
1708
1708
|
objective: (f = o(E)) == null ? void 0 : f.objective,
|
|
1709
1709
|
"report-range-label": (q = o(h)) == null ? void 0 : q.reportRangeLabel,
|
|
@@ -1744,7 +1744,7 @@ const Xe = {
|
|
|
1744
1744
|
})) : o(h) ? (r(), d(L, { key: 3 }, [
|
|
1745
1745
|
o(y).type === "COIN" || o(y).type === "POINT" || o(y).type === "CREDIT" ? (r(), d("section", ma, [
|
|
1746
1746
|
s("div", null, [
|
|
1747
|
-
s("div", ua, u((
|
|
1747
|
+
s("div", ua, u((Z = o(E)) == null ? void 0 : Z.label) + " distribution summary ", 1)
|
|
1748
1748
|
]),
|
|
1749
1749
|
$(se, {
|
|
1750
1750
|
cards: o(h).cards
|
|
@@ -1779,12 +1779,12 @@ const Xe = {
|
|
|
1779
1779
|
key: 5,
|
|
1780
1780
|
modes: o(h).trend
|
|
1781
1781
|
}, null, 8, ["modes"])) : v("", !0),
|
|
1782
|
-
(pe = o(h).breakdowns) != null && pe.length ? (r(!0), d(L, { key: 6 }, ee(o(h).breakdowns, (
|
|
1783
|
-
key:
|
|
1784
|
-
breakdown:
|
|
1785
|
-
title:
|
|
1786
|
-
"empty-message":
|
|
1787
|
-
note:
|
|
1782
|
+
(pe = o(h).breakdowns) != null && pe.length ? (r(!0), d(L, { key: 6 }, ee(o(h).breakdowns, (K) => (r(), x(ve, {
|
|
1783
|
+
key: K.title,
|
|
1784
|
+
breakdown: K.breakdown,
|
|
1785
|
+
title: K.title,
|
|
1786
|
+
"empty-message": K.emptyMessage,
|
|
1787
|
+
note: K.note
|
|
1788
1788
|
}, null, 8, ["breakdown", "title", "empty-message", "note"]))), 128)) : (r(), x(ve, {
|
|
1789
1789
|
key: 7,
|
|
1790
1790
|
breakdown: o(h).breakdown
|