@feedmepos/mf-connect 0.1.98-beta.4 → 0.1.98-beta.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BGv_JihW.js → App-C6JJ9uQ8.js} +808 -665
- package/dist/{AuditLogs-53rnjCmD.js → AuditLogs-CAlgtDgx.js} +12 -11
- package/dist/{Bin-B0Q_WpuY.js → Bin-D8jwhwER.js} +8 -8
- package/dist/{Broadcast-PiJE1Syl.js → Broadcast-CP8DRfkT.js} +39 -36
- package/dist/CampaignAnalytic-MVjYBFvu.js +1826 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dz2KsBZl.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DeLURz87.js} +7 -5
- package/dist/{Card-DlqMu3Sl.js → Card-QribXJwZ.js} +21 -20
- package/dist/{Collections-BWcBlDDR.js → Collections-X9xbt43V.js} +14 -13
- package/dist/Credit-QmbsW1eb.js +286 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DCvH0lGA.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-ClNieHSo.js} +35 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B_FyeWq4.js → EffectSheet.vue_vue_type_style_index_0_lang-CrGHTNhg.js} +16 -16
- package/dist/{Experience-DacFmPYy.js → Experience-CPGMg847.js} +112 -86
- package/dist/{FileSaver.min-CMZKiGkX.js → FileSaver.min-CK67LsPG.js} +1 -1
- package/dist/Game-BrkiEFCS.js +356 -0
- package/dist/GiftCardSetup-DXNBHF1A.js +542 -0
- package/dist/{Grab-DaBL5y3H.js → Grab-BgtDzK1B.js} +32 -31
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BaY_nQio.js → ImageInput.vue_vue_type_script_setup_true_lang-Dzv2AkKN.js} +1 -1
- package/dist/{Index-2UrjF35w.js → Index-KJgzalOd.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BuVBZsCN.js → LocationPicker.vue_vue_type_script_setup_true_lang-C6SBLJGQ.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-6wUxYqWe.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dj74lJ7b.js} +1 -1
- package/dist/LoyaltyDashboard-B2JpbC01.js +1345 -0
- package/dist/MainLayout-DlfTKHQ-.js +143 -0
- package/dist/{Marketing-DEp--hFd.js → Marketing-Crx_JQpi.js} +7 -6
- package/dist/{MarketingMaterialEdit-BHL8Ptsu.js → MarketingMaterialEdit-BfsdcMXJ.js} +15 -14
- package/dist/{Member-BU1YxoEV.js → Member-C50Nrsko.js} +14 -13
- package/dist/{MemberList-zjvJBYf0.js → MemberList-C9uUKw1o.js} +37 -35
- package/dist/{MemberTransactions-BvyLV69V.js → MemberTransactions-DZ7zPOHX.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-_YOM1SlS.js → MessageInput.vue_vue_type_script_setup_true_lang-Du_ZGsbX.js} +5434 -5279
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
- package/dist/Mission-D_km8zi6.js +360 -0
- package/dist/{Overview-BToUlbsH.js → Overview-BBieK6qQ.js} +21 -20
- package/dist/Overview-B_kmLOcc.js +1316 -0
- package/dist/Point-D0q9N7f9.js +288 -0
- package/dist/Promotion-DoFTy-NK.js +423 -0
- package/dist/{Queue-D3vUkKN9.js → Queue-Dh5sDRHW.js} +13 -12
- package/dist/{Record-BViEbZZ8.js → Record-0owEBKqN.js} +9 -9
- package/dist/Review-DV2fnpOH.js +45 -0
- package/dist/ReviewFacebookCallback-D8mnAPzR.js +238 -0
- package/dist/ReviewGoogleCallback-CLzt_ox2.js +213 -0
- package/dist/{Reward-CZsvsYW_.js → Reward-Co20Xrss.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BASPLoRa.js → RewardGroup.vue_vue_type_script_setup_true_lang-0qU49c47.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-B90meAnV.js → RuleGroup.vue_vue_type_script_setup_true_lang-qdvaXPhJ.js} +17 -15
- package/dist/{Segment-CN8NEg8w.js → Segment-7dQKeHWK.js} +38 -35
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BGyYQST4.js → SelectItems.vue_vue_type_script_setup_true_lang-BUVrUifO.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BxW-Kc6t.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDsV9TD9.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-C9dwcEr5.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DqPZpddc.js} +4 -4
- package/dist/{Setting-DLPbZW11.js → Setting-Bvahxs-y.js} +14 -14
- package/dist/{SettingAdvertisements-BIq8gS5g.js → SettingAdvertisements-fbXLRwfb.js} +12 -12
- package/dist/Settings-C_HWDFN8.js +179 -0
- package/dist/Store-8yBKDR1b.js +2413 -0
- package/dist/{StoreRewards-BoEjVFk6.js → StoreRewards-DKaJvoJs.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bv9ABH1K.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D23XzJD7.js} +400 -455
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DNHgSfIg.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-JaFhCK_L.js} +2 -2
- package/dist/{Tier-kQ6X9h-t.js → Tier-CD-CjXC3.js} +44 -41
- package/dist/{Title-XosVAF2Y.js → Title-C_lcgye8.js} +49 -46
- package/dist/{Transaction-CO6oLPKR.js → Transaction-BvUYm-rT.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-McMR2Y7Y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C3Yacz7K.js} +6 -6
- package/dist/{Voucher-CogaCxx2.js → Voucher-CYaG0GLU.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DjHwHFBq.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DF2JqzRe.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Dor9klZ8.js → ZodTextField.vue_vue_type_script_setup_true_lang-B4UPqSNc.js} +2 -2
- package/dist/{app-C9UPXbDs.js → app-CE5hQ4Uq.js} +6656 -5653
- package/dist/app.js +1 -1
- package/dist/{business-CYpW6-Ls.js → business-CE_4siXc.js} +1 -1
- package/dist/{campaign-BtLa7KeF.js → campaign-BP6rvSpg.js} +74 -96
- package/dist/campaign-CXQtKpeb.js +100 -0
- package/dist/{campaign.enum-DiLhS5il.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-CLB9gBHo.js → campaign.fn-DKnBpE1N.js} +119 -119
- package/dist/{collectible.enum-CmwWcfBh.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-Cg16QZSp.js +26 -0
- package/dist/{duplicateCampaign-DGhOBd5l.js → duplicateCampaign-DbtVAGsT.js} +2 -2
- package/dist/{effect-CY5Y6sxy.js → effect-CLI8NI4O.js} +1 -1
- package/dist/{email-addresses-BEnOHWj_.js → email-addresses-DlLiZ1io.js} +2 -2
- package/dist/{export-BgYu7SCd.js → export-6Hr34dBU.js} +3 -3
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-DTDgoyEh.js → helper-vkjFqj70.js} +1 -1
- package/dist/index-BIyKgw4m.js +72 -0
- package/dist/{index-C8ehLvXG.js → index-BLQJ-rv3.js} +1 -1
- package/dist/{index-CP-7qATP.js → index-BbTIqReL.js} +1 -1
- package/dist/index-BuMfQxMf.js +897 -0
- package/dist/index-C8cXXcLk.js +45 -0
- package/dist/{index-kS20rM5m.js → index-CSVhIZSY.js} +589 -580
- package/dist/{index-zF0gIg9H.js → index-CVHacTbc.js} +1 -1
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-goRooQn5.js → index-CmNsGhDf.js} +272 -368
- package/dist/index-CnTeeRyJ.js +53 -0
- package/dist/{index-Ck3PeOQ5.js → index-CzbNobLv.js} +105 -123
- package/dist/index-D06n1h1b.js +146 -0
- package/dist/{index-CNKP1_IW.js → index-D4SDAfbP.js} +8027 -10766
- package/dist/{index-DntoqWT_.js → index-DVnYQ3Hs.js} +1 -1
- package/dist/{index-BZVhi3ZG.js → index-DcjnS5Sv.js} +2 -2
- package/dist/{index-DtyWsBgg.js → index-Dx9h0FNH.js} +1 -1
- package/dist/{index-CDk0Itu1.js → index-YgP4ihQL.js} +1 -1
- package/dist/{index-B4IAURA_.js → index-kedErkLZ.js} +1759 -2480
- package/dist/{index-CLZnH782.js → index-lnQT4P3d.js} +10 -9
- package/dist/{index.esm2017-C79fd6cz.js → index.esm2017-Jhv2lkrq.js} +105 -105
- package/dist/{loading-Dfr_97Ri.js → loading-NY-FPxVY.js} +1 -1
- package/dist/{lodash-BX2mJOxF.js → lodash-BC_P6kLg.js} +1 -1
- package/dist/{membership-ncNOUJwj.js → membership-BWaK-9FY.js} +3 -3
- package/dist/{money-vEtTzt04.js → money-COoh4GXK.js} +1 -1
- package/dist/{number-BjgTlMsp.js → number-BX5OEXgq.js} +1 -1
- package/dist/objectid-1SUSRtmY.js +145 -0
- package/dist/{plugins-BVGqEmE1.js → plugins-ur-FAoye.js} +3 -3
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-BGTLhhzT.js → reward-DSsylZ22.js} +1 -1
- package/dist/{rule-BB2VX3Gy.js → rule-BM9GUd1C.js} +3 -3
- package/dist/rule-builder-gC9LH2AC.js +126 -0
- package/dist/{template-DLiHnpjK.js → template-CUV3AMFI.js} +6 -6
- package/dist/timezone-BFZhekOU.js +20 -0
- package/dist/transaction.fn-C5MlkEIC.js +64 -0
- package/dist/{trigger-DrKnfSoi.js → trigger-CbjiuoSo.js} +14 -14
- package/dist/useMarketingMaterialActions-BLisTieA.js +96 -0
- package/dist/{usePagination-Dgd-onzU.js → usePagination-Caah4sJr.js} +1 -1
- package/dist/{user-BcDUmNrZ.js → user-BZC4P_jL.js} +1 -1
- package/dist/{vue-i18n-DNBGmwox.js → vue-i18n-BYz7XAr_.js} +390 -390
- package/dist/{xlsx-BX-U0_Au.js → xlsx-Bn7BqUFA.js} +1 -1
- package/dist/{zod-Mx51GBPY.js → zod-DHH42rXG.js} +1 -1
- package/package.json +3 -3
- package/dist/Credit-CMfcuj5n.js +0 -260
- package/dist/Game-DXKnGuhR.js +0 -330
- package/dist/LoyaltyDashboard-DIArPp71.js +0 -1082
- package/dist/MainLayout-BjvTxTPG.js +0 -41
- package/dist/Mission-BNYk_aPM.js +0 -334
- package/dist/Point-B-L2326L.js +0 -262
- package/dist/Promotion-sMKGkL4w.js +0 -397
- package/dist/Review-CMBAk-Qu.js +0 -1067
- package/dist/ReviewFacebookCallback-BCJTFy3b.js +0 -243
- package/dist/ReviewGoogleCallback-DKUG075r.js +0 -208
- package/dist/Store-DNB3gUIR.js +0 -1996
- package/dist/campaign-CtoHyXVT.js +0 -219
- package/dist/index-P8Qh2yIP.js +0 -52
- package/dist/objectid-C9DiLwge.js +0 -145
- package/dist/useMarketingMaterialActions-B6zaDbNE.js +0 -107
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { defineStore as w } from "pinia";
|
|
2
|
-
import { reactive as I, onMounted as b, ref as o } from "vue";
|
|
3
|
-
import { g as a, S as l, b as d } from "./index-BZVhi3ZG.js";
|
|
4
|
-
const s = () => {
|
|
5
|
-
const e = l.getBusinessId();
|
|
6
|
-
if (!e) throw new Error("Invalid business ID");
|
|
7
|
-
return d(`businesses/${e}/campaigns`, {
|
|
8
|
-
// url: 'http://localhost:3000/portal/',
|
|
9
|
-
});
|
|
10
|
-
}, u = {
|
|
11
|
-
async readAllGrouped(e) {
|
|
12
|
-
const t = a(
|
|
13
|
-
await s().get("grouped", { params: e })
|
|
14
|
-
);
|
|
15
|
-
return {
|
|
16
|
-
meta: t.meta,
|
|
17
|
-
resources: t.resources
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
async readAll(e, t) {
|
|
21
|
-
const n = a(
|
|
22
|
-
await s().get("", {
|
|
23
|
-
params: { ...e, ...t }
|
|
24
|
-
})
|
|
25
|
-
);
|
|
26
|
-
return {
|
|
27
|
-
meta: n.meta,
|
|
28
|
-
resources: n.resources
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
async readById(e) {
|
|
32
|
-
return a(await s().get(`/${e}`));
|
|
33
|
-
},
|
|
34
|
-
async create(e) {
|
|
35
|
-
return a(await s().post("", e));
|
|
36
|
-
},
|
|
37
|
-
async update(e, t) {
|
|
38
|
-
return a(await s().put(e, t));
|
|
39
|
-
},
|
|
40
|
-
async delete(e) {
|
|
41
|
-
return a(await s().delete(e));
|
|
42
|
-
},
|
|
43
|
-
async readCollectionsByCampaignId(e, t) {
|
|
44
|
-
const n = a(
|
|
45
|
-
await s().get(`/${e}/collections`, {
|
|
46
|
-
params: t
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
return {
|
|
50
|
-
meta: n.meta,
|
|
51
|
-
resources: n.resources
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
async readTransactions(e) {
|
|
55
|
-
return a(
|
|
56
|
-
await s().get(
|
|
57
|
-
`/${e}/collections/transactions`
|
|
58
|
-
)
|
|
59
|
-
);
|
|
60
|
-
},
|
|
61
|
-
async createCollectionByCampaignId(e, t) {
|
|
62
|
-
return a(
|
|
63
|
-
await s().post(`/${e}/collections`, t)
|
|
64
|
-
);
|
|
65
|
-
},
|
|
66
|
-
async readGroups() {
|
|
67
|
-
return a(await s().get("/groups")) ?? [];
|
|
68
|
-
},
|
|
69
|
-
async readStats(e) {
|
|
70
|
-
return a(
|
|
71
|
-
await s().get("/stats", { params: e })
|
|
72
|
-
);
|
|
73
|
-
},
|
|
74
|
-
async createGroup(e) {
|
|
75
|
-
return a(await s().post("/groups", e));
|
|
76
|
-
},
|
|
77
|
-
async updateGroup(e, t) {
|
|
78
|
-
return a(
|
|
79
|
-
await s().put(`/groups/${e}`, t)
|
|
80
|
-
);
|
|
81
|
-
},
|
|
82
|
-
async deleteGroup(e) {
|
|
83
|
-
return a(await s().delete(`/groups/${e}`));
|
|
84
|
-
},
|
|
85
|
-
async sendCollection(e, t) {
|
|
86
|
-
return a(
|
|
87
|
-
await s().post(
|
|
88
|
-
`/${e}/collections/send`,
|
|
89
|
-
t
|
|
90
|
-
)
|
|
91
|
-
);
|
|
92
|
-
},
|
|
93
|
-
async sendStamp(e, t) {
|
|
94
|
-
return a(
|
|
95
|
-
await s().post(
|
|
96
|
-
`/${e}/collections/send-stamp`,
|
|
97
|
-
t
|
|
98
|
-
)
|
|
99
|
-
);
|
|
100
|
-
},
|
|
101
|
-
async syncAllPromotion() {
|
|
102
|
-
return a(await s().post("/promotion/sync"));
|
|
103
|
-
},
|
|
104
|
-
async readAllDeleted(e, t) {
|
|
105
|
-
const n = a(
|
|
106
|
-
await s().get("/bin", {
|
|
107
|
-
params: { ...e, ...t }
|
|
108
|
-
})
|
|
109
|
-
);
|
|
110
|
-
return {
|
|
111
|
-
meta: n.meta,
|
|
112
|
-
resources: n.resources
|
|
113
|
-
};
|
|
114
|
-
},
|
|
115
|
-
async restore(e) {
|
|
116
|
-
return a(
|
|
117
|
-
await s().post(`/${e}/restore`)
|
|
118
|
-
);
|
|
119
|
-
},
|
|
120
|
-
async getPromotionQueue() {
|
|
121
|
-
return a(await s().get("/promotion/queue"));
|
|
122
|
-
}
|
|
123
|
-
}, p = () => {
|
|
124
|
-
const e = l.getBusinessId();
|
|
125
|
-
if (!e) throw new Error("Invalid business ID");
|
|
126
|
-
return d(`businesses/${e}/campaigns`, {
|
|
127
|
-
noIdRequired: !0
|
|
128
|
-
});
|
|
129
|
-
}, f = {
|
|
130
|
-
async readAll() {
|
|
131
|
-
return a(await p().get("templates"));
|
|
132
|
-
},
|
|
133
|
-
async readById(e) {
|
|
134
|
-
return a(
|
|
135
|
-
await p().get(`templates/${e}`)
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
}, E = w("mf-connect-campaign", () => {
|
|
139
|
-
const e = I({
|
|
140
|
-
promotion: [],
|
|
141
|
-
voucher: [],
|
|
142
|
-
broadcast: [],
|
|
143
|
-
experience: [],
|
|
144
|
-
point: [],
|
|
145
|
-
credit: [],
|
|
146
|
-
token: [],
|
|
147
|
-
mission: [],
|
|
148
|
-
grab: [],
|
|
149
|
-
all: []
|
|
150
|
-
});
|
|
151
|
-
b(() => {
|
|
152
|
-
console.log("🔧 CampaignStore Installed");
|
|
153
|
-
});
|
|
154
|
-
const t = o([]), n = o([]), c = o([]);
|
|
155
|
-
async function m(h) {
|
|
156
|
-
const i = await u.readAll({
|
|
157
|
-
limit: 1e3,
|
|
158
|
-
skip: 0,
|
|
159
|
-
sortBy: "_id",
|
|
160
|
-
descending: !0
|
|
161
|
-
});
|
|
162
|
-
Object.keys(e).forEach((r) => {
|
|
163
|
-
e[r] = [];
|
|
164
|
-
}), e.all = i.resources.filter(
|
|
165
|
-
(r) => r.type !== "MEMBERSHIP"
|
|
166
|
-
);
|
|
167
|
-
for (const r of i.resources)
|
|
168
|
-
switch (r.type) {
|
|
169
|
-
case "PROMOTION":
|
|
170
|
-
e.promotion.push(r);
|
|
171
|
-
break;
|
|
172
|
-
case "VOUCHER":
|
|
173
|
-
e.voucher.push(r), c.value.push(r);
|
|
174
|
-
break;
|
|
175
|
-
case "BROADCAST":
|
|
176
|
-
["SCHEDULE", "FEEDBACK"].includes(r.event.type) && e.broadcast.push(r);
|
|
177
|
-
break;
|
|
178
|
-
case "POINT":
|
|
179
|
-
e.experience.push(r);
|
|
180
|
-
break;
|
|
181
|
-
case "COIN":
|
|
182
|
-
e.point.push(r);
|
|
183
|
-
break;
|
|
184
|
-
case "CREDIT":
|
|
185
|
-
e.credit.push(r);
|
|
186
|
-
break;
|
|
187
|
-
case "GAME":
|
|
188
|
-
e.token.push(r);
|
|
189
|
-
break;
|
|
190
|
-
case "MISSION":
|
|
191
|
-
e.mission.push(r);
|
|
192
|
-
break;
|
|
193
|
-
case "GRAB":
|
|
194
|
-
e.grab.push(r);
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
async function g() {
|
|
199
|
-
n.value = await u.readGroups();
|
|
200
|
-
}
|
|
201
|
-
async function y() {
|
|
202
|
-
t.value = await f.readAll();
|
|
203
|
-
}
|
|
204
|
-
return {
|
|
205
|
-
// State
|
|
206
|
-
campaigns: e,
|
|
207
|
-
templates: t,
|
|
208
|
-
groups: n,
|
|
209
|
-
voucher: c,
|
|
210
|
-
// Actions
|
|
211
|
-
read: m,
|
|
212
|
-
readGroups: g,
|
|
213
|
-
readTemplates: y
|
|
214
|
-
};
|
|
215
|
-
});
|
|
216
|
-
export {
|
|
217
|
-
u as c,
|
|
218
|
-
E as u
|
|
219
|
-
};
|
package/dist/index-P8Qh2yIP.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { g as n, S as r, b as c } from "./index-BZVhi3ZG.js";
|
|
2
|
-
const o = (e = "") => {
|
|
3
|
-
const s = r.getBusinessId();
|
|
4
|
-
if (!s) throw new Error("Invalid business ID");
|
|
5
|
-
return c(`businesses/${s}/${e}`);
|
|
6
|
-
}, g = {
|
|
7
|
-
async listReviews(e) {
|
|
8
|
-
const s = await o("reviews").get("", { params: e });
|
|
9
|
-
return n(s);
|
|
10
|
-
},
|
|
11
|
-
async getSource() {
|
|
12
|
-
const e = await o("reviews/config").get("");
|
|
13
|
-
return n(e);
|
|
14
|
-
},
|
|
15
|
-
async connectGoogle(e, s, t) {
|
|
16
|
-
const a = await o("reviews/config/google").post("", {
|
|
17
|
-
code: e,
|
|
18
|
-
redirectUri: s,
|
|
19
|
-
state: t
|
|
20
|
-
});
|
|
21
|
-
return n(a);
|
|
22
|
-
},
|
|
23
|
-
async updateGoogleLocations(e) {
|
|
24
|
-
const s = await o("reviews/config/google/locations").put("", { locations: e });
|
|
25
|
-
return n(s);
|
|
26
|
-
},
|
|
27
|
-
async syncGoogleReviews() {
|
|
28
|
-
const e = await o("reviews/config/google/sync").post("", {});
|
|
29
|
-
return n(e);
|
|
30
|
-
},
|
|
31
|
-
async connectFacebook(e) {
|
|
32
|
-
const s = await o("reviews/config/facebook").post("", { token: e });
|
|
33
|
-
return n(s);
|
|
34
|
-
},
|
|
35
|
-
async updateFacebookPages(e) {
|
|
36
|
-
const s = await o("reviews/config/facebook/pages").put("", { pages: e });
|
|
37
|
-
return n(s);
|
|
38
|
-
},
|
|
39
|
-
async syncFacebookReviews() {
|
|
40
|
-
const e = await o("reviews/config/facebook/sync").post("", {});
|
|
41
|
-
return n(e);
|
|
42
|
-
},
|
|
43
|
-
async getOauthUrl(e, s) {
|
|
44
|
-
const t = await o(`reviews/config/${e}/oauth`).get("", {
|
|
45
|
-
params: { redirectUri: s }
|
|
46
|
-
});
|
|
47
|
-
return n(t);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
g as r
|
|
52
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { g as l } from "./app-C9UPXbDs.js";
|
|
2
|
-
var o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5c5555a2-f573-4fa5-a153-5c25322dcc6f", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_remy_vue_client: "0.2.0-beta.14", 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_5c5555a2-f573-4fa5-a153-5c25322dcc6f", 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.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.29.23", npm_package_dependencies_fabric: "^5.5.1", npm_package_dependencies_ua_parser_js: "^2.0.3", 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: "1717", ACTIONS_ORCHESTRATION_ID: "d5434663-5e43-4afd-b8ff-3da31be58cd4.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.10.8", 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: "20260714.240.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__feedmepos_custom_attributes: "0.0.1-rc.4", npm_package_dependencies_unplugin_auto_import: "^0.17.8", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^14.1.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10182", GITHUB_WORKFLOW: "[CD:dev] 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.12/x64", GITHUB_RUN_ID: "29795411466", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.7", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a29d88456f6576c4cfa3e54040df38865dcd99b8", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/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/[DEV] deploy-mf-connect.yml@refs/heads/dev", 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_12c8a826-d755-41f7-844e-108798f7d23f", INVOCATION_ID: "87eff1e5363b40cf85aae9b4e5125a91", 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: "262", GITHUB_TRIGGERING_ACTOR: "yyueniao", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", 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.25", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000092952", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "dev", 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.21", npm_lifecycle_script: "vite build --mode fmmf", 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.98-beta.4", npm_package_dependencies__feedmepos_hrm_permission: "1.0.14", npm_package_dependencies_ckeditor5: "^44.3.0", npm_lifecycle_event: "build:mf:dev", 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: "a29d88456f6576c4cfa3e54040df38865dcd99b8", 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/heads/dev", GITHUB_ACTOR: "yyueniao", 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_5c5555a2-f573-4fa5-a153-5c25322dcc6f", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "91043129", 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_5c5555a2-f573-4fa5-a153-5c25322dcc6f", 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", 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", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5c5555a2-f573-4fa5-a153-5c25322dcc6f", 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: "dev", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", IMPORT_FILES_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", AUTH_URL: "https://portal-v2-dev.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "feedmedev.vip", CRM_APP_URL: "crm.feedmedev.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedmedev.cc", CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", PAYMENT_PORTAL_URL: "https://portal.feedmedev.cc/payment/payout-account", LICENSE_PORTAL_URL: "https://license.feedmedev.cc/", VOUCHER_APP_URL: "https://voucher.feedmedev.cc/" } }, a = Math.floor(Math.random() * 16777215), i = n.index = parseInt(Math.random() * 16777215, 10), c = (typeof o > "u" || typeof o.pid != "number" ? Math.floor(Math.random() * 1e5) : o.pid) % 65535, d = (() => {
|
|
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(E(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" && d && (e.id instanceof d || 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 _ = f();
|
|
114
|
-
return String.fromCharCode(
|
|
115
|
-
e >> 24 & 255,
|
|
116
|
-
e >> 16 & 255,
|
|
117
|
-
e >> 8 & 255,
|
|
118
|
-
e & 255,
|
|
119
|
-
a >> 16 & 255,
|
|
120
|
-
a >> 8 & 255,
|
|
121
|
-
a & 255,
|
|
122
|
-
c >> 8 & 255,
|
|
123
|
-
c & 255,
|
|
124
|
-
_ >> 16 & 255,
|
|
125
|
-
_ >> 8 & 255,
|
|
126
|
-
_ & 255
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
function f() {
|
|
131
|
-
return i = (i + 1) % 16777215;
|
|
132
|
-
}
|
|
133
|
-
function E(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 k = /* @__PURE__ */ l(g);
|
|
143
|
-
export {
|
|
144
|
-
k as O
|
|
145
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { S as o, g as c, b as w } from "./index-BZVhi3ZG.js";
|
|
2
|
-
import { useAppStore as h, initializeRemyChat as y } from "@feedmepos/mf-remy-panel";
|
|
3
|
-
import { onMounted as k } from "vue";
|
|
4
|
-
import { u as I } from "./vue-i18n-DNBGmwox.js";
|
|
5
|
-
import { useSnackbar as M } from "@feedmepos/ui-library";
|
|
6
|
-
import { c as v } from "./plugins-BVGqEmE1.js";
|
|
7
|
-
const l = (e) => w(`businesses/${e}/marketing-materials`), j = {
|
|
8
|
-
async createMarketingMaterial(e) {
|
|
9
|
-
const t = o.getBusinessId();
|
|
10
|
-
if (!t) throw new Error("Invalid business ID");
|
|
11
|
-
return c(
|
|
12
|
-
await l(t).post("", e)
|
|
13
|
-
);
|
|
14
|
-
},
|
|
15
|
-
async getMarketingMaterial(e) {
|
|
16
|
-
const t = o.getBusinessId();
|
|
17
|
-
if (!t) throw new Error("Invalid business ID");
|
|
18
|
-
return c(
|
|
19
|
-
await l(t).get(`/${e}`)
|
|
20
|
-
);
|
|
21
|
-
},
|
|
22
|
-
async listMarketingMaterials(e = null, t = 20) {
|
|
23
|
-
const r = o.getBusinessId();
|
|
24
|
-
if (!r) throw new Error("Invalid business ID");
|
|
25
|
-
return c(
|
|
26
|
-
await l(r).get("", {
|
|
27
|
-
params: { ...e ? { cursor: e } : {}, limit: t }
|
|
28
|
-
})
|
|
29
|
-
);
|
|
30
|
-
},
|
|
31
|
-
async updateMarketingMaterial(e, t) {
|
|
32
|
-
const r = o.getBusinessId();
|
|
33
|
-
if (!r) throw new Error("Invalid business ID");
|
|
34
|
-
return c(
|
|
35
|
-
await l(r).patch(`/${e}`, t)
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
let g = null;
|
|
40
|
-
function B() {
|
|
41
|
-
const e = h();
|
|
42
|
-
async function t() {
|
|
43
|
-
g || (g = y()), await g;
|
|
44
|
-
}
|
|
45
|
-
return k(t), Object.assign(e);
|
|
46
|
-
}
|
|
47
|
-
function F() {
|
|
48
|
-
const { t: e } = I(), t = M();
|
|
49
|
-
async function r(n) {
|
|
50
|
-
if (!(n != null && n.imageUrl)) return;
|
|
51
|
-
const { headline: i, caption: u, imageUrl: s } = n;
|
|
52
|
-
if (!navigator.share) {
|
|
53
|
-
t.open({
|
|
54
|
-
message: e("connect.marketing.actions.webShareNotSupported"),
|
|
55
|
-
type: "error"
|
|
56
|
-
});
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
try {
|
|
60
|
-
const a = {
|
|
61
|
-
title: i ?? void 0,
|
|
62
|
-
text: u ?? void 0
|
|
63
|
-
};
|
|
64
|
-
if (navigator.canShare)
|
|
65
|
-
try {
|
|
66
|
-
const f = await (await fetch(s, { mode: "cors", cache: "no-store" })).blob(), p = [new File([f], "marketing-material.jpg", {
|
|
67
|
-
type: f.type || "image/jpeg"
|
|
68
|
-
})];
|
|
69
|
-
navigator.canShare({ files: p }) ? a.files = p : a.url = s;
|
|
70
|
-
} catch (m) {
|
|
71
|
-
console.error("Failed to fetch image for sharing:", m), a.url = s;
|
|
72
|
-
}
|
|
73
|
-
else
|
|
74
|
-
a.url = s;
|
|
75
|
-
await navigator.share(a);
|
|
76
|
-
} catch (a) {
|
|
77
|
-
a.name !== "AbortError" && t.open({
|
|
78
|
-
message: e("connect.marketing.actions.failedToShare", { message: a.message }),
|
|
79
|
-
type: "error"
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
async function d(n) {
|
|
84
|
-
if (n)
|
|
85
|
-
try {
|
|
86
|
-
const u = await (await fetch(n, { mode: "cors", cache: "no-store" })).blob(), s = URL.createObjectURL(u), a = document.createElement("a");
|
|
87
|
-
a.href = s, a.download = "marketing-material", a.click(), URL.revokeObjectURL(s);
|
|
88
|
-
} catch (i) {
|
|
89
|
-
console.error("Failed to download image:", i), window.open(n, "_blank");
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
async function b(n) {
|
|
93
|
-
n && await v(n, {
|
|
94
|
-
successMessage: e("connect.marketing.actions.imageLinkCopied")
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
return {
|
|
98
|
-
shareMaterial: r,
|
|
99
|
-
downloadMaterialImage: d,
|
|
100
|
-
copyMaterialLink: b
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export {
|
|
104
|
-
F as a,
|
|
105
|
-
j as m,
|
|
106
|
-
B as u
|
|
107
|
-
};
|