@fluid-app/fluid-cli-theme-dev 0.1.171 → 0.1.173
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/dist-cli-preview/.vite/manifest.json +583 -181
- package/dist/dist-cli-preview/account-screens.css +1 -0
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Breadcrumb-BQKo8hPc.js → Breadcrumb-8-7shsB6.js} +1 -1
- package/dist/dist-cli-preview/chunks/Combobox-m3vSk0_A.js +521 -0
- package/dist/dist-cli-preview/chunks/{ContactsScreen-IsIZ_lQ0.js → ContactsScreen-CBjQOWmH.js} +1523 -1854
- package/dist/dist-cli-preview/chunks/MediaScreen-1akMnH12.js +17379 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-DiQkiWzc.js → MemberManagementProviders-WSjb3a8B.js} +189 -199
- package/dist/dist-cli-preview/chunks/{MessagingScreen-B8ZxAE0L.js → MessagingScreen-By-jZq6v.js} +27645 -30195
- package/dist/dist-cli-preview/chunks/{MobileActionSheet-DMeTsLlK.js → MobileActionSheet-ERpw3qUF.js} +644 -589
- package/dist/dist-cli-preview/chunks/MySiteScreen-JAGvVMx-.js +1706 -0
- package/dist/dist-cli-preview/chunks/OrdersScreen-B1HQVMZC.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-DrZ3SwEu.js → OrdersScreen-Cb32bBjd.js} +35 -35
- package/dist/dist-cli-preview/chunks/PortalTenantClientProvider-CguU_uRG.js +15 -0
- package/dist/dist-cli-preview/chunks/{ProfileScreen-Dxspc-6p.js → ProfileScreen-CCWM6TBs.js} +454 -463
- package/dist/dist-cli-preview/chunks/Select-5fzq5MB-.js +940 -0
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-Be0C29uw.js → SubscriptionsScreen-DLdsaVJK.js} +3 -3
- package/dist/dist-cli-preview/chunks/Textarea-xoKqLVgY.js +330 -0
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-DYMunv0A.js → account-screen-runtime-CCBl8DXt.js} +866 -860
- package/dist/dist-cli-preview/chunks/ar-D6LJV1_E.js +679 -0
- package/dist/dist-cli-preview/chunks/{arrow-left-Bd7dJtIV.js → arrow-left-CTYaRdTX.js} +1 -1
- package/dist/dist-cli-preview/chunks/bg-C5Ldmily.js +679 -0
- package/dist/dist-cli-preview/chunks/bn-kfMPWNR6.js +679 -0
- package/dist/dist-cli-preview/chunks/{cli-preview-C7Db08Ij.js → cli-preview-HAt0Lt-9.js} +20 -13
- package/dist/dist-cli-preview/chunks/{client.gen-Ck6Pm2jV.js → client.gen-B7RMYGYu.js} +1 -1
- package/dist/dist-cli-preview/chunks/copy-DHN1DxE_.js +14 -0
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-InKUzF1q.js → countries-api-adapter-B4TefdRP.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-C9z7JILL.js → create-card-entry-container-5NqOQ4D_.js} +3612 -3932
- package/dist/dist-cli-preview/chunks/cs-DqEgtV8D.js +679 -0
- package/dist/dist-cli-preview/chunks/da-BbuvL7Gx.js +679 -0
- package/dist/dist-cli-preview/chunks/de-BfJ7rQig.js +679 -0
- package/dist/dist-cli-preview/chunks/el-BO0rLq6D.js +679 -0
- package/dist/dist-cli-preview/chunks/es-BEVtEUXk.js +679 -0
- package/dist/dist-cli-preview/chunks/eye-qMoMW7-Z.js +20 -0
- package/dist/dist-cli-preview/chunks/fi-DjISV3UN.js +679 -0
- package/dist/dist-cli-preview/chunks/fr-1fFd-aKy.js +679 -0
- package/dist/dist-cli-preview/chunks/he-CaT9bwVp.js +679 -0
- package/dist/dist-cli-preview/chunks/{hey-api-client-DGRBsZ7Y.js → hey-api-client-JMNyZwcF.js} +79 -39
- package/dist/dist-cli-preview/chunks/hi-DkzEm57l.js +679 -0
- package/dist/dist-cli-preview/chunks/hr-DqM5N_bj.js +679 -0
- package/dist/dist-cli-preview/chunks/hu-DiLqjo5c.js +679 -0
- package/dist/dist-cli-preview/chunks/id-DA1KmwgX.js +679 -0
- package/dist/dist-cli-preview/chunks/index-BS4PnEcu.js +353 -0
- package/dist/dist-cli-preview/chunks/index-BhMjUmAr.js +2572 -0
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-BDjSpDoe.js → index-Dor8vM2o.js} +2417 -3035
- package/dist/dist-cli-preview/chunks/it-CTEVWCRz.js +679 -0
- package/dist/dist-cli-preview/chunks/ja-fxqg1hhg.js +679 -0
- package/dist/dist-cli-preview/chunks/ko-Btp1_5YS.js +679 -0
- package/dist/dist-cli-preview/chunks/lock-DQTMeEw0.js +14 -0
- package/dist/dist-cli-preview/chunks/{log-out-CSPZjXTK.js → log-out-DUdRJX4l.js} +1 -1
- package/dist/dist-cli-preview/chunks/{map-pin-B2ScoijR.js → map-pin-DyIkpqP0.js} +1 -1
- package/dist/dist-cli-preview/chunks/media-vkLeBb90.js +4 -0
- package/dist/dist-cli-preview/chunks/member-permissions-ndhNmlOk.js +19 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-5thBUz3X.js → mount-account-screen--gdc5WO_.js} +1869 -1884
- package/dist/dist-cli-preview/chunks/ms-DqRbmHx8.js +679 -0
- package/dist/dist-cli-preview/chunks/navigate-account-screen-AVNopuIP.js +38 -0
- package/dist/dist-cli-preview/chunks/nl-CkPNddxO.js +679 -0
- package/dist/dist-cli-preview/chunks/no-ftcy0RcQ.js +679 -0
- package/dist/dist-cli-preview/chunks/pl-wyJLqfip.js +679 -0
- package/dist/dist-cli-preview/chunks/{plus-CocoE5gC.js → plus-DZjrp536.js} +1 -1
- package/dist/dist-cli-preview/chunks/pt-7uHLacuI.js +679 -0
- package/dist/dist-cli-preview/chunks/ro-Dh12ghww.js +679 -0
- package/dist/dist-cli-preview/chunks/ru-DFM7xWFz.js +679 -0
- package/dist/dist-cli-preview/chunks/{schemas-D94nZk5x.js → schemas-BTblatUV.js} +1107 -1062
- package/dist/dist-cli-preview/chunks/screen-route-slug-utils-DozJp-uc.js +620 -0
- package/dist/dist-cli-preview/chunks/{sheet-haptics-context-iOjKcNDj.js → sheet-haptics-context-CYrEaGtf.js} +3 -3
- package/dist/dist-cli-preview/chunks/sidebar-9qopXeR1.js +598 -0
- package/dist/dist-cli-preview/chunks/sk-CsuNYa1k.js +679 -0
- package/dist/dist-cli-preview/chunks/sortable.esm-Dlen88Fc.js +3283 -0
- package/dist/dist-cli-preview/chunks/{store-api-context-B96Ip2FB.js → store-api-context-B9pW_xao.js} +1 -1
- package/dist/dist-cli-preview/chunks/sv-DVrPaJbh.js +679 -0
- package/dist/dist-cli-preview/chunks/th-BEkMpcVW.js +679 -0
- package/dist/dist-cli-preview/chunks/tl-CqwwplQC.js +679 -0
- package/dist/dist-cli-preview/chunks/tr-XEp4ekrM.js +679 -0
- package/dist/dist-cli-preview/chunks/{trash-2-wVweQZMw.js → trash-2-ClRyi9iY.js} +12 -12
- package/dist/dist-cli-preview/chunks/uk-DWdZFWBl.js +679 -0
- package/dist/dist-cli-preview/chunks/use-mobile-srOt50VV.js +254 -0
- package/dist/dist-cli-preview/chunks/{use-optional-store-lZUz976C.js → use-optional-store-BgrOjfZJ.js} +2 -2
- package/dist/dist-cli-preview/chunks/{use-store-DVmgsDXy.js → use-store-CUSQx1E-.js} +25 -36
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-Dtzov9uh.js → useInfiniteQuery-DGc8fotv.js} +1 -1
- package/dist/dist-cli-preview/chunks/user-Ca2sKJ-h.js +14 -0
- package/dist/dist-cli-preview/chunks/users-Dh7zTrKY.js +16 -0
- package/dist/dist-cli-preview/chunks/vi-H__PaPsC.js +679 -0
- package/dist/dist-cli-preview/chunks/zh_CN-B62j_w_1.js +679 -0
- package/dist/dist-cli-preview/chunks/zh_TW-CYUIGBvP.js +679 -0
- package/package.json +1 -1
- package/dist/dist-cli-preview/chunks/Combobox-cf11L_T-.js +0 -1455
- package/dist/dist-cli-preview/chunks/MySiteScreen-Dtw1rsF9.js +0 -4950
- package/dist/dist-cli-preview/chunks/OrdersScreen-DkltVCtr.js +0 -9
- package/dist/dist-cli-preview/chunks/sidebar-Ckzom4Xc.js +0 -848
- package/dist/dist-cli-preview/chunks/user-B81IrSgp.js +0 -31
- package/dist/dist-cli-preview/chunks/users-BXTjoCUz.js +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size: 12px;--rc-drag-handle-mobile-size: 24px;--rc-drag-handle-bg-colour: rgba(0, 0, 0, .2);--rc-drag-bar-size: 6px;--rc-border-color: rgba(255, 255, 255, .7);--rc-focus-color: #0088ff}.ReactCrop{position:relative;display:inline-block;cursor:crosshair;max-width:100%}.ReactCrop *,.ReactCrop *:before,.ReactCrop *:after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{overflow:hidden;max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video{touch-action:none}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{position:absolute;inset:0;pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px)}.ReactCrop__crop-selection{position:absolute;top:0;left:0;transform:translateZ(0);cursor:move}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";position:absolute;inset:-1px;border:1px solid var(--rc-border-color);opacity:.3}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed white}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){animation:marching-ants 1s;background-image:linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to right,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%),linear-gradient(to bottom,#fff 50%,#444 50%);background-size:10px 1px,10px 1px,1px 10px,1px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;color:#fff;animation-play-state:running;animation-timing-function:linear;animation-iteration-count:infinite}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";display:block;position:absolute;background-color:#fff6}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666666667%}.ReactCrop__drag-handle{position:absolute;width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{top:0;left:0;transform:translate(-50%,-50%);cursor:nw-resize}.ReactCrop .ord-n{top:0;left:50%;transform:translate(-50%,-50%);cursor:n-resize}.ReactCrop .ord-ne{top:0;right:0;transform:translate(50%,-50%);cursor:ne-resize}.ReactCrop .ord-e{top:50%;right:0;transform:translate(50%,-50%);cursor:e-resize}.ReactCrop .ord-se{bottom:0;right:0;transform:translate(50%,50%);cursor:se-resize}.ReactCrop .ord-s{bottom:0;left:50%;transform:translate(-50%,50%);cursor:s-resize}.ReactCrop .ord-sw{bottom:0;left:0;transform:translate(-50%,50%);cursor:sw-resize}.ReactCrop .ord-w{top:50%;left:0;transform:translate(-50%,-50%);cursor:w-resize}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:var(--rc-drag-bar-size);transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:var(--rc-drag-bar-size);height:100%;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media(pointer:coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunks/cli-preview-
|
|
1
|
+
import "./chunks/cli-preview-HAt0Lt-9.js";
|
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
import { l, ba as L, bl as A, bm as Ee, bn as Se, bo as Ie, a4 as je, bp as q, j as w, M as j } from "./account-screen-runtime-CCBl8DXt.js";
|
|
2
|
+
import { S as Re } from "./useInfiniteQuery-DGc8fotv.js";
|
|
3
|
+
import { P as Ae, g as Me, C as Ne, h as $e } from "./MobileActionSheet-ERpw3qUF.js";
|
|
4
|
+
import { C as De } from "./schemas-BTblatUV.js";
|
|
5
|
+
var me = 1, Pe = 0.9, Fe = 0.8, Le = 0.17, ee = 0.1, te = 0.999, Ke = 0.9999, Oe = 0.99, Ve = /[\\\/_+.#"@\[\(\{&]/, qe = /[\\\/_+.#"@\[\(\{&]/g, ze = /[\s-]/, he = /[\s-]/g;
|
|
6
|
+
function ne(e, n, r, d, o, i, c) {
|
|
7
|
+
if (i === n.length) return o === e.length ? me : Oe;
|
|
8
|
+
var f = `${o},${i}`;
|
|
9
|
+
if (c[f] !== void 0) return c[f];
|
|
10
|
+
for (var b = d.charAt(i), u = r.indexOf(b, o), p = 0, h, k, v, I; u >= 0; ) h = ne(e, n, r, d, u + 1, i + 1, c), h > p && (u === o ? h *= me : Ve.test(e.charAt(u - 1)) ? (h *= Fe, v = e.slice(o, u - 1).match(qe), v && o > 0 && (h *= Math.pow(te, v.length))) : ze.test(e.charAt(u - 1)) ? (h *= Pe, I = e.slice(o, u - 1).match(he), I && o > 0 && (h *= Math.pow(te, I.length))) : (h *= Le, o > 0 && (h *= Math.pow(te, u - o))), e.charAt(u) !== n.charAt(i) && (h *= Ke)), (h < ee && r.charAt(u - 1) === d.charAt(i + 1) || d.charAt(i + 1) === d.charAt(i) && r.charAt(u - 1) !== d.charAt(i)) && (k = ne(e, n, r, d, u + 1, i + 2, c), k * ee > h && (h = k * ee)), h > p && (p = h), u = r.indexOf(b, u + 1);
|
|
11
|
+
return c[f] = p, p;
|
|
12
|
+
}
|
|
13
|
+
function pe(e) {
|
|
14
|
+
return e.toLowerCase().replace(he, " ");
|
|
15
|
+
}
|
|
16
|
+
function Be(e, n, r) {
|
|
17
|
+
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, ne(e, n, pe(e), pe(n), 0, 0, {});
|
|
18
|
+
}
|
|
19
|
+
var V = '[cmdk-group=""]', re = '[cmdk-group-items=""]', Ge = '[cmdk-group-heading=""]', ge = '[cmdk-item=""]', ve = `${ge}:not([aria-disabled="true"])`, le = "cmdk-item-select", P = "data-value", Te = (e, n, r) => Be(e, n, r), be = l.createContext(void 0), z = () => l.useContext(be), xe = l.createContext(void 0), ae = () => l.useContext(xe), we = l.createContext(void 0), ye = l.forwardRef((e, n) => {
|
|
20
|
+
let r = F(() => {
|
|
21
|
+
var t, s;
|
|
22
|
+
return { search: "", value: (s = (t = e.value) != null ? t : e.defaultValue) != null ? s : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
23
|
+
}), d = F(() => /* @__PURE__ */ new Set()), o = F(() => /* @__PURE__ */ new Map()), i = F(() => /* @__PURE__ */ new Map()), c = F(() => /* @__PURE__ */ new Set()), f = ke(e), { label: b, children: u, value: p, onValueChange: h, filter: k, shouldFilter: v, loop: I, disablePointerSelection: U = !1, vimBindings: M = !0, ...B } = e, H = L(), oe = L(), W = L(), N = l.useRef(null), y = tt();
|
|
24
|
+
$(() => {
|
|
25
|
+
if (p !== void 0) {
|
|
26
|
+
let t = p.trim();
|
|
27
|
+
r.current.value = t, E.emit();
|
|
28
|
+
}
|
|
29
|
+
}, [p]), $(() => {
|
|
30
|
+
y(6, ie);
|
|
31
|
+
}, []);
|
|
32
|
+
let E = l.useMemo(() => ({ subscribe: (t) => (c.current.add(t), () => c.current.delete(t)), snapshot: () => r.current, setState: (t, s, m) => {
|
|
33
|
+
var a, g, x, S;
|
|
34
|
+
if (!Object.is(r.current[t], s)) {
|
|
35
|
+
if (r.current[t] = s, t === "search") Y(), J(), y(1, X);
|
|
36
|
+
else if (t === "value") {
|
|
37
|
+
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
38
|
+
let C = document.getElementById(W);
|
|
39
|
+
C ? C.focus() : (a = document.getElementById(H)) == null || a.focus();
|
|
40
|
+
}
|
|
41
|
+
if (y(7, () => {
|
|
42
|
+
var C;
|
|
43
|
+
r.current.selectedItemId = (C = D()) == null ? void 0 : C.id, E.emit();
|
|
44
|
+
}), m || y(5, ie), ((g = f.current) == null ? void 0 : g.value) !== void 0) {
|
|
45
|
+
let C = s ?? "";
|
|
46
|
+
(S = (x = f.current).onValueChange) == null || S.call(x, C);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
E.emit();
|
|
51
|
+
}
|
|
52
|
+
}, emit: () => {
|
|
53
|
+
c.current.forEach((t) => t());
|
|
54
|
+
} }), []), _ = l.useMemo(() => ({ value: (t, s, m) => {
|
|
55
|
+
var a;
|
|
56
|
+
s !== ((a = i.current.get(t)) == null ? void 0 : a.value) && (i.current.set(t, { value: s, keywords: m }), r.current.filtered.items.set(t, ue(s, m)), y(2, () => {
|
|
57
|
+
J(), E.emit();
|
|
58
|
+
}));
|
|
59
|
+
}, item: (t, s) => (d.current.add(t), s && (o.current.has(s) ? o.current.get(s).add(t) : o.current.set(s, /* @__PURE__ */ new Set([t]))), y(3, () => {
|
|
60
|
+
Y(), J(), r.current.value || X(), E.emit();
|
|
61
|
+
}), () => {
|
|
62
|
+
i.current.delete(t), d.current.delete(t), r.current.filtered.items.delete(t);
|
|
63
|
+
let m = D();
|
|
64
|
+
y(4, () => {
|
|
65
|
+
Y(), m?.getAttribute("id") === t && X(), E.emit();
|
|
66
|
+
});
|
|
67
|
+
}), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
|
|
68
|
+
i.current.delete(t), o.current.delete(t);
|
|
69
|
+
}), filter: () => f.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => f.current.disablePointerSelection, listId: H, inputId: W, labelId: oe, listInnerRef: N }), []);
|
|
70
|
+
function ue(t, s) {
|
|
71
|
+
var m, a;
|
|
72
|
+
let g = (a = (m = f.current) == null ? void 0 : m.filter) != null ? a : Te;
|
|
73
|
+
return t ? g(t, r.current.search, s) : 0;
|
|
74
|
+
}
|
|
75
|
+
function J() {
|
|
76
|
+
if (!r.current.search || f.current.shouldFilter === !1) return;
|
|
77
|
+
let t = r.current.filtered.items, s = [];
|
|
78
|
+
r.current.filtered.groups.forEach((a) => {
|
|
79
|
+
let g = o.current.get(a), x = 0;
|
|
80
|
+
g.forEach((S) => {
|
|
81
|
+
let C = t.get(S);
|
|
82
|
+
x = Math.max(C, x);
|
|
83
|
+
}), s.push([a, x]);
|
|
84
|
+
});
|
|
85
|
+
let m = N.current;
|
|
86
|
+
O().sort((a, g) => {
|
|
87
|
+
var x, S;
|
|
88
|
+
let C = a.getAttribute("id"), G = g.getAttribute("id");
|
|
89
|
+
return ((x = t.get(G)) != null ? x : 0) - ((S = t.get(C)) != null ? S : 0);
|
|
90
|
+
}).forEach((a) => {
|
|
91
|
+
let g = a.closest(re);
|
|
92
|
+
g ? g.appendChild(a.parentElement === g ? a : a.closest(`${re} > *`)) : m.appendChild(a.parentElement === m ? a : a.closest(`${re} > *`));
|
|
93
|
+
}), s.sort((a, g) => g[1] - a[1]).forEach((a) => {
|
|
94
|
+
var g;
|
|
95
|
+
let x = (g = N.current) == null ? void 0 : g.querySelector(`${V}[${P}="${encodeURIComponent(a[0])}"]`);
|
|
96
|
+
x?.parentElement.appendChild(x);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function X() {
|
|
100
|
+
let t = O().find((m) => m.getAttribute("aria-disabled") !== "true"), s = t?.getAttribute(P);
|
|
101
|
+
E.setState("value", s || void 0);
|
|
102
|
+
}
|
|
103
|
+
function Y() {
|
|
104
|
+
var t, s, m, a;
|
|
105
|
+
if (!r.current.search || f.current.shouldFilter === !1) {
|
|
106
|
+
r.current.filtered.count = d.current.size;
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
110
|
+
let g = 0;
|
|
111
|
+
for (let x of d.current) {
|
|
112
|
+
let S = (s = (t = i.current.get(x)) == null ? void 0 : t.value) != null ? s : "", C = (a = (m = i.current.get(x)) == null ? void 0 : m.keywords) != null ? a : [], G = ue(S, C);
|
|
113
|
+
r.current.filtered.items.set(x, G), G > 0 && g++;
|
|
114
|
+
}
|
|
115
|
+
for (let [x, S] of o.current) for (let C of S) if (r.current.filtered.items.get(C) > 0) {
|
|
116
|
+
r.current.filtered.groups.add(x);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
r.current.filtered.count = g;
|
|
120
|
+
}
|
|
121
|
+
function ie() {
|
|
122
|
+
var t, s, m;
|
|
123
|
+
let a = D();
|
|
124
|
+
a && (((t = a.parentElement) == null ? void 0 : t.firstChild) === a && ((m = (s = a.closest(V)) == null ? void 0 : s.querySelector(Ge)) == null || m.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
|
|
125
|
+
}
|
|
126
|
+
function D() {
|
|
127
|
+
var t;
|
|
128
|
+
return (t = N.current) == null ? void 0 : t.querySelector(`${ge}[aria-selected="true"]`);
|
|
129
|
+
}
|
|
130
|
+
function O() {
|
|
131
|
+
var t;
|
|
132
|
+
return Array.from(((t = N.current) == null ? void 0 : t.querySelectorAll(ve)) || []);
|
|
133
|
+
}
|
|
134
|
+
function Q(t) {
|
|
135
|
+
let s = O()[t];
|
|
136
|
+
s && E.setState("value", s.getAttribute(P));
|
|
137
|
+
}
|
|
138
|
+
function Z(t) {
|
|
139
|
+
var s;
|
|
140
|
+
let m = D(), a = O(), g = a.findIndex((S) => S === m), x = a[g + t];
|
|
141
|
+
(s = f.current) != null && s.loop && (x = g + t < 0 ? a[a.length - 1] : g + t === a.length ? a[0] : a[g + t]), x && E.setState("value", x.getAttribute(P));
|
|
142
|
+
}
|
|
143
|
+
function se(t) {
|
|
144
|
+
let s = D(), m = s?.closest(V), a;
|
|
145
|
+
for (; m && !a; ) m = t > 0 ? Ze(m, V) : et(m, V), a = m?.querySelector(ve);
|
|
146
|
+
a ? E.setState("value", a.getAttribute(P)) : Z(t);
|
|
147
|
+
}
|
|
148
|
+
let ce = () => Q(O().length - 1), de = (t) => {
|
|
149
|
+
t.preventDefault(), t.metaKey ? ce() : t.altKey ? se(1) : Z(1);
|
|
150
|
+
}, fe = (t) => {
|
|
151
|
+
t.preventDefault(), t.metaKey ? Q(0) : t.altKey ? se(-1) : Z(-1);
|
|
152
|
+
};
|
|
153
|
+
return l.createElement(A.div, { ref: n, tabIndex: -1, ...B, "cmdk-root": "", onKeyDown: (t) => {
|
|
154
|
+
var s;
|
|
155
|
+
(s = B.onKeyDown) == null || s.call(B, t);
|
|
156
|
+
let m = t.nativeEvent.isComposing || t.keyCode === 229;
|
|
157
|
+
if (!(t.defaultPrevented || m)) switch (t.key) {
|
|
158
|
+
case "n":
|
|
159
|
+
case "j": {
|
|
160
|
+
M && t.ctrlKey && de(t);
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
case "ArrowDown": {
|
|
164
|
+
de(t);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
case "p":
|
|
168
|
+
case "k": {
|
|
169
|
+
M && t.ctrlKey && fe(t);
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
case "ArrowUp": {
|
|
173
|
+
fe(t);
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
case "Home": {
|
|
177
|
+
t.preventDefault(), Q(0);
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
case "End": {
|
|
181
|
+
t.preventDefault(), ce();
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
case "Enter": {
|
|
185
|
+
t.preventDefault();
|
|
186
|
+
let a = D();
|
|
187
|
+
if (a) {
|
|
188
|
+
let g = new Event(le);
|
|
189
|
+
a.dispatchEvent(g);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
} }, l.createElement("label", { "cmdk-label": "", htmlFor: _.inputId, id: _.labelId, style: nt }, b), T(e, (t) => l.createElement(xe.Provider, { value: E }, l.createElement(be.Provider, { value: _ }, t))));
|
|
194
|
+
}), Ue = l.forwardRef((e, n) => {
|
|
195
|
+
var r, d;
|
|
196
|
+
let o = L(), i = l.useRef(null), c = l.useContext(we), f = z(), b = ke(e), u = (d = (r = b.current) == null ? void 0 : r.forceMount) != null ? d : c?.forceMount;
|
|
197
|
+
$(() => {
|
|
198
|
+
if (!u) return f.item(o, c?.id);
|
|
199
|
+
}, [u]);
|
|
200
|
+
let p = Ce(o, i, [e.value, e.children, i], e.keywords), h = ae(), k = R((y) => y.value && y.value === p.current), v = R((y) => u || f.filter() === !1 ? !0 : y.search ? y.filtered.items.get(o) > 0 : !0);
|
|
201
|
+
l.useEffect(() => {
|
|
202
|
+
let y = i.current;
|
|
203
|
+
if (!(!y || e.disabled)) return y.addEventListener(le, I), () => y.removeEventListener(le, I);
|
|
204
|
+
}, [v, e.onSelect, e.disabled]);
|
|
205
|
+
function I() {
|
|
206
|
+
var y, E;
|
|
207
|
+
U(), (E = (y = b.current).onSelect) == null || E.call(y, p.current);
|
|
208
|
+
}
|
|
209
|
+
function U() {
|
|
210
|
+
h.setState("value", p.current, !0);
|
|
211
|
+
}
|
|
212
|
+
if (!v) return null;
|
|
213
|
+
let { disabled: M, value: B, onSelect: H, forceMount: oe, keywords: W, ...N } = e;
|
|
214
|
+
return l.createElement(A.div, { ref: q(i, n), ...N, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!M, "aria-selected": !!k, "data-disabled": !!M, "data-selected": !!k, onPointerMove: M || f.getDisablePointerSelection() ? void 0 : U, onClick: M ? void 0 : I }, e.children);
|
|
215
|
+
}), He = l.forwardRef((e, n) => {
|
|
216
|
+
let { heading: r, children: d, forceMount: o, ...i } = e, c = L(), f = l.useRef(null), b = l.useRef(null), u = L(), p = z(), h = R((v) => o || p.filter() === !1 ? !0 : v.search ? v.filtered.groups.has(c) : !0);
|
|
217
|
+
$(() => p.group(c), []), Ce(c, f, [e.value, e.heading, b]);
|
|
218
|
+
let k = l.useMemo(() => ({ id: c, forceMount: o }), [o]);
|
|
219
|
+
return l.createElement(A.div, { ref: q(f, n), ...i, "cmdk-group": "", role: "presentation", hidden: h ? void 0 : !0 }, r && l.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, r), T(e, (v) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, l.createElement(we.Provider, { value: k }, v))));
|
|
220
|
+
}), We = l.forwardRef((e, n) => {
|
|
221
|
+
let { alwaysRender: r, ...d } = e, o = l.useRef(null), i = R((c) => !c.search);
|
|
222
|
+
return !r && !i ? null : l.createElement(A.div, { ref: q(o, n), ...d, "cmdk-separator": "", role: "separator" });
|
|
223
|
+
}), _e = l.forwardRef((e, n) => {
|
|
224
|
+
let { onValueChange: r, ...d } = e, o = e.value != null, i = ae(), c = R((u) => u.search), f = R((u) => u.selectedItemId), b = z();
|
|
225
|
+
return l.useEffect(() => {
|
|
226
|
+
e.value != null && i.setState("search", e.value);
|
|
227
|
+
}, [e.value]), l.createElement(A.input, { ref: n, ...d, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": f, id: b.inputId, type: "text", value: o ? e.value : c, onChange: (u) => {
|
|
228
|
+
o || i.setState("search", u.target.value), r?.(u.target.value);
|
|
229
|
+
} });
|
|
230
|
+
}), Je = l.forwardRef((e, n) => {
|
|
231
|
+
let { children: r, label: d = "Suggestions", ...o } = e, i = l.useRef(null), c = l.useRef(null), f = R((u) => u.selectedItemId), b = z();
|
|
232
|
+
return l.useEffect(() => {
|
|
233
|
+
if (c.current && i.current) {
|
|
234
|
+
let u = c.current, p = i.current, h, k = new ResizeObserver(() => {
|
|
235
|
+
h = requestAnimationFrame(() => {
|
|
236
|
+
let v = u.offsetHeight;
|
|
237
|
+
p.style.setProperty("--cmdk-list-height", v.toFixed(1) + "px");
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
return k.observe(u), () => {
|
|
241
|
+
cancelAnimationFrame(h), k.unobserve(u);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
}, []), l.createElement(A.div, { ref: q(i, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": f, "aria-label": d, id: b.listId }, T(e, (u) => l.createElement("div", { ref: q(c, b.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
245
|
+
}), Xe = l.forwardRef((e, n) => {
|
|
246
|
+
let { open: r, onOpenChange: d, overlayClassName: o, contentClassName: i, container: c, ...f } = e;
|
|
247
|
+
return l.createElement(Ee, { open: r, onOpenChange: d }, l.createElement(Se, { container: c }, l.createElement(Ie, { "cmdk-overlay": "", className: o }), l.createElement(je, { "aria-label": e.label, "cmdk-dialog": "", className: i }, l.createElement(ye, { ref: n, ...f }))));
|
|
248
|
+
}), Ye = l.forwardRef((e, n) => R((r) => r.filtered.count === 0) ? l.createElement(A.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), Qe = l.forwardRef((e, n) => {
|
|
249
|
+
let { progress: r, children: d, label: o = "Loading...", ...i } = e;
|
|
250
|
+
return l.createElement(A.div, { ref: n, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, T(e, (c) => l.createElement("div", { "aria-hidden": !0 }, c)));
|
|
251
|
+
}), K = Object.assign(ye, { List: Je, Item: Ue, Input: _e, Group: He, Separator: We, Dialog: Xe, Empty: Ye, Loading: Qe });
|
|
252
|
+
function Ze(e, n) {
|
|
253
|
+
let r = e.nextElementSibling;
|
|
254
|
+
for (; r; ) {
|
|
255
|
+
if (r.matches(n)) return r;
|
|
256
|
+
r = r.nextElementSibling;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
function et(e, n) {
|
|
260
|
+
let r = e.previousElementSibling;
|
|
261
|
+
for (; r; ) {
|
|
262
|
+
if (r.matches(n)) return r;
|
|
263
|
+
r = r.previousElementSibling;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
function ke(e) {
|
|
267
|
+
let n = l.useRef(e);
|
|
268
|
+
return $(() => {
|
|
269
|
+
n.current = e;
|
|
270
|
+
}), n;
|
|
271
|
+
}
|
|
272
|
+
var $ = typeof window > "u" ? l.useEffect : l.useLayoutEffect;
|
|
273
|
+
function F(e) {
|
|
274
|
+
let n = l.useRef();
|
|
275
|
+
return n.current === void 0 && (n.current = e()), n;
|
|
276
|
+
}
|
|
277
|
+
function R(e) {
|
|
278
|
+
let n = ae(), r = () => e(n.snapshot());
|
|
279
|
+
return l.useSyncExternalStore(n.subscribe, r, r);
|
|
280
|
+
}
|
|
281
|
+
function Ce(e, n, r, d = []) {
|
|
282
|
+
let o = l.useRef(), i = z();
|
|
283
|
+
return $(() => {
|
|
284
|
+
var c;
|
|
285
|
+
let f = (() => {
|
|
286
|
+
var u;
|
|
287
|
+
for (let p of r) {
|
|
288
|
+
if (typeof p == "string") return p.trim();
|
|
289
|
+
if (typeof p == "object" && "current" in p) return p.current ? (u = p.current.textContent) == null ? void 0 : u.trim() : o.current;
|
|
290
|
+
}
|
|
291
|
+
})(), b = d.map((u) => u.trim());
|
|
292
|
+
i.value(e, f, b), (c = n.current) == null || c.setAttribute(P, f), o.current = f;
|
|
293
|
+
}), o;
|
|
294
|
+
}
|
|
295
|
+
var tt = () => {
|
|
296
|
+
let [e, n] = l.useState(), r = F(() => /* @__PURE__ */ new Map());
|
|
297
|
+
return $(() => {
|
|
298
|
+
r.current.forEach((d) => d()), r.current = /* @__PURE__ */ new Map();
|
|
299
|
+
}, [e]), (d, o) => {
|
|
300
|
+
r.current.set(d, o), n({});
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
function rt(e) {
|
|
304
|
+
let n = e.type;
|
|
305
|
+
return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
|
|
306
|
+
}
|
|
307
|
+
function T({ asChild: e, children: n }, r) {
|
|
308
|
+
return e && l.isValidElement(n) ? l.cloneElement(rt(n), { ref: n.ref }, r(n.props.children)) : r(n);
|
|
309
|
+
}
|
|
310
|
+
var nt = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
311
|
+
function lt({
|
|
312
|
+
className: e,
|
|
313
|
+
...n
|
|
314
|
+
}) {
|
|
315
|
+
return /* @__PURE__ */ w.jsx(
|
|
316
|
+
K,
|
|
317
|
+
{
|
|
318
|
+
"data-slot": "command",
|
|
319
|
+
className: j(
|
|
320
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
321
|
+
e
|
|
322
|
+
),
|
|
323
|
+
...n
|
|
324
|
+
}
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
function at({
|
|
328
|
+
className: e,
|
|
329
|
+
...n
|
|
330
|
+
}) {
|
|
331
|
+
return /* @__PURE__ */ w.jsxs(
|
|
332
|
+
"div",
|
|
333
|
+
{
|
|
334
|
+
"data-slot": "command-input-wrapper",
|
|
335
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
336
|
+
children: [
|
|
337
|
+
/* @__PURE__ */ w.jsx(Re, { className: "size-4 shrink-0 opacity-50" }),
|
|
338
|
+
/* @__PURE__ */ w.jsx(
|
|
339
|
+
K.Input,
|
|
340
|
+
{
|
|
341
|
+
"data-slot": "command-input",
|
|
342
|
+
className: j(
|
|
343
|
+
"placeholder:text-muted-foreground flex h-full w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
344
|
+
e
|
|
345
|
+
),
|
|
346
|
+
...n
|
|
347
|
+
}
|
|
348
|
+
)
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
function ot({
|
|
354
|
+
className: e,
|
|
355
|
+
...n
|
|
356
|
+
}) {
|
|
357
|
+
return /* @__PURE__ */ w.jsx(
|
|
358
|
+
K.List,
|
|
359
|
+
{
|
|
360
|
+
"data-slot": "command-list",
|
|
361
|
+
className: j(
|
|
362
|
+
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
363
|
+
e
|
|
364
|
+
),
|
|
365
|
+
...n
|
|
366
|
+
}
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
function ut({
|
|
370
|
+
...e
|
|
371
|
+
}) {
|
|
372
|
+
return /* @__PURE__ */ w.jsx(
|
|
373
|
+
K.Empty,
|
|
374
|
+
{
|
|
375
|
+
"data-slot": "command-empty",
|
|
376
|
+
className: "py-6 text-center text-sm",
|
|
377
|
+
...e
|
|
378
|
+
}
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
function it({
|
|
382
|
+
className: e,
|
|
383
|
+
...n
|
|
384
|
+
}) {
|
|
385
|
+
return /* @__PURE__ */ w.jsx(
|
|
386
|
+
K.Group,
|
|
387
|
+
{
|
|
388
|
+
"data-slot": "command-group",
|
|
389
|
+
className: j(
|
|
390
|
+
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
391
|
+
e
|
|
392
|
+
),
|
|
393
|
+
...n
|
|
394
|
+
}
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
function st({
|
|
398
|
+
className: e,
|
|
399
|
+
...n
|
|
400
|
+
}) {
|
|
401
|
+
return /* @__PURE__ */ w.jsx(
|
|
402
|
+
K.Item,
|
|
403
|
+
{
|
|
404
|
+
"data-slot": "command-item",
|
|
405
|
+
className: j(
|
|
406
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
407
|
+
e
|
|
408
|
+
),
|
|
409
|
+
...n
|
|
410
|
+
}
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
function pt({
|
|
414
|
+
options: e,
|
|
415
|
+
value: n,
|
|
416
|
+
onValueChange: r,
|
|
417
|
+
placeholder: d = "Select...",
|
|
418
|
+
emptyText: o = "No results found.",
|
|
419
|
+
disabled: i = !1,
|
|
420
|
+
zIndex: c
|
|
421
|
+
}) {
|
|
422
|
+
const [f, b] = l.useState(!1), [u, p] = l.useState(""), h = e.find((v) => v.value === n), k = u ? e.filter(
|
|
423
|
+
(v) => v.label.toLowerCase().includes(u.toLowerCase())
|
|
424
|
+
) : e;
|
|
425
|
+
return (
|
|
426
|
+
// `modal` gives the popover its own scroll lock. Without it, a surrounding
|
|
427
|
+
// dialog's lock swallows wheel events over the option list.
|
|
428
|
+
/* @__PURE__ */ w.jsxs(
|
|
429
|
+
Ae,
|
|
430
|
+
{
|
|
431
|
+
open: f,
|
|
432
|
+
onOpenChange: (v) => {
|
|
433
|
+
b(v), v || p("");
|
|
434
|
+
},
|
|
435
|
+
modal: !0,
|
|
436
|
+
children: [
|
|
437
|
+
/* @__PURE__ */ w.jsx(Me, { asChild: !0, children: /* @__PURE__ */ w.jsxs(
|
|
438
|
+
"button",
|
|
439
|
+
{
|
|
440
|
+
type: "button",
|
|
441
|
+
role: "combobox",
|
|
442
|
+
"aria-expanded": f,
|
|
443
|
+
disabled: i,
|
|
444
|
+
className: j(
|
|
445
|
+
"border-input flex h-9 w-full cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 text-sm shadow-xs transition-[color,box-shadow]",
|
|
446
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none",
|
|
447
|
+
f && "border-ring ring-ring/50 ring-[3px]",
|
|
448
|
+
i && "cursor-not-allowed opacity-50"
|
|
449
|
+
),
|
|
450
|
+
children: [
|
|
451
|
+
/* @__PURE__ */ w.jsx(
|
|
452
|
+
"span",
|
|
453
|
+
{
|
|
454
|
+
className: j(
|
|
455
|
+
"truncate",
|
|
456
|
+
!h && "text-muted-foreground"
|
|
457
|
+
),
|
|
458
|
+
children: h ? h.label : d
|
|
459
|
+
}
|
|
460
|
+
),
|
|
461
|
+
/* @__PURE__ */ w.jsx(Ne, { className: "size-4 shrink-0 opacity-50" })
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
) }),
|
|
465
|
+
/* @__PURE__ */ w.jsx(
|
|
466
|
+
$e,
|
|
467
|
+
{
|
|
468
|
+
className: "bg-popover w-[var(--radix-popover-trigger-width)] rounded-md border p-0 shadow-md",
|
|
469
|
+
align: "start",
|
|
470
|
+
style: c === void 0 ? void 0 : { zIndex: c },
|
|
471
|
+
children: /* @__PURE__ */ w.jsxs(lt, { shouldFilter: !1, children: [
|
|
472
|
+
/* @__PURE__ */ w.jsx(
|
|
473
|
+
at,
|
|
474
|
+
{
|
|
475
|
+
placeholder: d,
|
|
476
|
+
value: u,
|
|
477
|
+
onValueChange: p
|
|
478
|
+
}
|
|
479
|
+
),
|
|
480
|
+
/* @__PURE__ */ w.jsxs(ot, { children: [
|
|
481
|
+
k.length === 0 && /* @__PURE__ */ w.jsx(ut, { children: o }),
|
|
482
|
+
/* @__PURE__ */ w.jsx(it, { children: k.map((v) => /* @__PURE__ */ w.jsxs(
|
|
483
|
+
st,
|
|
484
|
+
{
|
|
485
|
+
value: v.label,
|
|
486
|
+
onSelect: () => {
|
|
487
|
+
r(v.value === n ? "" : v.value), b(!1), p("");
|
|
488
|
+
},
|
|
489
|
+
children: [
|
|
490
|
+
v.label,
|
|
491
|
+
/* @__PURE__ */ w.jsx(
|
|
492
|
+
De,
|
|
493
|
+
{
|
|
494
|
+
className: j(
|
|
495
|
+
"ml-auto size-4",
|
|
496
|
+
n === v.value ? "opacity-100" : "opacity-0"
|
|
497
|
+
)
|
|
498
|
+
}
|
|
499
|
+
)
|
|
500
|
+
]
|
|
501
|
+
},
|
|
502
|
+
v.value
|
|
503
|
+
)) })
|
|
504
|
+
] })
|
|
505
|
+
] })
|
|
506
|
+
}
|
|
507
|
+
)
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
)
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
export {
|
|
514
|
+
pt as C,
|
|
515
|
+
lt as a,
|
|
516
|
+
at as b,
|
|
517
|
+
ot as c,
|
|
518
|
+
ut as d,
|
|
519
|
+
it as e,
|
|
520
|
+
st as f
|
|
521
|
+
};
|