@devalok/shilp-sutra-karm 0.20.2 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/chat-panel.js +51 -51
- package/dist/_chunks/kanban-board.js +40 -39
- package/dist/_chunks/markdown-components.js +15 -15
- package/dist/_chunks/project-card.js +25 -25
- package/dist/_chunks/render-adjustment-type.js +190 -190
- package/dist/_chunks/sidebar-scratchpad.js +225 -224
- package/dist/_chunks/task-detail-panel.js +362 -350
- package/dist/_chunks/vendor-dnd.js +3353 -0
- package/dist/_chunks/vendor-markdown.js +4939 -0
- package/dist/_chunks/vendor-utils.js +3264 -0
- package/dist/dashboard/index.js +80 -80
- package/dist/index.js +8 -8
- package/dist/tasks/index.js +205 -205
- package/dist/tasks/task-detail-panel.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/_chunks/vendor.js +0 -11522
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { jsx as e, jsxs as a, Fragment as Q } from "react/jsx-runtime";
|
|
3
3
|
import * as _ from "react";
|
|
4
4
|
import Ee, { useState as B, useEffect as se, useRef as Pe, useCallback as $, Fragment as bs, useReducer as qs, useMemo as Be, createContext as gs, useContext as ws } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { cn as
|
|
5
|
+
import { x as Us, y as et, z as He, A as st, B as Z, C as O, D as tt, E as Re, F as at, G as Ns, H as Je, I as ys, w as rt, J as ee, K as dt, L as vs, M as lt, N as ls, O as nt } from "./vendor-utils.js";
|
|
6
|
+
import { cn as v } from "@devalok/shilp-sutra/ui/lib/utils";
|
|
7
7
|
import { Skeleton as R } from "@devalok/shilp-sutra/ui/skeleton";
|
|
8
8
|
import { DropdownMenu as ge, DropdownMenuTrigger as we, DropdownMenuContent as Te, DropdownMenuItem as be } from "@devalok/shilp-sutra/ui/dropdown-menu";
|
|
9
9
|
import { IconButton as X } from "@devalok/shilp-sutra/ui/icon-button";
|
|
10
|
-
import { IconChevronDown as oe, IconChevronLeft as Ne, IconChevronRight as ye, IconX as me, IconUser as
|
|
10
|
+
import { IconChevronDown as oe, IconChevronLeft as Ne, IconChevronRight as ye, IconX as me, IconUser as Ds, IconPencil as Ge, IconSend as Es, IconGripVertical as ns, IconSquareCheck as it, IconSquare as ct, IconPlus as ot, IconCheck as Ze, IconTrash as mt, IconArrowRight as ut, IconDotsVertical as ft, IconCalendar as xt, IconCalendarEvent as ht } from "@tabler/icons-react";
|
|
11
11
|
import { Button as J } from "@devalok/shilp-sutra/ui/button";
|
|
12
12
|
import { SegmentedControl as ks } from "@devalok/shilp-sutra/ui/segmented-control";
|
|
13
13
|
import { AvatarGroup as is } from "@devalok/shilp-sutra/composed/avatar-group";
|
|
14
|
-
import { Dialog as ue, DialogTrigger as
|
|
14
|
+
import { Dialog as ue, DialogTrigger as ve, DialogContent as fe, DialogHeader as De, DialogFooter as $e, DialogClose as Ke, DialogTitle as pt, DialogDescription as Xe } from "@devalok/shilp-sutra/ui/dialog";
|
|
15
15
|
import { Checkbox as cs } from "@devalok/shilp-sutra/ui/checkbox";
|
|
16
16
|
import { Avatar as Qe, AvatarImage as Le, AvatarFallback as qe } from "@devalok/shilp-sutra/ui/avatar";
|
|
17
17
|
import { Tooltip as de, TooltipTrigger as le, TooltipContent as ne } from "@devalok/shilp-sutra/ui/tooltip";
|
|
@@ -19,24 +19,24 @@ import { useIsMobile as bt } from "@devalok/shilp-sutra/hooks/use-mobile";
|
|
|
19
19
|
import { toast as V } from "@devalok/shilp-sutra/ui/toast";
|
|
20
20
|
import { Textarea as gt } from "@devalok/shilp-sutra/ui/textarea";
|
|
21
21
|
import { Popover as wt, PopoverTrigger as Nt, PopoverContent as yt } from "@devalok/shilp-sutra/ui/popover";
|
|
22
|
-
import { Badge as
|
|
22
|
+
import { Badge as vt, Tooltip as Dt, TooltipTrigger as Et, TooltipContent as kt } from "@devalok/shilp-sutra/ui";
|
|
23
23
|
import { NumberInput as Ct } from "@devalok/shilp-sutra/ui/number-input";
|
|
24
24
|
const Cs = _.forwardRef(
|
|
25
25
|
function({ className: s, ...l }, t) {
|
|
26
|
-
return /* @__PURE__ */ e("div", { ref: t, className:
|
|
26
|
+
return /* @__PURE__ */ e("div", { ref: t, className: v("flex w-full max-w-layout flex-col items-center justify-center max-md:h-[100%] max-md:justify-start", s), ...l, children: /* @__PURE__ */ a("div", { className: "z-raised flex w-full flex-col items-start justify-start rounded-ds-lg border border-surface-border-strong bg-surface-raised p-ds-05 shadow-overlay max-md:flex-1 max-md:min-h-0 max-md:overflow-y-auto max-md:border-0 max-md:px-ds-05 max-md:pb-0 max-md:pt-ds-06", children: [
|
|
27
27
|
/* @__PURE__ */ a("div", { className: "mb-ds-06 flex w-full flex-col items-start justify-between md:flex-row md:items-center", children: [
|
|
28
28
|
/* @__PURE__ */ e(ge, { children: /* @__PURE__ */ a(we, { className: "text-ds-xl flex items-center gap-ds-03 text-surface-fg-muted", "aria-label": "Select period", children: [
|
|
29
29
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
|
|
30
|
-
/* @__PURE__ */ e(R, { className: "h-[25px] w-[50px] rounded-ds-md bg-surface-
|
|
31
|
-
/* @__PURE__ */ e(R, { className: "h-[25px] w-[50px] rounded-ds-md bg-surface-
|
|
30
|
+
/* @__PURE__ */ e(R, { className: "h-[25px] w-[50px] rounded-ds-md bg-surface-raised-hover" }),
|
|
31
|
+
/* @__PURE__ */ e(R, { className: "h-[25px] w-[50px] rounded-ds-md bg-surface-raised-hover" })
|
|
32
32
|
] }),
|
|
33
33
|
/* @__PURE__ */ e(oe, {})
|
|
34
34
|
] }) }),
|
|
35
35
|
/* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between gap-ds-05 md:mt-0 md:w-auto md:justify-start max-md:mt-[17px] max-lg:gap-[0.5rem]", children: [
|
|
36
36
|
/* @__PURE__ */ e("div", { className: "hidden md:flex", children: /* @__PURE__ */ e(R, { className: "h-ds-sm w-[180px] rounded-ds-md" }) }),
|
|
37
37
|
/* @__PURE__ */ a("div", { className: "flex w-[200px] items-center justify-between overflow-clip rounded-ds-full border border-surface-border", children: [
|
|
38
|
-
/* @__PURE__ */ e("div", { className: "flex h-ds-sm w-[100px] items-center justify-center rounded-r-none bg-surface-
|
|
39
|
-
/* @__PURE__ */ e("div", { className: "flex h-ds-sm w-[100px] items-center justify-center", children: /* @__PURE__ */ e(R, { className: "h-[20px] w-[40px] bg-surface-
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "flex h-ds-sm w-[100px] items-center justify-center rounded-r-none bg-surface-raised-hover", children: /* @__PURE__ */ e(R, { className: "h-[20px] w-[40px] rounded-r-none bg-surface-raised-hover" }) }),
|
|
39
|
+
/* @__PURE__ */ e("div", { className: "flex h-ds-sm w-[100px] items-center justify-center", children: /* @__PURE__ */ e(R, { className: "h-[20px] w-[40px] bg-surface-raised-hover" }) })
|
|
40
40
|
] }),
|
|
41
41
|
/* @__PURE__ */ a("div", { className: "flex gap-0", children: [
|
|
42
42
|
/* @__PURE__ */ e(X, { icon: /* @__PURE__ */ e(Ne, {}), size: "sm", "aria-label": "Previous" }),
|
|
@@ -58,13 +58,13 @@ const Cs = _.forwardRef(
|
|
|
58
58
|
{
|
|
59
59
|
className: "flex w-full flex-col items-center rounded-t-ds-lg pb-ds-04 pt-ds-05 max-md:rounded-ds-lg",
|
|
60
60
|
children: [
|
|
61
|
-
/* @__PURE__ */ e(R, { className: "mb-ds-03 h-[10px] w-[10px] rounded-ds-lg bg-surface-
|
|
62
|
-
/* @__PURE__ */ e("div", { className: "mx-ds-02 my-ds-02 flex items-center justify-center", children: /* @__PURE__ */ e(R, { className: "h-ds-md w-ds-md rounded-ds-full bg-surface-
|
|
61
|
+
/* @__PURE__ */ e(R, { className: "mb-ds-03 h-[10px] w-[10px] rounded-ds-lg bg-surface-raised-hover" }),
|
|
62
|
+
/* @__PURE__ */ e("div", { className: "mx-ds-02 my-ds-02 flex items-center justify-center", children: /* @__PURE__ */ e(R, { className: "h-ds-md w-ds-md rounded-ds-full bg-surface-raised-hover" }) })
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
o
|
|
66
66
|
)) }),
|
|
67
|
-
/* @__PURE__ */ a("div", { className: "flex w-full flex-col rounded-ds-lg bg-surface-
|
|
67
|
+
/* @__PURE__ */ a("div", { className: "flex w-full flex-col rounded-ds-lg bg-surface-raised md:p-ds-06 max-md:bg-transparent", children: [
|
|
68
68
|
/* @__PURE__ */ e("div", { className: "no-scrollbar w-full cursor-grab overflow-x-auto active:cursor-grabbing max-md:pb-ds-05", children: /* @__PURE__ */ e(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
@@ -72,13 +72,13 @@ const Cs = _.forwardRef(
|
|
|
72
72
|
children: Array.from({ length: 3 }).map((i, o) => /* @__PURE__ */ a(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
75
|
-
className:
|
|
75
|
+
className: v("flex w-full flex-col gap-ds-04 rounded-ds-md bg-surface-raised p-ds-06 md:rounded-ds-lg md:p-ds-05", o !== 2 ? "border-r border-surface-border-strong" : "", "max-md:border-0 max-md:p-ds-05", "min-w-[200px]"),
|
|
76
76
|
children: [
|
|
77
|
-
/* @__PURE__ */ e(R, { className: "h-[20px] w-[120px] rounded-ds-md bg-surface-
|
|
77
|
+
/* @__PURE__ */ e(R, { className: "h-[20px] w-[120px] rounded-ds-md bg-surface-raised-hover" }),
|
|
78
78
|
/* @__PURE__ */ e("div", { className: "flex flex-wrap items-center gap-ds-03", children: Array.from({ length: 4 }).map((c, h) => /* @__PURE__ */ e(
|
|
79
79
|
R,
|
|
80
80
|
{
|
|
81
|
-
className:
|
|
81
|
+
className: v("h-ds-md w-ds-md rounded-ds-full bg-surface-raised-hover", h > 0 ? "ml-[-5px]" : "")
|
|
82
82
|
},
|
|
83
83
|
h
|
|
84
84
|
)) })
|
|
@@ -88,26 +88,26 @@ const Cs = _.forwardRef(
|
|
|
88
88
|
))
|
|
89
89
|
}
|
|
90
90
|
) }),
|
|
91
|
-
/* @__PURE__ */ e("div", { className: "w-full p-0 md:p-ds-06", children: /* @__PURE__ */ a("div", { className: "max-md:pt-[16px] flex flex-col items-start overflow-hidden rounded-ds-lg border-0 border-surface-border bg-surface-
|
|
91
|
+
/* @__PURE__ */ e("div", { className: "w-full p-0 md:p-ds-06", children: /* @__PURE__ */ a("div", { className: "max-md:pt-[16px] flex flex-col items-start overflow-hidden rounded-ds-lg border-0 border-surface-border bg-surface-raised shadow-raised pt-ds-03 md:border max-md:pb-0", children: [
|
|
92
92
|
/* @__PURE__ */ a("div", { className: "flex w-full items-start border-b-[1px] border-b-surface-border px-ds-06 md:border-b max-md:border-0 max-md:px-0", children: [
|
|
93
93
|
/* @__PURE__ */ e("div", { className: "text-ds-sm font-semibold uppercase tracking-wider cursor-pointer border-b-[1.5px] border-b-accent-9 px-ds-03 py-ds-04 font-semibold text-surface-fg", children: "REQUESTS(1)" }),
|
|
94
94
|
/* @__PURE__ */ e("div", { className: "text-ds-sm font-semibold uppercase tracking-wider cursor-pointer px-ds-03 py-ds-04 text-surface-fg-subtle", children: "ATTENDANCE CORRECTION(1)" })
|
|
95
95
|
] }),
|
|
96
|
-
/* @__PURE__ */ e("div", { className: "flex max-h-[200px] w-full flex-col overflow-y-auto bg-surface-
|
|
96
|
+
/* @__PURE__ */ e("div", { className: "flex max-h-[200px] w-full flex-col overflow-y-auto bg-surface-raised px-ds-06 max-md:flex-1 max-md:max-h-none max-md:min-h-[372px] max-md:p-0", children: Array.from({ length: 2 }).map((i, o) => /* @__PURE__ */ a(
|
|
97
97
|
"div",
|
|
98
98
|
{
|
|
99
99
|
className: "flex items-center justify-between px-ds-03 py-ds-04",
|
|
100
100
|
children: [
|
|
101
101
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-04", children: [
|
|
102
|
-
/* @__PURE__ */ e(R, { className: "h-ds-md w-ds-md rounded-ds-full bg-surface-
|
|
102
|
+
/* @__PURE__ */ e(R, { className: "h-ds-md w-ds-md rounded-ds-full bg-surface-raised-hover" }),
|
|
103
103
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-02", children: [
|
|
104
|
-
/* @__PURE__ */ e(R, { className: "h-[20px] w-[120px] rounded-ds-md bg-surface-
|
|
105
|
-
/* @__PURE__ */ e(R, { className: "h-[20px] w-[200px] rounded-ds-md bg-surface-
|
|
104
|
+
/* @__PURE__ */ e(R, { className: "h-[20px] w-[120px] rounded-ds-md bg-surface-raised-hover" }),
|
|
105
|
+
/* @__PURE__ */ e(R, { className: "h-[20px] w-[200px] rounded-ds-md bg-surface-raised-hover" })
|
|
106
106
|
] })
|
|
107
107
|
] }),
|
|
108
108
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-04", children: [
|
|
109
|
-
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-
|
|
110
|
-
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-
|
|
109
|
+
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-raised-hover" }),
|
|
110
|
+
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-raised-hover" })
|
|
111
111
|
] })
|
|
112
112
|
]
|
|
113
113
|
},
|
|
@@ -136,7 +136,7 @@ const Ts = _.forwardRef(
|
|
|
136
136
|
className: m,
|
|
137
137
|
...N
|
|
138
138
|
}, n) {
|
|
139
|
-
return /* @__PURE__ */ a("div", { ref: n, className:
|
|
139
|
+
return /* @__PURE__ */ a("div", { ref: n, className: v("mb-ds-06 flex w-full flex-col items-start justify-between md:flex-row md:items-center", m), ...N, children: [
|
|
140
140
|
/* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between gap-ds-05 md:w-auto md:justify-start", children: [
|
|
141
141
|
/* @__PURE__ */ a(ge, { children: [
|
|
142
142
|
/* @__PURE__ */ a(we, { className: "text-ds-xl flex items-center gap-ds-03 text-surface-fg-muted", children: [
|
|
@@ -149,11 +149,11 @@ const Ts = _.forwardRef(
|
|
|
149
149
|
onSelect: () => {
|
|
150
150
|
b(w);
|
|
151
151
|
},
|
|
152
|
-
className:
|
|
152
|
+
className: v("p-0", p !== l.length - 1 ? "border-b border-b-surface-border" : ""),
|
|
153
153
|
children: /* @__PURE__ */ e(
|
|
154
154
|
"span",
|
|
155
155
|
{
|
|
156
|
-
className:
|
|
156
|
+
className: v("w-full py-ds-04 pl-ds-05 pr-ds-06", s === w ? "text-ds-md font-semibold bg-accent-9 text-accent-fg" : "text-ds-md text-surface-fg-muted hover:bg-surface-raised", p === 0 ? "rounded-t-[7px]" : p === l.length - 1 ? "rounded-b-[7px]" : ""),
|
|
157
157
|
children: w.split(" ")[1]
|
|
158
158
|
}
|
|
159
159
|
)
|
|
@@ -180,7 +180,7 @@ const Ts = _.forwardRef(
|
|
|
180
180
|
alt: `${i.name}'s avatar`,
|
|
181
181
|
className: "h-ico-md w-ico-md rounded-ds-full"
|
|
182
182
|
}
|
|
183
|
-
) : /* @__PURE__ */ e("div", { className: "flex h-ico-md w-ico-md flex-shrink-0 items-center justify-center rounded-ds-full bg-surface-
|
|
183
|
+
) : /* @__PURE__ */ e("div", { className: "flex h-ico-md w-ico-md flex-shrink-0 items-center justify-center rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e("span", { className: "text-accent-11", children: i.name.charAt(0) }) }),
|
|
184
184
|
/* @__PURE__ */ e("span", { className: "text-ds-md ml-ds-01 mr-ds-02 text-accent-fg", children: i.name })
|
|
185
185
|
] }),
|
|
186
186
|
/* @__PURE__ */ e(
|
|
@@ -193,9 +193,9 @@ const Ts = _.forwardRef(
|
|
|
193
193
|
}
|
|
194
194
|
)
|
|
195
195
|
] }) : /* @__PURE__ */ a(ge, { children: [
|
|
196
|
-
/* @__PURE__ */ a(we, { className: "text-ds-md hidden items-center justify-between rounded-ds-md border border-surface-border bg-surface-
|
|
196
|
+
/* @__PURE__ */ a(we, { className: "text-ds-md hidden items-center justify-between rounded-ds-md border border-surface-border bg-surface-base px-ds-03 py-ds-02b md:flex", children: [
|
|
197
197
|
/* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
198
|
-
/* @__PURE__ */ e(
|
|
198
|
+
/* @__PURE__ */ e(Ds, { className: "h-ico-md w-ico-md" }),
|
|
199
199
|
/* @__PURE__ */ e("span", { className: "text-ds-md ml-ds-01 mr-ds-02 text-surface-fg-muted max-lg:mx-0 max-lg:text-ds-sm", children: "Associate" })
|
|
200
200
|
] }),
|
|
201
201
|
/* @__PURE__ */ e(oe, { className: "h-ico-sm w-ico-sm" })
|
|
@@ -219,7 +219,7 @@ const Ts = _.forwardRef(
|
|
|
219
219
|
alt: `${w.name}'s avatar`,
|
|
220
220
|
className: "h-ds-xs w-ds-xs rounded-ds-full"
|
|
221
221
|
}
|
|
222
|
-
) : /* @__PURE__ */ e("div", { className: "flex h-ds-xs w-ds-xs items-center justify-center rounded-ds-full bg-surface-
|
|
222
|
+
) : /* @__PURE__ */ e("div", { className: "flex h-ds-xs w-ds-xs items-center justify-center rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e("span", { className: "text-ds-md text-accent-11", children: w.name.charAt(0) }) }),
|
|
223
223
|
/* @__PURE__ */ e("span", { className: "text-ds-md text-surface-fg-muted", children: w.name })
|
|
224
224
|
]
|
|
225
225
|
},
|
|
@@ -432,12 +432,12 @@ const Ss = _.forwardRef(
|
|
|
432
432
|
selected: P
|
|
433
433
|
}));
|
|
434
434
|
}, [s, t, i, l]);
|
|
435
|
-
const n = r.isBreak && o !== "weekly", w = n && r.breakStart && !r.breakEnd, p = n && r.breakEnd && !r.breakStart, S = n && r.breakMid,
|
|
435
|
+
const n = r.isBreak && o !== "weekly", w = n && r.breakStart && !r.breakEnd, p = n && r.breakEnd && !r.breakStart, S = n && r.breakMid, D = v(
|
|
436
436
|
"flex w-full items-center justify-center p-ds-02",
|
|
437
437
|
w && "rounded-l-ds-2xl",
|
|
438
438
|
p && "rounded-r-ds-2xl",
|
|
439
439
|
S && "bg-accent-2"
|
|
440
|
-
), A =
|
|
440
|
+
), A = v(
|
|
441
441
|
// Base layout & transitions
|
|
442
442
|
"flex h-ds-md w-ds-md items-center justify-center rounded-ds-full text-ds-base relative overflow-hidden",
|
|
443
443
|
"transition-[background-color,color,border] duration-200",
|
|
@@ -466,14 +466,14 @@ const Ss = _.forwardRef(
|
|
|
466
466
|
// Hover on today (not break)
|
|
467
467
|
r.hover && !r.disabled && r.today && !r.isBreak && "bg-accent-9 text-accent-fg ring-2 ring-inset ring-accent-9",
|
|
468
468
|
// Hover on present (not today, not break)
|
|
469
|
-
r.hover && !r.disabled && !r.today && !r.isBreak && r.isPresent && "bg-surface-
|
|
469
|
+
r.hover && !r.disabled && !r.today && !r.isBreak && r.isPresent && "bg-surface-raised-hover text-surface-fg",
|
|
470
470
|
// Hover on default (not today, not break, not present)
|
|
471
|
-
r.hover && !r.disabled && !r.today && !r.isBreak && !r.isPresent && r.isDefault && "bg-surface-
|
|
471
|
+
r.hover && !r.disabled && !r.today && !r.isBreak && !r.isPresent && r.isDefault && "bg-surface-raised-hover text-surface-fg-muted",
|
|
472
472
|
// Hover on break (same visual as base break, but re-assert to match original)
|
|
473
473
|
r.hover && !r.disabled && r.isBreak && !S && "bg-accent-3 text-surface-fg-muted ring-2 ring-inset ring-accent-9",
|
|
474
474
|
r.hover && !r.disabled && r.isBreak && S && "rounded-ds-none bg-accent-2 text-surface-fg-muted shadow-none",
|
|
475
475
|
// Hover on absent (not today, not break)
|
|
476
|
-
r.hover && !r.disabled && !r.today && !r.isBreak && r.isAbsent && "bg-surface-
|
|
476
|
+
r.hover && !r.disabled && !r.today && !r.isBreak && r.isAbsent && "bg-surface-raised-hover text-error-11",
|
|
477
477
|
// ── Focus ──
|
|
478
478
|
r.focus && !r.pressed && "outline-2",
|
|
479
479
|
// ── Pressed ──
|
|
@@ -483,9 +483,9 @@ const Ss = _.forwardRef(
|
|
|
483
483
|
r.selected && o === "monthly" && "text-surface-fg",
|
|
484
484
|
// ── DisabledState (visual-only disabled, different from functional disabled) ──
|
|
485
485
|
r.disabledState && "text-disabled",
|
|
486
|
-
r.disabledState && r.today && "bg-disabled text-
|
|
486
|
+
r.disabledState && r.today && "bg-disabled text-surface-fg-muted"
|
|
487
487
|
);
|
|
488
|
-
return /* @__PURE__ */ e("div", { ref: b, className: D
|
|
488
|
+
return /* @__PURE__ */ e("div", { ref: b, className: v(D, c), ...h, children: /* @__PURE__ */ a(
|
|
489
489
|
"div",
|
|
490
490
|
{
|
|
491
491
|
className: A,
|
|
@@ -541,7 +541,7 @@ const As = _.forwardRef(
|
|
|
541
541
|
k.preventDefault();
|
|
542
542
|
const T = (k.pageX - (((K = r.current) == null ? void 0 : K.offsetLeft) || 0) - m) * 2;
|
|
543
543
|
r.current && (r.current.scrollLeft = n - T);
|
|
544
|
-
},
|
|
544
|
+
}, D = () => {
|
|
545
545
|
u(!1);
|
|
546
546
|
}, A = () => {
|
|
547
547
|
u(!1);
|
|
@@ -552,11 +552,11 @@ const As = _.forwardRef(
|
|
|
552
552
|
"div",
|
|
553
553
|
{
|
|
554
554
|
ref: f,
|
|
555
|
-
className:
|
|
555
|
+
className: v("hide-scrollbar w-full cursor-grab overflow-x-auto active:cursor-grabbing max-md:pb-ds-05", c),
|
|
556
556
|
...h,
|
|
557
557
|
onMouseDown: p,
|
|
558
558
|
onMouseMove: S,
|
|
559
|
-
onMouseUp:
|
|
559
|
+
onMouseUp: D,
|
|
560
560
|
onMouseLeave: A,
|
|
561
561
|
style: {
|
|
562
562
|
scrollbarWidth: "none",
|
|
@@ -577,7 +577,7 @@ const As = _.forwardRef(
|
|
|
577
577
|
return /* @__PURE__ */ a(
|
|
578
578
|
"div",
|
|
579
579
|
{
|
|
580
|
-
className: "flex w-full flex-col gap-ds-04 rounded-ds-md bg-surface-
|
|
580
|
+
className: "flex w-full flex-col gap-ds-04 rounded-ds-md bg-surface-raised p-ds-06 md:rounded-ds-lg",
|
|
581
581
|
children: [
|
|
582
582
|
(T == null ? void 0 : T.length) > 0 && /* @__PURE__ */ e("h2", { className: "text-ds-sm font-semibold uppercase tracking-wider capitalize text-surface-fg-subtle", children: `On Break (${(T == null ? void 0 : T.length) || 0})` }),
|
|
583
583
|
/* @__PURE__ */ e("div", { className: "flex w-full flex-wrap items-center", children: (T == null ? void 0 : T.length) > 0 && /* @__PURE__ */ e(
|
|
@@ -599,7 +599,7 @@ const As = _.forwardRef(
|
|
|
599
599
|
([k, C]) => /* @__PURE__ */ a(
|
|
600
600
|
"div",
|
|
601
601
|
{
|
|
602
|
-
className:
|
|
602
|
+
className: v("flex w-full flex-col gap-ds-04 rounded-ds-md bg-surface-raised p-ds-06 md:rounded-ds-lg md:p-ds-05", k !== "yetToMark" ? "border-r border-surface-border-strong" : "", "max-md:border-0 max-md:p-ds-05", "min-w-[200px]"),
|
|
603
603
|
children: [
|
|
604
604
|
/* @__PURE__ */ a("h2", { className: "text-ds-sm font-semibold uppercase tracking-wider capitalize text-surface-fg-subtle", children: [
|
|
605
605
|
k === "yetToMark" ? "Yet to Mark" : k.replace(/([A-Z])/g, " $1").toLowerCase(),
|
|
@@ -660,7 +660,7 @@ const ms = {
|
|
|
660
660
|
};
|
|
661
661
|
function Bs(d, s) {
|
|
662
662
|
const l = s ? ms : us, t = s ? ms.REJECTED : us.REJECTED, { text: i, color: o } = l[d] || t;
|
|
663
|
-
return /* @__PURE__ */ e(
|
|
663
|
+
return /* @__PURE__ */ e(vt, { color: o, size: "sm", children: i });
|
|
664
664
|
}
|
|
665
665
|
const ze = _.forwardRef(
|
|
666
666
|
function({
|
|
@@ -680,8 +680,8 @@ const ze = _.forwardRef(
|
|
|
680
680
|
}, [s]);
|
|
681
681
|
const n = t && t.numberOfDays === 1, w = () => {
|
|
682
682
|
if (!t) return !1;
|
|
683
|
-
const
|
|
684
|
-
return Z(A,
|
|
683
|
+
const D = Re(/* @__PURE__ */ new Date()), A = Re(new Date(t.endDate));
|
|
684
|
+
return Z(A, D) || Je(A, D);
|
|
685
685
|
}, p = async () => {
|
|
686
686
|
!t || !o || (await o({
|
|
687
687
|
requestId: t.id,
|
|
@@ -689,8 +689,8 @@ const ze = _.forwardRef(
|
|
|
689
689
|
dateToCancel: s,
|
|
690
690
|
userId: l
|
|
691
691
|
}), N(!1), c == null || c(), h == null || h());
|
|
692
|
-
}, S = (
|
|
693
|
-
return !t || t.status === "CANCELLED" ? null : /* @__PURE__ */ a("div", { ref: f, className:
|
|
692
|
+
}, S = (D) => O(new Date(D), "dd/MM/yyyy");
|
|
693
|
+
return !t || t.status === "CANCELLED" ? null : /* @__PURE__ */ a("div", { ref: f, className: v("relative flex w-full flex-col gap-ds-06 rounded-ds-lg bg-accent-2", b), ...r, children: [
|
|
694
694
|
i && /* @__PURE__ */ e(
|
|
695
695
|
"img",
|
|
696
696
|
{
|
|
@@ -700,7 +700,7 @@ const ze = _.forwardRef(
|
|
|
700
700
|
}
|
|
701
701
|
),
|
|
702
702
|
/* @__PURE__ */ a("div", { className: "relative flex min-h-[236px] flex-col items-center justify-between rounded-ds-lg md:flex-row", children: [
|
|
703
|
-
m && n ? /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-col items-center justify-center px-ds-04 pt-[17px]", children: /* @__PURE__ */ a("div", { className: "w-full gap-ds-05 rounded-ds-md bg-surface-
|
|
703
|
+
m && n ? /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-col items-center justify-center px-ds-04 pt-[17px]", children: /* @__PURE__ */ a("div", { className: "w-full gap-ds-05 rounded-ds-md bg-surface-raised shadow-raised px-ds-06 py-ds-07 md:hidden", children: [
|
|
704
704
|
/* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-ds-04", children: [
|
|
705
705
|
/* @__PURE__ */ e("div", { className: "text-ds-lg font-semibold text-center text-surface-fg", children: "Cancel this break?" }),
|
|
706
706
|
/* @__PURE__ */ a("div", { className: "text-ds-base max-w-[240px] text-center text-surface-fg-subtle max-md:leading-[100%]", children: [
|
|
@@ -714,7 +714,7 @@ const ze = _.forwardRef(
|
|
|
714
714
|
"button",
|
|
715
715
|
{
|
|
716
716
|
"aria-label": "Close cancel form",
|
|
717
|
-
className: "absolute right-ds-05 top-ds-05 rounded-ds-sm p-ds-04 text-surface-fg-subtle transition-colors hover:text-surface-fg-muted hover:bg-surface-
|
|
717
|
+
className: "absolute right-ds-05 top-ds-05 rounded-ds-sm p-ds-04 text-surface-fg-subtle transition-colors hover:text-surface-fg-muted hover:bg-surface-raised-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none",
|
|
718
718
|
onClick: () => N(!1),
|
|
719
719
|
children: /* @__PURE__ */ e(me, { className: "h-ico-lg w-ico-lg" })
|
|
720
720
|
}
|
|
@@ -745,10 +745,10 @@ const ze = _.forwardRef(
|
|
|
745
745
|
/* @__PURE__ */ a(
|
|
746
746
|
"div",
|
|
747
747
|
{
|
|
748
|
-
className:
|
|
748
|
+
className: v("flex w-full flex-col items-center justify-center px-ds-05", m || t.status === "APPROVED" || t.status === "REJECTED" ? "pb-ds-06 pt-[9px]" : "py-ds-06", "md:w-1/2 md:px-ds-06 md:py-ds-05 max-md:pt-[34px]"),
|
|
749
749
|
children: [
|
|
750
750
|
/* @__PURE__ */ e("p", { className: "text-ds-sm font-semibold uppercase tracking-wider mb-ds-06 text-surface-fg-subtle max-md:mb-ds-05", children: "Break Status" }),
|
|
751
|
-
/* @__PURE__ */ a("div", { className: "mb-ds-04 flex w-full flex-col items-center justify-start gap-ds-04 rounded-ds-2xl border border-surface-border bg-surface-
|
|
751
|
+
/* @__PURE__ */ a("div", { className: "mb-ds-04 flex w-full flex-col items-center justify-start gap-ds-04 rounded-ds-2xl border border-surface-border bg-surface-raised shadow-raised px-ds-05 py-ds-04 text-center font-semibold text-surface-fg", children: [
|
|
752
752
|
Bs(t.status, !1),
|
|
753
753
|
t.status === "APPROVED" && t.adminComment,
|
|
754
754
|
t.status === "REJECTED" && t.adminComment
|
|
@@ -763,9 +763,9 @@ const ze = _.forwardRef(
|
|
|
763
763
|
}
|
|
764
764
|
),
|
|
765
765
|
/* @__PURE__ */ a(ue, { children: [
|
|
766
|
-
w() && o && /* @__PURE__ */ e(
|
|
766
|
+
w() && o && /* @__PURE__ */ e(ve, { asChild: !0, children: /* @__PURE__ */ e("button", { className: "text-ds-sm hidden cursor-pointer border-none bg-transparent text-accent-12 underline md:block", children: "Want to cancel this break?" }) }),
|
|
767
767
|
/* @__PURE__ */ a(fe, { className: "max-w-[329px] gap-ds-04 rounded-ds-xl", children: [
|
|
768
|
-
/* @__PURE__ */ e(
|
|
768
|
+
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e("div", { className: "text-ds-lg font-semibold text-center text-surface-fg", children: "Cancel this break?" }) }),
|
|
769
769
|
/* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-start", children: /* @__PURE__ */ a("div", { className: "text-ds-base max-w-[241px] text-center text-surface-fg-subtle", children: [
|
|
770
770
|
"You're about to cancel the break scheduled for",
|
|
771
771
|
" ",
|
|
@@ -775,16 +775,16 @@ const ze = _.forwardRef(
|
|
|
775
775
|
] })
|
|
776
776
|
] })
|
|
777
777
|
] }) : /* @__PURE__ */ a(ue, { children: [
|
|
778
|
-
w() && o && /* @__PURE__ */ e(
|
|
778
|
+
w() && o && /* @__PURE__ */ e(ve, { asChild: !0, children: /* @__PURE__ */ e("button", { className: "text-ds-sm cursor-pointer border-none bg-transparent text-accent-12 underline", children: "Want to cancel this break?" }) }),
|
|
779
779
|
/* @__PURE__ */ a(fe, { className: "max-w-[329px] gap-ds-04 rounded-ds-xl", children: [
|
|
780
|
-
/* @__PURE__ */ e(
|
|
780
|
+
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e("div", { className: "text-ds-lg font-semibold flex text-center text-surface-fg", children: "Cancel your break" }) }),
|
|
781
781
|
/* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-start", children: /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-start", children: [
|
|
782
782
|
/* @__PURE__ */ a("label", { className: "breakRequest-checkbox flex items-center space-x-ds-03", children: [
|
|
783
783
|
/* @__PURE__ */ e(
|
|
784
784
|
cs,
|
|
785
785
|
{
|
|
786
786
|
checked: x,
|
|
787
|
-
onCheckedChange: (
|
|
787
|
+
onCheckedChange: (D) => u(D === !0)
|
|
788
788
|
}
|
|
789
789
|
),
|
|
790
790
|
/* @__PURE__ */ a("span", { className: "text-surface-fg-muted", children: [
|
|
@@ -797,7 +797,7 @@ const ze = _.forwardRef(
|
|
|
797
797
|
cs,
|
|
798
798
|
{
|
|
799
799
|
checked: !x,
|
|
800
|
-
onCheckedChange: (
|
|
800
|
+
onCheckedChange: (D) => u(D !== !0)
|
|
801
801
|
}
|
|
802
802
|
),
|
|
803
803
|
/* @__PURE__ */ a("span", { className: "text-surface-fg-muted", children: [
|
|
@@ -849,7 +849,7 @@ function At({
|
|
|
849
849
|
onUpdateAttendanceStatus: t
|
|
850
850
|
}) {
|
|
851
851
|
return /* @__PURE__ */ a(fe, { className: "sm:max-w-md", children: [
|
|
852
|
-
/* @__PURE__ */ e(
|
|
852
|
+
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ a("div", { className: "text-ds-md text-surface-fg-subtle", children: [
|
|
853
853
|
"Edit attendance of",
|
|
854
854
|
" ",
|
|
855
855
|
/* @__PURE__ */ e("span", { className: "text-ds-md font-semibold text-accent-11", children: d.name })
|
|
@@ -895,8 +895,8 @@ const Rs = _.forwardRef(
|
|
|
895
895
|
className: n,
|
|
896
896
|
...w
|
|
897
897
|
}, p) {
|
|
898
|
-
const [S,
|
|
899
|
-
E.preventDefault(), !(!S.trim() || !s) && (await (f == null ? void 0 : f(S, s.id)),
|
|
898
|
+
const [S, D] = B(""), [A, M] = B(null), [k, C] = B(null), T = async (E) => {
|
|
899
|
+
E.preventDefault(), !(!S.trim() || !s) && (await (f == null ? void 0 : f(S, s.id)), D(""));
|
|
900
900
|
}, K = (E, j) => {
|
|
901
901
|
M(j), E.target.classList.add("dragging");
|
|
902
902
|
}, z = async (E, j) => {
|
|
@@ -906,9 +906,9 @@ const Rs = _.forwardRef(
|
|
|
906
906
|
}
|
|
907
907
|
M(null), C(null);
|
|
908
908
|
};
|
|
909
|
-
return /* @__PURE__ */ a("div", { ref: p, className:
|
|
909
|
+
return /* @__PURE__ */ a("div", { ref: p, className: v("relative flex items-center justify-between md:items-stretch", n), ...w, children: [
|
|
910
910
|
!c && (t == null ? void 0 : t.status) !== "BREAK" && /* @__PURE__ */ a(ue, { children: [
|
|
911
|
-
/* @__PURE__ */ e(
|
|
911
|
+
/* @__PURE__ */ e(ve, { asChild: !0, children: /* @__PURE__ */ e(
|
|
912
912
|
X,
|
|
913
913
|
{
|
|
914
914
|
icon: /* @__PURE__ */ e(Ge, {}),
|
|
@@ -954,7 +954,7 @@ const Rs = _.forwardRef(
|
|
|
954
954
|
Re(/* @__PURE__ */ new Date())
|
|
955
955
|
) ? /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-center justify-center p-ds-06", children: [
|
|
956
956
|
/* @__PURE__ */ e("p", { className: "text-ds-sm font-semibold uppercase tracking-wider mb-ds-05 text-surface-fg-subtle", children: "COMMENT" }),
|
|
957
|
-
/* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between rounded-ds-lg border border-surface-border-strong bg-surface-
|
|
957
|
+
/* @__PURE__ */ a("div", { className: "flex w-full items-center justify-between rounded-ds-lg border border-surface-border-strong bg-surface-raised px-ds-05 max-md:h-ds-lg", children: [
|
|
958
958
|
/* @__PURE__ */ e(
|
|
959
959
|
"input",
|
|
960
960
|
{
|
|
@@ -990,7 +990,7 @@ const Rs = _.forwardRef(
|
|
|
990
990
|
role: "listitem",
|
|
991
991
|
"aria-label": `Task ${j + 1} of ${i.length}: ${E.title}. Use Alt+Arrow keys to reorder.`,
|
|
992
992
|
tabIndex: 0,
|
|
993
|
-
className:
|
|
993
|
+
className: v("task-item mb-ds-03 flex items-center gap-ds-02", A === j ? "dragging" : ""),
|
|
994
994
|
draggable: !0,
|
|
995
995
|
onDragStart: (P) => K(P, j),
|
|
996
996
|
onDragOver: (P) => P.preventDefault(),
|
|
@@ -1024,7 +1024,7 @@ const Rs = _.forwardRef(
|
|
|
1024
1024
|
/* @__PURE__ */ e(
|
|
1025
1025
|
"p",
|
|
1026
1026
|
{
|
|
1027
|
-
className:
|
|
1027
|
+
className: v("text-ds-md flex-1 overflow-hidden hyphens-auto break-all pr-ds-05 break-words min-w-0", E.status === "COMPLETED" ? "text-disabled line-through" : "text-surface-fg-muted"),
|
|
1028
1028
|
children: E.title
|
|
1029
1029
|
}
|
|
1030
1030
|
)
|
|
@@ -1047,7 +1047,7 @@ const Rs = _.forwardRef(
|
|
|
1047
1047
|
className: "text-ds-md flex w-full resize-none items-center border-none bg-transparent !leading-6 text-surface-fg-muted outline-none placeholder:leading-6",
|
|
1048
1048
|
placeholder: "Add a task",
|
|
1049
1049
|
value: S,
|
|
1050
|
-
onChange: (E) =>
|
|
1050
|
+
onChange: (E) => D(E.target.value),
|
|
1051
1051
|
onKeyDown: (E) => {
|
|
1052
1052
|
E.key === "Enter" && !E.shiftKey && (E.preventDefault(), T(E));
|
|
1053
1053
|
},
|
|
@@ -1091,14 +1091,14 @@ const js = _.forwardRef(
|
|
|
1091
1091
|
const x = async (u, m) => {
|
|
1092
1092
|
m === "APPROVED" ? await (c == null ? void 0 : c(u.id)) : await (h == null ? void 0 : h(u.id));
|
|
1093
1093
|
};
|
|
1094
|
-
return s.length === 0 ? /* @__PURE__ */ e("div", { ref: f, className:
|
|
1094
|
+
return s.length === 0 ? /* @__PURE__ */ e("div", { ref: f, className: v("p-ds-05 text-center", b), ...r, children: "No pending corrections" }) : /* @__PURE__ */ e(
|
|
1095
1095
|
"div",
|
|
1096
1096
|
{
|
|
1097
1097
|
ref: f,
|
|
1098
|
-
className:
|
|
1098
|
+
className: v("flex max-h-[200px] w-full flex-col overflow-y-auto bg-surface-base px-ds-06 max-md:flex-1 max-md:max-h-none max-md:min-h-[372px] max-md:p-0", b),
|
|
1099
1099
|
...r,
|
|
1100
1100
|
children: s.map((u) => {
|
|
1101
|
-
var m, N, n, w, p, S,
|
|
1101
|
+
var m, N, n, w, p, S, D, A, M, k, C;
|
|
1102
1102
|
return /* @__PURE__ */ e(bs, { children: /* @__PURE__ */ a("div", { className: "max-md:border flex items-center justify-between px-ds-03 py-ds-04 max-md:rounded-ds-lg max-md:border-surface-border-strong", children: [
|
|
1103
1103
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-04", children: [
|
|
1104
1104
|
/* @__PURE__ */ a(Qe, { className: "h-ds-md w-ds-md border-2 max-md:mb-[auto]", children: [
|
|
@@ -1128,7 +1128,7 @@ const js = _.forwardRef(
|
|
|
1128
1128
|
"button",
|
|
1129
1129
|
{
|
|
1130
1130
|
"aria-label": "Reject correction",
|
|
1131
|
-
className:
|
|
1131
|
+
className: v("rounded-ds-full p-ds-03 text-surface-fg-subtle hover:text-surface-fg-muted", ((S = u == null ? void 0 : u.user) == null ? void 0 : S.id) === l ? "cursor-not-allowed opacity-action-disabled" : ""),
|
|
1132
1132
|
onClick: () => {
|
|
1133
1133
|
var T;
|
|
1134
1134
|
return ((T = u == null ? void 0 : u.user) == null ? void 0 : T.id) !== l && x(
|
|
@@ -1136,7 +1136,7 @@ const js = _.forwardRef(
|
|
|
1136
1136
|
"REJECTED"
|
|
1137
1137
|
);
|
|
1138
1138
|
},
|
|
1139
|
-
disabled: ((
|
|
1139
|
+
disabled: ((D = u == null ? void 0 : u.user) == null ? void 0 : D.id) === l,
|
|
1140
1140
|
children: /* @__PURE__ */ e(me, { className: "h-ico-lg w-ico-lg" })
|
|
1141
1141
|
}
|
|
1142
1142
|
) }),
|
|
@@ -1147,7 +1147,7 @@ const js = _.forwardRef(
|
|
|
1147
1147
|
"button",
|
|
1148
1148
|
{
|
|
1149
1149
|
"aria-label": "Approve correction",
|
|
1150
|
-
className:
|
|
1150
|
+
className: v("rounded-ds-full p-ds-03", ((M = u == null ? void 0 : u.user) == null ? void 0 : M.id) === l ? "cursor-not-allowed opacity-action-disabled" : ""),
|
|
1151
1151
|
onClick: () => {
|
|
1152
1152
|
var T;
|
|
1153
1153
|
return ((T = u == null ? void 0 : u.user) == null ? void 0 : T.id) !== l && x(
|
|
@@ -1243,10 +1243,10 @@ const Os = _.forwardRef(
|
|
|
1243
1243
|
"div",
|
|
1244
1244
|
{
|
|
1245
1245
|
ref: r,
|
|
1246
|
-
className:
|
|
1246
|
+
className: v("no-scrollbar max-h-[230px] w-full overflow-y-auto px-0 md:px-ds-06 max-md:flex-1 max-md:max-h-none max-md:min-h-[407.2px]", h),
|
|
1247
1247
|
...b,
|
|
1248
1248
|
children: /* @__PURE__ */ e("div", { className: "flex h-full flex-col gap-ds-03 py-ds-03 max-md:h-[max-content] max-md:gap-ds-05 max-md:py-0 max-md:pb-ds-05", children: s == null ? void 0 : s.map((n) => {
|
|
1249
|
-
var w, p, S,
|
|
1249
|
+
var w, p, S, D, A, M, k, C, T, K, z, E, j, P;
|
|
1250
1250
|
return /* @__PURE__ */ a(
|
|
1251
1251
|
"div",
|
|
1252
1252
|
{
|
|
@@ -1263,7 +1263,7 @@ const Os = _.forwardRef(
|
|
|
1263
1263
|
}
|
|
1264
1264
|
),
|
|
1265
1265
|
/* @__PURE__ */ a("div", { className: "flex max-w-[277px] flex-col items-start gap-ds-02 sm:max-w-none", children: [
|
|
1266
|
-
/* @__PURE__ */ e("div", { className: "flex flex-row gap-ds-02b", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-03", children: /* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg-muted", children: (
|
|
1266
|
+
/* @__PURE__ */ e("div", { className: "flex flex-row gap-ds-02b", children: /* @__PURE__ */ e("div", { className: "flex items-center gap-ds-03", children: /* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg-muted", children: (D = n.user) == null ? void 0 : D.name }) }) }),
|
|
1267
1267
|
N(n) ? /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-center gap-ds-03 md:flex-row md:flex-wrap max-md:items-start", children: [
|
|
1268
1268
|
/* @__PURE__ */ e("p", { className: "text-ds-base font-semibold text-surface-fg", children: je(n.reason) }),
|
|
1269
1269
|
/* @__PURE__ */ e("p", { className: "text-ds-base hidden font-semibold text-surface-fg-subtle md:block", children: "•" }),
|
|
@@ -1301,7 +1301,7 @@ const Os = _.forwardRef(
|
|
|
1301
1301
|
((g = n == null ? void 0 : n.user) == null ? void 0 : g.id) !== l && (f.setActiveRequest(n), f.setActiveAction("rejectBreak"), ((y = f.activeRequest) == null ? void 0 : y.id) !== n.id && f.setMessage(""), m(n, "rejectBreak"));
|
|
1302
1302
|
},
|
|
1303
1303
|
disabled: f.isProcessing || ((A = n == null ? void 0 : n.user) == null ? void 0 : A.id) === l,
|
|
1304
|
-
className:
|
|
1304
|
+
className: v(
|
|
1305
1305
|
"rounded-ds-full p-ds-03",
|
|
1306
1306
|
((M = f.activeRequest) == null ? void 0 : M.id) === n.id && f.activeAction === "rejectBreak" && "bg-error-3",
|
|
1307
1307
|
((k = n == null ? void 0 : n.user) == null ? void 0 : k.id) === l && "cursor-not-allowed opacity-action-disabled",
|
|
@@ -1310,7 +1310,7 @@ const Os = _.forwardRef(
|
|
|
1310
1310
|
children: /* @__PURE__ */ e(
|
|
1311
1311
|
me,
|
|
1312
1312
|
{
|
|
1313
|
-
className:
|
|
1313
|
+
className: v(
|
|
1314
1314
|
"h-ico-lg w-ico-lg",
|
|
1315
1315
|
((C = f.activeRequest) == null ? void 0 : C.id) === n.id && f.activeAction === "rejectBreak" && "text-error-11"
|
|
1316
1316
|
)
|
|
@@ -1336,7 +1336,7 @@ const Os = _.forwardRef(
|
|
|
1336
1336
|
((g = n == null ? void 0 : n.user) == null ? void 0 : g.id) !== l && (f.setActiveRequest(n), f.setActiveAction("approveBreak"), ((y = f.activeRequest) == null ? void 0 : y.id) !== n.id && f.setMessage(""), m(n, "approveBreak"));
|
|
1337
1337
|
},
|
|
1338
1338
|
disabled: f.isProcessing || ((K = n == null ? void 0 : n.user) == null ? void 0 : K.id) === l,
|
|
1339
|
-
className:
|
|
1339
|
+
className: v(
|
|
1340
1340
|
"rounded-ds-full p-ds-03",
|
|
1341
1341
|
((z = f.activeRequest) == null ? void 0 : z.id) === n.id && f.activeAction === "approveBreak" && "bg-success-3",
|
|
1342
1342
|
((E = n == null ? void 0 : n.user) == null ? void 0 : E.id) === l && "cursor-not-allowed opacity-action-disabled",
|
|
@@ -1589,8 +1589,8 @@ const We = Ee.forwardRef(function({
|
|
|
1589
1589
|
const u = Ps(), [m, N] = B("leaveRequest"), [n, w] = B(
|
|
1590
1590
|
null
|
|
1591
1591
|
), p = $(
|
|
1592
|
-
(
|
|
1593
|
-
w(
|
|
1592
|
+
(D) => {
|
|
1593
|
+
w(D), h == null || h(D);
|
|
1594
1594
|
},
|
|
1595
1595
|
[h]
|
|
1596
1596
|
), S = Be(
|
|
@@ -1622,9 +1622,9 @@ const We = Ee.forwardRef(function({
|
|
|
1622
1622
|
"div",
|
|
1623
1623
|
{
|
|
1624
1624
|
ref: x,
|
|
1625
|
-
className:
|
|
1625
|
+
className: v("flex w-full max-w-layout flex-col items-center justify-center max-md:h-[100%] max-md:justify-start", r),
|
|
1626
1626
|
...f,
|
|
1627
|
-
children: /* @__PURE__ */ e("div", { className: "z-raised flex w-full flex-col items-start justify-start rounded-ds-lg border border-surface-border-strong bg-surface-
|
|
1627
|
+
children: /* @__PURE__ */ e("div", { className: "z-raised flex w-full flex-col items-start justify-start rounded-ds-lg border border-surface-border-strong bg-surface-raised p-ds-05 shadow-overlay max-md:flex-1 max-md:min-h-0 max-md:overflow-y-auto max-md:border-0 max-md:px-ds-05 max-md:pb-0 max-md:pt-ds-06", children: b })
|
|
1628
1628
|
}
|
|
1629
1629
|
) });
|
|
1630
1630
|
});
|
|
@@ -1640,15 +1640,15 @@ const _s = Ee.forwardRef(function({
|
|
|
1640
1640
|
}, b) {
|
|
1641
1641
|
const { cal: r, selectedAssociate: f, setSelectedAssociate: x, userImages: u, setActiveTab: m } = Me(), N = () => {
|
|
1642
1642
|
r.goToday(), m("leaveRequest");
|
|
1643
|
-
}, n = (
|
|
1644
|
-
r.navigateDate(
|
|
1645
|
-
}, w = (
|
|
1646
|
-
r.selectMonth(
|
|
1647
|
-
}, p = (
|
|
1648
|
-
const A = r.days[
|
|
1649
|
-
r.selectDate(
|
|
1650
|
-
}, S = (
|
|
1651
|
-
r.activeTimeFrame === "weekly" ? (p(
|
|
1643
|
+
}, n = (D) => {
|
|
1644
|
+
r.navigateDate(D), m("leaveRequest");
|
|
1645
|
+
}, w = (D) => {
|
|
1646
|
+
r.selectMonth(D), m("leaveRequest");
|
|
1647
|
+
}, p = (D) => {
|
|
1648
|
+
const A = r.days[D].fullDate;
|
|
1649
|
+
r.selectDate(D, A), l == null || l(O(A, "yyyy-MM-dd'T'HH:mm:ssxxx"));
|
|
1650
|
+
}, S = (D, A) => {
|
|
1651
|
+
r.activeTimeFrame === "weekly" ? (p(D), m("leaveRequest")) : (r.selectDayMonthly(A), m("leaveRequest"), l == null || l(O(A, "yyyy-MM-dd'T'HH:mm:ssxxx")));
|
|
1652
1652
|
};
|
|
1653
1653
|
return se(() => {
|
|
1654
1654
|
t == null || t(r.activeTimeFrame);
|
|
@@ -1668,39 +1668,39 @@ const _s = Ee.forwardRef(function({
|
|
|
1668
1668
|
onMonthSelection: w,
|
|
1669
1669
|
onTodayClick: N,
|
|
1670
1670
|
onSelectAssociate: x,
|
|
1671
|
-
onTimeFrameChange: (
|
|
1671
|
+
onTimeFrameChange: (D) => r.setActiveTimeFrame(D),
|
|
1672
1672
|
onDateChange: n
|
|
1673
1673
|
}
|
|
1674
1674
|
),
|
|
1675
1675
|
/* @__PURE__ */ a(
|
|
1676
1676
|
"div",
|
|
1677
1677
|
{
|
|
1678
|
-
className:
|
|
1678
|
+
className: v(
|
|
1679
1679
|
"calendar",
|
|
1680
1680
|
r.activeTimeFrame === "weekly" ? "flex" : "grid grid-cols-7 gap-0",
|
|
1681
1681
|
"w-full items-center"
|
|
1682
1682
|
),
|
|
1683
1683
|
children: [
|
|
1684
|
-
r.activeTimeFrame === "monthly" && ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].map((
|
|
1685
|
-
r.days.map((
|
|
1684
|
+
r.activeTimeFrame === "monthly" && ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"].map((D) => /* @__PURE__ */ e("div", { className: "pb-ds-03 pt-ds-05 text-center", children: /* @__PURE__ */ e("span", { className: "text-ds-sm font-semibold uppercase tracking-wider text-surface-fg-subtle", children: D }) }, D)),
|
|
1685
|
+
r.days.map((D, A) => /* @__PURE__ */ a(
|
|
1686
1686
|
"button",
|
|
1687
1687
|
{
|
|
1688
1688
|
type: "button",
|
|
1689
|
-
tabIndex:
|
|
1690
|
-
"aria-label":
|
|
1691
|
-
className:
|
|
1689
|
+
tabIndex: D.isPadding ? -1 : 0,
|
|
1690
|
+
"aria-label": D.isPadding ? void 0 : O(D.fullDate, "MMMM d, yyyy"),
|
|
1691
|
+
className: v(
|
|
1692
1692
|
r.activeTimeFrame === "weekly" ? "w-full rounded-t-ds-lg pb-ds-04 pt-ds-05 max-md:rounded-ds-lg" : "pb-0 pt-0",
|
|
1693
1693
|
"flex cursor-pointer flex-col items-center text-center",
|
|
1694
|
-
r.activeTimeFrame === "weekly" && r.activeIndex === A ? (o == null ? void 0 : o.status) === "BREAK" ? "bg-accent-2" : "bg-surface-
|
|
1695
|
-
|
|
1694
|
+
r.activeTimeFrame === "weekly" && r.activeIndex === A ? (o == null ? void 0 : o.status) === "BREAK" ? "bg-accent-2" : "bg-surface-raised" : "",
|
|
1695
|
+
D.isPadding && "opacity-50"
|
|
1696
1696
|
),
|
|
1697
|
-
onClick: () => S(A,
|
|
1697
|
+
onClick: () => S(A, D.fullDate),
|
|
1698
1698
|
children: [
|
|
1699
|
-
r.activeTimeFrame === "weekly" && /* @__PURE__ */ e("span", { className: "text-ds-sm font-semibold uppercase tracking-wider mb-ds-03 text-surface-fg-subtle", children:
|
|
1699
|
+
r.activeTimeFrame === "weekly" && /* @__PURE__ */ e("span", { className: "text-ds-sm font-semibold uppercase tracking-wider mb-ds-03 text-surface-fg-subtle", children: D.day }),
|
|
1700
1700
|
/* @__PURE__ */ e(
|
|
1701
1701
|
Ss,
|
|
1702
1702
|
{
|
|
1703
|
-
day:
|
|
1703
|
+
day: D,
|
|
1704
1704
|
isAdmin: !0,
|
|
1705
1705
|
selectedDate: r.selectedDate,
|
|
1706
1706
|
dateAttendanceMap: f ? s : null,
|
|
@@ -1799,7 +1799,7 @@ const fs = rt(
|
|
|
1799
1799
|
const p = (S) => {
|
|
1800
1800
|
N(S);
|
|
1801
1801
|
};
|
|
1802
|
-
return w.length === 0 && s.length === 0 ? null : /* @__PURE__ */ e("div", { ref: r, className:
|
|
1802
|
+
return w.length === 0 && s.length === 0 ? null : /* @__PURE__ */ e("div", { ref: r, className: v("w-full p-0 md:p-ds-06", h), ...b, children: /* @__PURE__ */ a("div", { className: "max-md:pt-[16px] flex flex-col items-start overflow-hidden rounded-ds-lg border-0 border-surface-border bg-surface-raised shadow-raised pt-ds-03 md:border max-md:pb-0", children: [
|
|
1803
1803
|
/* @__PURE__ */ a("div", { className: "flex w-full items-start border-b-[1px] border-b-surface-border px-ds-06 md:border-b max-md:border-0 max-md:px-0", children: [
|
|
1804
1804
|
s.length > 0 && /* @__PURE__ */ a(
|
|
1805
1805
|
"button",
|
|
@@ -1870,8 +1870,8 @@ const $s = Ee.forwardRef(function({ children: s, className: l, ...t }, i) {
|
|
|
1870
1870
|
"div",
|
|
1871
1871
|
{
|
|
1872
1872
|
ref: i,
|
|
1873
|
-
className:
|
|
1874
|
-
"flex w-full flex-col rounded-ds-lg bg-surface-
|
|
1873
|
+
className: v(
|
|
1874
|
+
"flex w-full flex-col rounded-ds-lg bg-surface-raised md:p-ds-06 max-md:bg-transparent",
|
|
1875
1875
|
{
|
|
1876
1876
|
"rounded-ds-lg": !c && !h,
|
|
1877
1877
|
"rounded-ds-lg rounded-tl-none": c && !h,
|
|
@@ -1909,7 +1909,7 @@ const ua = Object.assign(We, {
|
|
|
1909
1909
|
}, f = (x, u) => {
|
|
1910
1910
|
c.activeTimeFrame === "weekly" ? c.selectDate(x, u) : c.selectDayMonthly(u), s(u);
|
|
1911
1911
|
};
|
|
1912
|
-
return /* @__PURE__ */ a("div", { ref: o, className:
|
|
1912
|
+
return /* @__PURE__ */ a("div", { ref: o, className: v("w-full", t), ...i, children: [
|
|
1913
1913
|
/* @__PURE__ */ a("div", { className: "mb-ds-06 flex w-full items-center justify-start", children: [
|
|
1914
1914
|
/* @__PURE__ */ a(ge, { children: [
|
|
1915
1915
|
/* @__PURE__ */ a(we, { className: "text-ds-xl flex items-center gap-ds-03 text-surface-fg-muted", children: [
|
|
@@ -1945,7 +1945,7 @@ const ua = Object.assign(We, {
|
|
|
1945
1945
|
{
|
|
1946
1946
|
"aria-label": "Previous",
|
|
1947
1947
|
onClick: () => h("prev"),
|
|
1948
|
-
className: "rounded-ds-full p-ds-02 hover:bg-surface-
|
|
1948
|
+
className: "rounded-ds-full p-ds-02 hover:bg-surface-raised-hover",
|
|
1949
1949
|
children: /* @__PURE__ */ e(Ne, { className: "h-ico-md w-ico-md text-surface-fg-muted" })
|
|
1950
1950
|
}
|
|
1951
1951
|
),
|
|
@@ -1954,7 +1954,7 @@ const ua = Object.assign(We, {
|
|
|
1954
1954
|
{
|
|
1955
1955
|
"aria-label": "Next",
|
|
1956
1956
|
onClick: () => h("next"),
|
|
1957
|
-
className: "rounded-ds-full p-ds-02 hover:bg-surface-
|
|
1957
|
+
className: "rounded-ds-full p-ds-02 hover:bg-surface-raised-hover",
|
|
1958
1958
|
children: /* @__PURE__ */ e(ye, { className: "h-ico-md w-ico-md text-surface-fg-muted" })
|
|
1959
1959
|
}
|
|
1960
1960
|
)
|
|
@@ -1964,7 +1964,7 @@ const ua = Object.assign(We, {
|
|
|
1964
1964
|
/* @__PURE__ */ a(
|
|
1965
1965
|
"div",
|
|
1966
1966
|
{
|
|
1967
|
-
className:
|
|
1967
|
+
className: v(
|
|
1968
1968
|
"calendar",
|
|
1969
1969
|
c.activeTimeFrame === "weekly" ? "flex" : "grid grid-cols-7 gap-0",
|
|
1970
1970
|
"w-full items-center overflow-hidden"
|
|
@@ -1977,10 +1977,10 @@ const ua = Object.assign(We, {
|
|
|
1977
1977
|
type: "button",
|
|
1978
1978
|
tabIndex: x.isPadding ? -1 : 0,
|
|
1979
1979
|
"aria-label": x.isPadding ? void 0 : O(x.fullDate, "MMMM d, yyyy"),
|
|
1980
|
-
className:
|
|
1980
|
+
className: v(
|
|
1981
1981
|
c.activeTimeFrame === "weekly" ? "w-full rounded-t-ds-lg pb-ds-04 pt-ds-05" : "pb-0 pt-0",
|
|
1982
1982
|
"flex cursor-pointer flex-col items-center text-center",
|
|
1983
|
-
c.activeTimeFrame === "weekly" && c.activeIndex === u && "bg-surface-
|
|
1983
|
+
c.activeTimeFrame === "weekly" && c.activeIndex === u && "bg-surface-raised",
|
|
1984
1984
|
x.isPadding && "opacity-50"
|
|
1985
1985
|
),
|
|
1986
1986
|
onClick: () => f(u, x.fullDate),
|
|
@@ -1989,7 +1989,7 @@ const ua = Object.assign(We, {
|
|
|
1989
1989
|
/* @__PURE__ */ a(
|
|
1990
1990
|
"div",
|
|
1991
1991
|
{
|
|
1992
|
-
className:
|
|
1992
|
+
className: v(
|
|
1993
1993
|
"mx-ds-02 my-ds-02 flex-col",
|
|
1994
1994
|
"flex h-ds-md w-ds-md items-center justify-center",
|
|
1995
1995
|
c.activeTimeFrame === "monthly" && q(x.fullDate, new Date(c.selectedDate)) && "rounded-ds-full bg-accent-2 ring-2 ring-inset ring-accent-9"
|
|
@@ -1998,10 +1998,10 @@ const ua = Object.assign(We, {
|
|
|
1998
1998
|
/* @__PURE__ */ e(
|
|
1999
1999
|
"span",
|
|
2000
2000
|
{
|
|
2001
|
-
className:
|
|
2001
|
+
className: v(
|
|
2002
2002
|
"text-ds-base flex h-ds-md w-ds-md items-center justify-center rounded-ds-full",
|
|
2003
2003
|
x.isToday ? "bg-accent-10 p-ds-03 text-accent-fg" : "text-surface-fg-muted",
|
|
2004
|
-
x.isActive && !x.isToday && "bg-surface-
|
|
2004
|
+
x.isActive && !x.isToday && "bg-surface-raised-hover"
|
|
2005
2005
|
),
|
|
2006
2006
|
children: x.date
|
|
2007
2007
|
}
|
|
@@ -2029,7 +2029,7 @@ const Ks = _.forwardRef(
|
|
|
2029
2029
|
className: i,
|
|
2030
2030
|
...o
|
|
2031
2031
|
}, c) {
|
|
2032
|
-
return /* @__PURE__ */ a("div", { ref: c, className:
|
|
2032
|
+
return /* @__PURE__ */ a("div", { ref: c, className: v("m-0 flex h-[400px] flex-col items-start justify-start p-0 max-md:h-auto", i), ...o, children: [
|
|
2033
2033
|
/* @__PURE__ */ a("div", { className: "m-0 mx-[4%] mb-ds-05 mt-ds-04 flex w-[92%] items-start justify-start gap-ds-03 p-0 text-surface-fg-subtle", children: [
|
|
2034
2034
|
/* @__PURE__ */ e("div", { className: "text-ds-sm font-semibold uppercase tracking-wider w-[16.4%] min-w-[120px] px-ds-04 py-ds-03 text-surface-fg-subtle", children: "NAME" }),
|
|
2035
2035
|
/* @__PURE__ */ e("div", { className: "text-ds-sm font-semibold uppercase tracking-wider w-[16.4%] px-ds-04 py-ds-03 text-surface-fg-subtle", children: "Total Balance" })
|
|
@@ -2039,7 +2039,7 @@ const Ks = _.forwardRef(
|
|
|
2039
2039
|
return /* @__PURE__ */ a(
|
|
2040
2040
|
"div",
|
|
2041
2041
|
{
|
|
2042
|
-
className: "flex w-full flex-row items-center justify-start gap-ds-03 !border-0 text-left hover:bg-surface-
|
|
2042
|
+
className: "flex w-full flex-row items-center justify-start gap-ds-03 !border-0 text-left transition-colors duration-fast-01 hover:bg-surface-raised-hover",
|
|
2043
2043
|
children: [
|
|
2044
2044
|
/* @__PURE__ */ a("div", { className: "flex w-1/6 min-w-[120px] items-center gap-ds-03 p-ds-04", children: [
|
|
2045
2045
|
/* @__PURE__ */ a(Qe, { className: "h-ds-xs-plus w-ds-xs-plus", children: [
|
|
@@ -2070,20 +2070,20 @@ const zs = _.forwardRef(function({
|
|
|
2070
2070
|
className: r,
|
|
2071
2071
|
...f
|
|
2072
2072
|
}, x) {
|
|
2073
|
-
var p, S,
|
|
2073
|
+
var p, S, D, A, M, k, C, T, K;
|
|
2074
2074
|
const [u, m] = B(""), N = new Date(s.startDate), n = new Date(s.endDate), w = Z(N, n);
|
|
2075
2075
|
return /* @__PURE__ */ a(Q, { children: [
|
|
2076
2076
|
/* @__PURE__ */ a(
|
|
2077
2077
|
"div",
|
|
2078
2078
|
{
|
|
2079
2079
|
ref: x,
|
|
2080
|
-
className:
|
|
2080
|
+
className: v("flex justify-between border-b border-surface-border-strong px-ds-03 py-ds-04 last:border-b-0", r),
|
|
2081
2081
|
...f,
|
|
2082
2082
|
children: [
|
|
2083
2083
|
/* @__PURE__ */ a("div", { className: "flex w-full items-center gap-ds-04", children: [
|
|
2084
2084
|
/* @__PURE__ */ a(Qe, { className: "h-ds-md w-ds-md", children: [
|
|
2085
2085
|
/* @__PURE__ */ e(Le, { src: l[((p = s.user) == null ? void 0 : p.id) || ""], alt: ((S = s.user) == null ? void 0 : S.name) || "" }),
|
|
2086
|
-
/* @__PURE__ */ e(qe, { children: (((
|
|
2086
|
+
/* @__PURE__ */ e(qe, { children: (((D = s.user) == null ? void 0 : D.name) || "?")[0] })
|
|
2087
2087
|
] }),
|
|
2088
2088
|
/* @__PURE__ */ a("div", { className: "flex w-auto max-w-[75%] flex-col items-start gap-ds-02b", children: [
|
|
2089
2089
|
/* @__PURE__ */ e("div", { className: "flex flex-row gap-ds-02b", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
|
|
@@ -2172,12 +2172,12 @@ const zs = _.forwardRef(function({
|
|
|
2172
2172
|
c(), m("");
|
|
2173
2173
|
},
|
|
2174
2174
|
children: /* @__PURE__ */ a(fe, { children: [
|
|
2175
|
-
/* @__PURE__ */ a(
|
|
2175
|
+
/* @__PURE__ */ a(De, { children: [
|
|
2176
2176
|
/* @__PURE__ */ e(pt, { className: "text-ds-xl", children: (K = s.user) == null ? void 0 : K.name }),
|
|
2177
2177
|
/* @__PURE__ */ e(Xe, { className: "text-ds-lg", children: s.reason })
|
|
2178
2178
|
] }),
|
|
2179
2179
|
/* @__PURE__ */ a("div", { className: "flex flex-col", children: [
|
|
2180
|
-
/* @__PURE__ */ a("div", { className: "text-ds-md flex flex-col items-start justify-center gap-ds-03 rounded-ds-lg border border-surface-border bg-surface-
|
|
2180
|
+
/* @__PURE__ */ a("div", { className: "text-ds-md flex flex-col items-start justify-center gap-ds-03 rounded-ds-lg border border-surface-border bg-surface-raised shadow-raised px-ds-05 pb-ds-01 pt-ds-03 text-surface-fg", children: [
|
|
2181
2181
|
/* @__PURE__ */ e("label", { className: "text-ds-xs font-semibold uppercase tracking-wider text-surface-fg-subtle", htmlFor: "comment", children: "Comment" }),
|
|
2182
2182
|
/* @__PURE__ */ e(
|
|
2183
2183
|
gt,
|
|
@@ -2221,8 +2221,8 @@ const Ws = _.forwardRef(function({ id: s, userId: l, onDelete: t, className: i,
|
|
|
2221
2221
|
}
|
|
2222
2222
|
};
|
|
2223
2223
|
return /* @__PURE__ */ a(ue, { open: r, onOpenChange: f, children: [
|
|
2224
|
-
/* @__PURE__ */ e(
|
|
2225
|
-
/* @__PURE__ */ a(fe, { className:
|
|
2224
|
+
/* @__PURE__ */ e(ve, { asChild: !0, children: /* @__PURE__ */ e(X, { icon: /* @__PURE__ */ e(mt, {}), size: "md", "aria-label": "Delete break" }) }),
|
|
2225
|
+
/* @__PURE__ */ a(fe, { className: v("flex w-[335px] flex-col items-center gap-ds-06 p-ds-06 max-md:w-[90%] max-md:rounded-ds-lg", i), ...o, children: [
|
|
2226
2226
|
/* @__PURE__ */ a("div", { className: "flex w-full max-w-[240px] flex-col items-center gap-ds-04 text-center", children: [
|
|
2227
2227
|
/* @__PURE__ */ e("p", { className: "text-ds-lg font-semibold text-center text-surface-fg", children: "Delete this break?" }),
|
|
2228
2228
|
/* @__PURE__ */ e("p", { className: "text-ds-base text-surface-fg-subtle", children: "This will be permanently deleted and can not undo" })
|
|
@@ -2250,11 +2250,11 @@ function Oe(d, s, l) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
function Pt(d, s) {
|
|
2252
2252
|
const l = ee(d), t = ee(s);
|
|
2253
|
-
return ys(l, t) ||
|
|
2253
|
+
return ys(l, t) || vs(l, t);
|
|
2254
2254
|
}
|
|
2255
2255
|
function Vs(d, s) {
|
|
2256
2256
|
const l = ee(d), t = ee(s);
|
|
2257
|
-
return Je(l, t) ||
|
|
2257
|
+
return Je(l, t) || vs(l, t);
|
|
2258
2258
|
}
|
|
2259
2259
|
function Ft(d, s) {
|
|
2260
2260
|
return Je(ee(d), ee(s));
|
|
@@ -2354,7 +2354,7 @@ const Js = _.forwardRef(function({
|
|
|
2354
2354
|
console.error("Error fetching breaks:", g);
|
|
2355
2355
|
});
|
|
2356
2356
|
}, [p.currentMonth, p.currentYear, l, t]);
|
|
2357
|
-
const
|
|
2357
|
+
const D = (g) => {
|
|
2358
2358
|
const { name: y, value: Y } = g.target;
|
|
2359
2359
|
w((F) => ({
|
|
2360
2360
|
...F,
|
|
@@ -2417,7 +2417,7 @@ const Js = _.forwardRef(function({
|
|
|
2417
2417
|
return /* @__PURE__ */ e(
|
|
2418
2418
|
"div",
|
|
2419
2419
|
{
|
|
2420
|
-
className:
|
|
2420
|
+
className: v("text-ds-sm w-fit rounded-ds-2xl px-ds-02b py-ds-02 capitalize", F),
|
|
2421
2421
|
children: Y
|
|
2422
2422
|
}
|
|
2423
2423
|
);
|
|
@@ -2493,18 +2493,18 @@ const Js = _.forwardRef(function({
|
|
|
2493
2493
|
}
|
|
2494
2494
|
}, E = (g) => !p.selectedStartDate || !p.selectedEndDate ? !!(p.showCalendar && (p.activeDate === "start" && n.startDate === g || p.activeDate === "end" && n.endDate === g)) : Oe(g, p.selectedStartDate, p.selectedEndDate), j = K(p.currentMonth, p.currentYear);
|
|
2495
2495
|
return /* @__PURE__ */ a(ue, { children: [
|
|
2496
|
-
/* @__PURE__ */ e(
|
|
2496
|
+
/* @__PURE__ */ e(ve, { asChild: !0, children: /* @__PURE__ */ a(
|
|
2497
2497
|
J,
|
|
2498
2498
|
{
|
|
2499
2499
|
variant: "outline",
|
|
2500
|
-
className: "text-ds-base border-surface-border-strong bg-surface-
|
|
2500
|
+
className: "text-ds-base border-surface-border-strong bg-surface-overlay px-ds-05 py-ds-04 pr-ds-06 text-surface-fg-muted shadow-raised-hover",
|
|
2501
2501
|
children: [
|
|
2502
2502
|
/* @__PURE__ */ e(Ge, {}),
|
|
2503
2503
|
/* @__PURE__ */ e("span", { children: "Edit" })
|
|
2504
2504
|
]
|
|
2505
2505
|
}
|
|
2506
2506
|
) }),
|
|
2507
|
-
/* @__PURE__ */ e(fe, { className:
|
|
2507
|
+
/* @__PURE__ */ e(fe, { className: v("w-[440px] p-ds-06 max-md:w-[90%] max-md:rounded-ds-lg", c), ...h, children: /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(Xe, { children: /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-center gap-ds-05", children: [
|
|
2508
2508
|
/* @__PURE__ */ a("p", { className: "text-ds-md w-full text-left text-surface-fg-subtle", children: [
|
|
2509
2509
|
"Edit break details of",
|
|
2510
2510
|
" ",
|
|
@@ -2528,8 +2528,8 @@ const Js = _.forwardRef(function({
|
|
|
2528
2528
|
{
|
|
2529
2529
|
type: "button",
|
|
2530
2530
|
onClick: () => M("start"),
|
|
2531
|
-
className:
|
|
2532
|
-
"text-ds-md flex w-full items-center justify-center gap-ds-03 rounded-ds-full border bg-surface-
|
|
2531
|
+
className: v(
|
|
2532
|
+
"text-ds-md flex w-full items-center justify-center gap-ds-03 rounded-ds-full border bg-surface-raised px-ds-03 py-ds-03 text-surface-fg-muted max-md:text-ds-sm",
|
|
2533
2533
|
(p.showCalendar && p.activeDate === "start", "border-surface-border-strong")
|
|
2534
2534
|
),
|
|
2535
2535
|
children: T(n.startDate)
|
|
@@ -2541,8 +2541,8 @@ const Js = _.forwardRef(function({
|
|
|
2541
2541
|
{
|
|
2542
2542
|
type: "button",
|
|
2543
2543
|
onClick: () => M("end"),
|
|
2544
|
-
className:
|
|
2545
|
-
"text-ds-md flex w-full items-center justify-center gap-ds-03 rounded-ds-full border bg-surface-
|
|
2544
|
+
className: v(
|
|
2545
|
+
"text-ds-md flex w-full items-center justify-center gap-ds-03 rounded-ds-full border bg-surface-raised px-ds-03 py-ds-03 text-surface-fg-muted max-md:text-ds-sm",
|
|
2546
2546
|
(p.showCalendar && p.activeDate === "end", "border-surface-border-strong")
|
|
2547
2547
|
),
|
|
2548
2548
|
children: T(n.endDate)
|
|
@@ -2555,7 +2555,7 @@ const Js = _.forwardRef(function({
|
|
|
2555
2555
|
"button",
|
|
2556
2556
|
{
|
|
2557
2557
|
type: "button",
|
|
2558
|
-
className: "rounded-ds-full p-ds-03 hover:bg-surface-
|
|
2558
|
+
className: "rounded-ds-full p-ds-03 hover:bg-surface-raised-active",
|
|
2559
2559
|
onClick: () => p.navigateMonth("prev"),
|
|
2560
2560
|
children: /* @__PURE__ */ e(Ne, { className: "h-ico-md w-ico-md" })
|
|
2561
2561
|
}
|
|
@@ -2574,7 +2574,7 @@ const Js = _.forwardRef(function({
|
|
|
2574
2574
|
"button",
|
|
2575
2575
|
{
|
|
2576
2576
|
type: "button",
|
|
2577
|
-
className: "rounded-ds-full p-ds-03 hover:bg-surface-
|
|
2577
|
+
className: "rounded-ds-full p-ds-03 hover:bg-surface-raised-active",
|
|
2578
2578
|
onClick: () => p.navigateMonth("next"),
|
|
2579
2579
|
children: /* @__PURE__ */ e(ye, { className: "h-ico-md w-ico-md" })
|
|
2580
2580
|
}
|
|
@@ -2590,7 +2590,7 @@ const Js = _.forwardRef(function({
|
|
|
2590
2590
|
type: "button",
|
|
2591
2591
|
tabIndex: g.isPadding ? -1 : 0,
|
|
2592
2592
|
"aria-label": g.isPadding ? void 0 : O(new Date(g.fullDate), "MMMM d, yyyy"),
|
|
2593
|
-
className:
|
|
2593
|
+
className: v(
|
|
2594
2594
|
"flex cursor-pointer flex-col items-center pb-0 pt-0 text-center",
|
|
2595
2595
|
E(g.fullDate) && g.fullDate !== p.selectedStartDate && g.fullDate !== p.selectedEndDate && "bg-accent-2",
|
|
2596
2596
|
g.isPadding && "opacity-50",
|
|
@@ -2603,14 +2603,14 @@ const Js = _.forwardRef(function({
|
|
|
2603
2603
|
children: /* @__PURE__ */ e(
|
|
2604
2604
|
"div",
|
|
2605
2605
|
{
|
|
2606
|
-
className:
|
|
2606
|
+
className: v(
|
|
2607
2607
|
"mx-ds-02 my-ds-02",
|
|
2608
2608
|
g.isPadding && "opacity-50"
|
|
2609
2609
|
),
|
|
2610
2610
|
children: /* @__PURE__ */ e(
|
|
2611
2611
|
"span",
|
|
2612
2612
|
{
|
|
2613
|
-
className:
|
|
2613
|
+
className: v(
|
|
2614
2614
|
"text-ds-base flex h-ds-md w-ds-md items-center justify-center rounded-ds-full",
|
|
2615
2615
|
(g.fullDate === p.selectedStartDate || g.fullDate === p.selectedEndDate || hs(g.fullDate, x, s.id)) && "bg-accent-9 ring-2 ring-inset ring-accent-7",
|
|
2616
2616
|
g.isToday ? "bg-accent-10 p-ds-03 text-accent-fg" : "text-surface-fg-muted"
|
|
@@ -2647,11 +2647,11 @@ const Js = _.forwardRef(function({
|
|
|
2647
2647
|
]
|
|
2648
2648
|
}
|
|
2649
2649
|
),
|
|
2650
|
-
r && /* @__PURE__ */ a("div", { className: "text-ds-base absolute left-[10px] top-[25px] z-raised flex flex-col overflow-hidden rounded-ds-md border border-surface-border-strong bg-surface-
|
|
2650
|
+
r && /* @__PURE__ */ a("div", { className: "text-ds-base absolute left-[10px] top-[25px] z-raised flex flex-col overflow-hidden rounded-ds-md border border-surface-border-strong bg-surface-overlay shadow-raised-hover", role: "listbox", children: [
|
|
2651
2651
|
/* @__PURE__ */ e(
|
|
2652
2652
|
"div",
|
|
2653
2653
|
{
|
|
2654
|
-
className: "cursor-pointer border-b border-b-surface-border bg-surface-
|
|
2654
|
+
className: "cursor-pointer border-b border-b-surface-border bg-surface-overlay px-ds-04 py-ds-03 text-left",
|
|
2655
2655
|
role: "option",
|
|
2656
2656
|
tabIndex: 0,
|
|
2657
2657
|
"aria-selected": n.status === "APPROVED",
|
|
@@ -2665,7 +2665,7 @@ const Js = _.forwardRef(function({
|
|
|
2665
2665
|
/* @__PURE__ */ e(
|
|
2666
2666
|
"div",
|
|
2667
2667
|
{
|
|
2668
|
-
className: "cursor-pointer bg-surface-
|
|
2668
|
+
className: "cursor-pointer bg-surface-overlay px-ds-04 py-ds-03 text-left",
|
|
2669
2669
|
role: "option",
|
|
2670
2670
|
tabIndex: 0,
|
|
2671
2671
|
"aria-selected": n.status === "REJECTED",
|
|
@@ -2689,7 +2689,7 @@ const Js = _.forwardRef(function({
|
|
|
2689
2689
|
className: "text-ds-md text-surface-fg outline-none",
|
|
2690
2690
|
placeholder: "Enjoy your break, TC",
|
|
2691
2691
|
value: n.comment,
|
|
2692
|
-
onChange:
|
|
2692
|
+
onChange: D
|
|
2693
2693
|
}
|
|
2694
2694
|
)
|
|
2695
2695
|
] }),
|
|
@@ -2735,7 +2735,7 @@ const Gs = _.forwardRef(
|
|
|
2735
2735
|
className: b,
|
|
2736
2736
|
...r
|
|
2737
2737
|
}, f) {
|
|
2738
|
-
return /* @__PURE__ */ a("div", { ref: f, className:
|
|
2738
|
+
return /* @__PURE__ */ a("div", { ref: f, className: v("m-0 flex h-[400px] w-full flex-col items-start justify-start p-0 max-md:h-auto", b), ...r, children: [
|
|
2739
2739
|
/* @__PURE__ */ a("div", { className: "mx-auto mb-ds-05 mt-ds-04 flex w-[92%] items-center", children: [
|
|
2740
2740
|
/* @__PURE__ */ e("div", { className: "w-[16%] min-w-[120px] overflow-hidden px-ds-04 py-ds-03", children: /* @__PURE__ */ e("div", { className: "text-ds-sm font-semibold uppercase tracking-wider text-surface-fg-subtle", children: "NAME" }) }),
|
|
2741
2741
|
/* @__PURE__ */ e("div", { className: "w-[19%] overflow-hidden px-ds-04 py-ds-03", children: /* @__PURE__ */ e("div", { className: "text-ds-sm font-semibold uppercase tracking-wider text-surface-fg-subtle", children: "DATE" }) }),
|
|
@@ -2746,12 +2746,12 @@ const Gs = _.forwardRef(
|
|
|
2746
2746
|
/* @__PURE__ */ e("div", { className: "w-ds-lg overflow-hidden px-ds-04 py-ds-03" })
|
|
2747
2747
|
] }),
|
|
2748
2748
|
/* @__PURE__ */ e("div", { className: "no-scrollbar mx-auto flex w-[92%] flex-col gap-ds-05 overflow-y-auto max-md:h-[calc(100dvh-373px)]", children: s.map((x) => {
|
|
2749
|
-
var n, w, p, S,
|
|
2749
|
+
var n, w, p, S, D, A;
|
|
2750
2750
|
const u = new Date(x.startDate), m = new Date(x.endDate), N = Z(u, m);
|
|
2751
2751
|
return /* @__PURE__ */ a(
|
|
2752
2752
|
"div",
|
|
2753
2753
|
{
|
|
2754
|
-
className: "flex w-full items-center hover:bg-surface-
|
|
2754
|
+
className: "flex w-full items-center transition-colors duration-fast-01 hover:bg-surface-raised-hover",
|
|
2755
2755
|
children: [
|
|
2756
2756
|
/* @__PURE__ */ a("div", { className: "flex w-[16%] min-w-[120px] items-center gap-ds-03 overflow-hidden px-ds-04 py-ds-03", children: [
|
|
2757
2757
|
l[x.userId] ? /* @__PURE__ */ e(
|
|
@@ -2761,9 +2761,9 @@ const Gs = _.forwardRef(
|
|
|
2761
2761
|
alt: "",
|
|
2762
2762
|
className: "h-ds-xs-plus w-full max-w-7 flex-shrink-0 rounded-ds-full object-cover"
|
|
2763
2763
|
}
|
|
2764
|
-
) : /* @__PURE__ */ e("span", { className: "flex h-ds-xs-plus w-full max-w-7 items-center justify-center rounded-ds-full bg-surface-
|
|
2765
|
-
/* @__PURE__ */ a(
|
|
2766
|
-
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "text-ds-md truncate text-surface-fg", children: ((p = x.user) == null ? void 0 : p.name) || ((
|
|
2764
|
+
) : /* @__PURE__ */ e("span", { className: "flex h-ds-xs-plus w-full max-w-7 items-center justify-center rounded-ds-full bg-surface-raised text-ds-sm font-medium uppercase text-surface-fg", children: ((w = (n = x.user) == null ? void 0 : n.name) == null ? void 0 : w[0]) || "U" }),
|
|
2765
|
+
/* @__PURE__ */ a(Dt, { children: [
|
|
2766
|
+
/* @__PURE__ */ e(Et, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "text-ds-md truncate text-surface-fg", children: ((p = x.user) == null ? void 0 : p.name) || ((D = (S = x.user) == null ? void 0 : S.name) == null ? void 0 : D.split(" ")[0]) }) }),
|
|
2767
2767
|
/* @__PURE__ */ e(kt, { children: (A = x.user) == null ? void 0 : A.name })
|
|
2768
2768
|
] })
|
|
2769
2769
|
] }),
|
|
@@ -2845,7 +2845,7 @@ const ps = [
|
|
|
2845
2845
|
isOpen: !1
|
|
2846
2846
|
}));
|
|
2847
2847
|
};
|
|
2848
|
-
return /* @__PURE__ */ a("div", { ref: b, className:
|
|
2848
|
+
return /* @__PURE__ */ a("div", { ref: b, className: v("flex min-w-[800px] items-center justify-between bg-surface-raised-hover px-ds-06 py-ds-05b max-md:justify-start max-md:gap-ds-05b max-lg:min-w-[100%]", c), ...h, children: [
|
|
2849
2849
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-05", children: s.selectedAssociate && /* @__PURE__ */ a(Q, { children: [
|
|
2850
2850
|
/* @__PURE__ */ e("p", { className: "text-ds-sm font-semibold uppercase tracking-wider text-surface-fg-subtle", children: "Break Balance" }),
|
|
2851
2851
|
/* @__PURE__ */ a("div", { className: "flex items-end", children: [
|
|
@@ -2866,7 +2866,7 @@ const ps = [
|
|
|
2866
2866
|
alt: `${s.selectedAssociate.name}'s avatar`,
|
|
2867
2867
|
className: "h-ico-md w-ico-md rounded-ds-full"
|
|
2868
2868
|
}
|
|
2869
|
-
) : /* @__PURE__ */ e("div", { className: "flex h-ico-md w-ico-md items-center justify-center rounded-ds-full bg-surface-
|
|
2869
|
+
) : /* @__PURE__ */ e("div", { className: "flex h-ico-md w-ico-md items-center justify-center rounded-ds-full bg-surface-raised", children: /* @__PURE__ */ e("span", { className: "text-accent-11", children: s.selectedAssociate.name.charAt(0) }) }),
|
|
2870
2870
|
/* @__PURE__ */ e("span", { className: "text-ds-md mx-ds-01 text-accent-fg", children: s.selectedAssociate.name })
|
|
2871
2871
|
] }),
|
|
2872
2872
|
/* @__PURE__ */ e(
|
|
@@ -2882,9 +2882,9 @@ const ps = [
|
|
|
2882
2882
|
}
|
|
2883
2883
|
)
|
|
2884
2884
|
] }) : /* @__PURE__ */ a(ge, { children: [
|
|
2885
|
-
/* @__PURE__ */ a(we, { className: "text-ds-md flex flex-row items-center justify-between rounded-ds-md border border-surface-border bg-surface-
|
|
2885
|
+
/* @__PURE__ */ a(we, { className: "text-ds-md flex flex-row items-center justify-between rounded-ds-md border border-surface-border bg-surface-base px-ds-03 py-ds-02b", children: [
|
|
2886
2886
|
/* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
2887
|
-
/* @__PURE__ */ e(
|
|
2887
|
+
/* @__PURE__ */ e(Ds, { className: "h-ico-sm w-ico-sm" }),
|
|
2888
2888
|
/* @__PURE__ */ e("span", { className: "text-ds-md mx-ds-03 text-surface-fg-muted max-lg:mx-0 max-lg:text-ds-sm", children: "Associate" })
|
|
2889
2889
|
] }),
|
|
2890
2890
|
/* @__PURE__ */ e(oe, { className: "h-ico-sm w-ico-sm" })
|
|
@@ -2905,7 +2905,7 @@ const ps = [
|
|
|
2905
2905
|
alt: `${m.name}'s avatar`,
|
|
2906
2906
|
className: "h-ds-xs w-ds-xs rounded-ds-full"
|
|
2907
2907
|
}
|
|
2908
|
-
) : /* @__PURE__ */ e("div", { className: "flex h-ds-xs w-ds-xs items-center justify-center rounded-ds-full bg-surface-
|
|
2908
|
+
) : /* @__PURE__ */ e("div", { className: "flex h-ds-xs w-ds-xs items-center justify-center rounded-ds-full bg-surface-raised-hover", children: /* @__PURE__ */ e("span", { className: "text-ds-md text-accent-11", children: m.name.charAt(0) }) }),
|
|
2909
2909
|
/* @__PURE__ */ e("span", { className: "text-ds-md text-surface-fg-muted", children: m.name })
|
|
2910
2910
|
]
|
|
2911
2911
|
},
|
|
@@ -2945,7 +2945,7 @@ const ps = [
|
|
|
2945
2945
|
r((N) => ({ ...N, isOpen: m }));
|
|
2946
2946
|
},
|
|
2947
2947
|
children: [
|
|
2948
|
-
/* @__PURE__ */ a(we, { className: "text-ds-md flex items-center justify-between rounded-ds-md border border-surface-border bg-surface-
|
|
2948
|
+
/* @__PURE__ */ a(we, { className: "text-ds-md flex items-center justify-between rounded-ds-md border border-surface-border bg-surface-base p-ds-02b", children: [
|
|
2949
2949
|
/* @__PURE__ */ a("div", { className: "flex items-center", children: [
|
|
2950
2950
|
/* @__PURE__ */ e(ht, {}),
|
|
2951
2951
|
/* @__PURE__ */ e("span", { className: "mx-ds-03 text-surface-fg-muted", children: "Date" })
|
|
@@ -3026,12 +3026,12 @@ const ps = [
|
|
|
3026
3026
|
Zs.displayName = "BreakAdminHeader";
|
|
3027
3027
|
const Xs = _.forwardRef(
|
|
3028
3028
|
function({ className: s, ...l }, t) {
|
|
3029
|
-
return /* @__PURE__ */ a("div", { ref: t, className:
|
|
3030
|
-
/* @__PURE__ */ e("div", { className: "flex items-center justify-end bg-surface-
|
|
3029
|
+
return /* @__PURE__ */ a("div", { ref: t, className: v("z-base h-fit w-full max-w-layout-body overflow-hidden border-[1px] border-surface-border bg-surface-raised-hover sm:rounded-ds-lg", s), ...l, children: [
|
|
3030
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-end bg-surface-raised-hover px-ds-06 py-ds-05b", children: /* @__PURE__ */ e("header", { className: "flex items-center", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-ds-04", children: [
|
|
3031
3031
|
/* @__PURE__ */ e(R, { className: "h-ds-sm-plus w-32 rounded-ds-md" }),
|
|
3032
3032
|
/* @__PURE__ */ e(R, { className: "h-ds-sm-plus w-32 rounded-ds-md" })
|
|
3033
3033
|
] }) }) }),
|
|
3034
|
-
/* @__PURE__ */ a("div", { className: "flex h-fit flex-col border-t-[1px] border-surface-border bg-surface-
|
|
3034
|
+
/* @__PURE__ */ a("div", { className: "flex h-fit flex-col border-t-[1px] border-surface-border bg-surface-raised shadow-transparent", children: [
|
|
3035
3035
|
/* @__PURE__ */ a("div", { className: "flex w-full gap-ds-03 border-b-[1px] border-surface-border-strong px-ds-06 pt-ds-03", children: [
|
|
3036
3036
|
/* @__PURE__ */ e(R, { className: "h-ds-md w-20" }),
|
|
3037
3037
|
/* @__PURE__ */ e(R, { className: "h-ds-md w-24" }),
|
|
@@ -3039,12 +3039,12 @@ const Xs = _.forwardRef(
|
|
|
3039
3039
|
] }),
|
|
3040
3040
|
/* @__PURE__ */ a("div", { className: "h-[400px] border-0 px-ds-06 py-ds-05", children: [
|
|
3041
3041
|
/* @__PURE__ */ a("div", { className: "mb-ds-05 ml-ds-06 grid grid-cols-6 items-center gap-ds-05 py-ds-03", children: [
|
|
3042
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-
|
|
3043
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-
|
|
3044
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-
|
|
3045
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-
|
|
3046
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-
|
|
3047
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-
|
|
3042
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-raised-hover" }),
|
|
3043
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-raised-hover" }),
|
|
3044
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-raised-hover" }),
|
|
3045
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-raised-hover" }),
|
|
3046
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-raised-hover" }),
|
|
3047
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-raised-hover" })
|
|
3048
3048
|
] }),
|
|
3049
3049
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-ds-05", children: Array.from({ length: 5 }).map((i, o) => /* @__PURE__ */ a(
|
|
3050
3050
|
"div",
|
|
@@ -3052,19 +3052,19 @@ const Xs = _.forwardRef(
|
|
|
3052
3052
|
className: "ml-ds-06 grid grid-cols-6 items-center gap-ds-05 rounded-ds-lg py-ds-03",
|
|
3053
3053
|
children: [
|
|
3054
3054
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
|
|
3055
|
-
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-
|
|
3056
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-24 bg-surface-
|
|
3055
|
+
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-raised-hover" }),
|
|
3056
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-24 bg-surface-raised-hover" })
|
|
3057
3057
|
] }),
|
|
3058
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-
|
|
3059
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-16 bg-surface-
|
|
3060
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-
|
|
3058
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-raised-hover" }),
|
|
3059
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-16 bg-surface-raised-hover" }),
|
|
3060
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-full bg-surface-raised-hover" }),
|
|
3061
3061
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
|
|
3062
|
-
/* @__PURE__ */ e(R, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-surface-
|
|
3063
|
-
/* @__PURE__ */ e(R, { className: "h-5 w-16 bg-surface-
|
|
3062
|
+
/* @__PURE__ */ e(R, { className: "h-ds-xs w-ds-xs rounded-ds-full bg-surface-raised-hover" }),
|
|
3063
|
+
/* @__PURE__ */ e(R, { className: "h-5 w-16 bg-surface-raised-hover" })
|
|
3064
3064
|
] }),
|
|
3065
3065
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-end gap-ds-03", children: [
|
|
3066
|
-
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-
|
|
3067
|
-
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-
|
|
3066
|
+
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-raised-hover" }),
|
|
3067
|
+
/* @__PURE__ */ e(R, { className: "h-ds-sm w-ds-sm rounded-ds-full bg-surface-raised-hover" })
|
|
3068
3068
|
] })
|
|
3069
3069
|
]
|
|
3070
3070
|
},
|
|
@@ -3105,7 +3105,7 @@ const Ve = _.forwardRef(
|
|
|
3105
3105
|
onApproveRequest: w,
|
|
3106
3106
|
onRejectRequest: p,
|
|
3107
3107
|
onApproveCashout: S,
|
|
3108
|
-
onRejectCashout:
|
|
3108
|
+
onRejectCashout: D,
|
|
3109
3109
|
onRefresh: A,
|
|
3110
3110
|
onSaveBreak: M,
|
|
3111
3111
|
onDeleteBreak: k,
|
|
@@ -3243,11 +3243,11 @@ const Ve = _.forwardRef(
|
|
|
3243
3243
|
"div",
|
|
3244
3244
|
{
|
|
3245
3245
|
ref: P,
|
|
3246
|
-
className:
|
|
3246
|
+
className: v("z-base flex w-full max-w-layout flex-col items-center justify-center md:pt-0", E),
|
|
3247
3247
|
...j,
|
|
3248
3248
|
children: /* @__PURE__ */ e("div", { className: "no-scrollbar w-full overflow-auto border border-surface-border sm:rounded-ds-lg max-md:rounded-ds-none max-md:border-0", children: z ?? /* @__PURE__ */ a(Q, { children: [
|
|
3249
3249
|
/* @__PURE__ */ e(Ue, {}),
|
|
3250
|
-
/* @__PURE__ */ a("div", { className: "no-scrollbar flex h-fit min-w-[800px] flex-col border-t-[1px] border-surface-border bg-surface-
|
|
3250
|
+
/* @__PURE__ */ a("div", { className: "no-scrollbar flex h-fit min-w-[800px] flex-col border-t-[1px] border-surface-border bg-surface-raised shadow-transparent max-lg:min-w-[100%] max-lg:overflow-x-auto", children: [
|
|
3251
3251
|
/* @__PURE__ */ e(es, {}),
|
|
3252
3252
|
/* @__PURE__ */ a("div", { className: "w-full border-0 max-lg:min-w-[800px]", children: [
|
|
3253
3253
|
/* @__PURE__ */ e(ss, {}),
|
|
@@ -3269,7 +3269,7 @@ const Ue = _.forwardRef(function({ className: s, ...l }, t) {
|
|
|
3269
3269
|
userImages: h,
|
|
3270
3270
|
users: b
|
|
3271
3271
|
} = Se();
|
|
3272
|
-
return /* @__PURE__ */ e("div", { ref: t, className:
|
|
3272
|
+
return /* @__PURE__ */ e("div", { ref: t, className: v(s), ...l, children: /* @__PURE__ */ e(
|
|
3273
3273
|
Zs,
|
|
3274
3274
|
{
|
|
3275
3275
|
filters: i,
|
|
@@ -3287,7 +3287,7 @@ const es = _.forwardRef(function({ className: s, ...l }, t) {
|
|
|
3287
3287
|
"div",
|
|
3288
3288
|
{
|
|
3289
3289
|
ref: t,
|
|
3290
|
-
className:
|
|
3290
|
+
className: v(
|
|
3291
3291
|
"flex w-full gap-ds-03 border-b-[1px] border-surface-border-strong px-ds-06 pt-ds-03 max-lg:min-w-[800px]",
|
|
3292
3292
|
s
|
|
3293
3293
|
),
|
|
@@ -3296,7 +3296,7 @@ const es = _.forwardRef(function({ className: s, ...l }, t) {
|
|
|
3296
3296
|
/* @__PURE__ */ e(
|
|
3297
3297
|
"button",
|
|
3298
3298
|
{
|
|
3299
|
-
className:
|
|
3299
|
+
className: v("text-ds-sm font-semibold uppercase tracking-wider mb-[-1px] px-ds-03 py-ds-04", i === "breaks" ? "text-surface-fg border-b-[1px] border-accent-7" : "text-surface-fg-subtle"),
|
|
3300
3300
|
onClick: () => o("breaks"),
|
|
3301
3301
|
children: "BREAKS"
|
|
3302
3302
|
}
|
|
@@ -3304,7 +3304,7 @@ const es = _.forwardRef(function({ className: s, ...l }, t) {
|
|
|
3304
3304
|
/* @__PURE__ */ a(
|
|
3305
3305
|
"button",
|
|
3306
3306
|
{
|
|
3307
|
-
className:
|
|
3307
|
+
className: v("text-ds-sm font-semibold uppercase tracking-wider mb-[-1px] flex items-center gap-ds-02 px-ds-03 py-ds-04", i === "requests" ? "border-b-[1px] border-accent-7 text-surface-fg" : "text-surface-fg-subtle"),
|
|
3308
3308
|
onClick: () => o("requests"),
|
|
3309
3309
|
children: [
|
|
3310
3310
|
"REQUESTS",
|
|
@@ -3316,7 +3316,7 @@ const es = _.forwardRef(function({ className: s, ...l }, t) {
|
|
|
3316
3316
|
/* @__PURE__ */ a(
|
|
3317
3317
|
"button",
|
|
3318
3318
|
{
|
|
3319
|
-
className:
|
|
3319
|
+
className: v("text-ds-sm font-semibold uppercase tracking-wider mb-[-1px] flex items-center gap-ds-02 px-ds-03 py-ds-04", i === "balance" ? "border-b-[1px] border-accent-7 text-surface-fg" : "text-surface-fg-subtle"),
|
|
3320
3320
|
onClick: () => o("balance"),
|
|
3321
3321
|
children: [
|
|
3322
3322
|
"BALANCE",
|
|
@@ -3341,7 +3341,7 @@ const ss = _.forwardRef(function({ className: s, ...l }, t) {
|
|
|
3341
3341
|
onDeleteBreak: f,
|
|
3342
3342
|
onRefresh: x
|
|
3343
3343
|
} = Se();
|
|
3344
|
-
return i !== "breaks" ? null : /* @__PURE__ */ e("div", { ref: t, className:
|
|
3344
|
+
return i !== "breaks" ? null : /* @__PURE__ */ e("div", { ref: t, className: v(s), ...l, children: /* @__PURE__ */ e(
|
|
3345
3345
|
Gs,
|
|
3346
3346
|
{
|
|
3347
3347
|
breaks: o,
|
|
@@ -3372,7 +3372,7 @@ const ts = _.forwardRef(function({ className: s, ...l }, t) {
|
|
|
3372
3372
|
"div",
|
|
3373
3373
|
{
|
|
3374
3374
|
ref: t,
|
|
3375
|
-
className:
|
|
3375
|
+
className: v(
|
|
3376
3376
|
/* intentional: h-[400px] is the fixed panel height for break tab content areas; mobile uses dvh for browser chrome */
|
|
3377
3377
|
"no-scrollbar flex h-[400px] flex-col gap-ds-02 overflow-y-auto border-t border-t-surface-border px-ds-06 pb-ds-02 pt-ds-02 max-md:h-[calc(100dvh-317px)] max-md:border-0",
|
|
3378
3378
|
s
|
|
@@ -3400,7 +3400,7 @@ const ts = _.forwardRef(function({ className: s, ...l }, t) {
|
|
|
3400
3400
|
ts.displayName = "BreakAdmin.RequestsPanel";
|
|
3401
3401
|
const as = _.forwardRef(function({ className: s, ...l }, t) {
|
|
3402
3402
|
const { activeTab: i, breakBalanceData: o, userImages: c, onSaveBalance: h } = Se();
|
|
3403
|
-
return i !== "balance" ? null : /* @__PURE__ */ e("div", { ref: t, className:
|
|
3403
|
+
return i !== "balance" ? null : /* @__PURE__ */ e("div", { ref: t, className: v(s), ...l, children: /* @__PURE__ */ e(
|
|
3404
3404
|
Ks,
|
|
3405
3405
|
{
|
|
3406
3406
|
breakBalanceData: o,
|
|
@@ -3450,18 +3450,18 @@ const fa = Object.assign(Ve, {
|
|
|
3450
3450
|
}
|
|
3451
3451
|
};
|
|
3452
3452
|
return /* @__PURE__ */ a(ue, { children: [
|
|
3453
|
-
/* @__PURE__ */ e(
|
|
3453
|
+
/* @__PURE__ */ e(ve, { asChild: !0, children: /* @__PURE__ */ a(
|
|
3454
3454
|
J,
|
|
3455
3455
|
{
|
|
3456
3456
|
variant: "outline",
|
|
3457
|
-
className: "text-ds-base border-surface-border-strong bg-surface-
|
|
3457
|
+
className: "text-ds-base border-surface-border-strong bg-surface-overlay px-ds-05 py-ds-04 pr-ds-06 text-surface-fg-muted shadow-raised-hover",
|
|
3458
3458
|
children: [
|
|
3459
3459
|
/* @__PURE__ */ e(Ge, {}),
|
|
3460
3460
|
/* @__PURE__ */ e("span", { children: "Edit" })
|
|
3461
3461
|
]
|
|
3462
3462
|
}
|
|
3463
3463
|
) }),
|
|
3464
|
-
/* @__PURE__ */ e(fe, { className:
|
|
3464
|
+
/* @__PURE__ */ e(fe, { className: v("w-[308px] p-ds-06", t), ...i, children: /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(Xe, { children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center justify-start gap-ds-05", children: [
|
|
3465
3465
|
/* @__PURE__ */ a("p", { className: "text-ds-md w-full text-left text-surface-fg-subtle", children: [
|
|
3466
3466
|
"Edit break balance conversion of ",
|
|
3467
3467
|
/* @__PURE__ */ e("br", { className: "mb-ds-02" }),
|
|
@@ -3520,7 +3520,7 @@ const It = _.forwardRef(
|
|
|
3520
3520
|
className: t,
|
|
3521
3521
|
...i
|
|
3522
3522
|
}, o) {
|
|
3523
|
-
return /* @__PURE__ */ e("div", { ref: o, className:
|
|
3523
|
+
return /* @__PURE__ */ e("div", { ref: o, className: v("no-scrollbar w-full overflow-auto border border-surface-border sm:rounded-ds-lg max-md:rounded-ds-none max-md:border-0", t), ...i, children: /* @__PURE__ */ e("div", { className: "bg-surface-raised pb-ds-06 pl-ds-05 pt-ds-03 md:p-ds-05", children: /* @__PURE__ */ e("div", { className: "no-scrollbar w-full overflow-x-auto overflow-y-auto", children: /* @__PURE__ */ a("div", { className: "min-w-[800px] max-md:w-[max-content]", children: [
|
|
3524
3524
|
/* @__PURE__ */ a("div", { className: "text-ds-sm font-semibold uppercase tracking-wider sticky top-0 grid grid-cols-[200px_160px_80px_1fr_1fr_1fr] gap-ds-05 py-ds-03 text-surface-fg-subtle sm:px-ds-06", children: [
|
|
3525
3525
|
/* @__PURE__ */ e("div", { className: "p-ds-03 pl-ds-04", children: "User" }),
|
|
3526
3526
|
/* @__PURE__ */ e("div", { className: "p-ds-03 pl-ds-04", children: "Date" }),
|
|
@@ -3534,7 +3534,7 @@ const It = _.forwardRef(
|
|
|
3534
3534
|
return /* @__PURE__ */ a(
|
|
3535
3535
|
"div",
|
|
3536
3536
|
{
|
|
3537
|
-
className: "grid grid-cols-[200px_160px_80px_1fr_1fr_1fr] gap-ds-05 bg-surface-
|
|
3537
|
+
className: "grid grid-cols-[200px_160px_80px_1fr_1fr_1fr] gap-ds-05 bg-surface-raised py-ds-03 sm:px-ds-06 transition-colors duration-fast-01 hover:bg-surface-raised-hover",
|
|
3538
3538
|
children: [
|
|
3539
3539
|
/* @__PURE__ */ e("div", { className: "p-ds-03 pl-ds-04 text-surface-fg-muted", children: ((h = c.user) == null ? void 0 : h.name) || "Unknown User" }),
|
|
3540
3540
|
/* @__PURE__ */ e("div", { className: "w-[160px] p-ds-03 text-surface-fg-muted", children: ie(new Date(c.createdAt)) }),
|