@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.
@@ -45139,12 +45139,25 @@ const Tu = {
45139
45139
  filter: o.queryText || ""
45140
45140
  };
45141
45141
  else {
45142
- const r = t[i].conditions || [];
45143
- t[i] = {
45142
+ const r = t[i];
45143
+ r.conditions ? t[i] = {
45144
+ filterType: "text",
45145
+ operator: "OR",
45146
+ conditions: [
45147
+ ...r.conditions,
45148
+ {
45149
+ type: o.exactMatch ? "equals" : "contains",
45150
+ filter: o.queryText || ""
45151
+ }
45152
+ ]
45153
+ } : t[i] = {
45144
45154
  filterType: "text",
45145
45155
  operator: "OR",
45146
45156
  conditions: [
45147
- ...r,
45157
+ {
45158
+ type: r.type,
45159
+ filter: r.filter
45160
+ },
45148
45161
  {
45149
45162
  type: o.exactMatch ? "equals" : "contains",
45150
45163
  filter: o.queryText || ""
@@ -46208,7 +46221,7 @@ const cW = { class: "pv-flex" }, uW = {
46208
46221
  }
46209
46222
  }), FW = /* @__PURE__ */ po(xW, [["__scopeId", "data-v-706ed5a9"]]), jf = () => {
46210
46223
  const e = (r, n) => {
46211
- const a = r || { queryTerms: [], freeTextTerms: [] }, l = n.queryTerm || {};
46224
+ const a = r || { queryTerms: [] }, l = n.queryTerm || {};
46212
46225
  return t(n) && !i(r, n) && a.queryTerms.push(l), a;
46213
46226
  }, t = (r) => r.queryTerm ? r.queryTerm.queryText !== void 0 && r.queryTerm.queryText.trim() !== "" : !1, o = (r, n) => r.queryField === n.queryField && r.exactMatch === n.exactMatch && r.queryText === n.queryText && r.queryDisplayField === n.queryDisplayField, i = (r, n) => !!r && r.queryTerms.some((a) => o(a, n.queryTerm || {}));
46214
46227
  return {
@@ -46216,9 +46229,7 @@ const cW = { class: "pv-flex" }, uW = {
46216
46229
  containsQueryOption: i,
46217
46230
  removeQueryOption: (r, n) => {
46218
46231
  if (!r) return null;
46219
- const a = r.queryTerms.findIndex(
46220
- (l) => o(l, n.queryTerm || {})
46221
- );
46232
+ const a = r.queryTerms.findIndex((l) => o(l, n.queryTerm || {}));
46222
46233
  return a !== -1 && r.queryTerms.splice(a, 1), r;
46223
46234
  }
46224
46235
  };