@factorialco/f0-react 16.37.1 → 16.38.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.
Files changed (38) hide show
  1. package/dist/{ArchiveThumbnail-ZYA4PswK.js → ArchiveThumbnail-B8XK-LZk.js} +1 -1
  2. package/dist/{ArchiveViewer-2b9dN49e.js → ArchiveViewer-CXfdI0uI.js} +2 -2
  3. package/dist/{ChatPostComposerDialog-7EqVcFTq.js → ChatPostComposerDialog-CbvkAit4.js} +2 -2
  4. package/dist/{CoachmarkProvider-BJ4juEZJ.js → CoachmarkProvider-Df1JEhKz.js} +12362 -12353
  5. package/dist/{CodeThumbnail-BC1J1xCG.js → CodeThumbnail-CSOT4JDe.js} +1 -1
  6. package/dist/{CodeViewer-mQxlWTTr.js → CodeViewer-Ly_oYLDq.js} +4 -4
  7. package/dist/{DocumentToolbar-CzBcw-pR.js → DocumentToolbar-CdJDzgeV.js} +2 -2
  8. package/dist/{DocxViewer-mfc65BLH.js → DocxViewer-RuTmnDdK.js} +1 -1
  9. package/dist/{F0AiProcessingOverlay-B1objX19.js → F0AiProcessingOverlay-CqnORV1-.js} +2 -2
  10. package/dist/{F0Alert-BQPEGRLa.js → F0Alert-B3l2GepI.js} +2 -2
  11. package/dist/F0AudioPlayer-C5W5cAtb.js +2 -0
  12. package/dist/{F0CanvasPanel-CjdXI0dP.js → F0CanvasPanel-D4PRzR6z.js} +5 -5
  13. package/dist/{F0DocumentViewer-DTf5dyv1.js → F0DocumentViewer-DQdiz2r2.js} +2 -2
  14. package/dist/{F0DocumentViewer-C7LU44FE.js → F0DocumentViewer-zhzHWXwJ.js} +1 -1
  15. package/dist/{F0Map-BGvqrXQP.js → F0Map-CQNVmnmS.js} +3 -3
  16. package/dist/{F0Select-DZ9MlzrJ.js → F0Select-D_AGBj4P.js} +213 -212
  17. package/dist/{F0VideoPlayer-CfUDjkoQ.js → F0VideoPlayer-DMHRZZuF.js} +1 -1
  18. package/dist/F0VideoPlayer-Die8iN9j.js +1 -0
  19. package/dist/{HtmlViewer-CoBHrnSy.js → HtmlViewer-CwKTV6lj.js} +4 -4
  20. package/dist/{Map-Dz1LV4ng.js → Map-B4_fbQhT.js} +3 -3
  21. package/dist/{PdfThumbnail-Dii7dDPf.js → PdfThumbnail-CyiV_FU5.js} +1 -1
  22. package/dist/{PdfViewer-Bvn8sMuB.js → PdfViewer-CMSygETW.js} +3 -3
  23. package/dist/{SheetViewer-DZF4U5_5.js → SheetViewer-CBalTGTj.js} +3 -3
  24. package/dist/{TextViewer-DnZ8xPWo.js → TextViewer-C3gcA1GD.js} +1 -1
  25. package/dist/ai.js +2 -2
  26. package/dist/component-status.js +2 -2
  27. package/dist/experimental.d.ts +1 -1
  28. package/dist/experimental.js +5 -5
  29. package/dist/f0.d.ts +2 -2
  30. package/dist/f0.js +7 -7
  31. package/dist/{highlight-BDXA485a.js → highlight-mPkJel_v.js} +1 -1
  32. package/dist/{index-BWn4S6tf.d.ts → index-BETDM9pa.d.ts} +45 -5
  33. package/dist/{maplibre-DIO3t9oC.js → maplibre-IhyDvm3-.js} +1 -1
  34. package/dist/{pdfWorker-CI_LSQM5.js → pdfWorker-B3r9FIqr.js} +1 -1
  35. package/dist/styles.css +1 -1
  36. package/package.json +1 -1
  37. package/dist/F0AudioPlayer-B1qiG0Y0.js +0 -2
  38. package/dist/F0VideoPlayer-DFUojQQ4.js +0 -1
@@ -54080,8 +54080,8 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
54080
54080
  class: "hover:border-f1-border-critical-bold"
54081
54081
  }
54082
54082
  ]
