@inkeep/cxkit-primitives 0.5.114 → 0.5.116

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.
@@ -1,152 +1,155 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
2
+ import { jsx as r } from "react/jsx-runtime";
3
3
  import { ikp as t } from "./factory.js";
4
- import { forwardRef as v, useRef as f, useEffect as h } from "react";
5
- import y from "react-textarea-autosize";
6
- import { Trigger as A, Icon as L, Content as V, Viewport as H, Item as E, ItemText as D, ItemIndicator as N, Root as q, Value as M } from "../atoms/select.js";
7
- import * as w from "@radix-ui/react-checkbox";
8
- import { useIntelligentForm as s } from "./intelligent-form/intelligent-form-provider.js";
9
- import { IntelligentFormProvider as ji } from "./intelligent-form/intelligent-form-provider.js";
10
- import * as p from "@radix-ui/react-scroll-area";
4
+ import { forwardRef as b, useRef as v, useEffect as P } from "react";
5
+ import x from "react-textarea-autosize";
6
+ import { Trigger as A, Icon as V, Content as L, Viewport as H, Item as D, ItemText as E, ItemIndicator as N, Root as q, Value as M } from "../atoms/select.js";
7
+ import { ComboboxRoot as z, ComboboxControl as O, ComboboxInput as U, ComboboxTrigger as j, ComboboxPositioner as Q, ComboboxContent as W, ComboboxItem as $, ComboboxItemText as G, ComboboxSelectedTags as J, ComboboxItemIndicator as K } from "../atoms/combobox.js";
8
+ import { useComboboxItems as gt } from "../atoms/combobox.js";
9
+ import * as y from "@radix-ui/react-checkbox";
10
+ import { useIntelligentForm as m } from "./intelligent-form/intelligent-form-provider.js";
11
+ import { IntelligentFormProvider as St } from "./intelligent-form/intelligent-form-provider.js";
12
+ import * as S from "@radix-ui/react-scroll-area";
11
13
  import { BuiltInIconRenderer as g } from "../atoms/icons/built-in-icon-renderer.js";
