@conboai/app.db.query 0.4.54 → 0.4.56
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.db.query.js +71 -47
- package/package.json +1 -1
package/dist/app.db.query.js
CHANGED
|
@@ -115627,28 +115627,37 @@ const GT = () => ({
|
|
|
115627
115627
|
},
|
|
115628
115628
|
getDetectionsInfo: async ({ conboKey: t }) => {
|
|
115629
115629
|
e({ isDetectionFailed: !1 });
|
|
115630
|
+
const n = Sn.getState().selectedTabId;
|
|
115630
115631
|
try {
|
|
115631
|
-
const
|
|
115632
|
+
const r = await s4.detectionsControllerGetDetectionsInfo(
|
|
115632
115633
|
t
|
|
115633
|
-
)
|
|
115634
|
-
|
|
115634
|
+
);
|
|
115635
|
+
r.count === 0 ? e((o) => ({
|
|
115636
|
+
frameDetailsData: {
|
|
115637
|
+
...o.frameDetailsData,
|
|
115638
|
+
[n]: {}
|
|
115639
|
+
},
|
|
115635
115640
|
isDetectionFailed: !0
|
|
115636
|
-
}) : e((o) => ({
|
|
115641
|
+
})) : e((o) => ({
|
|
115637
115642
|
conboKeySearchData: {
|
|
115638
115643
|
...o.conboKeySearchData,
|
|
115639
|
-
[
|
|
115644
|
+
[n]: r
|
|
115640
115645
|
},
|
|
115641
115646
|
isDetectionFailed: !1
|
|
115642
115647
|
}));
|
|
115643
|
-
} catch (
|
|
115644
|
-
return console.log(
|
|
115648
|
+
} catch (r) {
|
|
115649
|
+
return console.log(r), e((o) => ({
|
|
115645
115650
|
error: "Something went wrong",
|
|
115646
115651
|
conboKeySearchData: {},
|
|
115647
115652
|
data: [],
|
|
115648
115653
|
frameDetails: [],
|
|
115649
115654
|
trailDetails: [],
|
|
115655
|
+
frameDetailsData: {
|
|
115656
|
+
...o.frameDetailsData,
|
|
115657
|
+
[n]: {}
|
|
115658
|
+
},
|
|
115650
115659
|
isDetectionFailed: !0
|
|
115651
|
-
}), {
|
|
115660
|
+
})), {
|
|
115652
115661
|
sites: [],
|
|
115653
115662
|
totalCount: 0
|
|
115654
115663
|
};
|
|
@@ -115674,20 +115683,24 @@ function cY({
|
|
|
115674
115683
|
getTabValueLabelsAndSubLabels: t
|
|
115675
115684
|
}) {
|
|
115676
115685
|
var L, O, M, w;
|
|
115677
|
-
const { classifiersFrameInfo: n } = _f(), {
|
|
115678
|
-
|
|
115679
|
-
|
|
115680
|
-
|
|
115681
|
-
|
|
115682
|
-
|
|
115683
|
-
|
|
115684
|
-
|
|
115686
|
+
const { classifiersFrameInfo: n } = _f(), {
|
|
115687
|
+
selectedTableItemId: r,
|
|
115688
|
+
tagFamilyValueLabel: o,
|
|
115689
|
+
tagFamilyValueSubLabel: i,
|
|
115690
|
+
frameDetails: s
|
|
115691
|
+
} = Sn(_o), {
|
|
115692
|
+
topOne: a,
|
|
115693
|
+
pixelGeo: c,
|
|
115694
|
+
geo: d,
|
|
115695
|
+
snapshots: h,
|
|
115696
|
+
cropped: p,
|
|
115697
|
+
detailsLoading: m,
|
|
115685
115698
|
classifierSummary: v
|
|
115686
115699
|
} = Es(), [b, g] = He(!1);
|
|
115687
115700
|
Ae(() => {
|
|
115688
115701
|
r !== -1 && g(!0);
|
|
115689
115702
|
}, [r]);
|
|
115690
|
-
const y = uf(
|
|
115703
|
+
const y = uf(h, e), T = uf(p || [], e), C = s.find(
|
|
115691
115704
|
(R) => R.id === r
|
|
115692
115705
|
), S = () => navigator.clipboard.writeText(C.conbo_key), E = Un(
|
|
115693
115706
|
() => ({
|
|
@@ -115695,7 +115708,7 @@ function cY({
|
|
|
115695
115708
|
objectImages: T,
|
|
115696
115709
|
isFirstPage: b,
|
|
115697
115710
|
setIsFirstPage: g,
|
|
115698
|
-
isLoading:
|
|
115711
|
+
isLoading: m === "pending"
|
|
115699
115712
|
}),
|
|
115700
115713
|
[
|
|
115701
115714
|
r,
|
|
@@ -115707,32 +115720,32 @@ function cY({
|
|
|
115707
115720
|
y,
|
|
115708
115721
|
T
|
|
115709
115722
|
), D = tP({
|
|
115710
|
-
polylineProps: (L =
|
|
115723
|
+
polylineProps: (L = d == null ? void 0 : d.geometry) == null ? void 0 : L.coordinates,
|
|
115711
115724
|
trailProps: {
|
|
115712
|
-
coordinates: (O =
|
|
115725
|
+
coordinates: (O = c == null ? void 0 : c.geometry) == null ? void 0 : O.coordinates,
|
|
115713
115726
|
url: y[0]
|
|
115714
115727
|
},
|
|
115715
|
-
isLoading:
|
|
115728
|
+
isLoading: m === "pending"
|
|
115716
115729
|
}), N = nP(
|
|
115717
|
-
(M =
|
|
115718
|
-
(w =
|
|
115730
|
+
(M = d == null ? void 0 : d.geometry) == null ? void 0 : M.coordinates,
|
|
115731
|
+
(w = c == null ? void 0 : c.geometry) == null ? void 0 : w.coordinates
|
|
115719
115732
|
), j = Un(
|
|
115720
115733
|
() => oNe({
|
|
115721
115734
|
getTabValueLabelsAndSubLabels: t,
|
|
115722
115735
|
selectedTableItemId: r,
|
|
115723
|
-
topOne:
|
|
115736
|
+
topOne: a,
|
|
115724
115737
|
classifiersFrameInfo: n,
|
|
115725
115738
|
classifierSummary: v,
|
|
115726
|
-
isLoading:
|
|
115739
|
+
isLoading: m === "pending"
|
|
115727
115740
|
}),
|
|
115728
115741
|
[
|
|
115729
115742
|
v,
|
|
115730
115743
|
n,
|
|
115731
|
-
|
|
115744
|
+
m,
|
|
115732
115745
|
r,
|
|
115733
115746
|
o,
|
|
115734
115747
|
i,
|
|
115735
|
-
|
|
115748
|
+
a
|
|
115736
115749
|
]
|
|
115737
115750
|
), $ = iNe();
|
|
115738
115751
|
return /* @__PURE__ */ Re.jsx(vt, { bgcolor: "#F5F6FA", height: "100%", sx: { overflowY: "auto" }, pb: "20px", children: /* @__PURE__ */ Re.jsx(XM, { children: C != null && C.conbo_key ? /* @__PURE__ */ Re.jsxs(Re.Fragment, { children: [
|
|
@@ -120276,7 +120289,7 @@ function mY({ baseUrl: e = "" }) {
|
|
|
120276
120289
|
), gt.add(ze);
|
|
120277
120290
|
}), ie.current.set(d, gt), Z((ze) => ze + 1));
|
|
120278
120291
|
}, [ne, lF.isEqual, Se, d]), Ae(() => {
|
|
120279
|
-
if (ae.length
|
|
120292
|
+
if (ae.length) {
|
|
120280
120293
|
const Ht = [...Se()].filter(
|
|
120281
120294
|
(ze) => ae.some((Ye) => Ye.id === ze.id)
|
|
120282
120295
|
), Te = Ht == null ? void 0 : Ht.filter(
|
|
@@ -120289,15 +120302,17 @@ function mY({ baseUrl: e = "" }) {
|
|
|
120289
120302
|
ue(ze);
|
|
120290
120303
|
} else
|
|
120291
120304
|
ue(Te);
|
|
120292
|
-
}
|
|
120293
|
-
|
|
120305
|
+
}
|
|
120306
|
+
(k || !g.length) && ue([]);
|
|
120294
120307
|
}, [
|
|
120295
120308
|
ae,
|
|
120296
120309
|
S,
|
|
120297
120310
|
p,
|
|
120298
120311
|
m,
|
|
120299
120312
|
ee,
|
|
120300
|
-
Se
|
|
120313
|
+
Se,
|
|
120314
|
+
k,
|
|
120315
|
+
g.length
|
|
120301
120316
|
]);
|
|
120302
120317
|
const we = Gt(
|
|
120303
120318
|
(gt, Ht) => {
|
|
@@ -120487,7 +120502,7 @@ function mY({ baseUrl: e = "" }) {
|
|
|
120487
120502
|
K(!1), _(null), B(null);
|
|
120488
120503
|
}, _n = Gt(
|
|
120489
120504
|
(gt) => {
|
|
120490
|
-
v && c("shouldFetchCheckboxes", !1),
|
|
120505
|
+
v && c("shouldFetchCheckboxes", !1), n({
|
|
120491
120506
|
timeInfo: gt.captureTime,
|
|
120492
120507
|
assignedFeedId: gt.assignedFeedId,
|
|
120493
120508
|
orderBy: "id:asc"
|
|
@@ -120881,29 +120896,31 @@ const wNe = ({ baseUrl: e = "" }) => {
|
|
|
120881
120896
|
clearTrailDetailsData: s,
|
|
120882
120897
|
isDetectionFailed: a,
|
|
120883
120898
|
snapshotsData: c
|
|
120884
|
-
} = Es(), [d] = Sn((
|
|
120899
|
+
} = Es(), [d] = Sn((T) => [T.editTabData]), {
|
|
120885
120900
|
shouldFetchData: h,
|
|
120886
120901
|
feedId: p,
|
|
120887
120902
|
id: m,
|
|
120888
120903
|
currentSliderIndex: v,
|
|
120889
|
-
shouldFetchFrameDetails: b
|
|
120904
|
+
shouldFetchFrameDetails: b,
|
|
120905
|
+
isNewTab: g,
|
|
120906
|
+
frameDetails: y
|
|
120890
120907
|
} = Sn(_o);
|
|
120891
120908
|
return Ae(() => {
|
|
120892
|
-
var
|
|
120893
|
-
!a && ((
|
|
120894
|
-
startDate: (
|
|
120895
|
-
endDate: (
|
|
120896
|
-
assignedFeedId: (
|
|
120909
|
+
var T, C, S, E;
|
|
120910
|
+
!a && ((T = r[m]) != null && T.start_time) && o({
|
|
120911
|
+
startDate: (C = r[m]) == null ? void 0 : C.start_time,
|
|
120912
|
+
endDate: (S = r[m]) == null ? void 0 : S.end_time,
|
|
120913
|
+
assignedFeedId: (E = r[m]) == null ? void 0 : E.assigned_feed
|
|
120897
120914
|
});
|
|
120898
120915
|
}, [r, o, m, a]), Ae(() => {
|
|
120899
|
-
var
|
|
120900
|
-
if ((
|
|
120901
|
-
const
|
|
120916
|
+
var T, C, S, E, x;
|
|
120917
|
+
if ((T = c[m]) != null && T.length && !a && ((C = r[m]) != null && C.assigned_feed) && b) {
|
|
120918
|
+
const k = (S = c[m]) != null && S.length ? (E = c[m][v]) == null ? void 0 : E.captureTime : "";
|
|
120902
120919
|
n({
|
|
120903
|
-
timeInfo:
|
|
120904
|
-
assignedFeedId: (
|
|
120920
|
+
timeInfo: k,
|
|
120921
|
+
assignedFeedId: (x = r[m]) == null ? void 0 : x.assigned_feed,
|
|
120905
120922
|
orderBy: "id:asc"
|
|
120906
|
-
}), d("shouldFetchData", !1), d("shouldClearData", !0);
|
|
120923
|
+
}), d("shouldFetchData", !1), d("shouldClearData", !0), d("shouldFetchFrameDetails", !1);
|
|
120907
120924
|
}
|
|
120908
120925
|
}, [
|
|
120909
120926
|
n,
|
|
@@ -120918,8 +120935,15 @@ const wNe = ({ baseUrl: e = "" }) => {
|
|
|
120918
120935
|
b,
|
|
120919
120936
|
v
|
|
120920
120937
|
]), Ae(() => {
|
|
120921
|
-
a && (i(), s(), d("shouldClearData", !1), d("selectedTableItemId", -1));
|
|
120922
|
-
}, [
|
|
120938
|
+
(a && !(y != null && y.length) || g) && (i(), s(), d("shouldClearData", !1), d("selectedTableItemId", -1));
|
|
120939
|
+
}, [
|
|
120940
|
+
g,
|
|
120941
|
+
i,
|
|
120942
|
+
d,
|
|
120943
|
+
s,
|
|
120944
|
+
a,
|
|
120945
|
+
y.length
|
|
120946
|
+
]), gY(), /* @__PURE__ */ Re.jsx(mY, { baseUrl: e });
|
|
120923
120947
|
};
|
|
120924
120948
|
cb.setLicenseKey(
|
|
120925
120949
|
"57aa5ee5af3421c2b2bbf10d101fee0fTz05NDI1NSxFPTE3NTI1ODIyNDUwMDAsUz1wcm8sTE09c3Vic2NyaXB0aW9uLEtWPTI="
|