54083
- }), eP = F(({ children: e, disabled: t, readonly: n, label: r, labelIcon: i, hideLabel: a = !1, className: o, required: s, error: u, status: d, hint: f, size: p, icon: m, canGrow: h = !1, value: g, loading: _ = !1, loadingIndicator: v, placeholder: y, clearable: x = !1, isEmpty: S = XN, emptyValue: C = YN, lengthProvider: w = ZN, maxLength: ee, hideMaxLength: E = !1, append: D, hidePlaceholder: O = !1, valueSlot: A, clearKeepsText: j = !1, canClear: te, onClickPlaceholder: ne, onClickChildren: re, onClickContent: ie, name: ae, role: oe, appendTag: se, avatar: M, "aria-controls": N, "aria-expanded": le, "aria-activedescendant": ue, "aria-autocomplete": fe, "aria-describedby": pe, buttonToggle: me, transparent: he, variant: ge = "field", editing: _e = !1, inlineText: ve, onBlurWithin: ye, ...be }, xe) => {
54084
- let Se = ge === "inline", Ce = p ?? (Se ? "md" : "sm"), we = yt(), Ee = be.id ?? we, De = t || n, [Oe, ke] = B(g);
54083
+ }), eP = F(({ children: e, disabled: t, readonly: n, label: r, labelIcon: i, hideLabel: a = !1, className: o, required: s, error: u, status: d, hint: f, size: p, icon: m, canGrow: h = !1, value: g, loading: _ = !1, loadingIndicator: v, placeholder: y, textAlign: x = "start", clearable: S = !1, isEmpty: C = XN, emptyValue: w = YN, lengthProvider: ee = ZN, maxLength: E, hideMaxLength: D = !1, append: O, hidePlaceholder: A = !1, valueSlot: j, clearKeepsText: te = !1, canClear: ne, onClickPlaceholder: re, onClickChildren: ie, onClickContent: ae, name: oe, role: se, appendTag: M, avatar: N, "aria-controls": le, "aria-expanded": ue, "aria-activedescendant": fe, "aria-autocomplete": pe, "aria-describedby": me, buttonToggle: he, transparent: ge, variant: _e = "field", editing: ve = !1, inlineText: ye, onBlurWithin: be, ...xe }, Se) => {
54084
+ let Ce = _e === "inline", we = p ?? (Ce ? "md" : "sm"), Ee = yt(), De = xe.id ?? Ee, Oe = t || n, [ke, Ae] = B(g);
54085
54085
  f && (d = {
54086
54086
  type: "default",
54087
54087
  message: f
@@ -54089,45 +54089,45 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
54089
54089
  type: "error",
54090
54090
  message: typeof u == "string" ? u : void 0
54091
54091
  }), r || console.error("F0InputField: label is required for accessibility reasons. If you don't want to show a label, set hideLabel to true."), L(() => {
54092
- ke(ee && g && w(g) > ee ? g?.substring(0, ee) : g);
54092
+ Ae(E && g && ee(g) > E ? g?.substring(0, E) : g);
54093
54093
  }, [
54094
54094
  g,
54095
- w,
54096
- ee
54095
+ ee,
54096
+ E
54097
54097
  ]);
54098
- let Ae = (e) => {
54099
- let t = (typeof e == "string" ? e : e.target.value) ?? C;
54100
- if (ee && w(t) > ee) {
54101
- if (typeof t == "string") t = t.substring(0, ee);
54098
+ let je = (e) => {
54099
+ let t = (typeof e == "string" ? e : e.target.value) ?? w;
54100
+ if (E && ee(t) > E) {
54101
+ if (typeof t == "string") t = t.substring(0, E);
54102
54102
  else return;
54103
54103
  }
54104
- ke(t), be.onChange?.(t);
54105
- }, je = () => {
54106
- j || Ae(C), be.onClear?.(), Se && ze.current?.focus();
54107
- }, Me = (e) => {
54108
- t || ie?.(e);
54109
- }, Ne = () => {
54110
- t || re?.();
54104
+ Ae(t), xe.onChange?.(t);
54105
+ }, Me = () => {
54106
+ te || je(w), xe.onClear?.(), Ce && Be.current?.focus();
54107
+ }, Ne = (e) => {
54108
+ t || ae?.(e);
54111
54109
  }, Pe = () => {
54112
- t || ne?.();
54113
- }, [Fe, Ie] = B(!1), Le = (e) => {
54114
- e.animationName === "autofill" && Ie(!0);
54115
- }, Re = z(null), ze = z(null), Be = Te(be.inputRef, ze);
54116
- L(() => (Fe && !Re.current && (Re.current = setInterval(() => {
54117
- let e = ze.current;
54118
- e && (e.matches(":-webkit-autofill") || e.matches(":autofill") || (Ie(!1), Re.current &&= (clearInterval(Re.current), null)));
54110
+ t || ie?.();
54111
+ }, Fe = () => {
54112
+ t || re?.();
54113
+ }, [Ie, Le] = B(!1), Re = (e) => {
54114
+ e.animationName === "autofill" && Le(!0);
54115
+ }, ze = z(null), Be = z(null), Ve = Te(xe.inputRef, Be);
54116
+ L(() => (Ie && !ze.current && (ze.current = setInterval(() => {
54117
+ let e = Be.current;
54118
+ e && (e.matches(":-webkit-autofill") || e.matches(":autofill") || (Le(!1), ze.current &&= (clearInterval(ze.current), null)));
54119
54119
  }, 100)), () => {
54120
- Re.current &&= (clearInterval(Re.current), null);
54121
- }), [Fe, Be]);
54122
- let Ve = d?.message ? `${Ee}-messages` : void 0, He = [pe ?? e.props["aria-describedby"], Ve].filter(Boolean).join(" ") || void 0, Ue = D || se || me, We = te ?? !S(Oe), Ge = A != null && XN(Oe) && !Fe;
54123
- return Se && !_e ? /* @__PURE__ */ H("div", {
54120
+ ze.current &&= (clearInterval(ze.current), null);
54121
+ }), [Ie, Ve]);
54122
+ let He = d?.message ? `${De}-messages` : void 0, Ue = [me ?? e.props["aria-describedby"], He].filter(Boolean).join(" ") || void 0, We = O || M || he, Ge = ne ?? !C(ke), Ke = j != null && XN(ke) && !Ie;
54123
+ return Ce && !ve ? /* @__PURE__ */ H("div", {
54124
54124
  className: c("flex h-full w-full flex-col gap-2", o),
54125
- ref: xe,
54125
+ ref: Se,
54126
54126
  children: [
54127
54127
  !a && r ? /* @__PURE__ */ V(JN, {
54128
54128
  label: r,
54129
54129
  required: s,
54130
- htmlFor: Ee,
54130
+ htmlFor: De,
54131
54131
  icon: i,
54132
54132
  className: "min-w-0 flex-1",
54133
54133
  disabled: t
@@ -54135,44 +54135,44 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
54135
54135
  /* @__PURE__ */ V(GN, {
54136
54136
  label: r,
54137
54137
  hideLabel: a,
54138
- text: Oe == null || Oe === "" ? "" : ve ?? Oe,
54138
+ text: ke == null || ke === "" ? "" : ye ?? ke,
54139
54139
  placeholder: y,
54140
- size: Ce
54140
+ size: we
54141
54141
  }),
54142
54142
  /* @__PURE__ */ V(qN, {
54143
54143
  status: d,
54144
- id: Ve
54144
+ id: He
54145
54145
  })
54146
54146
  ]
54147
54147
  }) : /* @__PURE__ */ H("div", {
54148
- className: c("flex flex-col gap-2", "pointer-events-none", t && "cursor-not-allowed", Se && "h-full w-full", he && "bg-transparent h-full w-full", o),
54149
- ref: xe,
54150
- onBlur: ye,
54148
+ className: c("flex flex-col gap-2", "pointer-events-none", t && "cursor-not-allowed", Ce && "h-full w-full", ge && "bg-transparent h-full w-full", o),
54149
+ ref: Se,
54150
+ onBlur: be,
54151
54151
  children: [
54152
- !a && r || ee && !E ? /* @__PURE__ */ V("div", {
54153
- className: c("flex max-w-full items-center", QN({ size: Ce })),
54152
+ !a && r || E && !D ? /* @__PURE__ */ V("div", {
54153
+ className: c("flex max-w-full items-center", QN({ size: we })),
54154
54154
  children: /* @__PURE__ */ H("div", {
54155
54155
  className: c("flex min-w-0 flex-1 flex-row gap-4"),
54156
54156
  "data-testid": "input-field-top",
54157
54157
  children: [!a && r ? /* @__PURE__ */ V(JN, {
54158
54158
  label: r,
54159
54159
  required: s,
54160
- htmlFor: Ee,
54160
+ htmlFor: De,
54161
54161
  icon: i,
54162
54162
  className: "min-w-0 flex-1",
54163
54163
  disabled: t
54164
- }) : null, ee && !E && !De ? /* @__PURE__ */ H("div", {
54164
+ }) : null, E && !D && !Oe ? /* @__PURE__ */ H("div", {
54165
54165
  className: "text-right text-f1-foreground-secondary",
54166
54166
  children: [
54167
- w(Oe),
54167
+ ee(ke),
54168
54168
  "/",
54169
- ee
54169
+ E
54170
54170
  ]
54171
54171
  }) : null]
54172
54172
  })
54173
54173
  }) : null,
54174
54174
  /* @__PURE__ */ V("div", {
54175
- className: c("relative transition-all", Se ? "h-full" : "h-fit", !De && !t && "hover:border-f1-border-hover", !he && [
54175
+ className: c("relative transition-all", Ce ? "h-full" : "h-fit", !Oe && !t && "hover:border-f1-border-hover", !ge && [
54176
54176
  "border-[1px] border-solid border-f1-border bg-f1-background",
54177
54177
  "group focus-within:border-f1-border-hover focus-within:ring-1 focus-within:ring-f1-border-hover",
54178
54178
  "focus-within:outline-none focus-within:ring-1 focus-within:ring-offset-1",
@@ -54181,63 +54181,63 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
54181
54181
  disabled: t || n
54182
54182
  }),
54183
54183
  WN({
54184
- size: Ce,
54185
- canGrow: h || Se
54184
+ size: we,
54185
+ canGrow: h || Ce
54186
54186
  })
54187
- ], "active-within:border-f1-border active-within:ring-1 active-within:ring-f1-border-hover", n && "border-f1-border-secondary bg-f1-background-secondary", t && "cursor-not-allowed bg-f1-background-tertiary", he && "h-full w-full "),
54187
+ ], "active-within:border-f1-border active-within:ring-1 active-within:ring-f1-border-hover", n && "border-f1-border-secondary bg-f1-background-secondary", t && "cursor-not-allowed bg-f1-background-tertiary", ge && "h-full w-full "),
54188
54188
  "data-testid": "input-field-wrapper",
54189
54189
  children: /* @__PURE__ */ H("div", {
54190
54190
  className: "pointer-events-auto relative flex h-full w-full min-w-0 flex-1",
54191
- onClick: Me,
54191
+ onClick: Ne,
54192
54192
  children: [
54193
- m || M ? /* @__PURE__ */ H("div", {
54193
+ m || N ? /* @__PURE__ */ H("div", {
54194
54194
  "data-slot": "icon",
54195
- className: c("pointer-events-none absolute left-2 top-[5px] my-auto h-5 w-5 shrink-0", Ce === "md" && "left-3 top-[9px]"),
54195
+ className: c("pointer-events-none absolute left-2 top-[5px] my-auto h-5 w-5 shrink-0", we === "md" && "left-3 top-[9px]"),
54196
54196
  children: [m ? /* @__PURE__ */ V(k, {
54197
- onClick: Me,
54197
+ onClick: Ne,
54198
54198
  icon: m,
54199
54199
  color: "default"
54200
- }) : null, M ? /* @__PURE__ */ V(de, {
54201
- avatar: M,
54200
+ }) : null, N ? /* @__PURE__ */ V(de, {
54201
+ avatar: N,
54202
54202
  size: "xs"
54203
54203
  }) : null]
54204
54204
  }) : null,
54205
- Ge ? /* @__PURE__ */ V("div", {
54205
+ Ke ? /* @__PURE__ */ V("div", {
54206
54206
  "data-slot": "value",
54207
- className: c("pointer-events-none flex min-w-0 shrink items-center pr-0", "pl-3", (m || M) && "pl-8", (m || M) && Ce === "md" && "pl-9", UN({ size: Ce })),
54208
- children: A
54207
+ className: c("pointer-events-none flex min-w-0 shrink items-center pr-0", "pl-3", (m || N) && "pl-8", (m || N) && we === "md" && "pl-9", UN({ size: we })),
54208
+ children: j
54209
54209
  }) : null,
54210
54210
  /* @__PURE__ */ V("div", {
54211
- onClick: Ne,
54211
+ onClick: Pe,
54212
54212
  className: "w-full min-w-0 flex-1",
54213
54213
  children: gt(e, {
54214
- onChange: Ae,
54215
- onBlur: be.onBlur,
54216
- onFocus: be.onFocus,
54217
- onAnimationStart: Le,
54218
- disabled: De,
54214
+ onChange: je,
54215
+ onBlur: xe.onBlur,
54216
+ onFocus: xe.onFocus,
54217
+ onAnimationStart: Re,
54218
+ disabled: Oe,
54219
54219
  readOnly: n,
54220
- role: oe,
54221
- ref: Be,
54222
- "aria-controls": N,
54223
- "aria-expanded": oe === "combobox" ? le : void 0,
54224
- "aria-activedescendant": ue,
54225
- "aria-autocomplete": fe,
54226
- ...He !== void 0 && { "aria-describedby": He },
54220
+ role: se,
54221
+ ref: Ve,
54222
+ "aria-controls": le,
54223
+ "aria-expanded": se === "combobox" ? ue : void 0,
54224
+ "aria-activedescendant": fe,
54225
+ "aria-autocomplete": pe,
54226
+ ...Ue !== void 0 && { "aria-describedby": Ue },
54227
54227
  ...d?.type === "error" && { "aria-invalid": !0 },
54228
- id: Ee,
54229
- value: Oe ?? "",
54228
+ id: De,
54229
+ value: ke ?? "",
54230
54230
  "aria-label": r || y || "no-label",
54231
54231
  "aria-busy": _,
54232
- "aria-disabled": De,
54233
- name: ae,
54234
- className: c("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (m || M) && "pl-8", (m || M) && Ce === "md" && "pl-9", Ge && "pl-0", t && "cursor-not-allowed", e.props.className, UN({ size: Ce }))
54232
+ "aria-disabled": Oe,
54233
+ name: oe,
54234
+ className: c("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (m || N) && "pl-8", (m || N) && we === "md" && "pl-9", Ke && "pl-0", x === "center" && "text-center", t && "cursor-not-allowed", e.props.className, UN({ size: we }))
54235
54235
  })
54236
54236
  }),
54237
54237
  /* @__PURE__ */ V("div", {
54238
54238
  "data-slot": "placeholder",
54239
- className: c("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !h && "bottom-0", h && "items-start", (m || M) && "pl-8", (m || M) && Ce === "md" && "pl-9", UN({ size: Ce }), y && !O && !Ge && S(Oe) && !Fe ? "opacity-100" : "opacity-0"),
54240
- onClick: Pe,
54239
+ className: c("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", x === "center" ? "justify-center" : "justify-start", !h && "bottom-0", h && "items-start", (m || N) && "pl-8", (m || N) && we === "md" && "pl-9", UN({ size: we }), y && !A && !Ke && C(ke) && !Ie ? "opacity-100" : "opacity-0"),
54240
+ onClick: Fe,
54241
54241
  "aria-hidden": "true",
54242
54242
  title: y,
54243
54243
  children: /* @__PURE__ */ V("span", {
@@ -54245,12 +54245,12 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
54245
54245
  children: y
54246
54246
  })
54247
54247
  }),
54248
- x || Ue || _ ? /* @__PURE__ */ H("div", {
54249
- className: c("flex h-fit min-w-6 items-center gap-1.5 self-center pr-[3px]", Ce === "md" && "pr-[7px]", "relative"),
54248
+ S || We || _ ? /* @__PURE__ */ H("div", {
54249
+ className: c("flex h-fit min-w-6 items-center gap-1.5 self-center pr-[3px]", we === "md" && "pr-[7px]", "relative"),
54250
54250
  children: [
54251
- x && !De ? /* @__PURE__ */ V(b, {
54252
- initial: We,
54253
- children: We ? /* @__PURE__ */ V(T.button, {
54251
+ S && !Oe ? /* @__PURE__ */ V(b, {
54252
+ initial: Ge,
54253
+ children: Ge ? /* @__PURE__ */ V(T.button, {
54254
54254
  initial: { opacity: 0 },
54255
54255
  animate: { opacity: 1 },
54256
54256
  exit: { opacity: 0 },
@@ -54264,7 +54264,7 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
54264
54264
  e.preventDefault();
54265
54265
  },
54266
54266
  onClick: (e) => {
54267
- e.stopPropagation(), je();
54267
+ e.stopPropagation(), Me();
54268
54268
  },
54269
54269
  children: /* @__PURE__ */ V(k, {
54270
54270
  icon: ce,
@@ -54273,24 +54273,24 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
54273
54273
  })
54274
54274
  }) : null
54275
54275
  }) : null,
54276
- Ue ? /* @__PURE__ */ H("div", {
54276
+ We ? /* @__PURE__ */ H("div", {
54277
54277
  className: "flex min-h-6 min-w-6 items-center justify-center self-center",
54278
54278
  children: [
54279
- D,
54280
- se ? /* @__PURE__ */ V(VN, { text: se }) : null,
54281
- me ? /* @__PURE__ */ V(yT, {
54282
- label: me.label,
54283
- icon: me.icon,
54284
- selected: me.selected,
54285
- disabled: me.disabled,
54286
- onSelectedChange: me.onChange,
54279
+ O,
54280
+ M ? /* @__PURE__ */ V(VN, { text: M }) : null,
54281
+ he ? /* @__PURE__ */ V(yT, {
54282
+ label: he.label,
54283
+ icon: he.icon,
54284
+ selected: he.selected,
54285
+ disabled: he.disabled,
54286
+ onSelectedChange: he.onChange,
54287
54287
  size: "sm"
54288
54288
  }) : null
54289
54289
  ]
54290
54290
  }) : null,
54291
54291
  /* @__PURE__ */ V(b, { children: _ ? /* @__PURE__ */ V("div", {
54292
- className: c("pointer-events-none flex h-6 w-6 items-center justify-center", v?.asOverlay && c("absolute right-2 top-1/2 -translate-y-1/2", "bg-gradient-to-l from-[#FFFFFF] from-0% dark:from-[#192231]", "via-[#FFFFFF] via-60% dark:via-[#192231]", "to-transparent to-100%", Ce === "md" && "right-3"), UN({ size: Ce })),
54293
- style: { right: typeof v?.offset == "number" ? v?.offset + (Ce === "md" ? 6 : 0) : void 0 },
54292
+ className: c("pointer-events-none flex h-6 w-6 items-center justify-center", v?.asOverlay && c("absolute right-2 top-1/2 -translate-y-1/2", "bg-gradient-to-l from-[#FFFFFF] from-0% dark:from-[#192231]", "via-[#FFFFFF] via-60% dark:via-[#192231]", "to-transparent to-100%", we === "md" && "right-3"), UN({ size: we })),
54293
+ style: { right: typeof v?.offset == "number" ? v?.offset + (we === "md" ? 6 : 0) : void 0 },
54294
54294
  children: /* @__PURE__ */ V(aT, {
54295
54295
  size: "small",
54296
54296
  className: "mt-[1px]"
@@ -54303,7 +54303,7 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
54303
54303
  }),
54304
54304
  /* @__PURE__ */ V(qN, {
54305
54305
  status: d,
54306
- id: Ve
54306
+ id: He
54307
54307
  })
54308
54308
  ]
54309
54309
  });
@@ -56944,11 +56944,12 @@ var II = _t(null), LI = F(function({ disabled: e, open: t, size: n = "sm", class
56944
56944
  size: "lg"
56945
56945
  })
56946
56946
  });
56947
- }), RI = ({ selectedCount: e, indeterminate: t, value: n, onChange: r, hideCheckbox: i = !1, items: o, paddingTop: l = !1 }) => {
56948
- let u = a(), d = (e) => {
56947
+ }), RI = ({ selectedCount: e, indeterminate: t, value: n, onChange: r, hideCheckbox: i = !1, items: o, paddingTop: l = !1, keepFocusOnClick: u = !1 }) => {
56948
+ let d = a(), f = (e) => {
56949
56949
  r(!t && e);
56950
- }, f = (e) => `${e} ${e === 1 ? u.status.selected.singular.toLowerCase() : u.status.selected.plural.toLowerCase()}`;
56950
+ }, p = (e) => `${e} ${e === 1 ? d.status.selected.singular.toLowerCase() : d.status.selected.plural.toLowerCase()}`;
56951
56951
  return /* @__PURE__ */ H("div", {
56952
+ onMouseDown: u ? (e) => e.preventDefault() : void 0,
56952
56953
  className: c("flex items-center gap-2 pr-2 pl-4", l ? "pt-3 pb-1" : "py-1"),
56953
56954
  children: [/* @__PURE__ */ V("div", {
56954
56955
  className: "flex-1 whitespace-nowrap",
@@ -56959,25 +56960,25 @@ var II = _t(null), LI = F(function({ disabled: e, open: t, size: n = "sm", class
56959
56960
  className: "flex h-[24px] items-center",
56960
56961
  children: /* @__PURE__ */ V(E, {
56961
56962
  className: "text-f1-foreground-secondary",
56962
- children: f(e)
56963
+ children: p(e)
56963
56964
  })
56964
56965
  })
56965
56966
  })
56966
56967
  }), i ? o && /* @__PURE__ */ V(ee, {
56967
56968
  variant: "ghost",
56968
56969
  size: "sm",
56969
- label: u.actions.clear,
56970
- onClick: () => d(!1),
56970
+ label: d.actions.clear,
56971
+ onClick: () => f(!1),
56971
56972
  className: "z-10",
56972
56973
  disabled: o.length === 0
56973
56974
  }) : /* @__PURE__ */ V("div", {
56974
56975
  className: "shrink-0 pr-1",
56975
56976
  children: /* @__PURE__ */ V(MO, {
56976
56977
  id: "select-all",
56977
- title: u.actions.selectAll,
56978
+ title: d.actions.selectAll,
56978
56979
  checked: t || n,
56979
56980
  indeterminate: t,
56980
- onCheckedChange: d,
56981
+ onCheckedChange: f,
56981
56982
  presentational: !0,
56982
56983
  hideLabel: !0
56983
56984
  })
@@ -57303,6 +57304,7 @@ var iL = /^\+\d{1,4}$/, aL = /* @__PURE__ */ new Set(), oL = (e) => e.type === "
57303
57304
  onPointerMove: i && !e.disabled ? (e) => {
57304
57305
  e.preventDefault(), i.setActive(r);
57305
57306
  } : void 0,
57307
+ onMouseDown: i ? (e) => e.preventDefault() : void 0,
57306
57308
  className: c(e.external && "group", "data-[active=true]:after:bg-f1-background-hover data-[active=true]:after:text-f1-foreground data-[active=true]:after:opacity-100", "focus:data-[state=checked]:after:bg-f1-background-selected-bold/10 dark:focus:data-[state=checked]:after:bg-f1-background-selected-bold/20", "data-[active=true]:data-[state=checked]:after:bg-f1-background-selected-bold/10 dark:data-[active=true]:data-[state=checked]:after:bg-f1-background-selected-bold/20"),
57307
57309
  children: /* @__PURE__ */ H("div", {
57308
57310
  className: `flex w-full gap-1.5 ${e.description ? "items-start" : "items-center"}`,
@@ -57467,7 +57469,7 @@ var mL = (e) => {
57467
57469
  render() {
57468
57470
  return this.state.hasError ? this.props.fallback ?? null : this.props.children;
57469
57471
  }
57470
- }, _L = P.forwardRef(({ className: e, type: t, label: n, labelIcon: r, icon: i, error: a, status: o, hint: s, disabled: l, required: u, value: d, placeholder: f, clearable: p, onClear: m, size: h, loading: g, isEmpty: _, emptyValue: v, maxLength: y, hideMaxLength: b, append: x, onChange: S, role: C, appendTag: w, lengthProvider: ee, onClickContent: T, hideLabel: E, name: D, onFocus: O, onBlur: k, onBlurWithin: A, onKeyDown: j, readonly: te, buttonToggle: ne, transparent: re, variant: ie, editing: ae, inlineText: oe, autocomplete: se, "aria-controls": ce, "aria-expanded": M, "aria-activedescendant": N, "aria-autocomplete": le, ...ue }, de) => /* @__PURE__ */ V(eP, {
57472
+ }, _L = P.forwardRef(({ className: e, type: t, label: n, labelIcon: r, icon: i, error: a, status: o, hint: s, disabled: l, required: u, value: d, placeholder: f, clearable: p, onClear: m, size: h, loading: g, isEmpty: _, emptyValue: v, maxLength: y, hideMaxLength: b, append: x, onChange: S, role: C, appendTag: w, lengthProvider: ee, onClickContent: T, hideLabel: E, name: D, onFocus: O, onBlur: k, onBlurWithin: A, onKeyDown: j, readonly: te, buttonToggle: ne, transparent: re, variant: ie, editing: ae, inlineText: oe, textAlign: se, hidePickerIndicator: ce = !1, autocomplete: M, "aria-controls": N, "aria-expanded": le, "aria-activedescendant": ue, "aria-autocomplete": de, ...fe }, pe) => /* @__PURE__ */ V(eP, {
57471
57473
  label: n,
57472
57474
  icon: i,
57473
57475
  labelIcon: r,
@@ -57484,10 +57486,10 @@ var mL = (e) => {
57484
57486
  placeholder: f || "",
57485
57487
  size: h,
57486
57488
  role: C,
57487
- "aria-controls": ce,
57488
- "aria-expanded": M,
57489
- "aria-activedescendant": N,
57490
- "aria-autocomplete": le,
57489
+ "aria-controls": N,
57490
+ "aria-expanded": le,
57491
+ "aria-activedescendant": ue,
57492
+ "aria-autocomplete": de,
57491
57493
  isEmpty: _,
57492
57494
  emptyValue: v,
57493
57495
  maxLength: y,
@@ -57503,19 +57505,20 @@ var mL = (e) => {
57503
57505
  onFocus: O,
57504
57506
  onBlur: k,
57505
57507
  onBlurWithin: A,
57506
- inputRef: de,
57508
+ inputRef: pe,
57507
57509
  readonly: te,
57508
57510
  buttonToggle: ne,
57509
57511
  transparent: re,
57510
57512
  variant: ie,
57511
57513
  editing: ae,
57512
57514
  inlineText: oe,
57515
+ textAlign: se,
57513
57516
  children: /* @__PURE__ */ V("input", {
57514
57517
  type: t,
57515
- autoComplete: se,
57516
- ...ue,
57518
+ autoComplete: M,
57519
+ ...fe,
57517
57520
  onKeyDown: j,
57518
- className: c("[&::-webkit-search-cancel-button]:hidden", "w-full shrink placeholder:-z-10 disabled:cursor-not-allowed", C === "combobox" && "cursor-text")
57521
+ className: c("[&::-webkit-search-cancel-button]:hidden", "w-full shrink placeholder:-z-10 disabled:cursor-not-allowed", t === "time" && ce && "[&::-webkit-calendar-picker-indicator]:hidden", C === "combobox" && "cursor-text")
57519
57522
  })
57520
57523
  }));
57521
57524
  _L.displayName = "Input";
@@ -60200,99 +60203,94 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
60200
60203
  })
60201
60204
  }) : null })]
60202
60205
  });
60203
- }, dz = (e) => Object.entries(e).some(([, e]) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e !== ""), fz = ({ enabled: e, open: t, restingText: n, onOpen: r, onClose: i, onSearchChange: a, onSearchReset: o, onCloseEmpty: s, closeWasRequested: c, onActiveMove: l, onSelectActive: u, onBackspaceOnEmpty: d, triggerRef: f }) => {
60204
- let [p, m] = B(n), [h, g] = B(!1), _ = z(null);
60206
+ }, dz = (e) => Object.entries(e).some(([, e]) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e !== ""), fz = ({ enabled: e, open: t, restingText: n, onOpen: r, onClose: i, onSearchChange: a, onSearchReset: o, onCloseEmpty: s, closeWasRequested: c, onActiveMove: l, onSelectActive: u, triggerRef: d }) => {
60207
+ let [f, p] = B(n), [m, h] = B(!1), g = z(null);
60205
60208
  L(() => {
60206
- e && !h && m(n);
60209
+ e && !m && p(n);
60207
60210
  }, [
60208
- h,
60211
+ m,
60209
60212
  e,
60210
60213
  n
60211
60214
  ]);
60212
- let v = I(() => {
60213
- let e = _.current?.getAttribute("aria-controls");
60215
+ let _ = I(() => {
60216
+ let e = g.current?.getAttribute("aria-controls");
60214
60217
  return (e ? document.getElementById(e) : null)?.closest("[data-radix-select-content]") ?? null;
60215
- }, []), y = I((e) => {
60216
- g(!0), m(e), a(e), t || r();
60218
+ }, []), v = I((e) => {
60219
+ h(!0), p(e), a(e), t || r();
60217
60220
  }, [
60218
60221
  r,
60219
60222
  a,
60220
60223
  t
60221
- ]), b = I(() => {
60222
- m(n), h && (g(!1), o());
60224
+ ]), y = I(() => {
60225
+ p(n), m && (h(!1), o());
60223
60226
  }, [
60224
- h,
60227
+ m,
60225
60228
  o,
60226
60229
  n
60227
- ]), x = I(() => {
60228
- _.current?.focus({ preventScroll: !0 });
60229
- }, []), S = z(!0), C = I(() => {
60230
- S.current && _.current?.value && _.current.select();
60231
- }, []), w = I(() => {
60232
- S.current = !0, C();
60233
- }, [C]), ee = I(() => {
60234
- C(), S.current = !1;
60235
- }, [C]), T = z(t);
60230
+ ]), b = I(() => {
60231
+ g.current?.focus({ preventScroll: !0 });
60232
+ }, []), x = z(!0), S = I(() => {
60233
+ x.current && g.current?.value && g.current.select();
60234
+ }, []), C = I(() => {
60235
+ x.current = !0, S();
60236
+ }, [S]), w = I(() => {
60237
+ S(), x.current = !1;
60238
+ }, [S]), ee = z(t);
60236
60239
  L(() => {
60237
- let n = T.current;
60238
- if (T.current = t, !e || !n || t || !c()) return;
60239
- h && p === "" && s(), b();
60240
+ let n = ee.current;
60241
+ if (ee.current = t, !e || !n || t || !c()) return;
60242
+ m && f === "" && s(), y();
60240
60243
  let r = document.activeElement;
60241
- r instanceof HTMLElement && r !== document.body && !f.current?.contains(r) || _.current?.focus({ preventScroll: !0 });
60244
+ r instanceof HTMLElement && r !== document.body && !d.current?.contains(r) || g.current?.focus({ preventScroll: !0 });
60242
60245
  }, [
60243
60246
  c,
60244
- p,
60245
- h,
60247
+ f,
60248
+ m,
60246
60249
  e,
60247
60250
  s,
60248
60251
  t,
60249
- b,
60250
- f
60252
+ y,
60253
+ d
60251
60254
  ]);
60252
- let E = I((e) => {
60253
- if (!t && !h) return;
60255
+ let T = I((e) => {
60256
+ if (!t && !m) return;
60254
60257
  let n = e.relatedTarget;
60255
- n instanceof Node && (f.current?.contains(n) || v()?.contains(n)) || (t ? n && i() : (h && p === "" && s(), b()));
60258
+ n instanceof Node && (d.current?.contains(n) || _()?.contains(n)) || (t ? n && i() : (m && f === "" && s(), y()));
60256
60259
  }, [
60257
- p,
60258
- h,
60260
+ f,
60261
+ m,
60259
60262
  i,
60260
60263
  s,
60261
60264
  t,
60262
- v,
60263
- b,
60264
- f
60265
- ]), D = I(() => {
60266
- let e = v();
60265
+ _,
60266
+ y,
60267
+ d
60268
+ ]), E = I(() => {
60269
+ let e = _();
60267
60270
  if (!e) return !1;
60268
60271
  let [t] = MI(e);
60269
60272
  return t ? (t.focus(), !0) : !1;
60270
- }, [v]);
60273
+ }, [_]);
60271
60274
  return {
60272
- draft: p,
60273
- inputRef: _,
60274
- focusInput: x,
60275
- resetText: b,
60276
- handleChange: y,
60277
- handleFocus: w,
60278
- handleClick: ee,
60279
- handleBlur: E,
60275
+ draft: f,
60276
+ inputRef: g,
60277
+ focusInput: b,
60278
+ resetText: y,
60279
+ handleChange: v,
60280
+ handleFocus: C,
60281
+ handleClick: w,
60282
+ handleBlur: T,
60280
60283
  handleKeyDown: I((e) => {
60281
- if (S.current = !1, e.defaultPrevented || e.nativeEvent.isComposing) return;
60282
- if (e.key === "Backspace" && e.currentTarget.value === "") {
60283
- d() && e.preventDefault();
60284
- return;
60285
- }
60284
+ if (x.current = !1, e.defaultPrevented || e.nativeEvent.isComposing) return;
60286
60285
  if (e.key === "Tab" && !e.shiftKey && t) {
60287
- D() && e.preventDefault();
60286
+ E() && e.preventDefault();
60288
60287
  return;
60289
60288
  }
60290
60289
  let n = e.key === "ArrowDown", i = e.key === "ArrowUp", a = e.key === "Enter";
60291
60290
  (n || i || a) && (e.preventDefault(), t ? a ? u() : l(n ? "next" : "previous") : r());
60292
60291
  }, [
60293
- D,
60292
+ E,
60294
60293
  l,
60295
- d,
60296
60294
  r,
60297
60295
  u,
60298
60296
  t
@@ -60741,31 +60739,23 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60741
60739
  Ve,
60742
60740
  N,
60743
60741
  At
60744
- ]), dn = I(() => {
60745
- let e = Ve[Ve.length - 1];
60746
- return !N || !e ? !1 : (Et.current = !0, At(e, !1), !0);
60747
- }, [
60748
- Ve,
60749
- N,
60750
- At
60751
- ]), fn = !N && ht[0] ? String(WI(ht[0])) : "", pn = N ? Math.max(Ve.length, P.selectedItemsCount) : +!!Ve[0], mn = pn > 0, hn = () => {
60742
+ ]), dn = !N && ht[0] ? String(WI(ht[0])) : "", fn = N ? Math.max(Ve.length, P.selectedItemsCount) : +!!Ve[0], pn = fn > 0, mn = () => {
60752
60743
  Et.current = !0, dt(), at.current.clear(), s?.(void 0, !1);
60753
- }, { draft: gn, inputRef: _n, focusInput: vn, resetText: yn, handleChange: bn, handleFocus: xn, handleClick: Sn, handleBlur: Cn, handleKeyDown: wn } = fz({
60744
+ }, { draft: hn, inputRef: gn, focusInput: _n, resetText: vn, handleChange: yn, handleFocus: bn, handleClick: xn, handleBlur: Sn, handleKeyDown: Cn } = fz({
60754
60745
  enabled: rt,
60755
60746
  open: !!De,
60756
- restingText: rt ? fn : "",
60747
+ restingText: rt ? dn : "",
60757
60748
  onOpen: Bt,
60758
60749
  onClose: () => zt(!1),
60759
60750
  onActiveMove: ln,
60760
60751
  onSelectActive: un,
60761
- onBackspaceOnEmpty: dn,
60762
60752
  onSearchChange: St,
60763
60753
  onSearchReset: () => {
60764
60754
  xt(), nt(void 0), y?.("");
60765
60755
  },
60766
60756
  closeWasRequested: () => ke.current === !1,
60767
60757
  onCloseEmpty: () => {
60768
- !N && ne && mn && hn();
60758
+ !N && ne && pn && mn();
60769
60759
  },
60770
60760
  triggerRef: Ne
60771
60761
  });
@@ -60776,39 +60766,49 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60776
60766
  rt,
60777
60767
  Me
60778
60768
  ]);
60779
- let Tn = T ? (e) => {
60769
+ let wn = T ? (e) => {
60780
60770
  let t = () => {
60781
- nt(void 0), rt && yn();
60771
+ nt(void 0), rt && vn();
60782
60772
  }, n = T(e);
60783
60773
  n && typeof n.then == "function" ? n.then(t, (e) => {
60784
60774
  console.warn("[F0Select] onCreate failed:", e);
60785
60775
  }) : t();
60786
- } : void 0, En = tt ? rn.t("select.createWithValue", { value: tt }) : rn.select.create, Dn = S ?? (Tn && tt?.trim() ? /* @__PURE__ */ V("div", {
60776
+ } : void 0, Tn = tt ? rn.t("select.createWithValue", { value: tt }) : rn.select.create, En = S ?? (wn && tt?.trim() ? /* @__PURE__ */ V("div", {
60787
60777
  className: "flex w-full",
60788
60778
  children: /* @__PURE__ */ V(D, {
60789
60779
  type: "button",
60790
60780
  variant: "outline",
60791
- onClick: () => Tn(tt.trim()),
60781
+ onClick: () => wn(tt.trim()),
60792
60782
  icon: In,
60793
- label: En
60783
+ label: Tn
60794
60784
  })
60795
- }) : void 0), On = /* @__PURE__ */ V(NI, {
60785
+ }) : void 0), Dn = /* @__PURE__ */ V(NI, {
60796
60786
  items: tn,
60797
60787
  onKeyDown: rt ? (e) => {
60798
60788
  if (e.key !== "Tab" || !e.shiftKey) return;
60799
60789
  let [t] = MI(e.currentTarget);
60800
- t && t === e.target && (e.preventDefault(), vn());
60790
+ t && t === e.target && (e.preventDefault(), _n());
60801
60791
  } : void 0,
60802
60792
  keepTriggerAccessible: rt,
60803
60793
  "aria-label": A,
60804
60794
  onPointerDownOutside: rt ? (e) => {
60805
- let t = e.detail.originalEvent.target;
60806
- t instanceof Node && Ne.current?.contains(t) && e.preventDefault();
60795
+ let { target: t, clientX: n, clientY: r } = e.detail.originalEvent;
60796
+ if (t instanceof Node && Ne.current?.contains(t)) {
60797
+ e.preventDefault();
60798
+ return;
60799
+ }
60800
+ let i = (e) => {
60801
+ let t = e?.getBoundingClientRect();
60802
+ return !!t && n >= t.left && n <= t.right && r >= t.top && r <= t.bottom;
60803
+ };
60804
+ if (i(Fe.current)) return;
60805
+ let a = Array.from(Ne.current?.querySelectorAll("button") ?? []).find((e) => i(e)), o = i(gn.current) || i(Ne.current?.querySelector("[data-slot=\"value\"]"));
60806
+ (a || o) && (e.preventDefault(), e.detail.originalEvent.preventDefault(), a?.click(), _n(), a || xn());
60807
60807
  } : void 0,
60808
60808
  fitContentWidth: _t,
60809
60809
  taller: !!k?.filters,
60810
60810
  emptyMessage: x ?? (T && tt?.trim() ? rn.select.createEmptyMessage ?? rn.select.noResults : rn.select.noResults),
60811
- emptyAction: Dn,
60811
+ emptyAction: En,
60812
60812
  spaciousEmptyState: C,
60813
60813
  bottom: Wt ? null : /* @__PURE__ */ V(zI, {
60814
60814
  actions: Ht,
@@ -60841,7 +60841,8 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60841
60841
  onChange: Mt,
60842
60842
  hideCheckbox: Ee,
60843
60843
  items: ht,
60844
- paddingTop: !it && !qe.filters
60844
+ paddingTop: !it && !qe.filters,
60845
+ keepFocusOnClick: rt
60845
60846
  }) : null] }),
60846
60847
  right: N && !Wt && de ? /* @__PURE__ */ V(nL, {
60847
60848
  items: ht,
@@ -60857,22 +60858,22 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60857
60858
  isLoading: $e,
60858
60859
  showLoadingIndicator: !!f,
60859
60860
  portalContainer: Ce
60860
- }), kn = `${ye}-selection`, [An, jn] = B(!1), Mn = /* @__PURE__ */ V($I, {
60861
+ }), On = `${ye}-selection`, [kn, An] = B(!1), jn = /* @__PURE__ */ V($I, {
60861
60862
  multiple: N,
60862
- totalSelectedCount: pn,
60863
+ totalSelectedCount: fn,
60863
60864
  allSelected: ut.allSelected,
60864
60865
  selection: ht,
60865
60866
  hideItemIcon: !!j,
60866
60867
  noTooltip: !0,
60867
- onSpelledOutChange: jn
60868
- }), Nn = KI(ht.map(WI).filter(Boolean), pn, (e) => rn.t("toc.moreResults", { count: e })), Pn = (e) => {
60868
+ onSpelledOutChange: An
60869
+ }), Mn = KI(ht.map(WI).filter(Boolean), fn, (e) => rn.t("toc.moreResults", { count: e })), Nn = (e) => {
60869
60870
  let t = /* @__PURE__ */ V("div", {
60870
60871
  className: c("w-full min-w-0", !!f && "h-full", rt && De && "relative z-50"),
60871
60872
  children: e
60872
60873
  });
60873
60874
  return /* @__PURE__ */ V(O, {
60874
60875
  label: g ? A : void 0,
60875
- description: An || rt && De ? "" : Nn,
60876
+ description: kn || rt && De ? "" : Mn,
60876
60877
  children: t
60877
60878
  });
60878
60879
  };
@@ -60892,14 +60893,14 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60892
60893
  className: c("flex-1 min-h-0", _z({ status: ae ? "error" : oe?.type ? oe?.type : "default" })),
60893
60894
  children: /* @__PURE__ */ V(rI, {
60894
60895
  ...sn,
60895
- children: On
60896
+ children: Dn
60896
60897
  })
60897
60898
  }),
60898
60899
  /* @__PURE__ */ V(qN, { status: oe })
60899
60900
  ]
60900
60901
  })
60901
60902
  });
60902
- let Fn = /* @__PURE__ */ H(rI, {
60903
+ let Pn = /* @__PURE__ */ H(rI, {
60903
60904
  ...sn,
60904
60905
  children: [e === "inline" ? /* @__PURE__ */ V(yz, {
60905
60906
  ref: Ie,
@@ -60924,39 +60925,39 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60924
60925
  icon: j,
60925
60926
  labelIcon: te,
60926
60927
  hideLabel: g,
60927
- value: rt ? gn : N ? pn.toString() : Ve[0] ?? void 0,
60928
+ value: rt ? hn : N ? fn.toString() : Ve[0] ?? void 0,
60928
60929
  isEmpty: (e) => rt ? !e : N ? !e || +(e ?? 0) == 0 : !e,
60929
- canClear: rt ? mn : void 0,
60930
- onChange: rt ? bn : void 0,
60931
- onBlur: rt ? Cn : void 0,
60930
+ canClear: rt ? pn : void 0,
60931
+ onChange: rt ? yn : void 0,
60932
+ onBlur: rt ? Sn : void 0,
60932
60933
  clearKeepsText: rt,
60933
60934
  "aria-activedescendant": rt && De && Ae ? Me(Ae) : void 0,
60934
- "aria-describedby": rt && N && mn && !gn ? kn : void 0,
60935
- inputRef: rt ? _n : void 0,
60936
- valueSlot: rt && N && mn ? /* @__PURE__ */ V("span", {
60937
- id: kn,
60935
+ "aria-describedby": rt && N && pn && !hn ? On : void 0,
60936
+ inputRef: rt ? gn : void 0,
60937
+ valueSlot: rt && N && pn ? /* @__PURE__ */ V("span", {
60938
+ id: On,
60938
60939
  "aria-hidden": "true",
60939
60940
  className: "contents",
60940
- children: Mn
60941
+ children: jn
60941
60942
  }) : void 0,
60942
- onClear: hn,
60943
+ onClear: mn,
60943
60944
  placeholder: (rt ? t || b || rn.toc.search : t) || "",
60944
60945
  disabled: p,
60945
60946
  clearable: ne,
60946
60947
  size: gt,
60947
60948
  loadingIndicator: {
60948
60949
  asOverlay: !0,
60949
- offset: fe ? ne && mn ? 26 : void 0 : 34
60950
+ offset: fe ? ne && pn ? 26 : void 0 : 34
60950
60951
  },
60951
60952
  loading: Xe || re || $e,
60952
60953
  name: rt ? void 0 : ie,
60953
60954
  onClickContent: (e) => {
60954
60955
  if (rt) {
60955
60956
  if (e.target instanceof Node && Fe.current?.contains(e.target)) {
60956
- zt(!De), vn();
60957
+ zt(!De), _n();
60957
60958
  return;
60958
60959
  }
60959
- De || zt(!0), vn(), Sn();
60960
+ De || zt(!0), _n(), xn();
60960
60961
  } else zt(!De);
60961
60962
  },
60962
60963
  append: fe ? void 0 : /* @__PURE__ */ V(LI, {
@@ -60968,8 +60969,8 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60968
60969
  children: rt ? /* @__PURE__ */ V("input", {
60969
60970
  type: "text",
60970
60971
  autoComplete: "off",
60971
- onKeyDown: wn,
60972
- onFocus: xn,
60972
+ onKeyDown: Cn,
60973
+ onFocus: bn,
60973
60974
  className: "w-full shrink cursor-text bg-transparent placeholder:-z-10 disabled:cursor-not-allowed"
60974
60975
  }) : /* @__PURE__ */ V("button", {
60975
60976
  className: "flex w-full items-center justify-between",
@@ -60977,7 +60978,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60977
60978
  onClick: (e) => {
60978
60979
  e.preventDefault();
60979
60980
  },
60980
- children: mn ? Mn : null
60981
+ children: pn ? jn : null
60981
60982
  })
60982
60983
  })
60983
60984
  }), De ? /* @__PURE__ */ V(II.Provider, {
@@ -60985,12 +60986,12 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60985
60986
  value: Ae,
60986
60987
  setActive: je
60987
60988
  } : null,
60988
- children: On
60989
+ children: Dn
60989
60990
  }) : null]
60990
60991
  });
60991
60992
  return /* @__PURE__ */ V(i, {
60992
60993
  dataTestId: ge,
60993
- children: e === "inline" ? Fn : Pn(Fn)
60994
+ children: e === "inline" ? Pn : Nn(Pn)
60994
60995
  });
60995
60996
  }), xz = o("F0Select", bz);
60996
60997
  //#endregion