12
- import { maybeRender as C, dataAttr as a } from "../utils/misc.js";
13
- import { Controller as z } from "react-hook-form";
14
- import { IntelligentFormFieldProvider as O, useIntelligentFormField as u } from "../providers/intelligent-form-field-provider.js";
15
- import { CheckboxIcon as U } from "../atoms/icons/checkbox-icon.js";
16
- import { useInkeepConfig as R } from "../providers/config-provider.js";
17
- import { SourceItemProvider as j, useSourceItem as x } from "../providers/source-item-provider.js";
18
- import { LinkWithQueryParams as Q } from "../atoms/link.js";
19
- import { Markdown as W } from "../atoms/markdown/index.js";
20
- import { useComposedRefs as I } from "../utils/compose-refs.js";
21
- import { composeEventHandlers as F } from "../utils/compose-event-handlers.js";
22
- import { transformInkeepSource as $ } from "../utils/transform-source/index.js";
23
- const G = t("form", {
14
+ import { maybeRender as f, dataAttr as F } from "../utils/misc.js";
15
+ import { Controller as X } from "react-hook-form";
16
+ import { IntelligentFormFieldProvider as Y, useIntelligentFormField as u } from "../providers/intelligent-form-field-provider.js";
17
+ import { CheckboxIcon as Z } from "../atoms/icons/checkbox-icon.js";
18
+ import { useInkeepConfig as w } from "../providers/config-provider.js";
19
+ import { SourceItemProvider as ee, useSourceItem as T } from "../providers/source-item-provider.js";
20
+ import { LinkWithQueryParams as ie } from "../atoms/link.js";
21
+ import { Markdown as te } from "../atoms/markdown/index.js";
22
+ import { useComposedRefs as C } from "../utils/compose-refs.js";
23
+ import { composeEventHandlers as a } from "../utils/compose-event-handlers.js";
24
+ import { transformInkeepSource as oe } from "../utils/transform-source/index.js";
25
+ import { useShadow as ne } from "../atoms/shadow/context.js";
26
+ const re = t("form", {
24
27
  _id: "intelligentForm__Root"
25
- }), Ue = (i) => {
26
- const { onSubmit: e, ...n } = i, { handleSubmit: r } = s();
27
- return /* @__PURE__ */ o(G, { onSubmit: F(e, r), ...n });
28
- }, je = t("h2", {
28
+ }), oi = (i) => {
29
+ const { onSubmit: e, ...o } = i, { handleSubmit: n } = m();
30
+ return /* @__PURE__ */ r(re, { onSubmit: a(e, n), ...o });
31
+ }, ni = t("h2", {
29
32
  _id: "intelligentForm__Heading",
30
33
  children: "Contact Support"
31
- }), Qe = t("div", {
34
+ }), ri = t("div", {
32
35
  _id: "intelligentForm__Content"
33
- }), We = t(p.Root, {
36
+ }), li = t(S.Root, {
34
37
  _id: "intelligentForm__Content__ScrollArea"
35
- }), J = t(p.Viewport, {
38
+ }), le = t(S.Viewport, {
36
39
  _id: "intelligentForm__Content__ScrollAreaViewport"
37
- }), $e = (i) => {
38
- const { children: e, ...n } = i;
39
- return /* @__PURE__ */ o(
40
- J,
40
+ }), mi = (i) => {
41
+ const { children: e, ...o } = i;
42
+ return /* @__PURE__ */ r(
43
+ le,
41
44
  {
42
45
  children: (
43
46
  /* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
44
- /* @__PURE__ */ o("div", { "data-part": "grid", style: { display: "grid" }, children: e })
47
+ /* @__PURE__ */ r("div", { "data-part": "grid", style: { display: "grid" }, children: e })
45
48
  ),
46
- ...n
49
+ ...o
47
50
  }
48
51
  );
49
- }, Ge = t(
50
- p.ScrollAreaScrollbar,
52
+ }, si = t(
53
+ S.ScrollAreaScrollbar,
51
54
  {
52
55
  _id: "intelligentForm__Content__ScrollAreaScrollbar"
53
56
  }
54
- ), Je = t(
55
- p.ScrollAreaThumb,
57
+ ), ci = t(
58
+ S.ScrollAreaThumb,
56
59
  {
57
60
  _id: "intelligentForm__Content__ScrollAreaThumb"
58
61
  }
59
- ), Ke = t(p.Corner, {
62
+ ), di = t(S.Corner, {
60
63
  _id: "intelligentForm__Content__ScrollAreaCorner"
61
- }), K = t("div", {
64
+ }), me = t("div", {
62
65
  _id: "intelligentForm__Success"
63
- }), Xe = (i) => {
64
- const { children: e, ...n } = i, { isSubmitSuccessful: r } = s();
65
- return r ? /* @__PURE__ */ o(K, { ...n, children: e }) : null;
66
- }, X = t(g, {
66
+ }), ai = (i) => {
67
+ const { children: e, ...o } = i, { isSubmitSuccessful: n } = m();
68
+ return n ? /* @__PURE__ */ r(me, { ...o, children: e }) : null;
69
+ }, se = t(g, {
67
70
  _id: "intelligentForm__SuccessIcon"
68
- }), Ye = (i) => {
71
+ }), Fi = (i) => {
69
72
  const {
70
73
  formSettings: { successView: e }
71
- } = s();
72
- return /* @__PURE__ */ o(
73
- X,
74
+ } = m();
75
+ return /* @__PURE__ */ r(
76
+ se,
74
77
  {
75
78
  iconSettings: e.icon ?? { builtIn: "LuCircleCheck" },
76
79
  ...i
77
80
  }
78
81
  );
79
- }, Y = t("h2", {
82
+ }, ce = t("h2", {
80
83
  _id: "intelligentForm__SuccessHeading"
81
- }), Ze = (i) => {
84
+ }), ui = (i) => {
82
85
  const {
83
86
  formSettings: { successView: e }
84
- } = s();
85
- return /* @__PURE__ */ o(Y, { children: e.heading, ...i });
86
- }, Z = t("p", {
87
+ } = m();
88
+ return /* @__PURE__ */ r(ce, { children: e.heading, ...i });
89
+ }, de = t("p", {
87
90
  _id: "intelligentForm__SuccessMessage"
88
- }), ei = (i) => {
91
+ }), _i = (i) => {
89
92
  const {
90
93
  formSettings: { successView: e }
91
- } = s();
92
- return /* @__PURE__ */ o(Z, { children: e.message, ...i });
93
- }, ii = t("div", {
94
+ } = m();
95
+ return /* @__PURE__ */ r(de, { children: e.message, ...i });
96
+ }, gi = t("div", {
94
97
  _id: "intelligentForm__PrimaryForm"
95
- }), ee = t("div", {
98
+ }), ae = t("div", {
96
99
  _id: "intelligentForm__PrimaryFormFields"
97
- }), ie = t("p", {
100
+ }), Fe = t("p", {
98
101
  _id: "intelligentForm__PrimaryForm__Description"
99
- }), ti = (i) => {
102
+ }), pi = (i) => {
100
103
  const {
101
104
  formSettings: { primary: e }
102
- } = s();
103
- return e.description ? /* @__PURE__ */ o(ie, { children: e.description, ...i }) : null;
104
- }, ni = (i) => {
105
- const { children: e, ...n } = i, {
106
- formSettings: { primary: r }
107
- } = s();
108
- return /* @__PURE__ */ o(ee, { children: C(e, r.fields), ...n });
109
- }, te = t("button", {
105
+ } = m();
106
+ return e.description ? /* @__PURE__ */ r(Fe, { children: e.description, ...i }) : null;
107
+ }, Si = (i) => {
108
+ const { children: e, ...o } = i, {
109
+ formSettings: { primary: n }
110
+ } = m();
111
+ return /* @__PURE__ */ r(ae, { children: f(e, n.fields), ...o });
112
+ }, ue = t("button", {
110
113
  _id: "intelligentForm__PrimaryFormSubmit",
111
114
  type: "button",
112
115
  children: "Next"
113
- }), ri = (i) => {
114
- const { onClick: e, ...n } = i, { submittedPrimaryForm: r, handleSubmitPrimaryForm: l } = s();
115
- return /* @__PURE__ */ o(
116
- te,
116
+ }), bi = (i) => {
117
+ const { onClick: e, ...o } = i, { submittedPrimaryForm: n, handleSubmitPrimaryForm: l } = m();
118
+ return /* @__PURE__ */ r(
119
+ ue,
117
120
  {
118
- "data-submitted": a(r),
119
- onClick: F(e, l),
120
- ...n
121
+ "data-submitted": F(n),
122
+ onClick: a(e, l),
123
+ ...o
121
124
  }
122
125
  );
123
- }, ne = t("div", {
126
+ }, _e = t("div", {
124
127
  _id: "intelligentForm__Field"
125
- }), oi = (i) => {
126
- const { field: e, autoFocus: n, ...r } = i, { control: l, errors: c } = s();
127
- return /* @__PURE__ */ o(
128
- z,
128
+ }), Ci = (i) => {
129
+ const { field: e, autoFocus: o, ...n } = i, { control: l, errors: s } = m();
130
+ return /* @__PURE__ */ r(
131
+ X,
129
132
  {
130
133
  name: e.name,
131
134
  control: l,
132
135
  rules: {
133
136
  required: e.isRequired ? `${e.label} is required.` : void 0
134
137
  },
135
- render: ({ field: m }) => {
136
- const d = m.value !== void 0 || e.inputType === "file";
137
- return /* @__PURE__ */ o(
138
- O,
138
+ render: ({ field: c }) => {
139
+ const d = c.value !== void 0 || e.inputType === "file";
140
+ return /* @__PURE__ */ r(
141
+ Y,
139
142
  {
140
- "data-invalid": a(!!c[e.name]),
143
+ "data-invalid": F(!!s[e.name]),
141
144
  field: e,
142
- fieldProps: m,
143
- autoFocus: n,
144
- children: d && /* @__PURE__ */ o(
145
- ne,
145
+ fieldProps: c,
146
+ autoFocus: o,
147
+ children: d && /* @__PURE__ */ r(
148
+ _e,
146
149
  {
147
150
  "data-input-type": e.inputType,
148
- "data-hidden": a(e.isHidden),
149
- ...r
151
+ "data-hidden": F(e.isHidden),
152
+ ...n
150
153
  }
151
154
  )
152
155
  }
@@ -154,420 +157,489 @@ const G = t("form", {
154
157
  }
155
158
  }
156
159
  );
157
- }, re = t("label", {
160
+ }, ge = t("label", {
158
161
  _id: "intelligentForm__FieldLabel"
159
- }), li = (i) => {
162
+ }), Ii = (i) => {
160
163
  const { field: e } = u();
161
- return /* @__PURE__ */ o(
162
- re,
164
+ return /* @__PURE__ */ r(
165
+ ge,
163
166
  {
164
- "data-required": a(e.isRequired),
167
+ "data-required": F(e.isRequired),
165
168
  htmlFor: e.name,
166
169
  children: e.label,
167
170
  ...i
168
171
  }
169
172
  );
170
- }, oe = t("input", {
173
+ }, pe = t("input", {
171
174
  _id: "intelligentForm__FieldText",
172
175
  type: "text"
173
- }), T = v((i, e) => {
176
+ }), R = b((i, e) => {
174
177
  const {
175
- field: n,
176
- error: r,
178
+ field: o,
179
+ error: n,
177
180
  fieldProps: {
178
181
  onChange: l,
179
- onBlur: c,
180
- ref: m,
182
+ onBlur: s,
183
+ ref: c,
181
184
  ...d
182
185
  },
183
- autoFocus: S
184
- } = u(), _ = I(
186
+ autoFocus: p
187
+ } = u(), _ = C(
185
188
  e,
186
- m
189
+ c
187
190
  );
188
- return /* @__PURE__ */ o(
189
- oe,
191
+ return /* @__PURE__ */ r(
192
+ pe,
190
193
  {
191
- asChild: n.inputType === "textarea",
194
+ asChild: o.inputType === "textarea",
192
195
  ref: _,
193
- id: n.name,
194
- autoFocus: S,
195
- placeholder: "placeholder" in n ? n.placeholder : void 0,
196
- "data-invalid": a(!!r),
197
- onChange: F(i.onChange, l),
198
- onBlur: F(i.onBlur, c),
196
+ id: o.name,
197
+ autoFocus: p,
198
+ placeholder: "placeholder" in o ? o.placeholder : void 0,
199
+ "data-invalid": F(!!n),
200
+ onChange: a(i.onChange, l),
201
+ onBlur: a(i.onBlur, s),
199
202
  ...d,
200
203
  ...i,
201
- children: n.inputType === "textarea" ? /* @__PURE__ */ o(y, { minRows: 3, maxRows: 10 }) : null
204
+ children: o.inputType === "textarea" ? /* @__PURE__ */ r(x, { minRows: 3, maxRows: 10 }) : null
202
205
  }
203
206
  );
204
- }), si = t(T, {
207
+ }), vi = t(R, {
205
208
  _id: "intelligentForm__FieldEmail",
206
209
  type: "email"
207
- }), le = t("input", {
210
+ }), Se = t("input", {
208
211
  _id: "intelligentForm__FieldFile",
209
212
  type: "file",
210
213
  multiple: !0
211
- }), ci = (i) => {
214
+ }), Pi = (i) => {
212
215
  const {
213
216
  field: e,
214
- error: n,
215
- fieldProps: { value: r, onChange: l, onBlur: c, ...m },
217
+ error: o,
218
+ fieldProps: { value: n, onChange: l, onBlur: s, ...c },
216
219
  autoFocus: d
217
- } = u(), { onChange: S, onBlur: _, ...b } = i, P = (k) => {
220
+ } = u(), { onChange: p, onBlur: _, ...h } = i, I = (k) => {
218
221
  const B = k.target.files;
219
222
  l(B);
220
223
  };
221
- return /* @__PURE__ */ o(
222
- le,
224
+ return /* @__PURE__ */ r(
225
+ Se,
223
226
  {
224
227
  id: e.name,
225
228
  autoFocus: d,
226
- "data-value": r,
227
- "data-invalid": a(!!n),
228
- ...b,
229
- ...m,
230
- onChange: F(S, P),
231
- onBlur: F(_, c)
229
+ "data-value": n,
230
+ "data-invalid": F(!!o),
231
+ ...h,
232
+ ...c,
233
+ onChange: a(p, I),
234
+ onBlur: a(_, s)
232
235
  }
233
236
  );
234
- }, mi = t(
235
- T,
237
+ }, fi = t(
238
+ R,
236
239
  {
237
240
  _id: "intelligentForm__FieldTextArea",
238
241
  type: "textarea",
239
242
  asChild: !0,
240
- children: /* @__PURE__ */ o(y, { rows: 1, maxRows: 8 })
243
+ children: /* @__PURE__ */ r(x, { rows: 1, maxRows: 8 })
241
244
  }
242
- ), se = t(w.Root, {
245
+ ), be = t(y.Root, {
243
246
  _id: "intelligentForm__FieldCheckbox"
244
- }), di = (i) => {
245
- const { field: e, error: n, fieldProps: r, autoFocus: l } = u(), { onCheckedChange: c, ...m } = i;
246
- return /* @__PURE__ */ o(
247
- se,
247
+ }), hi = (i) => {
248
+ const { field: e, error: o, fieldProps: n, autoFocus: l } = u(), { onCheckedChange: s, ...c } = i;
249
+ return /* @__PURE__ */ r(
250
+ be,
248
251
  {
249
252
  id: e.name,
250
253
  name: e.name,
251
254
  autoFocus: l,
252
- "data-invalid": a(!!n),
253
- checked: r.value,
254
- onCheckedChange: F(c, r.onChange),
255
- ...m
255
+ "data-invalid": F(!!o),
256
+ checked: n.value,
257
+ onCheckedChange: a(s, n.onChange),
258
+ ...c
256
259
  }
257
260
  );
258
- }, ai = t(w.Indicator, {
261
+ }, xi = t(y.Indicator, {
259
262
  _id: "intelligentForm__FieldCheckboxIndicator",
260
- children: /* @__PURE__ */ o(U, {})
261
- }), ce = t(q, {
263
+ children: /* @__PURE__ */ r(Z, {})
264
+ }), Ce = t(q, {
262
265
  _id: "intelligentForm__FieldSelect"
263
- }), Fi = (i) => {
264
- const { field: e, error: n, fieldProps: r } = u(), { onValueChange: l, ...c } = i;
265
- return /* @__PURE__ */ o(
266
- ce,
266
+ }), yi = (i) => {
267
+ const { field: e, error: o, fieldProps: n } = u(), { onValueChange: l, ...s } = i;
268
+ return /* @__PURE__ */ r(
269
+ Ce,
267
270
  {
268
271
  name: e.name,
269
- "data-invalid": a(!!n),
270
- value: r.value,
271
- onValueChange: F(l, r.onChange),
272
- ...c
272
+ "data-invalid": F(!!o),
273
+ value: n.value,
274
+ onValueChange: a(l, n.onChange),
275
+ ...s
273
276
  }
274
277
  );
275
- }, ui = t(A, {
278
+ }, wi = t(A, {
276
279
  _id: "intelligentForm__FieldSelect__Trigger"
277
- }), me = t(M, {
280
+ }), Ie = t(M, {
278
281
  _id: "intelligentForm__FieldSelect__Value"
279
- }), _i = (i) => {
282
+ }), Ti = (i) => {
280
283
  const { field: e } = u();
281
- return /* @__PURE__ */ o(
282
- me,
284
+ return /* @__PURE__ */ r(
285
+ Ie,
283
286
  {
284
287
  placeholder: "placeholder" in e ? e.placeholder : void 0,
285
288
  ...i
286
289
  }
287
290
  );
288
- }, gi = t(L, {
291
+ }, Ri = t(V, {
289
292
  _id: "intelligentForm__FieldSelect__Icon",
290
293
  asChild: !0,
291
- children: /* @__PURE__ */ o(g, { iconSettings: { builtIn: "LuChevronDown" } })
292
- }), Si = t(V, {
294
+ children: /* @__PURE__ */ r(g, { iconSettings: { builtIn: "LuChevronDown" } })
295
+ }), ki = t(L, {
293
296
  _id: "intelligentForm__FieldSelect__Content",
294
297
  position: "popper"
295
- }), pi = t(H, {
298
+ }), Bi = t(H, {
296
299
  _id: "intelligentForm__FieldSelect__Viewport"
297
- }), vi = t(E, {
300
+ }), Ai = t(D, {
298
301
  _id: "intelligentForm__FieldSelect__Item"
299
- }), Ii = t(D, {
302
+ }), Vi = t(E, {
300
303
  _id: "intelligentForm__FieldSelect__ItemText"
301
- }), Pi = t(
304
+ }), Li = t(
302
305
  N,
303
306
  {
304
307
  _id: "intelligentForm__FieldSelect__ItemIndicator",
305
308
  asChild: !0,
306
- children: /* @__PURE__ */ o(g, { iconSettings: { builtIn: "LuCheck" } })
309
+ children: /* @__PURE__ */ r(g, { iconSettings: { builtIn: "LuCheck" } })
307
310
  }
308
- ), de = t("span", {
311
+ ), Hi = (i) => {
312
+ const { field: e, error: o, fieldProps: n, autoFocus: l } = u(), s = ne();
313
+ if (e.inputType !== "combobox") return null;
314
+ const { onValueChange: c, children: d, ...p } = i, _ = s?.shadowHost ? () => s.shadowHost.shadowRoot ?? document : void 0;
315
+ return /* @__PURE__ */ r(
316
+ z,
317
+ {
318
+ ...p,
319
+ id: e.name,
320
+ name: e.name,
321
+ items: e.items ?? [],
322
+ defaultValue: e.defaultValue,
323
+ onValueChange: a(c, n.onChange),
324
+ multiple: e.multiple,
325
+ placeholder: "placeholder" in e ? e.placeholder : void 0,
326
+ invalid: !!o,
327
+ autoFocus: l,
328
+ getRootNode: _,
329
+ children: d
330
+ }
331
+ );
332
+ }, Di = t(O, {
333
+ _id: "intelligentForm__FieldCombobox__Control"
334
+ }), Ei = t(U, {
335
+ _id: "intelligentForm__FieldCombobox__Input"
336
+ }), Ni = t(j, {
337
+ _id: "intelligentForm__FieldCombobox__Trigger",
338
+ children: /* @__PURE__ */ r(g, { iconSettings: { builtIn: "LuChevronDown" } })
339
+ }), qi = t(Q, {
340
+ _id: "intelligentForm__FieldCombobox__Positioner"
341
+ }), Mi = t(W, {
342
+ _id: "intelligentForm__FieldCombobox__Content"
343
+ }), zi = t($, {
344
+ _id: "intelligentForm__FieldCombobox__Item"
345
+ }), Oi = t(G, {
346
+ _id: "intelligentForm__FieldCombobox__ItemText"
347
+ }), Ui = t(J, {
348
+ _id: "intelligentForm__FieldCombobox__SelectedTags"
349
+ }), ji = t(K, {
350
+ _id: "intelligentForm__FieldCombobox__ItemIndicator",
351
+ children: /* @__PURE__ */ r(g, { iconSettings: { builtIn: "LuCheck" } })
352
+ }), ve = t("p", {
353
+ _id: "intelligentForm__FieldDescription"
354
+ }), Qi = (i) => {
355
+ const { field: e } = u();
356
+ return e.description ? /* @__PURE__ */ r(ve, { children: e.description, ...i }) : null;
357
+ }, Pe = t("span", {
309
358
  _id: "intelligentForm__FieldError"
310
- }), fi = (i) => {
359
+ }), Wi = (i) => {
311
360
  const { error: e } = u();
312
- return e ? /* @__PURE__ */ o(de, { children: e.message?.toString(), ...i }) : null;
313
- }, hi = t("div", {
361
+ return e ? /* @__PURE__ */ r(Pe, { children: e.message?.toString(), ...i }) : null;
362
+ }, $i = t("div", {
314
363
  _id: "intelligentForm__BotHeading"
315
- }), Ci = t(g, {
364
+ }), Gi = t(g, {
316
365
  _id: "intelligentForm__BotHeading__Icon",
317
366
  iconSettings: { builtIn: "LuSparkles" }
318
- }), ae = t("div", {
367
+ }), fe = t("div", {
319
368
  _id: "intelligentForm__BotHeading__Name"
320
- }), bi = (i) => {
321
- const { baseSettings: e } = R(), { organizationDisplayName: n } = e ?? {}, {
322
- formSettings: { aiAssistantName: r }
323
- } = s();
324
- return /* @__PURE__ */ o(ae, { children: r ?? n, ...i });
325
- }, Fe = t("div", {
369
+ }), Ji = (i) => {
370
+ const { baseSettings: e } = w(), { organizationDisplayName: o } = e ?? {}, {
371
+ formSettings: { aiAssistantName: n }
372
+ } = m();
373
+ return /* @__PURE__ */ r(fe, { children: n ?? o, ...i });
374
+ }, he = t("div", {
326
375
  _id: "intelligentForm__Loading"
327
- }), yi = v(({ ...i }, e) => {
328
- const { loading: n } = s(), r = f(null), l = I(e, r);
329
- return h(() => {
330
- n && r.current && r.current.scrollIntoView({
376
+ }), Ki = b(({ ...i }, e) => {
377
+ const { loading: o } = m(), n = v(null), l = C(e, n);
378
+ return P(() => {
379
+ o && n.current && n.current.scrollIntoView({
331
380
  behavior: "smooth",
332
381
  block: "nearest",
333
382
  inline: "nearest"
334
383
  });
335
- }, [n]), n ? /* @__PURE__ */ o(Fe, { ref: l, ...i }) : null;
336
- }), ue = t("div", {
384
+ }, [o]), o ? /* @__PURE__ */ r(he, { ref: l, ...i }) : null;
385
+ }), xe = t("div", {
337
386
  _id: "intelligentForm__ConfidentResponse"
338
- }), wi = v(({ ...i }, e) => {
339
- const { aiResponse: n, loading: r } = s(), l = f(null), c = I(e, l);
340
- return h(() => {
341
- !r && n.answerConfidence && l.current && l.current.scrollIntoView({
387
+ }), Xi = b(({ ...i }, e) => {
388
+ const { aiResponse: o, loading: n } = m(), l = v(null), s = C(e, l);
389
+ return P(() => {
390
+ !n && o.answerConfidence && l.current && l.current.scrollIntoView({
342
391
  behavior: "smooth",
343
392
  block: "nearest",
344
393
  inline: "nearest"
345
394
  });
346
- }, [r, n.answerConfidence]), n.answerConfidence ? /* @__PURE__ */ o(ue, { ref: c, ...i }) : null;
347
- }), _e = t(W, {
395
+ }, [n, o.answerConfidence]), o.answerConfidence ? /* @__PURE__ */ r(xe, { ref: s, ...i }) : null;
396
+ }), ye = t(te, {
348
397
  _id: "intelligentForm__ConfidentAnswer"
349
- }), Ri = (i) => {
350
- const { aiResponse: e } = s();
351
- return /* @__PURE__ */ o(_e, { shouldOpenLinksInNewTab: !0, children: e.answer, ...i });
352
- }, ge = t("button", {
398
+ }), Yi = (i) => {
399
+ const { aiResponse: e } = m();
400
+ return /* @__PURE__ */ r(ye, { shouldOpenLinksInNewTab: !0, children: e.answer, ...i });
401
+ }, we = t("button", {
353
402
  _id: "intelligentForm__ConfidentResponseButton",
354
403
  type: "button"
355
- }), xi = (i) => {
356
- const { onClick: e, ...n } = i, { showSecondaryFields: r, setShowSecondaryFields: l } = s(), c = () => {
404
+ }), Zi = (i) => {
405
+ const { onClick: e, ...o } = i, { showSecondaryFields: n, setShowSecondaryFields: l } = m(), s = () => {
357
406
  l(!0);
358
407
  };
359
- return /* @__PURE__ */ o(
360
- ge,
408
+ return /* @__PURE__ */ r(
409
+ we,
361
410
  {
362
- "data-escalated": a(r),
363
- onClick: F(e, c),
364
- ...n
411
+ "data-escalated": F(n),
412
+ onClick: a(e, s),
413
+ ...o
365
414
  }
366
415
  );
367
- }, Ti = t(g, {
416
+ }, et = t(g, {
368
417
  _id: "intelligentForm__ConfidentResponseButton__Icon",
369
418
  iconSettings: { builtIn: "LuUser" }
370
- }), ki = t("span", {
419
+ }), it = t("span", {
371
420
  _id: "intelligentForm__ConfidentResponseButton__Label",
372
421
  children: "Escalate to human"
373
- }), Se = t("div", {
422
+ }), Te = t("div", {
374
423
  _id: "intelligentForm__SecondaryForm"
375
- }), Bi = v(({ ...i }, e) => {
376
- const { showSecondaryFields: n } = s(), r = f(null), l = I(e, r);
377
- return h(() => {
378
- n && r.current && r.current.scrollIntoView({
424
+ }), tt = b(({ ...i }, e) => {
425
+ const { showSecondaryFields: o } = m(), n = v(null), l = C(e, n);
426
+ return P(() => {
427
+ o && n.current && n.current.scrollIntoView({
379
428
  behavior: "smooth",
380
429
  block: "nearest",
381
430
  inline: "nearest"
382
431
  });
383
- }, [n]), n ? /* @__PURE__ */ o(Se, { ref: l, ...i }) : null;
384
- }), pe = t("p", {
432
+ }, [o]), o ? /* @__PURE__ */ r(Te, { ref: l, ...i }) : null;
433
+ }), Re = t("p", {
385
434
  _id: "intelligentForm__SecondaryForm__Description"
386
- }), Ai = (i) => {
435
+ }), ot = (i) => {
387
436
  const {
388
437
  formSettings: { secondary: e },
389
- aiResponse: { answerConfidence: n }
390
- } = s();
438
+ aiResponse: { answerConfidence: o }
439
+ } = m();
391
440
  if (!e.description) return null;
392
- const r = typeof e.description == "string" ? e.description : (
441
+ const n = typeof e.description == "string" ? e.description : (
393
442
  // If description is an object, use the confident description if the answer is confident
394
- n ? e.description.confident : e.description.default
443
+ o ? e.description.confident : e.description.default
395
444
  );
396
- return /* @__PURE__ */ o(pe, { children: r, ...i });
397
- }, ve = t("div", {
445
+ return /* @__PURE__ */ r(Re, { children: n, ...i });
446
+ }, ke = t("div", {
398
447
  _id: "intelligentForm__SecondaryFormFields"
399
- }), Li = (i) => {
400
- const { children: e, ...n } = i, {
401
- formSettings: { secondary: r }
402
- } = s();
403
- return /* @__PURE__ */ o(ve, { children: C(e, r.fields), ...n });
404
- }, Ie = t("button", {
448
+ }), nt = (i) => {
449
+ const { children: e, ...o } = i, {
450
+ formSettings: { secondary: n }
451
+ } = m();
452
+ return /* @__PURE__ */ r(ke, { children: f(e, n.fields), ...o });
453
+ }, Be = t("button", {
405
454
  _id: "intelligentForm__SecondaryFormSubmit",
406
455
  type: "submit",
407
456
  children: "Submit"
408
- }), Vi = (i) => {
409
- const { formSettings: e, isSubmitting: n } = s(), { label: r } = e.buttons.submit;
410
- return /* @__PURE__ */ o(Ie, { disabled: n, children: r ?? "Submit", ...i });
411
- }, Pe = t("span", {
457
+ }), rt = (i) => {
458
+ const { formSettings: e, isSubmitting: o } = m(), { label: n } = e.buttons.submit;
459
+ return /* @__PURE__ */ r(Be, { disabled: o, children: n ?? "Submit", ...i });
460
+ }, Ae = t("span", {
412
461
  _id: "intelligentForm__Error"
413
- }), Hi = (i) => {
414
- const { formError: e } = s();
415
- return e ? /* @__PURE__ */ o(Pe, { children: e.message, ...i }) : null;
416
- }, Ei = t("div", {
462
+ }), lt = (i) => {
463
+ const { formError: e } = m();
464
+ return e ? /* @__PURE__ */ r(Ae, { children: e.message, ...i }) : null;
465
+ }, mt = t("div", {
417
466
  _id: "intelligentForm__Sources"
418
- }), Di = t("p", {
467
+ }), st = t("p", {
419
468
  _id: "intelligentForm__SourcesCaption",
420
469
  children: "Here are the sources I considered:"
421
- }), fe = t("div", {
470
+ }), Ve = t("div", {
422
471
  _id: "intelligentForm__SourcesList"
423
- }), Ni = (i) => {
424
- const { children: e, ...n } = i, {
425
- baseSettings: { transformSource: r, organizationDisplayName: l }
426
- } = R(), {
427
- aiResponse: { recordsConsidered: c }
428
- } = s();
429
- if (!c) return null;
430
- const m = c.reduce((d, S) => {
431
- const _ = $(S, "intelligentFormSource", {
472
+ }), ct = (i) => {
473
+ const { children: e, ...o } = i, {
474
+ baseSettings: { transformSource: n, organizationDisplayName: l }
475
+ } = w(), {
476
+ aiResponse: { recordsConsidered: s }
477
+ } = m();
478
+ if (!s) return null;
479
+ const c = s.reduce((d, p) => {
480
+ const _ = oe(p, "intelligentFormSource", {
432
481
  organizationDisplayName: l,
433
- transformSource: r
482
+ transformSource: n
434
483
  });
435
- return d.some((P) => P.url === _.url) || d.push(_), d;
484
+ return d.some((I) => I.url === _.url) || d.push(_), d;
436
485
  }, []);
437
- return /* @__PURE__ */ o(fe, { children: C(e, m), ...n });
438
- }, he = t(Q, {
486
+ return /* @__PURE__ */ r(Ve, { children: f(e, c), ...o });
487
+ }, Le = t(ie, {
439
488
  _id: "intelligentForm__Source"
440
- }), qi = (i) => {
441
- const { source: e, ...n } = i;
442
- return /* @__PURE__ */ o(j, { source: { ...e, isExternal: !!e.shouldOpenInNewTab }, children: /* @__PURE__ */ o(
443
- he,
489
+ }), dt = (i) => {
490
+ const { source: e, ...o } = i;
491
+ return /* @__PURE__ */ r(ee, { source: { ...e, isExternal: !!e.shouldOpenInNewTab }, children: /* @__PURE__ */ r(
492
+ Le,
444
493
  {
445
494
  "data-type": e.type,
446
495
  appendToUrl: e.appendToUrl,
447
496
  href: e.url,
448
497
  isExternal: e.shouldOpenInNewTab !== !1,
449
- ...n
498
+ ...o
450
499
  }
451
500
  ) });
452
- }, Ce = t(g, {
501
+ }, He = t(g, {
453
502
  _id: "intelligentForm__SourceIcon"
454
- }), Mi = (i) => {
455
- const { source: e } = x();
456
- return /* @__PURE__ */ o(Ce, { iconSettings: e.icon, "data-type": e.type, ...i });
457
- }, be = t("span", {
503
+ }), at = (i) => {
504
+ const { source: e } = T();
505
+ return /* @__PURE__ */ r(He, { iconSettings: e.icon, "data-type": e.type, ...i });
506
+ }, De = t("span", {
458
507
  _id: "intelligentForm__SourceTitle"
459
- }), zi = (i) => {
460
- const { source: e } = x();
461
- return /* @__PURE__ */ o(be, { "data-type": e.type, children: e.title, ...i });
508
+ }), Ft = (i) => {
509
+ const { source: e } = T();
510
+ return /* @__PURE__ */ r(De, { "data-type": e.type, children: e.title, ...i });
462
511
  };
463
512
  export {
464
- hi as BotHeading,
465
- Ci as BotHeadingIcon,
466
- bi as BotHeadingName,
467
- Ri as ConfidentAnswer,
468
- wi as ConfidentResponse,
469
- xi as ConfidentResponseButton,
470
- Ti as ConfidentResponseButtonIcon,
471
- ki as ConfidentResponseButtonLabel,
472
- Qe as Content,
473
- We as ContentScrollArea,
474
- Ke as ContentScrollAreaCorner,
475
- Ge as ContentScrollAreaScrollbar,
476
- Je as ContentScrollAreaThumb,
477
- $e as ContentScrollAreaViewport,
478
- Hi as Error,
479
- oi as FormField,
480
- di as FormFieldCheckbox,
481
- ai as FormFieldCheckboxIndicator,
482
- si as FormFieldEmail,
483
- fi as FormFieldError,
484
- ci as FormFieldFile,
485
- li as FormFieldLabel,
486
- Fi as FormFieldSelect,
487
- Si as FormFieldSelectContent,
488
- gi as FormFieldSelectIcon,
489
- vi as FormFieldSelectItem,
490
- Pi as FormFieldSelectItemIndicator,
491
- Ii as FormFieldSelectItemText,
492
- ui as FormFieldSelectTrigger,
493
- _i as FormFieldSelectValue,
494
- pi as FormFieldSelectViewport,
495
- T as FormFieldText,
496
- mi as FormFieldTextArea,
497
- je as Heading,
498
- hi as IntelligentFormPrimitiveBotHeading,
499
- Ci as IntelligentFormPrimitiveBotHeadingIcon,
500
- bi as IntelligentFormPrimitiveBotHeadingName,
501
- Ri as IntelligentFormPrimitiveConfidentAnswer,
502
- wi as IntelligentFormPrimitiveConfidentResponse,
503
- xi as IntelligentFormPrimitiveConfidentResponseButton,
504
- Ti as IntelligentFormPrimitiveConfidentResponseButtonIcon,
505
- ki as IntelligentFormPrimitiveConfidentResponseButtonLabel,
506
- Qe as IntelligentFormPrimitiveContent,
507
- We as IntelligentFormPrimitiveContentScrollArea,
508
- Ke as IntelligentFormPrimitiveContentScrollAreaCorner,
509
- Ge as IntelligentFormPrimitiveContentScrollAreaScrollbar,
510
- Je as IntelligentFormPrimitiveContentScrollAreaThumb,
511
- $e as IntelligentFormPrimitiveContentScrollAreaViewport,
512
- Hi as IntelligentFormPrimitiveFormError,
513
- oi as IntelligentFormPrimitiveFormField,
514
- di as IntelligentFormPrimitiveFormFieldCheckbox,
515
- ai as IntelligentFormPrimitiveFormFieldCheckboxIndicator,
516
- si as IntelligentFormPrimitiveFormFieldEmail,
517
- fi as IntelligentFormPrimitiveFormFieldError,
518
- ci as IntelligentFormPrimitiveFormFieldFile,
519
- li as IntelligentFormPrimitiveFormFieldLabel,
520
- Fi as IntelligentFormPrimitiveFormFieldSelect,
521
- Si as IntelligentFormPrimitiveFormFieldSelectContent,
522
- gi as IntelligentFormPrimitiveFormFieldSelectIcon,
523
- vi as IntelligentFormPrimitiveFormFieldSelectItem,
524
- Pi as IntelligentFormPrimitiveFormFieldSelectItemIndicator,
525
- Ii as IntelligentFormPrimitiveFormFieldSelectItemText,
526
- ui as IntelligentFormPrimitiveFormFieldSelectTrigger,
527
- _i as IntelligentFormPrimitiveFormFieldSelectValue,
528
- pi as IntelligentFormPrimitiveFormFieldSelectViewport,
529
- T as IntelligentFormPrimitiveFormFieldText,
530
- mi as IntelligentFormPrimitiveFormFieldTextArea,
531
- je as IntelligentFormPrimitiveHeading,
532
- yi as IntelligentFormPrimitiveLoading,
533
- ii as IntelligentFormPrimitivePrimaryForm,
534
- ti as IntelligentFormPrimitivePrimaryFormDescription,
535
- ni as IntelligentFormPrimitivePrimaryFormFields,
536
- ri as IntelligentFormPrimitivePrimaryFormSubmit,
537
- Ue as IntelligentFormPrimitiveRoot,
538
- Bi as IntelligentFormPrimitiveSecondaryForm,
539
- Ai as IntelligentFormPrimitiveSecondaryFormDescription,
540
- Li as IntelligentFormPrimitiveSecondaryFormFields,
541
- Vi as IntelligentFormPrimitiveSecondaryFormSubmit,
542
- qi as IntelligentFormPrimitiveSource,
543
- Mi as IntelligentFormPrimitiveSourceIcon,
544
- zi as IntelligentFormPrimitiveSourceTitle,
545
- Ei as IntelligentFormPrimitiveSources,
546
- Di as IntelligentFormPrimitiveSourcesCaption,
547
- Ni as IntelligentFormPrimitiveSourcesList,
548
- Xe as IntelligentFormPrimitiveSuccess,
549
- Ze as IntelligentFormPrimitiveSuccessHeading,
550
- Ye as IntelligentFormPrimitiveSuccessIcon,
551
- ei as IntelligentFormPrimitiveSuccessMessage,
552
- yi as Loading,
553
- ii as PrimaryForm,
554
- ti as PrimaryFormDescription,
555
- ni as PrimaryFormFields,
556
- ri as PrimaryFormSubmit,
557
- ji as Provider,
558
- Ue as Root,
559
- Bi as SecondaryForm,
560
- Ai as SecondaryFormDescription,
561
- Li as SecondaryFormFields,
562
- Vi as SecondaryFormSubmit,
563
- qi as Source,
564
- Mi as SourceIcon,
565
- zi as SourceTitle,
566
- Ei as Sources,
567
- Di as SourcesCaption,
568
- Ni as SourcesList,
569
- Xe as Success,
570
- Ze as SuccessHeading,
571
- Ye as SuccessIcon,
572
- ei as SuccessMessage
513
+ $i as BotHeading,
514
+ Gi as BotHeadingIcon,
515
+ Ji as BotHeadingName,
516
+ Yi as ConfidentAnswer,
517
+ Xi as ConfidentResponse,
518
+ Zi as ConfidentResponseButton,
519
+ et as ConfidentResponseButtonIcon,
520
+ it as ConfidentResponseButtonLabel,
521
+ ri as Content,
522
+ li as ContentScrollArea,
523
+ di as ContentScrollAreaCorner,
524
+ si as ContentScrollAreaScrollbar,
525
+ ci as ContentScrollAreaThumb,
526
+ mi as ContentScrollAreaViewport,
527
+ lt as Error,
528
+ Ci as FormField,
529
+ hi as FormFieldCheckbox,
530
+ xi as FormFieldCheckboxIndicator,
531
+ Hi as FormFieldCombobox,
532
+ Mi as FormFieldComboboxContent,
533
+ Di as FormFieldComboboxControl,
534
+ Ei as FormFieldComboboxInput,
535
+ zi as FormFieldComboboxItem,
536
+ ji as FormFieldComboboxItemIndicator,
537
+ Oi as FormFieldComboboxItemText,
538
+ qi as FormFieldComboboxPositioner,
539
+ Ui as FormFieldComboboxSelectedTags,
540
+ Ni as FormFieldComboboxTrigger,
541
+ Qi as FormFieldDescription,
542
+ vi as FormFieldEmail,
543
+ Wi as FormFieldError,
544
+ Pi as FormFieldFile,
545
+ Ii as FormFieldLabel,
546
+ yi as FormFieldSelect,
547
+ ki as FormFieldSelectContent,
548
+ Ri as FormFieldSelectIcon,
549
+ Ai as FormFieldSelectItem,
550
+ Li as FormFieldSelectItemIndicator,
551
+ Vi as FormFieldSelectItemText,
552
+ wi as FormFieldSelectTrigger,
553
+ Ti as FormFieldSelectValue,
554
+ Bi as FormFieldSelectViewport,
555
+ R as FormFieldText,
556
+ fi as FormFieldTextArea,
557
+ ni as Heading,
558
+ $i as IntelligentFormPrimitiveBotHeading,
559
+ Gi as IntelligentFormPrimitiveBotHeadingIcon,
560
+ Ji as IntelligentFormPrimitiveBotHeadingName,
561
+ Yi as IntelligentFormPrimitiveConfidentAnswer,
562
+ Xi as IntelligentFormPrimitiveConfidentResponse,
563
+ Zi as IntelligentFormPrimitiveConfidentResponseButton,
564
+ et as IntelligentFormPrimitiveConfidentResponseButtonIcon,
565
+ it as IntelligentFormPrimitiveConfidentResponseButtonLabel,
566
+ ri as IntelligentFormPrimitiveContent,
567
+ li as IntelligentFormPrimitiveContentScrollArea,
568
+ di as IntelligentFormPrimitiveContentScrollAreaCorner,
569
+ si as IntelligentFormPrimitiveContentScrollAreaScrollbar,
570
+ ci as IntelligentFormPrimitiveContentScrollAreaThumb,
571
+ mi as IntelligentFormPrimitiveContentScrollAreaViewport,
572
+ lt as IntelligentFormPrimitiveFormError,
573
+ Ci as IntelligentFormPrimitiveFormField,
574
+ hi as IntelligentFormPrimitiveFormFieldCheckbox,
575
+ xi as IntelligentFormPrimitiveFormFieldCheckboxIndicator,
576
+ Hi as IntelligentFormPrimitiveFormFieldCombobox,
577
+ Mi as IntelligentFormPrimitiveFormFieldComboboxContent,
578
+ Di as IntelligentFormPrimitiveFormFieldComboboxControl,
579
+ Ei as IntelligentFormPrimitiveFormFieldComboboxInput,
580
+ zi as IntelligentFormPrimitiveFormFieldComboboxItem,
581
+ ji as IntelligentFormPrimitiveFormFieldComboboxItemIndicator,
582
+ Oi as IntelligentFormPrimitiveFormFieldComboboxItemText,
583
+ qi as IntelligentFormPrimitiveFormFieldComboboxPositioner,
584
+ Ui as IntelligentFormPrimitiveFormFieldComboboxSelectedTags,
585
+ Ni as IntelligentFormPrimitiveFormFieldComboboxTrigger,
586
+ Qi as IntelligentFormPrimitiveFormFieldDescription,
587
+ vi as IntelligentFormPrimitiveFormFieldEmail,
588
+ Wi as IntelligentFormPrimitiveFormFieldError,
589
+ Pi as IntelligentFormPrimitiveFormFieldFile,
590
+ Ii as IntelligentFormPrimitiveFormFieldLabel,
591
+ yi as IntelligentFormPrimitiveFormFieldSelect,
592
+ ki as IntelligentFormPrimitiveFormFieldSelectContent,
593
+ Ri as IntelligentFormPrimitiveFormFieldSelectIcon,
594
+ Ai as IntelligentFormPrimitiveFormFieldSelectItem,
595
+ Li as IntelligentFormPrimitiveFormFieldSelectItemIndicator,
596
+ Vi as IntelligentFormPrimitiveFormFieldSelectItemText,
597
+ wi as IntelligentFormPrimitiveFormFieldSelectTrigger,
598
+ Ti as IntelligentFormPrimitiveFormFieldSelectValue,
599
+ Bi as IntelligentFormPrimitiveFormFieldSelectViewport,
600
+ R as IntelligentFormPrimitiveFormFieldText,
601
+ fi as IntelligentFormPrimitiveFormFieldTextArea,
602
+ ni as IntelligentFormPrimitiveHeading,
603
+ Ki as IntelligentFormPrimitiveLoading,
604
+ gi as IntelligentFormPrimitivePrimaryForm,
605
+ pi as IntelligentFormPrimitivePrimaryFormDescription,
606
+ Si as IntelligentFormPrimitivePrimaryFormFields,
607
+ bi as IntelligentFormPrimitivePrimaryFormSubmit,
608
+ oi as IntelligentFormPrimitiveRoot,
609
+ tt as IntelligentFormPrimitiveSecondaryForm,
610
+ ot as IntelligentFormPrimitiveSecondaryFormDescription,
611
+ nt as IntelligentFormPrimitiveSecondaryFormFields,
612
+ rt as IntelligentFormPrimitiveSecondaryFormSubmit,
613
+ dt as IntelligentFormPrimitiveSource,
614
+ at as IntelligentFormPrimitiveSourceIcon,
615
+ Ft as IntelligentFormPrimitiveSourceTitle,
616
+ mt as IntelligentFormPrimitiveSources,
617
+ st as IntelligentFormPrimitiveSourcesCaption,
618
+ ct as IntelligentFormPrimitiveSourcesList,
619
+ ai as IntelligentFormPrimitiveSuccess,
620
+ ui as IntelligentFormPrimitiveSuccessHeading,
621
+ Fi as IntelligentFormPrimitiveSuccessIcon,
622
+ _i as IntelligentFormPrimitiveSuccessMessage,
623
+ Ki as Loading,
624
+ gi as PrimaryForm,
625
+ pi as PrimaryFormDescription,
626
+ Si as PrimaryFormFields,
627
+ bi as PrimaryFormSubmit,
628
+ St as Provider,
629
+ oi as Root,
630
+ tt as SecondaryForm,
631
+ ot as SecondaryFormDescription,
632
+ nt as SecondaryFormFields,
633
+ rt as SecondaryFormSubmit,
634
+ dt as Source,
635
+ at as SourceIcon,
636
+ Ft as SourceTitle,
637
+ mt as Sources,
638
+ st as SourcesCaption,
639
+ ct as SourcesList,
640
+ ai as Success,
641
+ ui as SuccessHeading,
642
+ Fi as SuccessIcon,
643
+ _i as SuccessMessage,
644
+ gt as useComboboxItems
573
645
  };