@conboai/app.db.query 0.8.66 → 0.8.68

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,61 @@ 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]), Oe(() => {
133568
+ if (e) {
133569
+ const x = String(e).trim();
133570
+ p("conboKey", x);
133571
+ }
133572
+ }, [p, e]);
133554
133573
  const y = vt(async () => {
133555
133574
  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");
133575
+ 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
133576
  } catch {
133558
- u("color", "red"), p("done");
133577
+ p("color", "red"), h("done");
133559
133578
  }
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);
133579
+ }, [n, a, h, p, f, o]);
133580
+ Oe(() => {
133581
+ t && e && y();
133582
+ }, [y, e, t]);
133583
+ const M = () => y(), b = (x) => {
133584
+ p("isUtc", x.target.checked);
133571
133585
  }, N = (x) => {
133572
133586
  const T = x.target.value.trim();
133573
- u("conboKey", T);
133574
- }, v = (x) => u("isConboKeyExclusive", x.target.checked);
133587
+ p("conboKey", T);
133588
+ }, v = (x) => p("isConboKeyExclusive", x.target.checked);
133575
133589
  return /* @__PURE__ */ se.jsxs(
133576
133590
  Z0,
133577
133591
  {
133578
133592
  onSearchClick: M,
133579
133593
  isAutoSearchDisabled: !0,
133580
- tooltipTile: e ? "" : "Conbo key is required",
133581
- isSearchButtonDisabled: m || !e,
133594
+ tooltipTile: n ? "" : "Conbo key is required",
133595
+ isSearchButtonDisabled: m || !n,
133582
133596
  withAutoSearch: !1,
133583
- isLeftPanelShown: i,
133597
+ isLeftPanelShown: s,
133584
133598
  children: [
133585
133599
  /* @__PURE__ */ se.jsxs(Xe, { sx: RHe, children: [
133586
133600
  /* @__PURE__ */ se.jsx(
133587
133601
  Wi,
133588
133602
  {
133589
133603
  leftLabel: "Local time",
133590
- leftLabelsDisabled: o,
133591
- rightLabelDisabled: !o,
133604
+ leftLabelsDisabled: i,
133605
+ rightLabelDisabled: !i,
133592
133606
  rightLabel: "UTC",
133593
- checked: o,
133607
+ checked: i,
133594
133608
  sx: ag,
133595
133609
  onChange: b
133596
133610
  }
@@ -133601,20 +133615,20 @@ function PHe() {
133601
133615
  IN,
133602
133616
  {
133603
133617
  label: "Conbo key",
133604
- value: e,
133618
+ value: n,
133605
133619
  onChange: N,
133606
133620
  placeholder: "00000-000-000-00000",
133607
- error: a
133621
+ error: l
133608
133622
  }
133609
133623
  ),
133610
- a && /* @__PURE__ */ se.jsx(nz, { error: !0, children: "Incorrect format" })
133624
+ l && /* @__PURE__ */ se.jsx(nz, { error: !0, children: "Incorrect format" })
133611
133625
  ] })
133612
133626
  ] }),
133613
133627
  /* @__PURE__ */ se.jsx(Xe, { mt: "10px", children: /* @__PURE__ */ se.jsx(
133614
133628
  Wi,
133615
133629
  {
133616
133630
  leftLabel: "Exlusive",
133617
- checked: n,
133631
+ checked: r,
133618
133632
  sx: ag,
133619
133633
  onChange: v
133620
133634
  }
@@ -133727,36 +133741,48 @@ const UHe = ({ baseUrl: e = "" }) => {
133727
133741
  onToggleLeftPanel: M
133728
133742
  }
133729
133743
  );
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();
133744
+ }, IKe = ({
133745
+ siteId: e,
133746
+ onHomeClick: t,
133747
+ baseUrl: n,
133748
+ inputValue: r = "",
133749
+ shouldSearchAutomatically: o
133750
+ }) => {
133751
+ const { id: i, isLeftPanelShown: s } = ut(yn), [a, l] = ut((M) => [
133752
+ M.editTabData,
133753
+ M.clearTabsData
133754
+ ]), u = Xn(!0), { getKitsElements: p } = Gi();
133735
133755
  Oe(() => {
133736
133756
  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(
133757
+ }, []), Tp(n), wp(e), Oe(() => {
133758
+ u.current && p({ siteId: e });
133759
+ }, [p, e, i]), Oe(() => (a("conboKey", ""), a("isConboKeyExclusive", !0), a("trailState", Pc.NO_TRAIL), a("fov", !1), () => {
133760
+ a("conboKey", ""), a("isConboKeyExclusive", !0), a("trailState", Pc.NO_TRAIL), a("color", "white"), a("isNewSearch", !1), a("isNoResultsState", !1), a("fov", !1), l();
133761
+ }), [l, a]);
133762
+ const h = /* @__PURE__ */ se.jsx(
133743
133763
  _He,
133744
133764
  {
133745
133765
  title: xs.CONBO_KEY_SEARCH,
133746
133766
  titleWidth: "165px",
133747
133767
  showSiteName: !1,
133748
- onHomeClick: n
133768
+ onHomeClick: t
133769
+ }
133770
+ ), f = /* @__PURE__ */ se.jsx(
133771
+ PHe,
133772
+ {
133773
+ inputValue: r,
133774
+ shouldSearchAutomatically: o
133749
133775
  }
133750
- ), h = /* @__PURE__ */ se.jsx(PHe, {}), f = /* @__PURE__ */ se.jsx(UHe, { baseUrl: r }), m = /* @__PURE__ */ se.jsx(LHe, { baseUrl: r });
133776
+ ), m = /* @__PURE__ */ se.jsx(UHe, { baseUrl: n }), y = /* @__PURE__ */ se.jsx(LHe, { baseUrl: n });
133751
133777
  return /* @__PURE__ */ se.jsx(
133752
133778
  wg,
133753
133779
  {
133754
- isLeftPanelShown: i,
133755
- header: p,
133756
- sidebarLeft: h,
133757
- content: f,
133758
- sidebarRight: m,
133759
- baseUrl: r
133780
+ isLeftPanelShown: s,
133781
+ header: h,
133782
+ sidebarLeft: f,
133783
+ content: m,
133784
+ sidebarRight: y,
133785
+ baseUrl: n
133760
133786
  }
133761
133787
  );
133762
133788
  }, FHe = ({
@@ -139246,38 +139272,45 @@ const AGe = async ({
139246
139272
  }
139247
139273
  })), EGe = ({
139248
139274
  onSubmit: e,
139249
- baseUrl: t
139275
+ baseUrl: t,
139276
+ inputValue: n,
139277
+ shouldSearchAutomatically: r
139250
139278
  }) => {
139251
139279
  const {
139252
- conboMatchInputValue: n,
139253
- conboMatchExlusiveValue: r,
139254
- conboMatchUtcValue: o,
139255
- conboMatchInputError: i
139256
- } = ut(yn), [s] = ut((M) => [M.editTabData]), a = MWe({
139280
+ conboMatchInputValue: o,
139281
+ conboMatchExlusiveValue: i,
139282
+ conboMatchUtcValue: s,
139283
+ conboMatchInputError: a
139284
+ } = ut(yn), [l] = ut((N) => [N.editTabData]), u = MWe({
139257
139285
  defaultValues: {
139258
139286
  ...J$.shape,
139259
- conboKey: n,
139260
- keyExclusive: r,
139261
- isUtc: o
139287
+ conboKey: String(n) || o,
139288
+ keyExclusive: i,
139289
+ isUtc: s
139262
139290
  },
139263
139291
  resolver: CWe(J$.schema()),
139264
139292
  mode: "all",
139265
139293
  reValidateMode: "onSubmit"
139266
- }), { loading: l } = qN(), { control: u, handleSubmit: p, formState: h, setValue: f } = a, { errors: m } = h;
139294
+ }), { loading: p } = qN(), { control: h, handleSubmit: f, formState: m, setValue: y } = u, { errors: M } = m;
139267
139295
  Oe(() => {
139268
- f("conboKey", n), f("keyExclusive", r), f("isUtc", o);
139296
+ y("conboKey", String(n) || o), y("keyExclusive", i), y("isUtc", s);
139269
139297
  }, [
139270
- n,
139271
- r,
139272
139298
  o,
139273
- f
139299
+ i,
139300
+ s,
139301
+ y,
139302
+ n
139274
139303
  ]);
139275
- const y = () => {
139276
- (async () => await p(() => {
139277
- e == null || e({ conboKey: n, baseUrl: t });
139304
+ const b = vt(() => {
139305
+ (async () => await f(() => {
139306
+ e == null || e({ conboKey: o, baseUrl: t });
139278
139307
  })())();
139279
- };
139280
- return /* @__PURE__ */ se.jsxs(
139308
+ }, [t, o, f, e]);
139309
+ return Oe(() => {
139310
+ r && n && b();
139311
+ }, [b, n, r]), Oe(() => {
139312
+ n && l("conboMatchInputValue", n);
139313
+ }, [l, n]), /* @__PURE__ */ se.jsxs(
139281
139314
  Xe,
139282
139315
  {
139283
139316
  display: "flex",
@@ -139292,18 +139325,18 @@ const AGe = async ({
139292
139325
  F$,
139293
139326
  {
139294
139327
  name: ps.isUtc,
139295
- control: u,
139296
- render: ({ field: M }) => /* @__PURE__ */ se.jsx(
139328
+ control: h,
139329
+ render: ({ field: N }) => /* @__PURE__ */ se.jsx(
139297
139330
  Wi,
139298
139331
  {
139299
- ...M,
139332
+ ...N,
139300
139333
  leftLabel: $4[ps.isUtc].label,
139301
139334
  sx: NWe,
139302
- onChange: (b) => {
139303
- const N = b.target.checked;
139304
- M.onChange(N), s("isUtc", N), s("conboMatchUtcValue", N);
139335
+ onChange: (v) => {
139336
+ const x = v.target.checked;
139337
+ N.onChange(x), l("isUtc", x), l("conboMatchUtcValue", x);
139305
139338
  },
139306
- checked: !!M.value,
139339
+ checked: !!N.value,
139307
139340
  disabled: !1
139308
139341
  }
139309
139342
  )
@@ -139315,30 +139348,30 @@ const AGe = async ({
139315
139348
  F$,
139316
139349
  {
139317
139350
  name: ps.conboKey,
139318
- control: u,
139319
- render: ({ field: M }) => /* @__PURE__ */ se.jsx(
139351
+ control: h,
139352
+ render: ({ field: N }) => /* @__PURE__ */ se.jsx(
139320
139353
  IN,
139321
139354
  {
139322
- ...M,
139323
- value: M.value || "",
139355
+ ...N,
139356
+ value: N.value || "",
139324
139357
  onBlur: () => {
139325
- var N;
139326
- const b = ((N = m.conboKey) == null ? void 0 : N.message) || "";
139327
- b !== i && s("conboMatchInputError", b);
139358
+ var x;
139359
+ const v = ((x = M.conboKey) == null ? void 0 : x.message) || "";
139360
+ v !== a && l("conboMatchInputError", v);
139328
139361
  },
139329
- onChange: (b) => {
139330
- M.onChange(b), s("conboMatchInputValue", b.target.value);
139362
+ onChange: (v) => {
139363
+ N.onChange(v), l("conboMatchInputValue", v.target.value);
139331
139364
  },
139332
139365
  id: ps.conboKey,
139333
139366
  label: $4[ps.conboKey].label,
139334
139367
  placeholder: $4[ps.conboKey].placeholder,
139335
- error: !!i,
139336
- disabled: l
139368
+ error: !!a,
139369
+ disabled: p
139337
139370
  }
139338
139371
  )
139339
139372
  }
139340
139373
  ),
139341
- i && /* @__PURE__ */ se.jsx(nz, { error: !0, children: i })
139374
+ a && /* @__PURE__ */ se.jsx(nz, { error: !0, children: a })
139342
139375
  ] }) })
139343
139376
  ] }),
139344
139377
  /* @__PURE__ */ se.jsxs(Xe, { sx: wWe, marginTop: "auto", children: [
@@ -139346,15 +139379,15 @@ const AGe = async ({
139346
139379
  /* @__PURE__ */ se.jsx(
139347
139380
  Oc,
139348
139381
  {
139349
- title: n ? "" : "Conbo key is required",
139382
+ title: o ? "" : "Conbo key is required",
139350
139383
  placement: fi.TOP,
139351
139384
  arrow: !0,
139352
139385
  children: /* @__PURE__ */ se.jsx(Xe, { sx: { px: "20px" }, children: /* @__PURE__ */ se.jsx(
139353
139386
  Gr,
139354
139387
  {
139355
139388
  size: "full",
139356
- onClick: y,
139357
- disabled: l || !n,
139389
+ onClick: b,
139390
+ disabled: p || !o,
139358
139391
  children: "Search"
139359
139392
  }
139360
139393
  ) })
@@ -139804,34 +139837,46 @@ const AGe = async ({
139804
139837
  const n = ut.getState().editTabData, { abortController: r } = t();
139805
139838
  r && (r.abort(), e({ abortController: null, loading: !1 }), n("isRequestAborted", !0));
139806
139839
  }
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) => {
139840
+ })), LGe = ({
139841
+ baseUrl: e,
139842
+ inputValue: t,
139843
+ shouldSearchAutomatically: n
139844
+ }) => {
139845
+ 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(
139846
+ async (y) => {
139810
139847
  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);
139848
+ p("title", y.conboKey), p("color", "yellow"), await o(y), p("color", "green"), p("shouldFetchData", !0), p("isNewSearch", !0), a && p("isRequestAborted", !1);
139812
139849
  } catch {
139813
- l("color", "red");
139850
+ p("color", "red");
139814
139851
  }
139815
139852
  },
139816
- [l, n, i]
139817
- ), p = vt(async () => {
139818
- await r({ conboKey: a, baseUrl: e });
139819
- }, [e, a, r]);
139853
+ [p, o, a]
139854
+ ), f = vt(async () => {
139855
+ await i({ conboKey: u, baseUrl: e });
139856
+ }, [e, u, i]);
139820
139857
  Oe(() => {
139821
139858
  try {
139822
- !i && s ? (p(), l("shouldFetchData", !1), l("color", "green")) : (o(), l("color", "white"));
139859
+ !a && l ? (f(), p("shouldFetchData", !1), p("color", "green")) : (s(), p("color", "white"));
139823
139860
  } catch {
139824
- l("color", "red");
139861
+ p("color", "red");
139825
139862
  }
139826
139863
  }, [
139827
- l,
139828
139864
  p,
139829
- r,
139865
+ f,
139830
139866
  i,
139831
- s
139867
+ a,
139868
+ l
139832
139869
  ]);
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 }) });
139870
+ const m = r != null && r.isLeftPanelShown ? "flex" : "none";
139871
+ return /* @__PURE__ */ se.jsx(Xe, { position: "relative", height: "100%", display: m, children: /* @__PURE__ */ se.jsx(
139872
+ EGe,
139873
+ {
139874
+ onSubmit: h,
139875
+ baseUrl: e,
139876
+ inputValue: t,
139877
+ shouldSearchAutomatically: n
139878
+ }
139879
+ ) });
139835
139880
  }, RGe = ({
139836
139881
  title: e,
139837
139882
  onHomeClick: t,
@@ -140350,28 +140395,34 @@ const AGe = async ({
140350
140395
  t
140351
140396
  ])
140352
140397
  };
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", []);
140398
+ }, jKe = ({
140399
+ siteId: e,
140400
+ onHomeClick: t,
140401
+ baseUrl: n = "",
140402
+ inputValue: r = "",
140403
+ shouldSearchAutomatically: o
140404
+ }) => {
140405
+ const { isLeftPanelShown: i, isAbortModalOpened: s } = ut(yn), { loading: a } = jm("FetchAllTabs"), { loading: l } = jm("FetchConfiguration"), { loading: u } = jm("FetchKitsElements"), {
140406
+ onFetchKitsElements: p,
140407
+ onFetchAllTabs: h,
140408
+ onFetchConfiguration: f,
140409
+ clearStore: m
140410
+ } = jee(), { clearDetectionsStore: y } = X0(), M = ZN(), { clearData: b, loading: N, abortReidRequests: v } = qN(), [x, T] = ut((I) => [
140411
+ I.clearTabsData,
140412
+ I.editTabData
140413
+ ]), { handleTabActions: D } = HGe(t);
140414
+ if (Tp(n), wp(e), Oe(() => (document.title = xs.CONBO_MATCH, h(), () => {
140415
+ m(), b(), y(), x(), T("selectedDeletedItems", []);
140365
140416
  }), [
140366
- M,
140417
+ b,
140418
+ y,
140367
140419
  m,
140368
- f,
140369
- v,
140370
140420
  x,
140371
- p
140421
+ T,
140422
+ h
140372
140423
  ]), Oe(() => {
140373
- y || (u({ siteId: t }), h({ deploymentId: t }));
140374
- }, [h, u, y, t]), s || l || a)
140424
+ M || (p({ siteId: e }), f({ deploymentId: e }));
140425
+ }, [f, p, M, e]), a || u || l)
140375
140426
  return /* @__PURE__ */ se.jsx(
140376
140427
  Xe,
140377
140428
  {
@@ -140382,37 +140433,44 @@ const AGe = async ({
140382
140433
  children: /* @__PURE__ */ se.jsx(Mp, {})
140383
140434
  }
140384
140435
  );
140385
- if (!y)
140436
+ if (!M)
140386
140437
  return null;
140387
- const D = /* @__PURE__ */ se.jsx(
140438
+ const w = /* @__PURE__ */ se.jsx(
140388
140439
  RGe,
140389
140440
  {
140390
140441
  title: xs.CONBO_MATCH,
140391
- onHomeClick: n,
140392
- isLoading: b
140442
+ onHomeClick: t,
140443
+ isLoading: N
140444
+ }
140445
+ ), j = /* @__PURE__ */ se.jsx(
140446
+ LGe,
140447
+ {
140448
+ baseUrl: n,
140449
+ inputValue: r,
140450
+ shouldSearchAutomatically: o
140393
140451
  }
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,
140452
+ ), P = /* @__PURE__ */ se.jsx(QGe, {}), _ = /* @__PURE__ */ se.jsx(FGe, { baseUrl: n }), z = {
140453
+ open: s && N,
140396
140454
  title: "Leave the page?",
140397
140455
  message: `Search result is currently being loaded. If you open a new tab, the ongoing search will be canceled.
140398
140456
  Are you sure you want to continue?`,
140399
140457
  onClose: () => {
140400
- x("isAbortModalOpened", !1);
140458
+ T("isAbortModalOpened", !1);
140401
140459
  },
140402
140460
  onContinue: () => {
140403
- N(), x("color", "white"), x("isAbortModalOpened", !1), T();
140461
+ v(), T("color", "white"), T("isAbortModalOpened", !1), D();
140404
140462
  }
140405
140463
  };
140406
140464
  return /* @__PURE__ */ se.jsx(
140407
140465
  wg,
140408
140466
  {
140409
- isLeftPanelShown: o,
140410
- header: D,
140411
- sidebarLeft: w,
140412
- content: j,
140413
- sidebarRight: P,
140414
- baseUrl: r,
140415
- abortModalProps: k
140467
+ isLeftPanelShown: i,
140468
+ header: w,
140469
+ sidebarLeft: j,
140470
+ content: P,
140471
+ sidebarRight: _,
140472
+ baseUrl: n,
140473
+ abortModalProps: z
140416
140474
  }
140417
140475
  );
140418
140476
  }, 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.68",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",