@feedmepos/mf-connect 0.1.14-prod → 0.1.16-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/{Analytic-MRp7gtO3.js → Analytic-9_JkMO2c.js} +18 -17
- package/dist/{App-BU3B2A-F.js → App-DfbUtaeM.js} +68 -64
- package/dist/Bin-BoolyqZn.js +165 -0
- package/dist/{Broadcast-DmciJlSU.js → Broadcast-8UwFqqzp.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DJPOgBXj.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CjoVXqOG.js} +6 -7
- package/dist/{Card-Dq2cAgTi.js → Card-BFEc9Zgu.js} +78 -79
- package/dist/{Collections-B4x4VH1a.js → Collections-DqlqGVcv.js} +5 -5
- package/dist/{Credit-CVdT1KBU.js → Credit-BuKQEMU2.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BmjXu-U7.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjCVR7D4.js} +27 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-A_uosv-g.js → EffectSheet.vue_vue_type_style_index_0_lang-DXBqS4zs.js} +8 -8
- package/dist/{Experience-CEeXWbue.js → Experience-BTf5f-Kb.js} +8 -8
- package/dist/{Game-mx5c5ZhV.js → Game-Ci_39vHg.js} +8 -8
- package/dist/{Index-DQ1qadwz.js → Index-8JLenrzT.js} +9 -9
- package/dist/{Marketing-CciBZijv.js → Marketing-XAmIlYCx.js} +5 -5
- package/dist/{Member-C51SlKxj.js → Member-Bvxgoep1.js} +4 -4
- package/dist/MemberList-BvX98Yt-.js +1596 -0
- package/dist/MemberTransactions-DJt3aJ-h.js +45 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DZu24zwy.js → MessageInput.vue_vue_type_script_setup_true_lang-OFqra1ac.js} +45 -33
- package/dist/{Mission-LpCnpKYD.js → Mission-D_CqN5Es.js} +8 -8
- package/dist/{Overview-DxvOqUao.js → Overview-FRebjePW.js} +62 -63
- package/dist/{Point-BmI7y6h6.js → Point-C_amiOK4.js} +8 -8
- package/dist/{Promotion-MHaOqrwu.js → Promotion-qt_pE8uB.js} +9 -9
- package/dist/{Record-75BxMATe.js → Record-2eAijNwr.js} +6 -6
- package/dist/{Reward-8VfyFuEt.js → Reward-DLNijsC9.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D12_r-9X.js → RewardGroup.vue_vue_type_script_setup_true_lang-dsxs4d5k.js} +12 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BIdBxvN7.js → RuleGroup.vue_vue_type_script_setup_true_lang-BZ4ORSgp.js} +14 -15
- package/dist/{Segment-I9FUibZy.js → Segment-QKuGmThT.js} +13 -13
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BGeR0-AG.js → SelectItems.vue_vue_type_script_setup_true_lang-C02QXf6B.js} +2 -2
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DXpzjbIh.js +147 -0
- package/dist/Setting-GTro0uCw.js +1877 -0
- package/dist/{Store-CQkGNSSm.js → Store-CTxmlEVr.js} +55 -56
- package/dist/{StoreRewards-DOtjveqw.js → StoreRewards-Bm9NXXH2.js} +12 -12
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Cf9IsQXS.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CrxFaBDj.js} +321 -354
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DPmeW62s.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cf2JpXND.js} +1 -1
- package/dist/{Tier-DAj_5abZ.js → Tier-CB64ZbLz.js} +20 -21
- package/dist/{Title-DryO4wcO.js → Title-62HEE-nU.js} +20 -21
- package/dist/{Transaction-DpibVFU-.js → Transaction-CK9Igmnp.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DoiPRPPo.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DJB9g9bg.js} +6 -6
- package/dist/Voucher-CZLp6Mfd.js +353 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DRnVggfC.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DKunt5iP.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzBcsSYS.js → ZodTextField.vue_vue_type_script_setup_true_lang-CP0wAVaD.js} +1 -1
- package/dist/{app-BoQTcBOD.js → app-BsOd2LLI.js} +651 -615
- package/dist/{app-BzPle2EI.js → app-D7g1W_8e.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-H9a63ymR.js → business-e0ErhqsW.js} +1 -1
- package/dist/{dto-BBLfD0Lh.js → campaign-CcRs_0FM.js} +610 -819
- package/dist/{campaign-CR-16mwD.js → campaign-CcdO3quq.js} +2 -2
- package/dist/{campaign.enum-DcaetYuk.js → campaign.enum-DSB0ntaX.js} +1 -1
- package/dist/{campaign.fn-BqGZqM77.js → campaign.fn-BSxLDscM.js} +133 -133
- package/dist/{collectible.enum-YKtiwQbt.js → collectible.enum-DR19JADq.js} +3 -3
- package/dist/{collection.fn-CI8lSAsC.js → collection.fn-Bm_oNhCa.js} +2 -2
- package/dist/dto-3LqyQCjQ.js +214 -0
- package/dist/{effect-36H79d0n.js → effect-BuC4ddqL.js} +1 -1
- package/dist/{email-addresses-drrACeqJ.js → email-addresses-FxQM5JQh.js} +1 -1
- package/dist/{export-BgnO3lJs.js → export-DB_vSJ5r.js} +5 -5
- package/dist/{helper-CcV9DZXq.js → helper-Czc_ykUT.js} +1 -1
- package/dist/index-0EgN5Vaf.js +115 -0
- package/dist/{index-Cidu1YZP.js → index-B-gmFyeP.js} +5 -5
- package/dist/{index-CB1CnEOn.js → index-C2Y3Z6cQ.js} +1 -1
- package/dist/{index-mgoYj6L9.js → index-CavK1FD8.js} +1 -1
- package/dist/{index-BEDXujqZ.js → index-DF7DfJ1p.js} +1 -1
- package/dist/{index-DydNNBhY.js → index-DJmQQbIZ.js} +29 -4
- package/dist/{index-CibFRBGu.js → index-DP1XHU5I.js} +6 -6
- package/dist/{index-BRTpdfj3.js → index-DTirkGj1.js} +2057 -1010
- package/dist/{index-ZycLk3NR.js → index-Dc_5fMdM.js} +1 -1
- package/dist/index-Dvp6UpsY.js +44 -0
- package/dist/{index-BPbhXWRp.js → index-KXIH9y_C.js} +12 -13
- package/dist/{index-DLAAi9ur.js → index-o3ez16Wf.js} +3 -3
- package/dist/{index.esm2017-QS_XhcBp.js → index.esm2017-DsCfyosK.js} +1 -1
- package/dist/{loading-LktVwV5k.js → loading-CsMKK-RP.js} +4 -4
- package/dist/{membership-7ETvXph3.js → membership-ChU9QHZQ.js} +6 -6
- package/dist/{money-BYszknw8.js → money-CG2aMqwR.js} +1 -1
- package/dist/{number-Dmd4vT4F.js → number-DOiTymUW.js} +1 -1
- package/dist/{objectid-BQtSeCVi.js → objectid-DEgIJB4V.js} +4 -4
- package/dist/{reward-DJGOX-D1.js → reward-bezIYRz1.js} +1 -1
- package/dist/{rule-D7jM4gdg.js → rule-BXvIZA60.js} +3 -3
- package/dist/{rule-builder-FO9UeYUJ.js → rule-builder-BD_t-4Oq.js} +1 -1
- package/dist/{template-C4Ddrpk1.js → template-CYa8Yqzb.js} +4 -4
- package/dist/{trigger-w7Q4qOMB.js → trigger-B2Ihm351.js} +13 -13
- package/dist/{usePagination-PH1OvyZM.js → usePagination-Dus-uVGw.js} +1 -1
- package/dist/{user-DRPXRVy2.js → user-BkIvuR0M.js} +1 -1
- package/dist/{vue-i18n-B49HKiTU.js → vue-i18n-BOO66JER.js} +112 -112
- package/package.json +1 -1
- package/dist/MemberList-D1x731cU.js +0 -1043
- package/dist/MemberTransactions-BpoTQHFQ.js +0 -38
- package/dist/Setting-B8V2I0EZ.js +0 -1871
- package/dist/Voucher-CSc0_dGX.js +0 -491
- package/dist/index-6RqtavHk.js +0 -1051
- package/dist/index-B5ii6hOh.js +0 -99
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as j, resolveComponent as h, openBlock as g, createBlock as I, withCtx as T, createElementVNode as x, createElementBlock as D, createVNode as r, createCommentVNode as A, toDisplayString as L, unref as e, Fragment as X, renderList as re, ref as R, isRef as ne, reactive as
|
|
1
|
+
import { defineComponent as ee, computed as j, resolveComponent as h, openBlock as g, createBlock as I, withCtx as T, createElementVNode as x, createElementBlock as D, createVNode as r, createCommentVNode as A, toDisplayString as L, unref as e, Fragment as X, renderList as re, ref as R, isRef as ne, reactive as He, onMounted as fe, watch as we, toRaw as qe, createTextVNode as de, h as Ke } from "vue";
|
|
2
2
|
import { _ as We } from "./tier-BJDhpH6X.js";
|
|
3
3
|
import { useDialog as Ae, useDialogChild as Me, components as ze } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as B, e as Ce, S as Ye } from "./index-
|
|
5
|
-
import { d as se, a as Je, p as he, u as Ee, n as Ge, f as Fe } from "./loading-
|
|
6
|
-
import { u as $e, C as me } from "./membership-
|
|
4
|
+
import { c as B, e as Ce, S as Ye } from "./index-o3ez16Wf.js";
|
|
5
|
+
import { d as se, a as Je, p as he, u as Ee, n as Ge, f as Fe } from "./loading-CsMKK-RP.js";
|
|
6
|
+
import { u as $e, C as me } from "./membership-ChU9QHZQ.js";
|
|
7
7
|
import { a as Xe, c as Ne } from "./object-qECH92oz.js";
|
|
8
8
|
import { _ as ue } from "./lodash-B5I3zXaY.js";
|
|
9
|
-
import { u as be } from "./vue-i18n-
|
|
9
|
+
import { u as be } from "./vue-i18n-BOO66JER.js";
|
|
10
10
|
import { Z, g as J, a as G } from "./zod-Bg2FbC-D.js";
|
|
11
|
-
import { z as Q, R as Ze } from "./app-
|
|
12
|
-
import {
|
|
11
|
+
import { z as Q, R as Ze } from "./app-BsOd2LLI.js";
|
|
12
|
+
import { k as Qe, l as et, m as tt, n as Oe, o as ot } from "./index-DTirkGj1.js";
|
|
13
13
|
import { u as xe } from "./app-wDQR6dpb.js";
|
|
14
|
-
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { _ as te } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CP0wAVaD.js";
|
|
15
15
|
import { J as ke } from "./JsonViewer-v8_C7l5N.js";
|
|
16
|
-
import { _ as nt } from "./index-
|
|
16
|
+
import { _ as nt } from "./index-DP1XHU5I.js";
|
|
17
17
|
import { _ as lt } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
18
18
|
import { _ as at } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
19
|
-
import { z as st, a as rt } from "./money-
|
|
20
|
-
import { F as it } from "./number-
|
|
21
|
-
import { t as dt } from "./helper-
|
|
22
|
-
import "./index-
|
|
23
|
-
import "./index-
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import { m as
|
|
28
|
-
import { m as _e } from "./index-DydNNBhY.js";
|
|
19
|
+
import { z as st, a as rt } from "./money-CG2aMqwR.js";
|
|
20
|
+
import { F as it } from "./number-DOiTymUW.js";
|
|
21
|
+
import { t as dt } from "./helper-Czc_ykUT.js";
|
|
22
|
+
import "./index-C2Y3Z6cQ.js";
|
|
23
|
+
import "./index-KXIH9y_C.js";
|
|
24
|
+
import "./index-CavK1FD8.js";
|
|
25
|
+
import "./index-B-gmFyeP.js";
|
|
26
|
+
import { m as ut } from "./index-Dc_5fMdM.js";
|
|
27
|
+
import { m as _e } from "./index-DJmQQbIZ.js";
|
|
29
28
|
import { useRouter as ct } from "vue-router";
|
|
30
29
|
function je(v) {
|
|
31
30
|
return se.DineroFactory(v).toUnit();
|
|
@@ -442,7 +441,7 @@ const Rt = {
|
|
|
442
441
|
};
|
|
443
442
|
});
|
|
444
443
|
}
|
|
445
|
-
const u =
|
|
444
|
+
const u = He(m());
|
|
446
445
|
function t(c, y) {
|
|
447
446
|
return `${c} ${y ? "Inclusive" : "Exclusive"}`;
|
|
448
447
|
}
|
|
@@ -548,7 +547,7 @@ const Bt = { class: "space-y-8" }, Nt = {
|
|
|
548
547
|
}, Mt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, Et = {
|
|
549
548
|
key: 1,
|
|
550
549
|
class: "space-y-16"
|
|
551
|
-
}, jt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, Lt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" },
|
|
550
|
+
}, jt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, Lt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, Ht = { class: "grid grid-cols-2 gap-x-16 gap-y-16" }, qt = { class: "space-y-4" }, Kt = { class: "fm-typo-en-body-lg-400" }, Wt = { class: "space-y-16" }, zt = { class: "fm-typo-en-title-sm-800 !mb-[-12px]" }, Yt = { class: "flex items-center gap-8" }, Jt = /* @__PURE__ */ ee({
|
|
552
551
|
__name: "StoreSettingSheet",
|
|
553
552
|
emits: ["update"],
|
|
554
553
|
setup(v, { expose: _, emit: a }) {
|
|
@@ -598,8 +597,8 @@ const Bt = { class: "space-y-8" }, Nt = {
|
|
|
598
597
|
showSheet: d,
|
|
599
598
|
data: n
|
|
600
599
|
}), (S, l) => {
|
|
601
|
-
const F = h("FmIcon"), w = h("FmMenuItem"), N = h("FmMenu"), W = h("FmSelect"), Y = h("FmButton"),
|
|
602
|
-
return g(), I(
|
|
600
|
+
const F = h("FmIcon"), w = h("FmMenuItem"), N = h("FmMenu"), W = h("FmSelect"), Y = h("FmButton"), H = h("FmSideSheet");
|
|
601
|
+
return g(), I(H, {
|
|
603
602
|
"max-width": 560,
|
|
604
603
|
modelValue: e(b),
|
|
605
604
|
"onUpdate:modelValue": l[15] || (l[15] = (z) => ne(b) ? b.value = z : null),
|
|
@@ -674,7 +673,7 @@ const Bt = { class: "space-y-8" }, Nt = {
|
|
|
674
673
|
label: e(f)("connect.store.setting.company.address.line2"),
|
|
675
674
|
schema: e(Z).typeAtPath(e(u), "company.address.line2")
|
|
676
675
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
677
|
-
x("div",
|
|
676
|
+
x("div", Ht, [
|
|
678
677
|
r(te, {
|
|
679
678
|
modelValue: e(n).company.address.city,
|
|
680
679
|
"onUpdate:modelValue": l[8] || (l[8] = (s) => e(n).company.address.city = s),
|
|
@@ -687,7 +686,7 @@ const Bt = { class: "space-y-8" }, Nt = {
|
|
|
687
686
|
label: e(f)("connect.store.setting.company.address.postcode"),
|
|
688
687
|
schema: e(Z).typeAtPath(e(u), "company.address.postcode")
|
|
689
688
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
690
|
-
x("div",
|
|
689
|
+
x("div", qt, [
|
|
691
690
|
x("div", Kt, L(e(f)("connect.store.setting.company.address.state")), 1),
|
|
692
691
|
r(N, {
|
|
693
692
|
placement: "top-end",
|
|
@@ -946,20 +945,20 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
946
945
|
if (!(!o || !p))
|
|
947
946
|
for (let C = 0; C < p.length; C++) {
|
|
948
947
|
const k = p[C];
|
|
949
|
-
|
|
950
|
-
(
|
|
948
|
+
H.value[C] ? k.collectible.type == "TITLE" ? o.titles.findIndex(
|
|
949
|
+
(q) => q.id == k.collectible._id
|
|
951
950
|
) < 0 && o.titles.push({
|
|
952
951
|
id: k.collectible._id,
|
|
953
952
|
dayToExpire: N.value
|
|
954
953
|
}) : o.vouchers.findIndex(
|
|
955
|
-
(
|
|
954
|
+
(q) => q == k.collectible._id
|
|
956
955
|
) < 0 && o.vouchers.push(k.collectible._id) : (o.titles = o.titles.filter((K) => K.id != k.collectible._id), o.vouchers = o.vouchers.filter(
|
|
957
956
|
(K) => K != k.collectible._id
|
|
958
957
|
));
|
|
959
958
|
}
|
|
960
959
|
}
|
|
961
|
-
const
|
|
962
|
-
we(
|
|
960
|
+
const H = R({});
|
|
961
|
+
we(H, Y, { deep: !0 });
|
|
963
962
|
const z = j(() => {
|
|
964
963
|
var p, o;
|
|
965
964
|
return (o = (p = b.storeOption) == null ? void 0 : p.company) == null ? void 0 : o.sstRegNo;
|
|
@@ -970,7 +969,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
970
969
|
var p, o, C;
|
|
971
970
|
return mt(
|
|
972
971
|
oe.fullTax,
|
|
973
|
-
|
|
972
|
+
qe(t.value.taxes),
|
|
974
973
|
t.value.price,
|
|
975
974
|
Number(t.value.credit.normal),
|
|
976
975
|
((p = b.storeOption) == null ? void 0 : p.inclusiveTaxes) ?? [],
|
|
@@ -997,7 +996,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
997
996
|
return ue.cloneDeep(Se);
|
|
998
997
|
}
|
|
999
998
|
function O(p, o) {
|
|
1000
|
-
n.value = p, p && o && (c.value = void 0, m.value = o.categories, t.value = o.bundle || P(), u.value.category = o.category, u.value.index = o.index, u.value.originalCategoryIndex = o.category,
|
|
999
|
+
n.value = p, p && o && (c.value = void 0, m.value = o.categories, t.value = o.bundle || P(), u.value.category = o.category, u.value.index = o.index, u.value.originalCategoryIndex = o.category, H.value = F.value.reduce((C, k, E) => (C[E] = !!k.selectedReward, C), {}));
|
|
1001
1000
|
}
|
|
1002
1001
|
return _({
|
|
1003
1002
|
showSheet: O,
|
|
@@ -1005,7 +1004,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1005
1004
|
target: u,
|
|
1006
1005
|
data: t
|
|
1007
1006
|
}), (p, o) => {
|
|
1008
|
-
const C = h("FmSwitch"), k = h("FmHelperText"), E = h("FmTextField"), K = h("FmSelect"),
|
|
1007
|
+
const C = h("FmSwitch"), k = h("FmHelperText"), E = h("FmTextField"), K = h("FmSelect"), q = h("FmStepperField"), ie = h("FmMenuItem"), ge = h("FmTable"), ce = h("FmButton"), ve = h("FmSideSheet");
|
|
1009
1008
|
return g(), I(ve, {
|
|
1010
1009
|
"max-width": 768,
|
|
1011
1010
|
modelValue: e(n),
|
|
@@ -1036,7 +1035,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1036
1035
|
e(B.Config).getCountry().code == "MY" && ((ae = e(b).payoutAccount) == null ? void 0 : ae.status) == "APPROVED" && ((Pe = e(b).payoutAccount) != null && Pe.enable) ? (g(), I(C, {
|
|
1037
1036
|
key: 0,
|
|
1038
1037
|
"onUpdate:modelValue": o[0] || (o[0] = (V) => {
|
|
1039
|
-
e(t).isFeedvibe = V, e(t).isFeedvibe && (e(t).credit.normal = 0, e(t).coinPrice = 0, e(t).titles = [],
|
|
1038
|
+
e(t).isFeedvibe = V, e(t).isFeedvibe && (e(t).credit.normal = 0, e(t).coinPrice = 0, e(t).titles = [], H.value = {});
|
|
1040
1039
|
}),
|
|
1041
1040
|
"label-placement": "right",
|
|
1042
1041
|
"model-value": e(t).isFeedvibe || !1,
|
|
@@ -1075,7 +1074,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1075
1074
|
"helper-state": e(J)(e(d), "image"),
|
|
1076
1075
|
"helper-text": e(G)(e(d), "image")
|
|
1077
1076
|
}, null, 8, ["label", "thumbnail", "file", "helper-state", "helper-text"]),
|
|
1078
|
-
r(
|
|
1077
|
+
r(q, {
|
|
1079
1078
|
"model-value": e(B.Dinero).fromFdoDinero(e(t).price).toUnit(),
|
|
1080
1079
|
label: e(i)("connect.store.bundle.edit.bundlePrice"),
|
|
1081
1080
|
min: 0,
|
|
@@ -1093,7 +1092,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1093
1092
|
]),
|
|
1094
1093
|
_: 1
|
|
1095
1094
|
}, 8, ["model-value", "label", "helper-text", "helper-state"]),
|
|
1096
|
-
r(
|
|
1095
|
+
r(q, {
|
|
1097
1096
|
"model-value": e(B.Dinero).fromFdoDinero(e(t).originalPrice).toUnit(),
|
|
1098
1097
|
label: e(i)("connect.store.bundle.edit.bundleValue"),
|
|
1099
1098
|
min: 0,
|
|
@@ -1111,7 +1110,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1111
1110
|
]),
|
|
1112
1111
|
_: 1
|
|
1113
1112
|
}, 8, ["model-value", "label", "helper-text", "helper-state"]),
|
|
1114
|
-
e(t).isFeedvibe ? A("", !0) : (g(), I(
|
|
1113
|
+
e(t).isFeedvibe ? A("", !0) : (g(), I(q, {
|
|
1115
1114
|
key: 0,
|
|
1116
1115
|
"model-value": e(t).coinPrice ?? null,
|
|
1117
1116
|
label: e(i)("connect.store.bundle.edit.pointNeeded"),
|
|
@@ -1137,7 +1136,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1137
1136
|
"helper-state": e(J)(e(d), "stripePriceId"),
|
|
1138
1137
|
"helper-text": e(G)(e(d), "stripePriceId")
|
|
1139
1138
|
}, null, 8, ["label", "modelValue", "helper-state", "helper-text"]),
|
|
1140
|
-
e(t).stripePriceId ? (g(), I(
|
|
1139
|
+
e(t).stripePriceId ? (g(), I(q, {
|
|
1141
1140
|
key: 0,
|
|
1142
1141
|
"model-value": e(t).subscriptionValidity ?? null,
|
|
1143
1142
|
min: 1,
|
|
@@ -1150,7 +1149,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1150
1149
|
], 64)) : A("", !0),
|
|
1151
1150
|
e(t).isFeedvibe ? A("", !0) : (g(), D(X, { key: 2 }, [
|
|
1152
1151
|
oo,
|
|
1153
|
-
r(
|
|
1152
|
+
r(q, {
|
|
1154
1153
|
modelValue: e(t).credit.normal,
|
|
1155
1154
|
"onUpdate:modelValue": o[8] || (o[8] = (V) => e(t).credit.normal = V),
|
|
1156
1155
|
label: "Normal credit",
|
|
@@ -1163,7 +1162,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1163
1162
|
]),
|
|
1164
1163
|
_: 1
|
|
1165
1164
|
}, 8, ["modelValue", "helper-state", "helper-text"]),
|
|
1166
|
-
r(
|
|
1165
|
+
r(q, {
|
|
1167
1166
|
"model-value": ((Ue = e(t).credit.free) == null ? void 0 : Ue.amount) ?? null,
|
|
1168
1167
|
min: 0,
|
|
1169
1168
|
"onUpdate:modelValue": o[9] || (o[9] = (V) => {
|
|
@@ -1182,7 +1181,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1182
1181
|
]),
|
|
1183
1182
|
_: 1
|
|
1184
1183
|
}, 8, ["model-value", "helper-state", "helper-text"]),
|
|
1185
|
-
(Re = e(t).credit.free) != null && Re.amount ? (g(), I(
|
|
1184
|
+
(Re = e(t).credit.free) != null && Re.amount ? (g(), I(q, {
|
|
1186
1185
|
key: 0,
|
|
1187
1186
|
disabled: !!e(t).stripePriceId,
|
|
1188
1187
|
"model-value": ((Ie = e(t).credit.free) == null ? void 0 : Ie.day) ?? null,
|
|
@@ -1216,7 +1215,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1216
1215
|
disabled: ""
|
|
1217
1216
|
}, null, 8, ["label", "model-value"])
|
|
1218
1217
|
], 64)) : A("", !0),
|
|
1219
|
-
r(
|
|
1218
|
+
r(q, {
|
|
1220
1219
|
label: "Total Price",
|
|
1221
1220
|
"model-value": e(U),
|
|
1222
1221
|
disabled: !0
|
|
@@ -1258,8 +1257,8 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1258
1257
|
}, 8, ["label"])
|
|
1259
1258
|
]),
|
|
1260
1259
|
r(ge, {
|
|
1261
|
-
modelValue: e(
|
|
1262
|
-
"onUpdate:modelValue": o[15] || (o[15] = (V) => ne(
|
|
1260
|
+
modelValue: e(H),
|
|
1261
|
+
"onUpdate:modelValue": o[15] || (o[15] = (V) => ne(H) ? H.value = V : null),
|
|
1263
1262
|
selection: "multiple",
|
|
1264
1263
|
"column-filter": e(l),
|
|
1265
1264
|
"column-defs": S,
|
|
@@ -1289,7 +1288,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1289
1288
|
label: e(i)("connect.store.bundle.edit.hideInPos"),
|
|
1290
1289
|
sublabel: e(i)("connect.store.bundle.edit.hideInPosDescription")
|
|
1291
1290
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
1292
|
-
r(
|
|
1291
|
+
r(q, {
|
|
1293
1292
|
"model-value": ((Be = (De = e(t).config) == null ? void 0 : De.options) == null ? void 0 : Be.maxPerUser) || null,
|
|
1294
1293
|
"onUpdate:modelValue": o[18] || (o[18] = (V) => e(ue).set(e(t), "config.options.maxPerUser", V)),
|
|
1295
1294
|
label: e(i)("connect.store.bundle.edit.maxPerUser"),
|
|
@@ -1369,7 +1368,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1369
1368
|
}), fe(async () => {
|
|
1370
1369
|
await d("");
|
|
1371
1370
|
}), (F, w) => {
|
|
1372
|
-
const N = h("FmCardMedia"), W = h("FmCardHeader"), Y = h("FmChip"),
|
|
1371
|
+
const N = h("FmCardMedia"), W = h("FmCardHeader"), Y = h("FmChip"), H = h("FmCardSection"), z = h("FmCard"), le = h("FmSelect"), s = h("FmTextField"), $ = h("FmForm"), U = h("FmButton"), M = h("FmSideSheet");
|
|
1373
1372
|
return g(), I(M, {
|
|
1374
1373
|
"max-width": 560,
|
|
1375
1374
|
"dismiss-away": !0,
|
|
@@ -1420,7 +1419,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1420
1419
|
width: "100",
|
|
1421
1420
|
src: (O = e(i)) == null ? void 0 : O.image
|
|
1422
1421
|
}, null, 8, ["src"])) : A("", !0),
|
|
1423
|
-
r(
|
|
1422
|
+
r(H, { class: "flex flex-col gap-16 justify-between" }, {
|
|
1424
1423
|
default: T(() => {
|
|
1425
1424
|
var p;
|
|
1426
1425
|
return [
|
|
@@ -1429,9 +1428,9 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1429
1428
|
title: (p = e(i)) == null ? void 0 : p.name,
|
|
1430
1429
|
subtitle: e(l)
|
|
1431
1430
|
}, null, 8, ["title", "subtitle"]),
|
|
1432
|
-
r(
|
|
1431
|
+
r(H, { class: "p-0" }, {
|
|
1433
1432
|
default: T(() => {
|
|
1434
|
-
var o, C, k, E, K,
|
|
1433
|
+
var o, C, k, E, K, q, ie, ge, ce, ve, ae;
|
|
1435
1434
|
return [
|
|
1436
1435
|
x("div", po, [
|
|
1437
1436
|
(o = e(i)) != null && o.isFeedvibe ? (g(), I(Y, {
|
|
@@ -1446,7 +1445,7 @@ const Xt = /* @__PURE__ */ ee({
|
|
|
1446
1445
|
key: 2,
|
|
1447
1446
|
label: `${e(i).vouchers.length} voucher(s)`
|
|
1448
1447
|
}, null, 8, ["label"])) : A("", !0),
|
|
1449
|
-
(ie = (
|
|
1448
|
+
(ie = (q = e(i)) == null ? void 0 : q.credit) != null && ie.normal || (ve = (ce = (ge = e(i)) == null ? void 0 : ge.credit) == null ? void 0 : ce.free) != null && ve.amount ? (g(), I(Y, {
|
|
1450
1449
|
key: 3,
|
|
1451
1450
|
label: `${(e(i).credit.normal || 0) + (((ae = e(i).credit.free) == null ? void 0 : ae.amount) || 0)} credit(s)`
|
|
1452
1451
|
}, null, 8, ["label"])) : A("", !0)
|
|
@@ -1494,7 +1493,7 @@ var bo = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https:
|
|
|
1494
1493
|
const go = { class: "px-24 flex flex-col gap-y-16" }, vo = { class: "flex gap-8 items-center" }, ho = { class: "fm-typo-en-body-lg-600" }, _o = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, xo = /* @__PURE__ */ x("img", {
|
|
1495
1494
|
src: We,
|
|
1496
1495
|
class: "aspect-square w-[150px]"
|
|
1497
|
-
}, null, -1), Co = { class: "flex flex-col gap-16 text-center" }, Fo = { class: "fm-typo-en-title-sm-800" }, Vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
1496
|
+
}, null, -1), Co = { class: "flex flex-col gap-16 text-center" }, Fo = { class: "fm-typo-en-title-sm-800" }, Vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qo = /* @__PURE__ */ ee({
|
|
1498
1497
|
__name: "Store",
|
|
1499
1498
|
setup(v) {
|
|
1500
1499
|
const _ = {
|
|
@@ -1606,7 +1605,7 @@ const go = { class: "px-24 flex flex-col gap-y-16" }, vo = { class: "flex gap-8
|
|
|
1606
1605
|
}
|
|
1607
1606
|
);
|
|
1608
1607
|
}
|
|
1609
|
-
function
|
|
1608
|
+
function H(s) {
|
|
1610
1609
|
var $;
|
|
1611
1610
|
($ = F.value) == null || $.showSheet(!0, {
|
|
1612
1611
|
...s,
|
|
@@ -1637,7 +1636,7 @@ const go = { class: "px-24 flex flex-col gap-y-16" }, vo = { class: "flex gap-8
|
|
|
1637
1636
|
title: "Select category",
|
|
1638
1637
|
contentComponent: Ut
|
|
1639
1638
|
}).onPrimary((P) => {
|
|
1640
|
-
y.close(),
|
|
1639
|
+
y.close(), H({
|
|
1641
1640
|
categories: S.value,
|
|
1642
1641
|
category: P,
|
|
1643
1642
|
index: -1,
|
|
@@ -1689,7 +1688,7 @@ const go = { class: "px-24 flex flex-col gap-y-16" }, vo = { class: "flex gap-8
|
|
|
1689
1688
|
(g(!0), D(X, null, re(O.bundles, (o, C) => (g(), I(Ct, {
|
|
1690
1689
|
bundle: o,
|
|
1691
1690
|
key: o._id,
|
|
1692
|
-
onEdit: (k) =>
|
|
1691
|
+
onEdit: (k) => H({
|
|
1693
1692
|
bundle: o,
|
|
1694
1693
|
category: p,
|
|
1695
1694
|
index: C,
|
|
@@ -1699,7 +1698,7 @@ const go = { class: "px-24 flex flex-col gap-y-16" }, vo = { class: "flex gap-8
|
|
|
1699
1698
|
onSend: le
|
|
1700
1699
|
}, null, 8, ["bundle", "onEdit", "onDelete"]))), 128)),
|
|
1701
1700
|
r(Ft, {
|
|
1702
|
-
onCreate: (o) =>
|
|
1701
|
+
onCreate: (o) => H({
|
|
1703
1702
|
category: p,
|
|
1704
1703
|
index: -1,
|
|
1705
1704
|
categories: e(S)
|
|
@@ -1747,5 +1746,5 @@ const go = { class: "px-24 flex flex-col gap-y-16" }, vo = { class: "flex gap-8
|
|
|
1747
1746
|
}
|
|
1748
1747
|
});
|
|
1749
1748
|
export {
|
|
1750
|
-
|
|
1749
|
+
Qo as default
|
|
1751
1750
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { defineComponent as G, ref as F, computed as j, onMounted as q, resolveComponent as g, openBlock as d, createBlock as R, unref as e, isRef as Y, withCtx as S, createElementVNode as n, createVNode as m, createElementBlock as T, createTextVNode as z, resolveDynamicComponent as M, toDisplayString as O, Fragment as D, createCommentVNode as U, h as C } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { components as $ } from "@feedmepos/ui-library";
|
|
4
|
-
import "./index-
|
|
5
|
-
import { p as H, u as Q, f as B } from "./loading-
|
|
6
|
-
import { C as Z, u as X } from "./membership-
|
|
7
|
-
import { u as ee } from "./vue-i18n-
|
|
8
|
-
import { F as te } from "./index-
|
|
4
|
+
import "./index-C2Y3Z6cQ.js";
|
|
5
|
+
import { p as H, u as Q, f as B } from "./loading-CsMKK-RP.js";
|
|
6
|
+
import { C as Z, u as X } from "./membership-ChU9QHZQ.js";
|
|
7
|
+
import { u as ee } from "./vue-i18n-BOO66JER.js";
|
|
8
|
+
import { F as te } from "./index-DP1XHU5I.js";
|
|
9
9
|
import { c as oe } from "./object-qECH92oz.js";
|
|
10
10
|
import { u as K } from "./app-wDQR6dpb.js";
|
|
11
|
-
import { u as ae } from "./business-
|
|
11
|
+
import { u as ae } from "./business-e0ErhqsW.js";
|
|
12
12
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
13
13
|
import { Z as _ } from "./zod-Bg2FbC-D.js";
|
|
14
|
-
import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CP0wAVaD.js";
|
|
15
15
|
import { _ as re } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
16
|
-
import { _ as ie } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import {
|
|
18
|
-
import { i as me, t as de } from "./helper-
|
|
16
|
+
import { _ as ie } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Cf2JpXND.js";
|
|
17
|
+
import { _ as le, a as ce } from "./EffectSheet.vue_vue_type_style_index_0_lang-DXBqS4zs.js";
|
|
18
|
+
import { i as me, t as de } from "./helper-Czc_ykUT.js";
|
|
19
19
|
import { useRouter as ue } from "vue-router";
|
|
20
|
-
import { m as N } from "./index-
|
|
21
|
-
import { R as k } from "./app-
|
|
20
|
+
import { m as N } from "./index-DJmQQbIZ.js";
|
|
21
|
+
import { R as k } from "./app-BsOd2LLI.js";
|
|
22
22
|
const pe = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "flex flex-col space-y-16 pr-12"
|