@turquoisehealth/pit-viper 2.78.0 → 2.79.0

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.
@@ -115484,12 +115484,25 @@ const Rz = {
115484
115484
  filter: i.queryText || ""
115485
115485
  };
115486
115486
  else {
115487
- const n = t[o].conditions || [];
115488
- t[o] = {
115487
+ const n = t[o];
115488
+ n.conditions ? t[o] = {
115489
+ filterType: "text",
115490
+ operator: "OR",
115491
+ conditions: [
115492
+ ...n.conditions,
115493
+ {
115494
+ type: i.exactMatch ? "equals" : "contains",
115495
+ filter: i.queryText || ""
115496
+ }
115497
+ ]
115498
+ } : t[o] = {
115489
115499
  filterType: "text",
115490
115500
  operator: "OR",
115491
115501
  conditions: [
115492
- ...n,
115502
+ {
115503
+ type: n.type,
115504
+ filter: n.filter
115505
+ },
115493
115506
  {
115494
115507
  type: i.exactMatch ? "equals" : "contains",
115495
115508
  filter: i.queryText || ""
@@ -116529,7 +116542,7 @@ const Rz = {
116529
116542
  }
116530
116543
  }), Uje = /* @__PURE__ */ er(jje, [["__scopeId", "data-v-706ed5a9"]]), vY = () => {
116531
116544
  const e = (n, r) => {
116532
- const a = n || { queryTerms: [], freeTextTerms: [] }, l = r.queryTerm || {};
116545
+ const a = n || { queryTerms: [] }, l = r.queryTerm || {};
116533
116546
  return t(r) && !o(n, r) && a.queryTerms.push(l), a;
116534
116547
  }, t = (n) => n.queryTerm ? n.queryTerm.queryText !== void 0 && n.queryTerm.queryText.trim() !== "" : !1, i = (n, r) => n.queryField === r.queryField && n.exactMatch === r.exactMatch && n.queryText === r.queryText && n.queryDisplayField === r.queryDisplayField, o = (n, r) => !!n && n.queryTerms.some((a) => i(a, r.queryTerm || {}));
116535
116548
  return {
@@ -116537,9 +116550,7 @@ const Rz = {
116537
116550
  containsQueryOption: o,
116538
116551
  removeQueryOption: (n, r) => {
116539
116552
  if (!n) return null;
116540
- const a = n.queryTerms.findIndex(
116541
- (l) => i(l, r.queryTerm || {})
116542
- );
116553
+ const a = n.queryTerms.findIndex((l) => i(l, r.queryTerm || {}));
116543
116554
  return a !== -1 && n.queryTerms.splice(a, 1), n;
116544
116555
  }
116545
116556
  };