@feedmepos/mf-connect 0.1.114-prod → 0.1.115-dev
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/README.md +66 -1
- package/dist/{App-DMYXrCc7.js → App-43mZfFAr.js} +700 -654
- package/dist/AuditLogs-BPpdm96t.js +2016 -0
- package/dist/{Bin-CHZolo56.js → Bin-CA7v180Y.js} +8 -8
- package/dist/Broadcast-qmdifF2Y.js +306 -0
- package/dist/{CampaignAnalytic-DgZvsUoF.js → CampaignAnalytic-xnrDxqaH.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C42uL_JO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js} +9 -9
- package/dist/{Card-wRFTJwJ9.js → Card-D8icsk7L.js} +25 -24
- package/dist/{Collections-9G-_9Etz.js → Collections--THcD-E_.js} +197 -185
- package/dist/{Credit-Bl7IDMCU.js → Credit-JrbtVMBp.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BVLJeofG.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Q1f6EQW3.js → EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js} +32 -32
- package/dist/{Experience-Cs2iViLv.js → Experience-CFeRqBoj.js} +32 -31
- package/dist/{FileSaver.min-B3Levdbu.js → FileSaver.min-CCXIBm58.js} +1 -1
- package/dist/{Game-oXURgzan.js → Game-CPxq6Ex3.js} +19 -18
- package/dist/{GiftCardSetup-C2Wu-dRl.js → GiftCardSetup-D0esVZDp.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Da2e89Um.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js} +7 -7
- package/dist/{Goals-B_xEM7gf.js → Goals-DaKI6uXt.js} +4 -4
- package/dist/Grab-BWzdN_cd.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BRJR1heE.js → ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js} +1 -1
- package/dist/{Index-kuT6W6R_.js → Index-2kENoaZm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-7JqHfSk-.js → LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CI_4S7tW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js} +1 -1
- package/dist/{LoyaltyDashboard-CqxHdZcm.js → LoyaltyDashboard-CB93Fz8u.js} +15 -15
- package/dist/MainLayout-DwnjGXh6.js +4 -0
- package/dist/{MainLayout-CAERFIms.js → MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js} +5 -4
- package/dist/Marketing-DCco__2F.js +273 -0
- package/dist/MarketingMaterialEdit-BbgFtrYP.js +1037 -0
- package/dist/{Member-B8VZEn9t.js → Member-B--nYyr0.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B31lVLKh.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js} +43 -50
- package/dist/{MemberImportHistory-D9tgHnTS.js → MemberImportHistory-D52Y4RTC.js} +7 -7
- package/dist/{MemberList-Hw_xQY1i.js → MemberList-13Owa1fj.js} +103 -105
- package/dist/{MemberTransactions-DiBO4plw.js → MemberTransactions-CpXEWNbq.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbFt5X89.js → MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js} +4228 -4176
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BE_-Ed4z.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js} +1 -1
- package/dist/{Mission-DpYei3aF.js → Mission-Ci-UzXSu.js} +22 -21
- package/dist/{Overview-CARquJCS.js → Overview-CKxSfAGF.js} +145 -144
- package/dist/{Overview-BFQMmyT6.js → Overview-CXen9Ram.js} +23 -22
- package/dist/{Point-Dd2ykwNv.js → Point-CR3YOaag.js} +22 -21
- package/dist/{Promotion-DXl-W7np.js → Promotion-tw3J4ul-.js} +137 -131
- package/dist/{Queue-Cd3N-4iB.js → Queue-BZGA5ZXt.js} +47 -46
- package/dist/{Record-C3HdDsh5.js → Record-BTevVXnT.js} +9 -9
- package/dist/{Review-Bif3Ub9Z.js → Review-BU7c8ZF0.js} +2 -2
- package/dist/ReviewFacebookCallback-BnMF6Arh.js +225 -0
- package/dist/{ReviewGoogleCallback-i-RNLlLm.js → ReviewGoogleCallback-xpdPHSdg.js} +5 -5
- package/dist/{Reward-DHxzrR_7.js → Reward-jlA_7cxz.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DcrFlcSo.js → RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js} +16 -15
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js +1923 -0
- package/dist/{Segment-Cjpxordk.js → Segment-C1Bwm--Q.js} +290 -291
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-6u21xBu6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BOXVzfer.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js} +4 -4
- package/dist/Setting-CDM4RhLW.js +574 -0
- package/dist/{SettingAdvertisements-aog5fz32.js → SettingAdvertisements-4XEAJzlL.js} +12 -12
- package/dist/Settings-D-0tvZRr.js +286 -0
- package/dist/{Store-Bq3kw1l2.js → Store-C56dXtc4.js} +31 -30
- package/dist/{StoreRewards-ZGXKEM09.js → StoreRewards-DQ1Q6WS6.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js +7007 -0
- package/dist/{Tier-CfgpEHY7.js → Tier-D4CPZqw7.js} +2576 -687
- package/dist/{Title-B2itYWeD.js → Title-DCbwhUic.js} +94 -92
- package/dist/{Transaction-hJ5ygIcf.js → Transaction-C5LrasXr.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-8BgGlpTh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js} +26 -26
- package/dist/{Voucher-TG47pGR3.js → Voucher-rrVbNZKR.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjuXCTxg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js} +16 -16
- package/dist/WhatsappAccount-oJDo5zTr.js +159 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js +39 -0
- package/dist/WhatsappBot-Cl64wG_F.js +876 -0
- package/dist/WhatsappBotLogs-D3uT4EiB.js +372 -0
- package/dist/WhatsappBotSettings-Cs1lLxh-.js +705 -0
- package/dist/WhatsappLayout-C639d2HP.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js +253 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js → ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js} +2 -2
- package/dist/{app-tPHYkJcQ.js → app-CgimGODl.js} +10610 -8223
- package/dist/app.js +4 -3
- package/dist/{base.export-BHDVnGj2.js → base.export-D2P6HFvo.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-HLyWfrXY.js → business-Bu5TqSA0.js} +1 -1
- package/dist/campaign-BFIXSgdJ.js +400 -0
- package/dist/{campaign-5zFgUNLw.js → campaign-zJxttSIk.js} +31 -25
- package/dist/{campaign.enum-BOkDnP2g.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/{campaign.fn-BIAoVtJj.js → campaign.fn-gvjlcEfe.js} +78 -78
- package/dist/{collectible.enum-BbZSAfys.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-DPSgBHnz.js → collection.fn-DOm0HsSh.js} +2 -2
- package/dist/{currency-BVrMqU6-.js → currency-BpbQvbm8.js} +1 -1
- package/dist/duplicateCampaign-CvsvjRE9.js +51 -0
- package/dist/{effect-BBifVx76.js → effect-D-GtNB3n.js} +1 -1
- package/dist/{email-addresses-9C7xHTNv.js → email-addresses-BKMoAtMi.js} +2 -2
- package/dist/feature-flag-BJ_eyKsq.js +868 -0
- package/dist/feature-flag-Bo-k5sIG.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-C08jyQNK.js → helper-CkfjBgMM.js} +1 -1
- package/dist/{index-Dhyqf1s8.js → index-B6kU3PkV.js} +2700 -2613
- package/dist/{index-BgwZGunW.js → index-BAtUrtqM.js} +19 -6
- package/dist/index-BKsxIwbi.js +14571 -0
- package/dist/{index-DZ-q5O-V.js → index-BdEXUNoG.js} +4 -4
- package/dist/{index-hIUtD2eY.js → index-Bhl5IRXy.js} +11 -10
- package/dist/{index-kCbkOivd.js → index-BpTIulTX.js} +1 -1
- package/dist/index-C-iwb2Ln.js +109 -0
- package/dist/{index-Ciw2TZxV.js → index-CCEXSPxk.js} +8 -7
- package/dist/{index-CUle4c2B.js → index-CIej31pF.js} +4 -3
- package/dist/{index-ihw-WFCa.js → index-CQ8XFbBk.js} +2 -2
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-CEe1kJ0T.js → index-CfQuYqXn.js} +1 -1
- package/dist/{index-C_WoO58V.js → index-CuREApMc.js} +8 -7
- package/dist/{index-NJSI4wX4.js → index-D0JK99Ko.js} +693 -231
- package/dist/{index-DnRMNmUA.js → index-DKxN1mMS.js} +396 -232
- package/dist/index-DQ8JJhxs.js +74 -0
- package/dist/{index-D24Q28cH.js → index-DUAZOMVJ.js} +1 -1
- package/dist/{index-Yo0tP8KJ.js → index-DqGs6RJG.js} +683 -581
- package/dist/{index-B_334Y_i.js → index-DwU3fsLW.js} +29 -15
- package/dist/{index-hSRM1smQ.js → index-LygS9WsG.js} +8028 -10767
- package/dist/{index-96ZiAKj_.js → index-feCrYhi6.js} +1 -1
- package/dist/{index-Dk-jg0wN.js → index-zTvr2GR4.js} +2 -2
- package/dist/{index.esm2017-hN99SQTb.js → index.esm2017-DZi9IQPS.js} +209 -209
- package/dist/{loading-CVuY4vQ4.js → loading-Brid2wnu.js} +1 -1
- package/dist/{lodash-GFl9_FMH.js → lodash-C1epw3Kv.js} +1 -1
- package/dist/{member-import-CshTzabx.js → member-import-DAIxTIiu.js} +6 -5
- package/dist/{membership-S0KES3Ex.js → membership-BZmljFhF.js} +3 -3
- package/dist/{money-JxdX8ru4.js → money-cLcyGcSZ.js} +1 -1
- package/dist/{number-BRLwa-mB.js → number-C2jPLJr2.js} +1 -1
- package/dist/objectid-C-wocWKI.js +145 -0
- package/dist/{onboarding-BSKYeyP7.js → onboarding-oRfy_g05.js} +25 -25
- package/dist/{onboardingSetup-BqT52VRm.js → onboardingSetup-BLD6m8HY.js} +2 -2
- package/dist/{plugins-BR_wmMFJ.js → plugins-CUsr9vB0.js} +3 -3
- package/dist/{MarketingMaterialEdit-BvIthCHG.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-CpCGg_W2.js → reward-UOT03odb.js} +1 -1
- package/dist/{rule-Dbg9e8MO.js → rule-BgJnPjkI.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-BZyFhr73.js +188 -0
- package/dist/{timezone-CDVa-xPr.js → timezone-BXA4wq7Y.js} +1 -1
- package/dist/{transaction.fn-DrTBoF9T.js → transaction.fn-CQ4fpRt3.js} +2 -2
- package/dist/{trigger-wqGwQfB2.js → trigger-DXJCGT0q.js} +8 -8
- package/dist/useMarketingMaterialActions-B-Wib5ga.js +125 -0
- package/dist/{usePagination-fODgpZZ8.js → usePagination-Pp4okWr8.js} +1 -1
- package/dist/{user-DaLUK1dk.js → user-B3gXcAIy.js} +1 -1
- package/dist/vue-i18n-DWGiC_vs.js +2365 -0
- package/dist/{xlsx-Bl4_Dtrq.js → xlsx-CCaDUTgW.js} +651 -651
- package/dist/{zod-CAzWyVqj.js → zod-CPwjOxvW.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-ByWvxVhW.js +0 -271
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGpQfV5T.js +0 -2431
- package/dist/Marketing-KgcwGErU.js +0 -236
- package/dist/ReviewFacebookCallback-mJF54-9l.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js +0 -1883
- package/dist/Setting-Dl9MelHz.js +0 -2036
- package/dist/Settings-DvCCClIP.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DscLAF0p.js +0 -1264
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-l_v4FHO0.js +0 -142
- package/dist/campaign-awCRccgX.js +0 -228
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-CoNJdOx7.js +0 -51
- package/dist/objectid-CEHN25HN.js +0 -145
- package/dist/rule-builder-BEIjxsE0.js +0 -102
- package/dist/template-CS-lExgI.js +0 -236
- package/dist/useMarketingMaterialActions-DC0gIyIZ.js +0 -96
- package/dist/vue-i18n-Dx-KXojZ.js +0 -2365
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as U, computed as w, watch as M, resolveComponent as v, openBlock as a, createElementBlock as i, Fragment as p, toDisplayString as F, createCommentVNode as T, createElementVNode as j, createVNode as h, unref as n, renderList as S, createBlock as k, isRef as $, withCtx as C } from "vue";
|
|
2
|
-
import { u as q } from "./business-HLyWfrXY.js";
|
|
3
|
-
import { u as D } from "./vue-i18n-Dx-KXojZ.js";
|
|
4
|
-
function K(l, s, o) {
|
|
5
|
-
return l.some(
|
|
6
|
-
o instanceof Function ? o : (u) => u === s
|
|
7
|
-
) || l.push(s), l;
|
|
8
|
-
}
|
|
9
|
-
function O(l, s, o) {
|
|
10
|
-
return l.filter(
|
|
11
|
-
o instanceof Function ? (u) => !o(u) : (u) => u !== s
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
const R = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "fm-typo-en-body-lg-400"
|
|
17
|
-
}, z = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "space-y-4"
|
|
20
|
-
}, A = { key: 0 }, G = { key: 1 }, H = { key: 2 }, W = /* @__PURE__ */ N({
|
|
21
|
-
__name: "TargetLocationInput",
|
|
22
|
-
props: {
|
|
23
|
-
label: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
type: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "select"
|
|
29
|
-
},
|
|
30
|
-
modelValue: {
|
|
31
|
-
type: Object,
|
|
32
|
-
required: !0
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["update:model-value"],
|
|
36
|
-
setup(l, { emit: s }) {
|
|
37
|
-
const o = q(), { t: u } = D(), c = l, r = U(""), B = w(() => o.locations.filter(
|
|
38
|
-
(d) => {
|
|
39
|
-
var t;
|
|
40
|
-
return d.name.toLowerCase().includes(r.value.toLowerCase()) || ((t = d == null ? void 0 : d.code) == null ? void 0 : t.toLowerCase().includes(r.value.toLowerCase()));
|
|
41
|
-
}
|
|
42
|
-
)), b = s;
|
|
43
|
-
function L(d, t) {
|
|
44
|
-
const m = d ? K(c.modelValue || [], t.toString()) : O(
|
|
45
|
-
c.modelValue || o.locations.map((g) => g._id.toString()),
|
|
46
|
-
t.toString()
|
|
47
|
-
);
|
|
48
|
-
return b("update:model-value", m);
|
|
49
|
-
}
|
|
50
|
-
const V = U(!1), I = w(() => {
|
|
51
|
-
var m, g;
|
|
52
|
-
const t = ((m = c.modelValue) == null ? void 0 : m.slice(0, 5).map((f) => {
|
|
53
|
-
var y;
|
|
54
|
-
return ((y = o.locationById(f)) == null ? void 0 : y.name) || f;
|
|
55
|
-
})) || [];
|
|
56
|
-
return c.modelValue && ((g = c.modelValue) == null ? void 0 : g.length) > 5 && t.push(`+${c.modelValue.length - 5} more`), t;
|
|
57
|
-
});
|
|
58
|
-
return M(V, (d) => {
|
|
59
|
-
d && (r.value = "");
|
|
60
|
-
}), (d, t) => {
|
|
61
|
-
const m = v("FmCheckbox"), g = v("FmChip"), f = v("FmField"), y = v("FmTextField"), E = v("FmMenu");
|
|
62
|
-
return a(), i(p, null, [
|
|
63
|
-
l.label ? (a(), i("div", R, F(l.label), 1)) : T("", !0),
|
|
64
|
-
l.type === "checkbox" ? (a(), i("div", z, [
|
|
65
|
-
j("div", null, [
|
|
66
|
-
h(m, {
|
|
67
|
-
value: null,
|
|
68
|
-
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < n(o).locations.length,
|
|
69
|
-
label: n(u)("connect.setting.location.allLocations"),
|
|
70
|
-
"model-value": l.modelValue == null || l.modelValue.length === n(o).locations.length,
|
|
71
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => b("update:model-value", e ? null : []))
|
|
72
|
-
}, null, 8, ["indeterminate", "label", "model-value"])
|
|
73
|
-
]),
|
|
74
|
-
(a(!0), i(p, null, S(n(o).locations, (e) => (a(), i("div", {
|
|
75
|
-
key: e._id.toString()
|
|
76
|
-
}, [
|
|
77
|
-
h(m, {
|
|
78
|
-
value: e._id.toString(),
|
|
79
|
-
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
80
|
-
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
81
|
-
"onUpdate:modelValue": (x) => L(x, e._id.toString())
|
|
82
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"])
|
|
83
|
-
]))), 128))
|
|
84
|
-
])) : (a(), k(E, {
|
|
85
|
-
key: 2,
|
|
86
|
-
modelValue: n(V),
|
|
87
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) => $(V) ? V.value = e : null),
|
|
88
|
-
onMenuChanged: t[4] || (t[4] = (e) => V.value = e),
|
|
89
|
-
placement: "top-end"
|
|
90
|
-
}, {
|
|
91
|
-
"menu-button": C(() => [
|
|
92
|
-
h(f, {
|
|
93
|
-
"append-icon": n(V) ? "expand_more" : "expand_less",
|
|
94
|
-
class: "!h-auto"
|
|
95
|
-
}, {
|
|
96
|
-
default: C(() => [
|
|
97
|
-
!l.modelValue || l.modelValue.length == n(o).locations.length ? (a(), i("div", A, F(n(u)("connect.setting.location.allLocations")), 1)) : l.modelValue.length ? (a(), i("div", H, [
|
|
98
|
-
(a(!0), i(p, null, S(n(I), (e) => (a(), k(g, {
|
|
99
|
-
key: e,
|
|
100
|
-
label: e,
|
|
101
|
-
class: "max-w-[130px] text-ellipsis"
|
|
102
|
-
}, null, 8, ["label"]))), 128))
|
|
103
|
-
])) : (a(), i("div", G, F(n(u)("connect.setting.location.noLocations")), 1))
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["append-icon"])
|
|
107
|
-
]),
|
|
108
|
-
default: C(() => [
|
|
109
|
-
h(y, {
|
|
110
|
-
modelValue: n(r),
|
|
111
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) => $(r) ? r.value = e : null),
|
|
112
|
-
placeholder: n(u)("connect.setting.location.searchLocations"),
|
|
113
|
-
class: "my-8"
|
|
114
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
115
|
-
h(m, {
|
|
116
|
-
class: "my-8",
|
|
117
|
-
value: null,
|
|
118
|
-
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < n(o).locations.length,
|
|
119
|
-
label: n(u)("connect.setting.location.allLocations"),
|
|
120
|
-
"model-value": l.modelValue == null || l.modelValue.length === n(o).locations.length,
|
|
121
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => b("update:model-value", e ? null : []))
|
|
122
|
-
}, null, 8, ["indeterminate", "label", "model-value"]),
|
|
123
|
-
(a(!0), i(p, null, S(n(B), (e) => (a(), k(m, {
|
|
124
|
-
class: "my-8",
|
|
125
|
-
key: e._id.toString(),
|
|
126
|
-
value: e._id.toString(),
|
|
127
|
-
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
128
|
-
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
129
|
-
"onUpdate:modelValue": (x) => L(x, e._id.toString())
|
|
130
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["modelValue"]))
|
|
134
|
-
], 64);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
export {
|
|
139
|
-
W as _,
|
|
140
|
-
K as p,
|
|
141
|
-
O as r
|
|
142
|
-
};
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { h as r } from "./moment-D7p2TMB-.js";
|
|
2
|
-
import "./index-DnRMNmUA.js";
|
|
3
|
-
import { e as p } from "./effect-BBifVx76.js";
|
|
4
|
-
import { components as u } from "@feedmepos/ui-library";
|
|
5
|
-
import { i as g } from "./rule-builder-BEIjxsE0.js";
|
|
6
|
-
import { c as y } from "./rule-Dbg9e8MO.js";
|
|
7
|
-
import { u as d } from "./business-HLyWfrXY.js";
|
|
8
|
-
import { C as m } from "./campaign.fn-BIAoVtJj.js";
|
|
9
|
-
import { c as f } from "./string-Gcy5IM_H.js";
|
|
10
|
-
import { i as o } from "./plugins-BR_wmMFJ.js";
|
|
11
|
-
import { h as s } from "vue";
|
|
12
|
-
import { F as a } from "./campaign.enum-BOkDnP2g.js";
|
|
13
|
-
function c(e) {
|
|
14
|
-
return s(
|
|
15
|
-
"div",
|
|
16
|
-
{
|
|
17
|
-
class: `${e.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
|
|
18
|
-
},
|
|
19
|
-
[
|
|
20
|
-
s(u.FmIcon, { size: "sm", name: e.icon, outline: !0 }),
|
|
21
|
-
s("span", { class: "fm-typo-en-body-md-600" }, e.name)
|
|
22
|
-
]
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
const D = {
|
|
26
|
-
[a.enum.CREDIT]: {
|
|
27
|
-
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
28
|
-
icon: "local_activity",
|
|
29
|
-
get name() {
|
|
30
|
-
return o.global.t("connect.campaign.common.typeName.CREDIT");
|
|
31
|
-
},
|
|
32
|
-
chip() {
|
|
33
|
-
return c(this);
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
[a.enum.PROMOTION]: {
|
|
37
|
-
chipClass: "!text-fm-color-secondary-citrus !bg-fm-color-system-warning-100",
|
|
38
|
-
icon: "loyalty",
|
|
39
|
-
get name() {
|
|
40
|
-
return o.global.t("connect.campaign.common.typeName.PROMOTION");
|
|
41
|
-
},
|
|
42
|
-
chip() {
|
|
43
|
-
return c(this);
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
[a.enum.VOUCHER]: {
|
|
47
|
-
chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
|
|
48
|
-
icon: "sell",
|
|
49
|
-
get name() {
|
|
50
|
-
return o.global.t("connect.campaign.common.typeName.VOUCHER");
|
|
51
|
-
},
|
|
52
|
-
chip() {
|
|
53
|
-
return c(this);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
[a.enum.POINT]: {
|
|
57
|
-
chipClass: "!text-fm-color-secondary-cocoa !bg-[#fff9e6]",
|
|
58
|
-
icon: "award_star",
|
|
59
|
-
get name() {
|
|
60
|
-
return o.global.t("connect.campaign.common.typeName.POINT");
|
|
61
|
-
},
|
|
62
|
-
chip() {
|
|
63
|
-
return c(this);
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
[a.enum.BROADCAST]: {
|
|
67
|
-
chipClass: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
68
|
-
icon: "campaign",
|
|
69
|
-
get name() {
|
|
70
|
-
return o.global.t("connect.campaign.common.typeName.BROADCAST");
|
|
71
|
-
},
|
|
72
|
-
chip() {
|
|
73
|
-
return c(this);
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
[a.enum.GAME]: {
|
|
77
|
-
chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
|
|
78
|
-
icon: "database",
|
|
79
|
-
get name() {
|
|
80
|
-
return o.global.t("connect.campaign.common.typeName.GAME");
|
|
81
|
-
},
|
|
82
|
-
chip() {
|
|
83
|
-
return c(this);
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
[a.enum.REWARD_POOL]: {
|
|
87
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
88
|
-
icon: "editor_choice",
|
|
89
|
-
get name() {
|
|
90
|
-
return o.global.t("connect.campaign.common.typeName.REWARD_POOL");
|
|
91
|
-
},
|
|
92
|
-
chip() {
|
|
93
|
-
return c(this);
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
[a.enum.COIN]: {
|
|
97
|
-
chipClass: "!text-fm-color-system-success-400 !bg-fm-color-system-success-100",
|
|
98
|
-
icon: "monetization_on",
|
|
99
|
-
get name() {
|
|
100
|
-
return o.global.t("connect.campaign.common.typeName.COIN");
|
|
101
|
-
},
|
|
102
|
-
chip() {
|
|
103
|
-
return c(this);
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
[a.enum.MEMBERSHIP]: {
|
|
107
|
-
chipClass: "",
|
|
108
|
-
icon: "",
|
|
109
|
-
get name() {
|
|
110
|
-
return o.global.t("connect.campaign.common.typeName.MEMBERSHIP");
|
|
111
|
-
},
|
|
112
|
-
chip() {
|
|
113
|
-
return c(this);
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
// TODO: confirm color
|
|
117
|
-
[a.enum.MISSION]: {
|
|
118
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
119
|
-
icon: "editor_choice",
|
|
120
|
-
get name() {
|
|
121
|
-
return o.global.t("connect.campaign.common.typeName.MISSION");
|
|
122
|
-
},
|
|
123
|
-
chip() {
|
|
124
|
-
return c(this);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
function A(e) {
|
|
129
|
-
const t = O(e), n = {
|
|
130
|
-
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
131
|
-
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
132
|
-
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
133
|
-
};
|
|
134
|
-
return e.type == "VOUCHER" ? s(u.FmChip, {
|
|
135
|
-
class: n[t],
|
|
136
|
-
label: f.title(
|
|
137
|
-
o.global.t(`connect.campaign.common.status.${t}`)
|
|
138
|
-
),
|
|
139
|
-
compact: !0
|
|
140
|
-
}) : s(u.FmChip, {
|
|
141
|
-
class: n[t],
|
|
142
|
-
label: f.title(
|
|
143
|
-
o.global.t(`connect.campaign.common.status.${t}`)
|
|
144
|
-
),
|
|
145
|
-
compact: !0
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
function h(e) {
|
|
149
|
-
if (!e || !e.start && !e.end)
|
|
150
|
-
return "connect.campaign.common.always";
|
|
151
|
-
const t = e.start ? r(e.start).format("DD MMM YYYY") : "From campaign creation", n = e.end ? r(e.end).format("DD MMM YYYY") : "Never ends";
|
|
152
|
-
return `${t} - ${n}`;
|
|
153
|
-
}
|
|
154
|
-
function $(e) {
|
|
155
|
-
const { campaign: t } = e;
|
|
156
|
-
return {
|
|
157
|
-
"connect.campaign.common.campaign_name": t.name,
|
|
158
|
-
"connect.campaign.common.campaign_period": h(
|
|
159
|
-
t.timeframeOptions
|
|
160
|
-
),
|
|
161
|
-
get "connect.campaign.common.next_schedule_at"() {
|
|
162
|
-
if (t.event.type != "SCHEDULE" || !t.event.rule || !g(t.event.rule))
|
|
163
|
-
return;
|
|
164
|
-
const n = y(
|
|
165
|
-
t.event.rule.rules.g_schedule
|
|
166
|
-
);
|
|
167
|
-
return n ? r(n).format("ddd, DD MMM YYYY, hh:mmA") : void 0;
|
|
168
|
-
},
|
|
169
|
-
get "connect.campaign.common.discount_type"() {
|
|
170
|
-
if (t.type == "PROMOTION") return p(t.effect);
|
|
171
|
-
if ("configs" in e && e.configs.type == "VOUCHER")
|
|
172
|
-
return p(e.configs.extras.effect);
|
|
173
|
-
},
|
|
174
|
-
get "connect.campaign.common.available_at"() {
|
|
175
|
-
return t.targetLocation ? t.targetLocation.length > 0 ? t.targetLocation.map(
|
|
176
|
-
(n) => d().locationItems.find((i) => i.value == n).label
|
|
177
|
-
).join(",") : "connect.campaign.common.no_location" : "connect.campaign.common.all_locations";
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
function O(e) {
|
|
182
|
-
return e.timeframeOptions && e.timeframeOptions.type == "timeframe" ? r().isBetween(
|
|
183
|
-
e.timeframeOptions.start ?? r().subtract(1, "d"),
|
|
184
|
-
e.timeframeOptions.end ?? r().add(1, "d")
|
|
185
|
-
) ? "active" : r().isAfter(e.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
186
|
-
}
|
|
187
|
-
function P(e) {
|
|
188
|
-
var t, n;
|
|
189
|
-
switch (e.event.type) {
|
|
190
|
-
case "BILL_COMPLETED":
|
|
191
|
-
const i = `Spend to get ${m.formattedType(e.type)}`;
|
|
192
|
-
switch (e.type) {
|
|
193
|
-
case "POINT":
|
|
194
|
-
case "CREDIT":
|
|
195
|
-
case "COIN":
|
|
196
|
-
return e.earningOption.type == "FIXED" ? `Spend to get ${e.earningOption.amount} ${m.formattedType(e.type)}` : `Every ${e.earningOption.every} amount spent get ${e.earningOption.amount} ${m.formattedType(e.type)}`;
|
|
197
|
-
case "VOUCHER":
|
|
198
|
-
const l = (n = (t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.extras) == null ? void 0 : n.effect;
|
|
199
|
-
return l ? `${i} - ${p(l)}` : i;
|
|
200
|
-
default:
|
|
201
|
-
return i;
|
|
202
|
-
}
|
|
203
|
-
case "FEEDBACK":
|
|
204
|
-
return `Give feedback to receive ${m.formattedType(e.type)}`;
|
|
205
|
-
case "SCHEDULE":
|
|
206
|
-
return `Receive ${m.formattedType(e.type)} on scheduled time`;
|
|
207
|
-
case "SIMPLE_CLAIM":
|
|
208
|
-
return "Simple claim voucher";
|
|
209
|
-
case "TIER_UPGRADED":
|
|
210
|
-
return `Receive ${m.formattedType(e.type)} when member tier upgraded`;
|
|
211
|
-
case "MEMBERSHIP_JOINED":
|
|
212
|
-
return `Receive ${m.formattedType(e.type)} when member joined`;
|
|
213
|
-
case "MAKING_ORDER":
|
|
214
|
-
return e.type !== "PROMOTION" ? void 0 : p(e.effect);
|
|
215
|
-
default:
|
|
216
|
-
throw new Error(
|
|
217
|
-
`Not implemented ${JSON.stringify({ cause: e.event.type })}`
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
export {
|
|
222
|
-
D as C,
|
|
223
|
-
A as a,
|
|
224
|
-
P as b,
|
|
225
|
-
$ as c,
|
|
226
|
-
O as g,
|
|
227
|
-
h as s
|
|
228
|
-
};
|
package/dist/google-C3S8u0mT.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%3e%3cpath%20fill='%23EA4335'%20d='M24%209.5c3.14%200%205.95%201.08%208.17%202.86l6.08-6.08C34.46%203.1%2029.5%201%2024%201%2014.82%201%206.96%206.48%203.22%2014.44l7.08%205.5C12.08%2013.66%2017.58%209.5%2024%209.5z'/%3e%3cpath%20fill='%234285F4'%20d='M46.52%2024.5c0-1.64-.15-3.22-.42-4.74H24v8.98h12.7c-.55%202.96-2.2%205.46-4.68%207.14l7.18%205.58C43.18%2037.36%2046.52%2031.38%2046.52%2024.5z'/%3e%3cpath%20fill='%23FBBC05'%20d='M10.3%2028.56A14.56%2014.56%200%200%201%209.5%2024c0-1.58.27-3.1.76-4.52l-7.08-5.5A23.94%2023.94%200%200%200%200%2024c0%203.86.92%207.5%202.56%2010.72l7.74-6.16z'/%3e%3cpath%20fill='%2334A853'%20d='M24%2047c5.5%200%2010.12-1.82%2013.48-4.94l-7.18-5.58c-1.82%201.22-4.14%201.94-6.3%201.94-6.42%200-11.92-4.16-13.7-9.86l-7.74%206.16C6.96%2041.52%2014.82%2047%2024%2047z'/%3e%3cpath%20fill='none'%20d='M0%200h48v48H0z'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
l as g
|
|
4
|
-
};
|
package/dist/index-CoNJdOx7.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { z as e } from "./index-hSRM1smQ.js";
|
|
2
|
-
const u = e.enum(["SMS", "WHATSAPP", "EMAIL"]), c = e.object({
|
|
3
|
-
amount: e.number(),
|
|
4
|
-
precision: e.number().int().nonnegative(),
|
|
5
|
-
currency: e.string()
|
|
6
|
-
}), b = e.object({
|
|
7
|
-
balance: e.object({
|
|
8
|
-
amount: e.number(),
|
|
9
|
-
currency: e.string()
|
|
10
|
-
}),
|
|
11
|
-
prices: e.object({
|
|
12
|
-
SMS: c,
|
|
13
|
-
WHATSAPP: c,
|
|
14
|
-
EMAIL: c
|
|
15
|
-
})
|
|
16
|
-
}), m = e.object({
|
|
17
|
-
SMS: e.boolean(),
|
|
18
|
-
WHATSAPP: e.boolean(),
|
|
19
|
-
EMAIL: e.boolean()
|
|
20
|
-
}), A = e.object({
|
|
21
|
-
channel: u,
|
|
22
|
-
variables: e.array(e.string()),
|
|
23
|
-
title: e.string().nullish(),
|
|
24
|
-
design: e.any(),
|
|
25
|
-
content: e.string(),
|
|
26
|
-
language: e.string(),
|
|
27
|
-
imageUrl: e.string().nullish()
|
|
28
|
-
}).superRefine((t, a) => {
|
|
29
|
-
t.content.length == 0 && a.addIssue({
|
|
30
|
-
code: e.ZodIssueCode.custom,
|
|
31
|
-
message: "Content is required"
|
|
32
|
-
});
|
|
33
|
-
const o = /{{(.*?)}}/g, r = [...t.content.matchAll(o)].map((n) => n[1]), i = t.variables, s = r.filter((n) => i.indexOf(n) < 0);
|
|
34
|
-
s.length && a.addIssue({
|
|
35
|
-
code: e.ZodIssueCode.custom,
|
|
36
|
-
message: "Invalid variable(s): " + s.join(", ")
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
function S(t, a) {
|
|
40
|
-
return t.replace(/{{(.*?)}}/g, (o, r) => {
|
|
41
|
-
const s = r.trim().split(".").reduce((n, l) => (n != null ? n[l] : null) ?? null, a);
|
|
42
|
-
return s !== null ? s : o;
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
b as F,
|
|
47
|
-
m as a,
|
|
48
|
-
u as b,
|
|
49
|
-
A as c,
|
|
50
|
-
S as r
|
|
51
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { g as l } from "./app-tPHYkJcQ.js";
|
|
2
|
-
var o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f2d40366-16a7-4bd4-9775-dd636f0e2a12", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", npm_package_devDependencies_vitest: "^2.1.9", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.20.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_f2d40366-16a7-4bd4-9775-dd636f0e2a12", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.20.2/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_dependencies_moment_timezone: "^0.6.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-9.8.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.29.31", npm_package_dependencies_fabric: "^6.4.2", npm_package_dependencies_zod_i18n_map: "2.27.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.7", SYSTEMD_EXEC_PID: "1873", ACTIONS_ORCHESTRATION_ID: "c68d69da-6cec-8892-8f9d-a5c1abf634d7.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.10.13", npm_package_dependencies_dayjs: "^1.11.12", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_dependencies__tailwindcss_typography: "^0.5.16", npm_package_dependencies_i18next: "24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.6", npm_package_devDependencies_typescript: "^5.5.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.26", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261018.339.1", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_unplugin_auto_import: "^0.17.8", npm_package_devDependencies__playwright_test: "^1.62.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_f2d40366-16a7-4bd4-9775-dd636f0e2a12", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:13519", GITHUB_WORKFLOW: "[CD:prod] connect-portal (mf-connect)", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "39450099469", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.7", GITHUB_REF_TYPE: "tag", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "49105ac6ced67a1b51c8c25758fcde13f16ebe0c", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.9/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_dependencies__ckeditor_ckeditor5_vue: "^7.3.0", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[PROD] deploy-mf-connect.yml@refs/tags/mf-connect-0.1.114-prod", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_a4addce4-eb99-4a22-8fbc-fa615598e991", INVOCATION_ID: "03b6cb0301f24d538f71cfb968376a1c", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.20.2/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "99", GITHUB_TRIGGERING_ACTOR: "qaijunse", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_test_e2e: "playwright test", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_dependencies__feedmepos_mf_core_ui: "1.0.30", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000210994", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "mf-connect-0.1.114-prod", GITHUB_REPOSITORY: "feedmepos/marketing-services", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "2.15.47", npm_lifecycle_script: "vite build --mode fmmf:prod", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest run", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.1.114-prod", npm_package_dependencies__feedmepos_hrm_permission: "1.0.14", npm_package_dependencies_ckeditor5: "^44.3.0", npm_lifecycle_event: "build:mf:prod", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "49105ac6ced67a1b51c8c25758fcde13f16ebe0c", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies__ckeditor_ckeditor5_build_classic: "^44.3.0", npm_package_dependencies_vue_router: "^4.4.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/tags/mf-connect-0.1.114-prod", GITHUB_ACTOR: "qaijunse", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_scripts_test_watch: "vitest", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_f2d40366-16a7-4bd4-9775-dd636f0e2a12", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "39590157", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f2d40366-16a7-4bd4-9775-dd636f0e2a12", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.39", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_f2d40366-16a7-4bd4-9775-dd636f0e2a12", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_f2d40366-16a7-4bd4-9775-dd636f0e2a12", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_dependencies__feedmepos_mf_remy_panel: "0.15.0", NODE_ENV: "production", FEEDME_NAMESPACE: "prod", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", IMPORT_FILES_STORAGE_BUCKET: "feedme-253402.appspot.com", AUTH_URL: "https://portal-v2.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedme.cc", CRM_APP_URL: "crm.feedme.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedme.cc", CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", PAYMENT_PORTAL_URL: "https://portal.feedme.cc/payment/payout-account", LICENSE_PORTAL_URL: "https://license.feedme.cc/", VOUCHER_APP_URL: "https://voucher.feedme.cc/" } }, i = Math.floor(Math.random() * 16777215), a = n.index = parseInt(Math.random() * 16777215, 10), d = (typeof o > "u" || typeof o.pid != "number" ? Math.floor(Math.random() * 1e5) : o.pid) % 65535, c = (() => {
|
|
3
|
-
try {
|
|
4
|
-
return _Buffer;
|
|
5
|
-
} catch {
|
|
6
|
-
try {
|
|
7
|
-
return Buffer;
|
|
8
|
-
} catch {
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
})(), r = function(e) {
|
|
13
|
-
return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
|
|
14
|
-
}, u = [];
|
|
15
|
-
for (var p = 0; p < 256; p++)
|
|
16
|
-
u[p] = (p <= 15 ? "0" : "") + p.toString(16);
|
|
17
|
-
var m = new RegExp("^[0-9a-fA-F]{24}$"), s = [];
|
|
18
|
-
p = 0;
|
|
19
|
-
for (; p < 10; ) s[48 + p] = p++;
|
|
20
|
-
for (; p < 16; ) s[55 + p] = s[87 + p] = p++;
|
|
21
|
-
function n(e) {
|
|
22
|
-
if (!(this instanceof n)) return new n(e);
|
|
23
|
-
if (e && (e instanceof n || e._bsontype === "ObjectID"))
|
|
24
|
-
return e;
|
|
25
|
-
if (this._bsontype = "ObjectID", e == null || typeof e == "number") {
|
|
26
|
-
this.id = this.generate(e);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
var _ = n.isValid(e);
|
|
30
|
-
if (!_ && e != null)
|
|
31
|
-
throw new Error(
|
|
32
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
33
|
-
);
|
|
34
|
-
if (_ && typeof e == "string" && e.length === 24)
|
|
35
|
-
return n.createFromHexString(e);
|
|
36
|
-
if (e != null && e.length === 12)
|
|
37
|
-
this.id = e;
|
|
38
|
-
else {
|
|
39
|
-
if (e != null && typeof e.toHexString == "function")
|
|
40
|
-
return e;
|
|
41
|
-
throw new Error(
|
|
42
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
var g = n;
|
|
47
|
-
n.default = n;
|
|
48
|
-
n.createFromTime = function(e) {
|
|
49
|
-
return e = parseInt(e, 10) % 4294967295, new n(f(8, e) + "0000000000000000");
|
|
50
|
-
};
|
|
51
|
-
n.createFromHexString = function(e) {
|
|
52
|
-
if (typeof e > "u" || e != null && e.length !== 24)
|
|
53
|
-
throw new Error(
|
|
54
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
55
|
-
);
|
|
56
|
-
for (var _ = "", t = 0; t < 24; )
|
|
57
|
-
_ += String.fromCharCode(s[e.charCodeAt(t++)] << 4 | s[e.charCodeAt(t++)]);
|
|
58
|
-
return new n(_);
|
|
59
|
-
};
|
|
60
|
-
n.isValid = function(e) {
|
|
61
|
-
return e == null ? !1 : typeof e == "number" ? !0 : typeof e == "string" ? e.length === 12 || e.length === 24 && m.test(e) : e instanceof n ? !0 : r(e) ? n.isValid(e.toString("hex")) : typeof e.toHexString == "function" && c && (e.id instanceof c || typeof e.id == "string") ? e.id.length === 12 || e.id.length === 24 && m.test(e.id) : !1;
|
|
62
|
-
};
|
|
63
|
-
n.prototype = {
|
|
64
|
-
constructor: n,
|
|
65
|
-
/**
|
|
66
|
-
* Return the ObjectID id as a 24 byte hex string representation
|
|
67
|
-
*
|
|
68
|
-
* @return {String} return the 24 byte hex string representation.
|
|
69
|
-
* @api public
|
|
70
|
-
*/
|
|
71
|
-
toHexString: function() {
|
|
72
|
-
if (!this.id || !this.id.length)
|
|
73
|
-
throw new Error(
|
|
74
|
-
"invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [" + JSON.stringify(this.id) + "]"
|
|
75
|
-
);
|
|
76
|
-
if (this.id.length === 24)
|
|
77
|
-
return this.id;
|
|
78
|
-
if (r(this.id))
|
|
79
|
-
return this.id.toString("hex");
|
|
80
|
-
for (var e = "", _ = 0; _ < this.id.length; _++)
|
|
81
|
-
e += u[this.id.charCodeAt(_)];
|
|
82
|
-
return e;
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Compares the equality of this ObjectID with `otherID`.
|
|
86
|
-
*
|
|
87
|
-
* @param {Object} otherId ObjectID instance to compare against.
|
|
88
|
-
* @return {Boolean} the result of comparing two ObjectID's
|
|
89
|
-
* @api public
|
|
90
|
-
*/
|
|
91
|
-
equals: function(e) {
|
|
92
|
-
return e instanceof n ? this.toString() === e.toString() : typeof e == "string" && n.isValid(e) && e.length === 12 && r(this.id) ? e === this.id.toString("binary") : typeof e == "string" && n.isValid(e) && e.length === 24 ? e.toLowerCase() === this.toHexString() : typeof e == "string" && n.isValid(e) && e.length === 12 ? e === this.id : e != null && (e instanceof n || e.toHexString) ? e.toHexString() === this.toHexString() : !1;
|
|
93
|
-
},
|
|
94
|
-
/**
|
|
95
|
-
* Returns the generation date (accurate up to the second) that this ID was generated.
|
|
96
|
-
*
|
|
97
|
-
* @return {Date} the generation date
|
|
98
|
-
* @api public
|
|
99
|
-
*/
|
|
100
|
-
getTimestamp: function() {
|
|
101
|
-
var e = /* @__PURE__ */ new Date(), _;
|
|
102
|
-
return r(this.id) ? _ = this.id[3] | this.id[2] << 8 | this.id[1] << 16 | this.id[0] << 24 : _ = this.id.charCodeAt(3) | this.id.charCodeAt(2) << 8 | this.id.charCodeAt(1) << 16 | this.id.charCodeAt(0) << 24, e.setTime(Math.floor(_) * 1e3), e;
|
|
103
|
-
},
|
|
104
|
-
/**
|
|
105
|
-
* Generate a 12 byte id buffer used in ObjectID's
|
|
106
|
-
*
|
|
107
|
-
* @method
|
|
108
|
-
* @param {number} [time] optional parameter allowing to pass in a second based timestamp.
|
|
109
|
-
* @return {string} return the 12 byte id buffer string.
|
|
110
|
-
*/
|
|
111
|
-
generate: function(e) {
|
|
112
|
-
typeof e != "number" && (e = ~~(Date.now() / 1e3)), e = parseInt(e, 10) % 4294967295;
|
|
113
|
-
var _ = E();
|
|
114
|
-
return String.fromCharCode(
|
|
115
|
-
e >> 24 & 255,
|
|
116
|
-
e >> 16 & 255,
|
|
117
|
-
e >> 8 & 255,
|
|
118
|
-
e & 255,
|
|
119
|
-
i >> 16 & 255,
|
|
120
|
-
i >> 8 & 255,
|
|
121
|
-
i & 255,
|
|
122
|
-
d >> 8 & 255,
|
|
123
|
-
d & 255,
|
|
124
|
-
_ >> 16 & 255,
|
|
125
|
-
_ >> 8 & 255,
|
|
126
|
-
_ & 255
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
function E() {
|
|
131
|
-
return a = (a + 1) % 16777215;
|
|
132
|
-
}
|
|
133
|
-
function f(e, _) {
|
|
134
|
-
return _ = _.toString(16), _.length === e ? _ : "00000000".substring(_.length, e) + _;
|
|
135
|
-
}
|
|
136
|
-
var h = Symbol && Symbol.for && Symbol.for("nodejs.util.inspect.custom") || "inspect";
|
|
137
|
-
n.prototype[h] = function() {
|
|
138
|
-
return "ObjectID(" + this + ")";
|
|
139
|
-
};
|
|
140
|
-
n.prototype.toJSON = n.prototype.toHexString;
|
|
141
|
-
n.prototype.toString = n.prototype.toHexString;
|
|
142
|
-
const T = /* @__PURE__ */ l(g);
|
|
143
|
-
export {
|
|
144
|
-
T as O
|
|
145
|
-
};
|