@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-beta.80
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-DsB2o1oB.js → App-DievprEi.js} +853 -683
- package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-DrdqOhZL.js} +16 -13
- package/dist/{Bin-DMr7K8Kj.js → Bin-Ci2k3z77.js} +8 -8
- package/dist/Broadcast-CpDMAG1o.js +306 -0
- package/dist/CampaignAnalytic-uRyGaLaN.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DtGe2Og1.js} +8 -5
- package/dist/Card-tb98Kyr-.js +1086 -0
- package/dist/{Collections-B0uGC2FE.js → Collections-P1S5WjnJ.js} +14 -13
- package/dist/Credit-DwK7JYf-.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cyk0iIsd.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-8r29jKh9.js +4432 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-BML_-v8I.js} +36 -36
- package/dist/Experience-BejtRlOj.js +288 -0
- package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-C-hmBaHm.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-n8qL896g.js +356 -0
- package/dist/GiftCardSetup-Bgsfcu7N.js +736 -0
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CzL68PPP.js +424 -0
- package/dist/Goals-BB8LJlq3.js +247 -0
- package/dist/{Grab-DmmwrGzk.js → Grab-COq3Ujst.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-BmLclEyi.js} +1 -1
- package/dist/{Index-m7l4insz.js → Index-BdkIinaE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-DsWv3DVb.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DvOzGF8c.js} +1 -1
- package/dist/LoyaltyDashboard-D4Jtpw0n.js +2911 -0
- package/dist/MainLayout-Ca-Xm3eZ.js +143 -0
- package/dist/{Marketing-C9pSIdBU.js → Marketing-Cpe4s7NZ.js} +7 -6
- package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-nTeS9VVx.js} +15 -14
- package/dist/Member-DgGZ4Cdg.js +654 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-_O3B-FIA.js +1281 -0
- package/dist/MemberImportHistory-rdlbDVWU.js +187 -0
- package/dist/MemberList-BC4aRJTt.js +334 -0
- package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-BFfdTttp.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-DXajAQy9.js} +5928 -5644
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8xVDzdO3.js +40 -0
- package/dist/Mission-BWCNKTjU.js +363 -0
- package/dist/Overview--Q7vzhNK.js +1316 -0
- package/dist/{Overview-DOJj4XvO.js → Overview-i02Wnyjn.js} +23 -20
- package/dist/Point-CiWxqny5.js +297 -0
- package/dist/Promotion-B0G9qfBm.js +426 -0
- package/dist/{Queue-55G2gtP5.js → Queue-YfwgYmzH.js} +16 -13
- package/dist/{Record-DNPI02c6.js → Record-CCuwrPKW.js} +9 -9
- package/dist/Review-ymsfdh7Q.js +45 -0
- package/dist/ReviewFacebookCallback-DyDExWvP.js +238 -0
- package/dist/ReviewGoogleCallback-DNyg3n2S.js +213 -0
- package/dist/{Reward-CnP8R2pS.js → Reward-BKIb0ezH.js} +28 -28
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-DPaaNgpr.js} +26 -23
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BLFLybFn.js} +198 -186
- package/dist/{Segment-CxiQnnyj.js → Segment-D5_pp7fh.js} +278 -276
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLLjIA-D.js} +45 -42
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRIcZwnU.js} +4 -4
- package/dist/Setting-CD78gIMU.js +574 -0
- package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-C2AIT4s4.js} +12 -12
- package/dist/Settings-DI_tryQV.js +230 -0
- package/dist/Store-BV2JTRNZ.js +2615 -0
- package/dist/{StoreRewards-DILeipMG.js → StoreRewards-Bk55YXyO.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BZZ1fqwg.js +1331 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BrEzWVrH.js} +2 -2
- package/dist/{Tier-BAZ1xuKL.js → Tier-CO2K30Ew.js} +2576 -757
- package/dist/{Title-CcNAt47f.js → Title-qProQh3T.js} +41 -37
- package/dist/Transaction-qL5L-fE_.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Co1BPScS.js} +26 -26
- package/dist/Voucher-VFD1LY9Y.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-9QyTl7iq.js} +118 -124
- package/dist/WhatsappAccount-CxSGqm7H.js +325 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D8L6izf0.js +96 -0
- package/dist/WhatsappBot-C4Oz7Xwv.js +441 -0
- package/dist/WhatsappBotSettings-CKqaWzwE.js +136 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bcsi94dw.js} +2 -2
- package/dist/{app-Z-UKRG5V.js → app-BEYzXWZO.js} +50954 -42517
- package/dist/app.js +1 -1
- package/dist/base.export-S_82Elmg.js +75 -0
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-C7EF6cKC.js → business-DH7djUl8.js} +5 -5
- package/dist/campaign-DlHDgoFX.js +100 -0
- package/dist/campaign-k_WHxsOR.js +400 -0
- package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-Bd34dVnx.js → campaign.fn-B-4JRzft.js} +67 -67
- package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-zQwWDzZT.js +26 -0
- package/dist/currency-CQVHXBFe.js +7 -0
- package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-YTXMbJTj.js} +11 -11
- package/dist/{effect-BcB8IlTI.js → effect-CQkVLHWi.js} +1 -1
- package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-BIoVbPGC.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-BSgrCJRv.js → helper-BCkTvF4m.js} +1 -1
- package/dist/{index-CoHWpylO.js → index-B-bQnb0_.js} +2115 -2557
- package/dist/index-BAJOC43K.js +14550 -0
- package/dist/{index-HXiYGO4_.js → index-BFIHEBnX.js} +6343 -7693
- package/dist/{index-VlFWaBrg.js → index-BJIQe3QJ.js} +1 -1
- package/dist/{index-BpI-BI4H.js → index-BJkRTH5T.js} +4 -4
- package/dist/index-BOJogkKQ.js +172 -0
- package/dist/{index-BoYEqLif.js → index-BRPajAkE.js} +1517 -263
- package/dist/{index-CsoBDon4.js → index-BTkxgos0.js} +1590 -1523
- package/dist/index-BUP4aHq8.js +32438 -0
- package/dist/index-BYvnqARr.js +902 -0
- package/dist/{index-hlyg-wxV.js → index-Bonq819P.js} +1 -1
- package/dist/{index-CIBPhxlC.js → index-C6mOI2Pp.js} +105 -123
- package/dist/{index-Bf6jNZit.js → index-CDIe15AY.js} +24 -9
- package/dist/index-CTrcdIkt.js +137 -0
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/index-CpnchVe1.js +74 -0
- package/dist/index-D5AR7A5e.js +151 -0
- package/dist/index-D7-Q86HI.js +54 -0
- package/dist/index-DdOj8Hew.js +53 -0
- package/dist/{index-iMPtFp54.js → index-Dvqguh2B.js} +10 -9
- package/dist/{index-Bm0QPucw.js → index-hAKRfE-4.js} +14 -14
- package/dist/index-o2Ga_qaX.js +39 -0
- package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-D0fhMMPG.js} +128 -128
- package/dist/{loading-CSXr0Yqz.js → loading-C686AMVG.js} +1 -1
- package/dist/{lodash-Bh7XKI-R.js → lodash-CANlWUWW.js} +1 -1
- package/dist/member-import-UzJ6ByIS.js +188 -0
- package/dist/membership-DCVzFaFy.js +274 -0
- package/dist/{money-BZIST_m9.js → money-DuazwoX7.js} +1 -1
- package/dist/{number-DXLR2w95.js → number-B2HFiV0g.js} +1 -1
- package/dist/objectid-Bq-oVMdP.js +145 -0
- package/dist/onboarding-BxvNxz-9.js +131 -0
- package/dist/onboardingSetup-CcvKmyx8.js +17 -0
- package/dist/{plugins-4FlbwoES.js → plugins-C39O5j42.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-DUbl79bZ.js → reward-HYt-2nxt.js} +1 -1
- package/dist/{rule-BQUoZ4l_.js → rule-3xNIYM7z.js} +337 -275
- package/dist/style.css +1 -1
- package/dist/{template-BoiSG7G7.js → template-D37Z_b0m.js} +6 -6
- package/dist/timezone-JwnQgpaU.js +20 -0
- package/dist/transaction.fn-C5vswLI_.js +71 -0
- package/dist/{trigger-D5g5m6tT.js → trigger-Bc6s2cvq.js} +17 -17
- package/dist/useMarketingMaterialActions-DMGyAXcy.js +96 -0
- package/dist/{usePagination-DHePBBoR.js → usePagination-DLOOwiiY.js} +1 -1
- package/dist/{user-C_ToSo-g.js → user-CTIGugVF.js} +1 -1
- package/dist/{vue-i18n-BcYh6_51.js → vue-i18n-Dpic36zz.js} +287 -287
- package/dist/{xlsx-h4G1C-xj.js → xlsx-CT9_1SFr.js} +786 -786
- package/dist/{zod-CgigfJar.js → zod-CGVrMcDl.js} +1 -1
- package/package.json +10 -6
- package/dist/Broadcast-C9akM-TB.js +0 -266
- package/dist/Card-DRkIYs0M.js +0 -910
- package/dist/Credit-V5YA_hGx.js +0 -260
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
- package/dist/Experience-WTWy5yY6.js +0 -259
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-BwOfTCW5.js +0 -330
- package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
- package/dist/MainLayout-Du5kZOtA.js +0 -41
- package/dist/Member-DUV_vbPI.js +0 -280
- package/dist/MemberList-Ye4nOk-i.js +0 -1601
- package/dist/Mission-BBmCGpt8.js +0 -334
- package/dist/Point-Bzg6hi6o.js +0 -262
- package/dist/Promotion-BMXIp_ef.js +0 -397
- package/dist/Review-CYNPPxYU.js +0 -1141
- package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
- package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
- package/dist/Setting-jHAjccod.js +0 -2047
- package/dist/Store-Cu-hKmVa.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
- package/dist/Transaction-D7DO3dKQ.js +0 -39
- package/dist/Voucher-Cq-n1CaC.js +0 -421
- package/dist/campaign--MjoY1Mn.js +0 -219
- package/dist/campaign-DHBuP4UA.js +0 -277
- package/dist/export-CjB7qxZ9.js +0 -97
- package/dist/index-BIAjmMga.js +0 -85
- package/dist/index-Bv4MBLQ5.js +0 -52
- package/dist/index-hbyCVNa7.js +0 -30289
- package/dist/membership-CfredTm3.js +0 -255
- package/dist/objectid-Dg4ZodlT.js +0 -145
- package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as V, openBlock as r, createBlock as C, resolveDynamicComponent as B, unref as e, ref as E, computed as j, onMounted as P, resolveComponent as d, withCtx as u, createElementVNode as l, createElementBlock as w, createVNode as a, normalizeClass as k, createTextVNode as S, toDisplayString as f, Fragment as L, renderList as N, createCommentVNode as q } from "vue";
|
|
2
|
-
import { u as J } from "./campaign
|
|
2
|
+
import { u as J } from "./campaign-DlHDgoFX.js";
|
|
3
3
|
import { useDialog as M } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as A } from "./index-
|
|
5
|
-
import { _ as G } from "./lodash-
|
|
6
|
-
import { C as H } from "./campaign-
|
|
4
|
+
import { F as A } from "./index-BRPajAkE.js";
|
|
5
|
+
import { _ as G } from "./lodash-CANlWUWW.js";
|
|
6
|
+
import { C as H } from "./campaign-k_WHxsOR.js";
|
|
7
7
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
8
|
-
import { u as Q } from "./vue-i18n-
|
|
9
|
-
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as Q } from "./vue-i18n-Dpic36zz.js";
|
|
9
|
+
import { u as R } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-8r29jKh9.js";
|
|
10
10
|
const U = /* @__PURE__ */ V({
|
|
11
11
|
__name: "CampaignChip",
|
|
12
12
|
props: {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { e as a } from "./index-BUP4aHq8.js";
|
|
2
|
+
const n = {
|
|
3
|
+
[a.F_COUNTRY.enum.MY]: "Asia/Kuala_Lumpur",
|
|
4
|
+
[a.F_COUNTRY.enum.SG]: "Asia/Singapore",
|
|
5
|
+
JP: "Asia/Tokyo",
|
|
6
|
+
AE: "Asia/Dubai",
|
|
7
|
+
AU: "Australia/Sydney",
|
|
8
|
+
[a.F_COUNTRY.enum.TH]: "Asia/Bangkok",
|
|
9
|
+
[a.F_COUNTRY.enum.ID]: "Asia/Jakarta",
|
|
10
|
+
[a.F_COUNTRY.enum.BN]: "Asia/Brunei",
|
|
11
|
+
[a.F_COUNTRY.enum.MO]: "Asia/Macau",
|
|
12
|
+
[a.F_COUNTRY.enum.MV]: "Indian/Maldives",
|
|
13
|
+
[a.F_COUNTRY.enum.PK]: "Asia/Karachi",
|
|
14
|
+
[a.F_COUNTRY.enum.VN]: "Asia/Ho_Chi_Minh",
|
|
15
|
+
GB: "Europe/London",
|
|
16
|
+
MA: "Africa/Casablanca"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
n as C
|
|
20
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import "./index-B-bQnb0_.js";
|
|
2
|
+
import { s as u } from "./index-BJkRTH5T.js";
|
|
3
|
+
function i(l) {
|
|
4
|
+
var c, f;
|
|
5
|
+
const e = (c = l.metadata) == null ? void 0 : c.operator, t = typeof e == "string" ? e : [e == null ? void 0 : e.name, e == null ? void 0 : e.phoneNumber, e == null ? void 0 : e.email].filter(Boolean).join(" / ") || (e == null ? void 0 : e.uid);
|
|
6
|
+
return [(f = l.metadata) == null ? void 0 : f.remark, t && `Operator: ${t}`].filter(Boolean).join(" | ");
|
|
7
|
+
}
|
|
8
|
+
function m(l) {
|
|
9
|
+
let e = "";
|
|
10
|
+
switch (l) {
|
|
11
|
+
case "PORTAL":
|
|
12
|
+
e = "ADMIN";
|
|
13
|
+
break;
|
|
14
|
+
case "BENEFIT":
|
|
15
|
+
e = "MEMBERSHIP";
|
|
16
|
+
break;
|
|
17
|
+
case "ORDER":
|
|
18
|
+
e = "ORDER";
|
|
19
|
+
break;
|
|
20
|
+
case "BILL":
|
|
21
|
+
e = "SPENDING";
|
|
22
|
+
break;
|
|
23
|
+
case "CASHBACK":
|
|
24
|
+
e = "CASHBACK";
|
|
25
|
+
break;
|
|
26
|
+
case "CYCLE":
|
|
27
|
+
e = "EXPIRED";
|
|
28
|
+
break;
|
|
29
|
+
case "COUNTER_CONSUME":
|
|
30
|
+
e = "COUNTER REDEEM";
|
|
31
|
+
break;
|
|
32
|
+
default:
|
|
33
|
+
e = l;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
return e;
|
|
37
|
+
}
|
|
38
|
+
function b(l) {
|
|
39
|
+
var e, t, c, f, r, E;
|
|
40
|
+
switch ((e = l == null ? void 0 : l.pf_collectible) == null ? void 0 : e.type) {
|
|
41
|
+
case "VOUCHER":
|
|
42
|
+
return `${(t = l.pf_collectible) == null ? void 0 : t.type} (${(c = l.pf_collectible) == null ? void 0 : c.name})`;
|
|
43
|
+
case "TITLE":
|
|
44
|
+
return `${(f = l.pf_collectible) == null ? void 0 : f.type} (${(r = l.pf_collectible) == null ? void 0 : r.name})`;
|
|
45
|
+
case "POINT":
|
|
46
|
+
return "Experience";
|
|
47
|
+
case "COIN":
|
|
48
|
+
return "Point";
|
|
49
|
+
default:
|
|
50
|
+
return u((E = l == null ? void 0 : l.pf_collectible) == null ? void 0 : E.type);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function a(l) {
|
|
54
|
+
switch (l) {
|
|
55
|
+
case "ONLINE":
|
|
56
|
+
return "Online";
|
|
57
|
+
case "COIN":
|
|
58
|
+
return "Point";
|
|
59
|
+
default:
|
|
60
|
+
return l;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const s = {
|
|
64
|
+
getReason: m,
|
|
65
|
+
formattedType: b,
|
|
66
|
+
formattedPaymentType: a,
|
|
67
|
+
formattedRemark: i
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
s as T
|
|
71
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import "./index-
|
|
3
|
-
import { R as i } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i as n } from "./plugins-
|
|
7
|
-
const L = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as m, openBlock as u, createBlock as p, unref as r } from "vue";
|
|
2
|
+
import "./index-BTkxgos0.js";
|
|
3
|
+
import { R as i } from "./index-BRPajAkE.js";
|
|
4
|
+
import { a as E } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BLFLybFn.js";
|
|
5
|
+
import { c as e, C as d } from "./index-BYvnqARr.js";
|
|
6
|
+
import { i as n } from "./plugins-C39O5j42.js";
|
|
7
|
+
const L = /* @__PURE__ */ m({
|
|
8
8
|
__name: "BillRuleGroup",
|
|
9
9
|
props: {
|
|
10
10
|
modelValue: {
|
|
@@ -22,18 +22,18 @@ const L = /* @__PURE__ */ c({
|
|
|
22
22
|
"include-only": "bill",
|
|
23
23
|
"trigger-type": "BILL_COMPLETED",
|
|
24
24
|
"model-value": ((g = t.modelValue) == null ? void 0 : g.rules.g_bill) ?? r(i).scaffoldGroup("g_bill"),
|
|
25
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
25
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => a(
|
|
26
26
|
"update:model-value",
|
|
27
27
|
r(i).setRuleToGroup(
|
|
28
28
|
t.modelValue ?? r(i).scaffoldGroup(),
|
|
29
|
-
|
|
29
|
+
c,
|
|
30
30
|
"&&"
|
|
31
31
|
)
|
|
32
32
|
))
|
|
33
33
|
}, null, 8, ["model-value"]);
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
}), O = /* @__PURE__ */
|
|
36
|
+
}), O = /* @__PURE__ */ m({
|
|
37
37
|
__name: "FeedbackRuleGroup",
|
|
38
38
|
props: {
|
|
39
39
|
modelValue: {
|
|
@@ -51,18 +51,18 @@ const L = /* @__PURE__ */ c({
|
|
|
51
51
|
"include-only": "feedback",
|
|
52
52
|
"trigger-type": "FEEDBACK",
|
|
53
53
|
"model-value": ((g = t.modelValue) == null ? void 0 : g.rules.g_feedback) ?? r(i).scaffoldGroup("g_feedback"),
|
|
54
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
54
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => a(
|
|
55
55
|
"update:model-value",
|
|
56
56
|
r(i).setRuleToGroup(
|
|
57
57
|
t.modelValue ?? r(i).scaffoldGroup(),
|
|
58
|
-
|
|
58
|
+
c,
|
|
59
59
|
"&&"
|
|
60
60
|
)
|
|
61
61
|
))
|
|
62
62
|
}, null, 8, ["model-value"]);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), R = {
|
|
66
66
|
[e.enum.BILL_COMPLETED]: {
|
|
67
67
|
get name() {
|
|
68
68
|
return n.global.t(
|
|
@@ -185,7 +185,7 @@ const L = /* @__PURE__ */ c({
|
|
|
185
185
|
value: e.enum.ISSUE_REWARD,
|
|
186
186
|
hidden: !0
|
|
187
187
|
}
|
|
188
|
-
},
|
|
188
|
+
}, C = Object.fromEntries(
|
|
189
189
|
[
|
|
190
190
|
"VOUCHER",
|
|
191
191
|
"PROMOTION",
|
|
@@ -201,13 +201,13 @@ const L = /* @__PURE__ */ c({
|
|
|
201
201
|
const o = d[t];
|
|
202
202
|
return [
|
|
203
203
|
t,
|
|
204
|
-
(o == null ? void 0 : o.map((a) =>
|
|
204
|
+
(o == null ? void 0 : o.map((a) => R[a]).filter((a) => !a.hidden)) ?? []
|
|
205
205
|
];
|
|
206
206
|
})
|
|
207
207
|
);
|
|
208
208
|
export {
|
|
209
|
-
|
|
209
|
+
C as T,
|
|
210
210
|
L as _,
|
|
211
|
-
|
|
211
|
+
R as a,
|
|
212
212
|
O as b
|
|
213
213
|
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { S as o, g as c, b } from "./index-BUP4aHq8.js";
|
|
2
|
+
import { u as w } from "./vue-i18n-Dpic36zz.js";
|
|
3
|
+
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
4
|
+
import { c as k } from "./plugins-C39O5j42.js";
|
|
5
|
+
const l = (e) => b(`businesses/${e}/marketing-materials`), D = {
|
|
6
|
+
async createMarketingMaterial(e) {
|
|
7
|
+
const a = o.getBusinessId();
|
|
8
|
+
if (!a) throw new Error("Invalid business ID");
|
|
9
|
+
return c(
|
|
10
|
+
await l(a).post("", e)
|
|
11
|
+
);
|
|
12
|
+
},
|
|
13
|
+
async getMarketingMaterial(e) {
|
|
14
|
+
const a = o.getBusinessId();
|
|
15
|
+
if (!a) throw new Error("Invalid business ID");
|
|
16
|
+
return c(
|
|
17
|
+
await l(a).get(`/${e}`)
|
|
18
|
+
);
|
|
19
|
+
},
|
|
20
|
+
async listMarketingMaterials(e = null, a = 20) {
|
|
21
|
+
const s = o.getBusinessId();
|
|
22
|
+
if (!s) throw new Error("Invalid business ID");
|
|
23
|
+
return c(
|
|
24
|
+
await l(s).get("", {
|
|
25
|
+
params: { ...e ? { cursor: e } : {}, limit: a }
|
|
26
|
+
})
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
async updateMarketingMaterial(e, a) {
|
|
30
|
+
const s = o.getBusinessId();
|
|
31
|
+
if (!s) throw new Error("Invalid business ID");
|
|
32
|
+
return c(
|
|
33
|
+
await l(s).patch(`/${e}`, a)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function E() {
|
|
38
|
+
const { t: e } = w(), a = h();
|
|
39
|
+
async function s(n) {
|
|
40
|
+
if (!(n != null && n.imageUrl)) return;
|
|
41
|
+
const { headline: i, caption: g, imageUrl: r } = n;
|
|
42
|
+
if (!navigator.share) {
|
|
43
|
+
a.open({
|
|
44
|
+
message: e("connect.marketing.actions.webShareNotSupported"),
|
|
45
|
+
type: "error"
|
|
46
|
+
});
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
const t = {
|
|
51
|
+
title: i ?? void 0,
|
|
52
|
+
text: g ?? void 0
|
|
53
|
+
};
|
|
54
|
+
if (navigator.canShare)
|
|
55
|
+
try {
|
|
56
|
+
const d = await (await fetch(r, { mode: "cors", cache: "no-store" })).blob(), f = [new File([d], "marketing-material.jpg", {
|
|
57
|
+
type: d.type || "image/jpeg"
|
|
58
|
+
})];
|
|
59
|
+
navigator.canShare({ files: f }) ? t.files = f : t.url = r;
|
|
60
|
+
} catch (u) {
|
|
61
|
+
console.error("Failed to fetch image for sharing:", u), t.url = r;
|
|
62
|
+
}
|
|
63
|
+
else
|
|
64
|
+
t.url = r;
|
|
65
|
+
await navigator.share(t);
|
|
66
|
+
} catch (t) {
|
|
67
|
+
t.name !== "AbortError" && a.open({
|
|
68
|
+
message: e("connect.marketing.actions.failedToShare", { message: t.message }),
|
|
69
|
+
type: "error"
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async function p(n) {
|
|
74
|
+
if (n)
|
|
75
|
+
try {
|
|
76
|
+
const g = await (await fetch(n, { mode: "cors", cache: "no-store" })).blob(), r = URL.createObjectURL(g), t = document.createElement("a");
|
|
77
|
+
t.href = r, t.download = "marketing-material", t.click(), URL.revokeObjectURL(r);
|
|
78
|
+
} catch (i) {
|
|
79
|
+
console.error("Failed to download image:", i), window.open(n, "_blank");
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
async function m(n) {
|
|
83
|
+
n && await k(n, {
|
|
84
|
+
successMessage: e("connect.marketing.actions.imageLinkCopied")
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
shareMaterial: s,
|
|
89
|
+
downloadMaterialImage: p,
|
|
90
|
+
copyMaterialLink: m
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
D as m,
|
|
95
|
+
E as u
|
|
96
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as P, computed as v, ref as w, onMounted as $, watch as M, resolveComponent as D, openBlock as u, createElementBlock as p, createVNode as r, unref as n, createElementVNode as s, createCommentVNode as N, toDisplayString as b } from "vue";
|
|
2
2
|
import { _ as S } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
3
|
-
import { l as E } from "./lodash-
|
|
3
|
+
import { l as E } from "./lodash-CANlWUWW.js";
|
|
4
4
|
const R = { class: "" }, A = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "w-full flex flex-col gap-16 items-center py-16"
|