@conboai/app.db.query 0.8.66 → 0.8.67

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.
@@ -129707,15 +129707,16 @@ const E$ = "AIzaSyARRJwBmfqqfnNnLYFmUrhRtdUbiR37CVM", Cg = ({
129707
129707
  textToCopy: t = "",
129708
129708
  children: n,
129709
129709
  showHeader: r = !0,
129710
- links: o
129710
+ links: o,
129711
+ linkValue: i
129711
129712
  }) => {
129712
- const [i, s] = Ue(null), a = (h) => {
129713
- s(h.currentTarget);
129714
- }, l = () => {
129715
- s(null);
129716
- }, u = (h) => {
129717
- Os.info(`Conbo key ${h} copied to clipboard!`), navigator.clipboard.writeText(h);
129718
- }, p = {
129713
+ const [s, a] = Ue(null), l = (f) => {
129714
+ a(f.currentTarget);
129715
+ }, u = () => {
129716
+ a(null);
129717
+ }, p = (f) => {
129718
+ Os.info(`Conbo key ${f} copied to clipboard!`), navigator.clipboard.writeText(f);
129719
+ }, h = {
129719
129720
  width: "20px",
129720
129721
  padding: 0,
129721
129722
  minWidth: "20px",
@@ -129752,15 +129753,15 @@ const E$ = "AIzaSyARRJwBmfqqfnNnLYFmUrhRtdUbiR37CVM", Cg = ({
129752
129753
  Km,
129753
129754
  {
129754
129755
  variant: "text",
129755
- onClick: () => u(t),
129756
- sx: p,
129756
+ onClick: () => p(t),
129757
+ sx: h,
129757
129758
  children: /* @__PURE__ */ se.jsx(cr, { icon: "copy", fill: "#939496" })
129758
129759
  }
129759
129760
  )
129760
129761
  ]
129761
129762
  }
129762
129763
  ),
129763
- !!(o != null && o.length) && /* @__PURE__ */ se.jsx(Xe, { height: "24px", children: /* @__PURE__ */ se.jsx(ug, { onClick: a, sx: pQe, children: /* @__PURE__ */ se.jsx(hQe, {}) }) })
129764
+ !!(o != null && o.length) && /* @__PURE__ */ se.jsx(Xe, { height: "24px", children: /* @__PURE__ */ se.jsx(ug, { onClick: l, sx: pQe, children: /* @__PURE__ */ se.jsx(hQe, {}) }) })
129764
129765
  ]
129765
129766
  }
129766
129767
  ),
@@ -129776,13 +129777,21 @@ const E$ = "AIzaSyARRJwBmfqqfnNnLYFmUrhRtdUbiR37CVM", Cg = ({
129776
129777
  /* @__PURE__ */ se.jsx(
129777
129778
  yQe,
129778
129779
  {
129779
- onClose: l,
129780
- anchorEl: i,
129781
- open: !!i,
129782
- children: /* @__PURE__ */ se.jsx(Xe, { sx: uQe, children: o == null ? void 0 : o.map((h) => /* @__PURE__ */ se.jsx(Ode, { onClick: h.navigator, sx: dQe, children: /* @__PURE__ */ se.jsxs(Xe, { display: "flex", gap: "4px", children: [
129783
- h.text,
129784
- /* @__PURE__ */ se.jsx(MQe, {})
129785
- ] }) }, h.id)) })
129780
+ onClose: u,
129781
+ anchorEl: s,
129782
+ open: !!s,
129783
+ children: /* @__PURE__ */ se.jsx(Xe, { sx: uQe, children: o == null ? void 0 : o.map((f) => /* @__PURE__ */ se.jsx(
129784
+ Ode,
129785
+ {
129786
+ onClick: () => f.navigator(i),
129787
+ sx: dQe,
129788
+ children: /* @__PURE__ */ se.jsxs(Xe, { display: "flex", gap: "4px", children: [
129789
+ f.text,
129790
+ /* @__PURE__ */ se.jsx(MQe, {})
129791
+ ] })
129792
+ },
129793
+ f.id
129794
+ )) })
129786
129795
  }
129787
129796
  )
129788
129797
  ] });
