@feedmepos/mf-connect 0.1.110-prod → 0.1.111-prod
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-BIuwkgjE.js → App-D3pYl3WL.js} +494 -475
- package/dist/{Bin-B6PDvhj7.js → Bin-DOZqpbYH.js} +8 -8
- package/dist/{Broadcast-BsUYu9Kq.js → Broadcast-DZ4SP99P.js} +82 -79
- package/dist/{CampaignAnalytic-D0_Kh2Sv.js → CampaignAnalytic-cFKvCgxX.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-bfMr_7XS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B0eVEubS.js} +7 -6
- package/dist/{Card-D5sknDf_.js → Card-B5ni027Q.js} +21 -20
- package/dist/{Collections-B0umkbKL.js → Collections-9QK5hbLo.js} +9 -9
- package/dist/{Credit-DMrHYtmf.js → Credit-8Ouy4O9a.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-IuEHozwd.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CJA-yunY.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C06_qwVx.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js} +33 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CHCLAOYT.js → EffectSheet.vue_vue_type_style_index_0_lang-Dv0q3B8m.js} +6 -6
- package/dist/{Experience-3xvTI41j.js → Experience-DMh4hR1S.js} +86 -83
- package/dist/{FileSaver.min-CEjHOYSg.js → FileSaver.min-Bx9mdUgJ.js} +1 -1
- package/dist/{Game-Drkfnm94.js → Game-CL0TZvg1.js} +12 -12
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-Bz5kIfoM.js +424 -0
- package/dist/Goals-Dz5Vp-lj.js +247 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BYIIaPD9.js → ImageInput.vue_vue_type_script_setup_true_lang-CaPDI3vY.js} +1 -1
- package/dist/{Index-BNfZ-mAu.js → Index-kH8aAegB.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CqJLimu2.js → LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BnMjqLMU.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DPIFLdBc.js} +1 -1
- package/dist/{LoyaltyDashboard-BmRdWFCw.js → LoyaltyDashboard-BBxEoWol.js} +1216 -1170
- package/dist/{MainLayout-m4H59w6_.js → MainLayout-2BLwDyHQ.js} +3 -3
- package/dist/{Marketing-BqdCdc76.js → Marketing-C4OnSV-c.js} +4 -4
- package/dist/{MarketingMaterialEdit-UjCEMJ7c.js → MarketingMaterialEdit-DFhpsI2-.js} +6 -6
- package/dist/{Member-BbpQizye.js → Member-CT9WwxP0.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbL7cw4g.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-C7yznkUn.js} +25 -24
- package/dist/{MemberImportHistory-FYMyd_uX.js → MemberImportHistory-B__BFID7.js} +7 -7
- package/dist/{MemberList-CFtv0HI5.js → MemberList-DgLI4wty.js} +14 -14
- package/dist/{MemberTransactions-BYpugGs7.js → MemberTransactions-UFx_DZYe.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDzQ0rnK.js → MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlhwugZQ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js} +1 -1
- package/dist/{Mission-BMhY1kl1.js → Mission-CawzGzDu.js} +83 -80
- package/dist/{Overview-BmZelkd_.js → Overview-CAtTlEVa.js} +4 -4
- package/dist/{Overview-E0KL28Fc.js → Overview-D19oSo24.js} +21 -20
- package/dist/{Point-BX5p9ZVF.js → Point-BPAGmKAj.js} +119 -110
- package/dist/{Promotion-D662WYaR.js → Promotion-B0Uf9vjL.js} +89 -86
- package/dist/{Queue-CI5rumWZ.js → Queue-CJEAFss_.js} +13 -12
- package/dist/{Record-DRZVEW0I.js → Record-s6hSQG2P.js} +9 -9
- package/dist/{Review-yMVGBErp.js → Review-DhNCbAOm.js} +2 -2
- package/dist/{ReviewFacebookCallback-Docv-Uil.js → ReviewFacebookCallback-DeZqcpJo.js} +5 -5
- package/dist/{ReviewGoogleCallback-3xVh_G7M.js → ReviewGoogleCallback-D8ENWii2.js} +5 -5
- package/dist/{Reward-lzBLyu0x.js → Reward-BT00QsXL.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bs32tPvC.js → RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-fNwFSHL1.js → RuleGroup.vue_vue_type_script_setup_true_lang-BvxbKSkB.js} +16 -15
- package/dist/{Segment-BRPf66q8.js → Segment-BuGhX9zg.js} +27 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQmbCewC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DB718_4P.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-fHX_ftax.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js} +4 -4
- package/dist/{Setting-D5k2jymY.js → Setting-BOWPp05N.js} +14 -14
- package/dist/{SettingAdvertisements-1Oc29mzb.js → SettingAdvertisements-aqFErKAr.js} +12 -12
- package/dist/{Settings-B3OCofxq.js → Settings-DekXvE-R.js} +5 -5
- package/dist/{Store-B8WVn8ZA.js → Store-DpVlMuau.js} +24 -23
- package/dist/{StoreRewards-C7_RKZ00.js → StoreRewards-D2pTL2oA.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CmqgxDJ6.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js} +26 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BW-HTNMr.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C-C3RSeW.js} +2 -2
- package/dist/{Tier-8pGUR8GA.js → Tier-OyE8oH2r.js} +333 -330
- package/dist/{Title-DnYVX2k8.js → Title-DAl7CKL_.js} +24 -23
- package/dist/{Transaction-YJkVkePM.js → Transaction-mvKzTgLx.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-ATWU025y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C0yHxQVr.js} +6 -6
- package/dist/Voucher-D2QGWSxs.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C1dCFS2S.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Bt2YB745.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CbUdt4GK.js → ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js} +2 -2
- package/dist/{app-DoUnw6pe.js → app-QxosLNkH.js} +1133 -824
- package/dist/app.js +1 -1
- package/dist/{business-B-PlsFIY.js → business-CbqG6NXr.js} +1 -1
- package/dist/{campaign-GkMET7FI.js → campaign-Co4Lq-Wz.js} +8 -8
- package/dist/{campaign-yUUxyk0R.js → campaign-Rj7oDBnN.js} +2 -2
- package/dist/{campaign.enum-DbPiwqfi.js → campaign.enum-B7vdNYKd.js} +1 -1
- package/dist/{campaign.fn-CF5mOcSE.js → campaign.fn-DolD3lYJ.js} +3 -3
- package/dist/{collectible.enum-CbOzGIud.js → collectible.enum-BsQseg7-.js} +1 -1
- package/dist/{collection.fn-BByCTXVz.js → collection.fn-EbUIyB1X.js} +2 -2
- package/dist/{effect-jriAOaEq.js → effect-B_91OlcX.js} +1 -1
- package/dist/{email-addresses-DH4xgace.js → email-addresses-DXnYZG-e.js} +2 -2
- package/dist/{export-CN3lbc2j.js → export-D0hWZSfH.js} +3 -3
- package/dist/{helper-CQjM35T_.js → helper-_uhiXya1.js} +1 -1
- package/dist/{index-CptAtzHf.js → index-BBihP1s2.js} +2 -2
- package/dist/index-BWgc2-Qz.js +171 -0
- package/dist/{index-De9f7Fwe.js → index-BZ2b0Pk6.js} +5 -5
- package/dist/{index-BLOFQAMK.js → index-CDm0BWa3.js} +1 -1
- package/dist/{index-iZDBfoRk.js → index-CWUmrVo_.js} +2 -2
- package/dist/{index-Dr68iOIO.js → index-C_1iqF1Q.js} +1 -1
- package/dist/{index-Duqxyi9L.js → index-Cp7oHMm3.js} +1109 -32
- package/dist/{index-BHYKmUkc.js → index-CzYxnDWP.js} +2 -2
- package/dist/{index-v3DTwO9s.js → index-Df4l6y-S.js} +6 -6
- package/dist/{index-MtVkfI7s.js → index-DlGnYR5y.js} +3 -3
- package/dist/{index-BlKeV6aM.js → index-DlQJZNwD.js} +1 -1
- package/dist/{index-CCBpqK6M.js → index-DuhRCI0L.js} +1 -1
- package/dist/{index-D1vRPik1.js → index-DzBzClHP.js} +1 -1
- package/dist/{index-DszI88g9.js → index-aCuOvuEC.js} +1 -1
- package/dist/{index-BPTCREXM.js → index-tbo0pMIu.js} +1 -1
- package/dist/{index-DKZEN-aI.js → index-uuNGb1nv.js} +3 -3
- package/dist/{index-DEmV6_BZ.js → index-xuFTeVrb.js} +9 -8
- package/dist/{index.esm2017-DvOnDQUA.js → index.esm2017-B72iWwk_.js} +1 -1
- package/dist/{loading-DO3WUS3q.js → loading-rIhCiB_S.js} +1 -1
- package/dist/{lodash-6izwukKR.js → lodash-B6fOjfjd.js} +1 -1
- package/dist/{member-import-hKbS-7lM.js → member-import-CbHn7zss.js} +1 -1
- package/dist/{membership-buZOqdNV.js → membership-DkJN7jyQ.js} +3 -3
- package/dist/{money-WR6-v2Bl.js → money-ChbDx6Nq.js} +1 -1
- package/dist/{number-CjEejmUn.js → number-9TEd27Ku.js} +1 -1
- package/dist/{objectid-BvtNS241.js → objectid-CGol1NeA.js} +13 -13
- package/dist/onboarding-BN3MKVRs.js +131 -0
- package/dist/onboardingSetup-D9xhdgS3.js +17 -0
- package/dist/{plugins-BLcKp-ww.js → plugins-CCibSJZa.js} +3 -3
- package/dist/{reward-DCNR2-_F.js → reward-DjasF-NL.js} +1 -1
- package/dist/{rule-BsdMlDuH.js → rule-DqeChj0e.js} +3 -3
- package/dist/{rule-builder-C2z6Ki1X.js → rule-builder-DT854ycI.js} +1 -1
- package/dist/{template-DuuTNfO4.js → template-BeCVA0-N.js} +7 -7
- package/dist/{timezone-nMBfnPp_.js → timezone-D0nC1LDx.js} +1 -1
- package/dist/{transaction.fn-CYC2Uh5Y.js → transaction.fn-BkF4Ad2z.js} +2 -2
- package/dist/{trigger-CtlvsU7_.js → trigger-CxpXoQJO.js} +5 -5
- package/dist/{useMarketingMaterialActions-Dec-VZh7.js → useMarketingMaterialActions-p0-fyMkm.js} +3 -3
- package/dist/{usePagination-DvJ9IfI_.js → usePagination-CrC-1v4L.js} +1 -1
- package/dist/{user-CYOAXuDw.js → user-CrylHgF1.js} +1 -1
- package/dist/{vue-i18n-Cy0bIZpQ.js → vue-i18n-BjtkXdmG.js} +158 -158
- package/dist/{xlsx-Ct_b6gSU.js → xlsx-CJNYF7-l.js} +166 -166
- package/dist/{zod-DZR76_dr.js → zod-Dzn9S95S.js} +1 -1
- package/package.json +1 -1
- package/dist/Voucher-BcCzreI3.js +0 -443
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { defineComponent as H, ref as b, resolveComponent as p, openBlock as y, createBlock as T, unref as a, isRef as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { p as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { g as
|
|
10
|
-
import { u as
|
|
11
|
-
import { e as K } from "./effect-
|
|
1
|
+
import { defineComponent as H, ref as b, resolveComponent as p, openBlock as y, createBlock as T, unref as a, isRef as ae, withCtx as V, createElementVNode as r, createVNode as s, computed as ie, h as O, onMounted as se, createElementBlock as A, Fragment as L, renderList as re, resolveDynamicComponent as le, toDisplayString as P } from "vue";
|
|
2
|
+
import { _ as ce } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as me, components as M } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as D } from "./plugins-CCibSJZa.js";
|
|
5
|
+
import { u as ue } from "./loading-rIhCiB_S.js";
|
|
6
|
+
import { u as pe } from "./business-CbqG6NXr.js";
|
|
7
|
+
import { u as de } from "./campaign-Rj7oDBnN.js";
|
|
8
|
+
import { u as fe } from "./vue-i18n-BjtkXdmG.js";
|
|
9
|
+
import { g as ye, a as q } from "./campaign-Co4Lq-Wz.js";
|
|
10
|
+
import { u as ge, c as he, p as _e } from "./template-BeCVA0-N.js";
|
|
11
|
+
import { e as K } from "./effect-B_91OlcX.js";
|
|
12
12
|
import { c as E } from "./string-Gcy5IM_H.js";
|
|
13
|
-
import "./index-
|
|
14
|
-
import { _ as
|
|
15
|
-
import { c as g } from "./index-
|
|
13
|
+
import "./index-CDm0BWa3.js";
|
|
14
|
+
import { _ as we } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js";
|
|
15
|
+
import { c as g } from "./index-CzYxnDWP.js";
|
|
16
16
|
import { _ as Q } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
17
|
+
import { u as ve } from "./onboardingSetup-D9xhdgS3.js";
|
|
18
|
+
import { useRouter as be } from "vue-router";
|
|
19
|
+
import { R as Ce } from "./app-QxosLNkH.js";
|
|
20
|
+
const Se = { class: "space-y-8" }, ke = /* @__PURE__ */ H({
|
|
20
21
|
__name: "QueueSheet",
|
|
21
22
|
emits: ["update:model-value"],
|
|
22
|
-
setup(z, { expose: n, emit:
|
|
23
|
+
setup(z, { expose: n, emit: B }) {
|
|
23
24
|
const d = b(!1), w = b([]);
|
|
24
|
-
async function
|
|
25
|
+
async function I() {
|
|
25
26
|
d.value = !0;
|
|
26
27
|
const i = await g.getPromotionQueue();
|
|
27
28
|
console.log(i, "jobs"), w.value = i;
|
|
@@ -44,20 +45,20 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
44
45
|
}
|
|
45
46
|
];
|
|
46
47
|
return n({
|
|
47
|
-
showSheet:
|
|
48
|
+
showSheet: I
|
|
48
49
|
}), (i, u) => {
|
|
49
|
-
const v = p("FmTable"),
|
|
50
|
-
return y(), T(
|
|
50
|
+
const v = p("FmTable"), R = p("FmSideSheet");
|
|
51
|
+
return y(), T(R, {
|
|
51
52
|
"max-width": 550,
|
|
52
53
|
header: "Promotion Sync Queue",
|
|
53
54
|
modelValue: a(d),
|
|
54
55
|
"onUpdate:modelValue": [
|
|
55
|
-
u[1] || (u[1] = (f) =>
|
|
56
|
+
u[1] || (u[1] = (f) => ae(d) ? d.value = f : null),
|
|
56
57
|
u[2] || (u[2] = (f) => d.value = f)
|
|
57
58
|
]
|
|
58
59
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
r("div",
|
|
60
|
+
default: V(() => [
|
|
61
|
+
r("div", Se, [
|
|
61
62
|
u[3] || (u[3] = r("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Promotion synchronizing to your restaurant(s) is queued here. Depending on the number of campaigns and restaurants, this process may take several minutes. No task displayed here means there are no pending promotions to sync. ", -1)),
|
|
62
63
|
s(v, {
|
|
63
64
|
modelValue: i.tableRef,
|
|
@@ -73,10 +74,10 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
73
74
|
}, 8, ["modelValue"]);
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
|
-
}),
|
|
77
|
+
}), xe = { class: "px-24 flex flex-col gap-y-16" }, Fe = { class: "flex items-center justify-between w-full" }, Oe = { class: "flex gap-8 overflow-x-auto" }, Pe = { class: "space-y-8" }, Te = { class: "flex w-full gap-4 items-center" }, Ve = { class: "space-y-4" }, Ie = { class: "fm-typo-en-body-lg-600" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = { class: "flex items-center gap-8" }, Le = { class: "flex flex-col gap-16 text-center" }, Me = { class: "fm-typo-en-title-sm-800" }, Be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, to = /* @__PURE__ */ H({
|
|
77
78
|
__name: "Promotion",
|
|
78
79
|
setup(z) {
|
|
79
|
-
const { t: n } =
|
|
80
|
+
const { t: n } = fe(), B = {
|
|
80
81
|
label: n("connect.promotion.createCampaign"),
|
|
81
82
|
value: "create",
|
|
82
83
|
isPrimary: !0,
|
|
@@ -91,7 +92,7 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
91
92
|
value: "queue",
|
|
92
93
|
isPrimary: !1,
|
|
93
94
|
prependIcon: "work_history"
|
|
94
|
-
},
|
|
95
|
+
}, I = ge("PROMOTION", me()), C = pe(), i = de(), { global: u, minor: v } = ue, R = be(), f = [
|
|
95
96
|
{
|
|
96
97
|
label: "Bill promotion",
|
|
97
98
|
value: "BILL"
|
|
@@ -119,7 +120,7 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
119
120
|
const m = (x = (l = e.effect) == null ? void 0 : l.options) == null ? void 0 : x.target;
|
|
120
121
|
return o.includes(m);
|
|
121
122
|
}
|
|
122
|
-
const
|
|
123
|
+
const h = ie(
|
|
123
124
|
() => i.campaigns.promotion.filter(
|
|
124
125
|
(e) => G(e) && Y(e)
|
|
125
126
|
)
|
|
@@ -130,7 +131,7 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
130
131
|
},
|
|
131
132
|
{
|
|
132
133
|
header: n("connect.promotion.status"),
|
|
133
|
-
accessorFn: (e) =>
|
|
134
|
+
accessorFn: (e) => ye(e),
|
|
134
135
|
cell(e) {
|
|
135
136
|
return q(e.row.original);
|
|
136
137
|
}
|
|
@@ -146,24 +147,24 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
146
147
|
{
|
|
147
148
|
header: n("connect.promotion.actions"),
|
|
148
149
|
cell(e) {
|
|
149
|
-
return
|
|
150
|
-
|
|
150
|
+
return O("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
151
|
+
O(M.FmButton, {
|
|
151
152
|
variant: "tertiary",
|
|
152
153
|
icon: "insights",
|
|
153
154
|
iconColor: "neutral-gray-400",
|
|
154
155
|
onClick: async (o) => {
|
|
155
|
-
o.stopPropagation(), await
|
|
156
|
+
o.stopPropagation(), await U(e.row.original);
|
|
156
157
|
}
|
|
157
158
|
}),
|
|
158
|
-
|
|
159
|
+
O(M.FmButton, {
|
|
159
160
|
variant: "tertiary",
|
|
160
161
|
icon: "content_copy",
|
|
161
162
|
iconColor: "neutral-gray-400",
|
|
162
163
|
onClick: async (o) => {
|
|
163
|
-
o.stopPropagation(), await
|
|
164
|
+
o.stopPropagation(), await j(e.row.original);
|
|
164
165
|
}
|
|
165
166
|
}),
|
|
166
|
-
|
|
167
|
+
O(M.FmButton, {
|
|
167
168
|
variant: "tertiary",
|
|
168
169
|
icon: "delete",
|
|
169
170
|
iconColor: "neutral-gray-400",
|
|
@@ -174,9 +175,9 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
174
175
|
]);
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
|
-
],
|
|
178
|
+
], S = b(), N = b();
|
|
178
179
|
async function $(e) {
|
|
179
|
-
await
|
|
180
|
+
await D.remove(
|
|
180
181
|
n("connect.promotion.confirmRemove", { name: e.name })
|
|
181
182
|
) && await v(
|
|
182
183
|
async () => {
|
|
@@ -191,12 +192,12 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
191
192
|
);
|
|
192
193
|
}
|
|
193
194
|
async function k(e) {
|
|
194
|
-
e ? await o() :
|
|
195
|
+
e ? await o() : I.open(async (m) => {
|
|
195
196
|
await o(m);
|
|
196
197
|
});
|
|
197
198
|
async function o(m) {
|
|
198
199
|
var l;
|
|
199
|
-
(l =
|
|
200
|
+
(l = S.value) == null || l.showSheet(
|
|
200
201
|
!0,
|
|
201
202
|
"PROMOTION",
|
|
202
203
|
e ? await g.readById(e._id) : void 0,
|
|
@@ -204,18 +205,18 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
204
205
|
);
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
|
-
async function
|
|
208
|
-
await
|
|
209
|
-
name:
|
|
208
|
+
async function U(e) {
|
|
209
|
+
await R.push({
|
|
210
|
+
name: Ce["$connect-CAMPAIGN_PROMOTION_ANALYTIC"],
|
|
210
211
|
params: { id: e._id }
|
|
211
212
|
});
|
|
212
213
|
}
|
|
213
|
-
async function
|
|
214
|
+
async function j(e) {
|
|
214
215
|
var l;
|
|
215
|
-
if (!await
|
|
216
|
+
if (!await he(e.name))
|
|
216
217
|
return;
|
|
217
218
|
const o = await g.readById(e._id), m = _e(o);
|
|
218
|
-
(l =
|
|
219
|
+
(l = S.value) == null || l.showSheet(
|
|
219
220
|
!0,
|
|
220
221
|
"PROMOTION",
|
|
221
222
|
m,
|
|
@@ -244,7 +245,7 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
244
245
|
k();
|
|
245
246
|
break;
|
|
246
247
|
case "sync":
|
|
247
|
-
await
|
|
248
|
+
await D.confirm(
|
|
248
249
|
"Are you sure you want to synchronize all promotions to POS?",
|
|
249
250
|
"Force sync"
|
|
250
251
|
) && v(
|
|
@@ -262,19 +263,21 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
262
263
|
break;
|
|
263
264
|
}
|
|
264
265
|
}
|
|
265
|
-
|
|
266
|
+
const Z = ve();
|
|
267
|
+
return se(async () => {
|
|
268
|
+
var e;
|
|
266
269
|
await u(async () => {
|
|
267
270
|
await C.readLocations(), await i.read("PROMOTION");
|
|
268
|
-
});
|
|
271
|
+
}), await Z.consume() === "PROMOTION_CUSTOM" && ((e = S.value) == null || e.showSheet(!0, "PROMOTION"));
|
|
269
272
|
}), (e, o) => {
|
|
270
|
-
const m = p("FmPageHead"), l = p("FmSearch"), x = p("FmTable"),
|
|
273
|
+
const m = p("FmPageHead"), l = p("FmSearch"), x = p("FmTable"), ee = p("FmChip"), F = p("FmButton"), oe = p("FmListItem"), te = p("FmList"), ne = p("FmCard");
|
|
271
274
|
return y(), A(L, null, [
|
|
272
275
|
s(m, {
|
|
273
276
|
title: a(n)("connect.promotion.title"),
|
|
274
|
-
actions: a(
|
|
277
|
+
actions: a(h).length > 0 ? [B, d, w] : [],
|
|
275
278
|
"onClick:action": X
|
|
276
279
|
}, null, 8, ["title", "actions"]),
|
|
277
|
-
r("div",
|
|
280
|
+
r("div", xe, [
|
|
278
281
|
s(l, {
|
|
279
282
|
modelValue: c.value.searchKey,
|
|
280
283
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => c.value.searchKey = t),
|
|
@@ -282,9 +285,9 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
282
285
|
placeholder: a(n)("connect.promotion.search"),
|
|
283
286
|
collapsible: ""
|
|
284
287
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
285
|
-
a(
|
|
286
|
-
r("div",
|
|
287
|
-
r("div",
|
|
288
|
+
a(h) && a(h).length > 0 ? (y(), A(L, { key: 0 }, [
|
|
289
|
+
r("div", Fe, [
|
|
290
|
+
r("div", Oe, [
|
|
288
291
|
s(Q, {
|
|
289
292
|
label: `${a(n)("connect.common.location")}: `,
|
|
290
293
|
"right-icon": "keyboard_arrow_down",
|
|
@@ -314,59 +317,59 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
314
317
|
]),
|
|
315
318
|
s(x, {
|
|
316
319
|
class: "xs:hidden sm:hidden",
|
|
317
|
-
"row-data": a(
|
|
320
|
+
"row-data": a(h),
|
|
318
321
|
"column-defs": J,
|
|
319
322
|
"search-value": c.value.searchKey,
|
|
320
323
|
"column-filter": [],
|
|
321
324
|
onRowClick: o[4] || (o[4] = (t) => k(t.original)),
|
|
322
|
-
"hide-footer": a(
|
|
325
|
+
"hide-footer": a(h).length < 10
|
|
323
326
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
324
|
-
s(
|
|
325
|
-
default:
|
|
326
|
-
(y(!0), A(L, null,
|
|
327
|
+
s(te, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
328
|
+
default: V(() => [
|
|
329
|
+
(y(!0), A(L, null, re(a(h).filter(
|
|
327
330
|
(t) => t.name.toLowerCase().includes(c.value.searchKey.toLowerCase())
|
|
328
|
-
), (t) => (y(), T(
|
|
331
|
+
), (t) => (y(), T(oe, {
|
|
329
332
|
key: t._id.toString(),
|
|
330
|
-
onClick: (
|
|
333
|
+
onClick: (_) => k(t),
|
|
331
334
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
332
335
|
}, {
|
|
333
|
-
default:
|
|
334
|
-
r("div",
|
|
335
|
-
r("div",
|
|
336
|
-
(y(), T(
|
|
337
|
-
s(
|
|
336
|
+
default: V(() => [
|
|
337
|
+
r("div", Pe, [
|
|
338
|
+
r("div", Te, [
|
|
339
|
+
(y(), T(le(a(q)(t)))),
|
|
340
|
+
s(ee, {
|
|
338
341
|
class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
339
342
|
compact: !0,
|
|
340
343
|
label: `${a(E).title(t.effect.options.target)} promotion`
|
|
341
344
|
}, null, 8, ["label"])
|
|
342
345
|
]),
|
|
343
|
-
r("div",
|
|
344
|
-
r("div",
|
|
345
|
-
r("div",
|
|
346
|
+
r("div", Ve, [
|
|
347
|
+
r("div", Ie, P(t.name), 1),
|
|
348
|
+
r("div", Re, P(a(K)(t.effect)), 1)
|
|
346
349
|
])
|
|
347
350
|
]),
|
|
348
|
-
r("div",
|
|
351
|
+
r("div", Ae, [
|
|
349
352
|
s(F, {
|
|
350
353
|
icon: "insights",
|
|
351
354
|
"icon-color": "neutral-gray-400",
|
|
352
355
|
variant: "tertiary",
|
|
353
|
-
onClick: async (
|
|
354
|
-
|
|
356
|
+
onClick: async (_) => {
|
|
357
|
+
_.stopPropagation(), await U(t);
|
|
355
358
|
}
|
|
356
359
|
}, null, 8, ["onClick"]),
|
|
357
360
|
s(F, {
|
|
358
361
|
icon: "content_copy",
|
|
359
362
|
"icon-color": "neutral-gray-400",
|
|
360
363
|
variant: "tertiary",
|
|
361
|
-
onClick: async (
|
|
362
|
-
|
|
364
|
+
onClick: async (_) => {
|
|
365
|
+
_.stopPropagation(), await j(t);
|
|
363
366
|
}
|
|
364
367
|
}, null, 8, ["onClick"]),
|
|
365
368
|
s(F, {
|
|
366
369
|
icon: "delete",
|
|
367
370
|
"icon-color": "neutral-gray-400",
|
|
368
371
|
variant: "tertiary",
|
|
369
|
-
onClick: (
|
|
372
|
+
onClick: (_) => (_.stopPropagation(), $(t))
|
|
370
373
|
}, null, 8, ["onClick"])
|
|
371
374
|
])
|
|
372
375
|
]),
|
|
@@ -375,19 +378,19 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
375
378
|
]),
|
|
376
379
|
_: 1
|
|
377
380
|
})
|
|
378
|
-
], 64)) : (y(), T(
|
|
381
|
+
], 64)) : (y(), T(ne, {
|
|
379
382
|
key: 1,
|
|
380
383
|
variant: "outlined",
|
|
381
384
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
382
385
|
}, {
|
|
383
|
-
default:
|
|
386
|
+
default: V(() => [
|
|
384
387
|
o[6] || (o[6] = r("img", {
|
|
385
|
-
src:
|
|
388
|
+
src: ce,
|
|
386
389
|
class: "aspect-square w-[150px]"
|
|
387
390
|
}, null, -1)),
|
|
388
|
-
r("div",
|
|
389
|
-
r("div",
|
|
390
|
-
r("div",
|
|
391
|
+
r("div", Le, [
|
|
392
|
+
r("div", Me, P(a(n)("connect.promotion.createPromotionCampaign")), 1),
|
|
393
|
+
r("div", Be, P(a(n)("connect.promotion.description")), 1)
|
|
391
394
|
]),
|
|
392
395
|
s(F, {
|
|
393
396
|
variant: "primary",
|
|
@@ -399,12 +402,12 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
399
402
|
_: 1
|
|
400
403
|
}))
|
|
401
404
|
]),
|
|
402
|
-
s(
|
|
405
|
+
s(we, {
|
|
403
406
|
ref_key: "sheetRef",
|
|
404
|
-
ref:
|
|
407
|
+
ref: S,
|
|
405
408
|
"onSubmit:modelValue": W
|
|
406
409
|
}, null, 512),
|
|
407
|
-
s(
|
|
410
|
+
s(ke, {
|
|
408
411
|
ref_key: "queueSheetRef",
|
|
409
412
|
ref: N
|
|
410
413
|
}, null, 512)
|
|
@@ -413,5 +416,5 @@ const be = { class: "space-y-8" }, Ce = /* @__PURE__ */ H({
|
|
|
413
416
|
}
|
|
414
417
|
});
|
|
415
418
|
export {
|
|
416
|
-
|
|
419
|
+
to as default
|
|
417
420
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { defineComponent as h, h as n, ref as A, watch as B, onBeforeMount as U, resolveComponent as V, openBlock as z, createElementBlock as O, Fragment as q, createVNode as m, unref as o, createElementVNode as g } from "vue";
|
|
2
|
-
import { u as L, _ as Y } from "./usePagination-
|
|
2
|
+
import { u as L, _ as Y } from "./usePagination-CrC-1v4L.js";
|
|
3
3
|
import { _ as S } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
4
4
|
import { c as u } from "./string-Gcy5IM_H.js";
|
|
5
|
-
import { c as G } from "./plugins-
|
|
5
|
+
import { c as G } from "./plugins-CCibSJZa.js";
|
|
6
6
|
import { useDialog as K, components as b } from "@feedmepos/ui-library";
|
|
7
|
-
import { J as c, k as d } from "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
7
|
+
import { J as c, k as d } from "./index-Df4l6y-S.js";
|
|
8
|
+
import "./index-DlGnYR5y.js";
|
|
9
|
+
import "./index-uuNGb1nv.js";
|
|
10
|
+
import "./index-Cp7oHMm3.js";
|
|
11
|
+
import "./index-BZ2b0Pk6.js";
|
|
12
|
+
import "./index-BWgc2-Qz.js";
|
|
12
13
|
import { h as y } from "./moment-D7p2TMB-.js";
|
|
13
|
-
import { u as j } from "./vue-i18n-
|
|
14
|
-
import { u as H, v as W, w as $ } from "./index.esm2017-
|
|
14
|
+
import { u as j } from "./vue-i18n-BjtkXdmG.js";
|
|
15
|
+
import { u as H, v as W, w as $ } from "./index.esm2017-B72iWwk_.js";
|
|
15
16
|
import { useRoute as J } from "vue-router";
|
|
16
|
-
import { g as Q, S as X, u as Z } from "./index-
|
|
17
|
+
import { g as Q, S as X, u as Z } from "./index-CWUmrVo_.js";
|
|
17
18
|
import { o as ee } from "./objectId-dwaoBfJX.js";
|
|
18
19
|
const te = () => {
|
|
19
20
|
if (!X.getBusinessId()) throw new Error("Invalid business ID");
|
|
@@ -28,7 +29,7 @@ const te = () => {
|
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
var ae = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
|
|
31
|
-
const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-center justify-between" }, se = { class: "flex gap-8 items-center w-full overflow-x-scroll" },
|
|
32
|
+
const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-center justify-between" }, se = { class: "flex gap-8 items-center w-full overflow-x-scroll" }, ve = /* @__PURE__ */ h({
|
|
32
33
|
__name: "Queue",
|
|
33
34
|
setup(p) {
|
|
34
35
|
const x = J().query.type, { t: E } = j(), v = K(), D = [
|
|
@@ -256,5 +257,5 @@ const re = { class: "p-24 flex flex-col gap-y-2" }, ne = { class: "flex items-ce
|
|
|
256
257
|
}
|
|
257
258
|
});
|
|
258
259
|
export {
|
|
259
|
-
|
|
260
|
+
ve as default
|
|
260
261
|
};
|
|
@@ -2,19 +2,19 @@ var q = Object.defineProperty;
|
|
|
2
2
|
var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : g[o] = m;
|
|
3
3
|
var z = (g, o, m) => G(g, typeof o != "symbol" ? o + "" : o, m);
|
|
4
4
|
import { defineComponent as T, ref as B, computed as H, resolveComponent as C, openBlock as I, createBlock as J, unref as n, isRef as Q, withCtx as X, createElementBlock as U, createVNode as w, withModifiers as Z, createCommentVNode as ee, createElementVNode as N, h, onMounted as re, Fragment as te } from "vue";
|
|
5
|
-
import { u as oe, _ as ae } from "./usePagination-
|
|
6
|
-
import { g as A } from "./user-
|
|
5
|
+
import { u as oe, _ as ae } from "./usePagination-CrC-1v4L.js";
|
|
6
|
+
import { g as A } from "./user-CrylHgF1.js";
|
|
7
7
|
import { components as R } from "@feedmepos/ui-library";
|
|
8
|
-
import "./index-
|
|
9
|
-
import { u as j } from "./vue-i18n-
|
|
10
|
-
import { u as L } from "./loading-
|
|
8
|
+
import "./index-uuNGb1nv.js";
|
|
9
|
+
import { u as j } from "./vue-i18n-BjtkXdmG.js";
|
|
10
|
+
import { u as L } from "./loading-rIhCiB_S.js";
|
|
11
11
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
12
|
-
import { r as v } from "./index-
|
|
12
|
+
import { r as v } from "./index-C_1iqF1Q.js";
|
|
13
13
|
import { c as ie, a as ne } from "./object-BYyQ0PZp.js";
|
|
14
|
-
import { u as ce } from "./membership-
|
|
14
|
+
import { u as ce } from "./membership-DkJN7jyQ.js";
|
|
15
15
|
import { c as le } from "./string-Gcy5IM_H.js";
|
|
16
|
-
import { c as de } from "./plugins-
|
|
17
|
-
import { u as V, w as me } from "./xlsx-
|
|
16
|
+
import { c as de } from "./plugins-CCibSJZa.js";
|
|
17
|
+
import { u as V, w as me } from "./xlsx-CJNYF7-l.js";
|
|
18
18
|
import { e as f } from "./index-vh86FiIQ.js";
|
|
19
19
|
import { h as ue } from "./moment-D7p2TMB-.js";
|
|
20
20
|
import { o as pe } from "./objectId-dwaoBfJX.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, computed as v, resolveComponent as n, openBlock as f, createElementBlock as E, Fragment as R, createVNode as a, unref as l, createElementVNode as s } from "vue";
|
|
2
|
-
import { u as b } from "./vue-i18n-
|
|
3
|
-
import { R as r } from "./app-
|
|
2
|
+
import { u as b } from "./vue-i18n-BjtkXdmG.js";
|
|
3
|
+
import { R as r } from "./app-QxosLNkH.js";
|
|
4
4
|
import { useRouter as V } from "vue-router";
|
|
5
5
|
const w = { class: "flex flex-col" }, T = { class: "px-24" }, S = /* @__PURE__ */ d({
|
|
6
6
|
__name: "Review",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as C, computed as M, openBlock as l, createElementBlock as g, normalizeClass as j, createElementVNode as u, createBlock as T, unref as e, toDisplayString as h, createCommentVNode as S, createVNode as y, onMounted as B, ref as P, Fragment as $, renderList as U, resolveComponent as z, isRef as V } from "vue";
|
|
2
|
-
import { u as R } from "./vue-i18n-
|
|
2
|
+
import { u as R } from "./vue-i18n-BjtkXdmG.js";
|
|
3
3
|
import { components as I } from "@feedmepos/ui-library";
|
|
4
|
-
import { r as L } from "./index-
|
|
5
|
-
import { u as A } from "./business-
|
|
6
|
-
import { _ as H } from "./LocationPicker.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { R as D } from "./app-
|
|
4
|
+
import { r as L } from "./index-xuFTeVrb.js";
|
|
5
|
+
import { u as A } from "./business-CbqG6NXr.js";
|
|
6
|
+
import { _ as H } from "./LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js";
|
|
7
|
+
import { R as D } from "./app-QxosLNkH.js";
|
|
8
8
|
import { useRouter as G } from "vue-router";
|
|
9
9
|
const O = ["src"], W = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, q = {
|
|
10
10
|
key: 2,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as E, onMounted as T, ref as w, computed as B, openBlock as d, createElementBlock as p, Fragment as F, renderList as j, normalizeClass as z, unref as e, createElementVNode as m, createVNode as u, toDisplayString as y, createCommentVNode as S, createBlock as P, resolveComponent as U, isRef as V } from "vue";
|
|
2
|
-
import { u as A } from "./vue-i18n-
|
|
2
|
+
import { u as A } from "./vue-i18n-BjtkXdmG.js";
|
|
3
3
|
import { components as v } from "@feedmepos/ui-library";
|
|
4
|
-
import { r as C } from "./index-
|
|
5
|
-
import { u as H } from "./business-
|
|
6
|
-
import { _ as D } from "./LocationPicker.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { R as O } from "./app-
|
|
4
|
+
import { r as C } from "./index-xuFTeVrb.js";
|
|
5
|
+
import { u as H } from "./business-CbqG6NXr.js";
|
|
6
|
+
import { _ as D } from "./LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js";
|
|
7
|
+
import { R as O } from "./app-QxosLNkH.js";
|
|
8
8
|
import { useRouter as W } from "vue-router";
|
|
9
9
|
const q = { class: "flex flex-col gap-8" }, J = ["onClick"], K = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, Q = {
|
|
10
10
|
key: 0,
|