@feedmepos/mf-connect 0.1.48-prod → 0.1.49-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-DrjBaKmx.js → Analytic-ibBD_21m.js} +11 -11
- package/dist/{App-eIaytGsZ.js → App-CDjwWK8a.js} +7 -7
- package/dist/{Bin-CVp0eFwl.js → Bin-DCaG0YGW.js} +8 -8
- package/dist/Broadcast-CbF3d_N7.js +233 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CugJWeBo.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BqYusgBO.js} +6 -6
- package/dist/{Card-DkP6oJVn.js → Card-CDNE85po.js} +16 -16
- package/dist/{Collections-DYb_aeTW.js → Collections-DHn__E9U.js} +7 -7
- package/dist/Credit-DiTnwnFe.js +228 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJEAsRON.js} +30 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DT3y4k1C.js → EffectSheet.vue_vue_type_style_index_0_lang-CU9XpMjd.js} +6 -6
- package/dist/Experience-CjMVeGsX.js +229 -0
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/{Game-C7jxRESY.js → Game-D3gANFAo.js} +103 -97
- package/dist/{Index-DYr1p4sh.js → Index-DEF_a5Mu.js} +10 -10
- package/dist/{Marketing-Djl27fez.js → Marketing-BeED4Y7H.js} +6 -6
- package/dist/{Member-CWXedfTG.js → Member-CA4hnHJY.js} +10 -10
- package/dist/{MemberList-C2TvGi22.js → MemberList-CZtriA_Q.js} +25 -25
- package/dist/{MemberTransactions-BSUocGg9.js → MemberTransactions-BVrvf4AM.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D8xPA6jM.js → MessageInput.vue_vue_type_script_setup_true_lang-BqTDGnOG.js} +7 -7
- package/dist/{Mission-BVx9Cqi5.js → Mission-CDSMpqnG.js} +112 -106
- package/dist/{Overview-DyXF9zfB.js → Overview-ArineqY4.js} +18 -18
- package/dist/Point-51MD49EM.js +232 -0
- package/dist/{Promotion-B0Q6GItP.js → Promotion-BVrofYd6.js} +11 -11
- package/dist/{Queue-BAWG1Hh-.js → Queue-Q-aEeZ8w.js} +11 -11
- package/dist/{Record-CTp80g4A.js → Record-DaVcschI.js} +8 -8
- package/dist/{Reward-_Jow1lJ7.js → Reward-DTtFuqOZ.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BV8xCejA.js → RewardGroup.vue_vue_type_script_setup_true_lang-P_gNd6ZP.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DkDAuGY0.js → RuleGroup.vue_vue_type_script_setup_true_lang-CVy_kDmy.js} +13 -13
- package/dist/{Segment-CsdJ1SjK.js → Segment-DIy4RERw.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DH3oIm2t.js → SelectItems.vue_vue_type_script_setup_true_lang-D3KIZJLo.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DvVrjpxR.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-bSi6_uqi.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5gV89Xk.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BsNLkA2v.js} +3 -3
- package/dist/{Setting-BZRA50LO.js → Setting-DGDgmP84.js} +11 -11
- package/dist/{Store-CFnCN_7-.js → Store-Dh2uVHGY.js} +19 -19
- package/dist/{StoreRewards-B_McpBz-.js → StoreRewards-DFF_0g59.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-vL0vr-Xn.js → StoreTransactions.vue_vue_type_script_setup_true_lang-PrFhYJXc.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C1ZlLdme.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-VcU2Asjy.js} +1 -1
- package/dist/{Tier-CCYFu6kJ.js → Tier-yKvE4mRW.js} +20 -20
- package/dist/{Title-7Mg-Ml4z.js → Title-DWWSC02W.js} +19 -19
- package/dist/{Transaction-BqZrbpZi.js → Transaction-ru7M0PKE.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C6ZwPUD4.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BSkv6hMH.js} +6 -6
- package/dist/{Voucher-Yty_7SuS.js → Voucher-DmuaThKv.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bt12t3gB.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Db_aeyc1.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C3NHrEIl.js → ZodTextField.vue_vue_type_script_setup_true_lang-B5co0F__.js} +1 -1
- package/dist/{app-Dzon--6x.js → app-DaFoFS2V.js} +1 -1
- package/dist/{app-2EJP4psh.js → app-ja_XST5q.js} +30 -30
- package/dist/app.js +1 -1
- package/dist/{business-BehG4fR2.js → business-BSP_3iNl.js} +11 -8
- package/dist/{campaign-CAcP56Sz.js → campaign-C1hWNRWr.js} +2 -2
- package/dist/{campaign-BpaiTG4f.js → campaign-DMZnXtyb.js} +9 -9
- package/dist/{campaign.enum-BWjI8Hop.js → campaign.enum-Bfsz7Aon.js} +1 -1
- package/dist/{campaign.fn-PVdB1-V1.js → campaign.fn-B-xvcbEb.js} +63 -63
- package/dist/{collectible.enum-BYmuqayi.js → collectible.enum-BRkrN4Bi.js} +1 -1
- package/dist/{collection.fn-CbH8hbWW.js → collection.fn-D03AXdUn.js} +2 -2
- package/dist/{dto-Dd3Oc4QO.js → dto-DpRkSGg6.js} +4 -4
- package/dist/{effect-DvEQNEl0.js → effect-BW1-I1J4.js} +1 -1
- package/dist/{email-addresses-C-9JrAi8.js → email-addresses-BLVkwSkP.js} +1 -1
- package/dist/{export-RWE9Cn-d.js → export-DOfDownW.js} +3 -3
- package/dist/{helper-Bl6LdWED.js → helper-BzfjLXgi.js} +1 -1
- package/dist/{index-DZN5WWgq.js → index-BBi9jDD1.js} +3 -3
- package/dist/{index-DpoNuVc-.js → index-BJl_HxaB.js} +6 -6
- package/dist/{index-BCQMVr1J.js → index-Ba5-z1MU.js} +1 -1
- package/dist/{index-Bgnrbk5x.js → index-Bp8F6U9V.js} +1 -1
- package/dist/{index-CzCqc7ph.js → index-C6fpU8-G.js} +1 -1
- package/dist/{index-Bjf5Z2QE.js → index-COoQSeE7.js} +4 -4
- package/dist/{index-DX1X6Owa.js → index-DTnzjEWu.js} +1 -1
- package/dist/{index-G_XSbrXB.js → index-DWBeauin.js} +3 -3
- package/dist/{index-1bU9cLqV.js → index-Da1qz9oA.js} +1 -1
- package/dist/{index-wOExBjGo.js → index-Dve1-uYX.js} +1 -1
- package/dist/{index-CFW9ogow.js → index-P6ISAxfQ.js} +1 -1
- package/dist/{index-VVy4GPzJ.js → index-cpWgtd-c.js} +1 -1
- package/dist/{index-DhUvELhc.js → index-sFyvCun2.js} +1023 -1023
- package/dist/{index-CfgczUMX.js → index-zyVYgteg.js} +2 -2
- package/dist/{index.esm2017-DfgZFSqe.js → index.esm2017-DT0awUwa.js} +40 -40
- package/dist/{loading-qlqqYGF3.js → loading-CZH88Duq.js} +1 -1
- package/dist/{membership-Bh_1iu5v.js → membership-GNRX1fEK.js} +3 -3
- package/dist/{money-DvTB_Fek.js → money-Xe5mDYRC.js} +1 -1
- package/dist/{number-DJQ3gi1P.js → number-CAjqc2Pu.js} +1 -1
- package/dist/objectid-BQJRv_jX.js +145 -0
- package/dist/{plugins-DJpBrPbQ.js → plugins-Z2YcDTj8.js} +2 -2
- package/dist/{reward-DZ4KlN9B.js → reward-G656rbLJ.js} +1 -1
- package/dist/{rule-DV0yCGlq.js → rule-BJ5blBZp.js} +3 -3
- package/dist/{rule-builder-D6ihVPNO.js → rule-builder-CursBigG.js} +1 -1
- package/dist/{template-ElP-JIFL.js → template-BnyUm8is.js} +4 -4
- package/dist/{timezone-FaHjut_D.js → timezone-B64-HrWi.js} +1 -1
- package/dist/{trigger-D8wnJVTA.js → trigger-C_ih51ky.js} +4 -4
- package/dist/{user-NWV9KppR.js → user-BZc_OAUj.js} +1 -1
- package/dist/{vue-i18n-CkbS-IDD.js → vue-i18n-2D47GxQX.js} +376 -376
- package/dist/{xlsx-CdQE5RZi.js → xlsx-BEk5qawh.js} +1 -1
- package/package.json +1 -1
- package/dist/Broadcast-DBgBT6yz.js +0 -227
- package/dist/Credit-WVv_PL5D.js +0 -222
- package/dist/Experience-BdH44wBG.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Point-ovkgTwZO.js +0 -226
- package/dist/objectid-BKU0cEuv.js +0 -145
|
@@ -1,42 +1,42 @@
|
|
|
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-ja_XST5q.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-DMZnXtyb.js";
|
|
6
|
+
import { c as campaignRefinement, C as CampaignDtos, a as campaignTransform } from "./dto-DpRkSGg6.js";
|
|
7
|
+
import { u as useMembershipStore } from "./membership-GNRX1fEK.js";
|
|
8
|
+
import { u as useBusinessStore } from "./business-BSP_3iNl.js";
|
|
9
|
+
import "./index-zyVYgteg.js";
|
|
10
|
+
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-CursBigG.js";
|
|
11
11
|
import { J as JsonViewer } from "./JsonViewer-v8_C7l5N.js";
|
|
12
12
|
import { h as hooks } from "./moment-D7p2TMB-.js";
|
|
13
|
-
import { f as featureVersionMapping } from "./campaign.enum-
|
|
13
|
+
import { f as featureVersionMapping } from "./campaign.enum-Bfsz7Aon.js";
|
|
14
14
|
import { _ as _sfc_main$o } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.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 { T as TypeToTriggerOptions, _ as _sfc_main$u, b 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 CountryTimezone, m as moment } from "./timezone-
|
|
24
|
-
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-
|
|
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-CU9XpMjd.js";
|
|
16
|
+
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-VcU2Asjy.js";
|
|
17
|
+
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-BSkv6hMH.js";
|
|
18
|
+
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CVy_kDmy.js";
|
|
19
|
+
import { p as prompt, c as cases, f as firebaseStorage } from "./plugins-Z2YcDTj8.js";
|
|
20
|
+
import { u as useI18n } from "./vue-i18n-2D47GxQX.js";
|
|
21
|
+
import { T as TypeToTriggerOptions, _ as _sfc_main$u, b as _sfc_main$v } from "./trigger-C_ih51ky.js";
|
|
22
|
+
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-BqTDGnOG.js";
|
|
23
|
+
import { C as CountryTimezone, m as moment } from "./timezone-B64-HrWi.js";
|
|
24
|
+
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-BJ5blBZp.js";
|
|
25
25
|
import { useCoreStore } from "@feedmepos/mf-common";
|
|
26
|
-
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
27
|
-
import { t as FdoCreditLoyaltyReward, u as FdtoRandomReward, v as F_MISSION_TYPE, w as FdoThresholdCreditReward, x as FdtoThresholdReward, y as FdoMission } from "./index-
|
|
28
|
-
import { T as TEMPLATES } from "./index-
|
|
29
|
-
import "./index-
|
|
30
|
-
import "./index-
|
|
31
|
-
import { a as F_GAME_TYPE } from "./collectible.enum-
|
|
32
|
-
import { u as useLoading } from "./loading-
|
|
33
|
-
import { i as initCollectibleConfig } from "./helper-
|
|
34
|
-
import { C as CollectionUtils } from "./collection.fn-
|
|
26
|
+
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-Db_aeyc1.js";
|
|
27
|
+
import { t as FdoCreditLoyaltyReward, u as FdtoRandomReward, v as F_MISSION_TYPE, w as FdoThresholdCreditReward, x as FdtoThresholdReward, y as FdoMission } from "./index-COoQSeE7.js";
|
|
28
|
+
import { T as TEMPLATES } from "./index-BJl_HxaB.js";
|
|
29
|
+
import "./index-P6ISAxfQ.js";
|
|
30
|
+
import "./index-BBi9jDD1.js";
|
|
31
|
+
import { a as F_GAME_TYPE } from "./collectible.enum-BRkrN4Bi.js";
|
|
32
|
+
import { u as useLoading } from "./loading-CZH88Duq.js";
|
|
33
|
+
import { i as initCollectibleConfig } from "./helper-BzfjLXgi.js";
|
|
34
|
+
import { C as CollectionUtils } from "./collection.fn-D03AXdUn.js";
|
|
35
35
|
import { s as sentenceCase$1 } from "./index-CuvNtC_M.js";
|
|
36
|
-
import "./index-
|
|
36
|
+
import "./index-sFyvCun2.js";
|
|
37
37
|
import { useDialog } from "@feedmepos/ui-library";
|
|
38
|
-
import { u as useCampaignStore } from "./campaign-
|
|
39
|
-
import { S as SvcConfig } from "./index-
|
|
38
|
+
import { u as useCampaignStore } from "./campaign-C1hWNRWr.js";
|
|
39
|
+
import { S as SvcConfig } from "./index-DWBeauin.js";
|
|
40
40
|
import { a as cleanPF } from "./object-qECH92oz.js";
|
|
41
41
|
const _hoisted_1$g = { class: "space-y-24" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
42
42
|
__name: "TimeRuleGroup",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as O, onMounted as Q, computed as H, resolveComponent as y, openBlock as s, 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 R, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-
|
|
2
|
+
import { z as te } from "./app-ja_XST5q.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 C } from "./effect-
|
|
7
|
-
import { p as ae } from "./plugins-
|
|
8
|
-
import { e as ne } from "./app-
|
|
4
|
+
import { f as le, g as oe } from "./index-zyVYgteg.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-2D47GxQX.js";
|
|
6
|
+
import { s as C } from "./effect-BW1-I1J4.js";
|
|
7
|
+
import { p as ae } from "./plugins-Z2YcDTj8.js";
|
|
8
|
+
import { e as ne } from "./app-DaFoFS2V.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"
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as x, createVNode as i, unref as o, createElementVNode as a, withCtx as h, renderList as M, createBlock as w, resolveDynamicComponent as H, toDisplayString as u, h as q } from "vue";
|
|
2
|
+
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as G, components as J } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as Q } from "./plugins-Z2YcDTj8.js";
|
|
5
|
+
import { u as W } from "./loading-CZH88Duq.js";
|
|
6
|
+
import { u as X } from "./business-BSP_3iNl.js";
|
|
7
|
+
import { u as Y } from "./campaign-C1hWNRWr.js";
|
|
8
|
+
import { a as L, b as V, g as Z } from "./campaign-DMZnXtyb.js";
|
|
9
|
+
import { u as ee } from "./vue-i18n-2D47GxQX.js";
|
|
10
|
+
import { _ as te } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
11
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJEAsRON.js";
|
|
12
|
+
import { u as ne } from "./template-BnyUm8is.js";
|
|
13
|
+
import { c as g } from "./index-Ba5-z1MU.js";
|
|
14
|
+
const ae = { 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" }, ie = { class: "space-y-8" }, ce = { 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 = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = /* @__PURE__ */ E({
|
|
15
|
+
__name: "Experience",
|
|
16
|
+
setup(_e) {
|
|
17
|
+
const { t: r } = ee(), P = {
|
|
18
|
+
label: r("connect.program.common.actions.create", {
|
|
19
|
+
type: r("connect.program.experience.title").toLowerCase()
|
|
20
|
+
}),
|
|
21
|
+
value: "create",
|
|
22
|
+
isPrimary: !0,
|
|
23
|
+
prependIcon: "add"
|
|
24
|
+
}, B = ne("POINT", G()), I = X(), d = Y(), { global: T, minor: v } = W, s = S({
|
|
25
|
+
searchKey: "",
|
|
26
|
+
location: []
|
|
27
|
+
});
|
|
28
|
+
function $(e) {
|
|
29
|
+
const t = s.value.location;
|
|
30
|
+
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
|
|
31
|
+
var c;
|
|
32
|
+
return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
|
|
33
|
+
}) : e.targetLocation.includes(t);
|
|
34
|
+
}
|
|
35
|
+
const f = U(
|
|
36
|
+
() => d.campaigns.experience.filter((e) => $(e))
|
|
37
|
+
), K = [
|
|
38
|
+
{
|
|
39
|
+
header: "Program title",
|
|
40
|
+
accessorFn: (e) => e.name
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
header: "Status",
|
|
44
|
+
accessorFn: (e) => Z(e),
|
|
45
|
+
cell(e) {
|
|
46
|
+
return L(e.row.original);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
header: "Summary",
|
|
51
|
+
accessorFn: (e) => V(e)
|
|
52
|
+
//v.effect,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
header: "Actions",
|
|
56
|
+
cell(e) {
|
|
57
|
+
return q(J.FmButton, {
|
|
58
|
+
variant: "tertiary",
|
|
59
|
+
icon: "delete",
|
|
60
|
+
iconColor: "neutral-gray-400",
|
|
61
|
+
onClick: (t) => {
|
|
62
|
+
t.stopPropagation(), C(e.row.original);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
], b = S();
|
|
68
|
+
async function C(e) {
|
|
69
|
+
await Q.remove(`Are you sure you want to remove ${e.name}?`) && await v(
|
|
70
|
+
async () => {
|
|
71
|
+
await g.delete(e._id), await d.read("POINT");
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
message: `Removing ${e.name}`,
|
|
75
|
+
successMessage: `Removed ${e.name} successfully`
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
async function y(e) {
|
|
80
|
+
e ? await t() : B.open(async (l) => {
|
|
81
|
+
await t(l);
|
|
82
|
+
});
|
|
83
|
+
async function t(l) {
|
|
84
|
+
var c;
|
|
85
|
+
(c = b.value) == null || c.showSheet(
|
|
86
|
+
!0,
|
|
87
|
+
"POINT",
|
|
88
|
+
e ? await g.readById(e._id) : void 0,
|
|
89
|
+
l
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async function N(e) {
|
|
94
|
+
await v(
|
|
95
|
+
async () => {
|
|
96
|
+
e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await d.read("POINT");
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
message: r("connect.program.common.update.updating", {
|
|
100
|
+
type: r("connect.program.experience.title")
|
|
101
|
+
}),
|
|
102
|
+
successMessage: r("connect.program.common.update.success", {
|
|
103
|
+
type: r("connect.program.experience.title"),
|
|
104
|
+
action: e.campaign._id ? "updated" : "created"
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
return j(async () => {
|
|
110
|
+
await T(async () => {
|
|
111
|
+
await d.read("POINT");
|
|
112
|
+
});
|
|
113
|
+
}), (e, t) => {
|
|
114
|
+
const l = m("FmPageHead"), c = m("FmSearch"), R = m("FmTable"), F = m("FmButton"), A = m("FmListItem"), O = m("FmList"), D = m("FmCard");
|
|
115
|
+
return p(), _(x, null, [
|
|
116
|
+
i(l, {
|
|
117
|
+
title: o(r)("connect.program.experience.title"),
|
|
118
|
+
actions: o(f).length > 0 ? [P] : [],
|
|
119
|
+
"onClick:action": t[0] || (t[0] = () => y())
|
|
120
|
+
}, null, 8, ["title", "actions"]),
|
|
121
|
+
a("div", ae, [
|
|
122
|
+
i(c, {
|
|
123
|
+
modelValue: o(s).searchKey,
|
|
124
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => o(s).searchKey = n),
|
|
125
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
126
|
+
placeholder: o(r)("connect.program.common.search"),
|
|
127
|
+
collapsible: ""
|
|
128
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
129
|
+
o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(x, { key: 0 }, [
|
|
130
|
+
a("div", re, [
|
|
131
|
+
a("div", se, [
|
|
132
|
+
i(te, {
|
|
133
|
+
label: `${o(r)("connect.common.location")}: `,
|
|
134
|
+
"right-icon": "keyboard_arrow_down",
|
|
135
|
+
modelValue: o(s).location,
|
|
136
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => o(s).location = n),
|
|
137
|
+
icon: "storefront",
|
|
138
|
+
"show-item-label": !0,
|
|
139
|
+
items: o(I).locationOptions
|
|
140
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
141
|
+
]),
|
|
142
|
+
i(c, {
|
|
143
|
+
modelValue: o(s).searchKey,
|
|
144
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => o(s).searchKey = n),
|
|
145
|
+
class: "xs:hidden",
|
|
146
|
+
placeholder: "search",
|
|
147
|
+
collapsible: ""
|
|
148
|
+
}, null, 8, ["modelValue"])
|
|
149
|
+
]),
|
|
150
|
+
i(R, {
|
|
151
|
+
class: "xs:hidden",
|
|
152
|
+
"row-data": o(f),
|
|
153
|
+
"column-defs": K,
|
|
154
|
+
"search-value": o(s).searchKey,
|
|
155
|
+
"column-filter": [],
|
|
156
|
+
onRowClick: t[4] || (t[4] = (n) => y(n.original)),
|
|
157
|
+
"hide-footer": o(f).length < 10
|
|
158
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
159
|
+
i(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
160
|
+
default: h(() => [
|
|
161
|
+
(p(!0), _(x, null, M(o(f).filter(
|
|
162
|
+
(n) => n.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
|
|
163
|
+
), (n) => (p(), w(A, {
|
|
164
|
+
key: n._id.toString(),
|
|
165
|
+
onClick: (k) => y(n),
|
|
166
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
167
|
+
}, {
|
|
168
|
+
default: h(() => [
|
|
169
|
+
a("div", ie, [
|
|
170
|
+
a("div", ce, [
|
|
171
|
+
(p(), w(H(o(L)(n)))),
|
|
172
|
+
a("div", le, u(n.currentReceive ?? 0) + " used ", 1)
|
|
173
|
+
]),
|
|
174
|
+
a("div", me, [
|
|
175
|
+
a("div", de, u(n.name), 1),
|
|
176
|
+
a("div", pe, u(o(V)(n)), 1)
|
|
177
|
+
]),
|
|
178
|
+
a("div", ue, u(o(r)("connect.program.experience.received", {
|
|
179
|
+
count: n.currentReceive ?? 0
|
|
180
|
+
})), 1)
|
|
181
|
+
]),
|
|
182
|
+
i(F, {
|
|
183
|
+
icon: "delete",
|
|
184
|
+
"icon-color": "neutral-gray-400",
|
|
185
|
+
variant: "tertiary",
|
|
186
|
+
onClick: (k) => (k.stopPropagation(), C(n))
|
|
187
|
+
}, null, 8, ["onClick"])
|
|
188
|
+
]),
|
|
189
|
+
_: 2
|
|
190
|
+
}, 1032, ["onClick"]))), 128))
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
})
|
|
194
|
+
], 64)) : (p(), w(D, {
|
|
195
|
+
key: 1,
|
|
196
|
+
variant: "outlined",
|
|
197
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
198
|
+
}, {
|
|
199
|
+
default: h(() => [
|
|
200
|
+
t[6] || (t[6] = a("img", {
|
|
201
|
+
src: z,
|
|
202
|
+
class: "aspect-square w-[150px]"
|
|
203
|
+
}, null, -1)),
|
|
204
|
+
a("div", fe, [
|
|
205
|
+
a("div", ye, u(o(r)("connect.program.experience.empty_state.title")), 1),
|
|
206
|
+
a("div", ge, u(o(r)("connect.program.experience.empty_state.description")), 1)
|
|
207
|
+
]),
|
|
208
|
+
i(F, {
|
|
209
|
+
variant: "primary",
|
|
210
|
+
label: "Create experience program",
|
|
211
|
+
icon: "add",
|
|
212
|
+
onClick: t[5] || (t[5] = (n) => y())
|
|
213
|
+
})
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
})),
|
|
217
|
+
i(oe, {
|
|
218
|
+
ref_key: "sheetRef",
|
|
219
|
+
ref: b,
|
|
220
|
+
"onSubmit:modelValue": N
|
|
221
|
+
}, null, 512)
|
|
222
|
+
])
|
|
223
|
+
], 64);
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
export {
|
|
228
|
+
Ie as default
|
|
229
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { defineComponent as j, ref as i, computed as g, onMounted as B, resolveComponent as r, openBlock as m, createBlock as c, unref as o, withCtx as p, createVNode as v, normalizeClass as f, createCommentVNode as k, createElementVNode as L, toDisplayString as F, isRef as M, createElementBlock as O, Fragment as A, renderList as N } from "vue";
|
|
2
|
+
const z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = /* @__PURE__ */ j({
|
|
3
|
+
__name: "FilterChip",
|
|
4
|
+
props: {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: Array,
|
|
7
|
+
required: !1
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: !1,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
showItemLabel: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
placement: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !1,
|
|
21
|
+
default: "bottom-end"
|
|
22
|
+
},
|
|
23
|
+
class: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: !1
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
required: !1
|
|
30
|
+
},
|
|
31
|
+
items: {
|
|
32
|
+
type: Array,
|
|
33
|
+
required: !0
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: !1
|
|
38
|
+
},
|
|
39
|
+
searchable: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
required: !1,
|
|
42
|
+
default: !0
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: ["update:model-value"],
|
|
46
|
+
setup(u, { emit: C }) {
|
|
47
|
+
const t = u, b = C, d = i(!1), l = i({}), s = i(""), V = g(() => {
|
|
48
|
+
const e = Object.keys(l.value).length;
|
|
49
|
+
return !l.value || Object.keys(l.value).length == t.items.length || e === 0 ? "All" : `${e > 0 ? e : "None"} selected`;
|
|
50
|
+
});
|
|
51
|
+
function w(e) {
|
|
52
|
+
l.value[e] ? delete l.value[e] : l.value[e] = !0, b("update:model-value", Object.keys(l.value));
|
|
53
|
+
}
|
|
54
|
+
function _() {
|
|
55
|
+
Object.keys(l.value).length > 0 ? l.value = {} : l.value = t.items.reduce((e, n) => (e[n.value] = !0, e), {}), b("update:model-value", Object.keys(l.value));
|
|
56
|
+
}
|
|
57
|
+
const x = g(() => s.value && s.value.length > 0 ? t.items.filter(
|
|
58
|
+
(e) => e.label.toLowerCase().includes(s.value.trim().toLowerCase())
|
|
59
|
+
) : t.items);
|
|
60
|
+
return B(() => {
|
|
61
|
+
l.value = t.modelValue.reduce(
|
|
62
|
+
(e, n) => (e[n] = !0, e),
|
|
63
|
+
{}
|
|
64
|
+
), t.modelValue.length == 0;
|
|
65
|
+
}), (e, n) => {
|
|
66
|
+
const y = r("FmIcon"), q = r("FmChip"), I = r("FmTextField"), h = r("FmMenuItem"), S = r("FmMenu");
|
|
67
|
+
return m(), c(S, {
|
|
68
|
+
placement: u.placement || "bottom-end",
|
|
69
|
+
disabled: u.disabled == !0,
|
|
70
|
+
"model-value": o(d),
|
|
71
|
+
onMenuChanged: n[1] || (n[1] = (a) => d.value = a),
|
|
72
|
+
"close-on-click": !1
|
|
73
|
+
}, {
|
|
74
|
+
"menu-button": p(() => [
|
|
75
|
+
v(q, {
|
|
76
|
+
label: u.label,
|
|
77
|
+
class: f(t.class || "text-fm-color-neutral-gray-400 cursor-pointer")
|
|
78
|
+
}, {
|
|
79
|
+
default: p(() => [
|
|
80
|
+
t.icon ? (m(), c(y, {
|
|
81
|
+
key: 0,
|
|
82
|
+
name: t.icon,
|
|
83
|
+
class: f(t.class),
|
|
84
|
+
outline: "",
|
|
85
|
+
size: "sm"
|
|
86
|
+
}, null, 8, ["name", "class"])) : k("", !0),
|
|
87
|
+
L("div", z, F(t.label) + " " + F(u.showItemLabel ? o(V) : ""), 1),
|
|
88
|
+
v(y, {
|
|
89
|
+
name: o(d) ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
90
|
+
class: f(t.class),
|
|
91
|
+
outline: "",
|
|
92
|
+
size: "sm"
|
|
93
|
+
}, null, 8, ["name", "class"])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["label", "class"])
|
|
97
|
+
]),
|
|
98
|
+
default: p(() => [
|
|
99
|
+
u.searchable ? (m(), c(I, {
|
|
100
|
+
key: 0,
|
|
101
|
+
modelValue: o(s),
|
|
102
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => M(s) ? s.value = a : null),
|
|
103
|
+
placeholder: "Search locations",
|
|
104
|
+
class: "my-8"
|
|
105
|
+
}, null, 8, ["modelValue"])) : k("", !0),
|
|
106
|
+
v(h, {
|
|
107
|
+
"model-value": Object.keys(o(l)).length === t.items.length,
|
|
108
|
+
label: "All",
|
|
109
|
+
"has-checkbox": !0,
|
|
110
|
+
indeterminate: !0,
|
|
111
|
+
onClick: _
|
|
112
|
+
}, null, 8, ["model-value"]),
|
|
113
|
+
(m(!0), O(A, null, N(o(x) ?? [], (a) => (m(), c(h, {
|
|
114
|
+
key: a.value,
|
|
115
|
+
value: a.value,
|
|
116
|
+
label: a.label,
|
|
117
|
+
"has-checkbox": !0,
|
|
118
|
+
"model-value": o(l)[a.value],
|
|
119
|
+
"onUpdate:modelValue": (T) => w(a.value)
|
|
120
|
+
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["placement", "disabled", "model-value"]);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
export {
|
|
128
|
+
E as _
|
|
129
|
+
};
|