@hanzo/dev 4.2.0 → 4.2.2
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.
- package/dist/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-CeQaKnXQ.js} +19 -19
- package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-DqKVAYd6.js} +2460 -2460
- package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
- package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
- package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-CCtanhmq.js} +227 -227
- package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-BhEDIwzm.js} +13 -13
- package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-BPZ6Ru_G.js} +328 -328
- package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-8Qh-Y5iP.js} +3 -3
- package/dist/{DocumentPages-VSn83vty.js → DocumentPages-MN1xyIRb.js} +3 -3
- package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-tCY2TFXU.js} +404 -404
- package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-BgJw-BA4.js} +4 -4
- package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-DHteid8j.js} +1089 -1089
- package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-COxgoDy5.js} +2 -2
- package/dist/{FontViewer-CLDdwhSr.js → FontViewer-jxARaj1f.js} +5 -5
- package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-BM2mB27b.js} +357 -357
- package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-BSOkKAjH.js} +3 -3
- package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
- package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-BX5-yWcy.js} +8 -8
- package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
- package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BqB2exZU.js} +2 -2
- package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-B0WYx1jk.js} +3 -3
- package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-B_7pSd7A.js} +10 -10
- package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-BJsNoaju.js} +2 -2
- package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-TgdFnOtV.js} +10 -10
- package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-B3gPcFs6.js} +287 -287
- package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-C18a0NFP.js} +4 -4
- package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
- package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-Dzjf4QXZ.js} +892 -892
- package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-Ct8eWJb8.js} +3 -3
- package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-Dd8dzt9u.js} +3 -3
- package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-BnsoHObW.js} +489 -489
- package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
- package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
- package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
- package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-CYalqlUB.js} +3 -3
- package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Jt9jdq55.js} +476 -476
- package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-xg3n0doV.js} +334 -334
- package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-BYlRPbKI.js} +5 -5
- package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-DQhoNsWZ.js} +2 -2
- package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
- package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
- package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-Cf4l2axO.js} +461 -461
- package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
- package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
- package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
- package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-CCzAioAu.js} +18 -18
- package/dist/builder/api/models.d.ts +2 -0
- package/dist/builder/api/models.js +6 -1
- package/dist/builder/api/sandbox.d.ts +2 -0
- package/dist/builder/api/sandbox.js +3 -1
- package/dist/builder/desk.d.ts +6 -0
- package/dist/builder/desk.js +79 -14
- package/dist/builder/mind.d.ts +5 -5
- package/dist/builder/mind.js +35 -14
- package/dist/builder/pane.d.ts +1 -1
- package/dist/builder/pane.js +1 -1
- package/dist/builder/panel.js +5 -5
- package/dist/builder/preview-fallback.d.ts +47 -0
- package/dist/builder/preview-fallback.js +341 -0
- package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-OIp-fuQd.js} +5 -5
- package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
- package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
- package/dist/core.d.ts +38 -0
- package/dist/core.js +1 -1
- package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-DbkSuh7q.js} +2 -2
- package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
- package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
- package/dist/{embed-c030vUqM.js → embed-CzXFS50X.js} +39626 -38922
- package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
- package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
- package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-hdALQktP.js} +54 -54
- package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-DMdkA7jY.js} +507 -507
- package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
- package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
- package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
- package/dist/keymap.js +1 -1
- package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
- package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
- package/dist/mediaSource-jW5c7b4r.js +70 -0
- package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
- package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
- package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
- package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
- package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
- package/dist/query-BPk2W3QN.js +63 -0
- package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-DgDAUfzQ.js} +2 -2
- package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
- package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
- package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
- package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
- package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
- package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
- package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
- package/dist/{threadSearch-BHyWwcV3.js → threadSearch-sHEENLiT.js} +162 -162
- package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
- package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
- package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
- package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
- package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-ChvPTfBY.js} +33 -33
- package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
- package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
- package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-Jm142a1q.js} +1 -1
- package/dist/{useSettings-DYG9Dmro.js → useSettings-Due4XCTB.js} +139 -139
- package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-XN9r-f-r.js} +1404 -1404
- package/dist/useTheme-B9hvAuzL.js +411 -0
- package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
- package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
- package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
- package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
- package/package.json +17 -17
- package/dist/mediaSource-zI7JWid4.js +0 -70
- package/dist/query-BxrrBAp6.js +0 -63
- package/dist/useTheme-D2ZM1gvV.js +0 -376
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $a as e, $i as t, $o as n, $r as r, Bo as i,
|
|
1
|
+
import { $a as e, $i as t, $o as n, $r as r, Bo as i, C_ as a, Ca as o, Ci as s, Co as c, Cs as l, Di as u, Ds as d, Ea as f, Eo as p, Fi as m, Fo as h, Ho as g, Ii as _, Io as v, Ja as y, Jo as b, Jr as x, Li as S, Mo as C, Oi as w, Oo as T, Os as E, Pa as D, Qi as O, Qr as k, Ra as ee, Ro as te, So as ne, Ta as re, Ti as A, Ts as ie, Va as j, Wo as ae, Xo as M, Xr as oe, Ya as se, Zo as ce, Zr as le, _i as ue, _s as de, bi as fe, bo as pe, bs as me, da as he, ei as ge, eo as _e, es as ve, gi as ye, go as be, ho as xe, ii as Se, io as Ce, ja as we, jo as N, ki as Te, ko as P, ks as Ee, ls as De, ma as Oe, mo as F, ni as ke, no as Ae, oi as je, oo as Me, qa as Ne, qo as Pe, ri as Fe, sa as Ie, so as Le, ss as Re, t as ze, ti as Be, to as Ve, uo as He, ur as Ue, us as We, vi as Ge, wa as Ke, wo as qe, ws as Je, xs as Ye, yo as Xe, zo as Ze } from "./utils-DtKQl-D3.js";
|
|
2
2
|
import { t as Qe } from "./search-3oqTSaO6.js";
|
|
3
3
|
import { r as $e } from "./message-circle-D3IVrLlW.js";
|
|
4
4
|
import { t as et } from "./x-Bjr9Dwvl.js";
|
|
5
|
-
import { t as tt } from "./useFloatingRootContext-
|
|
6
|
-
import { S as nt, _ as rt, b as it, d as at, f as ot, g as st, h as ct, l as lt, m as ut, p as dt, u as ft, v as pt, x as mt, y as ht } from "./select-
|
|
7
|
-
import { t as gt } from "./scroll-area-
|
|
5
|
+
import { t as tt } from "./useFloatingRootContext-ppoGvqar.js";
|
|
6
|
+
import { S as nt, _ as rt, b as it, d as at, f as ot, g as st, h as ct, l as lt, m as ut, p as dt, u as ft, v as pt, x as mt, y as ht } from "./select-DLFnkZsI.js";
|
|
7
|
+
import { t as gt } from "./scroll-area-CEoyjC7h.js";
|
|
8
8
|
import * as I from "react";
|
|
9
9
|
import { memo as _t, useEffect as L, useEffectEvent as R, useId as vt } from "react";
|
|
10
10
|
import { c as z } from "react/compiler-runtime";
|
|
@@ -57,7 +57,7 @@ function Tt(e) {
|
|
|
57
57
|
function Et(e = !0) {
|
|
58
58
|
let t = Me(), n = I.useRef(null);
|
|
59
59
|
return I.useEffect(() => {
|
|
60
|
-
if (!e ||
|
|
60
|
+
if (!e || c) return;
|
|
61
61
|
let r = n.current;
|
|
62
62
|
if (r == null) return;
|
|
63
63
|
let i = Tt(r);
|
|
@@ -81,7 +81,7 @@ function Dt(e, t = !1) {
|
|
|
81
81
|
}
|
|
82
82
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/floating-ui-react/hooks/gridNavigation.mjs
|
|
83
83
|
function Ot(e, t, n, r, i, a, o, s, c, l = 2) {
|
|
84
|
-
let u =
|
|
84
|
+
let u = ee(n.current, {
|
|
85
85
|
event: e,
|
|
86
86
|
orientation: r,
|
|
87
87
|
loopFocus: i,
|
|
@@ -223,7 +223,7 @@ function Gt(e, t, n) {
|
|
|
223
223
|
}
|
|
224
224
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/combobox/root/AriaCombobox.mjs
|
|
225
225
|
function Kt(n) {
|
|
226
|
-
let { id: r, onOpenChangeComplete: i, defaultSelectedValue:
|
|
226
|
+
let { id: r, onOpenChangeComplete: i, defaultSelectedValue: a = null, selectedValue: s, onSelectedValueChange: c, defaultInputValue: u, inputValue: f, open: p, defaultOpen: g = !1, selectionMode: _, onItemHighlighted: x, name: S, form: w, disabled: D = !1, readOnly: O = !1, required: ee = !1, inputRef: te, grid: ne = !1, items: A, filteredItems: j, filter: le, filterQuery: de, openOnInputClick: pe = !0, autoHighlight: me = !1, keepHighlight: ye = !1, highlightItemOnHover: be = !0, loopFocus: Se = !0, itemToStringLabel: Ce, itemToStringValue: we, isItemEqualToValue: N = ft, virtualized: Te = !1, inline: De = !1, fillInputOnItemPress: ke = !0, modal: je = !1, limit: Me = -1, autoComplete: Le = "list", formAutoComplete: Re, locale: ze, submitOnItemClick: Be = !1 } = n, { clearErrors: He } = ge(), { setDirty: Ue, validityData: We, setFilled: qe, name: Xe, disabled: Ze, setTouched: Qe, setFocused: $e, validationMode: et, validation: ct } = Fe(), ht = m(), gt = k({ id: r }), _t = Vt({ locale: ze }), L = Array.isArray(A) ? null : A;
|
|
227
227
|
if (L && typeof L.label != "function") throw Error(process.env.NODE_ENV === "production" ? Ee(100) : "Base UI: the `items` prop received an object that is not a collection, so its items cannot be read. Pass an array of items, an array of groups with items, or the result of `createItems()`. See https://base-ui.com/react/components/combobox#createitems");
|
|
228
228
|
let R = L ? L.data : A, vt = L?.value, z = vt ? void 0 : R, bt = I.useMemo(() => {
|
|
229
229
|
if (!j || !vt) return;
|
|
@@ -254,30 +254,30 @@ function Kt(n) {
|
|
|
254
254
|
function Ct(e) {
|
|
255
255
|
return mt(e, xt);
|
|
256
256
|
}
|
|
257
|
-
let [wt, Tt] = I.useState(!1), [Et, V] = I.useState(null), Pt = I.useRef(Et), Ft = I.useRef([]), It = I.useRef([]), Lt = I.useRef(null), H = I.useRef(null), Bt = I.useRef(null), Ht = I.useRef(null), Kt = I.useRef(null), qt = I.useRef(!1), Jt = I.useRef(null), Yt = I.useRef(null), Xt = I.useRef(null), Zt = I.useRef(Wt), Qt = I.useRef(null), $t = I.useRef([]), en = I.useRef(null), U = Ze || D, tn = Xe ??
|
|
257
|
+
let [wt, Tt] = I.useState(!1), [Et, V] = I.useState(null), Pt = I.useRef(Et), Ft = I.useRef([]), It = I.useRef([]), Lt = I.useRef(null), H = I.useRef(null), Bt = I.useRef(null), Ht = I.useRef(null), Kt = I.useRef(null), qt = I.useRef(!1), Jt = I.useRef(null), Yt = I.useRef(null), Xt = I.useRef(null), Zt = I.useRef(Wt), Qt = I.useRef(null), $t = I.useRef([]), en = I.useRef(null), U = Ze || D, tn = Xe ?? S, W = _ === "multiple", nn = _ === "single", rn = f !== void 0 || u !== void 0, G = R !== void 0, an = j !== void 0, K;
|
|
258
258
|
K = me === "always" ? "always" : me ? "input-change" : !1;
|
|
259
|
-
let [q, on] =
|
|
259
|
+
let [q, on] = v({
|
|
260
260
|
controlled: s,
|
|
261
|
-
default: W ?
|
|
261
|
+
default: W ? a ?? l : a,
|
|
262
262
|
name: "Combobox",
|
|
263
263
|
state: "selectedValue"
|
|
264
264
|
}), sn = I.useMemo(() => le === null ? () => !0 : le === void 0 ? zt(_t, St) : le, [
|
|
265
265
|
le,
|
|
266
266
|
_t,
|
|
267
267
|
St
|
|
268
|
-
]), cn =
|
|
268
|
+
]), cn = E(() => rn ? u ?? "" : nn ? Ct(q) : "").current, [J, ln] = v({
|
|
269
269
|
controlled: f,
|
|
270
270
|
default: cn,
|
|
271
271
|
name: "Combobox",
|
|
272
272
|
state: "inputValue"
|
|
273
|
-
}), [Y, un] =
|
|
274
|
-
controlled:
|
|
273
|
+
}), [Y, un] = v({
|
|
274
|
+
controlled: p,
|
|
275
275
|
default: g,
|
|
276
276
|
name: "Combobox",
|
|
277
277
|
state: "open"
|
|
278
|
-
}), dn = it(R), X = !Y && Et !== null ? Et : String(J).trim(), fn = nn ? Ct(q) : "", pn = nn && !wt && X !== "" && fn.length === X.length && _t.contains(fn, X), mn = pn ? "" : de ?? X, hn = G && an && pn && (!L || L.hasValue(q, N)), gn = I.useMemo(() => R ? pt(R) :
|
|
278
|
+
}), dn = it(R), X = !Y && Et !== null ? Et : String(J).trim(), fn = nn ? Ct(q) : "", pn = nn && !wt && X !== "" && fn.length === X.length && _t.contains(fn, X), mn = pn ? "" : de ?? X, hn = G && an && pn && (!L || L.hasValue(q, N)), gn = I.useMemo(() => R ? pt(R) : l, [R]), _n = I.useMemo(() => {
|
|
279
279
|
if (j && !hn) return j;
|
|
280
|
-
if (!R) return
|
|
280
|
+
if (!R) return l;
|
|
281
281
|
if (dn) {
|
|
282
282
|
let e = R, t = [], n = 0;
|
|
283
283
|
for (let r of e) {
|
|
@@ -323,19 +323,19 @@ function Kt(n) {
|
|
|
323
323
|
j,
|
|
324
324
|
bt,
|
|
325
325
|
vt
|
|
326
|
-
]), Q =
|
|
326
|
+
]), Q = E(() => {
|
|
327
327
|
let e = null;
|
|
328
|
-
return De && Y && G &&
|
|
328
|
+
return De && Y && G && _ !== "none" && (e = ot(Z, q, N, W)), new Ie({
|
|
329
329
|
id: gt,
|
|
330
330
|
labelId: void 0,
|
|
331
331
|
selectedValue: q,
|
|
332
332
|
open: Y,
|
|
333
333
|
items: z,
|
|
334
|
-
selectionMode:
|
|
334
|
+
selectionMode: _,
|
|
335
335
|
name: tn,
|
|
336
|
-
form:
|
|
336
|
+
form: w,
|
|
337
337
|
disabled: U,
|
|
338
|
-
readOnly:
|
|
338
|
+
readOnly: O,
|
|
339
339
|
required: ee,
|
|
340
340
|
grid: ne,
|
|
341
341
|
virtualized: Te,
|
|
@@ -359,9 +359,9 @@ function Kt(n) {
|
|
|
359
359
|
itemRoot: {
|
|
360
360
|
props: Je,
|
|
361
361
|
id: gt,
|
|
362
|
-
selectionMode:
|
|
362
|
+
selectionMode: _,
|
|
363
363
|
disabled: U,
|
|
364
|
-
readOnly:
|
|
364
|
+
readOnly: O,
|
|
365
365
|
isItemEqualToValue: N
|
|
366
366
|
},
|
|
367
367
|
positionerElement: null,
|
|
@@ -373,7 +373,7 @@ function Kt(n) {
|
|
|
373
373
|
popupSide: null,
|
|
374
374
|
openMethod: null,
|
|
375
375
|
inputInsidePopup: !0,
|
|
376
|
-
inputOwnsFormValue:
|
|
376
|
+
inputOwnsFormValue: _ === "none"
|
|
377
377
|
}, {
|
|
378
378
|
onOpenChangeComplete: ie,
|
|
379
379
|
setOpen: ie,
|
|
@@ -396,13 +396,13 @@ function Kt(n) {
|
|
|
396
396
|
pointerDownItemRef: en,
|
|
397
397
|
selectionEventRef: Xt
|
|
398
398
|
}, Rt);
|
|
399
|
-
}).current, vn =
|
|
399
|
+
}).current, vn = _ === "none" ? J : q, yn = I.useMemo(() => _ === "none" ? vn : Array.isArray(q) ? q.map((e) => nt(e, we)) : nt(q, we), [
|
|
400
400
|
vn,
|
|
401
401
|
we,
|
|
402
|
-
|
|
402
|
+
_,
|
|
403
403
|
q
|
|
404
404
|
]), bn = P(x), xn = P(i), Sn = Q.useState("activeIndex"), Cn = Q.useState("selectedIndex"), wn = Q.useState("positionerElement"), Tn = Q.useState("listElement"), En = Q.useState("triggerElement"), Dn = Q.useState("inputElement"), On = Q.useState("inputGroupElement"), $ = Q.useState("inline"), kn = Q.useState("inputInsidePopup"), An = Q.useState("inputOwnsFormValue"), jn = nn && !kn && J === fn, Mn = se(En), { openMethod: Nn, triggerProps: Pn } = Ge(Y), Fn = P(() => yn);
|
|
405
|
-
oe(kn ? Mn : H, gt, vn, Fn, !U,
|
|
405
|
+
oe(kn ? Mn : H, gt, vn, Fn, !U, S);
|
|
406
406
|
let In = P(() => {
|
|
407
407
|
R ? It.current = Z.map(Ct) : Q.set("forceMounted", !0);
|
|
408
408
|
}), Ln = P((e, t, n, r) => {
|
|
@@ -423,7 +423,7 @@ function Kt(n) {
|
|
|
423
423
|
n === null ? Ln(void 0, -1, r, e.event) : Ln($t.current[n], n, r, e.event);
|
|
424
424
|
}), zn = P((e, t) => {
|
|
425
425
|
if (n.onInputValueChange?.(e, t), !t.isCanceled) {
|
|
426
|
-
if (qt.current = t.reason ===
|
|
426
|
+
if (qt.current = t.reason === b, t.reason === "input-change") {
|
|
427
427
|
Y && Et !== null && V(null);
|
|
428
428
|
let n = t.event, r = n.inputType;
|
|
429
429
|
if (n.type === "compositionend" || r != null && r !== "" && r !== "insertReplacementText") {
|
|
@@ -432,8 +432,8 @@ function Kt(n) {
|
|
|
432
432
|
let n = Q.state.listElement;
|
|
433
433
|
if (!Q.state.virtualized && n) {
|
|
434
434
|
let e = Lt.current;
|
|
435
|
-
for (let t of
|
|
436
|
-
if (!
|
|
435
|
+
for (let t of C(n.firstElementChild ?? n)) {
|
|
436
|
+
if (!h(t) || (e ? !Ve(e, t) : t.getAttribute("role") === "dialog")) break;
|
|
437
437
|
if (Dt(t)) {
|
|
438
438
|
t.scrollTop = 0;
|
|
439
439
|
break;
|
|
@@ -450,17 +450,17 @@ function Kt(n) {
|
|
|
450
450
|
}
|
|
451
451
|
}), Bn = P((e) => {
|
|
452
452
|
let t = !e && kn && !$ && J !== "" && (String(J).trim() === Et || J === fn);
|
|
453
|
-
!e && (t || J === "" || jn) && Tt(!1), V(null), t && zn("", F(
|
|
453
|
+
!e && (t || J === "" || jn) && Tt(!1), V(null), t && zn("", F(b));
|
|
454
454
|
}), [Vn, Hn] = I.useState(!1), Un = P((e, t) => {
|
|
455
455
|
if (Y === e) return;
|
|
456
456
|
t.reason === "escape-key" && G && Z.length === 0 && !Kt.current && t.allowPropagation();
|
|
457
457
|
let r = t, i = Oe(r);
|
|
458
|
-
if (n.onOpenChange?.(e, r), Qt.current?.hasQuery && t.reason === "input-change" === t.isCanceled && (Qt.current = null), !t.isCanceled && (e && Et !== null && Bn(t.reason === Pe), !e && wt && (nn ? ($ || V(X), X === "" && Tt(!1)) : W && ($ || V(X), kn && Rn({ activeIndex: null }), (!kn || $) && zn("", F(
|
|
459
|
-
let e =
|
|
458
|
+
if (n.onOpenChange?.(e, r), Qt.current?.hasQuery && t.reason === "input-change" === t.isCanceled && (Qt.current = null), !t.isCanceled && (e && Et !== null && Bn(t.reason === Pe), !e && wt && (nn ? ($ || V(X), X === "" && Tt(!1)) : W && ($ || V(X), kn && Rn({ activeIndex: null }), (!kn || $) && zn("", F(b, t.event, void 0, { isItemPress: t.reason === ce })))), e || Hn(i()), un(e), !e && kn && (t.reason === "focus-out" || t.reason === "outside-press") && (Qe(!0), $e(!1), et === "onBlur"))) {
|
|
459
|
+
let e = _ === "none" ? J : q;
|
|
460
460
|
ct.commit(e);
|
|
461
461
|
}
|
|
462
462
|
}), Wn = P((e, t) => {
|
|
463
|
-
|
|
463
|
+
c?.(e, t), !t.isCanceled && (on(e), (_ === "none" && Lt.current && ke || nn && !Q.state.inputInsidePopup) && zn(Ct(e), F(t.reason, t.event)));
|
|
464
464
|
}), Gn = P((e, t) => {
|
|
465
465
|
let n = Ae(e), r = Xt.current ?? e;
|
|
466
466
|
Xt.current = null;
|
|
@@ -470,7 +470,7 @@ function Kt(n) {
|
|
|
470
470
|
let e = Array.isArray(q) ? q : [], n = st(e, t, N), r = n ? ut(e, t, N) : [...e, t];
|
|
471
471
|
if (Wn(r, i), i.isCanceled || !(H.current && H.current.value.trim() !== "")) return;
|
|
472
472
|
if (Q.state.inputInsidePopup) {
|
|
473
|
-
zn("", F(
|
|
473
|
+
zn("", F(b, i.event, void 0, { isItemPress: !0 }));
|
|
474
474
|
let e = Qt.current;
|
|
475
475
|
e && !n && (e.toggledValue = t);
|
|
476
476
|
} else Un(!1, i);
|
|
@@ -482,17 +482,17 @@ function Kt(n) {
|
|
|
482
482
|
let e = ct.inputRef.current?.form ?? Q.state.inputElement?.form;
|
|
483
483
|
e && typeof e.requestSubmit == "function" && e.requestSubmit();
|
|
484
484
|
}), qn = P(() => {
|
|
485
|
-
if (xn?.(!1), Tt(!1), V(null), Rn(
|
|
485
|
+
if (xn?.(!1), Tt(!1), V(null), Rn(_ === "none" ? {
|
|
486
486
|
activeIndex: null,
|
|
487
487
|
selectedIndex: null
|
|
488
|
-
} : { activeIndex: null }), W && H.current && H.current.value !== "" && !qt.current && zn("", F(
|
|
489
|
-
if (Q.state.inputInsidePopup) H.current && H.current.value !== "" && zn("", F(
|
|
488
|
+
} : { activeIndex: null }), W && H.current && H.current.value !== "" && !qt.current && zn("", F(b)), nn) {
|
|
489
|
+
if (Q.state.inputInsidePopup) H.current && H.current.value !== "" && zn("", F(b));
|
|
490
490
|
else {
|
|
491
491
|
let e = Ct(q);
|
|
492
|
-
H.current && H.current.value !== e && zn(e, F(e === "" ?
|
|
492
|
+
H.current && H.current.value !== e && zn(e, F(e === "" ? b : ve));
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
}), Jn = I.useMemo(() => $ && wn ? { current: _e(wn, "[role=\"dialog\"]") } : Lt, [$, wn]), { mounted: Yn, transitionStatus: Xn, forceUnmount: Zn } =
|
|
495
|
+
}), Jn = I.useMemo(() => $ && wn ? { current: _e(wn, "[role=\"dialog\"]") } : Lt, [$, wn]), { mounted: Yn, transitionStatus: Xn, forceUnmount: Zn } = o({
|
|
496
496
|
open: Y,
|
|
497
497
|
ref: Jn,
|
|
498
498
|
preventUnmountOnClose: Vn,
|
|
@@ -502,26 +502,26 @@ function Kt(n) {
|
|
|
502
502
|
I.useImperativeHandle(n.actionsRef, () => ({
|
|
503
503
|
unmount: Zn,
|
|
504
504
|
close: () => Un(!1, F(ae))
|
|
505
|
-
}), [Zn, Un]),
|
|
505
|
+
}), [Zn, Un]), T(function() {
|
|
506
506
|
let e = Pt.current !== null && Et === null;
|
|
507
|
-
if (Pt.current = Et, Y && (!e || !G) || (Y || (en.current = null),
|
|
507
|
+
if (Pt.current = Et, Y && (!e || !G) || (Y || (en.current = null), _ === "none")) return;
|
|
508
508
|
let t = G ? Z : $t.current;
|
|
509
509
|
Rn({ selectedIndex: ot(t, q, N, W) });
|
|
510
510
|
}, [
|
|
511
511
|
Y,
|
|
512
512
|
Et,
|
|
513
513
|
q,
|
|
514
|
-
|
|
514
|
+
_,
|
|
515
515
|
W,
|
|
516
516
|
G,
|
|
517
517
|
Z,
|
|
518
518
|
N,
|
|
519
519
|
Rn
|
|
520
|
-
]),
|
|
520
|
+
]), T(() => {
|
|
521
521
|
R && ($t.current = Z, Ft.current.length = Z.length);
|
|
522
|
-
}, [R, Z]),
|
|
522
|
+
}, [R, Z]), T(() => {
|
|
523
523
|
!Y && Qt.current?.hasQuery && (Qt.current = null);
|
|
524
|
-
}, [Y]),
|
|
524
|
+
}, [Y]), T(() => {
|
|
525
525
|
if (!Y && $ && Jn.current) {
|
|
526
526
|
Qt.current = null;
|
|
527
527
|
return;
|
|
@@ -572,11 +572,11 @@ function Kt(n) {
|
|
|
572
572
|
Jn,
|
|
573
573
|
Q,
|
|
574
574
|
J
|
|
575
|
-
]),
|
|
576
|
-
qe(
|
|
575
|
+
]), T(() => {
|
|
576
|
+
qe(_ === "none" ? String(J) !== "" : W ? Array.isArray(q) && q.length > 0 : q != null);
|
|
577
577
|
}, [
|
|
578
578
|
qe,
|
|
579
|
-
|
|
579
|
+
_,
|
|
580
580
|
J,
|
|
581
581
|
q,
|
|
582
582
|
W
|
|
@@ -599,13 +599,13 @@ function Kt(n) {
|
|
|
599
599
|
!er && J !== fn && (er = !0, zn(fn, F(ve)));
|
|
600
600
|
}
|
|
601
601
|
function nr() {
|
|
602
|
-
|
|
602
|
+
_ !== "none" && (He(tn), Ue(dt(q, We.initialValue, N)), ct.change(q), nn && !rn && !kn && tr());
|
|
603
603
|
}
|
|
604
604
|
function rr() {
|
|
605
605
|
nn && !rn && !kn && !wt && tr();
|
|
606
606
|
}
|
|
607
607
|
function ir() {
|
|
608
|
-
|
|
608
|
+
_ === "none" && (He(tn), Ue(J !== We.initialValue), ct.change(J));
|
|
609
609
|
}
|
|
610
610
|
fe(X, Qn), fe(Y, $n), fe(q, nr), fe(fn, rr), fe(R, rr), fe(J, ir);
|
|
611
611
|
let ar = tt({
|
|
@@ -622,7 +622,7 @@ function Kt(n) {
|
|
|
622
622
|
autoCorrect: "off",
|
|
623
623
|
autoCapitalize: "none"
|
|
624
624
|
} : {};
|
|
625
|
-
return n && (r.role = "combobox", r["aria-expanded"] = cr, r["aria-haspopup"] = or, r["aria-controls"] = sr ? Tn?.id : void 0, r["aria-autocomplete"] =
|
|
625
|
+
return n && (r.role = "combobox", r["aria-expanded"] = cr, r["aria-haspopup"] = or, r["aria-controls"] = sr ? Tn?.id : void 0, r["aria-autocomplete"] = O ? "none" : Le), {
|
|
626
626
|
reference: r,
|
|
627
627
|
floating: { role: "presentation" }
|
|
628
628
|
};
|
|
@@ -633,7 +633,7 @@ function Kt(n) {
|
|
|
633
633
|
or,
|
|
634
634
|
Tn?.id,
|
|
635
635
|
Le,
|
|
636
|
-
|
|
636
|
+
O
|
|
637
637
|
]), ur = re(ar, {
|
|
638
638
|
enabled: !U && pe,
|
|
639
639
|
event: "mousedown-only",
|
|
@@ -660,12 +660,12 @@ function Kt(n) {
|
|
|
660
660
|
virtual: !0,
|
|
661
661
|
loopFocus: Se,
|
|
662
662
|
allowEscape: Se && !K,
|
|
663
|
-
focusItemOnOpen: wt ||
|
|
663
|
+
focusItemOnOpen: wt || _ === "none" && !K ? !1 : "auto",
|
|
664
664
|
focusItemOnHover: be,
|
|
665
665
|
resetOnPointerLeave: !ye,
|
|
666
666
|
orientation: ne ? "horizontal" : void 0,
|
|
667
667
|
rtl: ht === "rtl",
|
|
668
|
-
disabledIndices:
|
|
668
|
+
disabledIndices: l,
|
|
669
669
|
grid: ne ? Ot : void 0,
|
|
670
670
|
onNavigate(e, t) {
|
|
671
671
|
(t || Y || $ && e === null) && Xn !== "ending" && Rn({
|
|
@@ -691,17 +691,17 @@ function Kt(n) {
|
|
|
691
691
|
onFocus: void 0
|
|
692
692
|
} : Je,
|
|
693
693
|
id: gt,
|
|
694
|
-
selectionMode:
|
|
694
|
+
selectionMode: _,
|
|
695
695
|
disabled: U,
|
|
696
|
-
readOnly:
|
|
696
|
+
readOnly: O,
|
|
697
697
|
isItemEqualToValue: N
|
|
698
698
|
};
|
|
699
699
|
}, [
|
|
700
700
|
fr.item,
|
|
701
701
|
gt,
|
|
702
|
-
|
|
702
|
+
_,
|
|
703
703
|
U,
|
|
704
|
-
|
|
704
|
+
O,
|
|
705
705
|
N
|
|
706
706
|
]);
|
|
707
707
|
Q.useContextCallback("setOpen", Un), Q.useContextCallback("setInputValue", zn), Q.useContextCallback("setSelectedValue", Wn), Q.useContextCallback("setIndices", Rn), Q.useContextCallback("handleSelection", Gn), Q.useContextCallback("forceMount", In), Q.useContextCallback("requestSubmit", Kn), Q.useContextCallback("onOpenChangeComplete", i), rt(() => {
|
|
@@ -728,11 +728,11 @@ function Kt(n) {
|
|
|
728
728
|
triggerProps: Pn,
|
|
729
729
|
itemRoot: gr,
|
|
730
730
|
openMethod: Nn,
|
|
731
|
-
selectionMode:
|
|
731
|
+
selectionMode: _,
|
|
732
732
|
name: tn,
|
|
733
|
-
form:
|
|
733
|
+
form: w,
|
|
734
734
|
disabled: U,
|
|
735
|
-
readOnly:
|
|
735
|
+
readOnly: O,
|
|
736
736
|
required: ee,
|
|
737
737
|
grid: ne,
|
|
738
738
|
virtualized: Te,
|
|
@@ -744,13 +744,13 @@ function Kt(n) {
|
|
|
744
744
|
submitOnItemClick: Be,
|
|
745
745
|
hasInputValue: rn
|
|
746
746
|
};
|
|
747
|
-
|
|
747
|
+
T(() => {
|
|
748
748
|
Q.update({
|
|
749
749
|
..._r,
|
|
750
|
-
inputOwnsFormValue:
|
|
750
|
+
inputOwnsFormValue: _ === "none" && (De || !Q.state.inputInsidePopup)
|
|
751
751
|
});
|
|
752
752
|
}, [Q, ...Object.values(_r)]);
|
|
753
|
-
let vr =
|
|
753
|
+
let vr = d(te, ct.inputRef), yr = I.useMemo(() => ({
|
|
754
754
|
query: X,
|
|
755
755
|
hasItems: G,
|
|
756
756
|
filteredItems: _n,
|
|
@@ -760,11 +760,11 @@ function Kt(n) {
|
|
|
760
760
|
G,
|
|
761
761
|
_n,
|
|
762
762
|
Z
|
|
763
|
-
]), br = I.useMemo(() => Array.isArray(vn) ? "" : nt(vn, we), [vn, we]), xr = W && Array.isArray(q) && q.length > 0, Sr = W ||
|
|
763
|
+
]), br = I.useMemo(() => Array.isArray(vn) ? "" : nt(vn, we), [vn, we]), xr = W && Array.isArray(q) && q.length > 0, Sr = W || _ === "none" && An ? void 0 : tn, Cr = I.useMemo(() => !W || !Array.isArray(q) || !tn ? null : q.map((e) => {
|
|
764
764
|
let t = nt(e, we);
|
|
765
765
|
return /*#__PURE__*/ B("input", {
|
|
766
766
|
type: "hidden",
|
|
767
|
-
form:
|
|
767
|
+
form: w,
|
|
768
768
|
name: tn,
|
|
769
769
|
value: t,
|
|
770
770
|
disabled: U
|
|
@@ -772,7 +772,7 @@ function Kt(n) {
|
|
|
772
772
|
}), [
|
|
773
773
|
W,
|
|
774
774
|
q,
|
|
775
|
-
|
|
775
|
+
w,
|
|
776
776
|
tn,
|
|
777
777
|
we,
|
|
778
778
|
U
|
|
@@ -784,11 +784,11 @@ function Kt(n) {
|
|
|
784
784
|
kn ? En?.focus() : (H.current || En)?.focus();
|
|
785
785
|
},
|
|
786
786
|
onChange(e) {
|
|
787
|
-
if (e.nativeEvent.defaultPrevented || U ||
|
|
787
|
+
if (e.nativeEvent.defaultPrevented || U || O) return;
|
|
788
788
|
let t = e.currentTarget.value, n = t.toLowerCase(), r = F(ve, e.nativeEvent), i = () => $t.current.findIndex((e) => nt(e, we).toLowerCase() === n || Ct(e).toLowerCase() === n);
|
|
789
789
|
function a() {
|
|
790
790
|
if (W) return;
|
|
791
|
-
if (
|
|
791
|
+
if (_ === "none") {
|
|
792
792
|
zn(t, r);
|
|
793
793
|
return;
|
|
794
794
|
}
|
|
@@ -804,15 +804,15 @@ function Kt(n) {
|
|
|
804
804
|
}
|
|
805
805
|
}),
|
|
806
806
|
id: gt && Sr == null ? `${gt}-hidden-input` : void 0,
|
|
807
|
-
form:
|
|
807
|
+
form: w,
|
|
808
808
|
name: Sr,
|
|
809
809
|
autoComplete: Re,
|
|
810
810
|
disabled: U,
|
|
811
811
|
required: ee && !xr,
|
|
812
|
-
readOnly:
|
|
812
|
+
readOnly: O,
|
|
813
813
|
value: br,
|
|
814
814
|
ref: vr,
|
|
815
|
-
style: Sr ?
|
|
815
|
+
style: Sr ? y : Ne,
|
|
816
816
|
tabIndex: -1,
|
|
817
817
|
"aria-hidden": !0,
|
|
818
818
|
suppressHydrationWarning: !0
|
|
@@ -868,7 +868,7 @@ function en(e) {
|
|
|
868
868
|
}
|
|
869
869
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/combobox/utils/ComboboxInternalDismissButton.mjs
|
|
870
870
|
var U = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
871
|
-
let n = V(), { buttonRef: r, getButtonProps: a } = qe({ native: !1 }), o =
|
|
871
|
+
let n = V(), { buttonRef: r, getButtonProps: a } = qe({ native: !1 }), o = d(t, r);
|
|
872
872
|
function s(e) {
|
|
873
873
|
n.context.setOpen(!1, F(i, e.nativeEvent, e.currentTarget));
|
|
874
874
|
}
|
|
@@ -878,7 +878,7 @@ var U = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
878
878
|
...c,
|
|
879
879
|
"aria-label": "Dismiss",
|
|
880
880
|
tabIndex: void 0,
|
|
881
|
-
style:
|
|
881
|
+
style: y
|
|
882
882
|
});
|
|
883
883
|
});
|
|
884
884
|
process.env.NODE_ENV !== "production" && (U.displayName = "ComboboxInternalDismissButton");
|
|
@@ -899,20 +899,20 @@ function rn(e, t, n) {
|
|
|
899
899
|
}
|
|
900
900
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/combobox/input/ComboboxInput.mjs
|
|
901
901
|
var G = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
902
|
-
let { render: n, className: i, disabled: a = !1, id: o, style: s, ...c } = e, { state: l, disabled: u, setTouched: d, validationMode: f, validation:
|
|
903
|
-
|
|
902
|
+
let { render: n, className: i, disabled: a = !1, id: o, style: s, ...c } = e, { state: l, disabled: u, setTouched: d, validationMode: f, validation: p } = Fe(), { labelId: h } = r(), _ = Qt(), v = !!en(!0), y = V(), x = It(), S = m(), C = y.useState("required"), w = y.useState("disabled"), E = y.useState("readOnly"), D = y.useState("name"), O = y.useState("form"), k = y.useState("selectionMode"), ee = y.useState("autoHighlight"), te = y.useState("inputProps"), re = y.useState("triggerProps"), A = y.useState("open"), ie = y.useState("mounted"), j = y.useState("selectedValue"), ae = y.useState("id"), M = y.useState("inline"), oe = y.useState("modal"), se = !!ee, ce = tn(y), de = u || w || a, fe = W(), he = le(de, y.context.inputRef), ge = v || M, _e = !ge || oe, ye = be(o ?? (ge ? void 0 : ae)), xe = v ? Se : l, [we, N] = I.useState(null), Te = I.useRef(!1), Ee = I.useRef(null);
|
|
903
|
+
T(() => {
|
|
904
904
|
A || (Ee.current = null);
|
|
905
905
|
}, [A]);
|
|
906
906
|
let De = k === "none" && !v, Oe = P((e) => {
|
|
907
|
-
let t = v ||
|
|
908
|
-
t && !
|
|
907
|
+
let t = v || y.state.inline;
|
|
908
|
+
t && !y.state.hasInputValue && y.context.setInputValue("", F(ve)), y.update({
|
|
909
909
|
inputElement: e,
|
|
910
910
|
inputInsidePopup: t,
|
|
911
911
|
inputOwnsFormValue: De
|
|
912
912
|
});
|
|
913
|
-
}), Ae = v ? c :
|
|
913
|
+
}), Ae = v ? c : p.getValidationProps(de, c);
|
|
914
914
|
function je(e) {
|
|
915
|
-
|
|
915
|
+
y.context.setIndices({
|
|
916
916
|
activeIndex: null,
|
|
917
917
|
selectedIndex: null,
|
|
918
918
|
type: ue(e),
|
|
@@ -936,7 +936,7 @@ var G = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
936
936
|
state: Me,
|
|
937
937
|
ref: [
|
|
938
938
|
t,
|
|
939
|
-
|
|
939
|
+
y.context.inputRef,
|
|
940
940
|
Oe
|
|
941
941
|
],
|
|
942
942
|
props: [
|
|
@@ -946,7 +946,7 @@ var G = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
946
946
|
value: we ?? x,
|
|
947
947
|
"aria-readonly": E || void 0,
|
|
948
948
|
"aria-required": C || void 0,
|
|
949
|
-
"aria-labelledby":
|
|
949
|
+
"aria-labelledby": h,
|
|
950
950
|
disabled: de,
|
|
951
951
|
readOnly: E,
|
|
952
952
|
required: k === "none" ? C : void 0,
|
|
@@ -956,14 +956,14 @@ var G = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
956
956
|
onFocus() {
|
|
957
957
|
if (he(!0), !M) return;
|
|
958
958
|
let e = Ee.current;
|
|
959
|
-
Ee.current = null, e != null && Object.hasOwn(
|
|
959
|
+
Ee.current = null, e != null && Object.hasOwn(y.context.valuesRef.current, e) && y.context.setIndices({ activeIndex: e });
|
|
960
960
|
},
|
|
961
961
|
onBlur() {
|
|
962
962
|
d(!0), he(!1);
|
|
963
|
-
let e =
|
|
964
|
-
if (M && e !== null && ee !== "always" && (Ee.current = e,
|
|
963
|
+
let e = y.state.activeIndex;
|
|
964
|
+
if (M && e !== null && ee !== "always" && (Ee.current = e, y.context.setIndices({ activeIndex: null })), f === "onBlur") {
|
|
965
965
|
let e = k === "none" ? x : j;
|
|
966
|
-
|
|
966
|
+
p.commit(e);
|
|
967
967
|
}
|
|
968
968
|
},
|
|
969
969
|
onCompositionStart(e) {
|
|
@@ -972,29 +972,29 @@ var G = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
972
972
|
onCompositionEnd(e) {
|
|
973
973
|
Te.current = !1;
|
|
974
974
|
let t = e.currentTarget.value;
|
|
975
|
-
N(null),
|
|
975
|
+
N(null), y.context.setInputValue(t, F(Pe, e.nativeEvent));
|
|
976
976
|
},
|
|
977
977
|
onChange(e) {
|
|
978
978
|
let t = e.nativeEvent, n = t.inputType, r = !n || n === "insertReplacementText", i = Te.current || !r;
|
|
979
979
|
function a(e) {
|
|
980
|
-
!E && !de && e && i && (
|
|
980
|
+
!E && !de && e && i && (y.context.setOpen(!0, F(Pe, t)), se || je(t));
|
|
981
981
|
}
|
|
982
982
|
if (Te.current) {
|
|
983
983
|
let n = e.currentTarget.value;
|
|
984
|
-
N(n), n === "" && !
|
|
984
|
+
N(n), n === "" && !y.state.openOnInputClick && !y.state.inputInsidePopup && y.context.setOpen(!1, F(b, t));
|
|
985
985
|
let r = n.trim(), i = se && r !== "";
|
|
986
|
-
a(r), A &&
|
|
986
|
+
a(r), A && y.state.activeIndex !== null && !i && je(t);
|
|
987
987
|
return;
|
|
988
988
|
}
|
|
989
989
|
let o = F(Pe, t);
|
|
990
|
-
if (
|
|
991
|
-
let s = e.currentTarget.value === "", c = F(
|
|
992
|
-
s && !
|
|
990
|
+
if (y.context.setInputValue(e.currentTarget.value, o), o.isCanceled) return;
|
|
991
|
+
let s = e.currentTarget.value === "", c = F(b, t);
|
|
992
|
+
s && !y.state.inputInsidePopup && (k === "single" && y.context.setSelectedValue(null, c), y.state.openOnInputClick || y.context.setOpen(!1, c)), a(e.currentTarget.value.trim()), A && y.state.activeIndex !== null && !se && je(t);
|
|
993
993
|
},
|
|
994
994
|
onKeyDown(e) {
|
|
995
995
|
if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) return;
|
|
996
996
|
if (de || E) {
|
|
997
|
-
E && e.key === "Enter" && A &&
|
|
997
|
+
E && e.key === "Enter" && A && y.state.activeIndex !== null && Ce(e);
|
|
998
998
|
return;
|
|
999
999
|
}
|
|
1000
1000
|
let t = e.currentTarget, n = t.scrollWidth - t.clientWidth, r = S === "rtl";
|
|
@@ -1011,24 +1011,24 @@ var G = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1011
1011
|
return;
|
|
1012
1012
|
}
|
|
1013
1013
|
if (!ie && e.key === "Escape") {
|
|
1014
|
-
let t = k === "multiple" && Array.isArray(j) ? j.length === 0 : j === null, n = F(
|
|
1015
|
-
|
|
1014
|
+
let t = k === "multiple" && Array.isArray(j) ? j.length === 0 : j === null, n = F(g, e.nativeEvent), r = k === "multiple" ? [] : null;
|
|
1015
|
+
y.context.setInputValue("", n), y.context.setSelectedValue(r, n), t || y.state.inline || n.isPropagationAllowed || e.stopPropagation();
|
|
1016
1016
|
return;
|
|
1017
1017
|
}
|
|
1018
1018
|
if (_ && e.key === "Backspace" && t.value === "" && Array.isArray(j) && j.length > 0) {
|
|
1019
1019
|
let t = _.chipsRef.current.length, n = t > 0 ? t - 1 : j.length - 1, r = j.filter((e, t) => t !== n);
|
|
1020
|
-
je(e.nativeEvent),
|
|
1020
|
+
je(e.nativeEvent), y.context.setSelectedValue(r, F(ve, e.nativeEvent));
|
|
1021
1021
|
return;
|
|
1022
1022
|
}
|
|
1023
1023
|
let i = Ne(e);
|
|
1024
1024
|
if (i !== void 0 && _?.chipsRef.current[i]?.focus(), e.which !== 229 && e.key === "Enter" && A) {
|
|
1025
|
-
let t =
|
|
1025
|
+
let t = y.state.activeIndex, n = e.nativeEvent;
|
|
1026
1026
|
if (t === null) {
|
|
1027
1027
|
if (M) return;
|
|
1028
|
-
|
|
1028
|
+
y.context.setOpen(!1, F(ve, n));
|
|
1029
1029
|
return;
|
|
1030
1030
|
}
|
|
1031
|
-
Ce(e), rn(
|
|
1031
|
+
Ce(e), rn(y, t, n);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
},
|
|
@@ -1039,20 +1039,20 @@ var G = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1039
1039
|
value: Be,
|
|
1040
1040
|
children: Ie
|
|
1041
1041
|
}) : Ie;
|
|
1042
|
-
return /*#__PURE__*/ yt(I.Fragment, { children: [A && _e && /*#__PURE__*/ B(U, { ref:
|
|
1042
|
+
return /*#__PURE__*/ yt(I.Fragment, { children: [A && _e && /*#__PURE__*/ B(U, { ref: y.context.startDismissRef }), Le] });
|
|
1043
1043
|
});
|
|
1044
1044
|
process.env.NODE_ENV !== "production" && (G.displayName = "ComboboxInput");
|
|
1045
1045
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/combobox/trigger/ComboboxTrigger.mjs
|
|
1046
1046
|
var an = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
1047
|
-
let { render: i, className: a, nativeButton: o = !0, disabled: s = !1, id: c, style: l, ...u } = e, { state: d, disabled:
|
|
1048
|
-
|
|
1049
|
-
let ge =
|
|
1050
|
-
A &&
|
|
1047
|
+
let { render: i, className: a, nativeButton: o = !0, disabled: s = !1, id: c, style: l, ...u } = e, { state: d, disabled: f, setTouched: m, validationMode: h, validation: g } = Fe(), { labelId: _ } = r(), v = V(), y = v.useState("selectionMode"), b = v.useState("disabled"), x = v.useState("readOnly"), S = v.useState("required"), C = v.useState("positionerElement"), w = v.useState("listElement"), T = v.useState("popupId"), E = v.useState("triggerProps"), D = v.useState("inputInsidePopup"), ee = v.useState("id"), ne = v.useState("labelId"), A = v.useState("open"), ie = v.useState("selectedValue"), j = v.useState("activeIndex"), ae = v.useState("selectedIndex"), M = v.useState("hasSelectedValue"), oe = Pt(), se = It(), ce = Me(), ue = f || b || s, de = W(), fe = tn(v), pe = I.useRef(null), he = le(ue, pe);
|
|
1048
|
+
k({ id: D ? c : void 0 });
|
|
1049
|
+
let ge = D ? c ?? ee : c, _e = Ue(_, ne), be;
|
|
1050
|
+
A && D ? be = T ?? H(ee) : A && (be = w?.id);
|
|
1051
1051
|
let xe = I.useRef("");
|
|
1052
1052
|
function Se(e) {
|
|
1053
1053
|
xe.current = e.pointerType;
|
|
1054
1054
|
}
|
|
1055
|
-
let { reference: we } =
|
|
1055
|
+
let { reference: we } = O(oe, {
|
|
1056
1056
|
enabled: !A && !x && !b && y === "single",
|
|
1057
1057
|
listRef: v.context.labelsRef,
|
|
1058
1058
|
activeIndex: j,
|
|
@@ -1092,13 +1092,13 @@ var an = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1092
1092
|
we,
|
|
1093
1093
|
{
|
|
1094
1094
|
id: ge,
|
|
1095
|
-
tabIndex:
|
|
1096
|
-
role:
|
|
1095
|
+
tabIndex: D ? 0 : -1,
|
|
1096
|
+
role: D ? "combobox" : void 0,
|
|
1097
1097
|
"aria-expanded": A,
|
|
1098
|
-
"aria-haspopup":
|
|
1098
|
+
"aria-haspopup": D ? "dialog" : "listbox",
|
|
1099
1099
|
"aria-controls": be,
|
|
1100
|
-
"aria-required":
|
|
1101
|
-
"aria-readonly":
|
|
1100
|
+
"aria-required": D && S || void 0,
|
|
1101
|
+
"aria-readonly": D && x || void 0,
|
|
1102
1102
|
"aria-labelledby": _e,
|
|
1103
1103
|
onPointerDown: Se,
|
|
1104
1104
|
onPointerEnter: Se,
|
|
@@ -1112,15 +1112,15 @@ var an = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
},
|
|
1114
1114
|
onMouseDown(e) {
|
|
1115
|
-
if (ue || (
|
|
1116
|
-
let t =
|
|
1115
|
+
if (ue || (D || oe.set("domReferenceElement", e.currentTarget), v.context.forceMount(), xe.current !== "touch" && (v.context.inputRef.current?.focus(), D || e.preventDefault()), A)) return;
|
|
1116
|
+
let t = p(e.currentTarget);
|
|
1117
1117
|
function n(e) {
|
|
1118
1118
|
let t = v.state.triggerElement;
|
|
1119
1119
|
if (!t) return;
|
|
1120
1120
|
let n = Ae(e), r = v.state.positionerElement, i = v.state.listElement;
|
|
1121
|
-
Ve(t, n) || Ve(r, n) || Ve(i, n) || ye(e, t) || v.context.setOpen(!1, F(
|
|
1121
|
+
Ve(t, n) || Ve(r, n) || Ve(i, n) || ye(e, t) || v.context.setOpen(!1, F(te, e));
|
|
1122
1122
|
}
|
|
1123
|
-
|
|
1123
|
+
D && t.addEventListener("mouseup", n, { once: !0 });
|
|
1124
1124
|
},
|
|
1125
1125
|
onKeyDown(e) {
|
|
1126
1126
|
(e.key === "ArrowDown" || e.key === "ArrowUp") && (Ce(e), v.context.setOpen(!0, F(n, e.nativeEvent)), v.context.inputRef.current?.focus());
|
|
@@ -1158,7 +1158,7 @@ var cn = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1158
1158
|
c.set("positionerElement", e);
|
|
1159
1159
|
}), S = P((e) => {
|
|
1160
1160
|
c.set("listElement", e);
|
|
1161
|
-
}),
|
|
1161
|
+
}), C = I.useMemo(() => typeof o == "function" ? n ||= /*#__PURE__*/ B(sn, { children: o }) : o, [o]), T = { empty: b }, E = l.useState("floatingId"), D = me("div", e, {
|
|
1162
1162
|
state: T,
|
|
1163
1163
|
ref: [
|
|
1164
1164
|
t,
|
|
@@ -1168,7 +1168,7 @@ var cn = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1168
1168
|
props: [
|
|
1169
1169
|
g,
|
|
1170
1170
|
{
|
|
1171
|
-
children:
|
|
1171
|
+
children: C,
|
|
1172
1172
|
tabIndex: -1,
|
|
1173
1173
|
id: E,
|
|
1174
1174
|
role: m ? "grid" : "listbox",
|
|
@@ -1187,7 +1187,7 @@ var cn = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1187
1187
|
});
|
|
1188
1188
|
if (_) return D;
|
|
1189
1189
|
let O = f && !v ? void 0 : c.context.labelsRef;
|
|
1190
|
-
return /*#__PURE__*/ B(
|
|
1190
|
+
return /*#__PURE__*/ B(w, {
|
|
1191
1191
|
elementsRef: c.context.listRef,
|
|
1192
1192
|
labelsRef: O,
|
|
1193
1193
|
children: D
|
|
@@ -1230,33 +1230,33 @@ var un = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1230
1230
|
process.env.NODE_ENV !== "production" && (un.displayName = "ComboboxPortal");
|
|
1231
1231
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/combobox/positioner/ComboboxPositioner.mjs
|
|
1232
1232
|
var dn = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
1233
|
-
let { render: n, className: r, anchor: i, positionMethod: a, side:
|
|
1233
|
+
let { render: n, className: r, anchor: i, positionMethod: a, side: o, align: c, sideOffset: l, alignOffset: d, collisionBoundary: f = "clipping-ancestors", collisionPadding: p, arrowPadding: m, sticky: h, disableAnchorTracking: g = !1, collisionAvoidance: v = D, style: y, ...b } = e, x = V(), S = Pt(), C = Y(), w = x.useState("modal"), E = x.useState("open"), O = x.useState("mounted"), k = x.useState("openMethod"), ee = x.useState("positionerElement"), te = x.useState("triggerElement"), ne = x.useState("inputElement"), re = x.useState("inputGroupElement"), ie = x.useState("inputInsidePopup"), j = x.useState("transitionStatus"), ae = W(), M = Te({
|
|
1234
1234
|
anchor: i ?? (ie ? te : re ?? ne),
|
|
1235
1235
|
floatingRootContext: S,
|
|
1236
1236
|
positionMethod: a,
|
|
1237
1237
|
mounted: O,
|
|
1238
|
-
side:
|
|
1239
|
-
sideOffset:
|
|
1238
|
+
side: o,
|
|
1239
|
+
sideOffset: l,
|
|
1240
1240
|
align: c,
|
|
1241
1241
|
alignOffset: d,
|
|
1242
1242
|
arrowPadding: m,
|
|
1243
1243
|
collisionBoundary: f,
|
|
1244
1244
|
collisionPadding: p,
|
|
1245
1245
|
sticky: h,
|
|
1246
|
-
disableAnchorTracking:
|
|
1246
|
+
disableAnchorTracking: g,
|
|
1247
1247
|
keepMounted: C,
|
|
1248
1248
|
collisionAvoidance: v,
|
|
1249
1249
|
lazyFlip: !0
|
|
1250
1250
|
});
|
|
1251
|
-
|
|
1251
|
+
s(E && w, k === "touch", ee, te);
|
|
1252
1252
|
let oe = {
|
|
1253
|
-
open:
|
|
1253
|
+
open: E,
|
|
1254
1254
|
side: M.side,
|
|
1255
1255
|
align: M.align,
|
|
1256
1256
|
anchorHidden: M.anchorHidden,
|
|
1257
1257
|
empty: ae
|
|
1258
1258
|
};
|
|
1259
|
-
|
|
1259
|
+
T(() => {
|
|
1260
1260
|
x.set("popupSide", M.side);
|
|
1261
1261
|
}, [x, M.side]);
|
|
1262
1262
|
let se = P((e) => {
|
|
@@ -1267,12 +1267,12 @@ var dn = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
|
1267
1267
|
props: b,
|
|
1268
1268
|
refs: [t, se],
|
|
1269
1269
|
hidden: !O,
|
|
1270
|
-
inert: !
|
|
1270
|
+
inert: !E
|
|
1271
1271
|
});
|
|
1272
1272
|
return /*#__PURE__*/ yt($t.Provider, {
|
|
1273
1273
|
value: M,
|
|
1274
|
-
children: [O &&
|
|
1275
|
-
inert:
|
|
1274
|
+
children: [O && w && /*#__PURE__*/ B(u, {
|
|
1275
|
+
inert: _(!E),
|
|
1276
1276
|
cutout: re ?? ne ?? te
|
|
1277
1277
|
}), ce]
|
|
1278
1278
|
});
|
|
@@ -1283,8 +1283,8 @@ var X = {
|
|
|
1283
1283
|
...Re,
|
|
1284
1284
|
...de
|
|
1285
1285
|
}, fn = /*#__PURE__*/ I.forwardRef(function(e, t) {
|
|
1286
|
-
let { render: n, className: r, style: i, initialFocus: a, finalFocus: o, ...s } = e, c = V(), l = en(), u = Pt(),
|
|
1287
|
-
|
|
1286
|
+
let { render: n, className: r, style: i, initialFocus: a, finalFocus: o, ...s } = e, c = V(), l = en(), u = Pt(), d = c.useState("mounted"), p = c.useState("open"), m = c.useState("openMethod"), h = c.useState("popupProps"), g = c.useState("transitionStatus"), _ = c.useState("inputInsidePopup"), v = c.useState("inputElement"), y = c.useState("modal"), b = c.useState("id"), x = W(), C = s.id ?? (_ ? H(b) : void 0);
|
|
1287
|
+
T(() => (c.set("popupId", c.context.popupRef.current?.id || C), () => {
|
|
1288
1288
|
c.set("popupId", void 0);
|
|
1289
1289
|
}), [c, C]), Le({
|
|
1290
1290
|
open: p,
|
|
@@ -1293,15 +1293,15 @@ var X = {
|
|
|
1293
1293
|
p && c.context.onOpenChangeComplete(!0);
|
|
1294
1294
|
}
|
|
1295
1295
|
});
|
|
1296
|
-
let
|
|
1296
|
+
let w = {
|
|
1297
1297
|
open: p,
|
|
1298
1298
|
side: l.side,
|
|
1299
1299
|
align: l.align,
|
|
1300
1300
|
anchorHidden: l.anchorHidden,
|
|
1301
1301
|
transitionStatus: g,
|
|
1302
|
-
empty:
|
|
1302
|
+
empty: x
|
|
1303
1303
|
}, E = me("div", e, {
|
|
1304
|
-
state:
|
|
1304
|
+
state: w,
|
|
1305
1305
|
ref: [t, c.context.popupRef],
|
|
1306
1306
|
props: [
|
|
1307
1307
|
h,
|
|
@@ -1313,16 +1313,16 @@ var X = {
|
|
|
1313
1313
|
m !== "touch" && (Ve(c.state.listElement, t) || t === e.currentTarget) && c.context.inputRef.current?.focus();
|
|
1314
1314
|
}
|
|
1315
1315
|
},
|
|
1316
|
-
|
|
1316
|
+
S(g),
|
|
1317
1317
|
s
|
|
1318
1318
|
],
|
|
1319
1319
|
stateAttributesMapping: X
|
|
1320
1320
|
}), D = a === void 0 ? _ ? (e) => e === "touch" ? c.context.popupRef.current : v : !1 : a, O;
|
|
1321
1321
|
O = o ?? (_ ? void 0 : !1);
|
|
1322
1322
|
let k = !_ || y;
|
|
1323
|
-
return /*#__PURE__*/ B(
|
|
1323
|
+
return /*#__PURE__*/ B(f, {
|
|
1324
1324
|
context: u,
|
|
1325
|
-
disabled: !
|
|
1325
|
+
disabled: !d,
|
|
1326
1326
|
modal: k,
|
|
1327
1327
|
openInteractionType: m,
|
|
1328
1328
|
initialFocus: D,
|
|
@@ -1359,8 +1359,8 @@ function _n(e) {
|
|
|
1359
1359
|
guess: !0,
|
|
1360
1360
|
index: l,
|
|
1361
1361
|
textRef: p
|
|
1362
|
-
}), h = V(), g = gn(), _ = Lt(), { props: v, id: y, selectionMode: b, disabled: x, readOnly: S, isItemEqualToValue: C } = h.useState("itemRoot"),
|
|
1363
|
-
|
|
1362
|
+
}), h = V(), g = gn(), _ = Lt(), { props: v, id: y, selectionMode: b, disabled: x, readOnly: S, isItemEqualToValue: C } = h.useState("itemRoot"), w = x || u, E = b !== "none", D = l ?? i ?? m.index, O = D !== -1, k = h.useState("isActive", D), ee = h.useState("isSelected", c), te = I.useRef(null), ne = y != null && O ? `${y}-${D}` : void 0, re = ee && E;
|
|
1363
|
+
T(() => {
|
|
1364
1364
|
if (!O || !r && l == null) return;
|
|
1365
1365
|
let e = h.context.listRef.current;
|
|
1366
1366
|
return e[D] = te.current, () => {
|
|
@@ -1372,7 +1372,7 @@ function _n(e) {
|
|
|
1372
1372
|
D,
|
|
1373
1373
|
l,
|
|
1374
1374
|
h
|
|
1375
|
-
]),
|
|
1375
|
+
]), T(() => {
|
|
1376
1376
|
if (!O || _) return;
|
|
1377
1377
|
let e = h.context.valuesRef.current;
|
|
1378
1378
|
return e[D] = c, () => {
|
|
@@ -1384,7 +1384,7 @@ function _n(e) {
|
|
|
1384
1384
|
D,
|
|
1385
1385
|
c,
|
|
1386
1386
|
h
|
|
1387
|
-
]),
|
|
1387
|
+
]), T(() => {
|
|
1388
1388
|
if (!O || _) return;
|
|
1389
1389
|
let e = h.state.selectedValue, t = h.state.selectedIndex;
|
|
1390
1390
|
h.state.selectionMode === "multiple" && Array.isArray(e) ? t = ct(D, c, h.context.valuesRef.current, e, C, t) : lt(c, e, C) && (t = D), h.set("selectedIndex", t);
|
|
@@ -1397,12 +1397,12 @@ function _n(e) {
|
|
|
1397
1397
|
C
|
|
1398
1398
|
]);
|
|
1399
1399
|
let { getButtonProps: A, buttonRef: ie } = qe({
|
|
1400
|
-
disabled:
|
|
1400
|
+
disabled: w,
|
|
1401
1401
|
focusableWhenDisabled: !0,
|
|
1402
1402
|
native: d,
|
|
1403
1403
|
composite: !0
|
|
1404
1404
|
}), j = {
|
|
1405
|
-
disabled:
|
|
1405
|
+
disabled: w,
|
|
1406
1406
|
selected: re,
|
|
1407
1407
|
highlighted: k
|
|
1408
1408
|
};
|
|
@@ -1424,11 +1424,11 @@ function _n(e) {
|
|
|
1424
1424
|
e.preventDefault();
|
|
1425
1425
|
},
|
|
1426
1426
|
onClick(e) {
|
|
1427
|
-
|
|
1427
|
+
w || S || ae(e.nativeEvent);
|
|
1428
1428
|
},
|
|
1429
1429
|
onMouseUp(e) {
|
|
1430
1430
|
let t = h.context.pointerDownItemRef.current === e.currentTarget;
|
|
1431
|
-
h.context.pointerDownItemRef.current = null, !(
|
|
1431
|
+
h.context.pointerDownItemRef.current = null, !(w || S || e.button !== 0 || t || !k) && ae(e.nativeEvent);
|
|
1432
1432
|
}
|
|
1433
1433
|
}, oe = me("div", t, {
|
|
1434
1434
|
ref: [
|
|
@@ -1587,19 +1587,19 @@ function Cn(e) {
|
|
|
1587
1587
|
let _ = d && "rounded-none bg-transparent text-sm", v;
|
|
1588
1588
|
t[14] === _ ? v = t[15] : (v = ze("has-disabled:opacity-100", _), t[14] = _, t[15] = v);
|
|
1589
1589
|
let y;
|
|
1590
|
-
t[16] !== f || t[17] !== v || t[18] !== d ? (y = /* @__PURE__ */ B(
|
|
1590
|
+
t[16] !== f || t[17] !== v || t[18] !== d ? (y = /* @__PURE__ */ B(x, {
|
|
1591
1591
|
className: v,
|
|
1592
1592
|
nativeInput: !0,
|
|
1593
1593
|
size: f,
|
|
1594
1594
|
unstyled: d
|
|
1595
1595
|
}), t[16] = f, t[17] = v, t[18] = d, t[19] = y) : y = t[19];
|
|
1596
|
-
let
|
|
1597
|
-
t[20] !== r || t[21] !== y || t[22] !== g ? (
|
|
1596
|
+
let b;
|
|
1597
|
+
t[20] !== r || t[21] !== y || t[22] !== g ? (b = /* @__PURE__ */ B(G, {
|
|
1598
1598
|
className: g,
|
|
1599
1599
|
"data-slot": "combobox-input",
|
|
1600
1600
|
render: y,
|
|
1601
1601
|
...r
|
|
1602
|
-
}), t[20] = r, t[21] = y, t[22] = g, t[23] =
|
|
1602
|
+
}), t[20] = r, t[21] = y, t[22] = g, t[23] = b) : b = t[23];
|
|
1603
1603
|
let S;
|
|
1604
1604
|
t[24] !== l || t[25] !== f ? (S = l && /* @__PURE__ */ B(Tn, {
|
|
1605
1605
|
className: ze("-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", f === "sm" ? "end-0" : "end-0.5"),
|
|
@@ -1614,15 +1614,15 @@ function Cn(e) {
|
|
|
1614
1614
|
children: /* @__PURE__ */ B(et, {})
|
|
1615
1615
|
}), t[27] = u, t[28] = f, t[29] = C) : C = t[29];
|
|
1616
1616
|
let w;
|
|
1617
|
-
return t[30] !==
|
|
1617
|
+
return t[30] !== b || t[31] !== S || t[32] !== C || t[33] !== p ? (w = /* @__PURE__ */ yt("div", {
|
|
1618
1618
|
className: "relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64",
|
|
1619
1619
|
children: [
|
|
1620
1620
|
p,
|
|
1621
|
-
|
|
1621
|
+
b,
|
|
1622
1622
|
S,
|
|
1623
1623
|
C
|
|
1624
1624
|
]
|
|
1625
|
-
}), t[30] =
|
|
1625
|
+
}), t[30] = b, t[31] = S, t[32] = C, t[33] = p, t[34] = w) : w = t[34], w;
|
|
1626
1626
|
}
|
|
1627
1627
|
function wn(e) {
|
|
1628
1628
|
let t = z(3), n;
|
|
@@ -1786,36 +1786,36 @@ function Pn(e) {
|
|
|
1786
1786
|
return `${t < 10 ? t.toFixed(1).replace(/\.0$/, "") : Math.round(t)}b`;
|
|
1787
1787
|
}
|
|
1788
1788
|
var Fn = _t(function(e) {
|
|
1789
|
-
let t = z(20), { additions: n, deletions: r, className: i, layout:
|
|
1790
|
-
t[0] !== n || t[1] !== r || t[2] !==
|
|
1789
|
+
let t = z(20), { additions: n, deletions: r, className: i, layout: o } = e, s = o === void 0 ? "aligned" : o, c = a(), l;
|
|
1790
|
+
t[0] !== n || t[1] !== r || t[2] !== c ? (l = c("{additions} additions, {deletions} deletions", {
|
|
1791
1791
|
additions: n,
|
|
1792
1792
|
deletions: r
|
|
1793
|
-
}), t[0] = n, t[1] = r, t[2] =
|
|
1794
|
-
let
|
|
1795
|
-
t[4] !== i || t[5] !==
|
|
1796
|
-
let d;
|
|
1797
|
-
t[7] === n ? d = t[8] : (d = Pn(n), t[7] = n, t[8] = d);
|
|
1793
|
+
}), t[0] = n, t[1] = r, t[2] = c, t[3] = l) : l = t[3];
|
|
1794
|
+
let u = s === "inline" ? "inline-flex items-center gap-1 tabular-nums align-middle" : "inline-grid grid-cols-[4ch_4ch] gap-2 text-right tabular-nums align-middle", d;
|
|
1795
|
+
t[4] !== i || t[5] !== u ? (d = ze(u, i), t[4] = i, t[5] = u, t[6] = d) : d = t[6];
|
|
1798
1796
|
let f;
|
|
1799
|
-
t[
|
|
1797
|
+
t[7] === n ? f = t[8] : (f = Pn(n), t[7] = n, t[8] = f);
|
|
1798
|
+
let p;
|
|
1799
|
+
t[9] === f ? p = t[10] : (p = /* @__PURE__ */ yt("span", {
|
|
1800
1800
|
"aria-hidden": "true",
|
|
1801
1801
|
className: "font-mono text-diff-addition-foreground",
|
|
1802
|
-
children: ["+",
|
|
1803
|
-
}), t[9] =
|
|
1804
|
-
let p;
|
|
1805
|
-
t[11] === r ? p = t[12] : (p = Pn(r), t[11] = r, t[12] = p);
|
|
1802
|
+
children: ["+", f]
|
|
1803
|
+
}), t[9] = f, t[10] = p);
|
|
1806
1804
|
let m;
|
|
1807
|
-
t[
|
|
1805
|
+
t[11] === r ? m = t[12] : (m = Pn(r), t[11] = r, t[12] = m);
|
|
1806
|
+
let h;
|
|
1807
|
+
t[13] === m ? h = t[14] : (h = /* @__PURE__ */ yt("span", {
|
|
1808
1808
|
"aria-hidden": "true",
|
|
1809
1809
|
className: "font-mono text-diff-deletion-foreground",
|
|
1810
|
-
children: ["-",
|
|
1811
|
-
}), t[13] =
|
|
1812
|
-
let
|
|
1813
|
-
return t[15] !==
|
|
1810
|
+
children: ["-", m]
|
|
1811
|
+
}), t[13] = m, t[14] = h);
|
|
1812
|
+
let g;
|
|
1813
|
+
return t[15] !== l || t[16] !== d || t[17] !== p || t[18] !== h ? (g = /* @__PURE__ */ yt("span", {
|
|
1814
1814
|
role: "group",
|
|
1815
|
-
"aria-label":
|
|
1816
|
-
className:
|
|
1817
|
-
children: [
|
|
1818
|
-
}), t[15] =
|
|
1815
|
+
"aria-label": l,
|
|
1816
|
+
className: d,
|
|
1817
|
+
children: [p, h]
|
|
1818
|
+
}), t[15] = l, t[16] = d, t[17] = p, t[18] = h, t[19] = g) : g = t[19], g;
|
|
1819
1819
|
}), In = 1e4, Ln = 3e5, Rn = 36e4;
|
|
1820
1820
|
function zn(e) {
|
|
1821
1821
|
return e.visible && e.now - e.lastRefreshedAt >= 1e4;
|