@feedmepos/mf-connect 0.1.98-beta.11 → 0.1.98-beta.13
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-DKClefqk.js → App-DQqZfak3.js} +7 -7
- package/dist/{AuditLogs-BeSkYL6M.js → AuditLogs-C19m85wp.js} +9 -9
- package/dist/{Bin-DqZYwOrb.js → Bin-GjJ5Q2ae.js} +8 -8
- package/dist/{Broadcast-D8AD4KkO.js → Broadcast-CVTBL0T0.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-vqHrjU8C.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B6BYvVmq.js} +5 -5
- package/dist/{Card-DvhrSAk4.js → Card-DzYit3v6.js} +18 -18
- package/dist/{Collections-D2w-IYlv.js → Collections-CaU7auvn.js} +7 -7
- package/dist/{Credit-C6WDUg72.js → Credit-B_eUMV0R.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CQJ6pNxV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgcm1S_g.js} +30 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CgoTE9a7.js → EffectSheet.vue_vue_type_style_index_0_lang-CZLoCJM4.js} +6 -6
- package/dist/{Experience-CzB0noGs.js → Experience-B7kxE07l.js} +9 -9
- package/dist/{FileSaver.min-ChS9YTfX.js → FileSaver.min-BBvy4uPh.js} +1 -1
- package/dist/{Game-C4NPtOis.js → Game-B98hcWvR.js} +10 -10
- package/dist/{Grab-DRQkvRE-.js → Grab-RdxV7xhM.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DD_fi0Z5.js → ImageInput.vue_vue_type_script_setup_true_lang-BBYekrJp.js} +1 -1
- package/dist/{Index-bOOUuYVP.js → Index-CvMVxCY5.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-uPK3w6VD.js → LocationPicker.vue_vue_type_script_setup_true_lang-D4-wjMg6.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-B9JJ2xSz.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Jir8zY8e.js} +1 -1
- package/dist/{LoyaltyDashboard-bD6MlAbo.js → LoyaltyDashboard-B1OzFT4q.js} +4 -4
- package/dist/{MainLayout-1DjfB3tH.js → MainLayout-De_edc-D.js} +1 -1
- package/dist/{Marketing-CEagZu_d.js → Marketing-B7-To3XF.js} +4 -4
- package/dist/{MarketingMaterialEdit-pNm733VI.js → MarketingMaterialEdit-DGONncxn.js} +6 -6
- package/dist/{Member-Du0xk_f0.js → Member-DEGCrqnh.js} +11 -11
- package/dist/{MemberList-2BImw45d.js → MemberList-vKYbpLVu.js} +25 -25
- package/dist/{MemberTransactions-Ce9ccBGW.js → MemberTransactions-CGC3vYKC.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CY7V8qMz.js → MessageInput.vue_vue_type_script_setup_true_lang-BP9YtuPA.js} +9 -9
- package/dist/{Mission-C0S2U1yY.js → Mission-hxf_AIGL.js} +10 -10
- package/dist/Overview-NvgUuMYp.js +949 -0
- package/dist/{Overview-B0-bTPEk.js → Overview-iRLMLoAo.js} +18 -18
- package/dist/{Point-Blc4sA0k.js → Point-tkUTXOCe.js} +9 -9
- package/dist/{Promotion-8nM93Gci.js → Promotion-DNUcMKJQ.js} +10 -10
- package/dist/{Queue-Def03xU8.js → Queue-5XYiIuG8.js} +10 -10
- package/dist/{Record-Bop_7cP_.js → Record-B5aYp7eF.js} +9 -9
- package/dist/Review-BqaHlzXV.js +45 -0
- package/dist/ReviewFacebookCallback-BqlFkSB7.js +248 -0
- package/dist/ReviewGoogleCallback-ssKL4jh4.js +213 -0
- package/dist/{Reward-DKkjbPWO.js → Reward-1xOMowTW.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BglByPmS.js → RewardGroup.vue_vue_type_script_setup_true_lang-Db3FSfIc.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DHLeyxp_.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cmrp2Tia.js} +13 -13
- package/dist/{Segment-DPBzExUz.js → Segment-BMBwsUug.js} +23 -23
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Di-Xv-Fk.js → SelectItems.vue_vue_type_script_setup_true_lang-DSfdei-h.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DsSarYWA.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BJVeGJ5J.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-MjnVm1zx.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-OBZubKUy.js} +4 -4
- package/dist/{Setting-BH61xoUN.js → Setting-DWygYkHW.js} +14 -14
- package/dist/{SettingAdvertisements-LfzmkWhb.js → SettingAdvertisements-TYB1b7dB.js} +12 -12
- package/dist/Settings-DynjmCPL.js +220 -0
- package/dist/{Store-DiNTwuRj.js → Store-DRYkmigC.js} +21 -21
- package/dist/{StoreRewards-3bylfB08.js → StoreRewards-DU8eWbXE.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DR2M_zjD.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BkqBjEFm.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-gIqflCTb.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-l6KmXVBZ.js} +2 -2
- package/dist/{Tier-Dyy84802.js → Tier-4k8SxKtl.js} +22 -22
- package/dist/{Title-DQdRI9k0.js → Title-B9lWQ_jl.js} +19 -19
- package/dist/{Transaction-BxNk0O0-.js → Transaction-C38Yd0tf.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BqrFEBBM.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-D6tgpKpc.js} +6 -6
- package/dist/{Voucher-D-qCe-wS.js → Voucher-BQbqC7RV.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-B3sadrpZ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-erwpbvYi.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang--TG7NPaw.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dt05b7fU.js} +2 -2
- package/dist/{app-CYjBbA_4.js → app-BTm9mz0r.js} +281 -260
- package/dist/app.js +1 -1
- package/dist/{business-B2SfzRDs.js → business-B7GwHLce.js} +1 -1
- package/dist/{campaign-CpQjVRLb.js → campaign-BCdKDHgz.js} +10 -10
- package/dist/{campaign-DsZVOlpO.js → campaign-DWlsbsKQ.js} +1 -1
- package/dist/{campaign.enum-CUrE4_NH.js → campaign.enum-BgK4maXz.js} +1 -1
- package/dist/{campaign.fn-WPHSaV98.js → campaign.fn-DxnwGCB2.js} +50 -50
- package/dist/{collectible.enum-BBE8WrYO.js → collectible.enum-CdOSUDwG.js} +1 -1
- package/dist/{duplicateCampaign-BUGw2sf1.js → duplicateCampaign-BSHe0P-g.js} +2 -2
- package/dist/{effect-D4ONfQoQ.js → effect-C7wkN_13.js} +1 -1
- package/dist/{email-addresses-BuZiD6UO.js → email-addresses-DJycNI7L.js} +2 -2
- package/dist/{export-Css_Pqj-.js → export-uIHWDxuh.js} +3 -3
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-CZfQKkv5.js → helper-czpAhAIw.js} +1 -1
- package/dist/{index-DsJwHWYF.js → index-5Sa4xS2m.js} +1 -1
- package/dist/{index-DrJOutcM.js → index-5WGEWCcI.js} +1 -1
- package/dist/{index-D-M_i6Mn.js → index-B2C7kc4z.js} +1 -1
- package/dist/{index-MJK4pjIp.js → index-B5eb6_bi.js} +4 -4
- package/dist/{index-wl8_bJLh.js → index-B7nE1Pb2.js} +1 -1
- package/dist/{index-Bkc0ov6S.js → index-BFAHLexA.js} +1 -1
- package/dist/{index-87QXVsV-.js → index-BanxlNli.js} +3 -3
- package/dist/{index-B5FUen0h.js → index-ByHoFriu.js} +1 -1
- package/dist/{index-DjHvO9Tb.js → index-Ca2bBJuR.js} +3 -3
- package/dist/{index-BCzQpGUZ.js → index-D-kYrDAi.js} +3 -3
- package/dist/{index-BfGNdgTX.js → index-D2gAYMIp.js} +2 -2
- package/dist/{index-BJPEIJ9Q.js → index-DWxmK2NJ.js} +6 -6
- package/dist/{index-3T8aqJmS.js → index-U_rwkNKU.js} +5 -5
- package/dist/{index-DK2Ciib6.js → index-knizSLfz.js} +2 -2
- package/dist/{index.esm2017-CM-jNysx.js → index.esm2017-DFVkiPjd.js} +1 -1
- package/dist/{loading-CXYKpSBl.js → loading-B3OgwEC8.js} +1 -1
- package/dist/{lodash-DKWJqSEk.js → lodash-CiRTkvui.js} +1 -1
- package/dist/{membership-BDi5RNlV.js → membership-s2VKnu_8.js} +3 -3
- package/dist/{money-CGM2GRnp.js → money-DqxOXYd0.js} +1 -1
- package/dist/{number-DGznpJcf.js → number-Bt4sacaM.js} +1 -1
- package/dist/{objectid-dfqc-m2y.js → objectid-CxCupSWP.js} +2 -2
- package/dist/{plugins-BphKx8yz.js → plugins-CQ1JAqJB.js} +3 -3
- package/dist/{reward-BxfsoKsP.js → reward-pjbal-XX.js} +1 -1
- package/dist/{rule-Bdwoo4oE.js → rule-CzU2GAur.js} +3 -3
- package/dist/{template-BcbeqGkQ.js → template-7yiMSL1f.js} +6 -6
- package/dist/{trigger-DhYSpO0F.js → trigger-C5bqlYHn.js} +5 -5
- package/dist/{useMarketingMaterialActions-DpD2R5LH.js → useMarketingMaterialActions-CW_QRtQb.js} +3 -3
- package/dist/{usePagination-9T8RlODO.js → usePagination-D2pke4vy.js} +1 -1
- package/dist/{user-DUZG4AEt.js → user-BcXrT_t5.js} +1 -1
- package/dist/{vue-i18n-B36YK77u.js → vue-i18n-CFNkj6JK.js} +246 -246
- package/dist/{xlsx-7bg82jL7.js → xlsx-DyVY5_Qx.js} +584 -584
- package/dist/{zod-BoDvtk8b.js → zod-BD_8DRqQ.js} +1 -1
- package/package.json +1 -1
- package/dist/Review-CFdfmjkW.js +0 -1186
- package/dist/ReviewFacebookCallback-KUQE5QOQ.js +0 -243
- package/dist/ReviewGoogleCallback-CZdfbE37.js +0 -208
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as ve, ref as F, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as _e } from "vue";
|
|
2
2
|
import { _ as ge } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import { u as ue } from "./loading-
|
|
5
|
-
import { p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-CFNkj6JK.js";
|
|
4
|
+
import { u as ue } from "./loading-B3OgwEC8.js";
|
|
5
|
+
import { p as K } from "./plugins-CQ1JAqJB.js";
|
|
6
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
7
|
-
import { Z as N } from "./zod-
|
|
7
|
+
import { Z as N } from "./zod-BD_8DRqQ.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import { b as ye, c as be } from "./index-
|
|
12
|
-
import { m as le, c as se } from "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import { C as fe } from "./membership-
|
|
17
|
-
import { t as ee } from "./helper-
|
|
9
|
+
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-Db3FSfIc.js";
|
|
10
|
+
import { u as me } from "./reward-pjbal-XX.js";
|
|
11
|
+
import { b as ye, c as be } from "./index-U_rwkNKU.js";
|
|
12
|
+
import { m as le, c as se } from "./index-B5eb6_bi.js";
|
|
13
|
+
import "./index-BanxlNli.js";
|
|
14
|
+
import "./index-D-kYrDAi.js";
|
|
15
|
+
import "./index-Ca2bBJuR.js";
|
|
16
|
+
import { C as fe } from "./membership-s2VKnu_8.js";
|
|
17
|
+
import { t as ee } from "./helper-czpAhAIw.js";
|
|
18
18
|
import { c as H } from "./object-BYyQ0PZp.js";
|
|
19
19
|
import { useDialog as xe, components as oe } from "@feedmepos/ui-library";
|
|
20
|
-
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang
|
|
21
|
-
import { a as Re, _ as Se, b as Fe } from "./trigger-
|
|
22
|
-
import { O as ke } from "./objectid-
|
|
20
|
+
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Dt05b7fU.js";
|
|
21
|
+
import { a as Re, _ as Se, b as Fe } from "./trigger-C5bqlYHn.js";
|
|
22
|
+
import { O as ke } from "./objectid-CxCupSWP.js";
|
|
23
23
|
import { c as $e } from "./string-Gcy5IM_H.js";
|
|
24
|
-
import { r as pe } from "./index-
|
|
25
|
-
import { u as Pe } from "./business-
|
|
24
|
+
import { r as pe } from "./index-BFAHLexA.js";
|
|
25
|
+
import { u as Pe } from "./business-B7GwHLce.js";
|
|
26
26
|
const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:!block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
|
|
27
27
|
__name: "ReferralRewadGroupCard",
|
|
28
28
|
props: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as H, ref as I, computed as q, h as x, onMounted as z, resolveComponent as m, openBlock as d, createElementBlock as v, Fragment as k, createVNode as s, unref as o, withCtx as h, createElementVNode as n, toDisplayString as u, renderList as G, createBlock as F, resolveDynamicComponent as J } from "vue";
|
|
2
2
|
import { _ as Q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as W, components as V } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as X } from "./plugins-
|
|
5
|
-
import { u as Y } from "./loading-
|
|
6
|
-
import { u as Z } from "./business-
|
|
7
|
-
import { u as ee, c as f } from "./campaign-
|
|
8
|
-
import { a as te, b as $, c as N } from "./campaign-
|
|
9
|
-
import { c as oe, p as ae } from "./duplicateCampaign-
|
|
4
|
+
import { p as X } from "./plugins-CQ1JAqJB.js";
|
|
5
|
+
import { u as Y } from "./loading-B3OgwEC8.js";
|
|
6
|
+
import { u as Z } from "./business-B7GwHLce.js";
|
|
7
|
+
import { u as ee, c as f } from "./campaign-DWlsbsKQ.js";
|
|
8
|
+
import { a as te, b as $, c as N } from "./campaign-BCdKDHgz.js";
|
|
9
|
+
import { c as oe, p as ae } from "./duplicateCampaign-BSHe0P-g.js";
|
|
10
10
|
import { _ as ne } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
11
|
-
import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as se } from "./template-
|
|
13
|
-
import { u as re } from "./vue-i18n-
|
|
11
|
+
import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgcm1S_g.js";
|
|
12
|
+
import { u as se } from "./template-7yiMSL1f.js";
|
|
13
|
+
import { u as re } from "./vue-i18n-CFNkj6JK.js";
|
|
14
14
|
const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-center justify-between w-full" }, de = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "space-y-4" }, ye = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "flex items-center gap-8" }, Ce = { class: "flex flex-col gap-16 text-center" }, we = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = /* @__PURE__ */ H({
|
|
15
15
|
__name: "Point",
|
|
16
16
|
setup(xe) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as w, resolveComponent as d, openBlock as f, createBlock as S, unref as a, isRef as te, withCtx as k, createElementVNode as i, createVNode as c, computed as ne, h as I, onMounted as ae, createElementBlock as L, Fragment as B, renderList as se, resolveDynamicComponent as ie, toDisplayString as h } from "vue";
|
|
2
2
|
import { _ as re } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as le, components as N } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as $ } from "./plugins-
|
|
5
|
-
import { u as ce } from "./loading-
|
|
6
|
-
import { u as me } from "./business-
|
|
7
|
-
import { c as y, u as ue } from "./campaign-
|
|
8
|
-
import { u as de } from "./vue-i18n-
|
|
9
|
-
import { g as j, a as pe, b as q } from "./campaign-
|
|
10
|
-
import { c as fe, p as ye } from "./duplicateCampaign-
|
|
11
|
-
import { e as K } from "./effect-
|
|
4
|
+
import { p as $ } from "./plugins-CQ1JAqJB.js";
|
|
5
|
+
import { u as ce } from "./loading-B3OgwEC8.js";
|
|
6
|
+
import { u as me } from "./business-B7GwHLce.js";
|
|
7
|
+
import { c as y, u as ue } from "./campaign-DWlsbsKQ.js";
|
|
8
|
+
import { u as de } from "./vue-i18n-CFNkj6JK.js";
|
|
9
|
+
import { g as j, a as pe, b as q } from "./campaign-BCdKDHgz.js";
|
|
10
|
+
import { c as fe, p as ye } from "./duplicateCampaign-BSHe0P-g.js";
|
|
11
|
+
import { e as K } from "./effect-C7wkN_13.js";
|
|
12
12
|
import { c as U } from "./string-Gcy5IM_H.js";
|
|
13
|
-
import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as he } from "./template-
|
|
13
|
+
import { _ as ge } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bgcm1S_g.js";
|
|
14
|
+
import { u as he } from "./template-7yiMSL1f.js";
|
|
15
15
|
import { _ as E } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
16
16
|
const _e = { class: "space-y-8" }, be = /* @__PURE__ */ Q({
|
|
17
17
|
__name: "QueueSheet",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as h, h as n, ref as A, watch as B, onBeforeMount as U, resolveComponent as V, openBlock as z, createElementBlock as L, Fragment as O, createVNode as m, unref as o, createElementVNode as g } from "vue";
|
|
2
|
-
import { u as q, _ as G } from "./usePagination-
|
|
2
|
+
import { u as q, _ as G } from "./usePagination-D2pke4vy.js";
|
|
3
3
|
import { _ as S } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
4
4
|
import { c as u } from "./string-Gcy5IM_H.js";
|
|
5
|
-
import { c as Y } from "./plugins-
|
|
5
|
+
import { c as Y } from "./plugins-CQ1JAqJB.js";
|
|
6
6
|
import { useDialog as j, components as y } from "@feedmepos/ui-library";
|
|
7
|
-
import "./index-
|
|
8
|
-
import { L as c, c as d } from "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
7
|
+
import "./index-U_rwkNKU.js";
|
|
8
|
+
import { L as c, c as d } from "./index-B5eb6_bi.js";
|
|
9
|
+
import "./index-BanxlNli.js";
|
|
10
|
+
import "./index-D-kYrDAi.js";
|
|
11
|
+
import "./index-Ca2bBJuR.js";
|
|
12
12
|
import { h as b } from "./moment-D7p2TMB-.js";
|
|
13
|
-
import { u as W } from "./vue-i18n-
|
|
14
|
-
import { u as H, v as K, w as Q } from "./index.esm2017-
|
|
13
|
+
import { u as W } from "./vue-i18n-CFNkj6JK.js";
|
|
14
|
+
import { u as H, v as K, w as Q } from "./index.esm2017-DFVkiPjd.js";
|
|
15
15
|
import { useRoute as $ } from "vue-router";
|
|
16
|
-
import { g as J, S as Z, u as X } from "./index-
|
|
16
|
+
import { g as J, S as Z, u as X } from "./index-D2gAYMIp.js";
|
|
17
17
|
import { o as ee } from "./objectId-dwaoBfJX.js";
|
|
18
18
|
const te = () => {
|
|
19
19
|
if (!Z.getBusinessId()) throw new Error("Invalid business ID");
|
|
@@ -2,19 +2,19 @@ var q = Object.defineProperty;
|
|
|
2
2
|
var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : g[o] = m;
|
|
3
3
|
var z = (g, o, m) => G(g, typeof o != "symbol" ? o + "" : o, m);
|
|
4
4
|
import { defineComponent as T, ref as B, computed as H, resolveComponent as C, openBlock as I, createBlock as J, unref as n, isRef as Q, withCtx as X, createElementBlock as U, createVNode as w, withModifiers as Z, createCommentVNode as ee, createElementVNode as N, h, onMounted as re, Fragment as te } from "vue";
|
|
5
|
-
import { u as oe, _ as ae } from "./usePagination-
|
|
6
|
-
import { g as A } from "./user-
|
|
5
|
+
import { u as oe, _ as ae } from "./usePagination-D2pke4vy.js";
|
|
6
|
+
import { g as A } from "./user-BcXrT_t5.js";
|
|
7
7
|
import { components as R } from "@feedmepos/ui-library";
|
|
8
|
-
import "./index-
|
|
9
|
-
import { u as j } from "./vue-i18n-
|
|
10
|
-
import { u as L } from "./loading-
|
|
8
|
+
import "./index-D-kYrDAi.js";
|
|
9
|
+
import { u as j } from "./vue-i18n-CFNkj6JK.js";
|
|
10
|
+
import { u as L } from "./loading-B3OgwEC8.js";
|
|
11
11
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
12
|
-
import { r as v } from "./index-
|
|
12
|
+
import { r as v } from "./index-BFAHLexA.js";
|
|
13
13
|
import { c as ie, a as ne } from "./object-BYyQ0PZp.js";
|
|
14
|
-
import { u as ce } from "./membership-
|
|
14
|
+
import { u as ce } from "./membership-s2VKnu_8.js";
|
|
15
15
|
import { c as le } from "./string-Gcy5IM_H.js";
|
|
16
|
-
import { c as de } from "./plugins-
|
|
17
|
-
import { u as V, w as me } from "./xlsx-
|
|
16
|
+
import { c as de } from "./plugins-CQ1JAqJB.js";
|
|
17
|
+
import { u as V, w as me } from "./xlsx-DyVY5_Qx.js";
|
|
18
18
|
import { e as f } from "./index-vh86FiIQ.js";
|
|
19
19
|
import { h as ue } from "./moment-D7p2TMB-.js";
|
|
20
20
|
import { o as pe } from "./objectId-dwaoBfJX.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as d, computed as v, resolveComponent as n, openBlock as f, createElementBlock as E, Fragment as R, createVNode as a, unref as l, createElementVNode as s } from "vue";
|
|
2
|
+
import { u as b } from "./vue-i18n-CFNkj6JK.js";
|
|
3
|
+
import { R as r } from "./app-BTm9mz0r.js";
|
|
4
|
+
import { useRouter as V } from "vue-router";
|
|
5
|
+
const w = { class: "flex flex-col" }, T = { class: "px-24" }, S = /* @__PURE__ */ d({
|
|
6
|
+
__name: "Review",
|
|
7
|
+
setup(g) {
|
|
8
|
+
const { t } = b(), c = V(), o = [
|
|
9
|
+
{
|
|
10
|
+
label: t("connect.review.tabs.overview"),
|
|
11
|
+
value: r["$connect-REVIEW_OVERVIEW"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: t("connect.review.tabs.settings"),
|
|
15
|
+
value: r["$connect-REVIEW_SETTINGS"]
|
|
16
|
+
}
|
|
17
|
+
], m = v(
|
|
18
|
+
() => o.find((e) => e.value === c.currentRoute.value.name) ?? o[0]
|
|
19
|
+
);
|
|
20
|
+
async function u(e) {
|
|
21
|
+
await c.push({ name: e });
|
|
22
|
+
}
|
|
23
|
+
return (e, x) => {
|
|
24
|
+
const i = n("FmPageHead"), _ = n("FmTabs"), p = n("RouterView");
|
|
25
|
+
return f(), E(R, null, [
|
|
26
|
+
a(i, {
|
|
27
|
+
title: l(t)("connect.navigation.review")
|
|
28
|
+
}, null, 8, ["title"]),
|
|
29
|
+
s("div", w, [
|
|
30
|
+
s("div", T, [
|
|
31
|
+
a(_, {
|
|
32
|
+
"model-value": l(m).value,
|
|
33
|
+
items: o,
|
|
34
|
+
"onUpdate:modelValue": u
|
|
35
|
+
}, null, 8, ["model-value"])
|
|
36
|
+
]),
|
|
37
|
+
a(p)
|
|
38
|
+
])
|
|
39
|
+
], 64);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
S as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { defineComponent as C, computed as M, openBlock as l, createElementBlock as f, normalizeClass as j, createElementVNode as g, createBlock as T, unref as e, toDisplayString as h, createCommentVNode as S, createVNode as k, onMounted as B, ref as I, Fragment as $, renderList as U, resolveComponent as z, isRef as V } from "vue";
|
|
2
|
+
import { u as R } from "./vue-i18n-CFNkj6JK.js";
|
|
3
|
+
import { components as w } from "@feedmepos/ui-library";
|
|
4
|
+
import { r as L } from "./index-DWxmK2NJ.js";
|
|
5
|
+
import { u as A } from "./business-B7GwHLce.js";
|
|
6
|
+
import { _ as H } from "./LocationPicker.vue_vue_type_script_setup_true_lang-D4-wjMg6.js";
|
|
7
|
+
import { R as D } from "./app-BTm9mz0r.js";
|
|
8
|
+
import { useRouter as G } from "vue-router";
|
|
9
|
+
const O = ["src"], W = { class: "fm-typo-en-body-md-600 flex-1 truncate" }, q = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-primary-500 shrink-0"
|
|
12
|
+
}, J = /* @__PURE__ */ C({
|
|
13
|
+
__name: "FacebookPageConfig",
|
|
14
|
+
props: {
|
|
15
|
+
page: {},
|
|
16
|
+
expanded: { type: Boolean },
|
|
17
|
+
availableLocations: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["toggleExpand", "toggleLocation"],
|
|
20
|
+
setup(s, { emit: n }) {
|
|
21
|
+
const P = s, p = n, { t: i } = R(), v = M(
|
|
22
|
+
() => P.page.locations.map((x) => x._id)
|
|
23
|
+
);
|
|
24
|
+
return (x, b) => (l(), f("div", {
|
|
25
|
+
class: j([
|
|
26
|
+
"rounded-lg border overflow-hidden transition-colors",
|
|
27
|
+
s.expanded ? "border-fm-color-primary-500" : "border-fm-color-neutral-gray-200"
|
|
28
|
+
])
|
|
29
|
+
}, [
|
|
30
|
+
g("button", {
|
|
31
|
+
class: "w-full flex items-center gap-12 p-16 bg-white text-left hover:bg-fm-color-neutral-gray-50 transition-colors",
|
|
32
|
+
onClick: b[0] || (b[0] = (c) => p("toggleExpand"))
|
|
33
|
+
}, [
|
|
34
|
+
s.page.pageProfileImageUrl ? (l(), f("img", {
|
|
35
|
+
key: 0,
|
|
36
|
+
src: s.page.pageProfileImageUrl,
|
|
37
|
+
class: "w-32 h-32 rounded-full shrink-0 object-cover"
|
|
38
|
+
}, null, 8, O)) : (l(), T(e(w).FmIcon, {
|
|
39
|
+
key: 1,
|
|
40
|
+
name: "thumb_up",
|
|
41
|
+
class: "text-fm-color-neutral-gray-400 shrink-0"
|
|
42
|
+
})),
|
|
43
|
+
g("span", W, h(s.page.pageName), 1),
|
|
44
|
+
s.page.locations.length > 0 ? (l(), f("span", q, h(e(i)("connect.review.locationsSelected", s.page.locations.length)), 1)) : S("", !0),
|
|
45
|
+
k(e(w).FmIcon, {
|
|
46
|
+
name: s.expanded ? "expand_less" : "expand_more",
|
|
47
|
+
class: "text-fm-color-neutral-gray-400 shrink-0"
|
|
48
|
+
}, null, 8, ["name"])
|
|
49
|
+
]),
|
|
50
|
+
s.expanded ? (l(), T(H, {
|
|
51
|
+
key: 0,
|
|
52
|
+
locations: s.availableLocations,
|
|
53
|
+
"selected-ids": e(v),
|
|
54
|
+
onToggle: b[1] || (b[1] = (c) => p("toggleLocation", c))
|
|
55
|
+
}, null, 8, ["locations", "selected-ids"])) : S("", !0)
|
|
56
|
+
], 2));
|
|
57
|
+
}
|
|
58
|
+
}), K = { class: "flex flex-col gap-8" }, Q = /* @__PURE__ */ C({
|
|
59
|
+
__name: "FacebookPageLocationMapping",
|
|
60
|
+
props: {
|
|
61
|
+
pages: {}
|
|
62
|
+
},
|
|
63
|
+
emits: ["update:pages"],
|
|
64
|
+
setup(s, { emit: n }) {
|
|
65
|
+
const P = s, p = A();
|
|
66
|
+
B(() => p.readLocations());
|
|
67
|
+
const i = n, v = I(null), x = M(() => {
|
|
68
|
+
const r = /* @__PURE__ */ new Set();
|
|
69
|
+
for (const m of P.pages)
|
|
70
|
+
m.locations.forEach((a) => r.add(a._id));
|
|
71
|
+
return r;
|
|
72
|
+
});
|
|
73
|
+
function b(r) {
|
|
74
|
+
const m = new Set(r.locations.map((a) => a._id));
|
|
75
|
+
return p.locations.filter((a) => {
|
|
76
|
+
const y = a._id.toString();
|
|
77
|
+
return !x.value.has(y) || m.has(y);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function c(r, m) {
|
|
81
|
+
const a = m._id.toString(), y = P.pages.map((o) => {
|
|
82
|
+
if (o.facebookPageId !== r) return o;
|
|
83
|
+
const t = o.locations.some(
|
|
84
|
+
(d) => d._id === a
|
|
85
|
+
);
|
|
86
|
+
return {
|
|
87
|
+
...o,
|
|
88
|
+
locations: t ? o.locations.filter((d) => d._id !== a) : [
|
|
89
|
+
...o.locations,
|
|
90
|
+
{
|
|
91
|
+
_id: a,
|
|
92
|
+
name: m.name
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
i("update:pages", y);
|
|
98
|
+
}
|
|
99
|
+
function F(r) {
|
|
100
|
+
v.value = v.value === r ? null : r;
|
|
101
|
+
}
|
|
102
|
+
return (r, m) => (l(), f("div", K, [
|
|
103
|
+
(l(!0), f($, null, U(s.pages, (a) => (l(), T(J, {
|
|
104
|
+
key: a.facebookPageId,
|
|
105
|
+
page: a,
|
|
106
|
+
expanded: e(v) === a.facebookPageId,
|
|
107
|
+
"available-locations": b(a),
|
|
108
|
+
onToggleExpand: (y) => F(a.facebookPageId),
|
|
109
|
+
onToggleLocation: (y) => c(a.facebookPageId, y)
|
|
110
|
+
}, null, 8, ["page", "expanded", "available-locations", "onToggleExpand", "onToggleLocation"]))), 128))
|
|
111
|
+
]));
|
|
112
|
+
}
|
|
113
|
+
}), X = { class: "flex flex-col min-h-full gap-16 p-24" }, Y = {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
116
|
+
}, Z = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ee = {
|
|
117
|
+
key: 1,
|
|
118
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
119
|
+
}, oe = { class: "fm-typo-en-body-lg-600" }, te = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ne = {
|
|
120
|
+
key: 2,
|
|
121
|
+
class: "flex flex-col items-center justify-center flex-1 gap-16"
|
|
122
|
+
}, ae = { class: "fm-typo-en-body-lg-600" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-neutral-gray-400" }, ce = { class: "fm-typo-en-body-lg-600" }, le = { class: "flex gap-8 justify-end mt-auto pt-8" }, ve = /* @__PURE__ */ C({
|
|
123
|
+
__name: "ReviewFacebookCallback",
|
|
124
|
+
setup(s) {
|
|
125
|
+
const { t: n } = R(), P = G();
|
|
126
|
+
function p() {
|
|
127
|
+
return P.replace({ name: D["$connect-REVIEW_SETTINGS"] });
|
|
128
|
+
}
|
|
129
|
+
const i = I([]), v = I(!1), x = I(!1), b = I(!1), c = I(null), F = M(
|
|
130
|
+
() => i.value.some((o) => o.locations.length > 0)
|
|
131
|
+
);
|
|
132
|
+
function r(o, t) {
|
|
133
|
+
const d = new Map(
|
|
134
|
+
t.map((u) => [u.facebookPageId, u])
|
|
135
|
+
);
|
|
136
|
+
return o.map((u) => {
|
|
137
|
+
var _;
|
|
138
|
+
return {
|
|
139
|
+
...u,
|
|
140
|
+
locations: ((_ = d.get(u.facebookPageId)) == null ? void 0 : _.locations) ?? []
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function m(o, t) {
|
|
145
|
+
return o instanceof Error ? o.message : t;
|
|
146
|
+
}
|
|
147
|
+
async function a() {
|
|
148
|
+
var u;
|
|
149
|
+
const o = window.location.hash;
|
|
150
|
+
if (!o) {
|
|
151
|
+
c.value = n("connect.review.noToken");
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const d = new URLSearchParams(o.slice(1)).get("access_token");
|
|
155
|
+
if (!d) {
|
|
156
|
+
c.value = n("connect.review.noToken");
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
v.value = !0;
|
|
160
|
+
try {
|
|
161
|
+
const _ = await L.getSource(), N = ((u = _ == null ? void 0 : _.facebook) == null ? void 0 : u.pages) ?? [], E = await L.connectFacebook(d);
|
|
162
|
+
i.value = r((E == null ? void 0 : E.pages) ?? [], N), i.value.length === 0 && (c.value = n("connect.review.facebook.noPages"));
|
|
163
|
+
} catch (_) {
|
|
164
|
+
c.value = m(_, n("connect.review.facebook.failed"));
|
|
165
|
+
} finally {
|
|
166
|
+
v.value = !1;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
async function y() {
|
|
170
|
+
const o = i.value.filter((t) => t.locations.length > 0).map((t) => ({
|
|
171
|
+
facebookPageId: t.facebookPageId,
|
|
172
|
+
locationIds: t.locations.map((d) => d._id)
|
|
173
|
+
}));
|
|
174
|
+
if (o.length === 0) {
|
|
175
|
+
c.value = n("connect.review.noMappings");
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
x.value = !0;
|
|
179
|
+
try {
|
|
180
|
+
await L.updateFacebookPages(o), b.value = !0, setTimeout(p, 2e3);
|
|
181
|
+
} catch (t) {
|
|
182
|
+
c.value = m(t, n("connect.review.facebook.failed"));
|
|
183
|
+
} finally {
|
|
184
|
+
x.value = !1;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return B(a), (o, t) => {
|
|
188
|
+
const d = z("FmPageHead");
|
|
189
|
+
return l(), f($, null, [
|
|
190
|
+
k(d, {
|
|
191
|
+
title: e(n)("connect.navigation.review")
|
|
192
|
+
}, null, 8, ["title"]),
|
|
193
|
+
g("div", X, [
|
|
194
|
+
e(v) ? (l(), f("div", Y, [
|
|
195
|
+
k(e(w).FmIcon, {
|
|
196
|
+
name: "sync",
|
|
197
|
+
size: "xl",
|
|
198
|
+
class: "animate-spin text-fm-color-neutral-gray-400"
|
|
199
|
+
}),
|
|
200
|
+
g("p", Z, h(e(n)("connect.review.facebook.fetching")), 1)
|
|
201
|
+
])) : e(b) ? (l(), f("div", ee, [
|
|
202
|
+
k(e(w).FmIcon, {
|
|
203
|
+
name: "check_circle",
|
|
204
|
+
size: "xl",
|
|
205
|
+
class: "text-fm-color-typo-success"
|
|
206
|
+
}),
|
|
207
|
+
g("p", oe, h(e(n)("connect.review.facebook.success")), 1),
|
|
208
|
+
g("p", te, h(e(n)("connect.review.redirecting")), 1)
|
|
209
|
+
])) : e(c) ? (l(), f("div", ne, [
|
|
210
|
+
k(e(w).FmIcon, {
|
|
211
|
+
name: "error",
|
|
212
|
+
size: "xl",
|
|
213
|
+
class: "text-fm-color-system-error-500"
|
|
214
|
+
}),
|
|
215
|
+
g("p", ae, h(e(n)("connect.review.errorTitle")), 1),
|
|
216
|
+
g("p", se, h(e(c)), 1),
|
|
217
|
+
k(e(w).FmButton, {
|
|
218
|
+
label: e(n)("connect.review.goBack"),
|
|
219
|
+
onClick: t[0] || (t[0] = (u) => p())
|
|
220
|
+
}, null, 8, ["label"])
|
|
221
|
+
])) : e(i).length > 0 ? (l(), f($, { key: 3 }, [
|
|
222
|
+
g("p", ce, h(e(n)("connect.review.facebook.selectPage")), 1),
|
|
223
|
+
k(Q, {
|
|
224
|
+
pages: e(i),
|
|
225
|
+
"onUpdate:pages": t[1] || (t[1] = (u) => V(i) ? i.value = u : null)
|
|
226
|
+
}, null, 8, ["pages"]),
|
|
227
|
+
g("div", le, [
|
|
228
|
+
k(e(w).FmButton, {
|
|
229
|
+
variant: "outlined",
|
|
230
|
+
label: e(n)("connect.review.cancel"),
|
|
231
|
+
onClick: t[2] || (t[2] = (u) => p())
|
|
232
|
+
}, null, 8, ["label"]),
|
|
233
|
+
k(e(w).FmButton, {
|
|
234
|
+
label: e(n)("connect.review.connect"),
|
|
235
|
+
disabled: !e(F),
|
|
236
|
+
loading: e(x),
|
|
237
|
+
onClick: y
|
|
238
|
+
}, null, 8, ["label", "disabled", "loading"])
|
|
239
|
+
])
|
|
240
|
+
], 64)) : S("", !0)
|
|
241
|
+
])
|
|
242
|
+
], 64);
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
export {
|
|
247
|
+
ve as default
|
|
248
|
+
};
|