@feedmepos/mf-report 5.33.3 → 5.34.0-beta.1
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-BgRqim5d.js → App-DyrakazI.js} +114 -113
- package/dist/{DateRangeSelect-XyU5XG5c.js → DateRangeSelect-D5SGi6ca.js} +67 -67
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CC7fE3F8.js → Default.vue_vue_type_script_setup_true_lang-DsTRZa_6.js} +3 -3
- package/dist/DigestListView-BnkDRa7x.js +876 -0
- package/dist/{DigestReaderView-DSNoAESE.js → DigestReaderView-ByISB4qT.js} +63 -63
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CsDiXGUk.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BKNNtuyG.js} +733 -733
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-D7Rsh-uY.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DHrnVaog.js} +526 -526
- package/dist/{InsightView-CF8mQJha.js → InsightView-CUBTqwTI.js} +88 -88
- package/dist/{Integration-QMdYwTwW.js → Integration-WDbqUebw.js} +30 -30
- package/dist/{Integrations-Dbx1ScOv.js → Integrations-C5_nERZt.js} +10 -10
- package/dist/{Layout-CgiplBHM.js → Layout-BqzoK8Mg.js} +3 -3
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-zW8JA7j3.js → LocationSelect.vue_vue_type_script_setup_true_lang-kvdk_gEw.js} +306 -306
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B0q9V1x8.js → MenuTab.vue_vue_type_script_setup_true_lang-B8uHS4bV.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BVWZ8vTw.js → NavigationTab.vue_vue_type_script_setup_true_lang-CpexikuB.js} +12784 -11760
- package/dist/{OverviewView-BbZ8WkLb.js → OverviewView-mOEI9DAV.js} +7 -7
- package/dist/{Report-BYi0pPZs.js → Report-DmbTzjbj.js} +12 -12
- package/dist/{ReportCanvasView-CfFtVomc.js → ReportCanvasView-BqZ38Tsk.js} +426 -426
- package/dist/{ReportEditor-BLEkGUVR.js → ReportEditor-8oAVfFdY.js} +32 -32
- package/dist/{ReportView-TG78Krm2.js → ReportView-B6nE3qwV.js} +13 -13
- package/dist/{ReportViewRoute-BUADf4Cr.js → ReportViewRoute-DqXbM93B.js} +5 -5
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
- package/dist/{Setting-Curkhv9_.js → Setting-C01x-O-V.js} +6 -6
- package/dist/{Template-BN_ds698.js → Template-VyBWHUXE.js} +80 -80
- package/dist/{TileEditor-Cfb0uXGr.js → TileEditor-DICyBR1o.js} +1566 -1566
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-1FKwWbpC.js → TilePageStack.vue_vue_type_script_setup_true_lang-Dyaao76o.js} +82 -82
- package/dist/{TransitionFade-D0_ZoB-O.js → TransitionFade-kXCDPEMQ.js} +170 -170
- package/dist/{XeroRedirect-CuTrP62C.js → XeroRedirect-D4sHbZe7.js} +3 -3
- package/dist/_plugin-vue_export-helper-Bx7s49ra.js +2828 -0
- package/dist/{app-LKjvcmXa.js → app-BQDKX7NB.js} +5688 -13890
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-DvK7K5ca.js → formatChartData.worker-Cpgnh20a.js} +62 -62
- package/dist/assets/{processTableData.worker-C3l4iUXL.js → processTableData.worker-B7I6PElJ.js} +64 -64
- package/dist/{chart-BywXiz4O.js → chart-DU0N9V2o.js} +7 -4
- package/dist/currency-8SmajsvB.js +12 -0
- package/dist/index-BQ8NJuCA.js +24722 -0
- package/dist/{report-Ci2ElGpp.js → report-CcXsPATD.js} +23 -23
- package/dist/style.css +1 -1
- package/dist/{useDigestFont-BxXC7U3d.js → useDigestFont-CjZZOIRM.js} +80 -80
- package/dist/{useReportCanvasPanel-BjmRiMSh.js → useReportCanvasPanel-dWlB_xvo.js} +975 -976
- package/dist/{useRestaurantPermission-DX52YBfA.js → useRestaurantPermission-D3G7ET0Z.js} +2 -2
- package/package.json +11 -11
- package/dist/DigestListView-Bqp4LA1w.js +0 -876
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js +0 -137
- package/dist/_plugin-vue_export-helper-C6QDExPN.js +0 -2718
- package/dist/currency-DFN_8rRJ.js +0 -12
- package/dist/index-xdTpLFHc.js +0 -25511
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as _e, ref as
|
|
2
|
-
import { useRoute as mt, useRouter as
|
|
1
|
+
import { defineComponent as _e, ref as f, watch as W, onMounted as be, nextTick as ct, resolveComponent as z, openBlock as m, createElementBlock as _, createElementVNode as b, unref as a, createVNode as P, createCommentVNode as C, computed as k, onBeforeUnmount as dt, createBlock as R, withCtx as j, createSlots as pt, toDisplayString as L, normalizeClass as he } from "vue";
|
|
2
|
+
import { useRoute as mt, useRouter as vt } from "vue-router";
|
|
3
3
|
import { useI18n as xe } from "@feedmepos/mf-common";
|
|
4
|
-
import { useBreakpoints as
|
|
5
|
-
import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as ke } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as ht, a as kt, R as wt, b as yt, c as _t, d as bt, e as xt } from "./useReportCanvasPanel-
|
|
8
|
-
import { b as Ct, d as St, a as Vt, _ as Rt, D as Pt } from "./useDigestFont-
|
|
9
|
-
import { f as Tt, n as Et, o as It, A as we } from "./app-
|
|
10
|
-
import { _ as At } from "./_plugin-vue_export-helper-
|
|
4
|
+
import { useBreakpoints as ft } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as gt } from "./Default.vue_vue_type_script_setup_true_lang-DsTRZa_6.js";
|
|
6
|
+
import { _ as ke } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js";
|
|
7
|
+
import { u as ht, a as kt, R as wt, b as yt, c as _t, d as bt, e as xt } from "./useReportCanvasPanel-dWlB_xvo.js";
|
|
8
|
+
import { b as Ct, d as St, a as Vt, _ as Rt, D as Pt } from "./useDigestFont-CjZZOIRM.js";
|
|
9
|
+
import { f as Tt, n as Et, o as It, A as we } from "./app-BQDKX7NB.js";
|
|
10
|
+
import { _ as At } from "./_plugin-vue_export-helper-Bx7s49ra.js";
|
|
11
11
|
const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "title"], Bt = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
@@ -21,15 +21,15 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["select", "area", "cancel"],
|
|
23
23
|
setup(ee, { emit: n }) {
|
|
24
|
-
const O = { MYR: "RM" }, w = ee, T = n, { t: K } = xe(), I =
|
|
24
|
+
const O = { MYR: "RM" }, w = ee, T = n, { t: K } = xe(), I = f(), S = f(!1), c = {
|
|
25
25
|
reportId: `digest-${w.digest.weekStart}`,
|
|
26
26
|
version: 1,
|
|
27
27
|
state: "published",
|
|
28
28
|
canEdit: !1,
|
|
29
29
|
hostFilters: !1,
|
|
30
30
|
...w.digest.canvas
|
|
31
|
-
}, y = ht(
|
|
32
|
-
|
|
31
|
+
}, y = ht(c.reportId, { frozen: w.digest.rows }), A = new Set(
|
|
32
|
+
c.sections.flatMap((o) => {
|
|
33
33
|
var l;
|
|
34
34
|
const i = (l = o.config) == null ? void 0 : l.href;
|
|
35
35
|
return o.component === "digest-idea" && typeof i == "string" ? [i] : [];
|
|
@@ -57,9 +57,9 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
57
57
|
return y.onResult((o) => x.pushRows(o)), y.onParamsChanged(() => x.pushParams(y.paramState())), W([() => w.commentMode, () => w.picked, x.ready], () => {
|
|
58
58
|
x.setCommentMode(!!w.commentMode, w.picked ?? [], !0);
|
|
59
59
|
}), be(async () => {
|
|
60
|
-
y.load(
|
|
60
|
+
y.load(c), await ct();
|
|
61
61
|
const o = y.env();
|
|
62
|
-
await x.init(
|
|
62
|
+
await x.init(c.sections, y.paramState(), {
|
|
63
63
|
...o,
|
|
64
64
|
currency: w.digest.money || O[o.currency] || o.currency,
|
|
65
65
|
digest: !0,
|
|
@@ -115,11 +115,11 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
115
115
|
__name: "DigestReaderView",
|
|
116
116
|
setup(ee) {
|
|
117
117
|
var pe;
|
|
118
|
-
const { t: n, locale: O } = xe(), { breakpoints: w } =
|
|
119
|
-
W([
|
|
118
|
+
const { t: n, locale: O } = xe(), { breakpoints: w } = ft(), T = mt(), K = vt(), I = Tt(), S = k(() => String(T.params.weekStart ?? "")), c = f(), y = f(!0), A = f(""), x = f(!1), o = f(!1), i = f(!1), l = f(""), te = f(""), M = f(!1), v = f(!1), Q = f(!1), ae = k(() => v.value && !Q.value), { root: Ce, drawer: Se, docked: X, modal: Z } = yt(i, ae);
|
|
119
|
+
W([v, i], ([e, t]) => {
|
|
120
120
|
(!e || !t) && (Q.value = !1);
|
|
121
121
|
});
|
|
122
|
-
const q =
|
|
122
|
+
const q = f([]), F = f([]), r = k({
|
|
123
123
|
get: () => M.value ? q.value : F.value,
|
|
124
124
|
set: (e) => {
|
|
125
125
|
M.value ? q.value = e : F.value = e;
|
|
@@ -138,7 +138,7 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
138
138
|
})
|
|
139
139
|
), U = k(() => {
|
|
140
140
|
var e;
|
|
141
|
-
return ((e =
|
|
141
|
+
return ((e = c.value) == null ? void 0 : e.canvas.sections) ?? [];
|
|
142
142
|
}), se = k(
|
|
143
143
|
() => N.value.some(
|
|
144
144
|
(e) => !U.value.some(
|
|
@@ -151,11 +151,11 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
151
151
|
const s = e.config ?? {}, u = s.title ?? s.headline;
|
|
152
152
|
if (typeof u == "string" && u) return u;
|
|
153
153
|
if (e.component === "digest-kpis") return n("reportV5.digest.ask.tiles");
|
|
154
|
-
const p = U.value.slice(0, t).reverse().find((
|
|
154
|
+
const p = U.value.slice(0, t).reverse().find((d) => d.component === "digest-chapter");
|
|
155
155
|
return e.component === "digest-text" && typeof ((h = p == null ? void 0 : p.config) == null ? void 0 : h.title) == "string" ? p.config.title : n("reportV5.digest.ask.part", { number: t + 1 });
|
|
156
156
|
}
|
|
157
157
|
function H() {
|
|
158
|
-
r.value = [],
|
|
158
|
+
r.value = [], v.value = !1;
|
|
159
159
|
}
|
|
160
160
|
function Te(e) {
|
|
161
161
|
const t = r.value[e];
|
|
@@ -165,9 +165,9 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
165
165
|
r.value = r.value.filter(($, E) => E !== e);
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
const { element: u, ...p } = s, [h, ...
|
|
168
|
+
const { element: u, ...p } = s, [h, ...d] = t.widen, G = h ? { ...p, element: h, elementText: h.text ?? "", elementTag: h.tag } : p;
|
|
169
169
|
r.value = r.value.map(
|
|
170
|
-
($, E) => E === e ? { targets: [G], widen:
|
|
170
|
+
($, E) => E === e ? { targets: [G], widen: d } : $
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
function ne(e) {
|
|
@@ -176,11 +176,11 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
176
176
|
return { ...e, label: e.label || Pe(s, t) };
|
|
177
177
|
}
|
|
178
178
|
function Ee(e, t) {
|
|
179
|
-
var s, u, p, h,
|
|
180
|
-
return e.sectionId === t.sectionId && ((s = e.element) == null ? void 0 : s.part) === ((u = t.element) == null ? void 0 : u.part) && (((p = e.element) == null ? void 0 : p.path) ?? []).join(".") === (((h = t.element) == null ? void 0 : h.path) ?? []).join(".") && ((G = (
|
|
179
|
+
var s, u, p, h, d, G, $, E, me, ve, fe, ge;
|
|
180
|
+
return e.sectionId === t.sectionId && ((s = e.element) == null ? void 0 : s.part) === ((u = t.element) == null ? void 0 : u.part) && (((p = e.element) == null ? void 0 : p.path) ?? []).join(".") === (((h = t.element) == null ? void 0 : h.path) ?? []).join(".") && ((G = (d = e.element) == null ? void 0 : d.datum) == null ? void 0 : G.datasetIndex) === ((E = ($ = t.element) == null ? void 0 : $.datum) == null ? void 0 : E.datasetIndex) && ((ve = (me = e.element) == null ? void 0 : me.datum) == null ? void 0 : ve.index) === ((ge = (fe = t.element) == null ? void 0 : fe.datum) == null ? void 0 : ge.index);
|
|
181
181
|
}
|
|
182
182
|
function Ie(e, t) {
|
|
183
|
-
if (!
|
|
183
|
+
if (!v.value || V.value) return;
|
|
184
184
|
const s = ne(e);
|
|
185
185
|
if (!s) return;
|
|
186
186
|
const u = r.value.findIndex(
|
|
@@ -189,20 +189,20 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
189
189
|
u >= 0 ? r.value = r.value.filter((p, h) => h !== u) : N.value.length < ye && (r.value = [...r.value, { targets: [s], widen: t }]), i.value = !0;
|
|
190
190
|
}
|
|
191
191
|
function Ae(e) {
|
|
192
|
-
if (!
|
|
192
|
+
if (!v.value || V.value) return;
|
|
193
193
|
const t = e.map(ne);
|
|
194
194
|
!t.length || !t.every((s) => !!s) || N.value.length + t.length > ye || (r.value = [...r.value, { targets: t, widen: [] }], i.value = !0);
|
|
195
195
|
}
|
|
196
196
|
const Me = ((pe = window.matchMedia) == null ? void 0 : pe.call(window, "(pointer: coarse)").matches) ?? !1;
|
|
197
197
|
function Fe() {
|
|
198
|
-
if (
|
|
199
|
-
|
|
198
|
+
if (v.value) return H();
|
|
199
|
+
v.value = !0, i.value = !0;
|
|
200
200
|
}
|
|
201
201
|
function Be() {
|
|
202
202
|
Q.value = !0, i.value = !0;
|
|
203
203
|
}
|
|
204
204
|
function oe(e) {
|
|
205
|
-
e.key === "Escape" &&
|
|
205
|
+
e.key === "Escape" && v.value && H();
|
|
206
206
|
}
|
|
207
207
|
const g = _t(bt(S.value)), {
|
|
208
208
|
messages: De,
|
|
@@ -242,23 +242,23 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
242
242
|
H();
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
async function
|
|
245
|
+
async function ce(e) {
|
|
246
246
|
g.stashDraft(
|
|
247
247
|
l.value,
|
|
248
248
|
F.value.flatMap((s) => s.targets)
|
|
249
249
|
), await e();
|
|
250
250
|
const t = g.recallDraft();
|
|
251
|
-
l.value = t.text, F.value = B(t.targets),
|
|
251
|
+
l.value = t.text, F.value = B(t.targets), v.value = !1;
|
|
252
252
|
}
|
|
253
253
|
async function tt(e) {
|
|
254
254
|
if (le.value) return;
|
|
255
255
|
const t = e ? [...q.value] : [];
|
|
256
256
|
let s = !1;
|
|
257
|
-
await
|
|
257
|
+
await ce(async () => {
|
|
258
258
|
s = await g.startChat();
|
|
259
259
|
}), s && e && (M.value = !1, F.value = t, q.value = [], l.value = e, await Y());
|
|
260
260
|
}
|
|
261
|
-
const at = (e) =>
|
|
261
|
+
const at = (e) => ce(() => g.select(e));
|
|
262
262
|
function st(e) {
|
|
263
263
|
const t = g.takeUnsent(e);
|
|
264
264
|
if (t)
|
|
@@ -278,9 +278,9 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
278
278
|
return l.value = t.text, r.value = B(t.targets), Y();
|
|
279
279
|
}
|
|
280
280
|
const D = k(
|
|
281
|
-
() =>
|
|
281
|
+
() => c.value ? St(c.value.weekStart, c.value.weekEnd, O.value) : ""
|
|
282
282
|
), it = k(() => {
|
|
283
|
-
const e =
|
|
283
|
+
const e = c.value;
|
|
284
284
|
if (!e) return "";
|
|
285
285
|
const t = [
|
|
286
286
|
n("reportV5.digest.published", {
|
|
@@ -291,7 +291,7 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
291
291
|
}), lt = k(
|
|
292
292
|
() => {
|
|
293
293
|
var e;
|
|
294
|
-
return (((e =
|
|
294
|
+
return (((e = c.value) == null ? void 0 : e.canvas.sections) ?? []).filter(
|
|
295
295
|
(t) => {
|
|
296
296
|
var s;
|
|
297
297
|
return t.component === "digest-chapter" && typeof ((s = t.config) == null ? void 0 : s.title) == "string";
|
|
@@ -302,7 +302,7 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
302
302
|
return { label: s, prompt: n("reportV5.digest.ask.about", { title: s }) };
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
),
|
|
305
|
+
), de = k(() => ({
|
|
306
306
|
title: n("reportV5.digest.ask.title"),
|
|
307
307
|
welcome: n("reportV5.digest.ask.welcome"),
|
|
308
308
|
hint: n("reportV5.digest.ask.hint", { subject: D.value }),
|
|
@@ -320,7 +320,7 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
320
320
|
return be(async () => {
|
|
321
321
|
window.addEventListener("keydown", oe);
|
|
322
322
|
try {
|
|
323
|
-
|
|
323
|
+
c.value = await Et(S.value), It(S.value).catch(() => {
|
|
324
324
|
});
|
|
325
325
|
} catch (e) {
|
|
326
326
|
e instanceof we && e.status === 403 ? x.value = !0 : e instanceof we && e.status === 404 ? o.value = !0 : A.value = e instanceof Error ? e.message : String(e);
|
|
@@ -329,7 +329,7 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
329
329
|
}
|
|
330
330
|
I.subscription || await I.loadSubscription().catch(() => {
|
|
331
331
|
});
|
|
332
|
-
}),
|
|
332
|
+
}), dt(() => window.removeEventListener("keydown", oe)), (e, t) => {
|
|
333
333
|
const s = z("FmTooltip"), u = z("FmPageHead"), p = z("FmButton"), h = z("FmCircularProgress");
|
|
334
334
|
return m(), R(gt, null, {
|
|
335
335
|
default: j(() => [
|
|
@@ -364,16 +364,16 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
364
364
|
a(w).lg || a(w).md ? {
|
|
365
365
|
name: "append",
|
|
366
366
|
fn: j(() => [
|
|
367
|
-
|
|
367
|
+
c.value ? (m(), R(Rt, { key: 0 })) : C("", !0)
|
|
368
368
|
]),
|
|
369
369
|
key: "0"
|
|
370
370
|
} : void 0
|
|
371
371
|
]), 1032, ["title"]),
|
|
372
|
-
|
|
372
|
+
c.value ? (m(), _("div", Lt, [
|
|
373
373
|
b("span", zt, L(a(n)("reportV5.digest.card.weekly")), 1),
|
|
374
374
|
b("span", Ot, L(it.value), 1),
|
|
375
375
|
t[9] || (t[9] = b("span", { class: "grow" }, null, -1)),
|
|
376
|
-
|
|
376
|
+
v.value && r.value.length && !a(X) ? (m(), R(p, {
|
|
377
377
|
key: 0,
|
|
378
378
|
"data-testid": "digest-ask-picked",
|
|
379
379
|
variant: "tertiary",
|
|
@@ -381,16 +381,16 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
381
381
|
"prepend-icon": "auto_awesome",
|
|
382
382
|
label: a(n)("reportV5.digest.ask.askPicked"),
|
|
383
383
|
onClick: Be
|
|
384
|
-
}, null, 8, ["label"])) :
|
|
384
|
+
}, null, 8, ["label"])) : v.value ? (m(), _("span", qt, L(r.value.length ? a(n)("reportV5.digest.ask.picked", { count: r.value.length }) : a(n)(a(Me) ? "reportV5.digest.ask.pickingTouch" : "reportV5.digest.ask.picking")), 1)) : C("", !0),
|
|
385
385
|
P(s, {
|
|
386
386
|
placement: "bottom",
|
|
387
|
-
content:
|
|
387
|
+
content: v.value ? a(n)("reportV5.reportAi.chat.cancelSelection") : a(n)("reportV5.digest.ask.comment")
|
|
388
388
|
}, {
|
|
389
389
|
default: j(() => [
|
|
390
390
|
b("button", {
|
|
391
391
|
"data-testid": "digest-comment-toggle",
|
|
392
|
-
class: he(["digest-comment flex h-32 w-32 items-center justify-center rounded-md text-fm-color-typo-secondary disabled:opacity-50",
|
|
393
|
-
"aria-pressed":
|
|
392
|
+
class: he(["digest-comment flex h-32 w-32 items-center justify-center rounded-md text-fm-color-typo-secondary disabled:opacity-50", v.value && "bg-fm-color-neutral-gray-100 text-fm-color-primary"]),
|
|
393
|
+
"aria-pressed": v.value,
|
|
394
394
|
"aria-label": a(n)("reportV5.digest.ask.comment"),
|
|
395
395
|
disabled: V.value,
|
|
396
396
|
onClick: Fe
|
|
@@ -398,7 +398,7 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
398
398
|
(m(), _("svg", Ut, [
|
|
399
399
|
b("path", {
|
|
400
400
|
d: "M5 3.5h5a6.5 6.5 0 1 1-6.5 6.5V5A1.5 1.5 0 0 1 5 3.5Z",
|
|
401
|
-
fill:
|
|
401
|
+
fill: v.value ? "currentColor" : "none",
|
|
402
402
|
stroke: "currentColor",
|
|
403
403
|
"stroke-width": "1.5",
|
|
404
404
|
"stroke-linecap": "round",
|
|
@@ -415,7 +415,7 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
415
415
|
variant: "tertiary",
|
|
416
416
|
"prepend-icon": "auto_awesome",
|
|
417
417
|
label: a(n)("reportV5.digest.ask.title"),
|
|
418
|
-
onClick: t[0] || (t[0] = (
|
|
418
|
+
onClick: t[0] || (t[0] = (d) => i.value = !0)
|
|
419
419
|
}, null, 8, ["label"]))
|
|
420
420
|
])) : C("", !0),
|
|
421
421
|
x.value ? (m(), R(ke, {
|
|
@@ -429,15 +429,15 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
429
429
|
"sub-title": a(n)("reportV5.digest.missingBody")
|
|
430
430
|
}, null, 8, ["title", "sub-title"])) : A.value ? (m(), _("p", Yt, L(A.value), 1)) : y.value ? (m(), _("div", Gt, [
|
|
431
431
|
P(h, { size: "xl" })
|
|
432
|
-
])) :
|
|
432
|
+
])) : c.value ? (m(), _("div", Kt, [
|
|
433
433
|
P(Pt, {
|
|
434
434
|
"hide-subscribed": "",
|
|
435
435
|
class: "m-16 shrink-0"
|
|
436
436
|
}),
|
|
437
437
|
(m(), R(Dt, {
|
|
438
|
-
key: `${
|
|
439
|
-
digest:
|
|
440
|
-
"comment-mode":
|
|
438
|
+
key: `${c.value.weekStart}:${c.value.createdAt}`,
|
|
439
|
+
digest: c.value,
|
|
440
|
+
"comment-mode": v.value && !V.value,
|
|
441
441
|
picked: Ve.value,
|
|
442
442
|
onSelect: Ie,
|
|
443
443
|
onArea: Ae,
|
|
@@ -448,9 +448,9 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
448
448
|
a(Z) ? (m(), _("div", {
|
|
449
449
|
key: 0,
|
|
450
450
|
class: "digest-scrim absolute inset-0 z-20",
|
|
451
|
-
onClick: t[1] || (t[1] = (
|
|
451
|
+
onClick: t[1] || (t[1] = (d) => i.value = !1)
|
|
452
452
|
})) : C("", !0),
|
|
453
|
-
i.value &&
|
|
453
|
+
i.value && c.value && (a(X) || !ae.value) ? (m(), _("div", {
|
|
454
454
|
key: 1,
|
|
455
455
|
ref_key: "drawer",
|
|
456
456
|
ref: Se,
|
|
@@ -460,13 +460,13 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
460
460
|
),
|
|
461
461
|
role: a(Z) ? "dialog" : void 0,
|
|
462
462
|
"aria-modal": a(Z) ? "true" : void 0,
|
|
463
|
-
"aria-label":
|
|
463
|
+
"aria-label": de.value.title
|
|
464
464
|
}, [
|
|
465
465
|
P(xt, {
|
|
466
466
|
"home-draft": te.value,
|
|
467
|
-
"onUpdate:homeDraft": t[2] || (t[2] = (
|
|
467
|
+
"onUpdate:homeDraft": t[2] || (t[2] = (d) => te.value = d),
|
|
468
468
|
"home-open": M.value,
|
|
469
|
-
"onUpdate:homeOpen": t[3] || (t[3] = (
|
|
469
|
+
"onUpdate:homeOpen": t[3] || (t[3] = (d) => M.value = d),
|
|
470
470
|
messages: a(De),
|
|
471
471
|
draft: l.value,
|
|
472
472
|
targets: Re.value,
|
|
@@ -497,21 +497,21 @@ const Mt = { class: "relative flex min-h-0 grow flex-col" }, Ft = ["srcdoc", "ti
|
|
|
497
497
|
stopping: a(Qe),
|
|
498
498
|
earlier: a(qe),
|
|
499
499
|
"loading-earlier": a(Ne),
|
|
500
|
-
copy:
|
|
500
|
+
copy: de.value,
|
|
501
501
|
starters: lt.value,
|
|
502
|
-
"onUpdate:draft": t[4] || (t[4] = (
|
|
502
|
+
"onUpdate:draft": t[4] || (t[4] = (d) => l.value = d),
|
|
503
503
|
onClearTarget: Te,
|
|
504
504
|
onSubmit: Y,
|
|
505
|
-
onClose: t[5] || (t[5] = (
|
|
505
|
+
onClose: t[5] || (t[5] = (d) => i.value = !1),
|
|
506
506
|
onResend: st,
|
|
507
507
|
onAskAgain: rt,
|
|
508
508
|
onEditRequest: ot,
|
|
509
509
|
onStop: nt,
|
|
510
510
|
onNewChat: tt,
|
|
511
511
|
onSelectChat: at,
|
|
512
|
-
onLoadChats: t[6] || (t[6] = (
|
|
513
|
-
onLoadMoreChats: t[7] || (t[7] = (
|
|
514
|
-
onLoadEarlier: t[8] || (t[8] = (
|
|
512
|
+
onLoadChats: t[6] || (t[6] = (d) => a(g).loadChats()),
|
|
513
|
+
onLoadMoreChats: t[7] || (t[7] = (d) => a(g).loadChats(a(re) ?? void 0)),
|
|
514
|
+
onLoadEarlier: t[8] || (t[8] = (d) => a(g).loadEarlier())
|
|
515
515
|
}, null, 8, ["home-draft", "home-open", "messages", "draft", "targets", "target-stale", "streaming", "turn-id", "phase", "slow", "started-at", "error", "interrupted", "unsent-ids", "no-reply-id", "chat-id", "chat-title", "chats", "chats-cursor", "chats-loading", "chats-error", "switching", "busy", "stoppable", "stopping", "earlier", "loading-earlier", "copy", "starters"])
|
|
516
516
|
], 10, Qt)) : C("", !0)
|
|
517
517
|
], 512)
|