@feedmepos/mf-connect 0.1.98-beta.7 → 0.1.98-beta.8
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-BonFFUVJ.js → App-DsB2o1oB.js} +7 -7
- package/dist/{AuditLogs-CaQisyMC.js → AuditLogs-BcfgiYnJ.js} +9 -9
- package/dist/{Bin-Mu8gAiHw.js → Bin-DMr7K8Kj.js} +8 -8
- package/dist/{Broadcast-Cy-i-WOT.js → Broadcast-C9akM-TB.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoLZVrCU.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js} +5 -5
- package/dist/{Card-f2XOtWxp.js → Card-DRkIYs0M.js} +18 -18
- package/dist/{Collections-CByXxRW_.js → Collections-B0uGC2FE.js} +7 -7
- package/dist/{Credit-CcZF4aQS.js → Credit-V5YA_hGx.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7KZ8GMx.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js} +30 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js → EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js} +6 -6
- package/dist/{Experience-B7J-aqPK.js → Experience-WTWy5yY6.js} +9 -9
- package/dist/{FileSaver.min-D_F_MSZt.js → FileSaver.min-BlA0oZEC.js} +1 -1
- package/dist/{Game-CUW7NeVG.js → Game-BwOfTCW5.js} +10 -10
- package/dist/{Grab-C45MmlD9.js → Grab-DmmwrGzk.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js → ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js} +1 -1
- package/dist/{Index-vQ6uP49O.js → Index-m7l4insz.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cj3hN3tg.js → LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js} +1 -1
- package/dist/{LoyaltyDashboard-GqyUwvXz.js → LoyaltyDashboard-CJdhYiea.js} +4 -4
- package/dist/{MainLayout-R5NxIBR-.js → MainLayout-Du5kZOtA.js} +1 -1
- package/dist/{Marketing-B6xMdQvW.js → Marketing-C9pSIdBU.js} +4 -4
- package/dist/{MarketingMaterialEdit-0cZN4bek.js → MarketingMaterialEdit-BEF2T9LR.js} +6 -6
- package/dist/{Member-CC5F6Bmz.js → Member-DUV_vbPI.js} +11 -11
- package/dist/{MemberList-Cq4zxopX.js → MemberList-Ye4nOk-i.js} +25 -25
- package/dist/{MemberTransactions-Bg-ziZy8.js → MemberTransactions-CAut1TQb.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jbDJkbZh.js → MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js} +9 -9
- package/dist/{Mission-DcCZ6tAG.js → Mission-BBmCGpt8.js} +10 -10
- package/dist/{Overview-nsyJGSCq.js → Overview-DOJj4XvO.js} +18 -18
- package/dist/{Point-D1vLd5hL.js → Point-Bzg6hi6o.js} +9 -9
- package/dist/{Promotion-Cv7MW5RJ.js → Promotion-BMXIp_ef.js} +10 -10
- package/dist/{Queue-Dkipt6fw.js → Queue-55G2gtP5.js} +10 -10
- package/dist/{Record-BFqx6vM-.js → Record-DNPI02c6.js} +9 -9
- package/dist/{Review-CKhakUMe.js → Review-CYNPPxYU.js} +188 -170
- package/dist/{ReviewFacebookCallback-xgRpXQAg.js → ReviewFacebookCallback-0SUkKAaC.js} +4 -4
- package/dist/{ReviewGoogleCallback-Cqi_43qi.js → ReviewGoogleCallback-BZEzx68n.js} +4 -4
- package/dist/{Reward-DjFEE7I_.js → Reward-CnP8R2pS.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BzZ6VH80.js → RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-A9jQX4jt.js → RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js} +13 -13
- package/dist/{Segment-BAjdUfZ6.js → Segment-CxiQnnyj.js} +23 -23
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js → SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CAQPFzRH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js} +4 -4
- package/dist/{Setting-BK7y0XC-.js → Setting-jHAjccod.js} +14 -14
- package/dist/{SettingAdvertisements-DfQ645xr.js → SettingAdvertisements-Vt7w1WN3.js} +12 -12
- package/dist/{Store-uTRQ6KbC.js → Store-Cu-hKmVa.js} +21 -21
- package/dist/{StoreRewards-usHKOGmB.js → StoreRewards-DILeipMG.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bb2sTsuA.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js} +2 -2
- package/dist/{Tier-BF3V430O.js → Tier-BAZ1xuKL.js} +22 -22
- package/dist/{Title-DwPuqKfJ.js → Title-CcNAt47f.js} +19 -19
- package/dist/{Transaction-CnTEfMGU.js → Transaction-D7DO3dKQ.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DToNRTJS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js} +6 -6
- package/dist/{Voucher-DnhVIl_o.js → Voucher-Cq-n1CaC.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Btb3UZCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js → ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js} +2 -2
- package/dist/{app-i3r-6ZVm.js → app-Z-UKRG5V.js} +893 -888
- package/dist/app.js +1 -1
- package/dist/{business-i0Gxk7gG.js → business-C7EF6cKC.js} +1 -1
- package/dist/{campaign-CbMlARNI.js → campaign--MjoY1Mn.js} +1 -1
- package/dist/{campaign-f7FT91GR.js → campaign-DHBuP4UA.js} +10 -10
- package/dist/{campaign.enum-CbUTfxek.js → campaign.enum-BNN2gLFY.js} +1 -1
- package/dist/{campaign.fn-BjHSIDd1.js → campaign.fn-Bd34dVnx.js} +93 -93
- package/dist/{collectible.enum-DN7E_kHg.js → collectible.enum-DO9HdJGH.js} +1 -1
- package/dist/{duplicateCampaign-DmdJQEIA.js → duplicateCampaign-2ODeDw3a.js} +2 -2
- package/dist/{effect-DM4AzeQl.js → effect-BcB8IlTI.js} +1 -1
- package/dist/{email-addresses-BlqVJhwZ.js → email-addresses-BcTeU4Sh.js} +2 -2
- package/dist/{export-DQR-0lmK.js → export-CjB7qxZ9.js} +3 -3
- package/dist/{helper-CkdISSVP.js → helper-BSgrCJRv.js} +1 -1
- package/dist/{index-jVfDVEtz.js → index-BIAjmMga.js} +1 -1
- package/dist/{index-CxdLExX0.js → index-Bf6jNZit.js} +1 -1
- package/dist/{index-BWsj6lCJ.js → index-Bm0QPucw.js} +1 -1
- package/dist/{index-BrboOmPq.js → index-BoYEqLif.js} +5 -5
- package/dist/{index-4EtrCy_K.js → index-BpI-BI4H.js} +1 -1
- package/dist/{index-COrXX9MR.js → index-Bv4MBLQ5.js} +1 -1
- package/dist/{index-FD50UHqf.js → index-CIBPhxlC.js} +2 -2
- package/dist/{index-DgzNGQgE.js → index-CoHWpylO.js} +4 -4
- package/dist/{index-CB7ytKOE.js → index-CsoBDon4.js} +3 -3
- package/dist/{index-CWiaP-aV.js → index-HXiYGO4_.js} +2 -2
- package/dist/{index-B6xi1soU.js → index-VlFWaBrg.js} +1 -1
- package/dist/{index-Cl8t41Sk.js → index-hbyCVNa7.js} +3 -3
- package/dist/{index-D6qeYVNz.js → index-hlyg-wxV.js} +1 -1
- package/dist/{index-vI-ndGu_.js → index-iMPtFp54.js} +3 -3
- package/dist/{index.esm2017-BX5CyKoc.js → index.esm2017-CM7OnEyP.js} +105 -105
- package/dist/{loading-DTKDhqew.js → loading-CSXr0Yqz.js} +1 -1
- package/dist/{lodash-CCPBsqhe.js → lodash-Bh7XKI-R.js} +1 -1
- package/dist/{membership-rifuatxU.js → membership-CfredTm3.js} +3 -3
- package/dist/{money-wMK3QkZ5.js → money-BZIST_m9.js} +1 -1
- package/dist/{number-DjKVlWn0.js → number-DXLR2w95.js} +1 -1
- package/dist/objectid-Dg4ZodlT.js +145 -0
- package/dist/{plugins-D25PaNJk.js → plugins-4FlbwoES.js} +3 -3
- package/dist/{reward-E63jqJHm.js → reward-DUbl79bZ.js} +1 -1
- package/dist/{rule-RVvPtAnk.js → rule-BQUoZ4l_.js} +3 -3
- package/dist/{template-zNxOQaqe.js → template-BoiSG7G7.js} +6 -6
- package/dist/{trigger-BXV02FhP.js → trigger-D5g5m6tT.js} +5 -5
- package/dist/{useMarketingMaterialActions-5TFNqZVo.js → useMarketingMaterialActions-B-Jlw2Z9.js} +3 -3
- package/dist/{usePagination-BPcPhEnp.js → usePagination-DHePBBoR.js} +1 -1
- package/dist/{user-Bd8S7R5u.js → user-C_ToSo-g.js} +1 -1
- package/dist/{vue-i18n-CgMK-TaC.js → vue-i18n-BcYh6_51.js} +252 -252
- package/dist/{xlsx-_tQC9Ezf.js → xlsx-h4G1C-xj.js} +1 -1
- package/dist/{zod-C1j2GLZP.js → zod-CgigfJar.js} +1 -1
- package/package.json +1 -1
- package/dist/objectid-DjpWkCxH.js +0 -145
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as B, ref as S, computed as p, resolveComponent as P, openBlock as n, createBlock as I, unref as e, withCtx as
|
|
2
|
-
import { u as
|
|
3
|
-
import { h as
|
|
1
|
+
import { defineComponent as B, ref as S, computed as p, resolveComponent as P, openBlock as n, createBlock as I, unref as e, withCtx as U, createVNode as f, normalizeClass as Q, createElementVNode as o, toDisplayString as d, createElementBlock as c, Fragment as D, renderList as V, useModel as _, onMounted as L, isRef as O, createCommentVNode as M, renderSlot as T, createTextVNode as H, Teleport as le, withModifiers as ne, onUnmounted as ae, normalizeStyle as K, watch as Z, useSlots as se, createStaticVNode as re, KeepAlive as ie } from "vue";
|
|
2
|
+
import { u as z } from "./vue-i18n-BcYh6_51.js";
|
|
3
|
+
import { h as N } from "./moment-D7p2TMB-.js";
|
|
4
4
|
import { _ as ce } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js";
|
|
5
5
|
import { _ as X } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
6
|
-
import { u as J } from "./business-
|
|
7
|
-
import { components as
|
|
8
|
-
import { r as
|
|
9
|
-
import { u as ue } from "./loading-
|
|
6
|
+
import { u as J } from "./business-C7EF6cKC.js";
|
|
7
|
+
import { components as C, useSnackbar as de } from "@feedmepos/ui-library";
|
|
8
|
+
import { r as G } from "./index-Bv4MBLQ5.js";
|
|
9
|
+
import { u as ue } from "./loading-CSXr0Yqz.js";
|
|
10
10
|
const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, W = /* @__PURE__ */ B({
|
|
11
11
|
__name: "SortChip",
|
|
12
12
|
props: {
|
|
@@ -43,21 +43,21 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
43
43
|
t("update:model-value", i), r.value = !1;
|
|
44
44
|
}
|
|
45
45
|
return (i, y) => {
|
|
46
|
-
const
|
|
46
|
+
const g = P("FmIcon"), x = P("FmChip"), k = P("FmMenuItem"), E = P("FmMenu");
|
|
47
47
|
return n(), I(E, {
|
|
48
48
|
placement: l.placement,
|
|
49
49
|
"model-value": e(r),
|
|
50
50
|
"close-on-click": !0,
|
|
51
51
|
onMenuChanged: y[0] || (y[0] = (b) => r.value = b)
|
|
52
52
|
}, {
|
|
53
|
-
"menu-button":
|
|
54
|
-
|
|
53
|
+
"menu-button": U(() => [
|
|
54
|
+
f(x, {
|
|
55
55
|
label: `${l.label}${e(u)}`,
|
|
56
56
|
class: Q(s.class)
|
|
57
57
|
}, {
|
|
58
|
-
default:
|
|
58
|
+
default: U(() => [
|
|
59
59
|
o("div", me, d(l.label) + d(e(u)), 1),
|
|
60
|
-
g
|
|
60
|
+
f(g, {
|
|
61
61
|
name: e(r) ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
62
62
|
class: Q(s.class),
|
|
63
63
|
outline: "",
|
|
@@ -67,7 +67,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
67
67
|
_: 1
|
|
68
68
|
}, 8, ["label", "class"])
|
|
69
69
|
]),
|
|
70
|
-
default:
|
|
70
|
+
default: U(() => [
|
|
71
71
|
(n(!0), c(D, null, V(l.items, (b) => (n(), I(k, {
|
|
72
72
|
key: b.value,
|
|
73
73
|
value: b.value,
|
|
@@ -79,7 +79,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
79
79
|
}, 8, ["placement", "model-value"]);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
}), ve = { class: "flex justify-between gap-8" },
|
|
82
|
+
}), ve = { class: "flex justify-between gap-8" }, fe = { class: "flex flex-wrap gap-8" }, ge = /* @__PURE__ */ B({
|
|
83
83
|
__name: "ReviewListingController",
|
|
84
84
|
props: {
|
|
85
85
|
source: {
|
|
@@ -101,7 +101,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
101
101
|
},
|
|
102
102
|
emits: ["update:source", "update:dateFrom", "update:dateTo", "update:locationId", "update:deletedFilter", "update:sort"],
|
|
103
103
|
setup(l) {
|
|
104
|
-
const { t: a } =
|
|
104
|
+
const { t: a } = z(), s = _(l, "source"), t = _(l, "dateFrom"), r = _(l, "dateTo"), u = _(l, "locationId"), m = _(l, "deletedFilter"), i = _(l, "sort"), y = J(), g = p(() => [
|
|
105
105
|
{ label: "Google", value: "google" },
|
|
106
106
|
{ label: "Facebook", value: "facebook" },
|
|
107
107
|
{ label: "FeedMe", value: "feedme" },
|
|
@@ -149,42 +149,42 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
149
149
|
set: (v) => {
|
|
150
150
|
t.value = v.startDate ?? null, r.value = v.endDate ?? null;
|
|
151
151
|
}
|
|
152
|
-
}),
|
|
153
|
-
return
|
|
154
|
-
o("div",
|
|
155
|
-
|
|
152
|
+
}), R = p(() => y.locations.length > 0);
|
|
153
|
+
return L(() => y.readLocations()), (v, w) => (n(), c("div", ve, [
|
|
154
|
+
o("div", fe, [
|
|
155
|
+
f(X, {
|
|
156
156
|
modelValue: e(b),
|
|
157
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
157
|
+
"onUpdate:modelValue": w[0] || (w[0] = (A) => O(b) ? b.value = A : null),
|
|
158
158
|
label: `${e(a)("connect.review.filter.source")}: `,
|
|
159
159
|
"show-item-label": !0,
|
|
160
|
-
items: e(
|
|
160
|
+
items: e(g),
|
|
161
161
|
searchable: !1,
|
|
162
162
|
placement: "bottom-start"
|
|
163
163
|
}, null, 8, ["modelValue", "label", "items"]),
|
|
164
|
-
e(
|
|
164
|
+
e(R) ? (n(), I(X, {
|
|
165
165
|
key: 0,
|
|
166
166
|
modelValue: e(h),
|
|
167
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
167
|
+
"onUpdate:modelValue": w[1] || (w[1] = (A) => O(h) ? h.value = A : null),
|
|
168
168
|
label: `${e(a)("connect.review.filter.location")}: `,
|
|
169
169
|
"show-item-label": !0,
|
|
170
170
|
items: e(x),
|
|
171
171
|
placement: "bottom-start"
|
|
172
172
|
}, null, 8, ["modelValue", "label", "items"])) : M("", !0),
|
|
173
|
-
|
|
173
|
+
f(ce, {
|
|
174
174
|
modelValue: e(F),
|
|
175
|
-
"onUpdate:modelValue": w[2] || (w[2] = (
|
|
175
|
+
"onUpdate:modelValue": w[2] || (w[2] = (A) => O(F) ? F.value = A : null)
|
|
176
176
|
}, null, 8, ["modelValue"]),
|
|
177
|
-
|
|
177
|
+
f(W, {
|
|
178
178
|
modelValue: m.value,
|
|
179
|
-
"onUpdate:modelValue": w[3] || (w[3] = (
|
|
179
|
+
"onUpdate:modelValue": w[3] || (w[3] = (A) => m.value = A),
|
|
180
180
|
label: `${e(a)("connect.review.filter.deleted.label")}: `,
|
|
181
181
|
items: e(E),
|
|
182
182
|
placement: "bottom-start"
|
|
183
183
|
}, null, 8, ["modelValue", "label", "items"])
|
|
184
184
|
]),
|
|
185
|
-
|
|
185
|
+
f(W, {
|
|
186
186
|
modelValue: i.value,
|
|
187
|
-
"onUpdate:modelValue": w[4] || (w[4] = (
|
|
187
|
+
"onUpdate:modelValue": w[4] || (w[4] = (A) => i.value = A),
|
|
188
188
|
label: `${e(a)("connect.review.filter.sort.label")}: `,
|
|
189
189
|
items: e(k),
|
|
190
190
|
placement: "bottom-start"
|
|
@@ -194,10 +194,10 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
194
194
|
}), ee = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%231877F2'%3e%3cpath%20d='M24%2012.073c0-6.627-5.373-12-12-12s-12%205.373-12%2012c0%205.99%204.388%2010.954%2010.125%2011.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007%201.792-4.669%204.533-4.669%201.312%200%202.686.235%202.686.235v2.953H15.83c-1.491%200-1.956.925-1.956%201.874v2.25h3.328l-.532%203.47h-2.796v8.385C19.612%2023.027%2024%2018.062%2024%2012.073z'/%3e%3c/svg%3e", we = { class: "flex h-full flex-col" }, pe = { class: "shrink-0 border-b border-fm-color-neutral-gray-200 pb-[12px] pt-18" }, ye = { class: "flex items-center gap-[10px]" }, be = { class: "min-w-0 flex-1" }, he = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, xe = { class: "flex items-center gap-4" }, ke = { class: "ml-4 fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, Ce = ["title"], Ae = { class: "min-h-0 flex-1 overflow-y-auto py-[20px]" }, Ie = { class: "flex flex-col gap-16" }, Fe = {
|
|
195
195
|
key: 0,
|
|
196
196
|
class: "rounded-lg border border-red-200 bg-red-50 px-12 py-8 fm-typo-en-body-sm-600 text-red-700"
|
|
197
|
-
}, De = { class: "m-0 fm-typo-en-body-md-400 leading-22" }, Me = { key: 1 }, Se = { class: "mb-8 fm-typo-en-body-sm-600 uppercase tracking-wide text-fm-color-neutral-gray-400" }, Be = { class: "flex flex-wrap gap-8" }, Ee = ["src", "alt"], Ue = { class: "flex flex-col gap-[10px] rounded-xl bg-fm-color-neutral-gray-100 py-[14px] px-[24px]" }, Re = { class: "flex justify-between gap-12 fm-typo-en-body-sm-400" }, Ve = { class: "text-fm-color-neutral-gray-400" }, Oe = { class: "font-semibold text-fm-color-neutral-gray-400" }, Qe = { class: "flex justify-between gap-12 fm-typo-en-body-sm-400" }, Ye = { class: "text-fm-color-neutral-gray-400" },
|
|
197
|
+
}, De = { class: "m-0 fm-typo-en-body-md-400 leading-22" }, Me = { key: 1 }, Se = { class: "mb-8 fm-typo-en-body-sm-600 uppercase tracking-wide text-fm-color-neutral-gray-400" }, Be = { class: "flex flex-wrap gap-8" }, Ee = ["src", "alt"], Ue = { class: "flex flex-col gap-[10px] rounded-xl bg-fm-color-neutral-gray-100 py-[14px] px-[24px]" }, Re = { class: "flex justify-between gap-12 fm-typo-en-body-sm-400" }, Ve = { class: "text-fm-color-neutral-gray-400" }, Oe = { class: "font-semibold text-fm-color-neutral-gray-400" }, Qe = { class: "flex justify-between gap-12 fm-typo-en-body-sm-400" }, Ye = { class: "text-fm-color-neutral-gray-400" }, ze = { class: "text-right font-semibold text-fm-color-neutral-gray-400" }, Ge = { class: "flex justify-between gap-12 fm-typo-en-body-sm-400" }, Pe = { class: "text-fm-color-neutral-gray-400" }, _e = { class: "font-semibold text-fm-color-neutral-gray-400" }, Ne = {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: "flex justify-between gap-12 fm-typo-en-body-sm-400"
|
|
200
|
-
},
|
|
200
|
+
}, Te = { class: "text-fm-color-neutral-gray-400" }, He = { class: "font-semibold text-fm-color-neutral-gray-400" }, Le = {
|
|
201
201
|
key: 1,
|
|
202
202
|
class: "flex justify-between gap-12 fm-typo-en-body-sm-400"
|
|
203
203
|
}, qe = { class: "text-red-700" }, je = { class: "font-semibold text-red-700" }, Je = { class: "flex justify-between gap-12 fm-typo-en-body-sm-400" }, Ke = { class: "text-fm-color-neutral-gray-400" }, Ze = { class: "font-mono text-xs text-fm-color-neutral-gray-400" }, Xe = /* @__PURE__ */ B({
|
|
@@ -211,7 +211,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
211
211
|
},
|
|
212
212
|
emits: ["update:modelValue"],
|
|
213
213
|
setup(l, { emit: a }) {
|
|
214
|
-
const { t: s } =
|
|
214
|
+
const { t: s } = z(), t = l, r = a, u = p({
|
|
215
215
|
get: () => t.modelValue,
|
|
216
216
|
set: (b) => r("update:modelValue", b)
|
|
217
217
|
}), m = p(() => {
|
|
@@ -224,27 +224,27 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
224
224
|
if (t.review.source === "google" || t.review.source === "feedme")
|
|
225
225
|
return t.review.starRating;
|
|
226
226
|
if (t.review.source === "feedvibe") return t.review.rating.overall;
|
|
227
|
-
}),
|
|
228
|
-
() =>
|
|
227
|
+
}), g = p(() => t.review.source === "google" || t.review.source === "feedme" || t.review.source === "feedvibe" ? t.review.mediaItems : []), x = p(
|
|
228
|
+
() => N(t.review.createTime).format("D MMM YYYY, hh:mm A")
|
|
229
229
|
), k = p(
|
|
230
|
-
() => t.review.updateTime ?
|
|
230
|
+
() => t.review.updateTime ? N(t.review.updateTime).format("D MMM YYYY, hh:mm A") : void 0
|
|
231
231
|
), E = p(
|
|
232
|
-
() => t.review.deletedAt ?
|
|
232
|
+
() => t.review.deletedAt ? N(t.review.deletedAt).format("D MMM YYYY, hh:mm A") : void 0
|
|
233
233
|
);
|
|
234
234
|
return (b, h) => {
|
|
235
235
|
const F = P("FmSideSheet");
|
|
236
236
|
return n(), I(F, {
|
|
237
237
|
modelValue: u.value,
|
|
238
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
238
|
+
"onUpdate:modelValue": h[1] || (h[1] = (R) => u.value = R),
|
|
239
239
|
"max-width": 560,
|
|
240
240
|
"close-button": !1,
|
|
241
241
|
"dismiss-away": !0
|
|
242
242
|
}, {
|
|
243
|
-
default:
|
|
243
|
+
default: U(() => [
|
|
244
244
|
o("div", we, [
|
|
245
245
|
o("div", pe, [
|
|
246
246
|
o("div", ye, [
|
|
247
|
-
|
|
247
|
+
f(e(C).FmAvatar, {
|
|
248
248
|
name: i.value ? void 0 : m.value,
|
|
249
249
|
src: i.value || void 0,
|
|
250
250
|
size: "md",
|
|
@@ -253,12 +253,12 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
253
253
|
o("div", be, [
|
|
254
254
|
o("div", he, d(m.value || e(s)("connect.review.detail.anonymous")), 1),
|
|
255
255
|
o("div", xe, [
|
|
256
|
-
(n(), c(D, null, V(5, (
|
|
257
|
-
key:
|
|
256
|
+
(n(), c(D, null, V(5, (R) => f(e(C).FmIcon, {
|
|
257
|
+
key: R,
|
|
258
258
|
name: "star",
|
|
259
259
|
size: "sm",
|
|
260
260
|
class: Q(
|
|
261
|
-
|
|
261
|
+
R <= Math.round(y.value || 0) ? "text-fm-color-primary" : "text-fm-color-neutral-gray-200"
|
|
262
262
|
)
|
|
263
263
|
}, null, 8, ["class"])), 64)),
|
|
264
264
|
o("span", ke, d(x.value), 1)
|
|
@@ -268,9 +268,9 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
268
268
|
type: "button",
|
|
269
269
|
title: e(s)("connect.review.detail.close"),
|
|
270
270
|
class: "flex h-[30px] w-[30px] items-center justify-center rounded-lg border-0 bg-transparent text-fm-color-neutral-gray-400 hover:bg-fm-color-neutral-gray-100",
|
|
271
|
-
onClick: h[0] || (h[0] = (
|
|
271
|
+
onClick: h[0] || (h[0] = (R) => u.value = !1)
|
|
272
272
|
}, [
|
|
273
|
-
|
|
273
|
+
f(e(C).FmIcon, {
|
|
274
274
|
name: "close",
|
|
275
275
|
size: "sm"
|
|
276
276
|
})
|
|
@@ -281,16 +281,16 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
281
281
|
o("div", Ie, [
|
|
282
282
|
E.value ? (n(), c("div", Fe, d(e(s)("connect.review.detail.deleted")), 1)) : M("", !0),
|
|
283
283
|
o("p", De, d(l.review.comment || e(s)("connect.review.detail.noComment")), 1),
|
|
284
|
-
|
|
285
|
-
o("div", Se, d(e(s)("connect.review.detail.photos", { n:
|
|
284
|
+
g.value.length ? (n(), c("div", Me, [
|
|
285
|
+
o("div", Se, d(e(s)("connect.review.detail.photos", { n: g.value.length })), 1),
|
|
286
286
|
o("div", Be, [
|
|
287
|
-
(n(!0), c(D, null, V(
|
|
288
|
-
key:
|
|
287
|
+
(n(!0), c(D, null, V(g.value, (R, v) => (n(), c("div", {
|
|
288
|
+
key: R.externalId || v,
|
|
289
289
|
class: "flex h-[76px] w-[76px] items-center justify-center overflow-hidden rounded-lg bg-fm-color-neutral-gray-100"
|
|
290
290
|
}, [
|
|
291
291
|
o("img", {
|
|
292
|
-
src:
|
|
293
|
-
alt:
|
|
292
|
+
src: R.thumbnailUrl,
|
|
293
|
+
alt: R.thumbnailLabel,
|
|
294
294
|
class: "h-full w-full object-cover"
|
|
295
295
|
}, null, 8, Ee)
|
|
296
296
|
]))), 128))
|
|
@@ -303,15 +303,15 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
303
303
|
]),
|
|
304
304
|
o("div", Qe, [
|
|
305
305
|
o("span", Ye, d(e(s)("connect.review.detail.outlet")), 1),
|
|
306
|
-
o("span",
|
|
306
|
+
o("span", ze, d(l.location || e(s)("connect.review.detail.emptyValue")), 1)
|
|
307
307
|
]),
|
|
308
|
-
o("div",
|
|
308
|
+
o("div", Ge, [
|
|
309
309
|
o("span", Pe, d(e(s)("connect.review.detail.createTime")), 1),
|
|
310
|
-
o("span",
|
|
310
|
+
o("span", _e, d(x.value), 1)
|
|
311
311
|
]),
|
|
312
|
-
k.value ? (n(), c("div",
|
|
313
|
-
o("span",
|
|
314
|
-
o("span",
|
|
312
|
+
k.value ? (n(), c("div", Ne, [
|
|
313
|
+
o("span", Te, d(e(s)("connect.review.detail.updateTime")), 1),
|
|
314
|
+
o("span", He, d(k.value), 1)
|
|
315
315
|
])) : M("", !0),
|
|
316
316
|
E.value ? (n(), c("div", Le, [
|
|
317
317
|
o("span", qe, d(e(s)("connect.review.detail.deletedAt")), 1),
|
|
@@ -332,14 +332,14 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
332
332
|
}
|
|
333
333
|
}), We = { class: "flex items-start gap-12" }, $e = { class: "min-w-0 flex flex-col flex-1 gap-8" }, et = { class: "flex flex-wrap items-start justify-between gap-8" }, tt = { class: "flex min-w-0 flex-wrap items-center gap-x-8 gap-y-4" }, ot = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, lt = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, nt = {
|
|
334
334
|
key: 0,
|
|
335
|
-
class: "inline-flex items-center rounded-full bg-red-100 px-8 py-4 fm-typo-en-body-sm-600 text-red-700"
|
|
335
|
+
class: "inline-flex items-center gap-4 rounded-full bg-red-100 px-8 py-4 fm-typo-en-body-sm-600 text-red-700"
|
|
336
336
|
}, at = { class: "flex flex-wrap items-center gap-8" }, st = { class: "inline-flex items-center gap-4 rounded-full bg-fm-color-neutral-gray-100 px-12 py-4" }, rt = ["src", "alt"], it = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, ct = {
|
|
337
337
|
key: 0,
|
|
338
338
|
class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400"
|
|
339
339
|
}, dt = {
|
|
340
340
|
key: 0,
|
|
341
341
|
class: "mt-4"
|
|
342
|
-
},
|
|
342
|
+
}, q = /* @__PURE__ */ B({
|
|
343
343
|
__name: "ReviewCardTemplate",
|
|
344
344
|
props: {
|
|
345
345
|
review: {},
|
|
@@ -348,7 +348,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
348
348
|
gap: {}
|
|
349
349
|
},
|
|
350
350
|
setup(l) {
|
|
351
|
-
const { t: a } =
|
|
351
|
+
const { t: a } = z(), s = J(), t = l, r = p(() => {
|
|
352
352
|
var x;
|
|
353
353
|
return t.review.source === "feedme" ? t.review.reviewer.name : (x = t.review.reviewer) == null ? void 0 : x.name;
|
|
354
354
|
}), u = p(() => {
|
|
@@ -379,14 +379,14 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
379
379
|
}
|
|
380
380
|
}), y = p(
|
|
381
381
|
() => t.review.source === "feedme" ? t.review.billId : t.review.externalId || ""
|
|
382
|
-
),
|
|
382
|
+
), g = S(!1);
|
|
383
383
|
return (x, k) => (n(), c(D, null, [
|
|
384
384
|
o("div", {
|
|
385
385
|
class: "cursor-pointer rounded-xl border border-fm-color-neutral-gray-200 bg-white p-16 transition-colors hover:border-fm-color-neutral-gray-300",
|
|
386
|
-
onClick: k[0] || (k[0] = (E) =>
|
|
386
|
+
onClick: k[0] || (k[0] = (E) => g.value = !0)
|
|
387
387
|
}, [
|
|
388
388
|
o("div", We, [
|
|
389
|
-
|
|
389
|
+
f(e(C).FmAvatar, {
|
|
390
390
|
name: u.value ? void 0 : r.value,
|
|
391
391
|
src: u.value || void 0,
|
|
392
392
|
size: "md",
|
|
@@ -396,10 +396,28 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
396
396
|
o("div", et, [
|
|
397
397
|
o("div", tt, [
|
|
398
398
|
o("span", ot, d(r.value || e(a)("connect.review.overview.anonymous")), 1),
|
|
399
|
-
|
|
400
|
-
o("span", lt, d(e(
|
|
399
|
+
T(x.$slots, "rating"),
|
|
400
|
+
o("span", lt, d(e(N)(l.review.updateTime ?? l.review.createTime).format(
|
|
401
|
+
"D MMM YYYY, hh:mm A"
|
|
402
|
+
)), 1)
|
|
401
403
|
]),
|
|
402
|
-
l.review.deletedAt ? (n(), c("span", nt,
|
|
404
|
+
l.review.deletedAt ? (n(), c("span", nt, [
|
|
405
|
+
f(e(C).FmTooltip, {
|
|
406
|
+
content: e(a)("connect.review.overview.deletedInfo"),
|
|
407
|
+
"content-class": "max-w-[min(320px,calc(100vw-32px))] whitespace-normal",
|
|
408
|
+
placement: "left"
|
|
409
|
+
}, {
|
|
410
|
+
default: U(() => [
|
|
411
|
+
f(e(C).FmIcon, {
|
|
412
|
+
name: "info",
|
|
413
|
+
outline: "",
|
|
414
|
+
size: "sm"
|
|
415
|
+
})
|
|
416
|
+
]),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["content"]),
|
|
419
|
+
H(" " + d(e(a)("connect.review.overview.deleted")), 1)
|
|
420
|
+
])) : M("", !0)
|
|
403
421
|
]),
|
|
404
422
|
o("div", at, [
|
|
405
423
|
o("span", st, [
|
|
@@ -413,19 +431,19 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
413
431
|
k[2] || (k[2] = o("span", { class: "text-fm-color-neutral-gray-400" }, "·", -1)),
|
|
414
432
|
m.value ? (n(), c("span", ct, d(m.value), 1)) : M("", !0)
|
|
415
433
|
]),
|
|
416
|
-
|
|
434
|
+
T(x.$slots, "details"),
|
|
417
435
|
o("p", {
|
|
418
436
|
class: Q(["mt-8 line-clamp-3 fm-typo-en-body-md-400", { "italic text-fm-color-neutral-gray-400": !l.review.comment }])
|
|
419
437
|
}, d(l.review.comment || e(a)("connect.review.overview.noComment")), 3),
|
|
420
438
|
x.$slots.media ? (n(), c("div", dt, [
|
|
421
|
-
|
|
439
|
+
T(x.$slots, "media")
|
|
422
440
|
])) : M("", !0)
|
|
423
441
|
])
|
|
424
442
|
])
|
|
425
443
|
]),
|
|
426
|
-
|
|
427
|
-
modelValue: e(
|
|
428
|
-
"onUpdate:modelValue": k[1] || (k[1] = (E) => O(
|
|
444
|
+
f(Xe, {
|
|
445
|
+
modelValue: e(g),
|
|
446
|
+
"onUpdate:modelValue": k[1] || (k[1] = (E) => O(g) ? g.value = E : null),
|
|
429
447
|
review: l.review,
|
|
430
448
|
"reference-id": y.value,
|
|
431
449
|
location: m.value,
|
|
@@ -442,14 +460,14 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
442
460
|
review: {}
|
|
443
461
|
},
|
|
444
462
|
setup(l) {
|
|
445
|
-
const { t: a } =
|
|
446
|
-
return (s, t) => (n(), I(
|
|
463
|
+
const { t: a } = z();
|
|
464
|
+
return (s, t) => (n(), I(q, {
|
|
447
465
|
review: l.review,
|
|
448
466
|
logo: e(ee)
|
|
449
467
|
}, {
|
|
450
|
-
rating:
|
|
468
|
+
rating: U(() => [
|
|
451
469
|
l.review.isPositive != null ? (n(), c("div", ut, [
|
|
452
|
-
|
|
470
|
+
f(e(C).FmIcon, {
|
|
453
471
|
name: l.review.isPositive ? "thumb_up" : "thumb_down",
|
|
454
472
|
size: "sm",
|
|
455
473
|
class: Q(
|
|
@@ -467,10 +485,10 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
467
485
|
_: 1
|
|
468
486
|
}, 8, ["review", "logo"]));
|
|
469
487
|
}
|
|
470
|
-
}), vt = "data:image/svg+xml,%3csvg%20width='388'%20height='388'%20viewBox='0%200%20388%20388'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M239.449%200H148.553C66.5106%200%200.00195312%2066.5086%200.00195312%20148.551V239.447C0.00195312%20321.489%2066.5106%20387.998%20148.553%20387.998H239.449C321.491%20387.998%20388%20321.489%20388%20239.447V148.551C388%2066.5086%20321.491%200%20239.449%200Z'%20fill='url(%23paint0_linear_feedme_logo)'%20/%3e%3cmask%20id='mask0_feedme_logo'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='388'%20height='388'%3e%3cpath%20d='M239.447%200H148.551C66.5086%200%200%2066.5086%200%20148.551V239.447C0%20321.489%2066.5086%20387.998%20148.551%20387.998H239.447C321.49%20387.998%20387.998%20321.489%20387.998%20239.447V148.551C387.998%2066.5086%20321.49%200%20239.447%200Z'%20fill='white'%20/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_feedme_logo)'%3e%3cpath%20d='M82.587%20258.589V258.76C83.2747%20264.893%2084.1917%20271.598%2085.3953%20278.648L101.271%20392.296H127.462V253.946C127.462%20241.395%20137.033%20231.194%20148.839%20231.194H150.329C162.135%20231.194%20171.706%20241.395%20171.706%20253.946V392.296H216.352V253.946C216.352%20241.395%20225.923%20231.194%20237.729%20231.194H239.219C251.025%20231.194%20260.596%20241.395%20260.596%20253.946V392.296H286.959L302.835%20277.788C303.981%20271.025%20304.841%20264.549%20305.471%20258.589V258.187C307.649%20238.759%20307.649%20225.061%20307.649%20225.061C307.649%20182.938%20290.054%20148.264%20252.286%20119.78C241.97%20112.043%20233.029%20100.466%20232.17%2075.7079C232.17%2075.7079%20229.705%2012.9519%20253.719%20-33.7568H134.339C158.353%2012.9519%20155.888%2075.7079%20155.888%2075.7079C155.029%20100.409%20146.088%20111.986%20135.772%20119.78C97.9465%20148.321%2080.4092%20182.938%2080.4092%20225.061C80.4092%20225.061%2080.4092%20238.873%2082.587%20258.474V258.589Z'%20fill='white'%20/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_feedme_logo'%20x1='43.5013'%20y1='344.556'%20x2='344.501'%20y2='43.5567'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF5D53'%20/%3e%3cstop%20offset='1'%20stop-color='%23FCA23E'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",
|
|
488
|
+
}), vt = "data:image/svg+xml,%3csvg%20width='388'%20height='388'%20viewBox='0%200%20388%20388'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M239.449%200H148.553C66.5106%200%200.00195312%2066.5086%200.00195312%20148.551V239.447C0.00195312%20321.489%2066.5106%20387.998%20148.553%20387.998H239.449C321.491%20387.998%20388%20321.489%20388%20239.447V148.551C388%2066.5086%20321.491%200%20239.449%200Z'%20fill='url(%23paint0_linear_feedme_logo)'%20/%3e%3cmask%20id='mask0_feedme_logo'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='388'%20height='388'%3e%3cpath%20d='M239.447%200H148.551C66.5086%200%200%2066.5086%200%20148.551V239.447C0%20321.489%2066.5086%20387.998%20148.551%20387.998H239.447C321.49%20387.998%20387.998%20321.489%20387.998%20239.447V148.551C387.998%2066.5086%20321.49%200%20239.447%200Z'%20fill='white'%20/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_feedme_logo)'%3e%3cpath%20d='M82.587%20258.589V258.76C83.2747%20264.893%2084.1917%20271.598%2085.3953%20278.648L101.271%20392.296H127.462V253.946C127.462%20241.395%20137.033%20231.194%20148.839%20231.194H150.329C162.135%20231.194%20171.706%20241.395%20171.706%20253.946V392.296H216.352V253.946C216.352%20241.395%20225.923%20231.194%20237.729%20231.194H239.219C251.025%20231.194%20260.596%20241.395%20260.596%20253.946V392.296H286.959L302.835%20277.788C303.981%20271.025%20304.841%20264.549%20305.471%20258.589V258.187C307.649%20238.759%20307.649%20225.061%20307.649%20225.061C307.649%20182.938%20290.054%20148.264%20252.286%20119.78C241.97%20112.043%20233.029%20100.466%20232.17%2075.7079C232.17%2075.7079%20229.705%2012.9519%20253.719%20-33.7568H134.339C158.353%2012.9519%20155.888%2075.7079%20155.888%2075.7079C155.029%20100.409%20146.088%20111.986%20135.772%20119.78C97.9465%20148.321%2080.4092%20182.938%2080.4092%20225.061C80.4092%20225.061%2080.4092%20238.873%2082.587%20258.474V258.589Z'%20fill='white'%20/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_feedme_logo'%20x1='43.5013'%20y1='344.556'%20x2='344.501'%20y2='43.5567'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF5D53'%20/%3e%3cstop%20offset='1'%20stop-color='%23FCA23E'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", ft = {
|
|
471
489
|
key: 0,
|
|
472
490
|
class: "flex flex-wrap gap-8"
|
|
473
|
-
},
|
|
491
|
+
}, gt = ["onClick"], wt = ["src", "alt"], pt = {
|
|
474
492
|
key: 0,
|
|
475
493
|
class: "absolute inset-0 flex items-center justify-center bg-black/30"
|
|
476
494
|
}, yt = ["src"], bt = ["src", "alt"], te = /* @__PURE__ */ B({
|
|
@@ -480,7 +498,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
480
498
|
},
|
|
481
499
|
setup(l) {
|
|
482
500
|
const a = S(null);
|
|
483
|
-
return (s, t) => l.mediaItems && l.mediaItems.length > 0 ? (n(), c("div",
|
|
501
|
+
return (s, t) => l.mediaItems && l.mediaItems.length > 0 ? (n(), c("div", ft, [
|
|
484
502
|
(n(!0), c(D, null, V(l.mediaItems, (r, u) => (n(), c("div", {
|
|
485
503
|
key: u,
|
|
486
504
|
class: "relative w-72 h-72 rounded-lg overflow-hidden border border-fm-color-neutral-gray-200 shrink-0 cursor-pointer hover:opacity-90 transition-opacity",
|
|
@@ -492,12 +510,12 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
492
510
|
class: "w-full h-full object-cover"
|
|
493
511
|
}, null, 8, wt),
|
|
494
512
|
r.videoUrl ? (n(), c("div", pt, [
|
|
495
|
-
|
|
513
|
+
f(e(C).FmIcon, {
|
|
496
514
|
name: "play_arrow",
|
|
497
515
|
class: "text-white"
|
|
498
516
|
})
|
|
499
517
|
])) : M("", !0)
|
|
500
|
-
], 8,
|
|
518
|
+
], 8, gt))), 128)),
|
|
501
519
|
(n(), I(le, { to: "body" }, [
|
|
502
520
|
a.value ? (n(), c("div", {
|
|
503
521
|
key: 0,
|
|
@@ -508,7 +526,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
508
526
|
class: "absolute top-16 right-16 z-50 p-8 text-white hover:text-fm-color-neutral-gray-300 transition-colors",
|
|
509
527
|
onClick: t[0] || (t[0] = (r) => a.value = null)
|
|
510
528
|
}, [
|
|
511
|
-
|
|
529
|
+
f(e(C).FmIcon, {
|
|
512
530
|
name: "close",
|
|
513
531
|
size: "lg"
|
|
514
532
|
})
|
|
@@ -541,14 +559,14 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
541
559
|
review: {}
|
|
542
560
|
},
|
|
543
561
|
setup(l) {
|
|
544
|
-
return (a, s) => (n(), I(
|
|
562
|
+
return (a, s) => (n(), I(q, {
|
|
545
563
|
review: l.review,
|
|
546
564
|
logo: e(vt),
|
|
547
565
|
"logo-alt": "FeedMe"
|
|
548
566
|
}, {
|
|
549
|
-
rating:
|
|
567
|
+
rating: U(() => [
|
|
550
568
|
o("div", ht, [
|
|
551
|
-
(n(), c(D, null, V(5, (t) =>
|
|
569
|
+
(n(), c(D, null, V(5, (t) => f(e(C).FmIcon, {
|
|
552
570
|
key: t,
|
|
553
571
|
name: "star",
|
|
554
572
|
size: "sm",
|
|
@@ -558,8 +576,8 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
558
576
|
}, null, 8, ["class"])), 64))
|
|
559
577
|
])
|
|
560
578
|
]),
|
|
561
|
-
media:
|
|
562
|
-
|
|
579
|
+
media: U(() => [
|
|
580
|
+
f(te, {
|
|
563
581
|
"media-items": l.review.mediaItems
|
|
564
582
|
}, null, 8, ["media-items"])
|
|
565
583
|
]),
|
|
@@ -572,16 +590,16 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
572
590
|
review: {}
|
|
573
591
|
},
|
|
574
592
|
setup(l) {
|
|
575
|
-
const { t: a } =
|
|
576
|
-
return (s, t) => (n(), I(
|
|
593
|
+
const { t: a } = z();
|
|
594
|
+
return (s, t) => (n(), I(q, {
|
|
577
595
|
review: l.review,
|
|
578
596
|
logo: e(kt),
|
|
579
597
|
"logo-alt": "Feedvibe",
|
|
580
598
|
gap: "12"
|
|
581
599
|
}, {
|
|
582
|
-
rating:
|
|
600
|
+
rating: U(() => [
|
|
583
601
|
o("div", Ct, [
|
|
584
|
-
(n(), c(D, null, V(5, (r) =>
|
|
602
|
+
(n(), c(D, null, V(5, (r) => f(e(C).FmIcon, {
|
|
585
603
|
key: r,
|
|
586
604
|
name: "star",
|
|
587
605
|
size: "sm",
|
|
@@ -591,26 +609,26 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
591
609
|
}, null, 8, ["class"])), 64))
|
|
592
610
|
])
|
|
593
611
|
]),
|
|
594
|
-
details:
|
|
612
|
+
details: U(() => [
|
|
595
613
|
o("div", At, [
|
|
596
614
|
o("span", null, [
|
|
597
|
-
|
|
615
|
+
H(d(e(a)("connect.review.overview.food")) + ": ", 1),
|
|
598
616
|
o("strong", It, d(l.review.rating.food) + "/5 ", 1)
|
|
599
617
|
]),
|
|
600
618
|
t[0] || (t[0] = o("span", { "aria-hidden": "true" }, "|", -1)),
|
|
601
619
|
o("span", null, [
|
|
602
|
-
|
|
620
|
+
H(d(e(a)("connect.review.overview.service")) + ": ", 1),
|
|
603
621
|
o("strong", Ft, d(l.review.rating.service) + "/5 ", 1)
|
|
604
622
|
]),
|
|
605
623
|
t[1] || (t[1] = o("span", { "aria-hidden": "true" }, "|", -1)),
|
|
606
624
|
o("span", null, [
|
|
607
|
-
|
|
625
|
+
H(d(e(a)("connect.review.overview.atmosphere")) + ": ", 1),
|
|
608
626
|
o("strong", Dt, d(l.review.rating.atmosphere) + "/5 ", 1)
|
|
609
627
|
])
|
|
610
628
|
])
|
|
611
629
|
]),
|
|
612
|
-
media:
|
|
613
|
-
|
|
630
|
+
media: U(() => [
|
|
631
|
+
f(te, {
|
|
614
632
|
"media-items": l.review.mediaItems
|
|
615
633
|
}, null, 8, ["media-items"])
|
|
616
634
|
]),
|
|
@@ -623,13 +641,13 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
623
641
|
review: {}
|
|
624
642
|
},
|
|
625
643
|
setup(l) {
|
|
626
|
-
return (a, s) => (n(), I(
|
|
644
|
+
return (a, s) => (n(), I(q, {
|
|
627
645
|
review: l.review,
|
|
628
646
|
logo: e(oe)
|
|
629
647
|
}, {
|
|
630
|
-
rating:
|
|
648
|
+
rating: U(() => [
|
|
631
649
|
o("div", St, [
|
|
632
|
-
(n(), c(D, null, V(5, (t) =>
|
|
650
|
+
(n(), c(D, null, V(5, (t) => f(e(C).FmIcon, {
|
|
633
651
|
key: t,
|
|
634
652
|
name: "star",
|
|
635
653
|
size: "sm",
|
|
@@ -689,8 +707,8 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
689
707
|
},
|
|
690
708
|
emits: ["loadMore"],
|
|
691
709
|
setup(l, { emit: a }) {
|
|
692
|
-
const { t: s } =
|
|
693
|
-
return
|
|
710
|
+
const { t: s } = z(), t = l, r = a, u = S(null);
|
|
711
|
+
return L(() => {
|
|
694
712
|
const m = new IntersectionObserver(
|
|
695
713
|
(i) => {
|
|
696
714
|
i[0].isIntersecting && t.hasMore && !t.loading && r("loadMore");
|
|
@@ -700,13 +718,13 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
700
718
|
u.value && m.observe(u.value), ae(() => m.disconnect());
|
|
701
719
|
}), (m, i) => (n(), c(D, null, [
|
|
702
720
|
l.loading && l.reviews.length === 0 ? (n(), c("div", Ut, [
|
|
703
|
-
|
|
721
|
+
f(e(C).FmIcon, {
|
|
704
722
|
name: "sync",
|
|
705
723
|
size: "xl",
|
|
706
724
|
class: "animate-spin text-fm-color-neutral-gray-400"
|
|
707
725
|
})
|
|
708
726
|
])) : l.reviews.length === 0 ? (n(), c("div", Rt, [
|
|
709
|
-
|
|
727
|
+
f(e(C).FmIcon, {
|
|
710
728
|
name: "rate_review",
|
|
711
729
|
size: "xl",
|
|
712
730
|
class: "text-fm-color-neutral-gray-300"
|
|
@@ -722,7 +740,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
722
740
|
class: "h-1"
|
|
723
741
|
}, null, 512),
|
|
724
742
|
l.loading && l.reviews.length > 0 ? (n(), c("div", Ot, [
|
|
725
|
-
|
|
743
|
+
f(e(C).FmIcon, {
|
|
726
744
|
name: "sync",
|
|
727
745
|
size: "md",
|
|
728
746
|
class: "animate-spin text-fm-color-neutral-gray-400"
|
|
@@ -730,7 +748,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
730
748
|
])) : M("", !0)
|
|
731
749
|
], 64));
|
|
732
750
|
}
|
|
733
|
-
}), Yt = { class: "w-1/2 rounded-lg border border-fm-color-neutral-gray-200 bg-white p-5" },
|
|
751
|
+
}), Yt = { class: "w-1/2 rounded-lg border border-fm-color-neutral-gray-200 bg-white p-5" }, zt = { class: "fm-typo-en-title-md-600 text-fm-color-typo-primary" }, Gt = { class: "mt-16 grid grid-cols-[minmax(0,1fr)_minmax(140px,0.5fr)] gap-5" }, Pt = { class: "mt-12 flex flex-col gap-8" }, _t = { class: "w-16 fm-typo-en-body-sm-400 text-fm-color-neutral-gray-500" }, Nt = { class: "h-8 flex-1 overflow-hidden rounded-full bg-fm-color-neutral-gray-100" }, Tt = { class: "w-24 text-right fm-typo-en-body-sm-400 text-fm-color-neutral-gray-500" }, Ht = { class: "mt-8 flex flex-col items-center" }, Lt = { class: "fm-typo-en-display-lg-800 text-fm-color-typo-primary" }, qt = {
|
|
734
752
|
class: "mt-8 flex items-center gap-1",
|
|
735
753
|
"aria-label": "Average rating"
|
|
736
754
|
}, jt = { class: "mt-4 fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, Jt = /* @__PURE__ */ B({
|
|
@@ -743,7 +761,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
743
761
|
() => a.reviews.filter((i) => !i.deletedAt).flatMap(
|
|
744
762
|
(i) => "starRating" in i ? [i.starRating] : i.source === "feedvibe" ? [i.rating.overall] : []
|
|
745
763
|
)
|
|
746
|
-
), t = p(() => s.value.length ? (s.value.reduce((y,
|
|
764
|
+
), t = p(() => s.value.length ? (s.value.reduce((y, g) => y + g, 0) / s.value.length).toFixed(1) : "0.0"), r = p(() => Number(t.value)), u = p(
|
|
747
765
|
() => [5, 4, 3, 2, 1].map((i) => ({
|
|
748
766
|
star: i,
|
|
749
767
|
count: s.value.filter((y) => Math.round(y) === i).length
|
|
@@ -753,47 +771,47 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
753
771
|
return `${Math.min(Math.max(r.value - i + 1, 0), 1) * 100}%`;
|
|
754
772
|
}
|
|
755
773
|
return (i, y) => (n(), c("div", Yt, [
|
|
756
|
-
o("h2",
|
|
757
|
-
o("div",
|
|
774
|
+
o("h2", zt, d(i.$t("connect.review.overview.summary")), 1),
|
|
775
|
+
o("div", Gt, [
|
|
758
776
|
o("div", Pt, [
|
|
759
|
-
(n(!0), c(D, null, V(e(u), (
|
|
760
|
-
key:
|
|
777
|
+
(n(!0), c(D, null, V(e(u), (g) => (n(), c("div", {
|
|
778
|
+
key: g.star,
|
|
761
779
|
class: "flex items-center gap-8"
|
|
762
780
|
}, [
|
|
763
|
-
o("span",
|
|
764
|
-
|
|
781
|
+
o("span", _t, d(g.star), 1),
|
|
782
|
+
f(e(C).FmIcon, {
|
|
765
783
|
name: "star",
|
|
766
784
|
size: "sm",
|
|
767
785
|
class: "text-amber-400"
|
|
768
786
|
}),
|
|
769
|
-
o("div",
|
|
787
|
+
o("div", Nt, [
|
|
770
788
|
o("div", {
|
|
771
789
|
class: "h-full rounded-full bg-amber-400 transition-[width]",
|
|
772
790
|
style: K({
|
|
773
|
-
width: `${e(s).length ?
|
|
791
|
+
width: `${e(s).length ? g.count / e(s).length * 100 : 0}%`
|
|
774
792
|
})
|
|
775
793
|
}, null, 4)
|
|
776
794
|
]),
|
|
777
|
-
o("span",
|
|
795
|
+
o("span", Tt, d(g.count), 1)
|
|
778
796
|
]))), 128))
|
|
779
797
|
]),
|
|
780
|
-
o("div",
|
|
798
|
+
o("div", Ht, [
|
|
781
799
|
o("span", Lt, d(e(t)), 1),
|
|
782
800
|
o("div", qt, [
|
|
783
|
-
(n(), c(D, null, V(5, (
|
|
784
|
-
key:
|
|
801
|
+
(n(), c(D, null, V(5, (g) => o("span", {
|
|
802
|
+
key: g,
|
|
785
803
|
class: "relative"
|
|
786
804
|
}, [
|
|
787
|
-
|
|
805
|
+
f(e(C).FmIcon, {
|
|
788
806
|
name: "star",
|
|
789
807
|
size: "md",
|
|
790
808
|
class: "text-fm-color-neutral-gray-200"
|
|
791
809
|
}),
|
|
792
810
|
o("span", {
|
|
793
811
|
class: "absolute inset-y-0 left-0 overflow-hidden",
|
|
794
|
-
style: K({ width: m(
|
|
812
|
+
style: K({ width: m(g) })
|
|
795
813
|
}, [
|
|
796
|
-
|
|
814
|
+
f(e(C).FmIcon, {
|
|
797
815
|
name: "star",
|
|
798
816
|
size: "md",
|
|
799
817
|
class: "text-amber-400"
|
|
@@ -809,7 +827,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
809
827
|
}), Kt = { class: "p-24 flex flex-col gap-12" }, j = 20, Zt = /* @__PURE__ */ B({
|
|
810
828
|
__name: "ReviewOverview",
|
|
811
829
|
setup(l) {
|
|
812
|
-
const a = S([]), s = S(!1), t = S(!0), r = S(null), u = S(null), m = S(null), i = S(""), y = S("all"),
|
|
830
|
+
const a = S([]), s = S(!1), t = S(!0), r = S(null), u = S(null), m = S(null), i = S(""), y = S("all"), g = S("createTime_desc");
|
|
813
831
|
Z(r, () => {
|
|
814
832
|
i.value = "";
|
|
815
833
|
});
|
|
@@ -817,11 +835,11 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
817
835
|
var h;
|
|
818
836
|
return {
|
|
819
837
|
source: ((h = r.value) == null ? void 0 : h.join(",")) || void 0,
|
|
820
|
-
dateFrom: u.value ?
|
|
821
|
-
dateTo: m.value ?
|
|
838
|
+
dateFrom: u.value ? N(u.value).startOf("day").toISOString() : void 0,
|
|
839
|
+
dateTo: m.value ? N(m.value).endOf("day").toISOString() : void 0,
|
|
822
840
|
locationId: i.value || void 0,
|
|
823
841
|
excludeDeleted: y.value === "excludeDeleted" ? !0 : void 0,
|
|
824
|
-
sort:
|
|
842
|
+
sort: g.value,
|
|
825
843
|
limit: j,
|
|
826
844
|
skip: b
|
|
827
845
|
};
|
|
@@ -829,7 +847,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
829
847
|
async function k() {
|
|
830
848
|
s.value = !0, t.value = !0;
|
|
831
849
|
try {
|
|
832
|
-
const b = await
|
|
850
|
+
const b = await G.listReviews(x(0));
|
|
833
851
|
a.value = b, t.value = b.length === j;
|
|
834
852
|
} finally {
|
|
835
853
|
s.value = !1;
|
|
@@ -839,7 +857,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
839
857
|
if (!(s.value || !t.value)) {
|
|
840
858
|
s.value = !0;
|
|
841
859
|
try {
|
|
842
|
-
const b = await
|
|
860
|
+
const b = await G.listReviews(x(a.value.length));
|
|
843
861
|
a.value = [...a.value, ...b], t.value = b.length === j;
|
|
844
862
|
} finally {
|
|
845
863
|
s.value = !1;
|
|
@@ -853,12 +871,12 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
853
871
|
m,
|
|
854
872
|
i,
|
|
855
873
|
y,
|
|
856
|
-
|
|
874
|
+
g
|
|
857
875
|
],
|
|
858
876
|
k
|
|
859
|
-
),
|
|
860
|
-
|
|
861
|
-
|
|
877
|
+
), L(k), (b, h) => (n(), c("div", Kt, [
|
|
878
|
+
f(Jt, { reviews: e(a) }, null, 8, ["reviews"]),
|
|
879
|
+
f(ge, {
|
|
862
880
|
source: e(r),
|
|
863
881
|
"onUpdate:source": h[0] || (h[0] = (F) => O(r) ? r.value = F : null),
|
|
864
882
|
"date-from": e(u),
|
|
@@ -869,10 +887,10 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
869
887
|
"onUpdate:locationId": h[3] || (h[3] = (F) => O(i) ? i.value = F : null),
|
|
870
888
|
"deleted-filter": e(y),
|
|
871
889
|
"onUpdate:deletedFilter": h[4] || (h[4] = (F) => O(y) ? y.value = F : null),
|
|
872
|
-
sort: e(
|
|
873
|
-
"onUpdate:sort": h[5] || (h[5] = (F) => O(
|
|
890
|
+
sort: e(g),
|
|
891
|
+
"onUpdate:sort": h[5] || (h[5] = (F) => O(g) ? g.value = F : null)
|
|
874
892
|
}, null, 8, ["source", "date-from", "date-to", "location-id", "deleted-filter", "sort"]),
|
|
875
|
-
|
|
893
|
+
f(Qt, {
|
|
876
894
|
reviews: e(a),
|
|
877
895
|
loading: e(s),
|
|
878
896
|
"has-more": e(t),
|
|
@@ -895,7 +913,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
895
913
|
},
|
|
896
914
|
emits: ["connect", "sync"],
|
|
897
915
|
setup(l, { emit: a }) {
|
|
898
|
-
const s = a, { t } =
|
|
916
|
+
const s = a, { t } = z(), r = se();
|
|
899
917
|
return (u, m) => (n(), c("div", Xt, [
|
|
900
918
|
o("div", {
|
|
901
919
|
class: Q(["flex items-center gap-12 p-16", e(r).default ? "border-b border-fm-color-neutral-gray-100" : ""])
|
|
@@ -909,18 +927,18 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
909
927
|
l.subtitle ? (n(), c("span", to, d(l.subtitle), 1)) : M("", !0)
|
|
910
928
|
]),
|
|
911
929
|
l.connected ? (n(), c(D, { key: 0 }, [
|
|
912
|
-
l.tokenExpired ? (n(), I(e(
|
|
930
|
+
l.tokenExpired ? (n(), I(e(C).FmChip, {
|
|
913
931
|
key: 0,
|
|
914
932
|
label: e(t)("connect.review.expired"),
|
|
915
933
|
variant: "critical"
|
|
916
934
|
}, null, 8, ["label"])) : M("", !0),
|
|
917
|
-
|
|
935
|
+
f(e(C).FmButton, {
|
|
918
936
|
variant: "secondary",
|
|
919
937
|
"prepend-icon": "refresh",
|
|
920
938
|
label: e(t)("connect.review.reconnect"),
|
|
921
939
|
onClick: m[0] || (m[0] = (i) => s("connect"))
|
|
922
940
|
}, null, 8, ["label"]),
|
|
923
|
-
l.tokenExpired ? M("", !0) : (n(), I(e(
|
|
941
|
+
l.tokenExpired ? M("", !0) : (n(), I(e(C).FmButton, {
|
|
924
942
|
key: 1,
|
|
925
943
|
variant: "primary",
|
|
926
944
|
"prepend-icon": "sync",
|
|
@@ -928,20 +946,20 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
928
946
|
loading: l.syncing,
|
|
929
947
|
onClick: m[1] || (m[1] = (i) => s("sync"))
|
|
930
948
|
}, null, 8, ["label", "loading"]))
|
|
931
|
-
], 64)) : (n(), I(e(
|
|
949
|
+
], 64)) : (n(), I(e(C).FmButton, {
|
|
932
950
|
key: 1,
|
|
933
951
|
"prepend-icon": "add",
|
|
934
952
|
label: e(t)("connect.review.connect"),
|
|
935
953
|
onClick: m[2] || (m[2] = (i) => s("connect"))
|
|
936
954
|
}, null, 8, ["label"]))
|
|
937
955
|
], 2),
|
|
938
|
-
|
|
956
|
+
T(u.$slots, "default")
|
|
939
957
|
]));
|
|
940
958
|
}
|
|
941
959
|
}), oo = { class: "p-24 flex flex-col gap-8" }, lo = { class: "flex flex-col flex-1 min-w-0" }, no = { class: "fm-typo-en-body-lg-600 truncate" }, ao = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, so = ["src"], ro = { class: "flex flex-col flex-1 min-w-0" }, io = { class: "fm-typo-en-body-lg-600 truncate" }, co = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, uo = /* @__PURE__ */ B({
|
|
942
960
|
__name: "ReviewSettings",
|
|
943
961
|
setup(l) {
|
|
944
|
-
const { t: a } =
|
|
962
|
+
const { t: a } = z(), s = de(), t = J(), r = S(null), u = S(!1), m = S(!1), i = p(
|
|
945
963
|
() => {
|
|
946
964
|
var v;
|
|
947
965
|
return r.value ? ((v = r.value.google) == null ? void 0 : v.accessToken) === null : !1;
|
|
@@ -952,19 +970,19 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
952
970
|
return r.value ? ((v = r.value.facebook) == null ? void 0 : v.token) === null : !1;
|
|
953
971
|
}
|
|
954
972
|
);
|
|
955
|
-
function
|
|
973
|
+
function g(v) {
|
|
956
974
|
const w = window.location.pathname.replace(/\/review(?:\/.*)?$/, "");
|
|
957
975
|
return `${window.location.origin}${w}${v}`;
|
|
958
976
|
}
|
|
959
977
|
async function x() {
|
|
960
978
|
await ue.minor(async () => {
|
|
961
|
-
r.value = await
|
|
979
|
+
r.value = await G.getSource();
|
|
962
980
|
});
|
|
963
981
|
}
|
|
964
982
|
function k(v) {
|
|
965
983
|
var w;
|
|
966
984
|
return (w = t.locations.find(
|
|
967
|
-
(
|
|
985
|
+
(A) => A._id.toString() === v
|
|
968
986
|
)) == null ? void 0 : w.name;
|
|
969
987
|
}
|
|
970
988
|
function E(v) {
|
|
@@ -974,8 +992,8 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
974
992
|
var v, w;
|
|
975
993
|
u.value = !0;
|
|
976
994
|
try {
|
|
977
|
-
await
|
|
978
|
-
} catch (
|
|
995
|
+
await G.syncGoogleReviews();
|
|
996
|
+
} catch (A) {
|
|
979
997
|
if (await x(), ((w = (v = r.value) == null ? void 0 : v.google) == null ? void 0 : w.accessToken) === null) {
|
|
980
998
|
s.open({
|
|
981
999
|
message: a("connect.review.tokenExpired"),
|
|
@@ -983,7 +1001,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
983
1001
|
});
|
|
984
1002
|
return;
|
|
985
1003
|
}
|
|
986
|
-
throw
|
|
1004
|
+
throw A;
|
|
987
1005
|
} finally {
|
|
988
1006
|
u.value = !1;
|
|
989
1007
|
}
|
|
@@ -992,8 +1010,8 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
992
1010
|
var v, w;
|
|
993
1011
|
m.value = !0;
|
|
994
1012
|
try {
|
|
995
|
-
await
|
|
996
|
-
} catch (
|
|
1013
|
+
await G.syncFacebookReviews();
|
|
1014
|
+
} catch (A) {
|
|
997
1015
|
if (await x(), ((w = (v = r.value) == null ? void 0 : v.facebook) == null ? void 0 : w.token) === null) {
|
|
998
1016
|
s.open({
|
|
999
1017
|
message: a("connect.review.tokenExpired"),
|
|
@@ -1001,24 +1019,24 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
1001
1019
|
});
|
|
1002
1020
|
return;
|
|
1003
1021
|
}
|
|
1004
|
-
throw
|
|
1022
|
+
throw A;
|
|
1005
1023
|
} finally {
|
|
1006
1024
|
m.value = !1;
|
|
1007
1025
|
}
|
|
1008
1026
|
}
|
|
1009
1027
|
async function F() {
|
|
1010
|
-
const v =
|
|
1028
|
+
const v = g("/review/google/callback"), { callbackUrl: w } = await G.getOauthUrl("google", v);
|
|
1011
1029
|
window.location.href = w;
|
|
1012
1030
|
}
|
|
1013
|
-
async function
|
|
1014
|
-
const v =
|
|
1031
|
+
async function R() {
|
|
1032
|
+
const v = g("/review/facebook/callback"), { callbackUrl: w } = await G.getOauthUrl("facebook", v);
|
|
1015
1033
|
window.location.href = w;
|
|
1016
1034
|
}
|
|
1017
|
-
return
|
|
1035
|
+
return L(() => {
|
|
1018
1036
|
x(), t.readLocations();
|
|
1019
1037
|
}), (v, w) => (n(), c("div", oo, [
|
|
1020
1038
|
e(r) ? (n(), c(D, { key: 0 }, [
|
|
1021
|
-
|
|
1039
|
+
f($, {
|
|
1022
1040
|
icon: e(oe),
|
|
1023
1041
|
name: "google",
|
|
1024
1042
|
connected: !!e(r).google,
|
|
@@ -1027,14 +1045,14 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
1027
1045
|
onConnect: F,
|
|
1028
1046
|
onSync: b
|
|
1029
1047
|
}, {
|
|
1030
|
-
default:
|
|
1031
|
-
var
|
|
1048
|
+
default: U(() => {
|
|
1049
|
+
var A;
|
|
1032
1050
|
return [
|
|
1033
|
-
(n(!0), c(D, null, V((
|
|
1051
|
+
(n(!0), c(D, null, V((A = e(r).google) == null ? void 0 : A.locations, (Y) => (n(), c("div", {
|
|
1034
1052
|
key: Y.googleLocationName,
|
|
1035
1053
|
class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
|
|
1036
1054
|
}, [
|
|
1037
|
-
|
|
1055
|
+
f(e(C).FmIcon, {
|
|
1038
1056
|
name: "location_on",
|
|
1039
1057
|
class: "text-fm-color-neutral-gray-300 shrink-0"
|
|
1040
1058
|
}),
|
|
@@ -1047,19 +1065,19 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
1047
1065
|
}),
|
|
1048
1066
|
_: 1
|
|
1049
1067
|
}, 8, ["icon", "connected", "syncing", "token-expired"]),
|
|
1050
|
-
|
|
1068
|
+
f($, {
|
|
1051
1069
|
icon: e(ee),
|
|
1052
1070
|
name: "facebook",
|
|
1053
1071
|
connected: !!e(r).facebook,
|
|
1054
1072
|
syncing: e(m),
|
|
1055
1073
|
"token-expired": e(y),
|
|
1056
|
-
onConnect:
|
|
1074
|
+
onConnect: R,
|
|
1057
1075
|
onSync: h
|
|
1058
1076
|
}, {
|
|
1059
|
-
default:
|
|
1060
|
-
var
|
|
1077
|
+
default: U(() => {
|
|
1078
|
+
var A;
|
|
1061
1079
|
return [
|
|
1062
|
-
(n(!0), c(D, null, V((
|
|
1080
|
+
(n(!0), c(D, null, V((A = e(r).facebook) == null ? void 0 : A.pages, (Y) => (n(), c("div", {
|
|
1063
1081
|
key: Y.facebookPageId,
|
|
1064
1082
|
class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
|
|
1065
1083
|
}, [
|
|
@@ -1067,7 +1085,7 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
1067
1085
|
key: 0,
|
|
1068
1086
|
src: Y.pageProfileImageUrl,
|
|
1069
1087
|
class: "w-10 h-10 rounded-full shrink-0 object-cover"
|
|
1070
|
-
}, null, 8, so)) : (n(), I(e(
|
|
1088
|
+
}, null, 8, so)) : (n(), I(e(C).FmIcon, {
|
|
1071
1089
|
key: 1,
|
|
1072
1090
|
name: "person",
|
|
1073
1091
|
class: "text-fm-color-neutral-gray-300 shrink-0"
|
|
@@ -1081,8 +1099,8 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
1081
1099
|
}),
|
|
1082
1100
|
_: 1
|
|
1083
1101
|
}, 8, ["icon", "connected", "syncing", "token-expired"])
|
|
1084
|
-
], 64)) : (n(), c(D, { key: 1 }, V(["google", "facebook"], (
|
|
1085
|
-
key:
|
|
1102
|
+
], 64)) : (n(), c(D, { key: 1 }, V(["google", "facebook"], (A) => o("div", {
|
|
1103
|
+
key: A,
|
|
1086
1104
|
class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white p-16"
|
|
1087
1105
|
}, [...w[0] || (w[0] = [
|
|
1088
1106
|
re('<div class="animate-pulse flex items-center gap-12"><div class="w-10 h-10 rounded-full bg-fm-color-neutral-gray-100 shrink-0"></div><div class="flex-1 min-w-0 space-y-8"><div class="h-16 w-20 rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-full max-w-[160px] rounded bg-fm-color-neutral-gray-100"></div></div><div class="h-32 w-24 rounded bg-fm-color-neutral-gray-100 shrink-0"></div></div>', 1)
|
|
@@ -1092,22 +1110,22 @@ const me = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-h
|
|
|
1092
1110
|
}), mo = { class: "flex flex-col" }, vo = { class: "px-24" }, Co = /* @__PURE__ */ B({
|
|
1093
1111
|
__name: "Review",
|
|
1094
1112
|
setup(l) {
|
|
1095
|
-
const { t: a } =
|
|
1113
|
+
const { t: a } = z(), s = [
|
|
1096
1114
|
{ label: a("connect.review.tabs.overview"), value: "overview" },
|
|
1097
1115
|
{ label: a("connect.review.tabs.settings"), value: "settings" }
|
|
1098
1116
|
], t = S(s[0]);
|
|
1099
1117
|
return (r, u) => {
|
|
1100
1118
|
const m = P("FmPageHead"), i = P("FmTabs");
|
|
1101
1119
|
return n(), c(D, null, [
|
|
1102
|
-
|
|
1120
|
+
f(m, {
|
|
1103
1121
|
title: e(a)("connect.navigation.review")
|
|
1104
1122
|
}, null, 8, ["title"]),
|
|
1105
1123
|
o("div", mo, [
|
|
1106
1124
|
o("div", vo, [
|
|
1107
|
-
|
|
1125
|
+
f(i, {
|
|
1108
1126
|
"model-value": e(t).value,
|
|
1109
1127
|
items: s,
|
|
1110
|
-
"onUpdate:modelValue": u[0] || (u[0] = (y) => t.value = s.find((
|
|
1128
|
+
"onUpdate:modelValue": u[0] || (u[0] = (y) => t.value = s.find((g) => g.value === y))
|
|
1111
1129
|
}, null, 8, ["model-value"])
|
|
1112
1130
|
]),
|
|
1113
1131
|
(n(), I(ie, null, [
|