@owp/core 2.5.15 → 2.5.16

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.
Files changed (34) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index12.js +2 -2
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index15.js +2 -2
  6. package/dist/_virtual/index5.js +2 -2
  7. package/dist/components/OwpQuerySelector/OwpQuerySelector.js +184 -177
  8. package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
  9. package/dist/components/OwpTable/internal/treeGridTableStyle.js +16 -21
  10. package/dist/components/OwpTable/internal/treeGridTableStyle.js.map +1 -1
  11. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +250 -198
  12. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  13. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +141 -127
  14. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  15. package/dist/constants/treeGrid.js +32 -26
  16. package/dist/constants/treeGrid.js.map +1 -1
  17. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  18. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  19. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  20. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  21. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  22. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  23. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  24. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  25. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  26. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  27. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  28. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  29. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  30. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  31. package/dist/owp-app.css +1 -1
  32. package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +1 -1
  33. package/dist/types/constants/treeGrid.d.ts +3 -3
  34. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- var a = {};
1
+ var r = {};
2
2
  export {
3
- a as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index10.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var a = {};
2
2
  export {
3
- r as __exports
3
+ a as __exports
4
4
  };
5
5
  //# sourceMappingURL=index12.js.map
@@ -1,5 +1,5 @@
1
- var e = {};
1
+ var r = {};
2
2
  export {
3
- e as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index13.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var e = {};
2
2
  export {
3
- r as __exports
3
+ e as __exports
4
4
  };
5
5
  //# sourceMappingURL=index14.js.map
@@ -1,5 +1,5 @@
1
- var e = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- e as __module
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index15.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ e as __module
4
4
  };
5
5
  //# sourceMappingURL=index5.js.map
@@ -1,266 +1,273 @@
1
- var gt = Object.defineProperty;
2
- var s = (t, e) => gt(t, "name", { value: e, configurable: !0 });
3
- import { jsx as Ot } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
- import { OwpSelectorBase as bt } from "../OwpSelectorBase/OwpSelectorBase.js";
5
- import { splitSelectorValue as D, mergeSelectorOptions as St } from "../OwpSelectorBase/utils/querySelectorUtils.js";
6
- import { STORAGE_ACCESS_TOKEN_KEY as Qt } from "../../constants/localStorageKeys.js";
7
- import { useOwpAppContext as ht } from "../../contexts/OwpAppProvider.js";
8
- import { useGetCurrentUser as wt } from "../../hooks/useCurrentUser.js";
9
- import { createJsonString as Et } from "../../utils/createJsonString.js";
10
- import { getApiLanguageCode as Lt } from "../../utils/language.js";
11
- import { useQuery as J } from "@tanstack/react-query";
12
- import { useState as C, useMemo as j, useEffect as T } from "react";
13
- import { isArray as st } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
14
- import { isPlainObject as It } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";
15
- import { isFunction as ct } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isFunction.js";
16
- const Bt = "resultData", P = /* @__PURE__ */ s((t) => typeof t == "string" || typeof t == "number" ? `${t}` : "", "getQuerySelectorOptionLabelText"), Ct = /* @__PURE__ */ s((t) => ({
17
- jsondata: Et(t)
18
- }), "defaultBuildRequestQuery"), rt = /* @__PURE__ */ s((t, e) => e != null && e.length ? [...t, e] : t, "appendQuerySelectorQueryKeyDeps"), z = /* @__PURE__ */ s((t) => {
1
+ var Qt = Object.defineProperty;
2
+ var s = (t, n) => Qt(t, "name", { value: n, configurable: !0 });
3
+ import { jsx as wt } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
+ import { OwpSelectorBase as ht } from "../OwpSelectorBase/OwpSelectorBase.js";
5
+ import { splitSelectorValue as P, mergeSelectorOptions as Et } from "../OwpSelectorBase/utils/querySelectorUtils.js";
6
+ import { STORAGE_ACCESS_TOKEN_KEY as Lt } from "../../constants/localStorageKeys.js";
7
+ import { useOwpAppContext as Ct } from "../../contexts/OwpAppProvider.js";
8
+ import { useGetCurrentUser as It } from "../../hooks/useCurrentUser.js";
9
+ import { createJsonString as Bt } from "../../utils/createJsonString.js";
10
+ import { getApiLanguageCode as Nt } from "../../utils/language.js";
11
+ import { useQuery as y } from "@tanstack/react-query";
12
+ import { clsx as st } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
13
+ import { useState as B, useMemo as N, useEffect as j } from "react";
14
+ import { isArray as it } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
15
+ import { isPlainObject as jt } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";
16
+ import { isFunction as at } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isFunction.js";
17
+ const $t = "resultData", v = /* @__PURE__ */ s((t) => typeof t == "string" || typeof t == "number" ? `${t}` : "", "getQuerySelectorOptionLabelText"), Tt = /* @__PURE__ */ s((t) => ({
18
+ jsondata: Bt(t)
19
+ }), "defaultBuildRequestQuery"), ct = /* @__PURE__ */ s((t, n) => n != null && n.length ? [...t, n] : t, "appendQuerySelectorQueryKeyDeps"), G = /* @__PURE__ */ s((t) => {
19
20
  if (t instanceof Date)
20
21
  return t.toJSON();
21
22
  if (typeof t == "bigint")
22
23
  return t.toString();
23
- if (st(t))
24
- return t.map((e) => z(e));
25
- if (It(t))
26
- return Object.keys(t).sort().reduce((e, i) => {
27
- const d = z(t[i]);
28
- return d === void 0 || (e[i] = d), e;
24
+ if (it(t))
25
+ return t.map((n) => G(n));
26
+ if (jt(t))
27
+ return Object.keys(t).sort().reduce((n, c) => {
28
+ const g = G(t[c]);
29
+ return g === void 0 || (n[c] = g), n;
29
30
  }, {});
30
- if (!(ct(t) || typeof t == "symbol"))
31
+ if (!(at(t) || typeof t == "symbol"))
31
32
  return t;
32
- }, "normalizeQuerySelectorKeyValue"), jt = /* @__PURE__ */ s((t) => JSON.stringify(z(t)), "createQuerySelectorScopeKey"), Tt = /* @__PURE__ */ s((t, e, i, d) => {
33
- const S = new URL(t.endsWith("/") ? t : `${t}/`), c = new URL(e.startsWith("/") ? e.slice(1) : e, S);
34
- return Object.entries(i).forEach(([f, m]) => {
35
- m != null && c.searchParams.set(f, typeof m == "string" ? m : JSON.stringify(m));
36
- }), d && c.searchParams.set("TOKEN", d), c.searchParams.set("i18nextLng", Lt()), c.toString();
37
- }, "createQuerySelectorRequestUrl"), $t = /* @__PURE__ */ s((t, e) => {
33
+ }, "normalizeQuerySelectorKeyValue"), Vt = /* @__PURE__ */ s((t) => JSON.stringify(G(t)), "createQuerySelectorScopeKey"), Mt = /* @__PURE__ */ s((t, n, c, g) => {
34
+ const C = new URL(t.endsWith("/") ? t : `${t}/`), f = new URL(n.startsWith("/") ? n.slice(1) : n, C);
35
+ return Object.entries(c).forEach(([l, u]) => {
36
+ u != null && f.searchParams.set(l, typeof u == "string" ? u : JSON.stringify(u));
37
+ }), g && f.searchParams.set("TOKEN", g), f.searchParams.set("i18nextLng", Nt()), f.toString();
38
+ }, "createQuerySelectorRequestUrl"), _t = /* @__PURE__ */ s((t, n) => {
38
39
  if (!t || typeof t != "object")
39
40
  return [];
40
- const i = t[e];
41
- return st(i) ? i : [];
42
- }, "getQuerySelectorResponseList"), Vt = /* @__PURE__ */ s((t, e, i) => `${(i ? i(t) : `${(t == null ? void 0 : t[e ?? ""]) ?? ""}`) ?? ""}`.trim(), "resolveQuerySelectorValue"), Mt = /* @__PURE__ */ s((t, e, i) => `${(i ? i(t) : `${(t == null ? void 0 : t[e ?? ""]) ?? ""}`) ?? ""}`.trim(), "resolveQuerySelectorLabel"), _t = /* @__PURE__ */ s((t, e, i, d, S) => t.map((c) => {
43
- const f = Vt(c, e, d);
44
- return f ? {
45
- label: Mt(c, i, S),
46
- raw: c,
47
- value: f
41
+ const c = t[n];
42
+ return it(c) ? c : [];
43
+ }, "getQuerySelectorResponseList"), Rt = /* @__PURE__ */ s((t, n, c) => `${(c ? c(t) : `${(t == null ? void 0 : t[n ?? ""]) ?? ""}`) ?? ""}`.trim(), "resolveQuerySelectorValue"), Jt = /* @__PURE__ */ s((t, n, c) => `${(c ? c(t) : `${(t == null ? void 0 : t[n ?? ""]) ?? ""}`) ?? ""}`.trim(), "resolveQuerySelectorLabel"), zt = /* @__PURE__ */ s((t, n, c, g, C) => t.map((f) => {
44
+ const l = Rt(f, n, g);
45
+ return l ? {
46
+ label: Jt(f, c, C),
47
+ raw: f,
48
+ value: l
48
49
  } : null;
49
- }).filter((c) => c != null), "mapQuerySelectorOptions"), Zt = /* @__PURE__ */ s(({
50
+ }).filter((f) => f != null), "mapQuerySelectorOptions"), Pt = /* @__PURE__ */ s(({
50
51
  apiUrl: t,
51
- asyncSearch: e,
52
- buildRequestQuery: i = Ct,
53
- disableAllValueItem: d,
54
- filterOptions: S,
55
- multiple: c,
56
- query: f,
57
- queryKeyDeps: m,
58
- responseListKey: Q = Bt,
59
- selectorType: q = "select",
60
- value: O,
61
- valueKey: h,
62
- valueResolver: it,
63
- labelKey: w,
64
- labelResolver: ut,
65
- onChange: k,
66
- defaultValue: $,
67
- textFieldProps: E,
68
- ...at
52
+ asyncSearch: n,
53
+ buildRequestQuery: c = Tt,
54
+ className: g,
55
+ disableAllValueItem: C,
56
+ filterOptions: f,
57
+ multiple: l,
58
+ query: u,
59
+ queryKeyDeps: $,
60
+ responseListKey: Q = $t,
61
+ selectorType: T = "select",
62
+ value: b,
63
+ valueKey: w,
64
+ valueResolver: ut,
65
+ labelKey: h,
66
+ labelResolver: ft,
67
+ onChange: W,
68
+ defaultValue: V,
69
+ textFieldProps: m,
70
+ ...lt
69
71
  }) => {
70
- const { env: G } = ht(), W = wt(), B = `${(G == null ? void 0 : G.apiBaseUrl) ?? ""}`.trim(), ft = `${(W == null ? void 0 : W.token) ?? localStorage.getItem(Qt) ?? ""}`.trim(), n = q === "autocomplete" ? e : void 0, u = n != null, v = u ? !0 : d, lt = (n == null ? void 0 : n.minLength) ?? 1, tt = (n == null ? void 0 : n.debounceMs) ?? 300, [Y, x] = C(O ?? $ ?? ""), [dt, p] = C(""), [ot, V] = C(""), [F, M] = C(""), et = m != null && m.length ? z(m) : void 0, b = jt(
71
- rt(
72
- [t, f, Q, h, w],
72
+ const { env: Y } = Ct(), H = It(), I = `${(Y == null ? void 0 : Y.apiBaseUrl) ?? ""}`.trim(), mt = `${(H == null ? void 0 : H.token) ?? localStorage.getItem(Lt) ?? ""}`.trim(), e = T === "autocomplete" ? n : void 0, i = e != null, tt = i ? !0 : C, dt = (e == null ? void 0 : e.minLength) ?? 1, ot = (e == null ? void 0 : e.debounceMs) ?? 300, [U, X] = B(b ?? V ?? ""), [gt, p] = B(""), [nt, M] = B(""), [Z, _] = B(""), et = $ != null && $.length ? G($) : void 0, S = Vt(
73
+ ct(
74
+ [t, u, Q, w, h],
73
75
  et
74
76
  )
75
- ), [_, mt] = C(() => ({
77
+ ), [R, pt] = B(() => ({
76
78
  options: {},
77
- scopeKey: b
78
- })), nt = j(
79
- () => _.scopeKey === b ? _.options : {},
80
- [_.options, _.scopeKey, b]
81
- ), L = j(() => D(Y), [Y]), H = u && F.trim().length >= lt, N = /* @__PURE__ */ s((...o) => rt(["owp", "query-selector", ...o], et), "createSelectorQueryKey");
82
- T(() => {
83
- O !== void 0 && x(O);
84
- }, [O]), T(() => {
85
- O === void 0 && x($ ?? "");
86
- }, [$, O]), T(() => {
87
- if (!u)
79
+ scopeKey: S
80
+ })), rt = N(
81
+ () => R.scopeKey === S ? R.options : {},
82
+ [R.options, R.scopeKey, S]
83
+ ), E = N(() => P(U), [U]), A = i && Z.trim().length >= dt, J = /* @__PURE__ */ s((...o) => ct(["owp", "query-selector", ...o], et), "createSelectorQueryKey");
84
+ j(() => {
85
+ b !== void 0 && X(b);
86
+ }, [b]), j(() => {
87
+ b === void 0 && X(V ?? "");
88
+ }, [V, b]), j(() => {
89
+ if (!i)
88
90
  return;
89
91
  const o = window.setTimeout(() => {
90
- M(ot.trim());
91
- }, tt);
92
+ _(nt.trim());
93
+ }, ot);
92
94
  return () => {
93
95
  window.clearTimeout(o);
94
96
  };
95
- }, [tt, u, ot]);
96
- const R = /* @__PURE__ */ s(async (o) => {
97
+ }, [ot, i, nt]);
98
+ const z = /* @__PURE__ */ s(async (o) => {
97
99
  const r = await fetch(
98
- Tt(B, t, i(o), ft)
100
+ Mt(I, t, c(o), mt)
99
101
  ), a = await r.json();
100
102
  if (!r.ok || (a == null ? void 0 : a.resultCode) === "STATUS_0")
101
103
  throw new Error(`${(a == null ? void 0 : a.resultMessage) ?? "Failed to fetch selector options"}`);
102
- const l = $t(a, Q), g = ct(S) ? S(l) : l;
103
- return _t(
104
- g,
105
- h,
104
+ const d = _t(a, Q), O = at(f) ? f(d) : d;
105
+ return zt(
106
+ O,
106
107
  w,
107
- it,
108
- ut
108
+ h,
109
+ ut,
110
+ ft
109
111
  );
110
- }, "fetchOptions"), U = J({
111
- queryKey: N(t, f, Q, h, w),
112
- enabled: !!B && !u,
113
- queryFn: /* @__PURE__ */ s(() => R(f), "queryFn")
114
- }), X = J({
115
- queryKey: N(
112
+ }, "fetchOptions"), K = y({
113
+ queryKey: J(t, u, Q, w, h),
114
+ enabled: !!I && !i,
115
+ queryFn: /* @__PURE__ */ s(() => z(u), "queryFn")
116
+ }), D = y({
117
+ queryKey: J(
116
118
  "search",
117
119
  t,
118
- f,
119
- F,
120
+ u,
121
+ Z,
120
122
  Q,
121
- h,
122
- w
123
+ w,
124
+ h
123
125
  ),
124
- enabled: !!B && u && H,
125
- queryFn: /* @__PURE__ */ s(() => R({
126
- ...f,
127
- ...(n == null ? void 0 : n.buildKeywordQuery(F)) ?? {}
126
+ enabled: !!I && i && A,
127
+ queryFn: /* @__PURE__ */ s(() => z({
128
+ ...u,
129
+ ...(e == null ? void 0 : e.buildKeywordQuery(Z)) ?? {}
128
130
  }), "queryFn")
129
- }), Z = J({
130
- queryKey: N(
131
+ }), q = y({
132
+ queryKey: J(
131
133
  "all",
132
134
  t,
133
- f,
135
+ u,
134
136
  Q,
135
- h,
136
- w
137
+ w,
138
+ h
137
139
  ),
138
- enabled: !!B && u && (!!L.length || !!c && !v),
140
+ enabled: !!I && i && (!!E.length || !!l && !tt),
139
141
  queryFn: /* @__PURE__ */ s(() => {
140
142
  var o;
141
- return R({
142
- ...f,
143
- ...((o = n == null ? void 0 : n.buildAllQuery) == null ? void 0 : o.call(n)) ?? {}
143
+ return z({
144
+ ...u,
145
+ ...((o = e == null ? void 0 : e.buildAllQuery) == null ? void 0 : o.call(e)) ?? {}
144
146
  });
145
147
  }, "queryFn")
146
- }), A = J({
147
- queryKey: N(
148
+ }), x = y({
149
+ queryKey: J(
148
150
  "selected",
149
151
  t,
150
- f,
151
- L,
152
+ u,
153
+ E,
152
154
  Q,
153
- h,
154
- w
155
+ w,
156
+ h
155
157
  ),
156
- enabled: !!B && u && !!L.length && !!(n != null && n.buildSelectedQuery),
158
+ enabled: !!I && i && !!E.length && !!(e != null && e.buildSelectedQuery),
157
159
  queryFn: /* @__PURE__ */ s(() => {
158
160
  var o;
159
- return R({
160
- ...f,
161
- ...((o = n == null ? void 0 : n.buildSelectedQuery) == null ? void 0 : o.call(n, L)) ?? {}
161
+ return z({
162
+ ...u,
163
+ ...((o = e == null ? void 0 : e.buildSelectedQuery) == null ? void 0 : o.call(e, E)) ?? {}
162
164
  });
163
165
  }, "queryFn")
164
- }), K = j(() => u ? H ? X.data ?? [] : [] : U.data ?? [], [
165
- U.data,
166
- u,
167
- X.data,
168
- H
169
- ]), I = j(
170
- () => St(
171
- K,
172
- Z.data,
173
- A.data,
174
- Object.values(nt)
166
+ }), F = N(() => i ? A ? D.data ?? [] : [] : K.data ?? [], [
167
+ K.data,
168
+ i,
169
+ D.data,
170
+ A
171
+ ]), L = N(
172
+ () => Et(
173
+ F,
174
+ q.data,
175
+ x.data,
176
+ Object.values(rt)
175
177
  ),
176
- [Z.data, nt, K, A.data]
177
- ), y = j(
178
+ [q.data, rt, F, x.data]
179
+ ), k = N(
178
180
  () => {
179
181
  const o = {};
180
- return I.forEach((r) => {
182
+ return L.forEach((r) => {
181
183
  o[r.value] = r;
182
184
  }), o;
183
185
  },
184
- [I]
185
- ), pt = U.isLoading || X.isLoading || Z.isLoading || A.isLoading;
186
- return T(() => {
187
- I.length && mt((o) => {
188
- const r = o.scopeKey === b ? o.options : {}, a = { ...r };
189
- let l = !1;
190
- return I.forEach((g) => {
191
- a[g.value] !== g && (a[g.value] = g, l = !0);
192
- }), !l && o.scopeKey === b ? o : {
193
- options: l ? a : r,
194
- scopeKey: b
186
+ [L]
187
+ ), Ot = K.isLoading || D.isLoading || q.isLoading || x.isLoading, bt = st(T === "autocomplete" && "!min-w-160", g), St = st(
188
+ T === "autocomplete" && !(m != null && m.className) && "w-full",
189
+ m == null ? void 0 : m.className
190
+ );
191
+ return j(() => {
192
+ L.length && pt((o) => {
193
+ const r = o.scopeKey === S ? o.options : {}, a = { ...r };
194
+ let d = !1;
195
+ return L.forEach((O) => {
196
+ a[O.value] !== O && (a[O.value] = O, d = !0);
197
+ }), !d && o.scopeKey === S ? o : {
198
+ options: d ? a : r,
199
+ scopeKey: S
195
200
  };
196
201
  });
197
- }, [b, I]), T(() => {
202
+ }, [S, L]), j(() => {
198
203
  var r;
199
- if (!u)
204
+ if (!i)
200
205
  return;
201
- if (c) {
206
+ if (l) {
202
207
  p("");
203
208
  return;
204
209
  }
205
- const o = L[0];
210
+ const o = E[0];
206
211
  if (!o) {
207
212
  p("");
208
213
  return;
209
214
  }
210
- p(P(((r = y[o]) == null ? void 0 : r.label) ?? ""));
211
- }, [u, c, y, L]), /* @__PURE__ */ Ot(
212
- bt,
215
+ p(v(((r = k[o]) == null ? void 0 : r.label) ?? ""));
216
+ }, [i, l, k, E]), /* @__PURE__ */ wt(
217
+ ht,
213
218
  {
214
- ...at,
215
- allOptions: I,
219
+ ...lt,
220
+ allOptions: L,
216
221
  allValueMode: "joined",
217
- autocompleteInputValue: u ? dt : void 0,
218
- defaultValue: $,
219
- disableAllValueItem: v,
220
- disableClientFilter: u,
221
- loading: pt,
222
- multiple: c,
223
- onAutocompleteInputChange: u ? (o, r) => {
224
- r !== "reset" && (c && r !== "input" || (p(o), V(o)));
222
+ autocompleteInputValue: i ? gt : void 0,
223
+ className: bt,
224
+ defaultValue: V,
225
+ disableAllValueItem: tt,
226
+ disableClientFilter: i,
227
+ loading: Ot,
228
+ multiple: l,
229
+ onAutocompleteInputChange: i ? (o, r) => {
230
+ r !== "reset" && (l && r !== "input" || (p(o), M(o)));
225
231
  } : void 0,
226
232
  onChange: /* @__PURE__ */ s((o) => {
227
233
  var r;
228
- if (x(o.target.value), u) {
229
- const a = D(o.target.value);
230
- if (c)
231
- p(""), V(""), M("");
234
+ if (X(o.target.value), i) {
235
+ const a = P(o.target.value);
236
+ if (l)
237
+ p(""), M(""), _("");
232
238
  else {
233
- const l = a[0], g = l ? P(((r = y[l]) == null ? void 0 : r.label) ?? "") : "";
234
- p(g), V(""), M("");
239
+ const d = a[0], O = d ? v(((r = k[d]) == null ? void 0 : r.label) ?? "") : "";
240
+ p(O), M(""), _("");
235
241
  }
236
242
  }
237
- k == null || k(o);
243
+ W == null || W(o);
238
244
  }, "onChange"),
239
- options: K,
240
- selectorType: q,
245
+ options: F,
246
+ selectorType: T,
241
247
  textFieldProps: {
242
- ...E,
248
+ ...m,
249
+ className: St,
243
250
  onBlur: /* @__PURE__ */ s((o) => {
244
251
  var r, a;
245
- if (u) {
246
- if (c)
252
+ if (i) {
253
+ if (l)
247
254
  p("");
248
255
  else {
249
- const l = D(Y)[0];
256
+ const d = P(U)[0];
250
257
  p(
251
- l ? P(((r = y[l]) == null ? void 0 : r.label) ?? "") : ""
258
+ d ? v(((r = k[d]) == null ? void 0 : r.label) ?? "") : ""
252
259
  );
253
260
  }
254
- V(""), M("");
261
+ M(""), _("");
255
262
  }
256
- (a = E == null ? void 0 : E.onBlur) == null || a.call(E, o);
263
+ (a = m == null ? void 0 : m.onBlur) == null || a.call(m, o);
257
264
  }, "onBlur")
258
265
  },
259
- value: O
266
+ value: b
260
267
  }
261
268
  );
262
269
  }, "OwpQuerySelector");
263
270
  export {
264
- Zt as OwpQuerySelector
271
+ Pt as OwpQuerySelector
265
272
  };
266
273
  //# sourceMappingURL=OwpQuerySelector.js.map