@feedmepos/mf-connect 0.1.78-prod → 0.1.80-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-CL8baBRg.js → Analytic-CDqU1g9g.js} +11 -11
- package/dist/{App-DWrlRXyT.js → App-Batc6uUr.js} +7 -7
- package/dist/{Bin-B20xJPE8.js → Bin-DE3b8rGT.js} +9 -9
- package/dist/{Broadcast-CsWx4Tjg.js → Broadcast-aCFL-IBJ.js} +18 -18
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DOVdZArj.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwYu9Zhy.js} +6 -6
- package/dist/{Card-CmzFUSjw.js → Card-mtVUcANy.js} +18 -18
- package/dist/{Collections-CpSPvULL.js → Collections-C_v47d8N.js} +8 -8
- package/dist/{Credit-De2OB_mb.js → Credit-BpqMpgxc.js} +63 -65
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DfTSheaL.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DuF8tYV_.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DB_5jfpv.js → EffectSheet.vue_vue_type_style_index_0_lang-B-W8N3ay.js} +7 -7
- package/dist/{Experience-CM8zEcnf.js → Experience-Bg2zeFR8.js} +75 -79
- package/dist/{Game-BFnuEizX.js → Game-CzYGAhas.js} +83 -81
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-dsv7e6yU.js → ImageInput.vue_vue_type_script_setup_true_lang-BcbGnJBq.js} +1 -1
- package/dist/{Index-Bwq85y08.js → Index-DzLILpRq.js} +10 -10
- package/dist/{Marketing-D5TlEj1P.js → Marketing-C28Xc_9L.js} +8 -8
- package/dist/{Member-cbimfDJJ.js → Member-ZvEbr6GW.js} +10 -10
- package/dist/{MemberList-Avzr02qO.js → MemberList-CCE34l0q.js} +27 -27
- package/dist/{MemberTransactions-DqHNVh2M.js → MemberTransactions-Bxc3hMLK.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DqfdpUU1.js → MessageInput.vue_vue_type_script_setup_true_lang-C5BdK7g7.js} +8 -8
- package/dist/{Mission-BxDEA9_O.js → Mission-COAEKgma.js} +82 -80
- package/dist/{Overview-CDwxgoq4.js → Overview-BdXPvr2r.js} +20 -20
- package/dist/{Point-BGp2yObl.js → Point-BQGGBEH0.js} +79 -83
- package/dist/{Promotion-BtLwPnQY.js → Promotion-DN8q-y8J.js} +32 -32
- package/dist/{Queue-B5yc52Fi.js → Queue-CPTrkqOW.js} +10 -10
- package/dist/{Record-BTJZQMcE.js → Record-DFhjY0sM.js} +8 -8
- package/dist/{Reward-DE1IdQQP.js → Reward-Dy5IIfea.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B5nesYsF.js → RewardGroup.vue_vue_type_script_setup_true_lang-BeF7ihok.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-8YjhVXHc.js → RuleGroup.vue_vue_type_script_setup_true_lang-O0RlU3Mu.js} +15 -15
- package/dist/{Segment-DTL-cydj.js → Segment-CMphXW4r.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BhdZvJ23.js → SelectItems.vue_vue_type_script_setup_true_lang-Yz8jJBYP.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BVD0BK7h.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DR_64X0q.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CFtgb1Xx.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CGmx4lcN.js} +3 -3
- package/dist/{Setting-DCSefbch.js → Setting-BLP9IphZ.js} +15 -15
- package/dist/{SettingAdvertisements-B68GHFPu.js → SettingAdvertisements-CA0SQYm9.js} +12 -12
- package/dist/{Store-C5HUNrCL.js → Store-Dlpz8SoJ.js} +21 -21
- package/dist/{StoreRewards-DQ3MPr5_.js → StoreRewards-C4u0-lGn.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-fziZvSAu.js → StoreTransactions.vue_vue_type_script_setup_true_lang-VbGbTj44.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-IGFIBJK-.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DVGam9sh.js} +1 -1
- package/dist/{Tier-B2wfH7ov.js → Tier-DrsbrmLW.js} +23 -23
- package/dist/{Title-DA02V_tW.js → Title-CBlJHz1o.js} +23 -23
- package/dist/{Transaction-Bcjy-XpL.js → Transaction-5aKWN3ly.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B01EVKWa.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DK8YmEkt.js} +6 -6
- package/dist/{Voucher-CMvRFukk.js → Voucher-DkE0rh7M.js} +16 -16
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-hDw2GonS.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Kh4ljCGb.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C0SNLaTT.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dd7JkeK-.js} +2 -2
- package/dist/{app-Clc_fxr7.js → app-BR-pWYj_.js} +1 -1
- package/dist/{app-BnwvaUjf.js → app-bljpeKtJ.js} +46 -36
- package/dist/app.js +1 -1
- package/dist/{business-DTs1RVwW.js → business-CI7RS8Vk.js} +1 -1
- package/dist/{campaign-hjsuW70h.js → campaign-BVPLt3Ab.js} +8 -8
- package/dist/{campaign-C-YI6eUZ.js → campaign-CRIIhMp2.js} +1 -1
- package/dist/{campaign.enum-Y8uH9B1N.js → campaign.enum-B21yGrhF.js} +1 -1
- package/dist/{campaign.fn-CjOxPWB4.js → campaign.fn-CdomSg26.js} +114 -114
- package/dist/{collectible.enum-FI842Eg_.js → collectible.enum--zkbbtRm.js} +1 -1
- package/dist/{collection.fn-tkZ2Jz5q.js → collection.fn-Dg_sFWfB.js} +2 -2
- package/dist/{dto-jHPSXkpQ.js → dto-DuuDiLgE.js} +4 -4
- package/dist/{effect--khp0-Dk.js → effect-Dh5nBpkW.js} +1 -1
- package/dist/{email-addresses-kh0JimeA.js → email-addresses-Cd8lRcny.js} +1 -1
- package/dist/{export-BpAjk801.js → export-BiBEns6_.js} +3 -3
- package/dist/{helper-DrhEQHwq.js → helper-4GTDTpHQ.js} +1 -1
- package/dist/{index-CjfLezA2.js → index-1_45vnur.js} +1 -1
- package/dist/{index-D8UahMhD.js → index-BDe_iGE8.js} +1 -1
- package/dist/{index-DUYZ2HiI.js → index-BG_lmUVZ.js} +2 -2
- package/dist/{index-BzMFc1TL.js → index-C-uu1MTD.js} +1 -1
- package/dist/{index-BmYRSyFJ.js → index-C5ID6ZLO.js} +6 -6
- package/dist/{index-CEkk23PR.js → index-CS70kyE0.js} +1 -1
- package/dist/{index-BZrppr8k.js → index-CYKumK2u.js} +755 -755
- package/dist/{index-BL3Mdvlf.js → index-C_Y3N1_C.js} +1 -1
- package/dist/{index-FsB799qA.js → index-D-WPBvZN.js} +1 -1
- package/dist/{index-Dd3r1_0V.js → index-D5K-FMpD.js} +3 -3
- package/dist/{index-DlasG3H0.js → index-D7HTsvQE.js} +1 -1
- package/dist/{index-DuHxOBvZ.js → index-DUcYuOyP.js} +3 -3
- package/dist/{index-DnyXvYsb.js → index-E5U8yHRQ.js} +626 -608
- package/dist/{index.esm2017-DmPf2cMZ.js → index.esm2017-pxP2r94O.js} +1 -1
- package/dist/{loading-Cce2O21E.js → loading-BeZIBas-.js} +1 -1
- package/dist/{membership-DWmspoXh.js → membership-4qhmKVK-.js} +3 -3
- package/dist/{money-Car_1Uu5.js → money-tIxd82p3.js} +1 -1
- package/dist/{number-BKqKRPst.js → number-JLWWrxC3.js} +1 -1
- package/dist/objectid-29te3Afu.js +145 -0
- package/dist/{plugins-DgQI-VM9.js → plugins-e1lQuPVO.js} +3 -3
- package/dist/{reward-CyDdQ3f1.js → reward-B6cHTuVY.js} +1 -1
- package/dist/{rule-AVx2VM_m.js → rule-ZqZIhWsa.js} +3 -3
- package/dist/{rule-builder-7H09UHwS.js → rule-builder-BekMwFom.js} +1 -1
- package/dist/{template-F0LbthP3.js → template-BQst2DPF.js} +5 -5
- package/dist/{timezone-COLE0Gi_.js → timezone-CG2GlQMB.js} +1 -1
- package/dist/{trigger-CTSMJ35x.js → trigger-6hPwxkCq.js} +5 -5
- package/dist/{user-BQBOVBfW.js → user-CWKrmolz.js} +1 -1
- package/dist/{vue-i18n-CN5hOv3f.js → vue-i18n-DMTw1SSj.js} +234 -234
- package/dist/{xlsx-RGAf1V3W.js → xlsx-B6JCfTRO.js} +1 -1
- package/dist/{zod-DsTnqHJG.js → zod-Bgj7XO9e.js} +1 -1
- package/package.json +1 -1
- package/dist/objectid-BJMlT5vf.js +0 -145
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, unref, isRef, withCtx, createBlock, createCommentVNode, computed, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, toRefs, normalizeStyle, resolveDynamicComponent, createSlots } from "vue";
|
|
2
2
|
import { _ } from "./lodash-B5I3zXaY.js";
|
|
3
|
-
import { z } from "./app-
|
|
4
|
-
import { Z as ZodHelper } from "./zod-
|
|
5
|
-
import { c as campaignRefinement, C as CampaignDtos, a as campaignTransform } from "./dto-
|
|
6
|
-
import { u as useMembershipStore } from "./membership-
|
|
7
|
-
import { u as useBusinessStore } from "./business-
|
|
8
|
-
import "./index-
|
|
9
|
-
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-
|
|
3
|
+
import { z } from "./app-bljpeKtJ.js";
|
|
4
|
+
import { Z as ZodHelper } from "./zod-Bgj7XO9e.js";
|
|
5
|
+
import { c as campaignRefinement, C as CampaignDtos, a as campaignTransform } from "./dto-DuuDiLgE.js";
|
|
6
|
+
import { u as useMembershipStore } from "./membership-4qhmKVK-.js";
|
|
7
|
+
import { u as useBusinessStore } from "./business-CI7RS8Vk.js";
|
|
8
|
+
import "./index-BG_lmUVZ.js";
|
|
9
|
+
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-BekMwFom.js";
|
|
10
10
|
import { J as JsonViewer } from "./JsonViewer-v8_C7l5N.js";
|
|
11
11
|
import { h as hooks } from "./moment-D7p2TMB-.js";
|
|
12
|
-
import { f as featureVersionMapping } from "./campaign.enum-
|
|
13
|
-
import { _ as _sfc_main$o } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { b as _sfc_main$m, a as _sfc_main$p, _ as _sfc_main$r } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
15
|
-
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { p as prompt, f as firebaseStorage } from "./plugins-
|
|
19
|
-
import { u as useI18n } from "./vue-i18n-
|
|
20
|
-
import { T as TypeToTriggerOptions, _ as _sfc_main$u, b as _sfc_main$v } from "./trigger-
|
|
21
|
-
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
22
|
-
import { C as CountryTimezone, m as moment } from "./timezone-
|
|
23
|
-
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-
|
|
12
|
+
import { f as featureVersionMapping } from "./campaign.enum-B21yGrhF.js";
|
|
13
|
+
import { _ as _sfc_main$o } from "./ImageInput.vue_vue_type_script_setup_true_lang-BcbGnJBq.js";
|
|
14
|
+
import { b as _sfc_main$m, a as _sfc_main$p, _ as _sfc_main$r } from "./EffectSheet.vue_vue_type_style_index_0_lang-B-W8N3ay.js";
|
|
15
|
+
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DVGam9sh.js";
|
|
16
|
+
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-DK8YmEkt.js";
|
|
17
|
+
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-O0RlU3Mu.js";
|
|
18
|
+
import { p as prompt, f as firebaseStorage } from "./plugins-e1lQuPVO.js";
|
|
19
|
+
import { u as useI18n } from "./vue-i18n-DMTw1SSj.js";
|
|
20
|
+
import { T as TypeToTriggerOptions, _ as _sfc_main$u, b as _sfc_main$v } from "./trigger-6hPwxkCq.js";
|
|
21
|
+
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-C5BdK7g7.js";
|
|
22
|
+
import { C as CountryTimezone, m as moment } from "./timezone-CG2GlQMB.js";
|
|
23
|
+
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-ZqZIhWsa.js";
|
|
24
24
|
import { useCoreStore } from "@feedmepos/mf-common";
|
|
25
|
-
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
26
|
-
import { t as FdoCreditLoyaltyReward, u as FdtoRandomReward, v as F_MISSION_TYPE, w as FdoThresholdCreditReward, x as FdtoThresholdReward, y as FdoMission } from "./index-
|
|
27
|
-
import { T as TEMPLATES } from "./index-
|
|
28
|
-
import "./index-
|
|
29
|
-
import "./index-
|
|
30
|
-
import { a as F_GAME_TYPE } from "./collectible.enum
|
|
31
|
-
import { u as useLoading } from "./loading-
|
|
32
|
-
import { i as initCollectibleConfig } from "./helper-
|
|
33
|
-
import { C as CollectionUtils } from "./collection.fn-
|
|
25
|
+
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-Kh4ljCGb.js";
|
|
26
|
+
import { t as FdoCreditLoyaltyReward, u as FdtoRandomReward, v as F_MISSION_TYPE, w as FdoThresholdCreditReward, x as FdtoThresholdReward, y as FdoMission } from "./index-E5U8yHRQ.js";
|
|
27
|
+
import { T as TEMPLATES } from "./index-C5ID6ZLO.js";
|
|
28
|
+
import "./index-C-uu1MTD.js";
|
|
29
|
+
import "./index-D5K-FMpD.js";
|
|
30
|
+
import { a as F_GAME_TYPE } from "./collectible.enum--zkbbtRm.js";
|
|
31
|
+
import { u as useLoading } from "./loading-BeZIBas-.js";
|
|
32
|
+
import { i as initCollectibleConfig } from "./helper-4GTDTpHQ.js";
|
|
33
|
+
import { C as CollectionUtils } from "./collection.fn-Dg_sFWfB.js";
|
|
34
34
|
import { s as sentenceCase$1 } from "./index-CuvNtC_M.js";
|
|
35
|
-
import { c as getCampaignSummaryObject } from "./campaign-
|
|
36
|
-
import "./index-
|
|
35
|
+
import { c as getCampaignSummaryObject } from "./campaign-BVPLt3Ab.js";
|
|
36
|
+
import "./index-CYKumK2u.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-CRIIhMp2.js";
|
|
39
|
+
import { S as SvcConfig } from "./index-DUcYuOyP.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",
|
|
@@ -1903,7 +1903,7 @@ const _hoisted_1$2 = { key: 26 }, _sfc_main$2 = /* @__PURE__ */ defineComponent(
|
|
|
1903
1903
|
}), _hoisted_1 = { class: "xs:hidden px-24 pb-[14px] pt-[22px] flex items-center justify-between w-full border-b" }, _hoisted_2 = { class: "flex items-center gap-8" }, _hoisted_3 = {
|
|
1904
1904
|
key: 0,
|
|
1905
1905
|
class: "max-w-6xl mx-auto"
|
|
1906
|
-
}, _hoisted_4 = { class: "hidden xs
|
|
1906
|
+
}, _hoisted_4 = { class: "hidden xs:!flex gap-8 items-center w-full px-16 py-8 border-b border-fm-color-neutral-gray-100" }, _hoisted_5 = { class: "grid grid-cols-3 gap-40" }, _hoisted_6 = { class: "col-span-2 space-y-40 xs:col-span-3 xs:px-16 xs:pt-16" }, _hoisted_7 = { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, _hoisted_8 = { class: "w-full flex items-center justify-end gap-8 pb-24" }, _hoisted_9 = { class: "max-w-6xl mx-auto rounded-md p-4 w-full" }, _hoisted_10 = { class: "animate-pulse flex space-x-4 pt-16" }, _hoisted_11 = { class: "grid grid-cols-3 w-full gap-40" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1907
1907
|
__name: "EditCampaignSheet",
|
|
1908
1908
|
emits: ["submit:model-value"],
|
|
1909
1909
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as B, ref as P, onMounted as Q, computed as q, resolveComponent as V, openBlock as d, createElementBlock as F, renderSlot as W, toDisplayString as b, createCommentVNode as f, createBlock as u, unref as e, isRef as G, createVNode as g, normalizeClass as Z, watch as X, withCtx as w, resolveDynamicComponent as R, Fragment as _, createElementVNode as C, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-
|
|
3
|
-
import { Z as m } from "./zod-
|
|
4
|
-
import { f as le, g as oe } from "./index-
|
|
5
|
-
import { u as T } from "./vue-i18n-
|
|
6
|
-
import { s as O } from "./effect
|
|
7
|
-
import { p as ae } from "./plugins-
|
|
8
|
-
import { e as ne } from "./app-
|
|
2
|
+
import { z as te } from "./app-bljpeKtJ.js";
|
|
3
|
+
import { Z as m } from "./zod-Bgj7XO9e.js";
|
|
4
|
+
import { f as le, g as oe } from "./index-BG_lmUVZ.js";
|
|
5
|
+
import { u as T } from "./vue-i18n-DMTw1SSj.js";
|
|
6
|
+
import { s as O } from "./effect-Dh5nBpkW.js";
|
|
7
|
+
import { p as ae } from "./plugins-e1lQuPVO.js";
|
|
8
|
+
import { e as ne } from "./app-BR-pWYj_.js";
|
|
9
9
|
const ie = { class: "flex flex-col gap-8" }, de = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as
|
|
1
|
+
import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as h, createVNode as i, unref as o, createElementVNode as n, withCtx as x, renderList as M, createBlock as w, resolveDynamicComponent as H, toDisplayString as g, h as q } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as J } 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, c as
|
|
8
|
-
import { a as L, b as V, g as Z } from "./campaign-
|
|
9
|
-
import { u as ee } from "./vue-i18n-
|
|
4
|
+
import { p as Q } from "./plugins-e1lQuPVO.js";
|
|
5
|
+
import { u as W } from "./loading-BeZIBas-.js";
|
|
6
|
+
import { u as X } from "./business-CI7RS8Vk.js";
|
|
7
|
+
import { u as Y, c as y } from "./campaign-CRIIhMp2.js";
|
|
8
|
+
import { a as L, b as V, g as Z } from "./campaign-BVPLt3Ab.js";
|
|
9
|
+
import { u as ee } from "./vue-i18n-DMTw1SSj.js";
|
|
10
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-
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
11
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DuF8tYV_.js";
|
|
12
|
+
import { u as ae } from "./template-BQst2DPF.js";
|
|
13
|
+
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" }, ie = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "flex flex-col gap-16 text-center" }, ue = { class: "fm-typo-en-title-sm-800" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = /* @__PURE__ */ E({
|
|
14
14
|
__name: "Experience",
|
|
15
|
-
setup(
|
|
15
|
+
setup(ge) {
|
|
16
16
|
const { t: r } = ee(), P = {
|
|
17
17
|
label: r("connect.program.common.actions.create", {
|
|
18
18
|
type: r("connect.program.experience.title").toLowerCase()
|
|
@@ -20,18 +20,18 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
20
20
|
value: "create",
|
|
21
21
|
isPrimary: !0,
|
|
22
22
|
prependIcon: "add"
|
|
23
|
-
}, B =
|
|
23
|
+
}, B = ae("POINT", G()), I = X(), d = Y(), { global: T, minor: b } = W, s = S({
|
|
24
24
|
searchKey: "",
|
|
25
25
|
location: []
|
|
26
26
|
});
|
|
27
27
|
function $(e) {
|
|
28
28
|
const t = s.value.location;
|
|
29
29
|
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
|
|
30
|
-
var
|
|
31
|
-
return (
|
|
30
|
+
var c;
|
|
31
|
+
return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
|
|
32
32
|
}) : e.targetLocation.includes(t);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const u = U(
|
|
35
35
|
() => d.campaigns.experience.filter((e) => $(e))
|
|
36
36
|
), K = [
|
|
37
37
|
{
|
|
@@ -58,16 +58,16 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
58
58
|
icon: "delete",
|
|
59
59
|
iconColor: "neutral-gray-400",
|
|
60
60
|
onClick: (t) => {
|
|
61
|
-
t.stopPropagation(),
|
|
61
|
+
t.stopPropagation(), v(e.row.original);
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
],
|
|
67
|
-
async function
|
|
68
|
-
await Q.remove(`Are you sure you want to remove ${e.name}?`) && await
|
|
66
|
+
], C = S();
|
|
67
|
+
async function v(e) {
|
|
68
|
+
await Q.remove(`Are you sure you want to remove ${e.name}?`) && await b(
|
|
69
69
|
async () => {
|
|
70
|
-
await
|
|
70
|
+
await y.delete(e._id), await d.read("POINT");
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
message: `Removing ${e.name}`,
|
|
@@ -75,24 +75,24 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
async function
|
|
78
|
+
async function f(e) {
|
|
79
79
|
e ? await t() : B.open(async (l) => {
|
|
80
80
|
await t(l);
|
|
81
81
|
});
|
|
82
82
|
async function t(l) {
|
|
83
|
-
var
|
|
84
|
-
(
|
|
83
|
+
var c;
|
|
84
|
+
(c = C.value) == null || c.showSheet(
|
|
85
85
|
!0,
|
|
86
86
|
"POINT",
|
|
87
|
-
e ? await
|
|
87
|
+
e ? await y.readById(e._id) : void 0,
|
|
88
88
|
l
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
async function N(e) {
|
|
93
|
-
await
|
|
93
|
+
await b(
|
|
94
94
|
async () => {
|
|
95
|
-
e.campaign._id ? await
|
|
95
|
+
e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await d.read("POINT");
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
message: r("connect.program.common.update.updating", {
|
|
@@ -110,79 +110,75 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
110
110
|
await d.read("POINT");
|
|
111
111
|
});
|
|
112
112
|
}), (e, t) => {
|
|
113
|
-
const l = m("FmPageHead"),
|
|
114
|
-
return p(), _(
|
|
115
|
-
|
|
113
|
+
const l = m("FmPageHead"), c = m("FmSearch"), A = m("FmTable"), F = m("FmButton"), O = m("FmListItem"), R = m("FmList"), D = m("FmCard");
|
|
114
|
+
return p(), _(h, null, [
|
|
115
|
+
i(l, {
|
|
116
116
|
title: o(r)("connect.program.experience.title"),
|
|
117
|
-
actions: o(
|
|
118
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
117
|
+
actions: o(u).length > 0 ? [P] : [],
|
|
118
|
+
"onClick:action": t[0] || (t[0] = () => f())
|
|
119
119
|
}, null, 8, ["title", "actions"]),
|
|
120
|
-
|
|
121
|
-
c
|
|
120
|
+
n("div", ne, [
|
|
121
|
+
i(c, {
|
|
122
122
|
modelValue: o(s).searchKey,
|
|
123
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
124
|
-
class: "hidden xs
|
|
123
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(s).searchKey = a),
|
|
124
|
+
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
125
125
|
placeholder: o(r)("connect.program.common.search"),
|
|
126
126
|
collapsible: ""
|
|
127
127
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
128
|
-
o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(h, { key: 0 }, [
|
|
129
|
+
n("div", re, [
|
|
130
|
+
n("div", se, [
|
|
131
|
+
i(te, {
|
|
132
132
|
label: `${o(r)("connect.common.location")}: `,
|
|
133
133
|
"right-icon": "keyboard_arrow_down",
|
|
134
134
|
modelValue: o(s).location,
|
|
135
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
135
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(s).location = a),
|
|
136
136
|
icon: "storefront",
|
|
137
137
|
"show-item-label": !0,
|
|
138
138
|
items: o(I).locationOptions
|
|
139
139
|
}, null, 8, ["label", "modelValue", "items"])
|
|
140
140
|
]),
|
|
141
|
-
c
|
|
141
|
+
i(c, {
|
|
142
142
|
modelValue: o(s).searchKey,
|
|
143
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
144
|
-
class: "xs:hidden",
|
|
143
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(s).searchKey = a),
|
|
144
|
+
class: "xs:hidden sm:hidden",
|
|
145
145
|
placeholder: "search",
|
|
146
146
|
collapsible: ""
|
|
147
147
|
}, null, 8, ["modelValue"])
|
|
148
148
|
]),
|
|
149
|
-
|
|
150
|
-
class: "xs:hidden",
|
|
151
|
-
"row-data": o(
|
|
149
|
+
i(A, {
|
|
150
|
+
class: "xs:hidden sm:hidden",
|
|
151
|
+
"row-data": o(u),
|
|
152
152
|
"column-defs": K,
|
|
153
153
|
"search-value": o(s).searchKey,
|
|
154
154
|
"column-filter": [],
|
|
155
|
-
onRowClick: t[4] || (t[4] = (
|
|
156
|
-
"hide-footer": o(
|
|
155
|
+
onRowClick: t[4] || (t[4] = (a) => f(a.original)),
|
|
156
|
+
"hide-footer": o(u).length < 10
|
|
157
157
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
158
|
-
|
|
159
|
-
default:
|
|
160
|
-
(p(!0), _(
|
|
161
|
-
(
|
|
162
|
-
), (
|
|
163
|
-
key:
|
|
164
|
-
onClick: (k) =>
|
|
158
|
+
i(R, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
159
|
+
default: x(() => [
|
|
160
|
+
(p(!0), _(h, null, M(o(u).filter(
|
|
161
|
+
(a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
|
|
162
|
+
), (a) => (p(), w(O, {
|
|
163
|
+
key: a._id.toString(),
|
|
164
|
+
onClick: (k) => f(a),
|
|
165
165
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
166
166
|
}, {
|
|
167
|
-
default:
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
(p(), w(H(o(L)(
|
|
171
|
-
a("div", le, u(n.currentReceive ?? 0) + " used ", 1)
|
|
167
|
+
default: x(() => [
|
|
168
|
+
n("div", ie, [
|
|
169
|
+
n("div", ce, [
|
|
170
|
+
(p(), w(H(o(L)(a))))
|
|
172
171
|
]),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
])
|
|
177
|
-
a("div", ue, u(o(r)("connect.program.experience.received", {
|
|
178
|
-
count: n.currentReceive ?? 0
|
|
179
|
-
})), 1)
|
|
172
|
+
n("div", le, [
|
|
173
|
+
n("div", me, g(a.name), 1),
|
|
174
|
+
n("div", de, g(o(V)(a)), 1)
|
|
175
|
+
])
|
|
180
176
|
]),
|
|
181
|
-
|
|
177
|
+
i(F, {
|
|
182
178
|
icon: "delete",
|
|
183
179
|
"icon-color": "neutral-gray-400",
|
|
184
180
|
variant: "tertiary",
|
|
185
|
-
onClick: (k) => (k.stopPropagation(),
|
|
181
|
+
onClick: (k) => (k.stopPropagation(), v(a))
|
|
186
182
|
}, null, 8, ["onClick"])
|
|
187
183
|
]),
|
|
188
184
|
_: 2
|
|
@@ -195,27 +191,27 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
195
191
|
variant: "outlined",
|
|
196
192
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
197
193
|
}, {
|
|
198
|
-
default:
|
|
199
|
-
t[6] || (t[6] =
|
|
194
|
+
default: x(() => [
|
|
195
|
+
t[6] || (t[6] = n("img", {
|
|
200
196
|
src: z,
|
|
201
197
|
class: "aspect-square w-[150px]"
|
|
202
198
|
}, null, -1)),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
n("div", pe, [
|
|
200
|
+
n("div", ue, g(o(r)("connect.program.experience.empty_state.title")), 1),
|
|
201
|
+
n("div", fe, g(o(r)("connect.program.experience.empty_state.description")), 1)
|
|
206
202
|
]),
|
|
207
|
-
|
|
203
|
+
i(F, {
|
|
208
204
|
variant: "primary",
|
|
209
205
|
label: "Create experience program",
|
|
210
206
|
icon: "add",
|
|
211
|
-
onClick: t[5] || (t[5] = (
|
|
207
|
+
onClick: t[5] || (t[5] = (a) => f())
|
|
212
208
|
})
|
|
213
209
|
]),
|
|
214
210
|
_: 1
|
|
215
211
|
})),
|
|
216
|
-
|
|
212
|
+
i(oe, {
|
|
217
213
|
ref_key: "sheetRef",
|
|
218
|
-
ref:
|
|
214
|
+
ref: C,
|
|
219
215
|
"onSubmit:modelValue": N
|
|
220
216
|
}, null, 512)
|
|
221
217
|
])
|
|
@@ -224,5 +220,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
224
220
|
}
|
|
225
221
|
});
|
|
226
222
|
export {
|
|
227
|
-
|
|
223
|
+
Ve as default
|
|
228
224
|
};
|