@feedmepos/mf-connect 0.1.30-prod → 0.1.32-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-C_uRY3I5.js → Analytic-DRJEtVnN.js} +11 -11
- package/dist/{App-zOAwWGz6.js → App-C1IuGBAJ.js} +7 -7
- package/dist/{Bin-CePm_uVx.js → Bin-CM9cU-iH.js} +8 -8
- package/dist/{Broadcast-BcRSoknR.js → Broadcast-1Fy8Nob5.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-5StwY5c9.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiAEDcl5.js} +6 -6
- package/dist/{Card-Dmyxmub5.js → Card-CnuSjjCj.js} +97 -96
- package/dist/{Collections-DiV_e9h-.js → Collections-DAj_A1iu.js} +21 -20
- package/dist/{Credit-CkGdHhn2.js → Credit-DLH2GYYz.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-SulDMna0.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js} +29 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CSY1HXaL.js → EffectSheet.vue_vue_type_style_index_0_lang-D4--kNds.js} +6 -6
- package/dist/{Experience-DjsOWpa9.js → Experience-Dgyi4U-L.js} +9 -9
- package/dist/FileSaver.min-NlMItPOc.js +74 -0
- package/dist/{Game-2_J99uIX.js → Game-VKYjF7hq.js} +10 -10
- package/dist/{Index-a1eFJ8i1.js → Index-B0BkKPLD.js} +10 -10
- package/dist/{Marketing-Clz0CYrY.js → Marketing-Bzl7m10d.js} +6 -6
- package/dist/Member-CDmDoJFr.js +287 -0
- package/dist/{MemberList-D-5IP783.js → MemberList-C4l_Q9y1.js} +38 -37
- package/dist/{MemberTransactions-B7D_qrLX.js → MemberTransactions-SUlFwOov.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-XhbiT524.js → MessageInput.vue_vue_type_script_setup_true_lang-Buj3xx1j.js} +17 -16
- package/dist/{Mission-B7UVVT1j.js → Mission-BriLVrc4.js} +88 -93
- package/dist/{Overview-BfZuRgE-.js → Overview-AklJfO0G.js} +64 -63
- package/dist/{Point-MGLwWD4B.js → Point-B7VnNPaG.js} +9 -9
- package/dist/{Promotion-BrhYslNt.js → Promotion-hlKzzWJD.js} +10 -10
- package/dist/{Queue-Bz160bZx.js → Queue-gOxy9cBG.js} +76 -65
- package/dist/{Record-DrpOYO01.js → Record-BwWXqFv6.js} +17 -16
- package/dist/{Reward-ClX3C1Sp.js → Reward-JKh-M0oD.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-0L9iBoC4.js → RewardGroup.vue_vue_type_script_setup_true_lang-DFogiHWh.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BlCyumkR.js → RuleGroup.vue_vue_type_script_setup_true_lang-CTOfCYsE.js} +15 -14
- package/dist/Segment-BlMx0eoR.js +880 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-D5eLqSso.js → SelectItems.vue_vue_type_script_setup_true_lang-DCsFcqQ5.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cb3yPiSc.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-G01kJeLd.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B_RBF59b.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-gUoBLfVo.js} +3 -3
- package/dist/{Setting-CgRON4iT.js → Setting-CoKP6Z-F.js} +43 -42
- package/dist/{Store-BGbO2NeC.js → Store-CxUagz23.js} +28 -27
- package/dist/{StoreRewards-DyCWcVsT.js → StoreRewards-CLSQgaNo.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-ePVWe6Kb.js → StoreTransactions.vue_vue_type_script_setup_true_lang-V4rH3vAQ.js} +26 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DLQOZH-k.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DJ7incG7.js} +1 -1
- package/dist/{Tier-B7LRmyHJ.js → Tier-DwTL1xNM.js} +22 -21
- package/dist/{Title-DrQaQ7ew.js → Title-DhBL_eYK.js} +19 -19
- package/dist/{Transaction-B2M_gPhT.js → Transaction-CRskHsNr.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Bc8cnLBQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DoE7rDgi.js} +6 -6
- package/dist/{Voucher-BcVMrpOm.js → Voucher-CxDqASF5.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DIfHJ6Sw.js → VoucherEditor.vue_vue_type_script_setup_true_lang-wkihtNI3.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DfinebCV.js → ZodTextField.vue_vue_type_script_setup_true_lang-BeLTXjOv.js} +1 -1
- package/dist/{app-BXGrI0oQ.js → app-CTFwjMxq.js} +1 -1
- package/dist/{app-Sjl26OK7.js → app-QgT2HXjv.js} +34 -30
- package/dist/app.js +1 -1
- package/dist/{business-ICKi8JNz.js → business-DhCzKu3V.js} +1 -1
- package/dist/{campaign-AiWYrbax.js → campaign-CFggCOe6.js} +9 -9
- package/dist/{campaign-BExdhFR9.js → campaign-DAgovrbX.js} +2 -2
- package/dist/{campaign.enum-WEt42FO9.js → campaign.enum-pZr63pXN.js} +1 -1
- package/dist/{campaign.fn-CHQ63XNa.js → campaign.fn-CM_t1wNu.js} +135 -135
- package/dist/{collectible.enum-DFaOnC3D.js → collectible.enum-fbWiJ-v2.js} +1 -1
- package/dist/{collection.fn-B3XEjDdU.js → collection.fn-BrbSJ0dj.js} +2 -2
- package/dist/{dto-B09V82Pa.js → dto-BcLrcoo_.js} +12 -12
- package/dist/{effect-CUcku1wp.js → effect-WVUo2VX0.js} +1 -1
- package/dist/{email-addresses-CSpdONTz.js → email-addresses-B8YBttOp.js} +1 -1
- package/dist/{export-DJfDtT62.js → export-FilTnKIf.js} +3 -3
- package/dist/{helper-CbSsYPpI.js → helper-A-JE89j8.js} +1 -1
- package/dist/{index-DsmYdmgu.js → index-BPCfLPV5.js} +1 -1
- package/dist/{index-Clj1WSBs.js → index-BSavh-ab.js} +3 -3
- package/dist/{index-BSTUrmqB.js → index-C1vwtNMj.js} +6 -6
- package/dist/{index-QyxsXvZB.js → index-CK_9lnGD.js} +3 -3
- package/dist/{index-B3HoKsL8.js → index-CX4Q-ODj.js} +1 -1
- package/dist/{index-D98bOypJ.js → index-CyqffI0r.js} +1 -1
- package/dist/{index-DeYzI7Ad.js → index-CzH8ux-h.js} +2 -2
- package/dist/{index-DLsHC8RI.js → index-CzbdA0d3.js} +1 -1
- package/dist/{plugins-BZn2aS9v.js → index-DFS6jDHm.js} +3784 -3989
- package/dist/{index-C1wvmxnj.js → index-DI956UFg.js} +1 -1
- package/dist/{index-C_bBUep_.js → index-DvM-OpLR.js} +469 -456
- package/dist/{index-BaR_Lcm6.js → index-FsTLGrIL.js} +1 -1
- package/dist/{index-ZQcFToUw.js → index-OehNKdCW.js} +1 -1
- package/dist/{index.esm2017-D0ExClUr.js → index.esm2017-CScWJGpE.js} +1 -1
- package/dist/{loading-BPPrnQNO.js → loading-CXZ39_xw.js} +1 -1
- package/dist/{membership-XRsihZq0.js → membership-Bg_pBT1C.js} +54 -48
- package/dist/{money-hdSAgWNM.js → money-D4vhiGvs.js} +1 -1
- package/dist/{number-DYeV4NB_.js → number-p3U-wKsr.js} +1 -1
- package/dist/{objectid-CC8rUDIT.js → objectid-C_k8DXMk.js} +8 -8
- package/dist/plugins-BzCgGFW_.js +208 -0
- package/dist/{reward-6Gs4Tj0g.js → reward-DL7dVgek.js} +1 -1
- package/dist/{rule-builder-C7d79jSS.js → rule-builder-DZEGo8FL.js} +1 -1
- package/dist/{rule-BRP3Seyh.js → rule-iUlMzG59.js} +3 -3
- package/dist/{template-B0NSZx7m.js → template-FZF9V1B2.js} +4 -4
- package/dist/{trigger-B5-fD0op.js → trigger-woPb5C0Z.js} +4 -4
- package/dist/{user-t4f-8zfV.js → user-CoOoRDFP.js} +1 -1
- package/dist/{vue-i18n-Byc8euZx.js → vue-i18n-5r8XYctA.js} +348 -348
- package/dist/{xlsx-C_z356In.js → xlsx-Cx714TFU.js} +1 -1
- package/package.json +1 -1
- package/dist/Member-TNxdgh6i.js +0 -348
- package/dist/Segment-OY9qUZnY.js +0 -578
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as i, openBlock as l, createElementBlock as y, Fragment as h, createVNode as c, unref as t, createElementVNode as n, withCtx as C, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
|
|
2
2
|
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as O } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q } from "./plugins-
|
|
5
|
-
import { u as W } from "./loading-
|
|
6
|
-
import { u as X } from "./business-
|
|
7
|
-
import { u as Y } from "./campaign-
|
|
8
|
-
import { g as Z, a as V, b as L } from "./campaign-
|
|
9
|
-
import { u as ee } from "./vue-i18n-
|
|
4
|
+
import { p as Q } from "./plugins-BzCgGFW_.js";
|
|
5
|
+
import { u as W } from "./loading-CXZ39_xw.js";
|
|
6
|
+
import { u as X } from "./business-DhCzKu3V.js";
|
|
7
|
+
import { u as Y } from "./campaign-DAgovrbX.js";
|
|
8
|
+
import { g as Z, a as V, b as L } from "./campaign-CFggCOe6.js";
|
|
9
|
+
import { u as ee } from "./vue-i18n-5r8XYctA.js";
|
|
10
10
|
import { _ as oe } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as ae } from "./template-
|
|
13
|
-
import { c as _ } from "./index-
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js";
|
|
12
|
+
import { u as ae } from "./template-FZF9V1B2.js";
|
|
13
|
+
import { c as _ } from "./index-CX4Q-ODj.js";
|
|
14
14
|
const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { key: 0 }, ye = /* @__PURE__ */ n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), ge = [
|
|
15
15
|
ye
|
|
16
16
|
], _e = /* @__PURE__ */ n("img", {
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, unref, isRef, withCtx, createBlock, createCommentVNode, computed, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, toRefs, normalizeStyle, resolveDynamicComponent, createSlots } from "vue";
|
|
2
2
|
import { _ } from "./lodash-B5I3zXaY.js";
|
|
3
|
-
import { z } from "./app-
|
|
3
|
+
import { z } from "./app-QgT2HXjv.js";
|
|
4
4
|
import { Z as ZodHelper } from "./zod-Bg2FbC-D.js";
|
|
5
|
-
import { c as getCampaignSummaryObject, C as CampaignOptions } from "./campaign-
|
|
6
|
-
import { c as campaignRefinement, C as CampaignDtos, a as campaignTransform } from "./dto-
|
|
7
|
-
import { u as useMembershipStore } from "./membership-
|
|
8
|
-
import { u as useBusinessStore } from "./business-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-
|
|
5
|
+
import { c as getCampaignSummaryObject, C as CampaignOptions } from "./campaign-CFggCOe6.js";
|
|
6
|
+
import { c as campaignRefinement, C as CampaignDtos, a as campaignTransform } from "./dto-BcLrcoo_.js";
|
|
7
|
+
import { u as useMembershipStore } from "./membership-Bg_pBT1C.js";
|
|
8
|
+
import { u as useBusinessStore } from "./business-DhCzKu3V.js";
|
|
9
|
+
import "./index-CzH8ux-h.js";
|
|
10
|
+
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-DZEGo8FL.js";
|
|
11
11
|
import { J as JsonViewer } from "./JsonViewer-v8_C7l5N.js";
|
|
12
12
|
import { h as hooks } from "./moment-BWErdI6_.js";
|
|
13
|
-
import { f as featureVersionMapping } from "./campaign.enum-
|
|
13
|
+
import { f as featureVersionMapping } from "./campaign.enum-pZr63pXN.js";
|
|
14
14
|
import { _ as _sfc_main$o } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
15
|
-
import { b as _sfc_main$m, a as _sfc_main$p, _ as _sfc_main$r } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
16
|
-
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { p as prompt, c as cases, f as firebaseStorage } from "./plugins-
|
|
20
|
-
import { u as useI18n } from "./vue-i18n-
|
|
21
|
-
import { b as TypeToTriggerOptions, _ as _sfc_main$u, a as _sfc_main$v } from "./trigger-
|
|
22
|
-
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
23
|
-
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-
|
|
24
|
-
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
25
|
-
import {
|
|
26
|
-
import { T as TEMPLATES } from "./index-
|
|
27
|
-
import "./index-
|
|
28
|
-
import "./index-
|
|
29
|
-
import { a as F_GAME_TYPE } from "./collectible.enum-
|
|
15
|
+
import { b as _sfc_main$m, a as _sfc_main$p, _ as _sfc_main$r } from "./EffectSheet.vue_vue_type_style_index_0_lang-D4--kNds.js";
|
|
16
|
+
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DJ7incG7.js";
|
|
17
|
+
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-DoE7rDgi.js";
|
|
18
|
+
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CTOfCYsE.js";
|
|
19
|
+
import { p as prompt, c as cases, f as firebaseStorage } from "./plugins-BzCgGFW_.js";
|
|
20
|
+
import { u as useI18n } from "./vue-i18n-5r8XYctA.js";
|
|
21
|
+
import { b as TypeToTriggerOptions, _ as _sfc_main$u, a as _sfc_main$v } from "./trigger-woPb5C0Z.js";
|
|
22
|
+
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-Buj3xx1j.js";
|
|
23
|
+
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-iUlMzG59.js";
|
|
24
|
+
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-wkihtNI3.js";
|
|
25
|
+
import { t as FdoCreditLoyaltyReward, u as FdtoRandomReward, v as F_MISSION_TYPE, w as FdoThresholdCreditReward, x as FdtoThresholdReward, y as FdoMission } from "./index-DvM-OpLR.js";
|
|
26
|
+
import { T as TEMPLATES } from "./index-C1vwtNMj.js";
|
|
27
|
+
import "./index-CzbdA0d3.js";
|
|
28
|
+
import "./index-CK_9lnGD.js";
|
|
29
|
+
import { a as F_GAME_TYPE } from "./collectible.enum-fbWiJ-v2.js";
|
|
30
30
|
import { useCoreStore } from "@feedmepos/mf-common";
|
|
31
|
-
import { u as useLoading } from "./loading-
|
|
32
|
-
import { i as initCollectibleConfig } from "./helper-
|
|
33
|
-
import { C as CollectionUtils } from "./collection.fn-
|
|
31
|
+
import { u as useLoading } from "./loading-CXZ39_xw.js";
|
|
32
|
+
import { i as initCollectibleConfig } from "./helper-A-JE89j8.js";
|
|
33
|
+
import { C as CollectionUtils } from "./collection.fn-BrbSJ0dj.js";
|
|
34
34
|
import { s as sentenceCase$1 } from "./index-CuvNtC_M.js";
|
|
35
|
+
import "./index-DFS6jDHm.js";
|
|
35
36
|
import { useDialog } from "@feedmepos/ui-library";
|
|
36
|
-
import { u as useCampaignStore } from "./campaign-
|
|
37
|
-
import { S as SvcConfig } from "./index-
|
|
37
|
+
import { u as useCampaignStore } from "./campaign-DAgovrbX.js";
|
|
38
|
+
import { S as SvcConfig } from "./index-BSavh-ab.js";
|
|
38
39
|
import { a as cleanPF } from "./object-qECH92oz.js";
|
|
39
40
|
const _hoisted_1$g = { class: "space-y-24" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
40
41
|
__name: "TimeRuleGroup",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as C, onMounted as Q, computed as H, resolveComponent as y, openBlock as i, createElementBlock as x, renderSlot as W, toDisplayString as w, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as O, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-
|
|
2
|
+
import { z as te } from "./app-QgT2HXjv.js";
|
|
3
3
|
import { Z as u } from "./zod-Bg2FbC-D.js";
|
|
4
|
-
import { f as le, g as oe } from "./index-
|
|
5
|
-
import { u as Z } from "./vue-i18n-
|
|
6
|
-
import { s as R } from "./effect-
|
|
7
|
-
import { p as ae } from "./plugins-
|
|
8
|
-
import { O as ne } from "./app-
|
|
4
|
+
import { f as le, g as oe } from "./index-CzH8ux-h.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-5r8XYctA.js";
|
|
6
|
+
import { s as R } from "./effect-WVUo2VX0.js";
|
|
7
|
+
import { p as ae } from "./plugins-BzCgGFW_.js";
|
|
8
|
+
import { O as ne } from "./app-CTFwjMxq.js";
|
|
9
9
|
const ie = { class: "flex flex-col gap-8" }, se = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as x, createVNode as c, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as p, h as H } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as J } from "./plugins-
|
|
5
|
-
import { u as Q } from "./loading-
|
|
6
|
-
import { u as W } from "./business-
|
|
7
|
-
import { u as X } from "./campaign-
|
|
8
|
-
import { a as L, b as V, g as Y } from "./campaign-
|
|
9
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
+
import { p as J } from "./plugins-BzCgGFW_.js";
|
|
5
|
+
import { u as Q } from "./loading-CXZ39_xw.js";
|
|
6
|
+
import { u as W } from "./business-DhCzKu3V.js";
|
|
7
|
+
import { u as X } from "./campaign-DAgovrbX.js";
|
|
8
|
+
import { a as L, b as V, g as Y } from "./campaign-CFggCOe6.js";
|
|
9
|
+
import { u as Z } from "./vue-i18n-5r8XYctA.js";
|
|
10
10
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as oe } from "./template-
|
|
13
|
-
import { c as g } from "./index-
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js";
|
|
12
|
+
import { u as oe } from "./template-FZF9V1B2.js";
|
|
13
|
+
import { c as g } from "./index-CX4Q-ODj.js";
|
|
14
14
|
const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = /* @__PURE__ */ n("img", {
|
|
15
15
|
src: q,
|
|
16
16
|
class: "aspect-square w-[150px]"
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { c as s } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
+
var E = { exports: {} };
|
|
3
|
+
(function(h, j) {
|
|
4
|
+
(function(p, i) {
|
|
5
|
+
i();
|
|
6
|
+
})(s, function() {
|
|
7
|
+
function p(e, t) {
|
|
8
|
+
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
9
|
+
}
|
|
10
|
+
function i(e, t, r) {
|
|
11
|
+
var n = new XMLHttpRequest();
|
|
12
|
+
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
13
|
+
u(n.response, t, r);
|
|
14
|
+
}, n.onerror = function() {
|
|
15
|
+
console.error("could not download file");
|
|
16
|
+
}, n.send();
|
|
17
|
+
}
|
|
18
|
+
function v(e) {
|
|
19
|
+
var t = new XMLHttpRequest();
|
|
20
|
+
t.open("HEAD", e, !1);
|
|
21
|
+
try {
|
|
22
|
+
t.send();
|
|
23
|
+
} catch {
|
|
24
|
+
}
|
|
25
|
+
return 200 <= t.status && 299 >= t.status;
|
|
26
|
+
}
|
|
27
|
+
function l(e) {
|
|
28
|
+
try {
|
|
29
|
+
e.dispatchEvent(new MouseEvent("click"));
|
|
30
|
+
} catch {
|
|
31
|
+
var t = document.createEvent("MouseEvents");
|
|
32
|
+
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof s == "object" && s.global === s ? s : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
|
|
36
|
+
} : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
|
|
37
|
+
var n = a.URL || a.webkitURL, o = document.createElement("a");
|
|
38
|
+
t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
|
|
39
|
+
n.revokeObjectURL(o.href);
|
|
40
|
+
}, 4e4), setTimeout(function() {
|
|
41
|
+
l(o);
|
|
42
|
+
}, 0));
|
|
43
|
+
} : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
|
|
44
|
+
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
|
|
45
|
+
else if (v(e)) i(e, t, r);
|
|
46
|
+
else {
|
|
47
|
+
var n = document.createElement("a");
|
|
48
|
+
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
49
|
+
l(n);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
} : function(e, t, r, n) {
|
|
53
|
+
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
|
|
54
|
+
var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
55
|
+
if ((m || o && b || w) && typeof FileReader < "u") {
|
|
56
|
+
var d = new FileReader();
|
|
57
|
+
d.onloadend = function() {
|
|
58
|
+
var c = d.result;
|
|
59
|
+
c = m ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = c : location = c, n = null;
|
|
60
|
+
}, d.readAsDataURL(e);
|
|
61
|
+
} else {
|
|
62
|
+
var y = a.URL || a.webkitURL, f = y.createObjectURL(e);
|
|
63
|
+
n ? n.location = f : location.href = f, n = null, setTimeout(function() {
|
|
64
|
+
y.revokeObjectURL(f);
|
|
65
|
+
}, 4e4);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
a.saveAs = u.saveAs = u, h.exports = u;
|
|
69
|
+
});
|
|
70
|
+
})(E);
|
|
71
|
+
var R = E.exports;
|
|
72
|
+
export {
|
|
73
|
+
R as F
|
|
74
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as N, ref as v, computed as q, onMounted as z, resolveComponent as r, openBlock as p, createElementBlock as C, Fragment as b, createVNode as s, unref as o, withCtx as h, createElementVNode as n, toDisplayString as c, renderList as J, createBlock as k, resolveDynamicComponent as O, h as l } from "vue";
|
|
2
2
|
import { _ as Q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as W, components as w } from "@feedmepos/ui-library";
|
|
4
|
-
import { a as X, p as Y } from "./plugins-
|
|
5
|
-
import { u as Z } from "./loading-
|
|
6
|
-
import { u as ee } from "./business-
|
|
7
|
-
import { u as te } from "./campaign-
|
|
8
|
-
import { a as $, b as A, g as oe } from "./campaign-
|
|
4
|
+
import { a as X, p as Y } from "./plugins-BzCgGFW_.js";
|
|
5
|
+
import { u as Z } from "./loading-CXZ39_xw.js";
|
|
6
|
+
import { u as ee } from "./business-DhCzKu3V.js";
|
|
7
|
+
import { u as te } from "./campaign-DAgovrbX.js";
|
|
8
|
+
import { a as $, b as A, g as oe } from "./campaign-CFggCOe6.js";
|
|
9
9
|
import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as se } from "./template-
|
|
12
|
-
import { u as ie } from "./vue-i18n-
|
|
13
|
-
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { c as x } from "./index-
|
|
10
|
+
import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js";
|
|
11
|
+
import { u as se } from "./template-FZF9V1B2.js";
|
|
12
|
+
import { u as ie } from "./vue-i18n-5r8XYctA.js";
|
|
13
|
+
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-G01kJeLd.js";
|
|
14
|
+
import { c as x } from "./index-CX4Q-ODj.js";
|
|
15
15
|
const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _e = { class: "space-y-4" }, ye = { class: "fm-typo-en-body-lg-600" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = /* @__PURE__ */ n("img", {
|
|
16
16
|
src: Q,
|
|
17
17
|
class: "aspect-square w-[150px]"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as U, ref as g, watch as O, onMounted as I, resolveComponent as m, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, toDisplayString as $, createElementVNode as c, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, normalizeClass as G, computed as L, Fragment as q, isRef as J } from "vue";
|
|
2
|
-
import { u as H } from "./vue-i18n-
|
|
3
|
-
import "./index-
|
|
2
|
+
import { u as H } from "./vue-i18n-5r8XYctA.js";
|
|
3
|
+
import "./index-CyqffI0r.js";
|
|
4
4
|
import { useRouter as K } from "vue-router";
|
|
5
|
-
import { u as Q } from "./loading-
|
|
6
|
-
import { f as V, p as X } from "./plugins-
|
|
7
|
-
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as Q } from "./loading-CXZ39_xw.js";
|
|
6
|
+
import { f as V, p as X } from "./plugins-BzCgGFW_.js";
|
|
7
|
+
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-DFogiHWh.js";
|
|
8
8
|
import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
|
|
9
|
-
import { r as N } from "./index-
|
|
10
|
-
import { u as ae } from "./reward-
|
|
11
|
-
import { u as oe } from "./business-
|
|
12
|
-
import { u as te } from "./membership-
|
|
13
|
-
import { R as S } from "./app-
|
|
9
|
+
import { r as N } from "./index-DI956UFg.js";
|
|
10
|
+
import { u as ae } from "./reward-DL7dVgek.js";
|
|
11
|
+
import { u as oe } from "./business-DhCzKu3V.js";
|
|
12
|
+
import { u as te } from "./membership-Bg_pBT1C.js";
|
|
13
|
+
import { R as S } from "./app-QgT2HXjv.js";
|
|
14
14
|
const re = { class: "space-y-24" }, le = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: /* @__PURE__ */ G([
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { openBlock as m, createElementBlock as p, defineComponent as z, ref as S, onMounted as Y, computed as H, h as J, resolveComponent as c, Fragment as x, createVNode as i, unref as r, createElementVNode as s, withCtx as F, renderList as $, createBlock as B, toDisplayString as f, createCommentVNode as j } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as X } from "./plugins-
|
|
5
|
-
import { u as Q } from "./loading-
|
|
4
|
+
import { p as X } from "./plugins-BzCgGFW_.js";
|
|
5
|
+
import { u as Q } from "./loading-CXZ39_xw.js";
|
|
6
6
|
import { defineStore as W } from "pinia";
|
|
7
|
-
import { F as C } from "./index-
|
|
7
|
+
import { F as C } from "./index-CzbdA0d3.js";
|
|
8
8
|
import { useCoreStore as Z } from "@feedmepos/mf-common";
|
|
9
|
-
import { g as h, S as ee, b as te } from "./index-
|
|
9
|
+
import { g as h, S as ee, b as te } from "./index-BSavh-ab.js";
|
|
10
10
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { u as ae } from "./campaign-
|
|
11
|
+
import { u as ae } from "./campaign-DAgovrbX.js";
|
|
12
12
|
import { h as oe } from "./moment-BWErdI6_.js";
|
|
13
|
-
import { u as re } from "./vue-i18n-
|
|
13
|
+
import { u as re } from "./vue-i18n-5r8XYctA.js";
|
|
14
14
|
var se = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
15
15
|
const y = () => {
|
|
16
16
|
const o = ee.getBusinessId();
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { defineComponent as P, ref as w, watch as D, resolveComponent as m, openBlock as x, createElementBlock as g, Fragment as M, createElementVNode as f, createVNode as u, unref as t, withCtx as S, renderList as U, createBlock as N, toDisplayString as Y, normalizeClass as q, computed as H, createCommentVNode as J } from "vue";
|
|
2
|
+
import "./index-CyqffI0r.js";
|
|
3
|
+
import { useDialogChild as Q, FmButtonVariant as A, useDialog as j, useSnackbar as z } from "@feedmepos/ui-library";
|
|
4
|
+
import { u as V } from "./vue-i18n-5r8XYctA.js";
|
|
5
|
+
import { c as I } from "./index-DvM-OpLR.js";
|
|
6
|
+
import "./index-CzH8ux-h.js";
|
|
7
|
+
import "./index-C1vwtNMj.js";
|
|
8
|
+
import "./index-CzbdA0d3.js";
|
|
9
|
+
import "./index-CK_9lnGD.js";
|
|
10
|
+
import { u as B, w as G } from "./xlsx-Cx714TFU.js";
|
|
11
|
+
import { F as W } from "./FileSaver.min-NlMItPOc.js";
|
|
12
|
+
import { useCoreStore as K } from "@feedmepos/mf-common";
|
|
13
|
+
import { useRouter as X } from "vue-router";
|
|
14
|
+
import { m as L } from "./index-FsTLGrIL.js";
|
|
15
|
+
import { R as E } from "./app-QgT2HXjv.js";
|
|
16
|
+
const Z = { class: "space-y-8 mb-10" }, ee = /* @__PURE__ */ f("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1), te = { class: "flex justify-end" }, ne = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: /* @__PURE__ */ q([
|
|
19
|
+
"flex items-center",
|
|
20
|
+
"border border-fm-color-neutral-gray-300",
|
|
21
|
+
"p-16 space-x-16 rounded-md"
|
|
22
|
+
])
|
|
23
|
+
}, oe = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ae = /* @__PURE__ */ P({
|
|
24
|
+
__name: "ImportMemberDialog",
|
|
25
|
+
setup($) {
|
|
26
|
+
const { t: a } = V(), { emitData: b } = Q(), i = w(null), _ = w(null), h = w({
|
|
27
|
+
resetCollectionExpiryBalance: !0
|
|
28
|
+
}), F = [
|
|
29
|
+
"Id",
|
|
30
|
+
"Name",
|
|
31
|
+
"Phone",
|
|
32
|
+
"Email",
|
|
33
|
+
"Gender",
|
|
34
|
+
"CardNo",
|
|
35
|
+
"Birthday",
|
|
36
|
+
"Credit",
|
|
37
|
+
"CreditExpiryDate",
|
|
38
|
+
"Exp",
|
|
39
|
+
"Point",
|
|
40
|
+
"Tier",
|
|
41
|
+
// 'Titles',
|
|
42
|
+
"TotalTransaction",
|
|
43
|
+
"AvgSpent",
|
|
44
|
+
"TotalSpent",
|
|
45
|
+
"LastVisit",
|
|
46
|
+
"Feedback",
|
|
47
|
+
"LastSeasonTierEarned",
|
|
48
|
+
"LastSeasonPointEarned",
|
|
49
|
+
"JoinedAt",
|
|
50
|
+
"JoinedAtLocation",
|
|
51
|
+
"VisitFrequency"
|
|
52
|
+
], R = [
|
|
53
|
+
{
|
|
54
|
+
label: "CSV",
|
|
55
|
+
icon: "csv",
|
|
56
|
+
value: "csv"
|
|
57
|
+
/* csv */
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "Excel",
|
|
61
|
+
icon: "description",
|
|
62
|
+
value: "xlsx"
|
|
63
|
+
/* xlsx */
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
async function r(l) {
|
|
67
|
+
var o, y;
|
|
68
|
+
i.value = ((y = (o = l.target) == null ? void 0 : o.files) == null ? void 0 : y[0]) ?? null;
|
|
69
|
+
}
|
|
70
|
+
async function p(l) {
|
|
71
|
+
switch (l) {
|
|
72
|
+
case "csv":
|
|
73
|
+
d();
|
|
74
|
+
break;
|
|
75
|
+
case "xlsx":
|
|
76
|
+
v();
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function d() {
|
|
81
|
+
const l = new Blob([F.join(",")], {
|
|
82
|
+
type: "text/csv;charset=utf-8;"
|
|
83
|
+
});
|
|
84
|
+
W.saveAs(l, "ImportMemberTemplate.csv");
|
|
85
|
+
}
|
|
86
|
+
function v() {
|
|
87
|
+
const l = B.aoa_to_sheet([F]), o = B.book_new();
|
|
88
|
+
B.book_append_sheet(o, l, "Sheet1"), G(o, "ImportMemberTemplate.xlsx");
|
|
89
|
+
}
|
|
90
|
+
return D(i, () => {
|
|
91
|
+
b({ file: i.value, config: h.value });
|
|
92
|
+
}), (l, o) => {
|
|
93
|
+
const y = m("FmSwitch"), k = m("FmButton"), C = m("FmMenuItem"), T = m("FmMenu"), n = m("FmDropField");
|
|
94
|
+
return x(), g(M, null, [
|
|
95
|
+
f("div", Z, [
|
|
96
|
+
ee,
|
|
97
|
+
u(y, {
|
|
98
|
+
"model-value": t(h).resetCollectionExpiryBalance ?? !0,
|
|
99
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => t(h).resetCollectionExpiryBalance = e),
|
|
100
|
+
label: "Replace Existing Free Credit",
|
|
101
|
+
sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
|
|
102
|
+
"label-placement": "right"
|
|
103
|
+
}, null, 8, ["model-value"])
|
|
104
|
+
]),
|
|
105
|
+
f("div", te, [
|
|
106
|
+
u(T, null, {
|
|
107
|
+
"menu-button": S(() => [
|
|
108
|
+
u(k, {
|
|
109
|
+
variant: "tertiary",
|
|
110
|
+
icon: "download",
|
|
111
|
+
label: "Download Template"
|
|
112
|
+
})
|
|
113
|
+
]),
|
|
114
|
+
default: S(() => [
|
|
115
|
+
(x(), g(M, null, U(R, (e) => u(C, {
|
|
116
|
+
key: e.value,
|
|
117
|
+
icon: e.icon,
|
|
118
|
+
label: e.label,
|
|
119
|
+
onClick: (c) => p(e.value),
|
|
120
|
+
selectable: ""
|
|
121
|
+
}, null, 8, ["icon", "label", "onClick"])), 64))
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
})
|
|
125
|
+
]),
|
|
126
|
+
t(i) ? (x(), g("div", ne, [
|
|
127
|
+
u(k, {
|
|
128
|
+
variant: t(A).Tertiary,
|
|
129
|
+
"prepend-icon": "attach_file"
|
|
130
|
+
}, null, 8, ["variant"]),
|
|
131
|
+
f("p", oe, Y(t(i).name), 1),
|
|
132
|
+
f("label", {
|
|
133
|
+
ref_key: "fileLabelRef",
|
|
134
|
+
ref: _,
|
|
135
|
+
htmlFor: "file"
|
|
136
|
+
}, [
|
|
137
|
+
u(k, {
|
|
138
|
+
variant: t(A).Plain,
|
|
139
|
+
label: t(a)("Replace File"),
|
|
140
|
+
onClick: o[2] || (o[2] = () => {
|
|
141
|
+
var e;
|
|
142
|
+
return (e = t(_)) == null ? void 0 : e.click();
|
|
143
|
+
})
|
|
144
|
+
}, null, 8, ["variant", "label"]),
|
|
145
|
+
f("input", {
|
|
146
|
+
id: "file",
|
|
147
|
+
accept: ".csv, .xlsx",
|
|
148
|
+
class: "hidden",
|
|
149
|
+
type: "file",
|
|
150
|
+
multiple: "",
|
|
151
|
+
onChange: r
|
|
152
|
+
}, null, 32)
|
|
153
|
+
], 512)
|
|
154
|
+
])) : (x(), N(n, {
|
|
155
|
+
key: 0,
|
|
156
|
+
onFileUpload: o[1] || (o[1] = (e) => i.value = e),
|
|
157
|
+
accept: ".csv, .xlsx",
|
|
158
|
+
"max-file-size": 5e6
|
|
159
|
+
}))
|
|
160
|
+
], 64);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
}), le = { class: "px-24 flex flex-col gap-y-16 pb-24" }, xe = /* @__PURE__ */ P({
|
|
164
|
+
__name: "Member",
|
|
165
|
+
setup($) {
|
|
166
|
+
var k, C, T;
|
|
167
|
+
const a = X(), { t: b } = V(), i = j(), _ = z(), h = K(), F = {
|
|
168
|
+
label: b("connect.loyalty.member.import"),
|
|
169
|
+
value: "import",
|
|
170
|
+
isPrimary: !0,
|
|
171
|
+
prependIcon: "download"
|
|
172
|
+
}, R = {
|
|
173
|
+
label: b("connect.navigation.queue"),
|
|
174
|
+
value: "queue",
|
|
175
|
+
isPrimary: !1,
|
|
176
|
+
prependIcon: "work_history"
|
|
177
|
+
}, r = [
|
|
178
|
+
{
|
|
179
|
+
label: b("connect.loyalty.member.tabs.member_list"),
|
|
180
|
+
value: E["$connect-LOYALTY_MEMBER_LIST"],
|
|
181
|
+
actions: (T = (C = (k = h.sessionUser) == null ? void 0 : k.value) == null ? void 0 : C.role) != null && T.isAdmin ? [R, F] : []
|
|
182
|
+
}
|
|
183
|
+
], p = H(() => {
|
|
184
|
+
var e, c, s;
|
|
185
|
+
return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
186
|
+
title: d.value.label,
|
|
187
|
+
actions: d.value.actions,
|
|
188
|
+
description: void 0
|
|
189
|
+
} : (d.value = r[1], {
|
|
190
|
+
backButton: !0,
|
|
191
|
+
title: b("connect.loyalty.member.title"),
|
|
192
|
+
actions: [],
|
|
193
|
+
description: `${(e = v.value) == null ? void 0 : e.name} (${(c = v.value) == null ? void 0 : c._id}) (${(s = v.value) == null ? void 0 : s.phoneNumber})`,
|
|
194
|
+
onBackButton: async () => {
|
|
195
|
+
await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}), d = w(
|
|
199
|
+
r.find((n) => n.value === a.currentRoute.value.name) ?? r[0]
|
|
200
|
+
), v = w();
|
|
201
|
+
async function l(n) {
|
|
202
|
+
await a.push({ name: n });
|
|
203
|
+
}
|
|
204
|
+
async function o() {
|
|
205
|
+
i.open({
|
|
206
|
+
title: "Upload File",
|
|
207
|
+
closeButton: !0,
|
|
208
|
+
dismissAway: !1,
|
|
209
|
+
contentComponent: ae,
|
|
210
|
+
primaryActions: { text: "Import", close: !1 }
|
|
211
|
+
}).onPrimary(async (n) => {
|
|
212
|
+
if (!n) {
|
|
213
|
+
_.open({
|
|
214
|
+
type: "error",
|
|
215
|
+
title: "Please upload a file"
|
|
216
|
+
});
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
const { file: e, config: c } = n;
|
|
220
|
+
if (!e)
|
|
221
|
+
_.open({
|
|
222
|
+
type: "error",
|
|
223
|
+
title: "Please upload a file"
|
|
224
|
+
});
|
|
225
|
+
else {
|
|
226
|
+
const s = new FormData();
|
|
227
|
+
s.append("file", e), s.append("config", JSON.stringify(c)), await L.import(s), _.open({
|
|
228
|
+
type: "info",
|
|
229
|
+
title: "Import begins soon. Check Queue for updates.",
|
|
230
|
+
action: "View",
|
|
231
|
+
onAction: async () => {
|
|
232
|
+
await a.push({
|
|
233
|
+
name: E["$connect-QUEUE"],
|
|
234
|
+
query: { type: [I.enum.MEMBER_IMPORTED] }
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}), i.close();
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
function y(n) {
|
|
242
|
+
switch (n) {
|
|
243
|
+
case "import":
|
|
244
|
+
o();
|
|
245
|
+
break;
|
|
246
|
+
case "queue":
|
|
247
|
+
a.push({
|
|
248
|
+
name: E["$connect-QUEUE"],
|
|
249
|
+
query: { type: [I.enum.MEMBER_IMPORTED] }
|
|
250
|
+
});
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return D(
|
|
255
|
+
() => a.currentRoute.value.name,
|
|
256
|
+
async (n) => {
|
|
257
|
+
d.value = r.find((c) => c.value === n) ?? r[0];
|
|
258
|
+
const e = a.currentRoute.value.params.id;
|
|
259
|
+
e && (v.value = await L.readById(e)), await a.push({ name: n });
|
|
260
|
+
}
|
|
261
|
+
), (n, e) => {
|
|
262
|
+
const c = m("FmPageHead"), s = m("FmTabs"), O = m("RouterView");
|
|
263
|
+
return x(), g(M, null, [
|
|
264
|
+
u(c, {
|
|
265
|
+
actions: t(p).actions,
|
|
266
|
+
title: t(p).title,
|
|
267
|
+
description: t(p).description,
|
|
268
|
+
"back-button": t(p).backButton,
|
|
269
|
+
"onClick:back": t(p).onBackButton,
|
|
270
|
+
"onClick:action": y
|
|
271
|
+
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
272
|
+
f("div", le, [
|
|
273
|
+
t(a).currentRoute.value.name != t(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), N(s, {
|
|
274
|
+
key: 0,
|
|
275
|
+
"model-value": t(d).value,
|
|
276
|
+
items: r,
|
|
277
|
+
"onUpdate:modelValue": l
|
|
278
|
+
}, null, 8, ["model-value"])) : J("", !0),
|
|
279
|
+
u(O)
|
|
280
|
+
])
|
|
281
|
+
], 64);
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
export {
|
|
286
|
+
xe as default
|
|
287
|
+
};
|