@wmoney/ui-kit 1.0.41 → 1.0.43
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/components/FileInput.d.ts +27 -0
- package/dist/components/FileInput.d.ts.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +645 -605
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2185,7 +2185,7 @@ var rn = T("text-sm font-medium inline-flex items-center justify-center gap-2.5
|
|
|
2185
2185
|
"icon-xs": "size-5",
|
|
2186
2186
|
"icon-sm": "size-8",
|
|
2187
2187
|
"icon-lg": "size-10",
|
|
2188
|
-
"rounded-full": "size-
|
|
2188
|
+
"rounded-full": "size-9 rounded-full shadow-sm"
|
|
2189
2189
|
},
|
|
2190
2190
|
loading: { true: "text-transparent" }
|
|
2191
2191
|
},
|
|
@@ -10976,86 +10976,8 @@ function zv({ label: e = "Arquivo", accept: t = ".pdf,.xml,.png,.jpg,.jpeg", mul
|
|
|
10976
10976
|
});
|
|
10977
10977
|
}
|
|
10978
10978
|
//#endregion
|
|
10979
|
-
//#region node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
10980
|
-
var Bv = [
|
|
10981
|
-
"a",
|
|
10982
|
-
"button",
|
|
10983
|
-
"div",
|
|
10984
|
-
"form",
|
|
10985
|
-
"h2",
|
|
10986
|
-
"h3",
|
|
10987
|
-
"img",
|
|
10988
|
-
"input",
|
|
10989
|
-
"label",
|
|
10990
|
-
"li",
|
|
10991
|
-
"nav",
|
|
10992
|
-
"ol",
|
|
10993
|
-
"p",
|
|
10994
|
-
"select",
|
|
10995
|
-
"span",
|
|
10996
|
-
"svg",
|
|
10997
|
-
"ul"
|
|
10998
|
-
].reduce((t, n) => {
|
|
10999
|
-
let r = /* @__PURE__ */ N(`Primitive.${n}`), i = e.forwardRef((e, t) => {
|
|
11000
|
-
let { asChild: i, ...a } = e, o = i ? r : n;
|
|
11001
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(o, {
|
|
11002
|
-
...a,
|
|
11003
|
-
ref: t
|
|
11004
|
-
});
|
|
11005
|
-
});
|
|
11006
|
-
return i.displayName = `Primitive.${n}`, {
|
|
11007
|
-
...t,
|
|
11008
|
-
[n]: i
|
|
11009
|
-
};
|
|
11010
|
-
}, {}), Vv = "Separator", Hv = "horizontal", Uv = ["horizontal", "vertical"], Wv = e.forwardRef((e, t) => {
|
|
11011
|
-
let { decorative: n, orientation: r = Hv, ...i } = e, a = Gv(r) ? r : Hv, o = a === "vertical" ? a : void 0, s = n ? { role: "none" } : {
|
|
11012
|
-
"aria-orientation": o,
|
|
11013
|
-
role: "separator"
|
|
11014
|
-
};
|
|
11015
|
-
return /* @__PURE__ */ h(Bv.div, {
|
|
11016
|
-
"data-orientation": a,
|
|
11017
|
-
...s,
|
|
11018
|
-
...i,
|
|
11019
|
-
ref: t
|
|
11020
|
-
});
|
|
11021
|
-
});
|
|
11022
|
-
Wv.displayName = Vv;
|
|
11023
|
-
function Gv(e) {
|
|
11024
|
-
return Uv.includes(e);
|
|
11025
|
-
}
|
|
11026
|
-
var Kv = Wv;
|
|
11027
|
-
//#endregion
|
|
11028
|
-
//#region src/components/Separator.tsx
|
|
11029
|
-
function qv({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
11030
|
-
return /* @__PURE__ */ h(Kv, {
|
|
11031
|
-
"data-slot": "separator",
|
|
11032
|
-
decorative: n,
|
|
11033
|
-
orientation: t,
|
|
11034
|
-
className: q("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", e),
|
|
11035
|
-
...r
|
|
11036
|
-
});
|
|
11037
|
-
}
|
|
11038
|
-
//#endregion
|
|
11039
|
-
//#region src/components/FormSection.tsx
|
|
11040
|
-
function Jv({ icon: e, title: t, description: n, children: r, className: i }) {
|
|
11041
|
-
return /* @__PURE__ */ g(wo, {
|
|
11042
|
-
className: i,
|
|
11043
|
-
children: [
|
|
11044
|
-
/* @__PURE__ */ g(To, { children: [/* @__PURE__ */ h(Eo, {
|
|
11045
|
-
className: "bg-primary/10",
|
|
11046
|
-
children: /* @__PURE__ */ h(e, { className: "size-5 text-primary" })
|
|
11047
|
-
}), /* @__PURE__ */ g("div", {
|
|
11048
|
-
className: "flex flex-col gap-1",
|
|
11049
|
-
children: [/* @__PURE__ */ h(Do, { children: t }), n && /* @__PURE__ */ h(Oo, { children: n })]
|
|
11050
|
-
})] }),
|
|
11051
|
-
/* @__PURE__ */ h(qv, {}),
|
|
11052
|
-
/* @__PURE__ */ h(Ao, { children: r })
|
|
11053
|
-
]
|
|
11054
|
-
});
|
|
11055
|
-
}
|
|
11056
|
-
//#endregion
|
|
11057
10979
|
//#region src/components/Input.tsx
|
|
11058
|
-
function
|
|
10980
|
+
function Bv({ className: e, type: t, ...n }) {
|
|
11059
10981
|
return /* @__PURE__ */ h("input", {
|
|
11060
10982
|
type: t,
|
|
11061
10983
|
"data-slot": "input",
|
|
@@ -11065,7 +10987,7 @@ function Yv({ className: e, type: t, ...n }) {
|
|
|
11065
10987
|
}
|
|
11066
10988
|
//#endregion
|
|
11067
10989
|
//#region src/components/Textarea.tsx
|
|
11068
|
-
function
|
|
10990
|
+
function Vv({ className: e, ...t }) {
|
|
11069
10991
|
return /* @__PURE__ */ h("textarea", {
|
|
11070
10992
|
"data-slot": "textarea",
|
|
11071
10993
|
className: q("field-sizing-content text-sm min-h-16 w-full min-w-0 rounded-md border border-border bg-default px-2.5 py-1", "text-foreground antialiased caret-primary", "transition-[color,border-color,box-shadow] outline-none", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px]", "aria-invalid:border-destructive aria-invalid:shadow-[inset_0_0_0_1px_var(--color-destructive)]", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", "file:inline-flex file:h-7 file:border-0 file:text-sm file:font-medium file:text-foreground", e),
|
|
@@ -11074,7 +10996,7 @@ function Xv({ className: e, ...t }) {
|
|
|
11074
10996
|
}
|
|
11075
10997
|
//#endregion
|
|
11076
10998
|
//#region src/components/InputGroup.tsx
|
|
11077
|
-
function
|
|
10999
|
+
function Hv({ className: e, ...t }) {
|
|
11078
11000
|
return /* @__PURE__ */ h("div", {
|
|
11079
11001
|
"data-slot": "input-group",
|
|
11080
11002
|
role: "group",
|
|
@@ -11082,7 +11004,7 @@ function Zv({ className: e, ...t }) {
|
|
|
11082
11004
|
...t
|
|
11083
11005
|
});
|
|
11084
11006
|
}
|
|
11085
|
-
var
|
|
11007
|
+
var Uv = T("text-muted flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50", {
|
|
11086
11008
|
variants: { align: {
|
|
11087
11009
|
"inline-start": "order-first pl-2.5 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem] [&>button]:rounded-l-[calc(var(--radius)-1px)] [&>[data-slot=input-group-button]]:rounded-l-[calc(var(--radius)-1px)]",
|
|
11088
11010
|
"inline-end": "order-last pr-1 has-[>kbd]:mr-[-0.35rem] [&>button]:rounded-r-[calc(var(--radius)-1px)] [&>[data-slot=input-group-button]]:rounded-r-[calc(var(--radius)-1px)]",
|
|
@@ -11091,19 +11013,19 @@ var Qv = T("text-muted flex h-auto cursor-text items-center justify-center gap-2
|
|
|
11091
11013
|
} },
|
|
11092
11014
|
defaultVariants: { align: "inline-start" }
|
|
11093
11015
|
});
|
|
11094
|
-
function
|
|
11016
|
+
function Wv({ className: e, align: t = "inline-start", ...n }) {
|
|
11095
11017
|
return /* @__PURE__ */ h("div", {
|
|
11096
11018
|
role: "group",
|
|
11097
11019
|
"data-slot": "input-group-addon",
|
|
11098
11020
|
"data-align": t,
|
|
11099
|
-
className: q(
|
|
11021
|
+
className: q(Uv({ align: t }), e),
|
|
11100
11022
|
onClick: (e) => {
|
|
11101
11023
|
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
11102
11024
|
},
|
|
11103
11025
|
...n
|
|
11104
11026
|
});
|
|
11105
11027
|
}
|
|
11106
|
-
var
|
|
11028
|
+
var Gv = T("text-sm shadow-none flex gap-2 items-center", {
|
|
11107
11029
|
variants: { size: {
|
|
11108
11030
|
xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5",
|
|
11109
11031
|
sm: "h-8 gap-1.5 rounded-md",
|
|
@@ -11112,80 +11034,198 @@ var ey = T("text-sm shadow-none flex gap-2 items-center", {
|
|
|
11112
11034
|
} },
|
|
11113
11035
|
defaultVariants: { size: "xs" }
|
|
11114
11036
|
});
|
|
11115
|
-
function
|
|
11037
|
+
function Kv({ className: e, type: t = "button", variant: n = "ghost", size: r = "xs", ...i }) {
|
|
11116
11038
|
return /* @__PURE__ */ h(sn, {
|
|
11117
11039
|
type: t,
|
|
11118
11040
|
"data-size": r,
|
|
11119
11041
|
variant: n,
|
|
11120
|
-
className: q(
|
|
11042
|
+
className: q(Gv({ size: r }), e),
|
|
11121
11043
|
...i
|
|
11122
11044
|
});
|
|
11123
11045
|
}
|
|
11124
|
-
function
|
|
11046
|
+
function qv({ className: e, size: t = "xs", ...n }) {
|
|
11125
11047
|
return /* @__PURE__ */ h("div", {
|
|
11126
11048
|
"data-slot": "input-group-button",
|
|
11127
11049
|
"data-size": t,
|
|
11128
|
-
className: q(
|
|
11050
|
+
className: q(Gv({ size: t }), e),
|
|
11129
11051
|
...n
|
|
11130
11052
|
});
|
|
11131
11053
|
}
|
|
11132
|
-
function
|
|
11054
|
+
function Jv({ className: e, ...t }) {
|
|
11133
11055
|
return /* @__PURE__ */ h("span", {
|
|
11134
11056
|
className: q("text-muted flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
11135
11057
|
...t
|
|
11136
11058
|
});
|
|
11137
11059
|
}
|
|
11138
|
-
function
|
|
11139
|
-
return /* @__PURE__ */ h(
|
|
11060
|
+
function Yv({ className: e, ...t }) {
|
|
11061
|
+
return /* @__PURE__ */ h(Bv, {
|
|
11140
11062
|
"data-slot": "input-group-control",
|
|
11141
|
-
className: q("h-6 flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:border-0 focus-visible:shadow-none aria-invalid:shadow-none dark:bg-transparent", e),
|
|
11063
|
+
className: q("h-6 flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 focus-visible:border-0 focus-visible:shadow-none aria-invalid:shadow-none dark:bg-transparent", e),
|
|
11142
11064
|
...t
|
|
11143
11065
|
});
|
|
11144
11066
|
}
|
|
11145
|
-
function
|
|
11146
|
-
return /* @__PURE__ */ h(
|
|
11067
|
+
function Xv({ className: e, ...t }) {
|
|
11068
|
+
return /* @__PURE__ */ h(Vv, {
|
|
11147
11069
|
"data-slot": "input-group-control",
|
|
11148
11070
|
className: q("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent", e),
|
|
11149
11071
|
...t
|
|
11150
11072
|
});
|
|
11151
11073
|
}
|
|
11152
11074
|
//#endregion
|
|
11075
|
+
//#region src/components/FileInput.tsx
|
|
11076
|
+
function Zv({ accept: e = ".pdf,.png,.jpg,.jpeg", multiple: t = !1, disabled: n, placeholder: r = "Carregar arquivo", className: i, onFilesChange: o }) {
|
|
11077
|
+
let s = c(), [l, u] = p(""), d = () => {
|
|
11078
|
+
n || document.getElementById(s)?.click();
|
|
11079
|
+
}, f = a((e) => {
|
|
11080
|
+
let t = e.target.files;
|
|
11081
|
+
t?.length && (u(t.length === 1 ? t[0].name : `${t.length} arquivos selecionados`), o?.(t));
|
|
11082
|
+
}, [o]);
|
|
11083
|
+
return /* @__PURE__ */ g("div", {
|
|
11084
|
+
className: q("w-full", i),
|
|
11085
|
+
children: [/* @__PURE__ */ h("input", {
|
|
11086
|
+
id: s,
|
|
11087
|
+
type: "file",
|
|
11088
|
+
accept: e,
|
|
11089
|
+
multiple: t,
|
|
11090
|
+
disabled: n,
|
|
11091
|
+
onChange: f,
|
|
11092
|
+
className: "absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0",
|
|
11093
|
+
"aria-hidden": "true",
|
|
11094
|
+
tabIndex: -1
|
|
11095
|
+
}), /* @__PURE__ */ g(Hv, {
|
|
11096
|
+
className: q("cursor-pointer bg-background-subtle", n && "pointer-events-none opacity-50"),
|
|
11097
|
+
onClick: d,
|
|
11098
|
+
children: [/* @__PURE__ */ h(Wv, {
|
|
11099
|
+
align: "inline-start",
|
|
11100
|
+
children: /* @__PURE__ */ h($t, { className: "size-4" })
|
|
11101
|
+
}), /* @__PURE__ */ h(Yv, {
|
|
11102
|
+
readOnly: !0,
|
|
11103
|
+
tabIndex: 0,
|
|
11104
|
+
value: l,
|
|
11105
|
+
placeholder: r,
|
|
11106
|
+
className: "cursor-pointer text-muted-foreground bg-transparent",
|
|
11107
|
+
onKeyDown: (e) => {
|
|
11108
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), d());
|
|
11109
|
+
}
|
|
11110
|
+
})]
|
|
11111
|
+
})]
|
|
11112
|
+
});
|
|
11113
|
+
}
|
|
11114
|
+
//#endregion
|
|
11115
|
+
//#region node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
11116
|
+
var Qv = [
|
|
11117
|
+
"a",
|
|
11118
|
+
"button",
|
|
11119
|
+
"div",
|
|
11120
|
+
"form",
|
|
11121
|
+
"h2",
|
|
11122
|
+
"h3",
|
|
11123
|
+
"img",
|
|
11124
|
+
"input",
|
|
11125
|
+
"label",
|
|
11126
|
+
"li",
|
|
11127
|
+
"nav",
|
|
11128
|
+
"ol",
|
|
11129
|
+
"p",
|
|
11130
|
+
"select",
|
|
11131
|
+
"span",
|
|
11132
|
+
"svg",
|
|
11133
|
+
"ul"
|
|
11134
|
+
].reduce((t, n) => {
|
|
11135
|
+
let r = /* @__PURE__ */ N(`Primitive.${n}`), i = e.forwardRef((e, t) => {
|
|
11136
|
+
let { asChild: i, ...a } = e, o = i ? r : n;
|
|
11137
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(o, {
|
|
11138
|
+
...a,
|
|
11139
|
+
ref: t
|
|
11140
|
+
});
|
|
11141
|
+
});
|
|
11142
|
+
return i.displayName = `Primitive.${n}`, {
|
|
11143
|
+
...t,
|
|
11144
|
+
[n]: i
|
|
11145
|
+
};
|
|
11146
|
+
}, {}), $v = "Separator", ey = "horizontal", ty = ["horizontal", "vertical"], ny = e.forwardRef((e, t) => {
|
|
11147
|
+
let { decorative: n, orientation: r = ey, ...i } = e, a = ry(r) ? r : ey, o = a === "vertical" ? a : void 0, s = n ? { role: "none" } : {
|
|
11148
|
+
"aria-orientation": o,
|
|
11149
|
+
role: "separator"
|
|
11150
|
+
};
|
|
11151
|
+
return /* @__PURE__ */ h(Qv.div, {
|
|
11152
|
+
"data-orientation": a,
|
|
11153
|
+
...s,
|
|
11154
|
+
...i,
|
|
11155
|
+
ref: t
|
|
11156
|
+
});
|
|
11157
|
+
});
|
|
11158
|
+
ny.displayName = $v;
|
|
11159
|
+
function ry(e) {
|
|
11160
|
+
return ty.includes(e);
|
|
11161
|
+
}
|
|
11162
|
+
var iy = ny;
|
|
11163
|
+
//#endregion
|
|
11164
|
+
//#region src/components/Separator.tsx
|
|
11165
|
+
function ay({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
11166
|
+
return /* @__PURE__ */ h(iy, {
|
|
11167
|
+
"data-slot": "separator",
|
|
11168
|
+
decorative: n,
|
|
11169
|
+
orientation: t,
|
|
11170
|
+
className: q("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", e),
|
|
11171
|
+
...r
|
|
11172
|
+
});
|
|
11173
|
+
}
|
|
11174
|
+
//#endregion
|
|
11175
|
+
//#region src/components/FormSection.tsx
|
|
11176
|
+
function oy({ icon: e, title: t, description: n, children: r, className: i }) {
|
|
11177
|
+
return /* @__PURE__ */ g(wo, {
|
|
11178
|
+
className: i,
|
|
11179
|
+
children: [
|
|
11180
|
+
/* @__PURE__ */ g(To, { children: [/* @__PURE__ */ h(Eo, {
|
|
11181
|
+
className: "bg-primary/10",
|
|
11182
|
+
children: /* @__PURE__ */ h(e, { className: "size-5 text-primary" })
|
|
11183
|
+
}), /* @__PURE__ */ g("div", {
|
|
11184
|
+
className: "flex flex-col gap-1",
|
|
11185
|
+
children: [/* @__PURE__ */ h(Do, { children: t }), n && /* @__PURE__ */ h(Oo, { children: n })]
|
|
11186
|
+
})] }),
|
|
11187
|
+
/* @__PURE__ */ h(ay, {}),
|
|
11188
|
+
/* @__PURE__ */ h(Ao, { children: r })
|
|
11189
|
+
]
|
|
11190
|
+
});
|
|
11191
|
+
}
|
|
11192
|
+
//#endregion
|
|
11153
11193
|
//#region node_modules/input-otp/dist/index.mjs
|
|
11154
|
-
var
|
|
11194
|
+
var sy = Object.defineProperty, cy = Object.defineProperties, ly = Object.getOwnPropertyDescriptors, uy = Object.getOwnPropertySymbols, dy = Object.prototype.hasOwnProperty, fy = Object.prototype.propertyIsEnumerable, py = (e, t, n) => t in e ? sy(e, t, {
|
|
11155
11195
|
enumerable: !0,
|
|
11156
11196
|
configurable: !0,
|
|
11157
11197
|
writable: !0,
|
|
11158
11198
|
value: n
|
|
11159
|
-
}) : e[t] = n,
|
|
11160
|
-
for (var n in t ||= {})
|
|
11161
|
-
if (
|
|
11199
|
+
}) : e[t] = n, my = (e, t) => {
|
|
11200
|
+
for (var n in t ||= {}) dy.call(t, n) && py(e, n, t[n]);
|
|
11201
|
+
if (uy) for (var n of uy(t)) fy.call(t, n) && py(e, n, t[n]);
|
|
11162
11202
|
return e;
|
|
11163
|
-
},
|
|
11203
|
+
}, hy = (e, t) => cy(e, ly(t)), gy = (e, t) => {
|
|
11164
11204
|
var n = {};
|
|
11165
|
-
for (var r in e)
|
|
11166
|
-
if (e != null &&
|
|
11205
|
+
for (var r in e) dy.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
11206
|
+
if (e != null && uy) for (var r of uy(e)) t.indexOf(r) < 0 && fy.call(e, r) && (n[r] = e[r]);
|
|
11167
11207
|
return n;
|
|
11168
11208
|
};
|
|
11169
|
-
function
|
|
11209
|
+
function _y(e) {
|
|
11170
11210
|
return [
|
|
11171
11211
|
setTimeout(e, 0),
|
|
11172
11212
|
setTimeout(e, 10),
|
|
11173
11213
|
setTimeout(e, 50)
|
|
11174
11214
|
];
|
|
11175
11215
|
}
|
|
11176
|
-
function
|
|
11216
|
+
function vy(t) {
|
|
11177
11217
|
let n = e.useRef();
|
|
11178
11218
|
return e.useEffect(() => {
|
|
11179
11219
|
n.current = t;
|
|
11180
11220
|
}), n.current;
|
|
11181
11221
|
}
|
|
11182
|
-
var
|
|
11222
|
+
var yy = 18, by = 40, xy = `${by}px`, Sy = [
|
|
11183
11223
|
"[data-lastpass-icon-root]",
|
|
11184
11224
|
"com-1password-button",
|
|
11185
11225
|
"[data-dashlanecreated]",
|
|
11186
11226
|
"[style$=\"2147483647 !important;\"]"
|
|
11187
11227
|
].join(",");
|
|
11188
|
-
function
|
|
11228
|
+
function Cy({ containerRef: t, inputRef: n, pushPasswordManagerStrategy: r, isFocused: i }) {
|
|
11189
11229
|
let [a, o] = e.useState(!1), [s, c] = e.useState(!1), [l, u] = e.useState(!1), d = e.useMemo(() => r === "none" ? !1 : (r === "increase-width" || r === "experimental-no-flickering") && a && s, [
|
|
11190
11230
|
a,
|
|
11191
11231
|
s,
|
|
@@ -11193,8 +11233,8 @@ function Sy({ containerRef: t, inputRef: n, pushPasswordManagerStrategy: r, isFo
|
|
|
11193
11233
|
]), f = e.useCallback(() => {
|
|
11194
11234
|
let e = t.current, i = n.current;
|
|
11195
11235
|
if (!e || !i || l || r === "none") return;
|
|
11196
|
-
let a = e, s = a.getBoundingClientRect().left + a.offsetWidth, c = a.getBoundingClientRect().top + a.offsetHeight / 2, d = s -
|
|
11197
|
-
document.querySelectorAll(
|
|
11236
|
+
let a = e, s = a.getBoundingClientRect().left + a.offsetWidth, c = a.getBoundingClientRect().top + a.offsetHeight / 2, d = s - yy, f = c;
|
|
11237
|
+
document.querySelectorAll(Sy).length === 0 && document.elementFromPoint(d, f) === e || (o(!0), u(!0));
|
|
11198
11238
|
}, [
|
|
11199
11239
|
t,
|
|
11200
11240
|
n,
|
|
@@ -11205,7 +11245,7 @@ function Sy({ containerRef: t, inputRef: n, pushPasswordManagerStrategy: r, isFo
|
|
|
11205
11245
|
let e = t.current;
|
|
11206
11246
|
if (!e || r === "none") return;
|
|
11207
11247
|
function n() {
|
|
11208
|
-
c(window.innerWidth - e.getBoundingClientRect().right >=
|
|
11248
|
+
c(window.innerWidth - e.getBoundingClientRect().right >= by);
|
|
11209
11249
|
}
|
|
11210
11250
|
n();
|
|
11211
11251
|
let i = setInterval(n, 1e3);
|
|
@@ -11229,11 +11269,11 @@ function Sy({ containerRef: t, inputRef: n, pushPasswordManagerStrategy: r, isFo
|
|
|
11229
11269
|
]), {
|
|
11230
11270
|
hasPWMBadge: a,
|
|
11231
11271
|
willPushPWMBadge: d,
|
|
11232
|
-
PWM_BADGE_SPACE_WIDTH:
|
|
11272
|
+
PWM_BADGE_SPACE_WIDTH: xy
|
|
11233
11273
|
};
|
|
11234
11274
|
}
|
|
11235
|
-
var
|
|
11236
|
-
var r = t, { value: i, onChange: a, maxLength: o, textAlign: s = "left", pattern: c, placeholder: l, inputMode: u = "numeric", onComplete: d, pushPasswordManagerStrategy: f = "increase-width", pasteTransformer: p, containerClassName: m, noScriptCSSFallback: h =
|
|
11275
|
+
var wy = e.createContext({}), Ty = e.forwardRef((t, n) => {
|
|
11276
|
+
var r = t, { value: i, onChange: a, maxLength: o, textAlign: s = "left", pattern: c, placeholder: l, inputMode: u = "numeric", onComplete: d, pushPasswordManagerStrategy: f = "increase-width", pasteTransformer: p, containerClassName: m, noScriptCSSFallback: h = Dy, render: g, children: _ } = r, v = gy(r, [
|
|
11237
11277
|
"value",
|
|
11238
11278
|
"onChange",
|
|
11239
11279
|
"maxLength",
|
|
@@ -11249,7 +11289,7 @@ var Cy = e.createContext({}), wy = e.forwardRef((t, n) => {
|
|
|
11249
11289
|
"render",
|
|
11250
11290
|
"children"
|
|
11251
11291
|
]), y;
|
|
11252
|
-
let [b, x] = e.useState(typeof v.defaultValue == "string" ? v.defaultValue : ""), S = i ?? b, C =
|
|
11292
|
+
let [b, x] = e.useState(typeof v.defaultValue == "string" ? v.defaultValue : ""), S = i ?? b, C = vy(S), w = e.useCallback((e) => {
|
|
11253
11293
|
a?.(e), x(e);
|
|
11254
11294
|
}, [a]), T = e.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), E = e.useRef(null), D = e.useRef(null), O = e.useRef({
|
|
11255
11295
|
value: S,
|
|
@@ -11303,7 +11343,7 @@ var Cy = e.createContext({}), wy = e.forwardRef((t, n) => {
|
|
|
11303
11343
|
let e = document.createElement("style");
|
|
11304
11344
|
if (e.id = "input-otp-style", document.head.appendChild(e), e.sheet) {
|
|
11305
11345
|
let t = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
|
|
11306
|
-
|
|
11346
|
+
Ey(e.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), Ey(e.sheet, `[data-input-otp]:autofill { ${t} }`), Ey(e.sheet, `[data-input-otp]:-webkit-autofill { ${t} }`), Ey(e.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), Ey(e.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
|
|
11307
11347
|
}
|
|
11308
11348
|
}
|
|
11309
11349
|
let r = () => {
|
|
@@ -11317,7 +11357,7 @@ var Cy = e.createContext({}), wy = e.forwardRef((t, n) => {
|
|
|
11317
11357
|
}, []);
|
|
11318
11358
|
let [A, j] = e.useState(!1), [M, N] = e.useState(!1), [P, F] = e.useState(null), [I, L] = e.useState(null);
|
|
11319
11359
|
e.useEffect(() => {
|
|
11320
|
-
|
|
11360
|
+
_y(() => {
|
|
11321
11361
|
var e;
|
|
11322
11362
|
(e = E.current) == null || e.dispatchEvent(new Event("input"));
|
|
11323
11363
|
let t = E.current?.selectionStart, n = E.current?.selectionEnd, r = E.current?.selectionDirection;
|
|
@@ -11335,7 +11375,7 @@ var Cy = e.createContext({}), wy = e.forwardRef((t, n) => {
|
|
|
11335
11375
|
C,
|
|
11336
11376
|
S
|
|
11337
11377
|
]);
|
|
11338
|
-
let R =
|
|
11378
|
+
let R = Cy({
|
|
11339
11379
|
containerRef: D,
|
|
11340
11380
|
inputRef: E,
|
|
11341
11381
|
pushPasswordManagerStrategy: f,
|
|
@@ -11405,7 +11445,7 @@ var Cy = e.createContext({}), wy = e.forwardRef((t, n) => {
|
|
|
11405
11445
|
R.PWM_BADGE_SPACE_WIDTH,
|
|
11406
11446
|
R.willPushPWMBadge,
|
|
11407
11447
|
s
|
|
11408
|
-
]), ne = e.useMemo(() => e.createElement("input", my(
|
|
11448
|
+
]), ne = e.useMemo(() => e.createElement("input", hy(my({ autoComplete: v.autoComplete || "one-time-code" }, v), {
|
|
11409
11449
|
"data-input-otp": !0,
|
|
11410
11450
|
"data-input-otp-placeholder-shown": S.length === 0 || void 0,
|
|
11411
11451
|
"data-input-otp-mss": P,
|
|
@@ -11470,7 +11510,7 @@ var Cy = e.createContext({}), wy = e.forwardRef((t, n) => {
|
|
|
11470
11510
|
P,
|
|
11471
11511
|
v.disabled,
|
|
11472
11512
|
S
|
|
11473
|
-
]), re = e.useMemo(() => g ? g(H) : e.createElement(
|
|
11513
|
+
]), re = e.useMemo(() => g ? g(H) : e.createElement(wy.Provider, { value: H }, _), [
|
|
11474
11514
|
_,
|
|
11475
11515
|
H,
|
|
11476
11516
|
g
|
|
@@ -11486,58 +11526,58 @@ var Cy = e.createContext({}), wy = e.forwardRef((t, n) => {
|
|
|
11486
11526
|
pointerEvents: "none"
|
|
11487
11527
|
} }, ne)));
|
|
11488
11528
|
});
|
|
11489
|
-
|
|
11490
|
-
function
|
|
11529
|
+
Ty.displayName = "Input";
|
|
11530
|
+
function Ey(e, t) {
|
|
11491
11531
|
try {
|
|
11492
11532
|
e.insertRule(t);
|
|
11493
11533
|
} catch {
|
|
11494
11534
|
console.error("input-otp could not insert CSS rule:", t);
|
|
11495
11535
|
}
|
|
11496
11536
|
}
|
|
11497
|
-
var
|
|
11537
|
+
var Dy = "\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}";
|
|
11498
11538
|
//#endregion
|
|
11499
11539
|
//#region src/components/InputOtp.tsx
|
|
11500
|
-
function
|
|
11540
|
+
function Oy({ value: e, onChange: t, onComplete: n, isInvalid: r }) {
|
|
11501
11541
|
function i(e) {
|
|
11502
11542
|
t(e), e.length === 6 && n?.(e);
|
|
11503
11543
|
}
|
|
11504
11544
|
return /* @__PURE__ */ g("div", {
|
|
11505
11545
|
className: "flex items-center gap-2 md:gap-4",
|
|
11506
|
-
children: [/* @__PURE__ */ g(
|
|
11546
|
+
children: [/* @__PURE__ */ g(ky, {
|
|
11507
11547
|
maxLength: 6,
|
|
11508
11548
|
value: e,
|
|
11509
11549
|
onChange: i,
|
|
11510
11550
|
children: [
|
|
11511
|
-
/* @__PURE__ */ g(
|
|
11512
|
-
/* @__PURE__ */ h(
|
|
11551
|
+
/* @__PURE__ */ g(Ay, { children: [
|
|
11552
|
+
/* @__PURE__ */ h(jy, {
|
|
11513
11553
|
index: 0,
|
|
11514
11554
|
"aria-invalid": r === !0,
|
|
11515
11555
|
"data-valid": r === !1
|
|
11516
11556
|
}),
|
|
11517
|
-
/* @__PURE__ */ h(
|
|
11557
|
+
/* @__PURE__ */ h(jy, {
|
|
11518
11558
|
index: 1,
|
|
11519
11559
|
"aria-invalid": r === !0,
|
|
11520
11560
|
"data-valid": r === !1
|
|
11521
11561
|
}),
|
|
11522
|
-
/* @__PURE__ */ h(
|
|
11562
|
+
/* @__PURE__ */ h(jy, {
|
|
11523
11563
|
index: 2,
|
|
11524
11564
|
"aria-invalid": r === !0,
|
|
11525
11565
|
"data-valid": r === !1
|
|
11526
11566
|
})
|
|
11527
11567
|
] }),
|
|
11528
|
-
/* @__PURE__ */ h(
|
|
11529
|
-
/* @__PURE__ */ g(
|
|
11530
|
-
/* @__PURE__ */ h(
|
|
11568
|
+
/* @__PURE__ */ h(My, {}),
|
|
11569
|
+
/* @__PURE__ */ g(Ay, { children: [
|
|
11570
|
+
/* @__PURE__ */ h(jy, {
|
|
11531
11571
|
index: 3,
|
|
11532
11572
|
"aria-invalid": r === !0,
|
|
11533
11573
|
"data-valid": r === !1
|
|
11534
11574
|
}),
|
|
11535
|
-
/* @__PURE__ */ h(
|
|
11575
|
+
/* @__PURE__ */ h(jy, {
|
|
11536
11576
|
index: 4,
|
|
11537
11577
|
"aria-invalid": r === !0,
|
|
11538
11578
|
"data-valid": r === !1
|
|
11539
11579
|
}),
|
|
11540
|
-
/* @__PURE__ */ h(
|
|
11580
|
+
/* @__PURE__ */ h(jy, {
|
|
11541
11581
|
index: 5,
|
|
11542
11582
|
"aria-invalid": r === !0,
|
|
11543
11583
|
"data-valid": r === !1
|
|
@@ -11556,23 +11596,23 @@ function Dy({ value: e, onChange: t, onComplete: n, isInvalid: r }) {
|
|
|
11556
11596
|
})]
|
|
11557
11597
|
});
|
|
11558
11598
|
}
|
|
11559
|
-
function
|
|
11560
|
-
return /* @__PURE__ */ h(
|
|
11599
|
+
function ky({ className: e, containerClassName: t, ...n }) {
|
|
11600
|
+
return /* @__PURE__ */ h(Ty, {
|
|
11561
11601
|
"data-slot": "input-otp",
|
|
11562
11602
|
containerClassName: q("flex items-center gap-1 md:gap-2 has-disabled:opacity-50", t),
|
|
11563
11603
|
className: q("disabled:cursor-not-allowed", e),
|
|
11564
11604
|
...n
|
|
11565
11605
|
});
|
|
11566
11606
|
}
|
|
11567
|
-
function
|
|
11607
|
+
function Ay({ className: e, ...t }) {
|
|
11568
11608
|
return /* @__PURE__ */ h("div", {
|
|
11569
11609
|
"data-slot": "input-otp-group",
|
|
11570
11610
|
className: q("flex items-center", e),
|
|
11571
11611
|
...t
|
|
11572
11612
|
});
|
|
11573
11613
|
}
|
|
11574
|
-
function
|
|
11575
|
-
let { char: r, hasFakeCaret: i, isActive: a } = o(
|
|
11614
|
+
function jy({ index: e, className: t, ...n }) {
|
|
11615
|
+
let { char: r, hasFakeCaret: i, isActive: a } = o(wy)?.slots[e] ?? {};
|
|
11576
11616
|
return /* @__PURE__ */ g("div", {
|
|
11577
11617
|
"data-slot": "input-otp-slot",
|
|
11578
11618
|
"data-active": a,
|
|
@@ -11584,7 +11624,7 @@ function Ay({ index: e, className: t, ...n }) {
|
|
|
11584
11624
|
})]
|
|
11585
11625
|
});
|
|
11586
11626
|
}
|
|
11587
|
-
function
|
|
11627
|
+
function My({ ...e }) {
|
|
11588
11628
|
return /* @__PURE__ */ h("div", {
|
|
11589
11629
|
"data-slot": "input-otp-separator",
|
|
11590
11630
|
role: "separator",
|
|
@@ -11594,7 +11634,7 @@ function jy({ ...e }) {
|
|
|
11594
11634
|
}
|
|
11595
11635
|
//#endregion
|
|
11596
11636
|
//#region src/components/MultiSelect.tsx
|
|
11597
|
-
var
|
|
11637
|
+
var Ny = T("m-1 transition-all duration-300 ease-in-out", {
|
|
11598
11638
|
variants: {
|
|
11599
11639
|
variant: {
|
|
11600
11640
|
default: "border-foreground/10 text-white bg-primary hover:bg-primary/80",
|
|
@@ -11615,7 +11655,7 @@ var My = T("m-1 transition-all duration-300 ease-in-out", {
|
|
|
11615
11655
|
variant: "default",
|
|
11616
11656
|
badgeAnimation: "bounce"
|
|
11617
11657
|
}
|
|
11618
|
-
}),
|
|
11658
|
+
}), Py = i(({ options: e, onValueChange: t, variant: n, defaultValue: r = [], placeholder: i = "Selecione as opções", animation: o = 0, animationConfig: u, maxCount: _ = 3, modalPopover: v = !1, className: y, hideSelectAll: b = !1, searchable: x = !0, emptyIndicator: S, autoSize: C = !1, singleLine: w = !1, popoverClassName: T, disabled: E = !1, responsive: D, minWidth: O, maxWidth: k, deduplicateOptions: A = !1, resetOnDefaultValueChange: j = !0, closeOnSelect: M = !1, ...N }, P) => {
|
|
11619
11659
|
let [F, I] = p(r), [L, R] = p(!1), [z, ee] = p(!1), [B, V] = p(""), [te, ne] = p(""), [H, re] = p(""), ie = f(F.length), ae = f(L), oe = f(B), U = a((e, t = "polite") => {
|
|
11620
11660
|
t === "assertive" ? (re(e), setTimeout(() => re(""), 100)) : (ne(e), setTimeout(() => ne(""), 100));
|
|
11621
11661
|
}, []), se = c(), ce = `${se}-listbox`, le = `${se}-description`, ue = `${se}-count`, de = f(r), fe = a((e) => e.length > 0 && "heading" in e[0], []), pe = a((e, t) => {
|
|
@@ -11869,7 +11909,7 @@ var My = T("m-1 transition-all duration-300 ease-in-out", {
|
|
|
11869
11909
|
}
|
|
11870
11910
|
};
|
|
11871
11911
|
return /* @__PURE__ */ g(xt, {
|
|
11872
|
-
className: q(ye(),
|
|
11912
|
+
className: q(ye(), Ny({ variant: n }), i?.gradient && "text-white border-transparent", ve.compactMode && "text-xs px-1.5 py-0.5", ge === "mobile" && "max-w-30 truncate", w && "shrink-0 whitespace-nowrap", "[&>svg]:pointer-events-auto", "items-center"),
|
|
11873
11913
|
style: {
|
|
11874
11914
|
...a,
|
|
11875
11915
|
animationDuration: `${u?.duration || o}s`,
|
|
@@ -11900,7 +11940,7 @@ var My = T("m-1 transition-all duration-300 ease-in-out", {
|
|
|
11900
11940
|
]
|
|
11901
11941
|
}, e);
|
|
11902
11942
|
}).filter(Boolean), F.length > ve.maxCount && /* @__PURE__ */ g(xt, {
|
|
11903
|
-
className: q("bg-transparent text-foreground border-foreground/1 hover:bg-transparent", ye(),
|
|
11943
|
+
className: q("bg-transparent text-foreground border-foreground/1 hover:bg-transparent", ye(), Ny({ variant: n }), ve.compactMode && "text-xs px-1.5 py-0.5", w && "shrink-0 whitespace-nowrap", "[&>svg]:pointer-events-auto"),
|
|
11904
11944
|
style: {
|
|
11905
11945
|
animationDuration: `${u?.duration || o}s`,
|
|
11906
11946
|
animationDelay: `${u?.delay || 0}s`
|
|
@@ -11928,7 +11968,7 @@ var My = T("m-1 transition-all duration-300 ease-in-out", {
|
|
|
11928
11968
|
className: "flex items-center justify-center h-4 w-4 mx-2 cursor-pointer text-muted hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1 rounded-sm",
|
|
11929
11969
|
children: /* @__PURE__ */ h(tn, { className: "h-4 w-4" })
|
|
11930
11970
|
}),
|
|
11931
|
-
/* @__PURE__ */ h(
|
|
11971
|
+
/* @__PURE__ */ h(ay, {
|
|
11932
11972
|
orientation: "vertical",
|
|
11933
11973
|
className: "flex min-h-6 h-full"
|
|
11934
11974
|
}),
|
|
@@ -12053,7 +12093,7 @@ var My = T("m-1 transition-all duration-300 ease-in-out", {
|
|
|
12053
12093
|
onSelect: Ee,
|
|
12054
12094
|
className: "flex-1 justify-center cursor-pointer",
|
|
12055
12095
|
children: "Limpar"
|
|
12056
|
-
}), /* @__PURE__ */ h(
|
|
12096
|
+
}), /* @__PURE__ */ h(ay, {
|
|
12057
12097
|
orientation: "vertical",
|
|
12058
12098
|
className: "flex min-h-6 h-full"
|
|
12059
12099
|
})] }), /* @__PURE__ */ h(Ed, {
|
|
@@ -12073,10 +12113,10 @@ var My = T("m-1 transition-all duration-300 ease-in-out", {
|
|
|
12073
12113
|
]
|
|
12074
12114
|
})] });
|
|
12075
12115
|
});
|
|
12076
|
-
|
|
12116
|
+
Py.displayName = "MultiSelect";
|
|
12077
12117
|
//#endregion
|
|
12078
12118
|
//#region src/components/Pagination.tsx
|
|
12079
|
-
function
|
|
12119
|
+
function Fy({ className: e, ...t }) {
|
|
12080
12120
|
return /* @__PURE__ */ h("nav", {
|
|
12081
12121
|
role: "navigation",
|
|
12082
12122
|
"aria-label": "pagination",
|
|
@@ -12085,20 +12125,20 @@ function Py({ className: e, ...t }) {
|
|
|
12085
12125
|
...t
|
|
12086
12126
|
});
|
|
12087
12127
|
}
|
|
12088
|
-
function
|
|
12128
|
+
function Iy({ className: e, ...t }) {
|
|
12089
12129
|
return /* @__PURE__ */ h("ul", {
|
|
12090
12130
|
"data-slot": "pagination-content",
|
|
12091
12131
|
className: q("flex flex-row items-center gap-1", e),
|
|
12092
12132
|
...t
|
|
12093
12133
|
});
|
|
12094
12134
|
}
|
|
12095
|
-
function
|
|
12135
|
+
function Ly({ ...e }) {
|
|
12096
12136
|
return /* @__PURE__ */ h("li", {
|
|
12097
12137
|
"data-slot": "pagination-item",
|
|
12098
12138
|
...e
|
|
12099
12139
|
});
|
|
12100
12140
|
}
|
|
12101
|
-
function
|
|
12141
|
+
function Ry({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
12102
12142
|
return /* @__PURE__ */ h("button", {
|
|
12103
12143
|
"aria-current": t ? "page" : void 0,
|
|
12104
12144
|
"data-slot": "pagination-link",
|
|
@@ -12110,8 +12150,8 @@ function Ly({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
|
12110
12150
|
...r
|
|
12111
12151
|
});
|
|
12112
12152
|
}
|
|
12113
|
-
function
|
|
12114
|
-
return /* @__PURE__ */ g(
|
|
12153
|
+
function zy({ className: e, ...t }) {
|
|
12154
|
+
return /* @__PURE__ */ g(Ry, {
|
|
12115
12155
|
"aria-label": "Ir para a página anterior",
|
|
12116
12156
|
size: "default",
|
|
12117
12157
|
className: q("gap-1 px-2.5 sm:pl-2.5", e),
|
|
@@ -12122,8 +12162,8 @@ function Ry({ className: e, ...t }) {
|
|
|
12122
12162
|
})]
|
|
12123
12163
|
});
|
|
12124
12164
|
}
|
|
12125
|
-
function
|
|
12126
|
-
return /* @__PURE__ */ g(
|
|
12165
|
+
function By({ className: e, ...t }) {
|
|
12166
|
+
return /* @__PURE__ */ g(Ry, {
|
|
12127
12167
|
"aria-label": "Ir para a próxima página",
|
|
12128
12168
|
size: "default",
|
|
12129
12169
|
className: q("gap-1 px-2.5 sm:pr-2.5", e),
|
|
@@ -12134,7 +12174,7 @@ function zy({ className: e, ...t }) {
|
|
|
12134
12174
|
}), /* @__PURE__ */ h(Ft, {})]
|
|
12135
12175
|
});
|
|
12136
12176
|
}
|
|
12137
|
-
function
|
|
12177
|
+
function Vy({ className: e, ...t }) {
|
|
12138
12178
|
return /* @__PURE__ */ g("span", {
|
|
12139
12179
|
"aria-hidden": !0,
|
|
12140
12180
|
"data-slot": "pagination-ellipsis",
|
|
@@ -12148,15 +12188,15 @@ function By({ className: e, ...t }) {
|
|
|
12148
12188
|
}
|
|
12149
12189
|
//#endregion
|
|
12150
12190
|
//#region node_modules/@radix-ui/number/dist/index.mjs
|
|
12151
|
-
function
|
|
12191
|
+
function Hy(e, [t, n]) {
|
|
12152
12192
|
return Math.min(n, Math.max(t, e));
|
|
12153
12193
|
}
|
|
12154
12194
|
//#endregion
|
|
12155
12195
|
//#region node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
12156
12196
|
/* @__NO_SIDE_EFFECTS__ */
|
|
12157
|
-
function
|
|
12158
|
-
let n = /* @__PURE__ */
|
|
12159
|
-
let { children: i, ...a } = t, o = e.Children.toArray(i), s = o.find(
|
|
12197
|
+
function Uy(t) {
|
|
12198
|
+
let n = /* @__PURE__ */ Wy(t), r = e.forwardRef((t, r) => {
|
|
12199
|
+
let { children: i, ...a } = t, o = e.Children.toArray(i), s = o.find(Ky);
|
|
12160
12200
|
if (s) {
|
|
12161
12201
|
let t = s.props.children, i = o.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
12162
12202
|
return /* @__PURE__ */ h(n, {
|
|
@@ -12174,22 +12214,22 @@ function Hy(t) {
|
|
|
12174
12214
|
return r.displayName = `${t}.Slot`, r;
|
|
12175
12215
|
}
|
|
12176
12216
|
/* @__NO_SIDE_EFFECTS__ */
|
|
12177
|
-
function
|
|
12217
|
+
function Wy(t) {
|
|
12178
12218
|
let n = e.forwardRef((t, n) => {
|
|
12179
12219
|
let { children: r, ...i } = t;
|
|
12180
12220
|
if (e.isValidElement(r)) {
|
|
12181
|
-
let t =
|
|
12221
|
+
let t = Jy(r), a = qy(i, r.props);
|
|
12182
12222
|
return r.type !== e.Fragment && (a.ref = n ? D(n, t) : t), e.cloneElement(r, a);
|
|
12183
12223
|
}
|
|
12184
12224
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
12185
12225
|
});
|
|
12186
12226
|
return n.displayName = `${t}.SlotClone`, n;
|
|
12187
12227
|
}
|
|
12188
|
-
var
|
|
12189
|
-
function
|
|
12190
|
-
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
12228
|
+
var Gy = Symbol("radix.slottable");
|
|
12229
|
+
function Ky(t) {
|
|
12230
|
+
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Gy;
|
|
12191
12231
|
}
|
|
12192
|
-
function
|
|
12232
|
+
function qy(e, t) {
|
|
12193
12233
|
let n = { ...t };
|
|
12194
12234
|
for (let r in t) {
|
|
12195
12235
|
let i = e[r], a = t[r];
|
|
@@ -12206,13 +12246,13 @@ function Ky(e, t) {
|
|
|
12206
12246
|
...n
|
|
12207
12247
|
};
|
|
12208
12248
|
}
|
|
12209
|
-
function
|
|
12249
|
+
function Jy(e) {
|
|
12210
12250
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
12211
12251
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
12212
12252
|
}
|
|
12213
12253
|
//#endregion
|
|
12214
12254
|
//#region node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
12215
|
-
var
|
|
12255
|
+
var Yy = Object.freeze({
|
|
12216
12256
|
position: "absolute",
|
|
12217
12257
|
border: 0,
|
|
12218
12258
|
width: 1,
|
|
@@ -12223,35 +12263,35 @@ var Jy = Object.freeze({
|
|
|
12223
12263
|
clip: "rect(0, 0, 0, 0)",
|
|
12224
12264
|
whiteSpace: "nowrap",
|
|
12225
12265
|
wordWrap: "normal"
|
|
12226
|
-
}),
|
|
12266
|
+
}), Xy = "VisuallyHidden", Zy = e.forwardRef((e, t) => /* @__PURE__ */ h($.span, {
|
|
12227
12267
|
...e,
|
|
12228
12268
|
ref: t,
|
|
12229
12269
|
style: {
|
|
12230
|
-
...
|
|
12270
|
+
...Yy,
|
|
12231
12271
|
...e.style
|
|
12232
12272
|
}
|
|
12233
12273
|
}));
|
|
12234
|
-
|
|
12235
|
-
var
|
|
12274
|
+
Zy.displayName = Xy;
|
|
12275
|
+
var Qy = Zy, $y = [
|
|
12236
12276
|
" ",
|
|
12237
12277
|
"Enter",
|
|
12238
12278
|
"ArrowUp",
|
|
12239
12279
|
"ArrowDown"
|
|
12240
|
-
],
|
|
12241
|
-
let { __scopeSelect: n, children: r, open: i, defaultOpen: a, onOpenChange: o, value: s, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: _ } = t, v =
|
|
12280
|
+
], eb = [" ", "Enter"], tb = "Select", [nb, rb, ib] = hh(tb), [ab, ob] = No(tb, [ib, Zp]), sb = Zp(), [cb, lb] = ab(tb), [ub, db] = ab(tb), fb = (t) => {
|
|
12281
|
+
let { __scopeSelect: n, children: r, open: i, defaultOpen: a, onOpenChange: o, value: s, defaultValue: c, onValueChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: _ } = t, v = sb(n), [y, b] = e.useState(null), [x, S] = e.useState(null), [C, w] = e.useState(!1), T = _h(u), [E, D] = Lo({
|
|
12242
12282
|
prop: i,
|
|
12243
12283
|
defaultProp: a ?? !1,
|
|
12244
12284
|
onChange: o,
|
|
12245
|
-
caller:
|
|
12285
|
+
caller: tb
|
|
12246
12286
|
}), [O, k] = Lo({
|
|
12247
12287
|
prop: s,
|
|
12248
12288
|
defaultProp: c,
|
|
12249
12289
|
onChange: l,
|
|
12250
|
-
caller:
|
|
12290
|
+
caller: tb
|
|
12251
12291
|
}), A = e.useRef(null), j = y ? _ || !!y.closest("form") : !0, [M, N] = e.useState(/* @__PURE__ */ new Set()), P = Array.from(M).map((e) => e.props.value).join(";");
|
|
12252
12292
|
return /* @__PURE__ */ h(pm, {
|
|
12253
12293
|
...v,
|
|
12254
|
-
children: /* @__PURE__ */ g(
|
|
12294
|
+
children: /* @__PURE__ */ g(cb, {
|
|
12255
12295
|
required: m,
|
|
12256
12296
|
scope: n,
|
|
12257
12297
|
trigger: y,
|
|
@@ -12268,9 +12308,9 @@ var Zy = Xy, Qy = [
|
|
|
12268
12308
|
dir: T,
|
|
12269
12309
|
triggerPointerDownPosRef: A,
|
|
12270
12310
|
disabled: p,
|
|
12271
|
-
children: [/* @__PURE__ */ h(
|
|
12311
|
+
children: [/* @__PURE__ */ h(nb.Provider, {
|
|
12272
12312
|
scope: n,
|
|
12273
|
-
children: /* @__PURE__ */ h(
|
|
12313
|
+
children: /* @__PURE__ */ h(ub, {
|
|
12274
12314
|
scope: t.__scopeSelect,
|
|
12275
12315
|
onNativeOptionAdd: e.useCallback((e) => {
|
|
12276
12316
|
N((t) => new Set(t).add(e));
|
|
@@ -12283,7 +12323,7 @@ var Zy = Xy, Qy = [
|
|
|
12283
12323
|
}, []),
|
|
12284
12324
|
children: r
|
|
12285
12325
|
})
|
|
12286
|
-
}), j ? /* @__PURE__ */ g(
|
|
12326
|
+
}), j ? /* @__PURE__ */ g(sx, {
|
|
12287
12327
|
"aria-hidden": !0,
|
|
12288
12328
|
required: m,
|
|
12289
12329
|
tabIndex: -1,
|
|
@@ -12298,10 +12338,10 @@ var Zy = Xy, Qy = [
|
|
|
12298
12338
|
})
|
|
12299
12339
|
});
|
|
12300
12340
|
};
|
|
12301
|
-
|
|
12302
|
-
var
|
|
12303
|
-
let { __scopeSelect: r, disabled: i = !1, ...a } = t, o =
|
|
12304
|
-
let t = u().filter((e) => !e.disabled), n =
|
|
12341
|
+
fb.displayName = tb;
|
|
12342
|
+
var pb = "SelectTrigger", mb = e.forwardRef((t, n) => {
|
|
12343
|
+
let { __scopeSelect: r, disabled: i = !1, ...a } = t, o = sb(r), s = lb(pb, r), c = s.disabled || i, l = O(n, s.onTriggerChange), u = rb(r), d = e.useRef("touch"), [f, p, m] = lx((e) => {
|
|
12344
|
+
let t = u().filter((e) => !e.disabled), n = ux(t, e, t.find((e) => e.value === s.value));
|
|
12305
12345
|
n !== void 0 && s.onValueChange(n.value);
|
|
12306
12346
|
}), g = (e) => {
|
|
12307
12347
|
c || (s.onOpenChange(!0), m()), e && (s.triggerPointerDownPosRef.current = {
|
|
@@ -12323,7 +12363,7 @@ var fb = "SelectTrigger", pb = e.forwardRef((t, n) => {
|
|
|
12323
12363
|
"data-state": s.open ? "open" : "closed",
|
|
12324
12364
|
disabled: c,
|
|
12325
12365
|
"data-disabled": c ? "" : void 0,
|
|
12326
|
-
"data-placeholder":
|
|
12366
|
+
"data-placeholder": cx(s.value) ? "" : void 0,
|
|
12327
12367
|
...a,
|
|
12328
12368
|
ref: l,
|
|
12329
12369
|
onClick: Q(a.onClick, (e) => {
|
|
@@ -12336,25 +12376,25 @@ var fb = "SelectTrigger", pb = e.forwardRef((t, n) => {
|
|
|
12336
12376
|
}),
|
|
12337
12377
|
onKeyDown: Q(a.onKeyDown, (e) => {
|
|
12338
12378
|
let t = f.current !== "";
|
|
12339
|
-
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && p(e.key), !(t && e.key === " ") &&
|
|
12379
|
+
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && p(e.key), !(t && e.key === " ") && $y.includes(e.key) && (g(), e.preventDefault());
|
|
12340
12380
|
})
|
|
12341
12381
|
})
|
|
12342
12382
|
});
|
|
12343
12383
|
});
|
|
12344
|
-
|
|
12345
|
-
var
|
|
12346
|
-
let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c =
|
|
12384
|
+
mb.displayName = pb;
|
|
12385
|
+
var hb = "SelectValue", gb = e.forwardRef((e, t) => {
|
|
12386
|
+
let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c = lb(hb, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = O(t, c.onValueNodeChange);
|
|
12347
12387
|
return Fo(() => {
|
|
12348
12388
|
l(u);
|
|
12349
12389
|
}, [l, u]), /* @__PURE__ */ h($.span, {
|
|
12350
12390
|
...s,
|
|
12351
12391
|
ref: d,
|
|
12352
12392
|
style: { pointerEvents: "none" },
|
|
12353
|
-
children:
|
|
12393
|
+
children: cx(c.value) ? /* @__PURE__ */ h(m, { children: o }) : a
|
|
12354
12394
|
});
|
|
12355
12395
|
});
|
|
12356
|
-
|
|
12357
|
-
var
|
|
12396
|
+
gb.displayName = hb;
|
|
12397
|
+
var _b = "SelectIcon", vb = e.forwardRef((e, t) => {
|
|
12358
12398
|
let { __scopeSelect: n, children: r, ...i } = e;
|
|
12359
12399
|
return /* @__PURE__ */ h($.span, {
|
|
12360
12400
|
"aria-hidden": !0,
|
|
@@ -12363,34 +12403,34 @@ var gb = "SelectIcon", _b = e.forwardRef((e, t) => {
|
|
|
12363
12403
|
children: r || "▼"
|
|
12364
12404
|
});
|
|
12365
12405
|
});
|
|
12366
|
-
|
|
12367
|
-
var
|
|
12406
|
+
vb.displayName = _b;
|
|
12407
|
+
var yb = "SelectPortal", bb = (e) => /* @__PURE__ */ h(pc, {
|
|
12368
12408
|
asChild: !0,
|
|
12369
12409
|
...e
|
|
12370
12410
|
});
|
|
12371
|
-
|
|
12372
|
-
var
|
|
12373
|
-
let r =
|
|
12411
|
+
bb.displayName = yb;
|
|
12412
|
+
var xb = "SelectContent", Sb = e.forwardRef((t, n) => {
|
|
12413
|
+
let r = lb(xb, t.__scopeSelect), [i, a] = e.useState();
|
|
12374
12414
|
if (Fo(() => {
|
|
12375
12415
|
a(new DocumentFragment());
|
|
12376
12416
|
}, []), !r.open) {
|
|
12377
12417
|
let e = i;
|
|
12378
|
-
return e ? _.createPortal(/* @__PURE__ */ h(
|
|
12418
|
+
return e ? _.createPortal(/* @__PURE__ */ h(wb, {
|
|
12379
12419
|
scope: t.__scopeSelect,
|
|
12380
|
-
children: /* @__PURE__ */ h(
|
|
12420
|
+
children: /* @__PURE__ */ h(nb.Slot, {
|
|
12381
12421
|
scope: t.__scopeSelect,
|
|
12382
12422
|
children: /* @__PURE__ */ h("div", { children: t.children })
|
|
12383
12423
|
})
|
|
12384
12424
|
}), e) : null;
|
|
12385
12425
|
}
|
|
12386
|
-
return /* @__PURE__ */ h(
|
|
12426
|
+
return /* @__PURE__ */ h(Ob, {
|
|
12387
12427
|
...t,
|
|
12388
12428
|
ref: n
|
|
12389
12429
|
});
|
|
12390
12430
|
});
|
|
12391
|
-
|
|
12392
|
-
var
|
|
12393
|
-
let { __scopeSelect: r, position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: g, hideWhenDetached: _, avoidCollisions: v, ...y } = t, b =
|
|
12431
|
+
Sb.displayName = xb;
|
|
12432
|
+
var Cb = 10, [wb, Tb] = ab(xb), Eb = "SelectContentImpl", Db = /* @__PURE__ */ Uy("SelectContent.RemoveScroll"), Ob = e.forwardRef((t, n) => {
|
|
12433
|
+
let { __scopeSelect: r, position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: g, hideWhenDetached: _, avoidCollisions: v, ...y } = t, b = lb(xb, r), [x, S] = e.useState(null), [C, w] = e.useState(null), T = O(n, (e) => S(e)), [E, D] = e.useState(null), [k, A] = e.useState(null), j = rb(r), [M, N] = e.useState(!1), P = e.useRef(!1);
|
|
12394
12434
|
e.useEffect(() => {
|
|
12395
12435
|
if (x) return Pl(x);
|
|
12396
12436
|
}, [x]), hc();
|
|
@@ -12436,8 +12476,8 @@ var Sb = 10, [Cb, wb] = ib(bb), Tb = "SelectContentImpl", Eb = /* @__PURE__ */ H
|
|
|
12436
12476
|
window.removeEventListener("blur", e), window.removeEventListener("resize", e);
|
|
12437
12477
|
};
|
|
12438
12478
|
}, [L]);
|
|
12439
|
-
let [z, ee] =
|
|
12440
|
-
let t = j().filter((e) => !e.disabled), n =
|
|
12479
|
+
let [z, ee] = lx((e) => {
|
|
12480
|
+
let t = j().filter((e) => !e.disabled), n = ux(t, e, t.find((e) => e.ref.current === document.activeElement));
|
|
12441
12481
|
n && setTimeout(() => n.ref.current.focus());
|
|
12442
12482
|
}), B = e.useCallback((e, t, n) => {
|
|
12443
12483
|
let r = !P.current && !n;
|
|
@@ -12445,7 +12485,7 @@ var Sb = 10, [Cb, wb] = ib(bb), Tb = "SelectContentImpl", Eb = /* @__PURE__ */ H
|
|
|
12445
12485
|
}, [b.value]), V = e.useCallback(() => x?.focus(), [x]), te = e.useCallback((e, t, n) => {
|
|
12446
12486
|
let r = !P.current && !n;
|
|
12447
12487
|
(b.value !== void 0 && b.value === t || r) && A(e);
|
|
12448
|
-
}, [b.value]), ne = i === "popper" ?
|
|
12488
|
+
}, [b.value]), ne = i === "popper" ? Mb : Ab, H = ne === Mb ? {
|
|
12449
12489
|
side: c,
|
|
12450
12490
|
sideOffset: l,
|
|
12451
12491
|
align: u,
|
|
@@ -12457,7 +12497,7 @@ var Sb = 10, [Cb, wb] = ib(bb), Tb = "SelectContentImpl", Eb = /* @__PURE__ */ H
|
|
|
12457
12497
|
hideWhenDetached: _,
|
|
12458
12498
|
avoidCollisions: v
|
|
12459
12499
|
} : {};
|
|
12460
|
-
return /* @__PURE__ */ h(
|
|
12500
|
+
return /* @__PURE__ */ h(wb, {
|
|
12461
12501
|
scope: r,
|
|
12462
12502
|
content: x,
|
|
12463
12503
|
viewport: C,
|
|
@@ -12472,7 +12512,7 @@ var Sb = 10, [Cb, wb] = ib(bb), Tb = "SelectContentImpl", Eb = /* @__PURE__ */ H
|
|
|
12472
12512
|
isPositioned: M,
|
|
12473
12513
|
searchRef: z,
|
|
12474
12514
|
children: /* @__PURE__ */ h(Tl, {
|
|
12475
|
-
as:
|
|
12515
|
+
as: Db,
|
|
12476
12516
|
allowPinchZoom: !0,
|
|
12477
12517
|
children: /* @__PURE__ */ h(ec, {
|
|
12478
12518
|
asChild: !0,
|
|
@@ -12528,19 +12568,19 @@ var Sb = 10, [Cb, wb] = ib(bb), Tb = "SelectContentImpl", Eb = /* @__PURE__ */ H
|
|
|
12528
12568
|
})
|
|
12529
12569
|
});
|
|
12530
12570
|
});
|
|
12531
|
-
|
|
12532
|
-
var
|
|
12533
|
-
let { __scopeSelect: r, onPlaced: i, ...a } = t, o =
|
|
12571
|
+
Ob.displayName = Eb;
|
|
12572
|
+
var kb = "SelectItemAlignedPosition", Ab = e.forwardRef((t, n) => {
|
|
12573
|
+
let { __scopeSelect: r, onPlaced: i, ...a } = t, o = lb(xb, r), s = Tb(xb, r), [c, l] = e.useState(null), [u, d] = e.useState(null), f = O(n, (e) => d(e)), p = rb(r), m = e.useRef(!1), g = e.useRef(!0), { viewport: _, selectedItem: v, selectedItemText: y, focusSelectedItem: b } = s, x = e.useCallback(() => {
|
|
12534
12574
|
if (o.trigger && o.valueNode && c && u && _ && v && y) {
|
|
12535
12575
|
let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), r = y.getBoundingClientRect();
|
|
12536
12576
|
if (o.dir !== "rtl") {
|
|
12537
|
-
let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth -
|
|
12577
|
+
let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Cb, d = Hy(a, [Cb, Math.max(Cb, u - l)]);
|
|
12538
12578
|
c.style.minWidth = s + "px", c.style.left = d + "px";
|
|
12539
12579
|
} else {
|
|
12540
|
-
let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth -
|
|
12580
|
+
let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Cb, d = Hy(a, [Cb, Math.max(Cb, u - l)]);
|
|
12541
12581
|
c.style.minWidth = s + "px", c.style.right = d + "px";
|
|
12542
12582
|
}
|
|
12543
|
-
let a = p(), s = window.innerHeight -
|
|
12583
|
+
let a = p(), s = window.innerHeight - Cb * 2, l = _.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), g = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + g, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(_), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Cb, D = s - E, O = v.offsetHeight / 2, k = v.offsetTop + O, A = f + h + k, j = x - A;
|
|
12544
12584
|
if (A <= E) {
|
|
12545
12585
|
let e = a.length > 0 && v === a[a.length - 1].ref.current;
|
|
12546
12586
|
c.style.bottom = "0px";
|
|
@@ -12552,7 +12592,7 @@ var Ob = "SelectItemAlignedPosition", kb = e.forwardRef((t, n) => {
|
|
|
12552
12592
|
let t = Math.max(E, f + _.offsetTop + (e ? w : 0) + O) + j;
|
|
12553
12593
|
c.style.height = t + "px", _.scrollTop = A - E + _.offsetTop;
|
|
12554
12594
|
}
|
|
12555
|
-
c.style.margin = `${
|
|
12595
|
+
c.style.margin = `${Cb}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => m.current = !0);
|
|
12556
12596
|
}
|
|
12557
12597
|
}, [
|
|
12558
12598
|
p,
|
|
@@ -12570,7 +12610,7 @@ var Ob = "SelectItemAlignedPosition", kb = e.forwardRef((t, n) => {
|
|
|
12570
12610
|
let [S, C] = e.useState();
|
|
12571
12611
|
return Fo(() => {
|
|
12572
12612
|
u && C(window.getComputedStyle(u).zIndex);
|
|
12573
|
-
}, [u]), /* @__PURE__ */ h(
|
|
12613
|
+
}, [u]), /* @__PURE__ */ h(Nb, {
|
|
12574
12614
|
scope: r,
|
|
12575
12615
|
contentWrapper: c,
|
|
12576
12616
|
shouldExpandOnScrollRef: m,
|
|
@@ -12597,11 +12637,11 @@ var Ob = "SelectItemAlignedPosition", kb = e.forwardRef((t, n) => {
|
|
|
12597
12637
|
})
|
|
12598
12638
|
});
|
|
12599
12639
|
});
|
|
12600
|
-
|
|
12601
|
-
var
|
|
12602
|
-
let { __scopeSelect: n, align: r = "start", collisionPadding: i =
|
|
12640
|
+
Ab.displayName = kb;
|
|
12641
|
+
var jb = "SelectPopperPosition", Mb = e.forwardRef((e, t) => {
|
|
12642
|
+
let { __scopeSelect: n, align: r = "start", collisionPadding: i = Cb, ...a } = e;
|
|
12603
12643
|
return /* @__PURE__ */ h(hm, {
|
|
12604
|
-
...
|
|
12644
|
+
...sb(n),
|
|
12605
12645
|
...a,
|
|
12606
12646
|
ref: t,
|
|
12607
12647
|
align: r,
|
|
@@ -12617,13 +12657,13 @@ var Ab = "SelectPopperPosition", jb = e.forwardRef((e, t) => {
|
|
|
12617
12657
|
}
|
|
12618
12658
|
});
|
|
12619
12659
|
});
|
|
12620
|
-
|
|
12621
|
-
var [
|
|
12622
|
-
let { __scopeSelect: r, nonce: i, ...a } = t, o =
|
|
12660
|
+
Mb.displayName = jb;
|
|
12661
|
+
var [Nb, Pb] = ab(xb, {}), Fb = "SelectViewport", Ib = e.forwardRef((t, n) => {
|
|
12662
|
+
let { __scopeSelect: r, nonce: i, ...a } = t, o = Tb(Fb, r), s = Pb(Fb, r), c = O(n, o.onViewportChange), l = e.useRef(0);
|
|
12623
12663
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("style", {
|
|
12624
12664
|
dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
|
|
12625
12665
|
nonce: i
|
|
12626
|
-
}), /* @__PURE__ */ h(
|
|
12666
|
+
}), /* @__PURE__ */ h(nb.Slot, {
|
|
12627
12667
|
scope: r,
|
|
12628
12668
|
children: /* @__PURE__ */ h($.div, {
|
|
12629
12669
|
"data-radix-select-viewport": "",
|
|
@@ -12641,7 +12681,7 @@ var [Mb, Nb] = ib(bb, {}), Pb = "SelectViewport", Fb = e.forwardRef((t, n) => {
|
|
|
12641
12681
|
if (r?.current && n) {
|
|
12642
12682
|
let e = Math.abs(l.current - t.scrollTop);
|
|
12643
12683
|
if (e > 0) {
|
|
12644
|
-
let r = window.innerHeight -
|
|
12684
|
+
let r = window.innerHeight - Cb * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
|
|
12645
12685
|
if (o < r) {
|
|
12646
12686
|
let i = o + e, a = Math.min(r, i), s = i - a;
|
|
12647
12687
|
n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
|
|
@@ -12653,10 +12693,10 @@ var [Mb, Nb] = ib(bb, {}), Pb = "SelectViewport", Fb = e.forwardRef((t, n) => {
|
|
|
12653
12693
|
})
|
|
12654
12694
|
})] });
|
|
12655
12695
|
});
|
|
12656
|
-
|
|
12657
|
-
var
|
|
12696
|
+
Ib.displayName = Fb;
|
|
12697
|
+
var Lb = "SelectGroup", [Rb, zb] = ab(Lb), Bb = e.forwardRef((e, t) => {
|
|
12658
12698
|
let { __scopeSelect: n, ...r } = e, i = Ps();
|
|
12659
|
-
return /* @__PURE__ */ h(
|
|
12699
|
+
return /* @__PURE__ */ h(Rb, {
|
|
12660
12700
|
scope: n,
|
|
12661
12701
|
id: i,
|
|
12662
12702
|
children: /* @__PURE__ */ h($.div, {
|
|
@@ -12667,22 +12707,22 @@ var Ib = "SelectGroup", [Lb, Rb] = ib(Ib), zb = e.forwardRef((e, t) => {
|
|
|
12667
12707
|
})
|
|
12668
12708
|
});
|
|
12669
12709
|
});
|
|
12670
|
-
|
|
12671
|
-
var
|
|
12672
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
12710
|
+
Bb.displayName = Lb;
|
|
12711
|
+
var Vb = "SelectLabel", Hb = e.forwardRef((e, t) => {
|
|
12712
|
+
let { __scopeSelect: n, ...r } = e, i = zb(Vb, n);
|
|
12673
12713
|
return /* @__PURE__ */ h($.div, {
|
|
12674
12714
|
id: i.id,
|
|
12675
12715
|
...r,
|
|
12676
12716
|
ref: t
|
|
12677
12717
|
});
|
|
12678
12718
|
});
|
|
12679
|
-
|
|
12680
|
-
var
|
|
12681
|
-
let { __scopeSelect: r, value: i, disabled: a = !1, textValue: o, ...s } = t, c =
|
|
12719
|
+
Hb.displayName = Vb;
|
|
12720
|
+
var Ub = "SelectItem", [Wb, Gb] = ab(Ub), Kb = e.forwardRef((t, n) => {
|
|
12721
|
+
let { __scopeSelect: r, value: i, disabled: a = !1, textValue: o, ...s } = t, c = lb(Ub, r), l = Tb(Ub, r), u = c.value === i, [d, f] = e.useState(o ?? ""), [p, m] = e.useState(!1), g = O(n, (e) => l.itemRefCallback?.(e, i, a)), _ = Ps(), v = e.useRef("touch"), y = () => {
|
|
12682
12722
|
a || (c.onValueChange(i), c.onOpenChange(!1));
|
|
12683
12723
|
};
|
|
12684
12724
|
if (i === "") throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
|
|
12685
|
-
return /* @__PURE__ */ h(
|
|
12725
|
+
return /* @__PURE__ */ h(Wb, {
|
|
12686
12726
|
scope: r,
|
|
12687
12727
|
value: i,
|
|
12688
12728
|
disabled: a,
|
|
@@ -12691,7 +12731,7 @@ var Hb = "SelectItem", [Ub, Wb] = ib(Hb), Gb = e.forwardRef((t, n) => {
|
|
|
12691
12731
|
onItemTextChange: e.useCallback((e) => {
|
|
12692
12732
|
f((t) => t || (e?.textContent ?? "").trim());
|
|
12693
12733
|
}, []),
|
|
12694
|
-
children: /* @__PURE__ */ h(
|
|
12734
|
+
children: /* @__PURE__ */ h(nb.ItemSlot, {
|
|
12695
12735
|
scope: r,
|
|
12696
12736
|
value: i,
|
|
12697
12737
|
disabled: a,
|
|
@@ -12725,15 +12765,15 @@ var Hb = "SelectItem", [Ub, Wb] = ib(Hb), Gb = e.forwardRef((t, n) => {
|
|
|
12725
12765
|
e.currentTarget === document.activeElement && l.onItemLeave?.();
|
|
12726
12766
|
}),
|
|
12727
12767
|
onKeyDown: Q(s.onKeyDown, (e) => {
|
|
12728
|
-
l.searchRef?.current !== "" && e.key === " " || (
|
|
12768
|
+
l.searchRef?.current !== "" && e.key === " " || (eb.includes(e.key) && y(), e.key === " " && e.preventDefault());
|
|
12729
12769
|
})
|
|
12730
12770
|
})
|
|
12731
12771
|
})
|
|
12732
12772
|
});
|
|
12733
12773
|
});
|
|
12734
|
-
|
|
12735
|
-
var
|
|
12736
|
-
let { __scopeSelect: r, className: i, style: a, ...o } = t, s =
|
|
12774
|
+
Kb.displayName = Ub;
|
|
12775
|
+
var qb = "SelectItemText", Jb = e.forwardRef((t, n) => {
|
|
12776
|
+
let { __scopeSelect: r, className: i, style: a, ...o } = t, s = lb(qb, r), c = Tb(qb, r), l = Gb(qb, r), u = db(qb, r), [d, f] = e.useState(null), p = O(n, (e) => f(e), l.onItemTextChange, (e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), v = d?.textContent, y = e.useMemo(() => /* @__PURE__ */ h("option", {
|
|
12737
12777
|
value: l.value,
|
|
12738
12778
|
disabled: l.disabled,
|
|
12739
12779
|
children: v
|
|
@@ -12752,18 +12792,18 @@ var Kb = "SelectItemText", qb = e.forwardRef((t, n) => {
|
|
|
12752
12792
|
ref: p
|
|
12753
12793
|
}), l.isSelected && s.valueNode && !s.valueNodeHasChildren ? _.createPortal(o.children, s.valueNode) : null] });
|
|
12754
12794
|
});
|
|
12755
|
-
|
|
12756
|
-
var
|
|
12795
|
+
Jb.displayName = qb;
|
|
12796
|
+
var Yb = "SelectItemIndicator", Xb = e.forwardRef((e, t) => {
|
|
12757
12797
|
let { __scopeSelect: n, ...r } = e;
|
|
12758
|
-
return
|
|
12798
|
+
return Gb(Yb, n).isSelected ? /* @__PURE__ */ h($.span, {
|
|
12759
12799
|
"aria-hidden": !0,
|
|
12760
12800
|
...r,
|
|
12761
12801
|
ref: t
|
|
12762
12802
|
}) : null;
|
|
12763
12803
|
});
|
|
12764
|
-
|
|
12765
|
-
var
|
|
12766
|
-
let r =
|
|
12804
|
+
Xb.displayName = Yb;
|
|
12805
|
+
var Zb = "SelectScrollUpButton", Qb = e.forwardRef((t, n) => {
|
|
12806
|
+
let r = Tb(Zb, t.__scopeSelect), i = Pb(Zb, t.__scopeSelect), [a, o] = e.useState(!1), s = O(n, i.onScrollButtonChange);
|
|
12767
12807
|
return Fo(() => {
|
|
12768
12808
|
if (r.viewport && r.isPositioned) {
|
|
12769
12809
|
let e = function() {
|
|
@@ -12771,7 +12811,7 @@ var Xb = "SelectScrollUpButton", Zb = e.forwardRef((t, n) => {
|
|
|
12771
12811
|
}, t = r.viewport;
|
|
12772
12812
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
12773
12813
|
}
|
|
12774
|
-
}, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ h(
|
|
12814
|
+
}, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ h(tx, {
|
|
12775
12815
|
...t,
|
|
12776
12816
|
ref: s,
|
|
12777
12817
|
onAutoScroll: () => {
|
|
@@ -12780,9 +12820,9 @@ var Xb = "SelectScrollUpButton", Zb = e.forwardRef((t, n) => {
|
|
|
12780
12820
|
}
|
|
12781
12821
|
}) : null;
|
|
12782
12822
|
});
|
|
12783
|
-
|
|
12784
|
-
var
|
|
12785
|
-
let r =
|
|
12823
|
+
Qb.displayName = Zb;
|
|
12824
|
+
var $b = "SelectScrollDownButton", ex = e.forwardRef((t, n) => {
|
|
12825
|
+
let r = Tb($b, t.__scopeSelect), i = Pb($b, t.__scopeSelect), [a, o] = e.useState(!1), s = O(n, i.onScrollButtonChange);
|
|
12786
12826
|
return Fo(() => {
|
|
12787
12827
|
if (r.viewport && r.isPositioned) {
|
|
12788
12828
|
let e = function() {
|
|
@@ -12791,7 +12831,7 @@ var Qb = "SelectScrollDownButton", $b = e.forwardRef((t, n) => {
|
|
|
12791
12831
|
}, t = r.viewport;
|
|
12792
12832
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
12793
12833
|
}
|
|
12794
|
-
}, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ h(
|
|
12834
|
+
}, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ h(tx, {
|
|
12795
12835
|
...t,
|
|
12796
12836
|
ref: s,
|
|
12797
12837
|
onAutoScroll: () => {
|
|
@@ -12800,9 +12840,9 @@ var Qb = "SelectScrollDownButton", $b = e.forwardRef((t, n) => {
|
|
|
12800
12840
|
}
|
|
12801
12841
|
}) : null;
|
|
12802
12842
|
});
|
|
12803
|
-
|
|
12804
|
-
var
|
|
12805
|
-
let { __scopeSelect: r, onAutoScroll: i, ...a } = t, o =
|
|
12843
|
+
ex.displayName = $b;
|
|
12844
|
+
var tx = e.forwardRef((t, n) => {
|
|
12845
|
+
let { __scopeSelect: r, onAutoScroll: i, ...a } = t, o = Tb("SelectScrollButton", r), s = e.useRef(null), c = rb(r), l = e.useCallback(() => {
|
|
12806
12846
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
12807
12847
|
}, []);
|
|
12808
12848
|
return e.useEffect(() => () => l(), [l]), Fo(() => {
|
|
@@ -12825,7 +12865,7 @@ var ex = e.forwardRef((t, n) => {
|
|
|
12825
12865
|
l();
|
|
12826
12866
|
})
|
|
12827
12867
|
});
|
|
12828
|
-
}),
|
|
12868
|
+
}), nx = "SelectSeparator", rx = e.forwardRef((e, t) => {
|
|
12829
12869
|
let { __scopeSelect: n, ...r } = e;
|
|
12830
12870
|
return /* @__PURE__ */ h($.div, {
|
|
12831
12871
|
"aria-hidden": !0,
|
|
@@ -12833,17 +12873,17 @@ var ex = e.forwardRef((t, n) => {
|
|
|
12833
12873
|
ref: t
|
|
12834
12874
|
});
|
|
12835
12875
|
});
|
|
12836
|
-
|
|
12837
|
-
var
|
|
12838
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
12876
|
+
rx.displayName = nx;
|
|
12877
|
+
var ix = "SelectArrow", ax = e.forwardRef((e, t) => {
|
|
12878
|
+
let { __scopeSelect: n, ...r } = e, i = sb(n), a = lb(ix, n), o = Tb(ix, n);
|
|
12839
12879
|
return a.open && o.position === "popper" ? /* @__PURE__ */ h(gm, {
|
|
12840
12880
|
...i,
|
|
12841
12881
|
...r,
|
|
12842
12882
|
ref: t
|
|
12843
12883
|
}) : null;
|
|
12844
12884
|
});
|
|
12845
|
-
|
|
12846
|
-
var
|
|
12885
|
+
ax.displayName = ix;
|
|
12886
|
+
var ox = "SelectBubbleInput", sx = e.forwardRef(({ __scopeSelect: t, value: n, ...r }, i) => {
|
|
12847
12887
|
let a = e.useRef(null), o = O(i, a), s = Bo(n);
|
|
12848
12888
|
return e.useEffect(() => {
|
|
12849
12889
|
let e = a.current;
|
|
@@ -12856,18 +12896,18 @@ var ax = "SelectBubbleInput", ox = e.forwardRef(({ __scopeSelect: t, value: n, .
|
|
|
12856
12896
|
}, [s, n]), /* @__PURE__ */ h($.select, {
|
|
12857
12897
|
...r,
|
|
12858
12898
|
style: {
|
|
12859
|
-
...
|
|
12899
|
+
...Yy,
|
|
12860
12900
|
...r.style
|
|
12861
12901
|
},
|
|
12862
12902
|
ref: o,
|
|
12863
12903
|
defaultValue: n
|
|
12864
12904
|
});
|
|
12865
12905
|
});
|
|
12866
|
-
|
|
12867
|
-
function
|
|
12906
|
+
sx.displayName = ox;
|
|
12907
|
+
function cx(e) {
|
|
12868
12908
|
return e === "" || e === void 0;
|
|
12869
12909
|
}
|
|
12870
|
-
function
|
|
12910
|
+
function lx(t) {
|
|
12871
12911
|
let n = Fs(t), r = e.useRef(""), i = e.useRef(0), a = e.useCallback((e) => {
|
|
12872
12912
|
let t = r.current + e;
|
|
12873
12913
|
n(t), (function e(t) {
|
|
@@ -12882,69 +12922,69 @@ function cx(t) {
|
|
|
12882
12922
|
o
|
|
12883
12923
|
];
|
|
12884
12924
|
}
|
|
12885
|
-
function
|
|
12886
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
12925
|
+
function ux(e, t, n) {
|
|
12926
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = dx(e, Math.max(i, 0));
|
|
12887
12927
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
12888
12928
|
let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
|
|
12889
12929
|
return o === n ? void 0 : o;
|
|
12890
12930
|
}
|
|
12891
|
-
function
|
|
12931
|
+
function dx(e, t) {
|
|
12892
12932
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
12893
12933
|
}
|
|
12894
|
-
var
|
|
12934
|
+
var fx = fb, px = mb, mx = gb, hx = vb, gx = bb, _x = Sb, vx = Ib, yx = Bb, bx = Hb, xx = Kb, Sx = Jb, Cx = Xb, wx = Qb, Tx = ex, Ex = rx;
|
|
12895
12935
|
//#endregion
|
|
12896
12936
|
//#region src/components/Select.tsx
|
|
12897
|
-
function
|
|
12898
|
-
return /* @__PURE__ */ h(
|
|
12937
|
+
function Dx({ ...e }) {
|
|
12938
|
+
return /* @__PURE__ */ h(fx, {
|
|
12899
12939
|
"data-slot": "select",
|
|
12900
12940
|
...e
|
|
12901
12941
|
});
|
|
12902
12942
|
}
|
|
12903
|
-
function
|
|
12904
|
-
return /* @__PURE__ */ h(
|
|
12943
|
+
function Ox({ ...e }) {
|
|
12944
|
+
return /* @__PURE__ */ h(yx, {
|
|
12905
12945
|
"data-slot": "select-group",
|
|
12906
12946
|
...e
|
|
12907
12947
|
});
|
|
12908
12948
|
}
|
|
12909
|
-
function
|
|
12910
|
-
return /* @__PURE__ */ h(
|
|
12949
|
+
function kx({ ...e }) {
|
|
12950
|
+
return /* @__PURE__ */ h(mx, {
|
|
12911
12951
|
"data-slot": "select-value",
|
|
12912
12952
|
...e
|
|
12913
12953
|
});
|
|
12914
12954
|
}
|
|
12915
|
-
function
|
|
12955
|
+
function Ax({ className: e, size: t = "default", children: n, loading: r, disabled: i, ...a }) {
|
|
12916
12956
|
let o = i || r;
|
|
12917
|
-
return /* @__PURE__ */ g(
|
|
12957
|
+
return /* @__PURE__ */ g(px, {
|
|
12918
12958
|
"data-slot": "select-trigger",
|
|
12919
12959
|
"data-size": t,
|
|
12920
12960
|
disabled: o,
|
|
12921
12961
|
style: { backgroundColor: "var(--color-default)" },
|
|
12922
12962
|
className: q("text-sm border border-border bg-default data-placeholder:text-muted [&_svg:not([class*='text-'])]:text-muted h-9 w-full min-w-0 rounded-md px-2.5 py-1 outline-none whitespace-nowrap", "transition-[color,border-color,box-shadow] duration-150", "hover:border-primary/40", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px]", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", "aria-invalid:border-destructive aria-invalid:shadow-[inset_0_0_0_1px_var(--color-destructive)]", "flex items-center justify-between gap-2", "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
12923
12963
|
...a,
|
|
12924
|
-
children: [n, /* @__PURE__ */ h(
|
|
12964
|
+
children: [n, /* @__PURE__ */ h(hx, {
|
|
12925
12965
|
asChild: !0,
|
|
12926
12966
|
children: h(r ? nn : Nt, { className: "size-4 opacity-50" })
|
|
12927
12967
|
})]
|
|
12928
12968
|
});
|
|
12929
12969
|
}
|
|
12930
|
-
function
|
|
12931
|
-
return /* @__PURE__ */ h(
|
|
12970
|
+
function jx({ className: e, ...t }) {
|
|
12971
|
+
return /* @__PURE__ */ h(wx, {
|
|
12932
12972
|
"data-slot": "select-scroll-up-button",
|
|
12933
12973
|
className: q("flex cursor-default items-center justify-center py-1", e),
|
|
12934
12974
|
...t,
|
|
12935
12975
|
children: /* @__PURE__ */ h(It, { className: "size-4" })
|
|
12936
12976
|
});
|
|
12937
12977
|
}
|
|
12938
|
-
function
|
|
12939
|
-
return /* @__PURE__ */ h(
|
|
12978
|
+
function Mx({ className: e, ...t }) {
|
|
12979
|
+
return /* @__PURE__ */ h(Tx, {
|
|
12940
12980
|
"data-slot": "select-scroll-down-button",
|
|
12941
12981
|
className: q("flex cursor-default items-center justify-center py-1", e),
|
|
12942
12982
|
...t,
|
|
12943
12983
|
children: /* @__PURE__ */ h(Nt, { className: "size-4" })
|
|
12944
12984
|
});
|
|
12945
12985
|
}
|
|
12946
|
-
function
|
|
12947
|
-
return /* @__PURE__ */ h(
|
|
12986
|
+
function Nx({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
12987
|
+
return /* @__PURE__ */ h(gx, { children: /* @__PURE__ */ g(_x, {
|
|
12948
12988
|
"data-slot": "select-content",
|
|
12949
12989
|
className: q("bg-input data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
12950
12990
|
position: n,
|
|
@@ -12954,36 +12994,36 @@ function Mx({ className: e, children: t, position: n = "item-aligned", align: r
|
|
|
12954
12994
|
},
|
|
12955
12995
|
...i,
|
|
12956
12996
|
children: [
|
|
12957
|
-
/* @__PURE__ */ h(
|
|
12958
|
-
/* @__PURE__ */ h(
|
|
12997
|
+
/* @__PURE__ */ h(jx, {}),
|
|
12998
|
+
/* @__PURE__ */ h(vx, {
|
|
12959
12999
|
className: q("p-1", n === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),
|
|
12960
13000
|
children: t
|
|
12961
13001
|
}),
|
|
12962
|
-
/* @__PURE__ */ h(
|
|
13002
|
+
/* @__PURE__ */ h(Mx, {})
|
|
12963
13003
|
]
|
|
12964
13004
|
}) });
|
|
12965
13005
|
}
|
|
12966
|
-
function
|
|
12967
|
-
return /* @__PURE__ */ h(
|
|
13006
|
+
function Px({ className: e, ...t }) {
|
|
13007
|
+
return /* @__PURE__ */ h(bx, {
|
|
12968
13008
|
"data-slot": "select-label",
|
|
12969
13009
|
className: q("text-muted px-2 py-1.5 text-xs", e),
|
|
12970
13010
|
...t
|
|
12971
13011
|
});
|
|
12972
13012
|
}
|
|
12973
|
-
function
|
|
12974
|
-
return /* @__PURE__ */ g(
|
|
13013
|
+
function Fx({ className: e, children: t, ...n }) {
|
|
13014
|
+
return /* @__PURE__ */ g(xx, {
|
|
12975
13015
|
"data-slot": "select-item",
|
|
12976
13016
|
className: q("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none", "transition-colors duration-100", "data-disabled:pointer-events-none data-disabled:opacity-50", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
12977
13017
|
...n,
|
|
12978
13018
|
children: [/* @__PURE__ */ h("span", {
|
|
12979
13019
|
"data-slot": "select-item-indicator",
|
|
12980
13020
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
12981
|
-
children: /* @__PURE__ */ h(
|
|
12982
|
-
}), /* @__PURE__ */ h(
|
|
13021
|
+
children: /* @__PURE__ */ h(Cx, { children: /* @__PURE__ */ h(Mt, { className: "size-4" }) })
|
|
13022
|
+
}), /* @__PURE__ */ h(Sx, { children: t })]
|
|
12983
13023
|
});
|
|
12984
13024
|
}
|
|
12985
|
-
function
|
|
12986
|
-
return /* @__PURE__ */ h(
|
|
13025
|
+
function Ix({ className: e, ...t }) {
|
|
13026
|
+
return /* @__PURE__ */ h(Ex, {
|
|
12987
13027
|
"data-slot": "select-separator",
|
|
12988
13028
|
className: q("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
12989
13029
|
...t
|
|
@@ -12991,7 +13031,7 @@ function Fx({ className: e, ...t }) {
|
|
|
12991
13031
|
}
|
|
12992
13032
|
//#endregion
|
|
12993
13033
|
//#region src/components/Paginator.tsx
|
|
12994
|
-
function
|
|
13034
|
+
function Lx(e, t) {
|
|
12995
13035
|
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
12996
13036
|
let n = [];
|
|
12997
13037
|
if (e <= 3) {
|
|
@@ -13003,8 +13043,8 @@ function Ix(e, t) {
|
|
|
13003
13043
|
} else n.push(1), n.push("ellipsis"), n.push(e - 1), n.push(e), n.push(e + 1), n.push("ellipsis"), n.push(t);
|
|
13004
13044
|
return n;
|
|
13005
13045
|
}
|
|
13006
|
-
function
|
|
13007
|
-
let c = r === 0 ? 0 : (e - 1) * n + 1, l = Math.min(e * n, r), u = d(() =>
|
|
13046
|
+
function Rx({ currentPage: e, totalPages: t, pageSize: n, totalItems: r, onPageChange: i, onPageSizeChange: a, className: o, ...s }) {
|
|
13047
|
+
let c = r === 0 ? 0 : (e - 1) * n + 1, l = Math.min(e * n, r), u = d(() => Lx(e, t), [e, t]), f = (n, r) => {
|
|
13008
13048
|
r.preventDefault(), n >= 1 && n <= t && n !== e && i(n);
|
|
13009
13049
|
}, p = (t) => {
|
|
13010
13050
|
t.preventDefault(), e > 1 && i(e - 1);
|
|
@@ -13022,29 +13062,29 @@ function Lx({ currentPage: e, totalPages: t, pageSize: n, totalItems: r, onPageC
|
|
|
13022
13062
|
children: [/* @__PURE__ */ h(Md, {
|
|
13023
13063
|
htmlFor: "select-rows-per-page",
|
|
13024
13064
|
children: "Itens por página"
|
|
13025
|
-
}), /* @__PURE__ */ g(
|
|
13065
|
+
}), /* @__PURE__ */ g(Dx, {
|
|
13026
13066
|
value: n.toString(),
|
|
13027
13067
|
onValueChange: _,
|
|
13028
|
-
children: [/* @__PURE__ */ h(
|
|
13068
|
+
children: [/* @__PURE__ */ h(Ax, {
|
|
13029
13069
|
className: "w-20",
|
|
13030
13070
|
id: "select-rows-per-page",
|
|
13031
|
-
children: /* @__PURE__ */ h(
|
|
13032
|
-
}), /* @__PURE__ */ h(
|
|
13071
|
+
children: /* @__PURE__ */ h(kx, {})
|
|
13072
|
+
}), /* @__PURE__ */ h(Nx, {
|
|
13033
13073
|
align: "start",
|
|
13034
|
-
children: /* @__PURE__ */ g(
|
|
13035
|
-
/* @__PURE__ */ h(
|
|
13074
|
+
children: /* @__PURE__ */ g(Ox, { children: [
|
|
13075
|
+
/* @__PURE__ */ h(Fx, {
|
|
13036
13076
|
value: "5",
|
|
13037
13077
|
children: "5"
|
|
13038
13078
|
}),
|
|
13039
|
-
/* @__PURE__ */ h(
|
|
13079
|
+
/* @__PURE__ */ h(Fx, {
|
|
13040
13080
|
value: "10",
|
|
13041
13081
|
children: "10"
|
|
13042
13082
|
}),
|
|
13043
|
-
/* @__PURE__ */ h(
|
|
13083
|
+
/* @__PURE__ */ h(Fx, {
|
|
13044
13084
|
value: "25",
|
|
13045
13085
|
children: "25"
|
|
13046
13086
|
}),
|
|
13047
|
-
/* @__PURE__ */ h(
|
|
13087
|
+
/* @__PURE__ */ h(Fx, {
|
|
13048
13088
|
value: "50",
|
|
13049
13089
|
children: "50"
|
|
13050
13090
|
})
|
|
@@ -13062,20 +13102,20 @@ function Lx({ currentPage: e, totalPages: t, pageSize: n, totalItems: r, onPageC
|
|
|
13062
13102
|
r
|
|
13063
13103
|
]
|
|
13064
13104
|
}),
|
|
13065
|
-
/* @__PURE__ */ h(
|
|
13105
|
+
/* @__PURE__ */ h(Fy, {
|
|
13066
13106
|
className: "mx-0 w-auto",
|
|
13067
|
-
children: /* @__PURE__ */ g(
|
|
13068
|
-
/* @__PURE__ */ h(
|
|
13107
|
+
children: /* @__PURE__ */ g(Iy, { children: [
|
|
13108
|
+
/* @__PURE__ */ h(Ly, { children: /* @__PURE__ */ h(zy, {
|
|
13069
13109
|
onClick: p,
|
|
13070
13110
|
className: e === 1 ? "pointer-events-none opacity-50" : "cursor-pointer"
|
|
13071
13111
|
}) }),
|
|
13072
|
-
u.map((t, n) => t === "ellipsis" ? /* @__PURE__ */ h(
|
|
13112
|
+
u.map((t, n) => t === "ellipsis" ? /* @__PURE__ */ h(Ly, { children: /* @__PURE__ */ h(Vy, {}) }, `ellipsis-${n}`) : /* @__PURE__ */ h(Ly, { children: /* @__PURE__ */ h(Ry, {
|
|
13073
13113
|
isActive: t === e,
|
|
13074
13114
|
onClick: (e) => f(t, e),
|
|
13075
13115
|
className: "cursor-pointer",
|
|
13076
13116
|
children: t
|
|
13077
13117
|
}) }, t)),
|
|
13078
|
-
/* @__PURE__ */ h(
|
|
13118
|
+
/* @__PURE__ */ h(Ly, { children: /* @__PURE__ */ h(By, {
|
|
13079
13119
|
onClick: m,
|
|
13080
13120
|
className: e === t ? "pointer-events-none opacity-50" : "cursor-pointer"
|
|
13081
13121
|
}) })
|
|
@@ -13086,7 +13126,7 @@ function Lx({ currentPage: e, totalPages: t, pageSize: n, totalItems: r, onPageC
|
|
|
13086
13126
|
}
|
|
13087
13127
|
//#endregion
|
|
13088
13128
|
//#region src/components/PasswordToggle.tsx
|
|
13089
|
-
function
|
|
13129
|
+
function zx({ show: e, onToggle: t }) {
|
|
13090
13130
|
return /* @__PURE__ */ h(sn, {
|
|
13091
13131
|
type: "button",
|
|
13092
13132
|
variant: "ghost",
|
|
@@ -13099,9 +13139,9 @@ function Rx({ show: e, onToggle: t }) {
|
|
|
13099
13139
|
}
|
|
13100
13140
|
//#endregion
|
|
13101
13141
|
//#region node_modules/@radix-ui/react-radio-group/dist/index.mjs
|
|
13102
|
-
var
|
|
13142
|
+
var Bx = "Radio", [Vx, Hx] = No(Bx), [Ux, Wx] = Vx(Bx), Gx = e.forwardRef((t, n) => {
|
|
13103
13143
|
let { __scopeRadio: r, name: i, checked: a = !1, required: o, disabled: s, value: c = "on", onCheck: l, form: u, ...d } = t, [f, p] = e.useState(null), m = O(n, (e) => p(e)), _ = e.useRef(!1), v = f ? u || !!f.closest("form") : !0;
|
|
13104
|
-
return /* @__PURE__ */ g(
|
|
13144
|
+
return /* @__PURE__ */ g(Ux, {
|
|
13105
13145
|
scope: r,
|
|
13106
13146
|
checked: a,
|
|
13107
13147
|
disabled: s,
|
|
@@ -13109,7 +13149,7 @@ var zx = "Radio", [Bx, Vx] = No(zx), [Hx, Ux] = Bx(zx), Wx = e.forwardRef((t, n)
|
|
|
13109
13149
|
type: "button",
|
|
13110
13150
|
role: "radio",
|
|
13111
13151
|
"aria-checked": a,
|
|
13112
|
-
"data-state":
|
|
13152
|
+
"data-state": Xx(a),
|
|
13113
13153
|
"data-disabled": s ? "" : void 0,
|
|
13114
13154
|
disabled: s,
|
|
13115
13155
|
value: c,
|
|
@@ -13118,7 +13158,7 @@ var zx = "Radio", [Bx, Vx] = No(zx), [Hx, Ux] = Bx(zx), Wx = e.forwardRef((t, n)
|
|
|
13118
13158
|
onClick: Q(t.onClick, (e) => {
|
|
13119
13159
|
a || l?.(), v && (_.current = e.isPropagationStopped(), _.current || e.stopPropagation());
|
|
13120
13160
|
})
|
|
13121
|
-
}), v && /* @__PURE__ */ h(
|
|
13161
|
+
}), v && /* @__PURE__ */ h(Yx, {
|
|
13122
13162
|
control: f,
|
|
13123
13163
|
bubbles: !_.current,
|
|
13124
13164
|
name: i,
|
|
@@ -13131,21 +13171,21 @@ var zx = "Radio", [Bx, Vx] = No(zx), [Hx, Ux] = Bx(zx), Wx = e.forwardRef((t, n)
|
|
|
13131
13171
|
})]
|
|
13132
13172
|
});
|
|
13133
13173
|
});
|
|
13134
|
-
|
|
13135
|
-
var
|
|
13136
|
-
let { __scopeRadio: n, forceMount: r, ...i } = e, a =
|
|
13174
|
+
Gx.displayName = Bx;
|
|
13175
|
+
var Kx = "RadioIndicator", qx = e.forwardRef((e, t) => {
|
|
13176
|
+
let { __scopeRadio: n, forceMount: r, ...i } = e, a = Wx(Kx, n);
|
|
13137
13177
|
return /* @__PURE__ */ h(Uo, {
|
|
13138
13178
|
present: r || a.checked,
|
|
13139
13179
|
children: /* @__PURE__ */ h($.span, {
|
|
13140
|
-
"data-state":
|
|
13180
|
+
"data-state": Xx(a.checked),
|
|
13141
13181
|
"data-disabled": a.disabled ? "" : void 0,
|
|
13142
13182
|
...i,
|
|
13143
13183
|
ref: t
|
|
13144
13184
|
})
|
|
13145
13185
|
});
|
|
13146
13186
|
});
|
|
13147
|
-
|
|
13148
|
-
var
|
|
13187
|
+
qx.displayName = Kx;
|
|
13188
|
+
var Jx = "RadioBubbleInput", Yx = e.forwardRef(({ __scopeRadio: t, control: n, checked: r, bubbles: i = !0, ...a }, o) => {
|
|
13149
13189
|
let s = e.useRef(null), c = O(s, o), l = Bo(r), u = Vo(n);
|
|
13150
13190
|
return e.useEffect(() => {
|
|
13151
13191
|
let e = s.current;
|
|
@@ -13176,23 +13216,23 @@ var qx = "RadioBubbleInput", Jx = e.forwardRef(({ __scopeRadio: t, control: n, c
|
|
|
13176
13216
|
}
|
|
13177
13217
|
});
|
|
13178
13218
|
});
|
|
13179
|
-
|
|
13180
|
-
function
|
|
13219
|
+
Yx.displayName = Jx;
|
|
13220
|
+
function Xx(e) {
|
|
13181
13221
|
return e ? "checked" : "unchecked";
|
|
13182
13222
|
}
|
|
13183
|
-
var
|
|
13223
|
+
var Zx = [
|
|
13184
13224
|
"ArrowUp",
|
|
13185
13225
|
"ArrowDown",
|
|
13186
13226
|
"ArrowLeft",
|
|
13187
13227
|
"ArrowRight"
|
|
13188
|
-
],
|
|
13189
|
-
let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p =
|
|
13228
|
+
], Qx = "RadioGroup", [$x, eS] = No(Qx, [Th, Hx]), tS = Th(), nS = Hx(), [rS, iS] = $x(Qx), aS = e.forwardRef((e, t) => {
|
|
13229
|
+
let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p = tS(n), m = _h(l), [g, _] = Lo({
|
|
13190
13230
|
prop: a,
|
|
13191
13231
|
defaultProp: i ?? null,
|
|
13192
13232
|
onChange: d,
|
|
13193
|
-
caller:
|
|
13233
|
+
caller: Qx
|
|
13194
13234
|
});
|
|
13195
|
-
return /* @__PURE__ */ h(
|
|
13235
|
+
return /* @__PURE__ */ h(rS, {
|
|
13196
13236
|
scope: n,
|
|
13197
13237
|
name: r,
|
|
13198
13238
|
required: o,
|
|
@@ -13217,12 +13257,12 @@ var Xx = [
|
|
|
13217
13257
|
})
|
|
13218
13258
|
});
|
|
13219
13259
|
});
|
|
13220
|
-
|
|
13221
|
-
var
|
|
13222
|
-
let { __scopeRadioGroup: r, disabled: i, ...a } = t, o =
|
|
13260
|
+
aS.displayName = Qx;
|
|
13261
|
+
var oS = "RadioGroupItem", sS = e.forwardRef((t, n) => {
|
|
13262
|
+
let { __scopeRadioGroup: r, disabled: i, ...a } = t, o = iS(oS, r), s = o.disabled || i, c = tS(r), l = nS(r), u = e.useRef(null), d = O(n, u), f = o.value === a.value, p = e.useRef(!1);
|
|
13223
13263
|
return e.useEffect(() => {
|
|
13224
13264
|
let e = (e) => {
|
|
13225
|
-
|
|
13265
|
+
Zx.includes(e.key) && (p.current = !0);
|
|
13226
13266
|
}, t = () => p.current = !1;
|
|
13227
13267
|
return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
|
|
13228
13268
|
document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
|
|
@@ -13232,7 +13272,7 @@ var aS = "RadioGroupItem", oS = e.forwardRef((t, n) => {
|
|
|
13232
13272
|
...c,
|
|
13233
13273
|
focusable: !s,
|
|
13234
13274
|
active: f,
|
|
13235
|
-
children: /* @__PURE__ */ h(
|
|
13275
|
+
children: /* @__PURE__ */ h(Gx, {
|
|
13236
13276
|
disabled: s,
|
|
13237
13277
|
required: o.required,
|
|
13238
13278
|
checked: f,
|
|
@@ -13250,32 +13290,32 @@ var aS = "RadioGroupItem", oS = e.forwardRef((t, n) => {
|
|
|
13250
13290
|
})
|
|
13251
13291
|
});
|
|
13252
13292
|
});
|
|
13253
|
-
|
|
13254
|
-
var
|
|
13293
|
+
sS.displayName = oS;
|
|
13294
|
+
var cS = "RadioGroupIndicator", lS = e.forwardRef((e, t) => {
|
|
13255
13295
|
let { __scopeRadioGroup: n, ...r } = e;
|
|
13256
|
-
return /* @__PURE__ */ h(
|
|
13257
|
-
...
|
|
13296
|
+
return /* @__PURE__ */ h(qx, {
|
|
13297
|
+
...nS(n),
|
|
13258
13298
|
...r,
|
|
13259
13299
|
ref: t
|
|
13260
13300
|
});
|
|
13261
13301
|
});
|
|
13262
|
-
|
|
13263
|
-
var
|
|
13302
|
+
lS.displayName = cS;
|
|
13303
|
+
var uS = aS, dS = sS, fS = lS;
|
|
13264
13304
|
//#endregion
|
|
13265
13305
|
//#region src/components/RadioGroup.tsx
|
|
13266
|
-
function
|
|
13267
|
-
return /* @__PURE__ */ h(
|
|
13306
|
+
function pS({ className: e, ...t }) {
|
|
13307
|
+
return /* @__PURE__ */ h(uS, {
|
|
13268
13308
|
"data-slot": "radio-group",
|
|
13269
13309
|
className: q("grid gap-3", e),
|
|
13270
13310
|
...t
|
|
13271
13311
|
});
|
|
13272
13312
|
}
|
|
13273
|
-
function
|
|
13274
|
-
return /* @__PURE__ */ h(
|
|
13313
|
+
function mS({ className: e, ...t }) {
|
|
13314
|
+
return /* @__PURE__ */ h(dS, {
|
|
13275
13315
|
"data-slot": "radio-group-item",
|
|
13276
13316
|
className: q("cursor-pointer border-border bg-background text-primary focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
13277
13317
|
...t,
|
|
13278
|
-
children: /* @__PURE__ */ h(
|
|
13318
|
+
children: /* @__PURE__ */ h(fS, {
|
|
13279
13319
|
"data-slot": "radio-group-indicator",
|
|
13280
13320
|
className: "relative flex items-center justify-center",
|
|
13281
13321
|
children: /* @__PURE__ */ h(zt, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
@@ -13284,39 +13324,39 @@ function pS({ className: e, ...t }) {
|
|
|
13284
13324
|
}
|
|
13285
13325
|
//#endregion
|
|
13286
13326
|
//#region src/components/Sheet.tsx
|
|
13287
|
-
function
|
|
13327
|
+
function hS({ ...e }) {
|
|
13288
13328
|
return /* @__PURE__ */ h(xu, {
|
|
13289
13329
|
"data-slot": "sheet",
|
|
13290
13330
|
...e
|
|
13291
13331
|
});
|
|
13292
13332
|
}
|
|
13293
|
-
function
|
|
13333
|
+
function gS({ ...e }) {
|
|
13294
13334
|
return /* @__PURE__ */ h(Su, {
|
|
13295
13335
|
"data-slot": "sheet-trigger",
|
|
13296
13336
|
...e
|
|
13297
13337
|
});
|
|
13298
13338
|
}
|
|
13299
|
-
function
|
|
13339
|
+
function _S({ ...e }) {
|
|
13300
13340
|
return /* @__PURE__ */ h(Ou, {
|
|
13301
13341
|
"data-slot": "sheet-close",
|
|
13302
13342
|
...e
|
|
13303
13343
|
});
|
|
13304
13344
|
}
|
|
13305
|
-
function
|
|
13345
|
+
function vS({ ...e }) {
|
|
13306
13346
|
return /* @__PURE__ */ h(Cu, {
|
|
13307
13347
|
"data-slot": "sheet-portal",
|
|
13308
13348
|
...e
|
|
13309
13349
|
});
|
|
13310
13350
|
}
|
|
13311
|
-
function
|
|
13351
|
+
function yS({ className: e, ...t }) {
|
|
13312
13352
|
return /* @__PURE__ */ h(wu, {
|
|
13313
13353
|
"data-slot": "sheet-overlay",
|
|
13314
13354
|
className: q("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
13315
13355
|
...t
|
|
13316
13356
|
});
|
|
13317
13357
|
}
|
|
13318
|
-
function
|
|
13319
|
-
return /* @__PURE__ */ g(
|
|
13358
|
+
function bS({ className: e, children: t, side: n = "right", ...r }) {
|
|
13359
|
+
return /* @__PURE__ */ g(vS, { children: [/* @__PURE__ */ h(yS, {}), /* @__PURE__ */ g(Tu, {
|
|
13320
13360
|
"data-slot": "sheet-content",
|
|
13321
13361
|
className: q("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
|
|
13322
13362
|
...r,
|
|
@@ -13329,28 +13369,28 @@ function yS({ className: e, children: t, side: n = "right", ...r }) {
|
|
|
13329
13369
|
})]
|
|
13330
13370
|
})] });
|
|
13331
13371
|
}
|
|
13332
|
-
function
|
|
13372
|
+
function xS({ className: e, ...t }) {
|
|
13333
13373
|
return /* @__PURE__ */ h("div", {
|
|
13334
13374
|
"data-slot": "sheet-header",
|
|
13335
13375
|
className: q("flex flex-col gap-1.5 p-4", e),
|
|
13336
13376
|
...t
|
|
13337
13377
|
});
|
|
13338
13378
|
}
|
|
13339
|
-
function
|
|
13379
|
+
function SS({ className: e, ...t }) {
|
|
13340
13380
|
return /* @__PURE__ */ h("div", {
|
|
13341
13381
|
"data-slot": "sheet-footer",
|
|
13342
13382
|
className: q("mt-auto flex flex-col gap-2 p-4", e),
|
|
13343
13383
|
...t
|
|
13344
13384
|
});
|
|
13345
13385
|
}
|
|
13346
|
-
function
|
|
13386
|
+
function CS({ className: e, ...t }) {
|
|
13347
13387
|
return /* @__PURE__ */ h(Eu, {
|
|
13348
13388
|
"data-slot": "sheet-title",
|
|
13349
13389
|
className: q("text-foreground font-semibold", e),
|
|
13350
13390
|
...t
|
|
13351
13391
|
});
|
|
13352
13392
|
}
|
|
13353
|
-
function
|
|
13393
|
+
function wS({ className: e, ...t }) {
|
|
13354
13394
|
return /* @__PURE__ */ h(Du, {
|
|
13355
13395
|
"data-slot": "sheet-description",
|
|
13356
13396
|
className: q("text-muted text-sm", e),
|
|
@@ -13359,7 +13399,7 @@ function CS({ className: e, ...t }) {
|
|
|
13359
13399
|
}
|
|
13360
13400
|
//#endregion
|
|
13361
13401
|
//#region src/components/Skeleton.tsx
|
|
13362
|
-
function
|
|
13402
|
+
function TS({ className: e, ...t }) {
|
|
13363
13403
|
return /* @__PURE__ */ h("div", {
|
|
13364
13404
|
"data-slot": "skeleton",
|
|
13365
13405
|
className: q("bg-muted/20 animate-pulse rounded-md", e),
|
|
@@ -13368,20 +13408,20 @@ function wS({ className: e, ...t }) {
|
|
|
13368
13408
|
}
|
|
13369
13409
|
//#endregion
|
|
13370
13410
|
//#region node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
13371
|
-
var
|
|
13411
|
+
var ES = Symbol("radix.slottable");
|
|
13372
13412
|
/* @__NO_SIDE_EFFECTS__ */
|
|
13373
|
-
function
|
|
13413
|
+
function DS(e) {
|
|
13374
13414
|
let t = ({ children: e }) => /* @__PURE__ */ h(m, { children: e });
|
|
13375
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
13415
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = ES, t;
|
|
13376
13416
|
}
|
|
13377
13417
|
//#endregion
|
|
13378
13418
|
//#region node_modules/@radix-ui/react-tooltip/dist/index.mjs
|
|
13379
|
-
var [
|
|
13380
|
-
let { __scopeTooltip: n, delayDuration: r =
|
|
13419
|
+
var [OS, kS] = No("Tooltip", [Zp]), AS = Zp(), jS = "TooltipProvider", MS = 700, NS = "tooltip.open", [PS, FS] = OS(jS), IS = (t) => {
|
|
13420
|
+
let { __scopeTooltip: n, delayDuration: r = MS, skipDelayDuration: i = 300, disableHoverableContent: a = !1, children: o } = t, s = e.useRef(!0), c = e.useRef(!1), l = e.useRef(0);
|
|
13381
13421
|
return e.useEffect(() => {
|
|
13382
13422
|
let e = l.current;
|
|
13383
13423
|
return () => window.clearTimeout(e);
|
|
13384
|
-
}, []), /* @__PURE__ */ h(
|
|
13424
|
+
}, []), /* @__PURE__ */ h(PS, {
|
|
13385
13425
|
scope: n,
|
|
13386
13426
|
isOpenDelayedRef: s,
|
|
13387
13427
|
delayDuration: r,
|
|
@@ -13399,15 +13439,15 @@ var [DS, OS] = No("Tooltip", [Zp]), kS = Zp(), AS = "TooltipProvider", jS = 700,
|
|
|
13399
13439
|
children: o
|
|
13400
13440
|
});
|
|
13401
13441
|
};
|
|
13402
|
-
|
|
13403
|
-
var
|
|
13404
|
-
let { __scopeTooltip: n, children: r, open: i, defaultOpen: a, onOpenChange: o, disableHoverableContent: s, delayDuration: c } = t, l =
|
|
13442
|
+
IS.displayName = jS;
|
|
13443
|
+
var LS = "Tooltip", [RS, zS] = OS(LS), BS = (t) => {
|
|
13444
|
+
let { __scopeTooltip: n, children: r, open: i, defaultOpen: a, onOpenChange: o, disableHoverableContent: s, delayDuration: c } = t, l = FS(LS, t.__scopeTooltip), u = AS(n), [d, f] = e.useState(null), p = Ps(), m = e.useRef(0), g = s ?? l.disableHoverableContent, _ = c ?? l.delayDuration, v = e.useRef(!1), [y, b] = Lo({
|
|
13405
13445
|
prop: i,
|
|
13406
13446
|
defaultProp: a ?? !1,
|
|
13407
13447
|
onChange: (e) => {
|
|
13408
|
-
e ? (l.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
13448
|
+
e ? (l.onOpen(), document.dispatchEvent(new CustomEvent(NS))) : l.onClose(), o?.(e);
|
|
13409
13449
|
},
|
|
13410
|
-
caller:
|
|
13450
|
+
caller: LS
|
|
13411
13451
|
}), x = e.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), S = e.useCallback(() => {
|
|
13412
13452
|
window.clearTimeout(m.current), m.current = 0, v.current = !1, b(!0);
|
|
13413
13453
|
}, [b]), C = e.useCallback(() => {
|
|
@@ -13421,7 +13461,7 @@ var IS = "Tooltip", [LS, RS] = DS(IS), zS = (t) => {
|
|
|
13421
13461
|
m.current &&= (window.clearTimeout(m.current), 0);
|
|
13422
13462
|
}, []), /* @__PURE__ */ h(pm, {
|
|
13423
13463
|
...u,
|
|
13424
|
-
children: /* @__PURE__ */ h(
|
|
13464
|
+
children: /* @__PURE__ */ h(RS, {
|
|
13425
13465
|
scope: n,
|
|
13426
13466
|
contentId: p,
|
|
13427
13467
|
open: y,
|
|
@@ -13445,9 +13485,9 @@ var IS = "Tooltip", [LS, RS] = DS(IS), zS = (t) => {
|
|
|
13445
13485
|
})
|
|
13446
13486
|
});
|
|
13447
13487
|
};
|
|
13448
|
-
|
|
13449
|
-
var
|
|
13450
|
-
let { __scopeTooltip: r, ...i } = t, a =
|
|
13488
|
+
BS.displayName = LS;
|
|
13489
|
+
var VS = "TooltipTrigger", HS = e.forwardRef((t, n) => {
|
|
13490
|
+
let { __scopeTooltip: r, ...i } = t, a = zS(VS, r), o = FS(VS, r), s = AS(r), c = O(n, e.useRef(null), a.onTriggerChange), l = e.useRef(!1), u = e.useRef(!1), d = e.useCallback(() => l.current = !1, []);
|
|
13451
13491
|
return e.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ h(mm, {
|
|
13452
13492
|
asChild: !0,
|
|
13453
13493
|
...s,
|
|
@@ -13473,10 +13513,10 @@ var BS = "TooltipTrigger", VS = e.forwardRef((t, n) => {
|
|
|
13473
13513
|
})
|
|
13474
13514
|
});
|
|
13475
13515
|
});
|
|
13476
|
-
|
|
13477
|
-
var
|
|
13478
|
-
let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a =
|
|
13479
|
-
return /* @__PURE__ */ h(
|
|
13516
|
+
HS.displayName = VS;
|
|
13517
|
+
var US = "TooltipPortal", [WS, GS] = OS(US, { forceMount: void 0 }), KS = (e) => {
|
|
13518
|
+
let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = zS(US, t);
|
|
13519
|
+
return /* @__PURE__ */ h(WS, {
|
|
13480
13520
|
scope: t,
|
|
13481
13521
|
forceMount: n,
|
|
13482
13522
|
children: /* @__PURE__ */ h(Uo, {
|
|
@@ -13489,30 +13529,30 @@ var HS = "TooltipPortal", [US, WS] = DS(HS, { forceMount: void 0 }), GS = (e) =>
|
|
|
13489
13529
|
})
|
|
13490
13530
|
});
|
|
13491
13531
|
};
|
|
13492
|
-
|
|
13493
|
-
var
|
|
13494
|
-
let n =
|
|
13532
|
+
KS.displayName = US;
|
|
13533
|
+
var qS = "TooltipContent", JS = e.forwardRef((e, t) => {
|
|
13534
|
+
let n = GS(qS, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = zS(qS, e.__scopeTooltip);
|
|
13495
13535
|
return /* @__PURE__ */ h(Uo, {
|
|
13496
13536
|
present: r || o.open,
|
|
13497
|
-
children: o.disableHoverableContent ? /* @__PURE__ */ h(
|
|
13537
|
+
children: o.disableHoverableContent ? /* @__PURE__ */ h($S, {
|
|
13498
13538
|
side: i,
|
|
13499
13539
|
...a,
|
|
13500
13540
|
ref: t
|
|
13501
|
-
}) : /* @__PURE__ */ h(
|
|
13541
|
+
}) : /* @__PURE__ */ h(YS, {
|
|
13502
13542
|
side: i,
|
|
13503
13543
|
...a,
|
|
13504
13544
|
ref: t
|
|
13505
13545
|
})
|
|
13506
13546
|
});
|
|
13507
|
-
}),
|
|
13508
|
-
let r =
|
|
13547
|
+
}), YS = e.forwardRef((t, n) => {
|
|
13548
|
+
let r = zS(qS, t.__scopeTooltip), i = FS(qS, t.__scopeTooltip), a = e.useRef(null), o = O(n, a), [s, c] = e.useState(null), { trigger: l, onClose: u } = r, d = a.current, { onPointerInTransitChange: f } = i, p = e.useCallback(() => {
|
|
13509
13549
|
c(null), f(!1);
|
|
13510
13550
|
}, [f]), m = e.useCallback((e, t) => {
|
|
13511
13551
|
let n = e.currentTarget, r = {
|
|
13512
13552
|
x: e.clientX,
|
|
13513
13553
|
y: e.clientY
|
|
13514
|
-
}, i =
|
|
13515
|
-
c(
|
|
13554
|
+
}, i = rC(r, nC(r, n.getBoundingClientRect())), a = iC(t.getBoundingClientRect());
|
|
13555
|
+
c(oC([...i, ...a])), f(!0);
|
|
13516
13556
|
}, [f]);
|
|
13517
13557
|
return e.useEffect(() => () => p(), [p]), e.useEffect(() => {
|
|
13518
13558
|
if (l && d) {
|
|
@@ -13532,7 +13572,7 @@ var KS = "TooltipContent", qS = e.forwardRef((e, t) => {
|
|
|
13532
13572
|
let t = e.target, n = {
|
|
13533
13573
|
x: e.clientX,
|
|
13534
13574
|
y: e.clientY
|
|
13535
|
-
}, r = l?.contains(t) || d?.contains(t), i = !
|
|
13575
|
+
}, r = l?.contains(t) || d?.contains(t), i = !aC(n, s);
|
|
13536
13576
|
r ? p() : i && (p(), u());
|
|
13537
13577
|
};
|
|
13538
13578
|
return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
|
|
@@ -13543,13 +13583,13 @@ var KS = "TooltipContent", qS = e.forwardRef((e, t) => {
|
|
|
13543
13583
|
s,
|
|
13544
13584
|
u,
|
|
13545
13585
|
p
|
|
13546
|
-
]), /* @__PURE__ */ h(
|
|
13586
|
+
]), /* @__PURE__ */ h($S, {
|
|
13547
13587
|
...t,
|
|
13548
13588
|
ref: o
|
|
13549
13589
|
});
|
|
13550
|
-
}), [
|
|
13551
|
-
let { __scopeTooltip: r, children: i, "aria-label": a, onEscapeKeyDown: o, onPointerDownOutside: s, ...c } = t, l =
|
|
13552
|
-
return e.useEffect(() => (document.addEventListener(
|
|
13590
|
+
}), [XS, ZS] = OS(LS, { isInside: !1 }), QS = /* @__PURE__ */ DS("TooltipContent"), $S = e.forwardRef((t, n) => {
|
|
13591
|
+
let { __scopeTooltip: r, children: i, "aria-label": a, onEscapeKeyDown: o, onPointerDownOutside: s, ...c } = t, l = zS(qS, r), u = AS(r), { onClose: d } = l;
|
|
13592
|
+
return e.useEffect(() => (document.addEventListener(NS, d), () => document.removeEventListener(NS, d)), [d]), e.useEffect(() => {
|
|
13553
13593
|
if (l.trigger) {
|
|
13554
13594
|
let e = (e) => {
|
|
13555
13595
|
e.target?.contains(l.trigger) && d();
|
|
@@ -13576,10 +13616,10 @@ var KS = "TooltipContent", qS = e.forwardRef((e, t) => {
|
|
|
13576
13616
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
13577
13617
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
13578
13618
|
},
|
|
13579
|
-
children: [/* @__PURE__ */ h(
|
|
13619
|
+
children: [/* @__PURE__ */ h(QS, { children: i }), /* @__PURE__ */ h(XS, {
|
|
13580
13620
|
scope: r,
|
|
13581
13621
|
isInside: !0,
|
|
13582
|
-
children: /* @__PURE__ */ h(
|
|
13622
|
+
children: /* @__PURE__ */ h(Qy, {
|
|
13583
13623
|
id: l.contentId,
|
|
13584
13624
|
role: "tooltip",
|
|
13585
13625
|
children: a || i
|
|
@@ -13588,17 +13628,17 @@ var KS = "TooltipContent", qS = e.forwardRef((e, t) => {
|
|
|
13588
13628
|
})
|
|
13589
13629
|
});
|
|
13590
13630
|
});
|
|
13591
|
-
|
|
13592
|
-
var
|
|
13593
|
-
let { __scopeTooltip: n, ...r } = e, i =
|
|
13594
|
-
return
|
|
13631
|
+
JS.displayName = qS;
|
|
13632
|
+
var eC = "TooltipArrow", tC = e.forwardRef((e, t) => {
|
|
13633
|
+
let { __scopeTooltip: n, ...r } = e, i = AS(n);
|
|
13634
|
+
return ZS(eC, n).isInside ? null : /* @__PURE__ */ h(gm, {
|
|
13595
13635
|
...i,
|
|
13596
13636
|
...r,
|
|
13597
13637
|
ref: t
|
|
13598
13638
|
});
|
|
13599
13639
|
});
|
|
13600
|
-
|
|
13601
|
-
function
|
|
13640
|
+
tC.displayName = eC;
|
|
13641
|
+
function nC(e, t) {
|
|
13602
13642
|
let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
13603
13643
|
switch (Math.min(n, r, i, a)) {
|
|
13604
13644
|
case a: return "left";
|
|
@@ -13608,7 +13648,7 @@ function tC(e, t) {
|
|
|
13608
13648
|
default: throw Error("unreachable");
|
|
13609
13649
|
}
|
|
13610
13650
|
}
|
|
13611
|
-
function
|
|
13651
|
+
function rC(e, t, n = 5) {
|
|
13612
13652
|
let r = [];
|
|
13613
13653
|
switch (t) {
|
|
13614
13654
|
case "top":
|
|
@@ -13650,7 +13690,7 @@ function nC(e, t, n = 5) {
|
|
|
13650
13690
|
}
|
|
13651
13691
|
return r;
|
|
13652
13692
|
}
|
|
13653
|
-
function
|
|
13693
|
+
function iC(e) {
|
|
13654
13694
|
let { top: t, right: n, bottom: r, left: i } = e;
|
|
13655
13695
|
return [
|
|
13656
13696
|
{
|
|
@@ -13671,7 +13711,7 @@ function rC(e) {
|
|
|
13671
13711
|
}
|
|
13672
13712
|
];
|
|
13673
13713
|
}
|
|
13674
|
-
function
|
|
13714
|
+
function aC(e, t) {
|
|
13675
13715
|
let { x: n, y: r } = e, i = !1;
|
|
13676
13716
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
13677
13717
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -13679,11 +13719,11 @@ function iC(e, t) {
|
|
|
13679
13719
|
}
|
|
13680
13720
|
return i;
|
|
13681
13721
|
}
|
|
13682
|
-
function
|
|
13722
|
+
function oC(e) {
|
|
13683
13723
|
let t = e.slice();
|
|
13684
|
-
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0),
|
|
13724
|
+
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0), sC(t);
|
|
13685
13725
|
}
|
|
13686
|
-
function
|
|
13726
|
+
function sC(e) {
|
|
13687
13727
|
if (e.length <= 1) return e.slice();
|
|
13688
13728
|
let t = [];
|
|
13689
13729
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -13708,61 +13748,61 @@ function oC(e) {
|
|
|
13708
13748
|
}
|
|
13709
13749
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
13710
13750
|
}
|
|
13711
|
-
var
|
|
13751
|
+
var cC = IS, lC = BS, uC = HS, dC = KS, fC = JS, pC = tC;
|
|
13712
13752
|
//#endregion
|
|
13713
13753
|
//#region src/components/Tooltip.tsx
|
|
13714
|
-
function
|
|
13715
|
-
return /* @__PURE__ */ h(
|
|
13754
|
+
function mC({ delayDuration: e = 0, ...t }) {
|
|
13755
|
+
return /* @__PURE__ */ h(cC, {
|
|
13716
13756
|
"data-slot": "tooltip-provider",
|
|
13717
13757
|
delayDuration: e,
|
|
13718
13758
|
...t
|
|
13719
13759
|
});
|
|
13720
13760
|
}
|
|
13721
|
-
function
|
|
13722
|
-
return /* @__PURE__ */ h(
|
|
13761
|
+
function hC({ ...e }) {
|
|
13762
|
+
return /* @__PURE__ */ h(mC, { children: /* @__PURE__ */ h(lC, {
|
|
13723
13763
|
"data-slot": "tooltip",
|
|
13724
13764
|
...e
|
|
13725
13765
|
}) });
|
|
13726
13766
|
}
|
|
13727
|
-
function
|
|
13728
|
-
return /* @__PURE__ */ h(
|
|
13767
|
+
function gC({ ...e }) {
|
|
13768
|
+
return /* @__PURE__ */ h(uC, {
|
|
13729
13769
|
"data-slot": "tooltip-trigger",
|
|
13730
13770
|
...e
|
|
13731
13771
|
});
|
|
13732
13772
|
}
|
|
13733
|
-
function
|
|
13734
|
-
return /* @__PURE__ */ h(
|
|
13773
|
+
function _C({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
13774
|
+
return /* @__PURE__ */ h(dC, { children: /* @__PURE__ */ g(fC, {
|
|
13735
13775
|
"data-slot": "tooltip-content",
|
|
13736
13776
|
sideOffset: t,
|
|
13737
13777
|
className: q("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", e),
|
|
13738
13778
|
...r,
|
|
13739
|
-
children: [n, /* @__PURE__ */ h(
|
|
13779
|
+
children: [n, /* @__PURE__ */ h(pC, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-sm" })]
|
|
13740
13780
|
}) });
|
|
13741
13781
|
}
|
|
13742
13782
|
//#endregion
|
|
13743
13783
|
//#region src/hooks/useIsMobile.ts
|
|
13744
|
-
var
|
|
13745
|
-
function
|
|
13784
|
+
var vC = 1024;
|
|
13785
|
+
function yC() {
|
|
13746
13786
|
let [e, t] = p(void 0);
|
|
13747
13787
|
return s(() => {
|
|
13748
|
-
let e = window.matchMedia(`(max-width: ${
|
|
13749
|
-
t(window.innerWidth <
|
|
13788
|
+
let e = window.matchMedia(`(max-width: ${vC - 1}px)`), n = () => {
|
|
13789
|
+
t(window.innerWidth < vC);
|
|
13750
13790
|
};
|
|
13751
|
-
return e.addEventListener("change", n), t(window.innerWidth <
|
|
13791
|
+
return e.addEventListener("change", n), t(window.innerWidth < vC), () => e.removeEventListener("change", n);
|
|
13752
13792
|
}, []), !!e;
|
|
13753
13793
|
}
|
|
13754
13794
|
//#endregion
|
|
13755
13795
|
//#region src/components/Sidebar.tsx
|
|
13756
|
-
var
|
|
13757
|
-
function
|
|
13758
|
-
let e = o(
|
|
13796
|
+
var bC = "sidebar_state", xC = 3600 * 24 * 7, SC = "16rem", CC = "18rem", wC = "3rem", TC = "b", EC = n(null);
|
|
13797
|
+
function DC() {
|
|
13798
|
+
let e = o(EC);
|
|
13759
13799
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
13760
13800
|
return e;
|
|
13761
13801
|
}
|
|
13762
|
-
function
|
|
13763
|
-
let l =
|
|
13802
|
+
function OC({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: o, ...c }) {
|
|
13803
|
+
let l = yC(), [u, f] = p(!1), [m, g] = p(e), _ = t ?? m, v = a((e) => {
|
|
13764
13804
|
let t = typeof e == "function" ? e(_) : e;
|
|
13765
|
-
n ? n(t) : g(t), document.cookie = `${
|
|
13805
|
+
n ? n(t) : g(t), document.cookie = `${bC}=${t}; path=/; max-age=${xC}`;
|
|
13766
13806
|
}, [n, _]), y = a(() => l ? f((e) => !e) : v((e) => !e), [
|
|
13767
13807
|
l,
|
|
13768
13808
|
v,
|
|
@@ -13770,7 +13810,7 @@ function DC({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
13770
13810
|
]);
|
|
13771
13811
|
s(() => {
|
|
13772
13812
|
let e = (e) => {
|
|
13773
|
-
e.key ===
|
|
13813
|
+
e.key === TC && (e.metaKey || e.ctrlKey) && (e.preventDefault(), y());
|
|
13774
13814
|
};
|
|
13775
13815
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
13776
13816
|
}, [y]);
|
|
@@ -13791,13 +13831,13 @@ function DC({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
13791
13831
|
f,
|
|
13792
13832
|
y
|
|
13793
13833
|
]);
|
|
13794
|
-
return /* @__PURE__ */ h(
|
|
13834
|
+
return /* @__PURE__ */ h(EC.Provider, {
|
|
13795
13835
|
value: x,
|
|
13796
13836
|
children: /* @__PURE__ */ h("div", {
|
|
13797
13837
|
"data-slot": "sidebar-wrapper",
|
|
13798
13838
|
style: {
|
|
13799
|
-
"--sidebar-width":
|
|
13800
|
-
"--sidebar-width-icon":
|
|
13839
|
+
"--sidebar-width": SC,
|
|
13840
|
+
"--sidebar-width-icon": wC,
|
|
13801
13841
|
...i
|
|
13802
13842
|
},
|
|
13803
13843
|
className: q("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", r),
|
|
@@ -13806,31 +13846,31 @@ function DC({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
13806
13846
|
})
|
|
13807
13847
|
});
|
|
13808
13848
|
}
|
|
13809
|
-
function
|
|
13810
|
-
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } =
|
|
13849
|
+
function kC({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }) {
|
|
13850
|
+
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } = DC();
|
|
13811
13851
|
return n === "none" ? /* @__PURE__ */ h("div", {
|
|
13812
13852
|
"data-slot": "sidebar",
|
|
13813
13853
|
className: q("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
13814
13854
|
...a,
|
|
13815
13855
|
children: i
|
|
13816
|
-
}) : o ? /* @__PURE__ */ h(
|
|
13856
|
+
}) : o ? /* @__PURE__ */ h(hS, {
|
|
13817
13857
|
open: c,
|
|
13818
13858
|
onOpenChange: l,
|
|
13819
13859
|
...a,
|
|
13820
|
-
children: /* @__PURE__ */ g(
|
|
13860
|
+
children: /* @__PURE__ */ g(bS, {
|
|
13821
13861
|
"data-sidebar": "sidebar",
|
|
13822
13862
|
"data-slot": "sidebar",
|
|
13823
13863
|
"data-mobile": "true",
|
|
13824
13864
|
className: "bg-sidebar text-sidebar-foreground p-0 [&>button]:hidden",
|
|
13825
13865
|
style: {
|
|
13826
|
-
"--sidebar-width":
|
|
13827
|
-
width:
|
|
13828
|
-
maxWidth:
|
|
13866
|
+
"--sidebar-width": CC,
|
|
13867
|
+
width: CC,
|
|
13868
|
+
maxWidth: CC
|
|
13829
13869
|
},
|
|
13830
13870
|
side: e,
|
|
13831
|
-
children: [/* @__PURE__ */ g(
|
|
13871
|
+
children: [/* @__PURE__ */ g(xS, {
|
|
13832
13872
|
className: "sr-only",
|
|
13833
|
-
children: [/* @__PURE__ */ h(
|
|
13873
|
+
children: [/* @__PURE__ */ h(CS, { children: "Menu lateral" }), /* @__PURE__ */ h(wS, { children: "Exibe o menu lateral em dispositivos móveis." })]
|
|
13834
13874
|
}), /* @__PURE__ */ h("div", {
|
|
13835
13875
|
className: "flex h-full w-full flex-col",
|
|
13836
13876
|
children: i
|
|
@@ -13859,8 +13899,8 @@ function OC({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
13859
13899
|
})]
|
|
13860
13900
|
});
|
|
13861
13901
|
}
|
|
13862
|
-
function
|
|
13863
|
-
let { toggleSidebar: r } =
|
|
13902
|
+
function AC({ className: e, onClick: t, ...n }) {
|
|
13903
|
+
let { toggleSidebar: r } = DC();
|
|
13864
13904
|
return /* @__PURE__ */ g(sn, {
|
|
13865
13905
|
"data-sidebar": "trigger",
|
|
13866
13906
|
"data-slot": "sidebar-trigger",
|
|
@@ -13877,8 +13917,8 @@ function kC({ className: e, onClick: t, ...n }) {
|
|
|
13877
13917
|
})]
|
|
13878
13918
|
});
|
|
13879
13919
|
}
|
|
13880
|
-
function
|
|
13881
|
-
let { toggleSidebar: n } =
|
|
13920
|
+
function jC({ className: e, ...t }) {
|
|
13921
|
+
let { toggleSidebar: n } = DC();
|
|
13882
13922
|
return /* @__PURE__ */ h("button", {
|
|
13883
13923
|
"data-sidebar": "rail",
|
|
13884
13924
|
"data-slot": "sidebar-rail",
|
|
@@ -13890,22 +13930,22 @@ function AC({ className: e, ...t }) {
|
|
|
13890
13930
|
...t
|
|
13891
13931
|
});
|
|
13892
13932
|
}
|
|
13893
|
-
function
|
|
13933
|
+
function MC({ className: e, ...t }) {
|
|
13894
13934
|
return /* @__PURE__ */ h("main", {
|
|
13895
13935
|
"data-slot": "sidebar-inset",
|
|
13896
13936
|
className: q("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
|
|
13897
13937
|
...t
|
|
13898
13938
|
});
|
|
13899
13939
|
}
|
|
13900
|
-
function
|
|
13901
|
-
return /* @__PURE__ */ h(
|
|
13940
|
+
function NC({ className: e, ...t }) {
|
|
13941
|
+
return /* @__PURE__ */ h(Bv, {
|
|
13902
13942
|
"data-slot": "sidebar-input",
|
|
13903
13943
|
"data-sidebar": "input",
|
|
13904
13944
|
className: q("bg-background h-8 w-full shadow-none", e),
|
|
13905
13945
|
...t
|
|
13906
13946
|
});
|
|
13907
13947
|
}
|
|
13908
|
-
function
|
|
13948
|
+
function PC({ className: e, ...t }) {
|
|
13909
13949
|
return /* @__PURE__ */ h("div", {
|
|
13910
13950
|
"data-slot": "sidebar-header",
|
|
13911
13951
|
"data-sidebar": "header",
|
|
@@ -13913,7 +13953,7 @@ function NC({ className: e, ...t }) {
|
|
|
13913
13953
|
...t
|
|
13914
13954
|
});
|
|
13915
13955
|
}
|
|
13916
|
-
function
|
|
13956
|
+
function FC({ className: e, ...t }) {
|
|
13917
13957
|
return /* @__PURE__ */ h("div", {
|
|
13918
13958
|
"data-slot": "sidebar-footer",
|
|
13919
13959
|
"data-sidebar": "footer",
|
|
@@ -13921,15 +13961,15 @@ function PC({ className: e, ...t }) {
|
|
|
13921
13961
|
...t
|
|
13922
13962
|
});
|
|
13923
13963
|
}
|
|
13924
|
-
function
|
|
13925
|
-
return /* @__PURE__ */ h(
|
|
13964
|
+
function IC({ className: e, ...t }) {
|
|
13965
|
+
return /* @__PURE__ */ h(ay, {
|
|
13926
13966
|
"data-slot": "sidebar-separator",
|
|
13927
13967
|
"data-sidebar": "separator",
|
|
13928
13968
|
className: q("bg-sidebar-border mx-2 w-auto", e),
|
|
13929
13969
|
...t
|
|
13930
13970
|
});
|
|
13931
13971
|
}
|
|
13932
|
-
function
|
|
13972
|
+
function LC({ className: e, ...t }) {
|
|
13933
13973
|
return /* @__PURE__ */ h("div", {
|
|
13934
13974
|
"data-slot": "sidebar-content",
|
|
13935
13975
|
"data-sidebar": "content",
|
|
@@ -13937,7 +13977,7 @@ function IC({ className: e, ...t }) {
|
|
|
13937
13977
|
...t
|
|
13938
13978
|
});
|
|
13939
13979
|
}
|
|
13940
|
-
function
|
|
13980
|
+
function RC({ className: e, ...t }) {
|
|
13941
13981
|
return /* @__PURE__ */ h("div", {
|
|
13942
13982
|
"data-slot": "sidebar-group",
|
|
13943
13983
|
"data-sidebar": "group",
|
|
@@ -13945,7 +13985,7 @@ function LC({ className: e, ...t }) {
|
|
|
13945
13985
|
...t
|
|
13946
13986
|
});
|
|
13947
13987
|
}
|
|
13948
|
-
function
|
|
13988
|
+
function zC({ className: e, asChild: t = !1, ...n }) {
|
|
13949
13989
|
return /* @__PURE__ */ h(t ? P : "div", {
|
|
13950
13990
|
"data-slot": "sidebar-group-label",
|
|
13951
13991
|
"data-sidebar": "group-label",
|
|
@@ -13953,7 +13993,7 @@ function RC({ className: e, asChild: t = !1, ...n }) {
|
|
|
13953
13993
|
...n
|
|
13954
13994
|
});
|
|
13955
13995
|
}
|
|
13956
|
-
function
|
|
13996
|
+
function BC({ className: e, asChild: t = !1, ...n }) {
|
|
13957
13997
|
return /* @__PURE__ */ h(t ? P : "button", {
|
|
13958
13998
|
"data-slot": "sidebar-group-action",
|
|
13959
13999
|
"data-sidebar": "group-action",
|
|
@@ -13961,7 +14001,7 @@ function zC({ className: e, asChild: t = !1, ...n }) {
|
|
|
13961
14001
|
...n
|
|
13962
14002
|
});
|
|
13963
14003
|
}
|
|
13964
|
-
function
|
|
14004
|
+
function VC({ className: e, ...t }) {
|
|
13965
14005
|
return /* @__PURE__ */ h("div", {
|
|
13966
14006
|
"data-slot": "sidebar-group-content",
|
|
13967
14007
|
"data-sidebar": "group-content",
|
|
@@ -13969,7 +14009,7 @@ function BC({ className: e, ...t }) {
|
|
|
13969
14009
|
...t
|
|
13970
14010
|
});
|
|
13971
14011
|
}
|
|
13972
|
-
function
|
|
14012
|
+
function HC({ className: e, ...t }) {
|
|
13973
14013
|
return /* @__PURE__ */ h("ul", {
|
|
13974
14014
|
"data-slot": "sidebar-menu",
|
|
13975
14015
|
"data-sidebar": "menu",
|
|
@@ -13977,7 +14017,7 @@ function VC({ className: e, ...t }) {
|
|
|
13977
14017
|
...t
|
|
13978
14018
|
});
|
|
13979
14019
|
}
|
|
13980
|
-
function
|
|
14020
|
+
function UC({ className: e, ...t }) {
|
|
13981
14021
|
return /* @__PURE__ */ h("li", {
|
|
13982
14022
|
"data-slot": "sidebar-menu-item",
|
|
13983
14023
|
"data-sidebar": "menu-item",
|
|
@@ -13985,7 +14025,7 @@ function HC({ className: e, ...t }) {
|
|
|
13985
14025
|
...t
|
|
13986
14026
|
});
|
|
13987
14027
|
}
|
|
13988
|
-
var
|
|
14028
|
+
var WC = T("peer/menu-button flex w-full rounded-xs items-center gap-2 overflow-hidden px-4 py-3 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:shadow-sm active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 cursor-pointer disabled:cursor-not-allowed aria-disabled:cursor-not-allowed aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-sm data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0 hover:data-[critical=true]:bg-tertiary/20 hover:data-[critical=true]:text-tertiary data-[active=true]:data-[critical=true]:bg-tertiary/20 data-[active=true]:data-[critical=true]:text-tertiary", {
|
|
13989
14029
|
variants: {
|
|
13990
14030
|
variant: {
|
|
13991
14031
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-sm",
|
|
@@ -14002,31 +14042,31 @@ var UC = T("peer/menu-button flex w-full rounded-xs items-center gap-2 overflow-
|
|
|
14002
14042
|
size: "default"
|
|
14003
14043
|
}
|
|
14004
14044
|
});
|
|
14005
|
-
function
|
|
14006
|
-
let c = e ? P : "button", { isMobile: l, state: u } =
|
|
14045
|
+
function GC({ asChild: e = !1, isActive: t = !1, isCritical: n = !1, variant: r = "default", size: i = "default", tooltip: a, className: o, ...s }) {
|
|
14046
|
+
let c = e ? P : "button", { isMobile: l, state: u } = DC(), d = /* @__PURE__ */ h(c, {
|
|
14007
14047
|
"data-slot": "sidebar-menu-button",
|
|
14008
14048
|
"data-sidebar": "menu-button",
|
|
14009
14049
|
"data-size": i,
|
|
14010
14050
|
"data-active": t,
|
|
14011
14051
|
"data-critical": n,
|
|
14012
14052
|
"aria-disabled": s.disabled,
|
|
14013
|
-
className: q(
|
|
14053
|
+
className: q(WC({
|
|
14014
14054
|
variant: r,
|
|
14015
14055
|
size: i
|
|
14016
14056
|
}), o),
|
|
14017
14057
|
...s
|
|
14018
14058
|
});
|
|
14019
|
-
return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ g(
|
|
14059
|
+
return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ g(hC, { children: [/* @__PURE__ */ h(gC, {
|
|
14020
14060
|
asChild: !0,
|
|
14021
14061
|
children: d
|
|
14022
|
-
}), /* @__PURE__ */ h(
|
|
14062
|
+
}), /* @__PURE__ */ h(_C, {
|
|
14023
14063
|
side: "right",
|
|
14024
14064
|
align: "center",
|
|
14025
14065
|
hidden: u !== "collapsed" || l,
|
|
14026
14066
|
...a
|
|
14027
14067
|
})] })) : d;
|
|
14028
14068
|
}
|
|
14029
|
-
function
|
|
14069
|
+
function KC({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
14030
14070
|
return /* @__PURE__ */ h(t ? P : "button", {
|
|
14031
14071
|
"data-slot": "sidebar-menu-action",
|
|
14032
14072
|
"data-sidebar": "menu-action",
|
|
@@ -14034,7 +14074,7 @@ function GC({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
|
14034
14074
|
...r
|
|
14035
14075
|
});
|
|
14036
14076
|
}
|
|
14037
|
-
function
|
|
14077
|
+
function qC({ className: e, ...t }) {
|
|
14038
14078
|
return /* @__PURE__ */ h("div", {
|
|
14039
14079
|
"data-slot": "sidebar-menu-badge",
|
|
14040
14080
|
"data-sidebar": "menu-badge",
|
|
@@ -14042,23 +14082,23 @@ function KC({ className: e, ...t }) {
|
|
|
14042
14082
|
...t
|
|
14043
14083
|
});
|
|
14044
14084
|
}
|
|
14045
|
-
function
|
|
14085
|
+
function JC({ className: e, showIcon: t = !1, ...n }) {
|
|
14046
14086
|
return /* @__PURE__ */ g("div", {
|
|
14047
14087
|
"data-slot": "sidebar-menu-skeleton",
|
|
14048
14088
|
"data-sidebar": "menu-skeleton",
|
|
14049
14089
|
className: q("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
14050
14090
|
...n,
|
|
14051
|
-
children: [t && /* @__PURE__ */ h(
|
|
14091
|
+
children: [t && /* @__PURE__ */ h(TS, {
|
|
14052
14092
|
className: "size-4 rounded-md",
|
|
14053
14093
|
"data-sidebar": "menu-skeleton-icon"
|
|
14054
|
-
}), /* @__PURE__ */ h(
|
|
14094
|
+
}), /* @__PURE__ */ h(TS, {
|
|
14055
14095
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
14056
14096
|
"data-sidebar": "menu-skeleton-text",
|
|
14057
14097
|
style: { "--skeleton-width": "70%" }
|
|
14058
14098
|
})]
|
|
14059
14099
|
});
|
|
14060
14100
|
}
|
|
14061
|
-
function
|
|
14101
|
+
function YC({ className: e, ...t }) {
|
|
14062
14102
|
return /* @__PURE__ */ h("ul", {
|
|
14063
14103
|
"data-slot": "sidebar-menu-sub",
|
|
14064
14104
|
"data-sidebar": "menu-sub",
|
|
@@ -14066,7 +14106,7 @@ function JC({ className: e, ...t }) {
|
|
|
14066
14106
|
...t
|
|
14067
14107
|
});
|
|
14068
14108
|
}
|
|
14069
|
-
function
|
|
14109
|
+
function XC({ className: e, ...t }) {
|
|
14070
14110
|
return /* @__PURE__ */ h("li", {
|
|
14071
14111
|
"data-slot": "sidebar-menu-sub-item",
|
|
14072
14112
|
"data-sidebar": "menu-sub-item",
|
|
@@ -14074,7 +14114,7 @@ function YC({ className: e, ...t }) {
|
|
|
14074
14114
|
...t
|
|
14075
14115
|
});
|
|
14076
14116
|
}
|
|
14077
|
-
function
|
|
14117
|
+
function ZC({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
14078
14118
|
return /* @__PURE__ */ h(e ? P : "a", {
|
|
14079
14119
|
"data-slot": "sidebar-menu-sub-button",
|
|
14080
14120
|
"data-sidebar": "menu-sub-button",
|
|
@@ -14086,7 +14126,7 @@ function XC({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, .
|
|
|
14086
14126
|
}
|
|
14087
14127
|
//#endregion
|
|
14088
14128
|
//#region node_modules/next-themes/dist/index.mjs
|
|
14089
|
-
var
|
|
14129
|
+
var QC = (e, t, n, r, i, a, o, s) => {
|
|
14090
14130
|
let c = document.documentElement, l = ["light", "dark"];
|
|
14091
14131
|
function u(t) {
|
|
14092
14132
|
(Array.isArray(e) ? e : [e]).forEach((e) => {
|
|
@@ -14105,10 +14145,10 @@ var ZC = (e, t, n, r, i, a, o, s) => {
|
|
|
14105
14145
|
let e = localStorage.getItem(t) || n;
|
|
14106
14146
|
u(o && e === "system" ? f() : e);
|
|
14107
14147
|
} catch {}
|
|
14108
|
-
},
|
|
14148
|
+
}, $C = e.createContext(void 0), ew = {
|
|
14109
14149
|
setTheme: (e) => {},
|
|
14110
14150
|
themes: []
|
|
14111
|
-
},
|
|
14151
|
+
}, tw = () => e.useContext($C) ?? ew;
|
|
14112
14152
|
e.memo(({ forcedTheme: t, storageKey: n, attribute: r, enableSystem: i, enableColorScheme: a, defaultTheme: o, value: s, themes: c, nonce: l, scriptProps: u }) => {
|
|
14113
14153
|
let d = JSON.stringify([
|
|
14114
14154
|
r,
|
|
@@ -14124,31 +14164,31 @@ e.memo(({ forcedTheme: t, storageKey: n, attribute: r, enableSystem: i, enableCo
|
|
|
14124
14164
|
...u,
|
|
14125
14165
|
suppressHydrationWarning: !0,
|
|
14126
14166
|
nonce: typeof window > "u" ? l : "",
|
|
14127
|
-
dangerouslySetInnerHTML: { __html: `(${
|
|
14167
|
+
dangerouslySetInnerHTML: { __html: `(${QC.toString()})(${d})` }
|
|
14128
14168
|
});
|
|
14129
14169
|
});
|
|
14130
14170
|
//#endregion
|
|
14131
14171
|
//#region node_modules/sonner/dist/index.mjs
|
|
14132
|
-
function
|
|
14172
|
+
function nw(e) {
|
|
14133
14173
|
if (!e || typeof document > "u") return;
|
|
14134
14174
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
14135
14175
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
14136
14176
|
}
|
|
14137
|
-
var
|
|
14177
|
+
var rw = (e) => {
|
|
14138
14178
|
switch (e) {
|
|
14139
|
-
case "success": return
|
|
14140
|
-
case "info": return
|
|
14141
|
-
case "warning": return
|
|
14142
|
-
case "error": return
|
|
14179
|
+
case "success": return ow;
|
|
14180
|
+
case "info": return cw;
|
|
14181
|
+
case "warning": return sw;
|
|
14182
|
+
case "error": return lw;
|
|
14143
14183
|
default: return null;
|
|
14144
14184
|
}
|
|
14145
|
-
},
|
|
14185
|
+
}, iw = Array(12).fill(0), aw = ({ visible: e, className: n }) => /* @__PURE__ */ t.createElement("div", {
|
|
14146
14186
|
className: ["sonner-loading-wrapper", n].filter(Boolean).join(" "),
|
|
14147
14187
|
"data-visible": e
|
|
14148
|
-
}, /* @__PURE__ */ t.createElement("div", { className: "sonner-spinner" },
|
|
14188
|
+
}, /* @__PURE__ */ t.createElement("div", { className: "sonner-spinner" }, iw.map((e, n) => /* @__PURE__ */ t.createElement("div", {
|
|
14149
14189
|
className: "sonner-loading-bar",
|
|
14150
14190
|
key: `spinner-bar-${n}`
|
|
14151
|
-
})))),
|
|
14191
|
+
})))), ow = /* @__PURE__ */ t.createElement("svg", {
|
|
14152
14192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14153
14193
|
viewBox: "0 0 20 20",
|
|
14154
14194
|
fill: "currentColor",
|
|
@@ -14158,7 +14198,7 @@ var nw = (e) => {
|
|
|
14158
14198
|
fillRule: "evenodd",
|
|
14159
14199
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
14160
14200
|
clipRule: "evenodd"
|
|
14161
|
-
})),
|
|
14201
|
+
})), sw = /* @__PURE__ */ t.createElement("svg", {
|
|
14162
14202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14163
14203
|
viewBox: "0 0 24 24",
|
|
14164
14204
|
fill: "currentColor",
|
|
@@ -14168,7 +14208,7 @@ var nw = (e) => {
|
|
|
14168
14208
|
fillRule: "evenodd",
|
|
14169
14209
|
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
14170
14210
|
clipRule: "evenodd"
|
|
14171
|
-
})),
|
|
14211
|
+
})), cw = /* @__PURE__ */ t.createElement("svg", {
|
|
14172
14212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14173
14213
|
viewBox: "0 0 20 20",
|
|
14174
14214
|
fill: "currentColor",
|
|
@@ -14178,7 +14218,7 @@ var nw = (e) => {
|
|
|
14178
14218
|
fillRule: "evenodd",
|
|
14179
14219
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
14180
14220
|
clipRule: "evenodd"
|
|
14181
|
-
})),
|
|
14221
|
+
})), lw = /* @__PURE__ */ t.createElement("svg", {
|
|
14182
14222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14183
14223
|
viewBox: "0 0 20 20",
|
|
14184
14224
|
fill: "currentColor",
|
|
@@ -14188,7 +14228,7 @@ var nw = (e) => {
|
|
|
14188
14228
|
fillRule: "evenodd",
|
|
14189
14229
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
14190
14230
|
clipRule: "evenodd"
|
|
14191
|
-
})),
|
|
14231
|
+
})), uw = /* @__PURE__ */ t.createElement("svg", {
|
|
14192
14232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14193
14233
|
width: "12",
|
|
14194
14234
|
height: "12",
|
|
@@ -14208,7 +14248,7 @@ var nw = (e) => {
|
|
|
14208
14248
|
y1: "6",
|
|
14209
14249
|
x2: "18",
|
|
14210
14250
|
y2: "18"
|
|
14211
|
-
})),
|
|
14251
|
+
})), dw = () => {
|
|
14212
14252
|
let [e, n] = t.useState(document.hidden);
|
|
14213
14253
|
return t.useEffect(() => {
|
|
14214
14254
|
let e = () => {
|
|
@@ -14216,7 +14256,7 @@ var nw = (e) => {
|
|
|
14216
14256
|
};
|
|
14217
14257
|
return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
|
|
14218
14258
|
}, []), e;
|
|
14219
|
-
},
|
|
14259
|
+
}, fw = 1, pw = new class {
|
|
14220
14260
|
constructor() {
|
|
14221
14261
|
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
14222
14262
|
let t = this.subscribers.indexOf(e);
|
|
@@ -14226,7 +14266,7 @@ var nw = (e) => {
|
|
|
14226
14266
|
}, this.addToast = (e) => {
|
|
14227
14267
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
14228
14268
|
}, this.create = (e) => {
|
|
14229
|
-
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id :
|
|
14269
|
+
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : fw++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
14230
14270
|
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
14231
14271
|
...n,
|
|
14232
14272
|
...e,
|
|
@@ -14291,7 +14331,7 @@ var nw = (e) => {
|
|
|
14291
14331
|
type: "default",
|
|
14292
14332
|
message: e
|
|
14293
14333
|
});
|
|
14294
|
-
else if (
|
|
14334
|
+
else if (hw(e) && !e.ok) {
|
|
14295
14335
|
a = !1;
|
|
14296
14336
|
let i = typeof n.error == "function" ? await n.error(`HTTP error! status: ${e.status}`) : n.error, o = typeof n.description == "function" ? await n.description(`HTTP error! status: ${e.status}`) : n.description, s = typeof i == "object" && !t.isValidElement(i) ? i : { message: i };
|
|
14297
14337
|
this.create({
|
|
@@ -14335,7 +14375,7 @@ var nw = (e) => {
|
|
|
14335
14375
|
}), c = () => new Promise((e, t) => s.then(() => o[0] === "reject" ? t(o[1]) : e(o[1])).catch(t));
|
|
14336
14376
|
return typeof r != "string" && typeof r != "number" ? { unwrap: c } : Object.assign(r, { unwrap: c });
|
|
14337
14377
|
}, this.custom = (e, t) => {
|
|
14338
|
-
let n = t?.id ||
|
|
14378
|
+
let n = t?.id || fw++;
|
|
14339
14379
|
return this.create({
|
|
14340
14380
|
jsx: e(n),
|
|
14341
14381
|
id: n,
|
|
@@ -14343,41 +14383,41 @@ var nw = (e) => {
|
|
|
14343
14383
|
}), n;
|
|
14344
14384
|
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
14345
14385
|
}
|
|
14346
|
-
}(),
|
|
14347
|
-
let n = t?.id ||
|
|
14348
|
-
return
|
|
14386
|
+
}(), mw = (e, t) => {
|
|
14387
|
+
let n = t?.id || fw++;
|
|
14388
|
+
return pw.addToast({
|
|
14349
14389
|
title: e,
|
|
14350
14390
|
...t,
|
|
14351
14391
|
id: n
|
|
14352
14392
|
}), n;
|
|
14353
|
-
},
|
|
14354
|
-
Object.assign(
|
|
14355
|
-
success:
|
|
14356
|
-
info:
|
|
14357
|
-
warning:
|
|
14358
|
-
error:
|
|
14359
|
-
custom:
|
|
14360
|
-
message:
|
|
14361
|
-
promise:
|
|
14362
|
-
dismiss:
|
|
14363
|
-
loading:
|
|
14393
|
+
}, hw = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number";
|
|
14394
|
+
Object.assign(mw, {
|
|
14395
|
+
success: pw.success,
|
|
14396
|
+
info: pw.info,
|
|
14397
|
+
warning: pw.warning,
|
|
14398
|
+
error: pw.error,
|
|
14399
|
+
custom: pw.custom,
|
|
14400
|
+
message: pw.message,
|
|
14401
|
+
promise: pw.promise,
|
|
14402
|
+
dismiss: pw.dismiss,
|
|
14403
|
+
loading: pw.loading
|
|
14364
14404
|
}, {
|
|
14365
|
-
getHistory: () =>
|
|
14366
|
-
getToasts: () =>
|
|
14367
|
-
}), tw("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
14368
|
-
function
|
|
14405
|
+
getHistory: () => pw.toasts,
|
|
14406
|
+
getToasts: () => pw.getActiveToasts()
|
|
14407
|
+
}), nw("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
14408
|
+
function gw(e) {
|
|
14369
14409
|
return e.label !== void 0;
|
|
14370
14410
|
}
|
|
14371
|
-
var
|
|
14372
|
-
function
|
|
14411
|
+
var _w = 3, vw = "24px", yw = "16px", bw = 4e3, xw = 356, Sw = 14, Cw = 45, ww = 200;
|
|
14412
|
+
function Tw(...e) {
|
|
14373
14413
|
return e.filter(Boolean).join(" ");
|
|
14374
14414
|
}
|
|
14375
|
-
function
|
|
14415
|
+
function Ew(e) {
|
|
14376
14416
|
let [t, n] = e.split("-"), r = [];
|
|
14377
14417
|
return t && r.push(t), n && r.push(n), r;
|
|
14378
14418
|
}
|
|
14379
|
-
var
|
|
14380
|
-
let { invert: n, toast: r, unstyled: i, interacting: a, setHeights: o, visibleToasts: s, heights: c, index: l, toasts: u, expanded: d, removeToast: f, defaultRichColors: p, closeButton: m, style: h, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = t.useState(null), [k, A] = t.useState(null), [j, M] = t.useState(!1), [N, P] = t.useState(!1), [F, I] = t.useState(!1), [L, R] = t.useState(!1), [z, ee] = t.useState(!1), [B, V] = t.useState(0), [te, ne] = t.useState(0), H = t.useRef(r.duration || b ||
|
|
14419
|
+
var Dw = (e) => {
|
|
14420
|
+
let { invert: n, toast: r, unstyled: i, interacting: a, setHeights: o, visibleToasts: s, heights: c, index: l, toasts: u, expanded: d, removeToast: f, defaultRichColors: p, closeButton: m, style: h, cancelButtonStyle: g, actionButtonStyle: _, className: v = "", descriptionClassName: y = "", duration: b, position: x, gap: S, expandByDefault: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = t.useState(null), [k, A] = t.useState(null), [j, M] = t.useState(!1), [N, P] = t.useState(!1), [F, I] = t.useState(!1), [L, R] = t.useState(!1), [z, ee] = t.useState(!1), [B, V] = t.useState(0), [te, ne] = t.useState(0), H = t.useRef(r.duration || b || bw), re = t.useRef(null), ie = t.useRef(null), ae = l === 0, oe = l + 1 <= s, U = r.type, se = r.dismissible !== !1, ce = r.className || "", le = r.descriptionClassName || "", ue = t.useMemo(() => c.findIndex((e) => e.toastId === r.id) || 0, [c, r.id]), de = t.useMemo(() => r.closeButton ?? m, [r.closeButton, m]), fe = t.useMemo(() => r.duration || b || bw, [r.duration, b]), pe = t.useRef(0), me = t.useRef(0), he = t.useRef(0), ge = t.useRef(null), [_e, ve] = x.split("-"), ye = t.useMemo(() => c.reduce((e, t, n) => n >= ue ? e : e + t.height, 0), [c, ue]), be = dw(), xe = r.invert || n, Se = U === "loading";
|
|
14381
14421
|
me.current = t.useMemo(() => ue * S + ye, [ue, ye]), t.useEffect(() => {
|
|
14382
14422
|
H.current = fe;
|
|
14383
14423
|
}, [fe]), t.useEffect(() => {
|
|
@@ -14418,7 +14458,7 @@ var Ew = (e) => {
|
|
|
14418
14458
|
let Ce = t.useCallback(() => {
|
|
14419
14459
|
P(!0), V(me.current), o((e) => e.filter((e) => e.toastId !== r.id)), setTimeout(() => {
|
|
14420
14460
|
f(r);
|
|
14421
|
-
},
|
|
14461
|
+
}, ww);
|
|
14422
14462
|
}, [
|
|
14423
14463
|
r,
|
|
14424
14464
|
f,
|
|
@@ -14449,18 +14489,18 @@ var Ew = (e) => {
|
|
|
14449
14489
|
}, [Ce, r.delete]);
|
|
14450
14490
|
function we() {
|
|
14451
14491
|
return T?.loading ? /* @__PURE__ */ t.createElement("div", {
|
|
14452
|
-
className:
|
|
14492
|
+
className: Tw(w?.loader, r?.classNames?.loader, "sonner-loader"),
|
|
14453
14493
|
"data-visible": U === "loading"
|
|
14454
|
-
}, T.loading) : /* @__PURE__ */ t.createElement(
|
|
14455
|
-
className:
|
|
14494
|
+
}, T.loading) : /* @__PURE__ */ t.createElement(aw, {
|
|
14495
|
+
className: Tw(w?.loader, r?.classNames?.loader),
|
|
14456
14496
|
visible: U === "loading"
|
|
14457
14497
|
});
|
|
14458
14498
|
}
|
|
14459
|
-
let Te = r.icon || T?.[U] ||
|
|
14499
|
+
let Te = r.icon || T?.[U] || rw(U);
|
|
14460
14500
|
return /* @__PURE__ */ t.createElement("li", {
|
|
14461
14501
|
tabIndex: 0,
|
|
14462
14502
|
ref: ie,
|
|
14463
|
-
className:
|
|
14503
|
+
className: Tw(v, ce, w?.toast, r?.classNames?.toast, w?.default, w?.[U], r?.classNames?.[U]),
|
|
14464
14504
|
"data-sonner-toast": "",
|
|
14465
14505
|
"data-rich-colors": r.richColors ?? p,
|
|
14466
14506
|
"data-styled": !(r.jsx || r.unstyled || i),
|
|
@@ -14503,7 +14543,7 @@ var Ew = (e) => {
|
|
|
14503
14543
|
if (L || !se) return;
|
|
14504
14544
|
ge.current = null;
|
|
14505
14545
|
let e = Number(ie.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ie.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), n = (/* @__PURE__ */ new Date()).getTime() - re.current?.getTime(), i = D === "x" ? e : t, a = Math.abs(i) / n;
|
|
14506
|
-
if (Math.abs(i) >=
|
|
14546
|
+
if (Math.abs(i) >= Cw || a > .11) {
|
|
14507
14547
|
V(me.current), r.onDismiss == null || r.onDismiss.call(r, r), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ce(), R(!0);
|
|
14508
14548
|
return;
|
|
14509
14549
|
} else {
|
|
@@ -14515,7 +14555,7 @@ var Ew = (e) => {
|
|
|
14515
14555
|
onPointerMove: (t) => {
|
|
14516
14556
|
var n, r;
|
|
14517
14557
|
if (!ge.current || !se || window.getSelection()?.toString().length > 0) return;
|
|
14518
|
-
let i = t.clientY - ge.current.y, a = t.clientX - ge.current.x, o = e.swipeDirections ??
|
|
14558
|
+
let i = t.clientY - ge.current.y, a = t.clientX - ge.current.x, o = e.swipeDirections ?? Ew(x);
|
|
14519
14559
|
!D && (Math.abs(a) > 1 || Math.abs(i) > 1) && O(Math.abs(a) > Math.abs(i) ? "x" : "y");
|
|
14520
14560
|
let s = {
|
|
14521
14561
|
x: 0,
|
|
@@ -14541,46 +14581,46 @@ var Ew = (e) => {
|
|
|
14541
14581
|
onClick: Se || !se ? () => {} : () => {
|
|
14542
14582
|
Ce(), r.onDismiss == null || r.onDismiss.call(r, r);
|
|
14543
14583
|
},
|
|
14544
|
-
className:
|
|
14545
|
-
}, T?.close ??
|
|
14584
|
+
className: Tw(w?.closeButton, r?.classNames?.closeButton)
|
|
14585
|
+
}, T?.close ?? uw) : null, (U || r.icon || r.promise) && r.icon !== null && (T?.[U] !== null || r.icon) ? /* @__PURE__ */ t.createElement("div", {
|
|
14546
14586
|
"data-icon": "",
|
|
14547
|
-
className:
|
|
14587
|
+
className: Tw(w?.icon, r?.classNames?.icon)
|
|
14548
14588
|
}, r.promise || r.type === "loading" && !r.icon ? r.icon || we() : null, r.type === "loading" ? null : Te) : null, /* @__PURE__ */ t.createElement("div", {
|
|
14549
14589
|
"data-content": "",
|
|
14550
|
-
className:
|
|
14590
|
+
className: Tw(w?.content, r?.classNames?.content)
|
|
14551
14591
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
14552
14592
|
"data-title": "",
|
|
14553
|
-
className:
|
|
14593
|
+
className: Tw(w?.title, r?.classNames?.title)
|
|
14554
14594
|
}, r.jsx ? r.jsx : typeof r.title == "function" ? r.title() : r.title), r.description ? /* @__PURE__ */ t.createElement("div", {
|
|
14555
14595
|
"data-description": "",
|
|
14556
|
-
className:
|
|
14557
|
-
}, typeof r.description == "function" ? r.description() : r.description) : null), /* @__PURE__ */ t.isValidElement(r.cancel) ? r.cancel : r.cancel &&
|
|
14596
|
+
className: Tw(y, le, w?.description, r?.classNames?.description)
|
|
14597
|
+
}, typeof r.description == "function" ? r.description() : r.description) : null), /* @__PURE__ */ t.isValidElement(r.cancel) ? r.cancel : r.cancel && gw(r.cancel) ? /* @__PURE__ */ t.createElement("button", {
|
|
14558
14598
|
"data-button": !0,
|
|
14559
14599
|
"data-cancel": !0,
|
|
14560
14600
|
style: r.cancelButtonStyle || g,
|
|
14561
14601
|
onClick: (e) => {
|
|
14562
|
-
|
|
14602
|
+
gw(r.cancel) && se && (r.cancel.onClick == null || r.cancel.onClick.call(r.cancel, e), Ce());
|
|
14563
14603
|
},
|
|
14564
|
-
className:
|
|
14565
|
-
}, r.cancel.label) : null, /* @__PURE__ */ t.isValidElement(r.action) ? r.action : r.action &&
|
|
14604
|
+
className: Tw(w?.cancelButton, r?.classNames?.cancelButton)
|
|
14605
|
+
}, r.cancel.label) : null, /* @__PURE__ */ t.isValidElement(r.action) ? r.action : r.action && gw(r.action) ? /* @__PURE__ */ t.createElement("button", {
|
|
14566
14606
|
"data-button": !0,
|
|
14567
14607
|
"data-action": !0,
|
|
14568
14608
|
style: r.actionButtonStyle || _,
|
|
14569
14609
|
onClick: (e) => {
|
|
14570
|
-
|
|
14610
|
+
gw(r.action) && (r.action.onClick == null || r.action.onClick.call(r.action, e), !e.defaultPrevented && Ce());
|
|
14571
14611
|
},
|
|
14572
|
-
className:
|
|
14612
|
+
className: Tw(w?.actionButton, r?.classNames?.actionButton)
|
|
14573
14613
|
}, r.action.label) : null);
|
|
14574
14614
|
};
|
|
14575
|
-
function
|
|
14615
|
+
function Ow() {
|
|
14576
14616
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
14577
14617
|
let e = document.documentElement.getAttribute("dir");
|
|
14578
14618
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
14579
14619
|
}
|
|
14580
|
-
function
|
|
14620
|
+
function kw(e, t) {
|
|
14581
14621
|
let n = {};
|
|
14582
14622
|
return [e, t].forEach((e, t) => {
|
|
14583
|
-
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ?
|
|
14623
|
+
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? yw : vw;
|
|
14584
14624
|
function o(e) {
|
|
14585
14625
|
[
|
|
14586
14626
|
"top",
|
|
@@ -14601,11 +14641,11 @@ function Ow(e, t) {
|
|
|
14601
14641
|
}) : o(a);
|
|
14602
14642
|
}), n;
|
|
14603
14643
|
}
|
|
14604
|
-
var
|
|
14605
|
-
let { id: r, invert: i, position: a = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: s, closeButton: c, className: l, offset: u, mobileOffset: d, theme: f = "light", richColors: p, duration: m, style: h, visibleToasts: g =
|
|
14606
|
-
w((t) => (t.find((t) => t.id === e.id)?.delete ||
|
|
14644
|
+
var Aw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
14645
|
+
let { id: r, invert: i, position: a = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: s, closeButton: c, className: l, offset: u, mobileOffset: d, theme: f = "light", richColors: p, duration: m, style: h, visibleToasts: g = _w, toastOptions: _, dir: y = Ow(), gap: b = Sw, icons: x, containerAriaLabel: S = "Notifications" } = e, [C, w] = t.useState([]), T = t.useMemo(() => r ? C.filter((e) => e.toasterId === r) : C.filter((e) => !e.toasterId), [C, r]), E = t.useMemo(() => Array.from(new Set([a].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, a]), [D, O] = t.useState([]), [k, A] = t.useState(!1), [j, M] = t.useState(!1), [N, P] = t.useState(f === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f), F = t.useRef(null), I = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), L = t.useRef(null), R = t.useRef(!1), z = t.useCallback((e) => {
|
|
14646
|
+
w((t) => (t.find((t) => t.id === e.id)?.delete || pw.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
|
|
14607
14647
|
}, []);
|
|
14608
|
-
return t.useEffect(() =>
|
|
14648
|
+
return t.useEffect(() => pw.subscribe((e) => {
|
|
14609
14649
|
if (e.dismiss) {
|
|
14610
14650
|
requestAnimationFrame(() => {
|
|
14611
14651
|
w((t) => t.map((t) => t.id === e.id ? {
|
|
@@ -14677,7 +14717,7 @@ var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14677
14717
|
let [a, o] = n.split("-");
|
|
14678
14718
|
return T.length ? /* @__PURE__ */ t.createElement("ol", {
|
|
14679
14719
|
key: n,
|
|
14680
|
-
dir: y === "auto" ?
|
|
14720
|
+
dir: y === "auto" ? Ow() : y,
|
|
14681
14721
|
tabIndex: -1,
|
|
14682
14722
|
ref: F,
|
|
14683
14723
|
className: l,
|
|
@@ -14687,10 +14727,10 @@ var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14687
14727
|
"data-x-position": o,
|
|
14688
14728
|
style: {
|
|
14689
14729
|
"--front-toast-height": `${D[0]?.height || 0}px`,
|
|
14690
|
-
"--width": `${
|
|
14730
|
+
"--width": `${xw}px`,
|
|
14691
14731
|
"--gap": `${b}px`,
|
|
14692
14732
|
...h,
|
|
14693
|
-
...
|
|
14733
|
+
...kw(u, d)
|
|
14694
14734
|
},
|
|
14695
14735
|
onBlur: (e) => {
|
|
14696
14736
|
R.current && !e.currentTarget.contains(e.relatedTarget) && (R.current = !1, L.current &&= (L.current.focus({ preventScroll: !0 }), null));
|
|
@@ -14708,7 +14748,7 @@ var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14708
14748
|
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || M(!0);
|
|
14709
14749
|
},
|
|
14710
14750
|
onPointerUp: () => M(!1)
|
|
14711
|
-
}, T.filter((e) => !e.position && r === 0 || e.position === n).map((r, a) => /* @__PURE__ */ t.createElement(
|
|
14751
|
+
}, T.filter((e) => !e.position && r === 0 || e.position === n).map((r, a) => /* @__PURE__ */ t.createElement(Dw, {
|
|
14712
14752
|
key: r.id,
|
|
14713
14753
|
icons: x,
|
|
14714
14754
|
index: a,
|
|
@@ -14738,9 +14778,9 @@ var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14738
14778
|
swipeDirections: e.swipeDirections
|
|
14739
14779
|
}))) : null;
|
|
14740
14780
|
}));
|
|
14741
|
-
}),
|
|
14742
|
-
let { theme: t = "system" } =
|
|
14743
|
-
return /* @__PURE__ */ h(
|
|
14781
|
+
}), jw = ({ ...e }) => {
|
|
14782
|
+
let { theme: t = "system" } = tw();
|
|
14783
|
+
return /* @__PURE__ */ h(Aw, {
|
|
14744
14784
|
theme: t,
|
|
14745
14785
|
className: "toaster group",
|
|
14746
14786
|
icons: {
|
|
@@ -14758,14 +14798,14 @@ var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14758
14798
|
},
|
|
14759
14799
|
...e
|
|
14760
14800
|
});
|
|
14761
|
-
},
|
|
14801
|
+
}, Mw = "Switch", [Nw, Pw] = No(Mw), [Fw, Iw] = Nw(Mw), Lw = e.forwardRef((t, n) => {
|
|
14762
14802
|
let { __scopeSwitch: r, name: i, checked: a, defaultChecked: o, required: s, disabled: c, value: l = "on", onCheckedChange: u, form: d, ...f } = t, [p, m] = e.useState(null), _ = O(n, (e) => m(e)), v = e.useRef(!1), y = p ? d || !!p.closest("form") : !0, [b, x] = Lo({
|
|
14763
14803
|
prop: a,
|
|
14764
14804
|
defaultProp: o ?? !1,
|
|
14765
14805
|
onChange: u,
|
|
14766
|
-
caller:
|
|
14806
|
+
caller: Mw
|
|
14767
14807
|
});
|
|
14768
|
-
return /* @__PURE__ */ g(
|
|
14808
|
+
return /* @__PURE__ */ g(Fw, {
|
|
14769
14809
|
scope: r,
|
|
14770
14810
|
checked: b,
|
|
14771
14811
|
disabled: c,
|
|
@@ -14774,7 +14814,7 @@ var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14774
14814
|
role: "switch",
|
|
14775
14815
|
"aria-checked": b,
|
|
14776
14816
|
"aria-required": s,
|
|
14777
|
-
"data-state":
|
|
14817
|
+
"data-state": Hw(b),
|
|
14778
14818
|
"data-disabled": c ? "" : void 0,
|
|
14779
14819
|
disabled: c,
|
|
14780
14820
|
value: l,
|
|
@@ -14783,7 +14823,7 @@ var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14783
14823
|
onClick: Q(t.onClick, (e) => {
|
|
14784
14824
|
x((e) => !e), y && (v.current = e.isPropagationStopped(), v.current || e.stopPropagation());
|
|
14785
14825
|
})
|
|
14786
|
-
}), y && /* @__PURE__ */ h(
|
|
14826
|
+
}), y && /* @__PURE__ */ h(Vw, {
|
|
14787
14827
|
control: p,
|
|
14788
14828
|
bubbles: !v.current,
|
|
14789
14829
|
name: i,
|
|
@@ -14796,18 +14836,18 @@ var kw = /* @__PURE__ */ t.forwardRef(function(e, n) {
|
|
|
14796
14836
|
})]
|
|
14797
14837
|
});
|
|
14798
14838
|
});
|
|
14799
|
-
|
|
14800
|
-
var
|
|
14801
|
-
let { __scopeSwitch: n, ...r } = e, i =
|
|
14839
|
+
Lw.displayName = Mw;
|
|
14840
|
+
var Rw = "SwitchThumb", zw = e.forwardRef((e, t) => {
|
|
14841
|
+
let { __scopeSwitch: n, ...r } = e, i = Iw(Rw, n);
|
|
14802
14842
|
return /* @__PURE__ */ h($.span, {
|
|
14803
|
-
"data-state":
|
|
14843
|
+
"data-state": Hw(i.checked),
|
|
14804
14844
|
"data-disabled": i.disabled ? "" : void 0,
|
|
14805
14845
|
...r,
|
|
14806
14846
|
ref: t
|
|
14807
14847
|
});
|
|
14808
14848
|
});
|
|
14809
|
-
|
|
14810
|
-
var
|
|
14849
|
+
zw.displayName = Rw;
|
|
14850
|
+
var Bw = "SwitchBubbleInput", Vw = e.forwardRef(({ __scopeSwitch: t, control: n, checked: r, bubbles: i = !0, ...a }, o) => {
|
|
14811
14851
|
let s = e.useRef(null), c = O(s, o), l = Bo(r), u = Vo(n);
|
|
14812
14852
|
return e.useEffect(() => {
|
|
14813
14853
|
let e = s.current;
|
|
@@ -14838,19 +14878,19 @@ var zw = "SwitchBubbleInput", Bw = e.forwardRef(({ __scopeSwitch: t, control: n,
|
|
|
14838
14878
|
}
|
|
14839
14879
|
});
|
|
14840
14880
|
});
|
|
14841
|
-
|
|
14842
|
-
function
|
|
14881
|
+
Vw.displayName = Bw;
|
|
14882
|
+
function Hw(e) {
|
|
14843
14883
|
return e ? "checked" : "unchecked";
|
|
14844
14884
|
}
|
|
14845
|
-
var
|
|
14885
|
+
var Uw = Lw, Ww = zw;
|
|
14846
14886
|
//#endregion
|
|
14847
14887
|
//#region src/components/Switch.tsx
|
|
14848
|
-
function
|
|
14849
|
-
return /* @__PURE__ */ h(
|
|
14888
|
+
function Gw({ className: e, ...t }) {
|
|
14889
|
+
return /* @__PURE__ */ h(Uw, {
|
|
14850
14890
|
"data-slot": "switch",
|
|
14851
14891
|
className: q("group", "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs", "transition-[background-color] duration-200", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px]", "disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:bg-primary data-[state=unchecked]:bg-default", e),
|
|
14852
14892
|
...t,
|
|
14853
|
-
children: /* @__PURE__ */ h(
|
|
14893
|
+
children: /* @__PURE__ */ h(Ww, {
|
|
14854
14894
|
"data-slot": "switch-thumb",
|
|
14855
14895
|
className: q("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0", "transition-[transform,width] duration-200", "data-[state=unchecked]:translate-x-0", "data-[state=checked]:translate-x-4", "group-active:w-5", "group-active:data-[state=checked]:translate-x-3"),
|
|
14856
14896
|
style: { transitionTimingFunction: "cubic-bezier(0.2, 0, 0, 1)" }
|
|
@@ -14859,56 +14899,56 @@ function Ww({ className: e, ...t }) {
|
|
|
14859
14899
|
}
|
|
14860
14900
|
//#endregion
|
|
14861
14901
|
//#region src/components/Table.tsx
|
|
14862
|
-
function
|
|
14902
|
+
function Kw({ className: e, ...t }) {
|
|
14863
14903
|
return /* @__PURE__ */ h("table", {
|
|
14864
14904
|
"data-slot": "table",
|
|
14865
14905
|
className: q("w-full caption-bottom text-sm", e),
|
|
14866
14906
|
...t
|
|
14867
14907
|
});
|
|
14868
14908
|
}
|
|
14869
|
-
function
|
|
14909
|
+
function qw({ className: e, ...t }) {
|
|
14870
14910
|
return /* @__PURE__ */ h("thead", {
|
|
14871
14911
|
"data-slot": "table-header",
|
|
14872
14912
|
className: q("[&_tr]:border-b bg-background", e),
|
|
14873
14913
|
...t
|
|
14874
14914
|
});
|
|
14875
14915
|
}
|
|
14876
|
-
function
|
|
14916
|
+
function Jw({ className: e, ...t }) {
|
|
14877
14917
|
return /* @__PURE__ */ h("tbody", {
|
|
14878
14918
|
"data-slot": "table-body",
|
|
14879
14919
|
className: q("[&_tr:last-child]:border-0", e),
|
|
14880
14920
|
...t
|
|
14881
14921
|
});
|
|
14882
14922
|
}
|
|
14883
|
-
function
|
|
14923
|
+
function Yw({ className: e, ...t }) {
|
|
14884
14924
|
return /* @__PURE__ */ h("tfoot", {
|
|
14885
14925
|
"data-slot": "table-footer",
|
|
14886
14926
|
className: q("bg-background border-t font-bold [&>tr]:last:border-b-0", e),
|
|
14887
14927
|
...t
|
|
14888
14928
|
});
|
|
14889
14929
|
}
|
|
14890
|
-
function
|
|
14930
|
+
function Xw({ className: e, ...t }) {
|
|
14891
14931
|
return /* @__PURE__ */ h("tr", {
|
|
14892
14932
|
"data-slot": "table-row",
|
|
14893
14933
|
className: q("hover:bg-elevated/30 data-[state=selected]:bg-elevated/70 border-b transition-colors", e),
|
|
14894
14934
|
...t
|
|
14895
14935
|
});
|
|
14896
14936
|
}
|
|
14897
|
-
function
|
|
14937
|
+
function Zw({ className: e, ...t }) {
|
|
14898
14938
|
return /* @__PURE__ */ h("th", {
|
|
14899
14939
|
"data-slot": "table-head",
|
|
14900
14940
|
className: q("text-foreground font-bold h-10 px-2 py-3 text-left align-middle whitespace-nowrap border-r border-border last:border-r-0 [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5", e),
|
|
14901
14941
|
...t
|
|
14902
14942
|
});
|
|
14903
14943
|
}
|
|
14904
|
-
function
|
|
14944
|
+
function Qw({ className: e, ...t }) {
|
|
14905
14945
|
return /* @__PURE__ */ h("td", {
|
|
14906
14946
|
"data-slot": "table-cell",
|
|
14907
14947
|
className: q("px-2 py-3 align-middle whitespace-nowrap border-r border-border last:border-r-0 [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5", e),
|
|
14908
14948
|
...t
|
|
14909
14949
|
});
|
|
14910
14950
|
}
|
|
14911
|
-
function
|
|
14951
|
+
function $w({ className: e, ...t }) {
|
|
14912
14952
|
return /* @__PURE__ */ h("caption", {
|
|
14913
14953
|
"data-slot": "table-caption",
|
|
14914
14954
|
className: q("text-muted my-4 text-sm", e),
|
|
@@ -14917,14 +14957,14 @@ function Qw({ className: e, ...t }) {
|
|
|
14917
14957
|
}
|
|
14918
14958
|
//#endregion
|
|
14919
14959
|
//#region node_modules/@radix-ui/react-tabs/dist/index.mjs
|
|
14920
|
-
var
|
|
14960
|
+
var eT = "Tabs", [tT, nT] = No(eT, [Th]), rT = Th(), [iT, aT] = tT(eT), oT = e.forwardRef((e, t) => {
|
|
14921
14961
|
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = _h(s), [d, f] = Lo({
|
|
14922
14962
|
prop: r,
|
|
14923
14963
|
onChange: i,
|
|
14924
14964
|
defaultProp: a ?? "",
|
|
14925
|
-
caller:
|
|
14965
|
+
caller: eT
|
|
14926
14966
|
});
|
|
14927
|
-
return /* @__PURE__ */ h(
|
|
14967
|
+
return /* @__PURE__ */ h(iT, {
|
|
14928
14968
|
scope: n,
|
|
14929
14969
|
baseId: Ps(),
|
|
14930
14970
|
value: d,
|
|
@@ -14940,12 +14980,12 @@ var $w = "Tabs", [eT, tT] = No($w, [Th]), nT = Th(), [rT, iT] = eT($w), aT = e.f
|
|
|
14940
14980
|
})
|
|
14941
14981
|
});
|
|
14942
14982
|
});
|
|
14943
|
-
|
|
14944
|
-
var
|
|
14945
|
-
let { __scopeTabs: n, loop: r = !0, ...i } = e, a =
|
|
14983
|
+
oT.displayName = eT;
|
|
14984
|
+
var sT = "TabsList", cT = e.forwardRef((e, t) => {
|
|
14985
|
+
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = aT(sT, n);
|
|
14946
14986
|
return /* @__PURE__ */ h(Lh, {
|
|
14947
14987
|
asChild: !0,
|
|
14948
|
-
...
|
|
14988
|
+
...rT(n),
|
|
14949
14989
|
orientation: a.orientation,
|
|
14950
14990
|
dir: a.dir,
|
|
14951
14991
|
loop: r,
|
|
@@ -14957,9 +14997,9 @@ var oT = "TabsList", sT = e.forwardRef((e, t) => {
|
|
|
14957
14997
|
})
|
|
14958
14998
|
});
|
|
14959
14999
|
});
|
|
14960
|
-
|
|
14961
|
-
var
|
|
14962
|
-
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o =
|
|
15000
|
+
cT.displayName = sT;
|
|
15001
|
+
var lT = "TabsTrigger", uT = e.forwardRef((e, t) => {
|
|
15002
|
+
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = aT(lT, n), s = rT(n), c = pT(o.baseId, r), l = mT(o.baseId, r), u = r === o.value;
|
|
14963
15003
|
return /* @__PURE__ */ h(Rh, {
|
|
14964
15004
|
asChild: !0,
|
|
14965
15005
|
...s,
|
|
@@ -14989,9 +15029,9 @@ var cT = "TabsTrigger", lT = e.forwardRef((e, t) => {
|
|
|
14989
15029
|
})
|
|
14990
15030
|
});
|
|
14991
15031
|
});
|
|
14992
|
-
|
|
14993
|
-
var
|
|
14994
|
-
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = t, c =
|
|
15032
|
+
uT.displayName = lT;
|
|
15033
|
+
var dT = "TabsContent", fT = e.forwardRef((t, n) => {
|
|
15034
|
+
let { __scopeTabs: r, value: i, forceMount: a, children: o, ...s } = t, c = aT(dT, r), l = pT(c.baseId, i), u = mT(c.baseId, i), d = i === c.value, f = e.useRef(d);
|
|
14995
15035
|
return e.useEffect(() => {
|
|
14996
15036
|
let e = requestAnimationFrame(() => f.current = !1);
|
|
14997
15037
|
return () => cancelAnimationFrame(e);
|
|
@@ -15015,18 +15055,18 @@ var uT = "TabsContent", dT = e.forwardRef((t, n) => {
|
|
|
15015
15055
|
})
|
|
15016
15056
|
});
|
|
15017
15057
|
});
|
|
15018
|
-
|
|
15019
|
-
function
|
|
15058
|
+
fT.displayName = dT;
|
|
15059
|
+
function pT(e, t) {
|
|
15020
15060
|
return `${e}-trigger-${t}`;
|
|
15021
15061
|
}
|
|
15022
|
-
function
|
|
15062
|
+
function mT(e, t) {
|
|
15023
15063
|
return `${e}-content-${t}`;
|
|
15024
15064
|
}
|
|
15025
|
-
var
|
|
15065
|
+
var hT = oT, gT = cT, _T = uT, vT = fT;
|
|
15026
15066
|
//#endregion
|
|
15027
15067
|
//#region src/components/Tabs.tsx
|
|
15028
|
-
function
|
|
15029
|
-
return /* @__PURE__ */ h(
|
|
15068
|
+
function yT({ className: e, orientation: t = "horizontal", ...n }) {
|
|
15069
|
+
return /* @__PURE__ */ h(hT, {
|
|
15030
15070
|
"data-slot": "tabs",
|
|
15031
15071
|
"data-orientation": t,
|
|
15032
15072
|
orientation: t,
|
|
@@ -15034,14 +15074,14 @@ function vT({ className: e, orientation: t = "horizontal", ...n }) {
|
|
|
15034
15074
|
...n
|
|
15035
15075
|
});
|
|
15036
15076
|
}
|
|
15037
|
-
var
|
|
15077
|
+
var bT = T("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col group-data-[orientation=vertical]/tabs:rounded-xl data-[variant=line]:rounded-none", {
|
|
15038
15078
|
variants: { variant: {
|
|
15039
15079
|
default: "shadow-md rounded-full dark:border",
|
|
15040
15080
|
line: "gap-1 bg-transparent"
|
|
15041
15081
|
} },
|
|
15042
15082
|
defaultVariants: { variant: "default" }
|
|
15043
15083
|
});
|
|
15044
|
-
function
|
|
15084
|
+
function xT({ className: e, variant: t = "default", children: n, ...r }) {
|
|
15045
15085
|
let i = f(null), a = f(null);
|
|
15046
15086
|
function o() {
|
|
15047
15087
|
let e = i.current, t = a.current;
|
|
@@ -15059,11 +15099,11 @@ function bT({ className: e, variant: t = "default", children: n, ...r }) {
|
|
|
15059
15099
|
subtree: !0,
|
|
15060
15100
|
attributeFilter: ["data-state"]
|
|
15061
15101
|
}), () => t.disconnect();
|
|
15062
|
-
}, []), /* @__PURE__ */ g(
|
|
15102
|
+
}, []), /* @__PURE__ */ g(gT, {
|
|
15063
15103
|
ref: i,
|
|
15064
15104
|
"data-slot": "tabs-list",
|
|
15065
15105
|
"data-variant": t,
|
|
15066
|
-
className: q(
|
|
15106
|
+
className: q(bT({ variant: t }), "relative overflow-hidden", e),
|
|
15067
15107
|
...r,
|
|
15068
15108
|
children: [t === "default" && /* @__PURE__ */ h("div", {
|
|
15069
15109
|
ref: a,
|
|
@@ -15073,15 +15113,15 @@ function bT({ className: e, variant: t = "default", children: n, ...r }) {
|
|
|
15073
15113
|
}), n]
|
|
15074
15114
|
});
|
|
15075
15115
|
}
|
|
15076
|
-
function
|
|
15077
|
-
return /* @__PURE__ */ h(
|
|
15116
|
+
function ST({ className: e, ...t }) {
|
|
15117
|
+
return /* @__PURE__ */ h(_T, {
|
|
15078
15118
|
"data-slot": "tabs-trigger",
|
|
15079
15119
|
className: q("cursor-pointer relative z-10 inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-full border border-transparent px-3 py-2 text-sm font-medium whitespace-nowrap text-foreground/60 transition-colors duration-200 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px] disabled:pointer-events-none disabled:opacity-50 group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\"size-\"])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "group-data-[variant=default]/tabs-list:data-[state=active]:bg-transparent group-data-[variant=default]/tabs-list:data-[state=active]:shadow-none data-[state=active]:text-foreground dark:data-[state=active]:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-1.25 group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", e),
|
|
15080
15120
|
...t
|
|
15081
15121
|
});
|
|
15082
15122
|
}
|
|
15083
|
-
function
|
|
15084
|
-
return /* @__PURE__ */ h(
|
|
15123
|
+
function CT({ className: e, ...t }) {
|
|
15124
|
+
return /* @__PURE__ */ h(vT, {
|
|
15085
15125
|
"data-slot": "tabs-content",
|
|
15086
15126
|
className: q("flex-1 outline-none", "data-[state=active]:animate-in data-[state=active]:fade-in-0 data-[state=active]:slide-in-from-bottom-3 data-[state=active]:duration-300", e),
|
|
15087
15127
|
...t
|
|
@@ -15089,7 +15129,7 @@ function ST({ className: e, ...t }) {
|
|
|
15089
15129
|
}
|
|
15090
15130
|
//#endregion
|
|
15091
15131
|
//#region src/components/Timer.tsx
|
|
15092
|
-
function
|
|
15132
|
+
function wT({ remainingTime: e, onTimeUp: t }) {
|
|
15093
15133
|
let [n, r] = p(e ?? 0), i = f(null), o = f(t), c = f(!1), l = f(e);
|
|
15094
15134
|
s(() => {
|
|
15095
15135
|
o.current = t;
|
|
@@ -15130,7 +15170,7 @@ function CT({ remainingTime: e, onTimeUp: t }) {
|
|
|
15130
15170
|
}
|
|
15131
15171
|
//#endregion
|
|
15132
15172
|
//#region src/components/ValidatePassword.tsx
|
|
15133
|
-
function
|
|
15173
|
+
function TT({ password: e }) {
|
|
15134
15174
|
function t(e) {
|
|
15135
15175
|
return e.length >= 8;
|
|
15136
15176
|
}
|
|
@@ -15180,7 +15220,7 @@ function wT({ password: e }) {
|
|
|
15180
15220
|
}
|
|
15181
15221
|
//#endregion
|
|
15182
15222
|
//#region src/lib/ThemeTokensProvider.tsx
|
|
15183
|
-
var
|
|
15223
|
+
var ET = n(void 0), DT = () => o(ET), OT = ({ children: e, tokens: n }) => (t.useEffect(() => {
|
|
15184
15224
|
if (!n) return;
|
|
15185
15225
|
let e = "wmoney-theme-tokens", t = document.getElementById(e);
|
|
15186
15226
|
t || (t = document.createElement("style"), t.id = e, document.head.appendChild(t));
|
|
@@ -15191,11 +15231,11 @@ var TT = n(void 0), ET = () => o(TT), DT = ({ children: e, tokens: n }) => (t.us
|
|
|
15191
15231
|
return t.textContent = i, () => {
|
|
15192
15232
|
t?.remove();
|
|
15193
15233
|
};
|
|
15194
|
-
}, [n]), /* @__PURE__ */ h(
|
|
15234
|
+
}, [n]), /* @__PURE__ */ h(ET.Provider, {
|
|
15195
15235
|
value: n,
|
|
15196
15236
|
children: e
|
|
15197
15237
|
}));
|
|
15198
15238
|
//#endregion
|
|
15199
|
-
export { xt as Badge, sn as Button, So as Calendar, Co as CalendarDayButton, wo as Card, ko as CardAction, Ao as CardContent, Oo as CardDescription, jo as CardFooter, To as CardHeader, Eo as CardIcon, Do as CardTitle, gs as Checkbox, yd as Command, bd as CommandDialog, Cd as CommandEmpty, wd as CommandGroup, xd as CommandInput, Ed as CommandItem, Sd as CommandList, Td as CommandSeparator, Dd as CommandShortcut, sh as DatePicker, ch as DatePickerWithRange, ld as Dialog, fd as DialogClose, md as DialogContent, vd as DialogDescription, gd as DialogFooter, hd as DialogHeader, pd as DialogOverlay, dd as DialogPortal, _d as DialogTitle, ud as DialogTrigger, wv as DropdownMenu, Av as DropdownMenuCheckboxItem, Dv as DropdownMenuContent, Ov as DropdownMenuGroup, kv as DropdownMenuItem, Nv as DropdownMenuLabel, Tv as DropdownMenuPortal, jv as DropdownMenuRadioGroup, Mv as DropdownMenuRadioItem, Pv as DropdownMenuSeparator, Fv as DropdownMenuShortcut, Iv as DropdownMenuSub, Rv as DropdownMenuSubContent, Lv as DropdownMenuSubTrigger, Ev as DropdownMenuTrigger, zv as FileDropzone,
|
|
15239
|
+
export { xt as Badge, sn as Button, So as Calendar, Co as CalendarDayButton, wo as Card, ko as CardAction, Ao as CardContent, Oo as CardDescription, jo as CardFooter, To as CardHeader, Eo as CardIcon, Do as CardTitle, gs as Checkbox, yd as Command, bd as CommandDialog, Cd as CommandEmpty, wd as CommandGroup, xd as CommandInput, Ed as CommandItem, Sd as CommandList, Td as CommandSeparator, Dd as CommandShortcut, sh as DatePicker, ch as DatePickerWithRange, ld as Dialog, fd as DialogClose, md as DialogContent, vd as DialogDescription, gd as DialogFooter, hd as DialogHeader, pd as DialogOverlay, dd as DialogPortal, _d as DialogTitle, ud as DialogTrigger, wv as DropdownMenu, Av as DropdownMenuCheckboxItem, Dv as DropdownMenuContent, Ov as DropdownMenuGroup, kv as DropdownMenuItem, Nv as DropdownMenuLabel, Tv as DropdownMenuPortal, jv as DropdownMenuRadioGroup, Mv as DropdownMenuRadioItem, Pv as DropdownMenuSeparator, Fv as DropdownMenuShortcut, Iv as DropdownMenuSub, Rv as DropdownMenuSubContent, Lv as DropdownMenuSubTrigger, Ev as DropdownMenuTrigger, zv as FileDropzone, Zv as FileInput, oy as FormSection, Bv as Input, Hv as InputGroup, Wv as InputGroupAddon, Kv as InputGroupButton, Yv as InputGroupInput, qv as InputGroupSlot, Jv as InputGroupText, Xv as InputGroupTextarea, ky as InputOtp, Ay as InputOtpGroup, Oy as InputOtpPattern, My as InputOtpSeparator, jy as InputOtpSlot, Md as Label, Py as MultiSelect, Fy as Pagination, Iy as PaginationContent, Vy as PaginationEllipsis, Ly as PaginationItem, Ry as PaginationLink, By as PaginationNext, zy as PaginationPrevious, Rx as Paginator, zx as PasswordToggle, eh as Popover, rh as PopoverAnchor, nh as PopoverContent, oh as PopoverDescription, ih as PopoverHeader, ah as PopoverTitle, th as PopoverTrigger, pS as RadioGroup, mS as RadioGroupItem, Dx as Select, Nx as SelectContent, Ox as SelectGroup, Fx as SelectItem, Px as SelectLabel, Mx as SelectScrollDownButton, jx as SelectScrollUpButton, Ix as SelectSeparator, Ax as SelectTrigger, kx as SelectValue, ay as Separator, hS as Sheet, _S as SheetClose, bS as SheetContent, wS as SheetDescription, SS as SheetFooter, xS as SheetHeader, CS as SheetTitle, gS as SheetTrigger, kC as Sidebar, LC as SidebarContent, FC as SidebarFooter, RC as SidebarGroup, BC as SidebarGroupAction, VC as SidebarGroupContent, zC as SidebarGroupLabel, PC as SidebarHeader, NC as SidebarInput, MC as SidebarInset, HC as SidebarMenu, KC as SidebarMenuAction, qC as SidebarMenuBadge, GC as SidebarMenuButton, UC as SidebarMenuItem, JC as SidebarMenuSkeleton, YC as SidebarMenuSub, ZC as SidebarMenuSubButton, XC as SidebarMenuSubItem, OC as SidebarProvider, jC as SidebarRail, IC as SidebarSeparator, AC as SidebarTrigger, TS as Skeleton, nn as Spinner, Gw as Switch, Kw as Table, Jw as TableBody, $w as TableCaption, Qw as TableCell, Yw as TableFooter, Zw as TableHead, qw as TableHeader, Xw as TableRow, yT as Tabs, CT as TabsContent, xT as TabsList, ST as TabsTrigger, Vv as Textarea, OT as ThemeTokensProvider, wT as Timer, jw as Toaster, hC as Tooltip, _C as TooltipContent, mC as TooltipProvider, gC as TooltipTrigger, TT as ValidatePassword, rn as buttonVariants, q as cn, yt as getCSSVariable, bT as tabsListVariants, yC as useIsMobile, DC as useSidebar, DT as useThemeTokens };
|
|
15200
15240
|
|
|
15201
15241
|
//# sourceMappingURL=index.js.map
|