@@ -131517,6 +131526,7 @@ const Ii = Wl((e) => ({
131517
131526
  subtitle: `Conbo key: ${y == null ? void 0 : y.conbo_key}`,
131518
131527
  showHeader: b,
131519
131528
  links: t,
131529
+ linkValue: y == null ? void 0 : y.conbo_key,
131520
131530
  children: b && /* @__PURE__ */ se.jsxs(se.Fragment, { children: [
131521
131531
  /* @__PURE__ */ se.jsx(
131522
131532
  ta,
@@ -133540,57 +133550,56 @@ const tee = () => {
133540
133550
  backgroundColor: Zo
133541
133551
  }
133542
133552
  };
133543
- function PHe() {
133544
- const { conboKey: e, feed: t, isConboKeyExclusive: n, id: r, isUtc: o, isLeftPanelShown: i } = ut(yn), { getDetectionsInfo: s, isValidationError: a } = Kl(), [l, u, p, h, f] = ut((x) => [
133545
- x.loadingState,
133546
- x.editTabData,
133547
- x.setLoading,
133548
- x.newFeeds,
133549
- x.editTabTitle
133550
- ]), m = l === "pending";
133553
+ function PHe({
133554
+ inputValue: e,
133555
+ shouldSearchAutomatically: t
133556
+ }) {
133557
+ const { conboKey: n, isConboKeyExclusive: r, id: o, isUtc: i, isLeftPanelShown: s } = ut(yn), { getDetectionsInfo: a, isValidationError: l } = Kl(), [u, p, h, f] = ut(
133558
+ (x) => [
133559
+ x.loadingState,
133560
+ x.editTabData,
133561
+ x.setLoading,
133562
+ x.editTabTitle
133563
+ ]
133564
+ ), m = u === "pending";
133551
133565
  Oe(() => {
133552
- u("confidence", 0);
133553
- }, [u]);
133566
+ p("confidence", 0);
133567
+ }, [p]);
133554
133568
  const y = vt(async () => {
133555
133569
  try {
133556
- p("pending"), u("color", "yellow"), u("callDate", /* @__PURE__ */ new Date()), u("selectedTableItemId", -1), await s({ conboKey: e }), u("shouldClearData", !0), u("isNewTab", !1), u("shouldFetchFrameDetails", !0), u("color", "green"), u("currentSliderIndex", 0), u("isNewSearch", !0), u("title", e), f(r, e), p("done");
133570
+ h("pending"), p("color", "yellow"), p("callDate", /* @__PURE__ */ new Date()), p("selectedTableItemId", -1), await a({ conboKey: n }), p("shouldClearData", !0), p("isNewTab", !1), p("shouldFetchFrameDetails", !0), p("color", "green"), p("currentSliderIndex", 0), p("isNewSearch", !0), p("title", n), f(o, n), h("done");
133557
133571
  } catch {
133558
- u("color", "red"), p("done");
133572
+ p("color", "red"), h("done");
133559
133573
  }
133560
- }, [
133561
- e,
133562
- s,
133563
- p,
133564
- u,
133565
- f,
133566
- t,
133567
- r,
133568
- h
133569
- ]), M = () => y(), b = (x) => {
133570
- u("isUtc", x.target.checked);
133574
+ }, [n, a, h, p, f, o]);
133575
+ Oe(() => {
133576
+ t && y();
133577
+ }, [y, t]);
133578
+ const M = () => y(), b = (x) => {
133579
+ p("isUtc", x.target.checked);
133571
133580
  }, N = (x) => {
133572
- const T = x.target.value.trim();
133573
- u("conboKey", T);
133574
- }, v = (x) => u("isConboKeyExclusive", x.target.checked);
133581
+ const T = x.target.value.trim(), D = String(e).trim();
133582
+ p("conboKey", D || T);
133583
+ }, v = (x) => p("isConboKeyExclusive", x.target.checked);
133575
133584
  return /* @__PURE__ */ se.jsxs(
133576
133585
  Z0,
133577
133586
  {
133578
133587
  onSearchClick: M,
133579
133588
  isAutoSearchDisabled: !0,
133580
- tooltipTile: e ? "" : "Conbo key is required",
133581
- isSearchButtonDisabled: m || !e,
133589
+ tooltipTile: n ? "" : "Conbo key is required",
133590
+ isSearchButtonDisabled: m || !n,
133582
133591
  withAutoSearch: !1,
133583
- isLeftPanelShown: i,
133592
+ isLeftPanelShown: s,
133584
133593
  children: [
133585
133594
  /* @__PURE__ */ se.jsxs(Xe, { sx: RHe, children: [
133586
133595
  /* @__PURE__ */ se.jsx(
133587
133596
  Wi,
133588
133597
  {
133589
133598
  leftLabel: "Local time",
133590
- leftLabelsDisabled: o,
133591
- rightLabelDisabled: !o,
133599
+ leftLabelsDisabled: i,
133600
+ rightLabelDisabled: !i,
133592
133601
  rightLabel: "UTC",
133593
- checked: o,
133602
+ checked: i,
133594
133603
  sx: ag,
133595
133604
  onChange: b
133596
133605
  }
@@ -133601,20 +133610,20 @@ function PHe() {
133601
133610
  IN,
133602
133611
  {
133603
133612
  label: "Conbo key",
133604
- value: e,
133613
+ value: n,
133605
133614
  onChange: N,
133606
133615
  placeholder: "00000-000-000-00000",
133607
- error: a
133616
+ error: l
133608
133617
  }
133609
133618
  ),
133610
- a && /* @__PURE__ */ se.jsx(nz, { error: !0, children: "Incorrect format" })
133619
+ l && /* @__PURE__ */ se.jsx(nz, { error: !0, children: "Incorrect format" })
133611
133620
  ] })
133612
133621
  ] }),
133613
133622
  /* @__PURE__ */ se.jsx(Xe, { mt: "10px", children: /* @__PURE__ */ se.jsx(
133614
133623
  Wi,
133615
133624
  {
133616
133625
  leftLabel: "Exlusive",
133617
- checked: n,
133626
+ checked: r,
133618
133627
  sx: ag,
133619
133628
  onChange: v
133620
133629
  }
@@ -133727,36 +133736,48 @@ const UHe = ({ baseUrl: e = "" }) => {
133727
133736
  onToggleLeftPanel: M
133728
133737
  }
133729
133738
  );
133730
- }, IKe = (e) => {
133731
- const { siteId: t, onHomeClick: n, baseUrl: r } = e, { id: o, isLeftPanelShown: i } = ut(yn), [s, a] = ut((y) => [
133732
- y.editTabData,
133733
- y.clearTabsData
133734
- ]), l = Xn(!0), { getKitsElements: u } = Gi();
133739
+ }, IKe = ({
133740
+ siteId: e,
133741
+ onHomeClick: t,
133742
+ baseUrl: n,
133743
+ inputValue: r = "",
133744
+ shouldSearchAutomatically: o
133745
+ }) => {
133746
+ const { id: i, isLeftPanelShown: s } = ut(yn), [a, l] = ut((M) => [
133747
+ M.editTabData,
133748
+ M.clearTabsData
133749
+ ]), u = Xn(!0), { getKitsElements: p } = Gi();
133735
133750
  Oe(() => {
133736
133751
  document.title = xs.CONBO_KEY_SEARCH;
133737
- }, []), Tp(r), wp(t), Oe(() => {
133738
- l.current && u({ siteId: t });
133739
- }, [u, t, o]), Oe(() => (s("conboKey", ""), s("isConboKeyExclusive", !0), s("trailState", Pc.NO_TRAIL), s("fov", !1), () => {
133740
- s("conboKey", ""), s("isConboKeyExclusive", !0), s("trailState", Pc.NO_TRAIL), s("color", "white"), s("isNewSearch", !1), s("isNoResultsState", !1), s("fov", !1), a();
133741
- }), [a, s]);
133742
- const p = /* @__PURE__ */ se.jsx(
133752
+ }, []), Tp(n), wp(e), Oe(() => {
133753
+ u.current && p({ siteId: e });
133754
+ }, [p, e, i]), Oe(() => (a("conboKey", ""), a("isConboKeyExclusive", !0), a("trailState", Pc.NO_TRAIL), a("fov", !1), () => {
133755
+ a("conboKey", ""), a("isConboKeyExclusive", !0), a("trailState", Pc.NO_TRAIL), a("color", "white"), a("isNewSearch", !1), a("isNoResultsState", !1), a("fov", !1), l();
133756
+ }), [l, a]);
133757
+ const h = /* @__PURE__ */ se.jsx(
133743
133758
  _He,
133744
133759
  {
133745
133760
  title: xs.CONBO_KEY_SEARCH,
133746
133761
  titleWidth: "165px",
133747
133762
  showSiteName: !1,
133748
- onHomeClick: n
133763
+ onHomeClick: t
133764
+ }
133765
+ ), f = /* @__PURE__ */ se.jsx(
133766
+ PHe,
133767
+ {
133768
+ inputValue: r,
133769
+ shouldSearchAutomatically: o
133749
133770
  }
133750
- ), h = /* @__PURE__ */ se.jsx(PHe, {}), f = /* @__PURE__ */ se.jsx(UHe, { baseUrl: r }), m = /* @__PURE__ */ se.jsx(LHe, { baseUrl: r });
133771
+ ), m = /* @__PURE__ */ se.jsx(UHe, { baseUrl: n }), y = /* @__PURE__ */ se.jsx(LHe, { baseUrl: n });
133751
133772
  return /* @__PURE__ */ se.jsx(
133752
133773
  wg,
133753
133774
  {
133754
- isLeftPanelShown: i,
133755
- header: p,
133756
- sidebarLeft: h,
133757
- content: f,
133758
- sidebarRight: m,
133759
- baseUrl: r
133775
+ isLeftPanelShown: s,
133776
+ header: h,
133777
+ sidebarLeft: f,
133778
+ content: m,
133779
+ sidebarRight: y,
133780
+ baseUrl: n
133760
133781
  }
133761
133782
  );
133762
133783
  }, FHe = ({
@@ -139246,38 +139267,43 @@ const AGe = async ({
139246
139267
  }
139247
139268
  })), EGe = ({
139248
139269
  onSubmit: e,
139249
- baseUrl: t
139270
+ baseUrl: t,
139271
+ inputValue: n,
139272
+ shouldSearchAutomatically: r
139250
139273
  }) => {
139251
139274
  const {
139252
- conboMatchInputValue: n,
139253
- conboMatchExlusiveValue: r,
139254
- conboMatchUtcValue: o,
139255
- conboMatchInputError: i
139256
- } = ut(yn), [s] = ut((M) => [M.editTabData]), a = MWe({
139275
+ conboMatchInputValue: o,
139276
+ conboMatchExlusiveValue: i,
139277
+ conboMatchUtcValue: s,
139278
+ conboMatchInputError: a
139279
+ } = ut(yn), [l] = ut((N) => [N.editTabData]), u = MWe({
139257
139280
  defaultValues: {
139258
139281
  ...J$.shape,
139259
- conboKey: n,
139260
- keyExclusive: r,
139261
- isUtc: o
139282
+ conboKey: String(n) || o,
139283
+ keyExclusive: i,
139284
+ isUtc: s
139262
139285
  },
139263
139286
  resolver: CWe(J$.schema()),
139264
139287
  mode: "all",
139265
139288
  reValidateMode: "onSubmit"
139266
- }), { loading: l } = qN(), { control: u, handleSubmit: p, formState: h, setValue: f } = a, { errors: m } = h;
139289
+ }), { loading: p } = qN(), { control: h, handleSubmit: f, formState: m, setValue: y } = u, { errors: M } = m;
139267
139290
  Oe(() => {
139268
- f("conboKey", n), f("keyExclusive", r), f("isUtc", o);
139291
+ y("conboKey", String(n) || o), y("keyExclusive", i), y("isUtc", s);
139269
139292
  }, [
139270
- n,
139271
- r,
139272
139293
  o,
139273
- f
139294
+ i,
139295
+ s,
139296
+ y,
139297
+ n
139274
139298
  ]);
139275
- const y = () => {
139276
- (async () => await p(() => {
139277
- e == null || e({ conboKey: n, baseUrl: t });
139299
+ const b = vt(() => {
139300
+ (async () => await f(() => {
139301
+ e == null || e({ conboKey: o, baseUrl: t });
139278
139302
  })())();
139279
- };
139280
- return /* @__PURE__ */ se.jsxs(
139303
+ }, [t, o, f, e]);
139304
+ return Oe(() => {
139305
+ r && b();
139306
+ }, [b, r]), /* @__PURE__ */ se.jsxs(
139281
139307
  Xe,
139282
139308
  {
139283
139309
  display: "flex",
@@ -139292,18 +139318,18 @@ const AGe = async ({
139292
139318
  F$,
139293
139319
  {
139294
139320
  name: ps.isUtc,
139295
- control: u,
139296
- render: ({ field: M }) => /* @__PURE__ */ se.jsx(
139321
+ control: h,
139322
+ render: ({ field: N }) => /* @__PURE__ */ se.jsx(
139297
139323
  Wi,
139298
139324
  {
139299
- ...M,
139325
+ ...N,
139300
139326
  leftLabel: $4[ps.isUtc].label,
139301
139327
  sx: NWe,
139302
- onChange: (b) => {
139303
- const N = b.target.checked;
139304
- M.onChange(N), s("isUtc", N), s("conboMatchUtcValue", N);
139328
+ onChange: (v) => {
139329
+ const x = v.target.checked;
139330
+ N.onChange(x), l("isUtc", x), l("conboMatchUtcValue", x);
139305
139331
  },
139306
- checked: !!M.value,
139332
+ checked: !!N.value,
139307
139333
  disabled: !1
139308
139334
  }
139309
139335
  )
@@ -139315,30 +139341,30 @@ const AGe = async ({
139315
139341
  F$,
139316
139342
  {
139317
139343
  name: ps.conboKey,
139318
- control: u,
139319
- render: ({ field: M }) => /* @__PURE__ */ se.jsx(
139344
+ control: h,
139345
+ render: ({ field: N }) => /* @__PURE__ */ se.jsx(
139320
139346
  IN,
139321
139347
  {
139322
- ...M,
139323
- value: M.value || "",
139348
+ ...N,
139349
+ value: N.value || "",
139324
139350
  onBlur: () => {
139325
- var N;
139326
- const b = ((N = m.conboKey) == null ? void 0 : N.message) || "";
139327
- b !== i && s("conboMatchInputError", b);
139351
+ var x;
139352
+ const v = ((x = M.conboKey) == null ? void 0 : x.message) || "";
139353
+ v !== a && l("conboMatchInputError", v);
139328
139354
  },
139329
- onChange: (b) => {
139330
- M.onChange(b), s("conboMatchInputValue", b.target.value);
139355
+ onChange: (v) => {
139356
+ N.onChange(v), l("conboMatchInputValue", v.target.value);
139331
139357
  },
139332
139358
  id: ps.conboKey,
139333
139359
  label: $4[ps.conboKey].label,
139334
139360
  placeholder: $4[ps.conboKey].placeholder,
139335
- error: !!i,
139336
- disabled: l
139361
+ error: !!a,
139362
+ disabled: p
139337
139363
  }
139338
139364
  )
139339
139365
  }
139340
139366
  ),
139341
- i && /* @__PURE__ */ se.jsx(nz, { error: !0, children: i })
139367
+ a && /* @__PURE__ */ se.jsx(nz, { error: !0, children: a })
139342
139368
  ] }) })
139343
139369
  ] }),
139344
139370
  /* @__PURE__ */ se.jsxs(Xe, { sx: wWe, marginTop: "auto", children: [
@@ -139346,15 +139372,15 @@ const AGe = async ({
139346
139372
  /* @__PURE__ */ se.jsx(
139347
139373
  Oc,
139348
139374
  {
139349
- title: n ? "" : "Conbo key is required",
139375
+ title: o ? "" : "Conbo key is required",
139350
139376
  placement: fi.TOP,
139351
139377
  arrow: !0,
139352
139378
  children: /* @__PURE__ */ se.jsx(Xe, { sx: { px: "20px" }, children: /* @__PURE__ */ se.jsx(
139353
139379
  Gr,
139354
139380
  {
139355
139381
  size: "full",
139356
- onClick: y,
139357
- disabled: l || !n,
139382
+ onClick: b,
139383
+ disabled: p || !o,
139358
139384
  children: "Search"
139359
139385
  }
139360
139386
  ) })
@@ -139804,34 +139830,46 @@ const AGe = async ({
139804
139830
  const n = ut.getState().editTabData, { abortController: r } = t();
139805
139831
  r && (r.abort(), e({ abortController: null, loading: !1 }), n("isRequestAborted", !0));
139806
139832
  }
139807
- })), LGe = ({ baseUrl: e }) => {
139808
- const t = ZN(), { findAllReids: n } = qN(), { getDetectionsInfo: r, abortDetectionsRequests: o } = X0(), { isRequestAborted: i, shouldFetchData: s, conboMatchInputValue: a } = ut(yn), [l] = ut((f) => [f.editTabData]), u = vt(
139809
- async (f) => {
139833
+ })), LGe = ({
139834
+ baseUrl: e,
139835
+ inputValue: t,
139836
+ shouldSearchAutomatically: n
139837
+ }) => {
139838
+ const r = ZN(), { findAllReids: o } = qN(), { getDetectionsInfo: i, abortDetectionsRequests: s } = X0(), { isRequestAborted: a, shouldFetchData: l, conboMatchInputValue: u } = ut(yn), [p] = ut((y) => [y.editTabData]), h = vt(
139839
+ async (y) => {
139810
139840
  try {
139811
- l("title", f.conboKey), l("color", "yellow"), await n(f), l("color", "green"), l("shouldFetchData", !0), l("isNewSearch", !0), i && l("isRequestAborted", !1);
139841
+ p("title", y.conboKey), p("color", "yellow"), await o(y), p("color", "green"), p("shouldFetchData", !0), p("isNewSearch", !0), a && p("isRequestAborted", !1);
139812
139842
  } catch {
139813
- l("color", "red");
139843
+ p("color", "red");
139814
139844
  }
139815
139845
  },
139816
- [l, n, i]
139817
- ), p = vt(async () => {
139818
- await r({ conboKey: a, baseUrl: e });
139819
- }, [e, a, r]);
139846
+ [p, o, a]
139847
+ ), f = vt(async () => {
139848
+ await i({ conboKey: u, baseUrl: e });
139849
+ }, [e, u, i]);
139820
139850
  Oe(() => {
139821
139851
  try {
139822
- !i && s ? (p(), l("shouldFetchData", !1), l("color", "green")) : (o(), l("color", "white"));
139852
+ !a && l ? (f(), p("shouldFetchData", !1), p("color", "green")) : (s(), p("color", "white"));
139823
139853
  } catch {
139824
- l("color", "red");
139854
+ p("color", "red");
139825
139855
  }
139826
139856
  }, [
139827
- l,
139828
139857
  p,
139829
- r,
139858
+ f,
139830
139859
  i,
139831
- s
139860
+ a,
139861
+ l
139832
139862
  ]);
139833
- const h = t != null && t.isLeftPanelShown ? "flex" : "none";
139834
- return /* @__PURE__ */ se.jsx(Xe, { position: "relative", height: "100%", display: h, children: /* @__PURE__ */ se.jsx(EGe, { onSubmit: u, baseUrl: e }) });
139863
+ const m = r != null && r.isLeftPanelShown ? "flex" : "none";
139864
+ return /* @__PURE__ */ se.jsx(Xe, { position: "relative", height: "100%", display: m, children: /* @__PURE__ */ se.jsx(
139865
+ EGe,
139866
+ {
139867
+ onSubmit: h,
139868
+ baseUrl: e,
139869
+ inputValue: t,
139870
+ shouldSearchAutomatically: n
139871
+ }
139872
+ ) });
139835
139873
  }, RGe = ({
139836
139874
  title: e,
139837
139875
  onHomeClick: t,
@@ -140350,28 +140388,34 @@ const AGe = async ({
140350
140388
  t
140351
140389
  ])
140352
140390
  };
140353
- }, jKe = (e) => {
140354
- const { siteId: t, onHomeClick: n, baseUrl: r = "" } = e, { isLeftPanelShown: o, isAbortModalOpened: i } = ut(yn), { loading: s } = jm("FetchAllTabs"), { loading: a } = jm("FetchConfiguration"), { loading: l } = jm("FetchKitsElements"), {
140355
- onFetchKitsElements: u,
140356
- onFetchAllTabs: p,
140357
- onFetchConfiguration: h,
140358
- clearStore: f
140359
- } = jee(), { clearDetectionsStore: m } = X0(), y = ZN(), { clearData: M, loading: b, abortReidRequests: N } = qN(), [v, x] = ut((z) => [
140360
- z.clearTabsData,
140361
- z.editTabData
140362
- ]), { handleTabActions: T } = HGe(n);
140363
- if (Tp(r), wp(t), Oe(() => (document.title = xs.CONBO_MATCH, p(), () => {
140364
- f(), M(), m(), v(), x("selectedDeletedItems", []);
140391
+ }, jKe = ({
140392
+ siteId: e,
140393
+ onHomeClick: t,
140394
+ baseUrl: n = "",
140395
+ inputValue: r = "",
140396
+ shouldSearchAutomatically: o
140397
+ }) => {
140398
+ const { isLeftPanelShown: i, isAbortModalOpened: s } = ut(yn), { loading: a } = jm("FetchAllTabs"), { loading: l } = jm("FetchConfiguration"), { loading: u } = jm("FetchKitsElements"), {
140399
+ onFetchKitsElements: p,
140400
+ onFetchAllTabs: h,
140401
+ onFetchConfiguration: f,
140402
+ clearStore: m
140403
+ } = jee(), { clearDetectionsStore: y } = X0(), M = ZN(), { clearData: b, loading: N, abortReidRequests: v } = qN(), [x, T] = ut((I) => [
140404
+ I.clearTabsData,
140405
+ I.editTabData
140406
+ ]), { handleTabActions: D } = HGe(t);
140407
+ if (Tp(n), wp(e), Oe(() => (document.title = xs.CONBO_MATCH, h(), () => {
140408
+ m(), b(), y(), x(), T("selectedDeletedItems", []);
140365
140409
  }), [
140366
- M,
140410
+ b,
140411
+ y,
140367
140412
  m,
140368
- f,
140369
- v,
140370
140413
  x,
140371
- p
140414
+ T,
140415
+ h
140372
140416
  ]), Oe(() => {
140373
- y || (u({ siteId: t }), h({ deploymentId: t }));
140374
- }, [h, u, y, t]), s || l || a)
140417
+ M || (p({ siteId: e }), f({ deploymentId: e }));
140418
+ }, [f, p, M, e]), a || u || l)
140375
140419
  return /* @__PURE__ */ se.jsx(
140376
140420
  Xe,
140377
140421
  {
@@ -140382,37 +140426,44 @@ const AGe = async ({
140382
140426
  children: /* @__PURE__ */ se.jsx(Mp, {})
140383
140427
  }
140384
140428
  );
140385
- if (!y)
140429
+ if (!M)
140386
140430
  return null;
140387
- const D = /* @__PURE__ */ se.jsx(
140431
+ const w = /* @__PURE__ */ se.jsx(
140388
140432
  RGe,
140389
140433
  {
140390
140434
  title: xs.CONBO_MATCH,
140391
- onHomeClick: n,
140392
- isLoading: b
140435
+ onHomeClick: t,
140436
+ isLoading: N
140437
+ }
140438
+ ), j = /* @__PURE__ */ se.jsx(
140439
+ LGe,
140440
+ {
140441
+ baseUrl: n,
140442
+ inputValue: r,
140443
+ shouldSearchAutomatically: o
140393
140444
  }
140394
- ), w = /* @__PURE__ */ se.jsx(LGe, { baseUrl: r }), j = /* @__PURE__ */ se.jsx(QGe, {}), P = /* @__PURE__ */ se.jsx(FGe, { baseUrl: r }), k = {
140395
- open: i && b,
140445
+ ), P = /* @__PURE__ */ se.jsx(QGe, {}), _ = /* @__PURE__ */ se.jsx(FGe, { baseUrl: n }), z = {
140446
+ open: s && N,
140396
140447
  title: "Leave the page?",
140397
140448
  message: `Search result is currently being loaded. If you open a new tab, the ongoing search will be canceled.
140398
140449
  Are you sure you want to continue?`,
140399
140450
  onClose: () => {
140400
- x("isAbortModalOpened", !1);
140451
+ T("isAbortModalOpened", !1);
140401
140452
  },
140402
140453
  onContinue: () => {
140403
- N(), x("color", "white"), x("isAbortModalOpened", !1), T();
140454
+ v(), T("color", "white"), T("isAbortModalOpened", !1), D();
140404
140455
  }
140405
140456
  };
140406
140457
  return /* @__PURE__ */ se.jsx(
140407
140458
  wg,
140408
140459
  {
140409
- isLeftPanelShown: o,
140410
- header: D,
140411
- sidebarLeft: w,
140412
- content: j,
140413
- sidebarRight: P,
140414
- baseUrl: r,
140415
- abortModalProps: k
140460
+ isLeftPanelShown: i,
140461
+ header: w,
140462
+ sidebarLeft: j,
140463
+ content: P,
140464
+ sidebarRight: _,
140465
+ baseUrl: n,
140466
+ abortModalProps: z
140416
140467
  }
140417
140468
  );
140418
140469
  }, WGe = ({
@@ -1,8 +1,9 @@
1
1
  type InputProps = {
2
2
  siteId: string;
3
3
  baseUrl?: string;
4
- isAdmin?: boolean;
5
4
  onHomeClick?: () => void;
5
+ inputValue?: string | number;
6
+ shouldSearchAutomatically?: boolean;
6
7
  };
7
- export declare const ConboKeySearch: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const ConboKeySearch: ({ siteId, onHomeClick, baseUrl, inputValue, shouldSearchAutomatically }: InputProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export default ConboKeySearch;
@@ -1,2 +1,6 @@
1
- declare function AppLeftBar(): import("react/jsx-runtime").JSX.Element;
1
+ type AppLeftBarProps = {
2
+ inputValue?: string | number;
3
+ shouldSearchAutomatically?: boolean;
4
+ };
5
+ declare function AppLeftBar({ inputValue, shouldSearchAutomatically }: AppLeftBarProps): import("react/jsx-runtime").JSX.Element;
2
6
  export default AppLeftBar;
@@ -1,5 +1,7 @@
1
1
  type AppSidebarLeftProps = {
2
2
  baseUrl?: string;
3
+ inputValue?: string | number;
4
+ shouldSearchAutomatically?: boolean;
3
5
  };
4
- export declare const AppSidebarLeft: ({ baseUrl }: AppSidebarLeftProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const AppSidebarLeft: ({ baseUrl, inputValue, shouldSearchAutomatically }: AppSidebarLeftProps) => import("react/jsx-runtime").JSX.Element;
5
7
  export {};
@@ -1,8 +1,9 @@
1
1
  type InputProps = {
2
2
  siteId: string;
3
3
  baseUrl?: string;
4
- isAdmin?: boolean;
5
4
  onHomeClick?: () => void;
5
+ inputValue?: string | number;
6
+ shouldSearchAutomatically?: boolean;
6
7
  };
7
- export declare const ConboMatchRoot: (props: InputProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const ConboMatchRoot: ({ siteId, onHomeClick, baseUrl, inputValue, shouldSearchAutomatically }: InputProps) => import("react/jsx-runtime").JSX.Element | null;
8
9
  export {};
@@ -9,6 +9,8 @@ type SidebarLeftFilterInput = {
9
9
  baseUrl?: string;
10
10
  }) => void;
11
11
  baseUrl?: string;
12
+ inputValue?: string | number;
13
+ shouldSearchAutomatically?: boolean;
12
14
  };
13
- export declare const SidebarLeftFilter: ({ onSubmit, baseUrl }: SidebarLeftFilterInput) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const SidebarLeftFilter: ({ onSubmit, baseUrl, inputValue, shouldSearchAutomatically }: SidebarLeftFilterInput) => import("react/jsx-runtime").JSX.Element;
14
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.8.66",
3
+ "version": "0.8.67",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",