@feedmepos/mf-connect 0.1.98-beta.73 → 0.1.98-beta.74
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-C4XD_vWL.js → App-COUNgNnC.js} +493 -474
- package/dist/{AuditLogs-DpevHGsA.js → AuditLogs-CY45tdqr.js} +14 -13
- package/dist/{Bin-FRrYZ8pV.js → Bin-COrX2Oq4.js} +8 -8
- package/dist/{Broadcast-CoefxWt-.js → Broadcast-BQxJ8Edf.js} +89 -86
- package/dist/{CampaignAnalytic-CdZjzsLr.js → CampaignAnalytic-CSYrBckT.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DQOLEDzY.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DQUQxU1_.js} +7 -6
- package/dist/{Card-BABL96V6.js → Card-62iX4uef.js} +24 -23
- package/dist/{Collections-D6XuhBO1.js → Collections-BxexBaGi.js} +8 -8
- package/dist/{Credit-D2WTeN8Z.js → Credit-B5fLK5ot.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B0KkvFWi.js → DateRangeChip.vue_vue_type_script_setup_true_lang-C738fOnK.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-G2oU70Ef.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CloubCwR.js} +36 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C4RByg0k.js → EffectSheet.vue_vue_type_style_index_0_lang-tFwP9_hm.js} +6 -6
- package/dist/{Experience-CUqmspwT.js → Experience-BReFp_Dz.js} +87 -84
- package/dist/{FileSaver.min-DX17A8Gj.js → FileSaver.min-o09GwL8H.js} +1 -1
- package/dist/{Game-D8IvyDdA.js → Game-DTDVEBrO.js} +13 -13
- package/dist/{GiftCardSetup-BOSKBH8c.js → GiftCardSetup-CP7Pdqcb.js} +10 -10
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-DzV35QnL.js +417 -0
- package/dist/Goals-BNspliQP.js +244 -0
- package/dist/{Grab-CnBGt_H2.js → Grab-C3xNIYzE.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BI00YCKv.js → ImageInput.vue_vue_type_script_setup_true_lang-BidKqIgw.js} +1 -1
- package/dist/{Index-BovDOTbf.js → Index-CRlr03xg.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-D8auavm7.js → LocationPicker.vue_vue_type_script_setup_true_lang-_YyfSHpE.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BM99IoIG.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CMfRL6Ef.js} +1 -1
- package/dist/{LoyaltyDashboard-DiCQnQ76.js → LoyaltyDashboard-BQpKd2JC.js} +1213 -1170
- package/dist/{MainLayout-Cg37dK-P.js → MainLayout-BIVZ2S6v.js} +3 -3
- package/dist/{Marketing-DRCT9dBo.js → Marketing-8SvgFvTs.js} +4 -4
- package/dist/{MarketingMaterialEdit-DcE0A8_A.js → MarketingMaterialEdit-DXaM4RKu.js} +6 -6
- package/dist/{Member-C8T1-ywK.js → Member-DucF8ody.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CTl8LtJ9.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CMQ1b_BI.js} +26 -25
- package/dist/{MemberImportHistory-CYCxxxN7.js → MemberImportHistory-BB-pNBDA.js} +7 -7
- package/dist/{MemberList-Ddlnm4JX.js → MemberList-CazaLinm.js} +14 -14
- package/dist/{MemberTransactions-DwyZTeZb.js → MemberTransactions-0PaBQaYk.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BWCxGlQO.js → MessageInput.vue_vue_type_script_setup_true_lang-Dv2rIoW2.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-LdVeH7gh.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DWn3ajhn.js} +1 -1
- package/dist/{Mission-CW0y8Bzw.js → Mission-DxH1u9Ps.js} +84 -81
- package/dist/{Overview-i2XPL7Pu.js → Overview-BcDJv-LJ.js} +4 -4
- package/dist/{Overview-CO4T3l6l.js → Overview-vepmOail.js} +22 -21
- package/dist/{Point-CNWdfqQZ.js → Point-LgZ_UrwI.js} +108 -99
- package/dist/{Promotion-DAemCP79.js → Promotion-CC6Drl2T.js} +96 -93
- package/dist/{Queue-DI50gMny.js → Queue-CeYuqidN.js} +14 -13
- package/dist/{Record-DX3WHXku.js → Record-B17ZYsb5.js} +9 -9
- package/dist/{Review-DzSNG4Le.js → Review-D6yhv3J7.js} +2 -2
- package/dist/{ReviewFacebookCallback-CrdRUN3t.js → ReviewFacebookCallback-BAB4epr8.js} +5 -5
- package/dist/{ReviewGoogleCallback-Da28WNzU.js → ReviewGoogleCallback-CZccpOLv.js} +5 -5
- package/dist/{Reward-DUQAE99I.js → Reward-PdgtYMnB.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BGAOPkwD.js → RewardGroup.vue_vue_type_script_setup_true_lang-CiVHQa5M.js} +25 -24
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-B9Dbe9no.js → RuleGroup.vue_vue_type_script_setup_true_lang-_rUcf5lG.js} +16 -15
- package/dist/{Segment-BgVf2-G2.js → Segment-DVK6xqb9.js} +27 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDLXF5HM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CiR-d0s-.js} +16 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-9UiH43em.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkPnwcE1.js} +4 -4
- package/dist/{Setting-3jW6EbKA.js → Setting-D9x8t85J.js} +14 -14
- package/dist/{SettingAdvertisements-C40QcuSn.js → SettingAdvertisements-VUfOdSPw.js} +12 -12
- package/dist/{Settings-DT9bypKs.js → Settings-B_cbux1z.js} +5 -5
- package/dist/{Store-DQyOUfEJ.js → Store-BmMCgHeP.js} +28 -27
- package/dist/{StoreRewards-Dr_c0PbO.js → StoreRewards-D_TSVQMf.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bh5h8Lc_.js → StoreTransactions.vue_vue_type_script_setup_true_lang-qMRV_p8H.js} +29 -28
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-LquvtnTy.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DKOE5bcU.js} +2 -2
- package/dist/{Tier-DmqfEWcB.js → Tier-BNQ_RmZV.js} +914 -922
- package/dist/{Title-Dx6pcJfP.js → Title-DHicIYnB.js} +24 -23
- package/dist/{Transaction-CD6agt6m.js → Transaction-B57Begy_.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CNjBtitb.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cw852iqb.js} +6 -6
- package/dist/Voucher-DIZfWgdX.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bv--fzY0.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BhYXVG4z.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Bq_7U0NO.js → ZodTextField.vue_vue_type_script_setup_true_lang-RnvpoPAb.js} +2 -2
- package/dist/{app-CmqX1V1B.js → app-D59Y5Pmz.js} +510 -201
- package/dist/app.js +1 -1
- package/dist/{base.export-guVE-B2c.js → base.export-Bp2NvmoR.js} +2 -2
- package/dist/{business-DXmGtwPm.js → business-CZnoeYYk.js} +1 -1
- package/dist/{campaign-CVXbgs-y.js → campaign-C0od4X1k.js} +2 -2
- package/dist/{campaign-D9Jufumh.js → campaign-CXR35buF.js} +9 -9
- package/dist/{campaign.enum-CXhYMbkx.js → campaign.enum-DlrjqgBa.js} +1 -1
- package/dist/{campaign.fn-DoJPn6yl.js → campaign.fn-bEy0au5e.js} +30 -30
- package/dist/{collectible.enum-Tk6LIMMm.js → collectible.enum-Czi69PBO.js} +1 -1
- package/dist/{collection.fn-DCVNYQau.js → collection.fn-DzPeFXPq.js} +2 -2
- package/dist/{currency-BYhkCI6F.js → currency-DktN5oXx.js} +1 -1
- package/dist/{duplicateCampaign-BOVBZHFs.js → duplicateCampaign-Dc_9ZYk5.js} +2 -2
- package/dist/{effect-e6wYWgc8.js → effect-KY41iVGx.js} +1 -1
- package/dist/{email-addresses-Dcd_vAeM.js → email-addresses-CRGGbqZn.js} +2 -2
- package/dist/{helper-DluoQ6zi.js → helper-BT8y_Hpb.js} +1 -1
- package/dist/{index-CBRWvjup.js → index-0awpDQm_.js} +1109 -32
- package/dist/{index-DB51l5yi.js → index-11j23Lx1.js} +1 -1
- package/dist/{index-BFzBAm6P.js → index-377HHaUi.js} +1 -1
- package/dist/{index-DoiGG41P.js → index-B30DDvin.js} +3 -3
- package/dist/{index-ChYMoLaB.js → index-BE8jnf9X.js} +1 -1
- package/dist/{index-DIP_uzZm.js → index-BWR1QjWQ.js} +5 -5
- package/dist/{index-CiJQlOu7.js → index-BZnzbUL3.js} +10 -9
- package/dist/{index-C-oypk0K.js → index-BhJpa8K-.js} +3 -3
- package/dist/{index-2QCDTrA9.js → index-BzKHBymK.js} +2 -2
- package/dist/{index-CDdNExzM.js → index-CMJp7VdE.js} +1 -1
- package/dist/{index-DKrJlWH3.js → index-CTPFlKiY.js} +4 -4
- package/dist/{index-SQItAw7w.js → index-CTe-H50U.js} +3 -3
- package/dist/{index-BAs9N7bi.js → index-CYgzVl3H.js} +3 -3
- package/dist/index-ClNPGM0y.js +166 -0
- package/dist/{index-qkkPuNFM.js → index-D-V84VLW.js} +131 -119
- package/dist/{index-SS72WJs_.js → index-D2FgYlbx.js} +1 -1
- package/dist/{index-BpAhyOgv.js → index-DiicsY5E.js} +1 -1
- package/dist/{index-kPcRcSFx.js → index-E4B5H1FX.js} +2 -2
- package/dist/{index-C9JY8Ru6.js → index-G8qEVB7S.js} +2 -2
- package/dist/{index.esm2017-BLVWhb4f.js → index.esm2017-DKzsf5EJ.js} +1 -1
- package/dist/{loading-ClX4Z1ZH.js → loading-AuVL4WdD.js} +1 -1
- package/dist/{lodash-Cxh2BWuW.js → lodash-Bm8ZbAXg.js} +1 -1
- package/dist/{member-import-DKfSDn0D.js → member-import-Kq5CMrPF.js} +1 -1
- package/dist/{membership-BBAosVNQ.js → membership-8f9xLURB.js} +3 -3
- package/dist/{money-CWzvdiFT.js → money-JRN61MHj.js} +1 -1
- package/dist/{number-Cp7TGBzd.js → number-Dd6DRScj.js} +1 -1
- package/dist/{objectid-CXWfUmP_.js → objectid-_tuwJN_b.js} +9 -9
- package/dist/onboarding-DOPR1c3u.js +129 -0
- package/dist/onboardingSetup-DOR-OW92.js +17 -0
- package/dist/{plugins-BKD6oEHa.js → plugins-DPFr2tq7.js} +3 -3
- package/dist/{reward-CrjStT4w.js → reward-B-yDjlsA.js} +1 -1
- package/dist/{rule-CBZRptRM.js → rule-DRN4bolS.js} +19 -18
- package/dist/{template-D4qWK9tk.js → template-7UtS_hVI.js} +6 -6
- package/dist/{timezone-t0WxSk3e.js → timezone-BmZfPTab.js} +1 -1
- package/dist/{transaction.fn-DZp6Drqf.js → transaction.fn-C9WOWjoC.js} +2 -2
- package/dist/{trigger-DN5yeimJ.js → trigger-BDKxlupM.js} +5 -5
- package/dist/{useMarketingMaterialActions-ChkZyyRO.js → useMarketingMaterialActions-DJ7__20D.js} +3 -3
- package/dist/{usePagination-Vda9U5Dh.js → usePagination-Czb6ZvSX.js} +1 -1
- package/dist/{user-jEjTV3E6.js → user-C-y46MEn.js} +1 -1
- package/dist/{vue-i18n-Bg_RJ_GV.js → vue-i18n-l6QdWh8z.js} +326 -326
- package/dist/{xlsx-unW4U5Tx.js → xlsx-Dbm5Y1eY.js} +440 -440
- package/dist/{zod-DIsCEUuE.js → zod-DciqV0cq.js} +1 -1
- package/package.json +1 -1
- package/dist/Voucher-P4dyOeUd.js +0 -444
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as ve, ref as F, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as _e } from "vue";
|
|
2
2
|
import { _ as ge } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import { u as ue } from "./loading-
|
|
5
|
-
import { p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-l6QdWh8z.js";
|
|
4
|
+
import { u as ue } from "./loading-AuVL4WdD.js";
|
|
5
|
+
import { p as K } from "./plugins-DPFr2tq7.js";
|
|
6
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
7
|
-
import { Z as N } from "./zod-
|
|
7
|
+
import { Z as N } from "./zod-DciqV0cq.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import {
|
|
12
|
-
import "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import { c as le, a as se } from "./index-
|
|
16
|
-
import "./index-
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
9
|
+
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CiVHQa5M.js";
|
|
10
|
+
import { u as me } from "./reward-B-yDjlsA.js";
|
|
11
|
+
import { c as ye, d as be } from "./index-0awpDQm_.js";
|
|
12
|
+
import "./index-D-V84VLW.js";
|
|
13
|
+
import "./index-CYgzVl3H.js";
|
|
14
|
+
import "./index-BhJpa8K-.js";
|
|
15
|
+
import { c as le, a as se } from "./index-BWR1QjWQ.js";
|
|
16
|
+
import "./index-B30DDvin.js";
|
|
17
|
+
import "./index-ClNPGM0y.js";
|
|
18
|
+
import { C as fe } from "./membership-8f9xLURB.js";
|
|
19
|
+
import { t as ee } from "./helper-BT8y_Hpb.js";
|
|
19
20
|
import { c as H } from "./object-BYyQ0PZp.js";
|
|
20
21
|
import { useDialog as xe, components as oe } from "@feedmepos/ui-library";
|
|
21
|
-
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
22
|
-
import { a as Re, _ as Se, b as Fe } from "./trigger-
|
|
23
|
-
import { O as ke } from "./objectid-
|
|
22
|
+
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-RnvpoPAb.js";
|
|
23
|
+
import { a as Re, _ as Se, b as Fe } from "./trigger-BDKxlupM.js";
|
|
24
|
+
import { O as ke } from "./objectid-_tuwJN_b.js";
|
|
24
25
|
import { c as $e } from "./string-Gcy5IM_H.js";
|
|
25
|
-
import { r as pe } from "./index-
|
|
26
|
-
import { u as Pe } from "./business-
|
|
26
|
+
import { r as pe } from "./index-DiicsY5E.js";
|
|
27
|
+
import { u as Pe } from "./business-CZnoeYYk.js";
|
|
27
28
|
const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:!block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
|
|
28
29
|
__name: "ReferralRewadGroupCard",
|
|
29
30
|
props: {
|
|
@@ -740,7 +741,7 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
740
741
|
}), mr = { class: "fm-typo-en-title-sm-600" }, fr = { class: "grid grid-cols-4 xs:grid-cols-1 gap-4 divide-x xs:divide-x-0" }, pr = { class: "flex gap-x-8" }, hr = { class: "fm-typo-body-lg-600 flex items-center gap-x-4" }, vr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _r = { class: "mb-40" }, gr = {
|
|
741
742
|
key: 0,
|
|
742
743
|
class: "flex flex-col items-center justify-center gap-y-16 p-24"
|
|
743
|
-
}, wr = { class: "flex flex-col gap-16 text-center" }, yr = { class: "fm-typo-en-title-sm-800" }, br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
744
|
+
}, wr = { class: "flex flex-col gap-16 text-center" }, yr = { class: "fm-typo-en-title-sm-800" }, br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jr = /* @__PURE__ */ q({
|
|
744
745
|
__name: "Overview",
|
|
745
746
|
setup(k) {
|
|
746
747
|
const { t: l } = Z(), { minor: I } = ue, p = Pe(), g = Q(), { confirmUpdateReferralRecord: f, updateReferralRecord: s } = he(), u = G(() => {
|
|
@@ -1076,5 +1077,5 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
1076
1077
|
}
|
|
1077
1078
|
});
|
|
1078
1079
|
export {
|
|
1079
|
-
|
|
1080
|
+
Jr as default
|
|
1080
1081
|
};
|
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
import { defineComponent 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 { a as
|
|
9
|
-
import { c as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import "./index-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
1
|
+
import { defineComponent as Y, ref as B, computed as z, h as b, onMounted as J, resolveComponent as m, openBlock as u, createElementBlock as x, Fragment as k, createVNode as i, unref as o, withCtx as v, createElementVNode as n, toDisplayString as f, renderList as Q, createBlock as F, resolveDynamicComponent as W } from "vue";
|
|
2
|
+
import { _ as X } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as Z, components as P } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as ee } from "./plugins-DPFr2tq7.js";
|
|
5
|
+
import { u as te } from "./loading-AuVL4WdD.js";
|
|
6
|
+
import { u as oe } from "./business-CZnoeYYk.js";
|
|
7
|
+
import { u as ae } from "./campaign-C0od4X1k.js";
|
|
8
|
+
import { a as ne, b as V, c as R } from "./campaign-CXR35buF.js";
|
|
9
|
+
import { c as ie, p as re } from "./duplicateCampaign-Dc_9ZYk5.js";
|
|
10
|
+
import { _ as se } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
11
|
+
import { _ as le } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CloubCwR.js";
|
|
12
|
+
import { u as ce } from "./template-7UtS_hVI.js";
|
|
13
|
+
import { u as me } from "./vue-i18n-l6QdWh8z.js";
|
|
14
|
+
import "./index-D2FgYlbx.js";
|
|
15
|
+
import { u as pe } from "./onboardingSetup-DOR-OW92.js";
|
|
16
|
+
import { b as de } from "./index-0awpDQm_.js";
|
|
17
|
+
import { useRouter as ue } from "vue-router";
|
|
18
|
+
import { c as g } from "./index-BzKHBymK.js";
|
|
19
|
+
import { R as fe } from "./app-D59Y5Pmz.js";
|
|
20
|
+
const ge = { class: "flex items-center" }, ye = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, _e = { class: "px-24 flex flex-col gap-y-16" }, he = { class: "flex items-center justify-between w-full" }, we = { class: "flex gap-8 overflow-x-auto" }, Ce = { class: "space-y-8" }, be = { class: "flex w-full gap-4 items-center" }, ve = { class: "space-y-4" }, xe = { class: "fm-typo-en-body-lg-600" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fe = { class: "flex items-center gap-8" }, Pe = { class: "flex flex-col gap-16 text-center" }, Se = { class: "fm-typo-en-title-sm-800" }, Ne = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ Y({
|
|
19
21
|
__name: "Point",
|
|
20
|
-
setup(
|
|
21
|
-
const { t: r } =
|
|
22
|
+
setup(Ie) {
|
|
23
|
+
const { t: r } = me(), E = ue(), $ = {
|
|
22
24
|
label: r("connect.program.common.actions.create", {
|
|
23
25
|
type: r("connect.program.point.title").toLowerCase()
|
|
24
26
|
}),
|
|
25
27
|
value: "create",
|
|
26
28
|
isPrimary: !0,
|
|
27
29
|
prependIcon: "add"
|
|
28
|
-
}, D =
|
|
30
|
+
}, D = ce("COIN", Z()), y = oe(), p = ae(), { global: T, minor: S } = te, l = B({
|
|
29
31
|
searchKey: "",
|
|
30
32
|
location: []
|
|
31
33
|
});
|
|
32
|
-
function
|
|
34
|
+
function K(e) {
|
|
33
35
|
const t = l.value.location;
|
|
34
36
|
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((c) => {
|
|
35
37
|
var s;
|
|
36
38
|
return (s = e == null ? void 0 : e.targetLocation) == null ? void 0 : s.includes(c);
|
|
37
39
|
}) : e.targetLocation.includes(t);
|
|
38
40
|
}
|
|
39
|
-
const
|
|
40
|
-
() => p.campaigns.point.filter((e) =>
|
|
41
|
-
),
|
|
41
|
+
const _ = z(
|
|
42
|
+
() => p.campaigns.point.filter((e) => K(e))
|
|
43
|
+
), M = [
|
|
42
44
|
{
|
|
43
45
|
header: r("connect.program.common.table.title"),
|
|
44
46
|
accessorFn: (e) => e.name
|
|
45
47
|
},
|
|
46
48
|
{
|
|
47
49
|
header: r("connect.program.common.table.status"),
|
|
48
|
-
accessorFn: (e) =>
|
|
50
|
+
accessorFn: (e) => ne(e),
|
|
49
51
|
cell(e) {
|
|
50
|
-
return
|
|
52
|
+
return V(e.row.original);
|
|
51
53
|
}
|
|
52
54
|
},
|
|
53
55
|
{
|
|
54
56
|
header: r("connect.program.common.table.summary"),
|
|
55
|
-
accessorFn: (e) =>
|
|
57
|
+
accessorFn: (e) => R(e)
|
|
56
58
|
},
|
|
57
59
|
{
|
|
58
60
|
header: r("connect.program.common.table.actions"),
|
|
59
61
|
cell(e) {
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
+
return b("div", { class: "flex items-center gap-8 justify-end" }, [
|
|
63
|
+
b(P.FmButton, {
|
|
62
64
|
variant: "tertiary",
|
|
63
65
|
icon: "insights",
|
|
64
66
|
iconColor: "neutral-gray-400",
|
|
@@ -66,28 +68,28 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
66
68
|
t.stopPropagation(), await I(e.row.original);
|
|
67
69
|
}
|
|
68
70
|
}),
|
|
69
|
-
|
|
71
|
+
b(P.FmButton, {
|
|
70
72
|
variant: "tertiary",
|
|
71
73
|
icon: "content_copy",
|
|
72
74
|
iconColor: "neutral-gray-400",
|
|
73
75
|
onClick: async (t) => {
|
|
74
|
-
t.stopPropagation(), await
|
|
76
|
+
t.stopPropagation(), await L(e.row.original);
|
|
75
77
|
}
|
|
76
78
|
}),
|
|
77
|
-
|
|
79
|
+
b(P.FmButton, {
|
|
78
80
|
variant: "tertiary",
|
|
79
81
|
icon: "delete",
|
|
80
82
|
iconColor: "neutral-gray-400",
|
|
81
83
|
onClick: (t) => {
|
|
82
|
-
t.stopPropagation(),
|
|
84
|
+
t.stopPropagation(), N(e.row.original);
|
|
83
85
|
}
|
|
84
86
|
})
|
|
85
87
|
]);
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
|
-
],
|
|
89
|
-
async function
|
|
90
|
-
await
|
|
90
|
+
], h = B();
|
|
91
|
+
async function N(e) {
|
|
92
|
+
await ee.remove(`Are you sure you want to remove ${e.name}?`) && await S(
|
|
91
93
|
async () => {
|
|
92
94
|
await g.delete(e._id), await p.read("COIN");
|
|
93
95
|
},
|
|
@@ -97,13 +99,13 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
97
99
|
}
|
|
98
100
|
);
|
|
99
101
|
}
|
|
100
|
-
async function
|
|
102
|
+
async function w(e) {
|
|
101
103
|
e ? await t() : D.open(async (c) => {
|
|
102
104
|
await t(c);
|
|
103
105
|
});
|
|
104
106
|
async function t(c) {
|
|
105
107
|
var s;
|
|
106
|
-
(s =
|
|
108
|
+
(s = h.value) == null || s.showSheet(
|
|
107
109
|
!0,
|
|
108
110
|
"COIN",
|
|
109
111
|
e ? await g.readById(e._id) : void 0,
|
|
@@ -112,27 +114,27 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
112
114
|
}
|
|
113
115
|
}
|
|
114
116
|
async function I(e) {
|
|
115
|
-
await
|
|
116
|
-
name:
|
|
117
|
+
await E.push({
|
|
118
|
+
name: fe["$connect-PROGRAM_POINT_ANALYTIC"],
|
|
117
119
|
params: { id: e._id }
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
|
-
async function
|
|
122
|
+
async function L(e) {
|
|
121
123
|
var s;
|
|
122
|
-
if (!await
|
|
124
|
+
if (!await ie(e.name))
|
|
123
125
|
return;
|
|
124
|
-
const t = await g.readById(e._id), c =
|
|
126
|
+
const t = await g.readById(e._id), c = re(t, {
|
|
125
127
|
keepCollectible: !0
|
|
126
128
|
});
|
|
127
|
-
(s =
|
|
129
|
+
(s = h.value) == null || s.showSheet(
|
|
128
130
|
!0,
|
|
129
131
|
"COIN",
|
|
130
132
|
c,
|
|
131
133
|
t.template
|
|
132
134
|
);
|
|
133
135
|
}
|
|
134
|
-
async function
|
|
135
|
-
await
|
|
136
|
+
async function U(e) {
|
|
137
|
+
await S(
|
|
136
138
|
async () => {
|
|
137
139
|
e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await p.read("COIN");
|
|
138
140
|
},
|
|
@@ -142,28 +144,35 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
142
144
|
}
|
|
143
145
|
);
|
|
144
146
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
const A = pe();
|
|
148
|
+
return J(async () => {
|
|
149
|
+
var e;
|
|
150
|
+
await T(async () => {
|
|
147
151
|
await p.read("COIN");
|
|
148
|
-
})
|
|
152
|
+
}), await A.consume() === "POINT_SPEND_EARN" && y.isPremium && ((e = h.value) == null || e.showSheet(
|
|
153
|
+
!0,
|
|
154
|
+
"COIN",
|
|
155
|
+
void 0,
|
|
156
|
+
await A.template(de)
|
|
157
|
+
));
|
|
149
158
|
}), (e, t) => {
|
|
150
|
-
const c = m("FmPill"), s = m("FmPageHead"),
|
|
159
|
+
const c = m("FmPill"), s = m("FmPageHead"), O = m("FmSearch"), j = m("FmTable"), C = m("FmButton"), H = m("FmListItem"), q = m("FmList"), G = m("FmCard");
|
|
151
160
|
return u(), x(k, null, [
|
|
152
161
|
i(s, {
|
|
153
162
|
title: o(r)("connect.program.point.title"),
|
|
154
|
-
actions: o(
|
|
155
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
163
|
+
actions: o(_).length > 0 && o(y).isPremium ? [$] : [],
|
|
164
|
+
"onClick:action": t[0] || (t[0] = () => w())
|
|
156
165
|
}, {
|
|
157
|
-
title:
|
|
158
|
-
n("div",
|
|
159
|
-
n("span",
|
|
166
|
+
title: v(() => [
|
|
167
|
+
n("div", ge, [
|
|
168
|
+
n("span", ye, f(o(r)("connect.program.point.title")), 1),
|
|
160
169
|
i(c, { variant: "premium" })
|
|
161
170
|
])
|
|
162
171
|
]),
|
|
163
172
|
_: 1
|
|
164
173
|
}, 8, ["title", "actions"]),
|
|
165
|
-
n("div",
|
|
166
|
-
i(
|
|
174
|
+
n("div", _e, [
|
|
175
|
+
i(O, {
|
|
167
176
|
modelValue: o(l).searchKey,
|
|
168
177
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
|
|
169
178
|
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
@@ -171,19 +180,19 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
171
180
|
collapsible: ""
|
|
172
181
|
}, null, 8, ["modelValue"]),
|
|
173
182
|
o(p).campaigns.point && o(p).campaigns.point.length > 0 ? (u(), x(k, { key: 0 }, [
|
|
174
|
-
n("div",
|
|
175
|
-
n("div",
|
|
176
|
-
i(
|
|
183
|
+
n("div", he, [
|
|
184
|
+
n("div", we, [
|
|
185
|
+
i(se, {
|
|
177
186
|
label: `${o(r)("connect.common.location")}: `,
|
|
178
187
|
"right-icon": "keyboard_arrow_down",
|
|
179
188
|
modelValue: o(l).location,
|
|
180
189
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).location = a),
|
|
181
190
|
icon: "storefront",
|
|
182
191
|
"show-item-label": !0,
|
|
183
|
-
items: o(
|
|
192
|
+
items: o(y).locationOptions
|
|
184
193
|
}, null, 8, ["label", "modelValue", "items"])
|
|
185
194
|
]),
|
|
186
|
-
i(
|
|
195
|
+
i(O, {
|
|
187
196
|
modelValue: o(l).searchKey,
|
|
188
197
|
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
|
|
189
198
|
class: "xs:hidden sm:hidden",
|
|
@@ -191,36 +200,36 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
191
200
|
collapsible: ""
|
|
192
201
|
}, null, 8, ["modelValue"])
|
|
193
202
|
]),
|
|
194
|
-
i(
|
|
203
|
+
i(j, {
|
|
195
204
|
class: "xs:hidden sm:hidden",
|
|
196
|
-
"row-data": o(
|
|
197
|
-
"column-defs":
|
|
205
|
+
"row-data": o(_),
|
|
206
|
+
"column-defs": M,
|
|
198
207
|
"search-value": o(l).searchKey,
|
|
199
208
|
"column-filter": [],
|
|
200
|
-
onRowClick: t[4] || (t[4] = (a) =>
|
|
201
|
-
"hide-footer": o(
|
|
209
|
+
onRowClick: t[4] || (t[4] = (a) => w(a.original)),
|
|
210
|
+
"hide-footer": o(_).length < 10
|
|
202
211
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
203
|
-
i(
|
|
204
|
-
default:
|
|
205
|
-
(u(!0), x(k, null,
|
|
212
|
+
i(q, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
213
|
+
default: v(() => [
|
|
214
|
+
(u(!0), x(k, null, Q(o(_).filter(
|
|
206
215
|
(a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
|
|
207
|
-
), (a) => (u(), F(
|
|
216
|
+
), (a) => (u(), F(H, {
|
|
208
217
|
key: a._id.toString(),
|
|
209
|
-
onClick: (d) =>
|
|
218
|
+
onClick: (d) => w(a),
|
|
210
219
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
211
220
|
}, {
|
|
212
|
-
default:
|
|
213
|
-
n("div",
|
|
214
|
-
n("div",
|
|
215
|
-
(u(), F(
|
|
221
|
+
default: v(() => [
|
|
222
|
+
n("div", Ce, [
|
|
223
|
+
n("div", be, [
|
|
224
|
+
(u(), F(W(o(V)(a))))
|
|
216
225
|
]),
|
|
217
|
-
n("div",
|
|
218
|
-
n("div",
|
|
219
|
-
n("div",
|
|
226
|
+
n("div", ve, [
|
|
227
|
+
n("div", xe, f(a.name), 1),
|
|
228
|
+
n("div", ke, f(o(R)(a)), 1)
|
|
220
229
|
])
|
|
221
230
|
]),
|
|
222
|
-
n("div",
|
|
223
|
-
i(
|
|
231
|
+
n("div", Fe, [
|
|
232
|
+
i(C, {
|
|
224
233
|
icon: "insights",
|
|
225
234
|
"icon-color": "neutral-gray-400",
|
|
226
235
|
variant: "tertiary",
|
|
@@ -228,19 +237,19 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
228
237
|
d.stopPropagation(), await I(a);
|
|
229
238
|
}
|
|
230
239
|
}, null, 8, ["onClick"]),
|
|
231
|
-
i(
|
|
240
|
+
i(C, {
|
|
232
241
|
icon: "content_copy",
|
|
233
242
|
"icon-color": "neutral-gray-400",
|
|
234
243
|
variant: "tertiary",
|
|
235
244
|
onClick: async (d) => {
|
|
236
|
-
d.stopPropagation(), await
|
|
245
|
+
d.stopPropagation(), await L(a);
|
|
237
246
|
}
|
|
238
247
|
}, null, 8, ["onClick"]),
|
|
239
|
-
i(
|
|
248
|
+
i(C, {
|
|
240
249
|
icon: "delete",
|
|
241
250
|
"icon-color": "neutral-gray-400",
|
|
242
251
|
variant: "tertiary",
|
|
243
|
-
onClick: (d) => (d.stopPropagation(),
|
|
252
|
+
onClick: (d) => (d.stopPropagation(), N(a))
|
|
244
253
|
}, null, 8, ["onClick"])
|
|
245
254
|
])
|
|
246
255
|
]),
|
|
@@ -249,34 +258,34 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
249
258
|
]),
|
|
250
259
|
_: 1
|
|
251
260
|
})
|
|
252
|
-
], 64)) : (u(), F(
|
|
261
|
+
], 64)) : (u(), F(G, {
|
|
253
262
|
key: 1,
|
|
254
263
|
variant: "outlined",
|
|
255
264
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
256
265
|
}, {
|
|
257
|
-
default:
|
|
266
|
+
default: v(() => [
|
|
258
267
|
t[6] || (t[6] = n("img", {
|
|
259
|
-
src:
|
|
268
|
+
src: X,
|
|
260
269
|
class: "aspect-square w-[150px]"
|
|
261
270
|
}, null, -1)),
|
|
262
|
-
n("div",
|
|
263
|
-
n("div",
|
|
264
|
-
n("div",
|
|
271
|
+
n("div", Pe, [
|
|
272
|
+
n("div", Se, f(o(r)("connect.program.point.empty_state.title")), 1),
|
|
273
|
+
n("div", Ne, f(o(r)("connect.program.point.empty_state.description")), 1)
|
|
265
274
|
]),
|
|
266
|
-
i(
|
|
275
|
+
i(C, {
|
|
267
276
|
variant: "primary",
|
|
268
277
|
label: "Create point program",
|
|
269
|
-
disabled: !o(
|
|
278
|
+
disabled: !o(y).isPremium,
|
|
270
279
|
icon: "add",
|
|
271
|
-
onClick: t[5] || (t[5] = (a) =>
|
|
280
|
+
onClick: t[5] || (t[5] = (a) => w())
|
|
272
281
|
}, null, 8, ["disabled"])
|
|
273
282
|
]),
|
|
274
283
|
_: 1
|
|
275
284
|
})),
|
|
276
|
-
i(
|
|
285
|
+
i(le, {
|
|
277
286
|
ref_key: "sheetRef",
|
|
278
|
-
ref:
|
|
279
|
-
"onSubmit:modelValue":
|
|
287
|
+
ref: h,
|
|
288
|
+
"onSubmit:modelValue": U
|
|
280
289
|
}, null, 512)
|
|
281
290
|
])
|
|
282
291
|
], 64);
|
|
@@ -284,5 +293,5 @@ const de = { class: "flex items-center" }, ue = { class: "fm-typo-en-title-md-60
|
|
|
284
293
|
}
|
|
285
294
|
});
|
|
286
295
|
export {
|
|
287
|
-
|
|
296
|
+
Je as default
|
|
288
297
|
};
|