@mieweb/ui 0.2.2 → 0.2.4
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/ag-grid.cjs +5 -5
- package/dist/ag-grid.js +1 -1
- package/dist/{chunk-I7L6CQXR.cjs → chunk-377KAB4C.cjs} +52 -31
- package/dist/chunk-377KAB4C.cjs.map +1 -0
- package/dist/chunk-3K7QCDSV.js +3 -0
- package/dist/{chunk-Y22SOAJM.js.map → chunk-3K7QCDSV.js.map} +1 -1
- package/dist/{chunk-QUA7WVHK.cjs → chunk-QIOM5ZV2.cjs} +2 -14
- package/dist/{chunk-QUA7WVHK.cjs.map → chunk-QIOM5ZV2.cjs.map} +1 -1
- package/dist/{chunk-SD44QJIP.js → chunk-TCQ27C5M.js} +52 -31
- package/dist/chunk-TCQ27C5M.js.map +1 -0
- package/dist/components/Modal/index.cjs +9 -9
- package/dist/components/Modal/index.js +1 -1
- package/dist/index.cjs +334 -363
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +177 -206
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-I7L6CQXR.cjs.map +0 -1
- package/dist/chunk-SD44QJIP.js.map +0 -1
- package/dist/chunk-Y22SOAJM.js +0 -3
package/dist/index.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var chunkJYMQJ32S_cjs = require('./chunk-JYMQJ32S.cjs');
|
|
|
22
22
|
var chunkRRQGH7C5_cjs = require('./chunk-RRQGH7C5.cjs');
|
|
23
23
|
var chunkLZEY55QZ_cjs = require('./chunk-LZEY55QZ.cjs');
|
|
24
24
|
var chunkORUPC5TV_cjs = require('./chunk-ORUPC5TV.cjs');
|
|
25
|
-
var
|
|
25
|
+
var chunk377KAB4C_cjs = require('./chunk-377KAB4C.cjs');
|
|
26
26
|
var chunkPF3XWKE5_cjs = require('./chunk-PF3XWKE5.cjs');
|
|
27
27
|
var chunkCQCYXHCU_cjs = require('./chunk-CQCYXHCU.cjs');
|
|
28
28
|
var chunkNAATBUHR_cjs = require('./chunk-NAATBUHR.cjs');
|
|
@@ -38,7 +38,7 @@ var chunkQYJ7RQJ2_cjs = require('./chunk-QYJ7RQJ2.cjs');
|
|
|
38
38
|
var chunkVZUVYJFU_cjs = require('./chunk-VZUVYJFU.cjs');
|
|
39
39
|
var chunkVV4N4WY6_cjs = require('./chunk-VV4N4WY6.cjs');
|
|
40
40
|
var chunkFIXAVBUA_cjs = require('./chunk-FIXAVBUA.cjs');
|
|
41
|
-
var
|
|
41
|
+
var chunkQIOM5ZV2_cjs = require('./chunk-QIOM5ZV2.cjs');
|
|
42
42
|
var chunkR4DM4635_cjs = require('./chunk-R4DM4635.cjs');
|
|
43
43
|
var chunk2O7D6F67_cjs = require('./chunk-2O7D6F67.cjs');
|
|
44
44
|
var chunk6HFFWEM3_cjs = require('./chunk-6HFFWEM3.cjs');
|
|
@@ -182,10 +182,10 @@ function AddContactModal({
|
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
const isEditing = !!contact?.id;
|
|
185
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
186
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
185
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.Modal, { open, onOpenChange, children: [
|
|
186
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: isEditing ? "Edit Contact" : title }) }),
|
|
187
187
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
|
|
188
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
188
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: chunkOR5DRJCW_cjs.cn("space-y-4", className), children: [
|
|
189
189
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-3", children: [
|
|
190
190
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
191
191
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -446,7 +446,7 @@ function AddContactModal({
|
|
|
446
446
|
(!formData.customFields || formData.customFields.length === 0) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: 'No custom fields added. Click "Add Field" to add custom information.' })
|
|
447
447
|
] })
|
|
448
448
|
] }),
|
|
449
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
449
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
450
450
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
451
451
|
chunkPEH4ZOEM_cjs.Button,
|
|
452
452
|
{
|
|
@@ -614,7 +614,7 @@ function AdditionalFields({
|
|
|
614
614
|
disabled,
|
|
615
615
|
"aria-label": "Remove field",
|
|
616
616
|
className: "text-red-600 hover:bg-red-50 hover:text-red-700 dark:text-red-400 dark:hover:bg-red-900/20 dark:hover:text-red-300",
|
|
617
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
617
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Trash2, { className: "h-4 w-4" })
|
|
618
618
|
}
|
|
619
619
|
)
|
|
620
620
|
] }, entry.id)),
|
|
@@ -625,7 +625,7 @@ function AdditionalFields({
|
|
|
625
625
|
variant: "ghost",
|
|
626
626
|
onClick: handleAdd,
|
|
627
627
|
disabled: disabled || !canAdd,
|
|
628
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
628
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Plus, { className: "h-4 w-4" }),
|
|
629
629
|
className: "text-brand-600 hover:bg-brand-50 dark:text-brand-400 dark:hover:bg-brand-900/20",
|
|
630
630
|
children: addButtonLabel
|
|
631
631
|
}
|
|
@@ -654,7 +654,7 @@ function AdditionalFields({
|
|
|
654
654
|
children: [
|
|
655
655
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: title }),
|
|
656
656
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
657
|
-
|
|
657
|
+
chunkQIOM5ZV2_cjs.ChevronDown,
|
|
658
658
|
{
|
|
659
659
|
className: chunkOR5DRJCW_cjs.cn(
|
|
660
660
|
"h-4 w-4 transition-transform duration-200",
|
|
@@ -7638,13 +7638,13 @@ function CheckrIntegration({
|
|
|
7638
7638
|
connect
|
|
7639
7639
|
] })
|
|
7640
7640
|
] }),
|
|
7641
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7642
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7643
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7644
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7641
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.Modal, { open: showInviteModal, onOpenChange: setShowInviteModal, size: "md", children: [
|
|
7642
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
7643
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: inviteCandidate }),
|
|
7644
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
7645
7645
|
] }),
|
|
7646
7646
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleInviteSubmit, children: [
|
|
7647
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7647
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
7648
7648
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7649
7649
|
chunkVV4N4WY6_cjs.Input,
|
|
7650
7650
|
{
|
|
@@ -7683,7 +7683,7 @@ function CheckrIntegration({
|
|
|
7683
7683
|
}
|
|
7684
7684
|
)
|
|
7685
7685
|
] }) }),
|
|
7686
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7686
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
7687
7687
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7688
7688
|
chunkPEH4ZOEM_cjs.Button,
|
|
7689
7689
|
{
|
|
@@ -8624,7 +8624,7 @@ var countChipVariants = classVarianceAuthority.cva(
|
|
|
8624
8624
|
variant: {
|
|
8625
8625
|
default: "bg-muted text-foreground/70 dark:bg-muted dark:text-foreground/70",
|
|
8626
8626
|
info: "bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-200",
|
|
8627
|
-
informative: "bg-blue-
|
|
8627
|
+
informative: "bg-blue-50 text-blue-600 dark:bg-blue-950/50 dark:text-blue-300",
|
|
8628
8628
|
success: "bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",
|
|
8629
8629
|
warning: "bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",
|
|
8630
8630
|
alert: "bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"
|
|
@@ -8703,7 +8703,7 @@ function RowActionMenu({
|
|
|
8703
8703
|
"aria-haspopup": "menu",
|
|
8704
8704
|
"aria-expanded": open,
|
|
8705
8705
|
"aria-label": `Actions for ${item.label}`,
|
|
8706
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8706
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.MoreHorizontal, { size: 14 })
|
|
8707
8707
|
}
|
|
8708
8708
|
),
|
|
8709
8709
|
open && menuPos && ReactDOM__namespace.createPortal(
|
|
@@ -8873,10 +8873,10 @@ function ViewModalActions({
|
|
|
8873
8873
|
"aria-expanded": shareOpen,
|
|
8874
8874
|
"aria-haspopup": "menu",
|
|
8875
8875
|
children: [
|
|
8876
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8876
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Share, { size: 14, className: "mr-1.5" }),
|
|
8877
8877
|
"Share",
|
|
8878
8878
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8879
|
-
|
|
8879
|
+
chunkQIOM5ZV2_cjs.ChevronDown,
|
|
8880
8880
|
{
|
|
8881
8881
|
size: 12,
|
|
8882
8882
|
className: chunkOR5DRJCW_cjs.cn(
|
|
@@ -8914,7 +8914,7 @@ function ViewModalActions({
|
|
|
8914
8914
|
setShareOpen(false);
|
|
8915
8915
|
},
|
|
8916
8916
|
children: [
|
|
8917
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8917
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Stethoscope, { size: 14 }),
|
|
8918
8918
|
"Physician"
|
|
8919
8919
|
]
|
|
8920
8920
|
}
|
|
@@ -8934,7 +8934,7 @@ function ViewModalActions({
|
|
|
8934
8934
|
setShareOpen(false);
|
|
8935
8935
|
},
|
|
8936
8936
|
children: [
|
|
8937
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8937
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.User, { size: 14 }),
|
|
8938
8938
|
"Patient"
|
|
8939
8939
|
]
|
|
8940
8940
|
}
|
|
@@ -8954,7 +8954,7 @@ function ViewModalActions({
|
|
|
8954
8954
|
setShareOpen(false);
|
|
8955
8955
|
},
|
|
8956
8956
|
children: [
|
|
8957
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8957
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Mail, { size: 14 }),
|
|
8958
8958
|
"Email"
|
|
8959
8959
|
]
|
|
8960
8960
|
}
|
|
@@ -8970,7 +8970,7 @@ function ViewModalActions({
|
|
|
8970
8970
|
size: "sm",
|
|
8971
8971
|
onClick: () => console.warn("Export", viewTarget),
|
|
8972
8972
|
children: [
|
|
8973
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8973
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Download, { size: 14, className: "mr-1.5" }),
|
|
8974
8974
|
"Export"
|
|
8975
8975
|
]
|
|
8976
8976
|
}
|
|
@@ -8982,7 +8982,7 @@ function ViewModalActions({
|
|
|
8982
8982
|
size: "sm",
|
|
8983
8983
|
onClick: () => console.warn("Open in chart", viewTarget),
|
|
8984
8984
|
children: [
|
|
8985
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8985
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.ExternalLink, { size: 14, className: "mr-1.5" }),
|
|
8986
8986
|
"Open in Chart"
|
|
8987
8987
|
]
|
|
8988
8988
|
}
|
|
@@ -9002,6 +9002,7 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9002
9002
|
onEdit,
|
|
9003
9003
|
onDelete,
|
|
9004
9004
|
deleteLabel,
|
|
9005
|
+
countVariant,
|
|
9005
9006
|
...props
|
|
9006
9007
|
}, ref) => {
|
|
9007
9008
|
const [open, setOpen] = React48__namespace.useState(false);
|
|
@@ -9063,6 +9064,7 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9063
9064
|
{
|
|
9064
9065
|
ref,
|
|
9065
9066
|
type: "button",
|
|
9067
|
+
"data-count-badge": true,
|
|
9066
9068
|
className: chunkOR5DRJCW_cjs.cn(countBadgeVariants({ variant }), className),
|
|
9067
9069
|
onClick: (e) => {
|
|
9068
9070
|
if (showMenu) {
|
|
@@ -9075,7 +9077,15 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9075
9077
|
children: [
|
|
9076
9078
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: icon }),
|
|
9077
9079
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
|
|
9078
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9080
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9081
|
+
"span",
|
|
9082
|
+
{
|
|
9083
|
+
className: chunkOR5DRJCW_cjs.cn(
|
|
9084
|
+
countChipVariants({ variant: countVariant ?? variant })
|
|
9085
|
+
),
|
|
9086
|
+
children: count
|
|
9087
|
+
}
|
|
9088
|
+
)
|
|
9079
9089
|
]
|
|
9080
9090
|
}
|
|
9081
9091
|
),
|
|
@@ -9089,7 +9099,7 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9089
9099
|
)
|
|
9090
9100
|
] }),
|
|
9091
9101
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9092
|
-
|
|
9102
|
+
chunk377KAB4C_cjs.Modal,
|
|
9093
9103
|
{
|
|
9094
9104
|
open: !!deleteTarget,
|
|
9095
9105
|
onOpenChange: (isOpen) => {
|
|
@@ -9097,20 +9107,20 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9097
9107
|
},
|
|
9098
9108
|
size: "sm",
|
|
9099
9109
|
children: [
|
|
9100
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9101
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9110
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
9111
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalTitle, { children: [
|
|
9102
9112
|
"Delete ",
|
|
9103
9113
|
entityLabel
|
|
9104
9114
|
] }),
|
|
9105
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9115
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
9106
9116
|
] }),
|
|
9107
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9117
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", children: [
|
|
9108
9118
|
"Are you sure you want to delete",
|
|
9109
9119
|
" ",
|
|
9110
9120
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground font-medium", children: deleteTarget?.label }),
|
|
9111
9121
|
"? This action cannot be undone."
|
|
9112
9122
|
] }) }),
|
|
9113
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9123
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
9114
9124
|
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { variant: "secondary", onClick: () => setDeleteTarget(null), children: "Cancel" }),
|
|
9115
9125
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9116
9126
|
chunkPEH4ZOEM_cjs.Button,
|
|
@@ -9130,7 +9140,7 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9130
9140
|
}
|
|
9131
9141
|
),
|
|
9132
9142
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9133
|
-
|
|
9143
|
+
chunk377KAB4C_cjs.Modal,
|
|
9134
9144
|
{
|
|
9135
9145
|
open: !!editTarget,
|
|
9136
9146
|
onOpenChange: (isOpen) => {
|
|
@@ -9141,15 +9151,15 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9141
9151
|
},
|
|
9142
9152
|
size: "md",
|
|
9143
9153
|
children: [
|
|
9144
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9145
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9154
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
9155
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalTitle, { children: [
|
|
9146
9156
|
label,
|
|
9147
9157
|
": ",
|
|
9148
9158
|
editTarget?.label
|
|
9149
9159
|
] }),
|
|
9150
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9160
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
9151
9161
|
] }),
|
|
9152
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9162
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
|
|
9153
9163
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9154
9164
|
chunkVV4N4WY6_cjs.Input,
|
|
9155
9165
|
{
|
|
@@ -9261,7 +9271,7 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9261
9271
|
)
|
|
9262
9272
|
] })
|
|
9263
9273
|
] }) }),
|
|
9264
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9274
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
9265
9275
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9266
9276
|
chunkPEH4ZOEM_cjs.Button,
|
|
9267
9277
|
{
|
|
@@ -9291,7 +9301,7 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9291
9301
|
}
|
|
9292
9302
|
),
|
|
9293
9303
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9294
|
-
|
|
9304
|
+
chunk377KAB4C_cjs.Modal,
|
|
9295
9305
|
{
|
|
9296
9306
|
open: !!viewTarget,
|
|
9297
9307
|
onOpenChange: (isOpen) => {
|
|
@@ -9299,15 +9309,15 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9299
9309
|
},
|
|
9300
9310
|
size: "md",
|
|
9301
9311
|
children: [
|
|
9302
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9303
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9312
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
9313
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalTitle, { children: [
|
|
9304
9314
|
label,
|
|
9305
9315
|
": ",
|
|
9306
9316
|
viewTarget?.label
|
|
9307
9317
|
] }),
|
|
9308
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9318
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
9309
9319
|
] }),
|
|
9310
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9320
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { children: [
|
|
9311
9321
|
/* @__PURE__ */ jsxRuntime.jsx(ViewModalActions, { viewTarget }),
|
|
9312
9322
|
/* @__PURE__ */ jsxRuntime.jsxs("dl", { className: "space-y-3 text-sm", children: [
|
|
9313
9323
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between", children: [
|
|
@@ -9344,21 +9354,21 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9344
9354
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between", children: [
|
|
9345
9355
|
/* @__PURE__ */ jsxRuntime.jsx("dt", { className: "text-foreground font-medium", children: "Created" }),
|
|
9346
9356
|
/* @__PURE__ */ jsxRuntime.jsxs("dd", { className: "text-muted-foreground inline-flex items-center gap-1", children: [
|
|
9347
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9357
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Clock, { size: 13 }),
|
|
9348
9358
|
"Feb 10, 2026 at 9:15 AM"
|
|
9349
9359
|
] })
|
|
9350
9360
|
] }),
|
|
9351
9361
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between", children: [
|
|
9352
9362
|
/* @__PURE__ */ jsxRuntime.jsx("dt", { className: "text-foreground font-medium", children: "Last Modified" }),
|
|
9353
9363
|
/* @__PURE__ */ jsxRuntime.jsxs("dd", { className: "text-muted-foreground inline-flex items-center gap-1", children: [
|
|
9354
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9364
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Clock, { size: 13 }),
|
|
9355
9365
|
"Feb 22, 2026 at 3:42 PM"
|
|
9356
9366
|
] })
|
|
9357
9367
|
] })
|
|
9358
9368
|
] }),
|
|
9359
9369
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 border-t border-neutral-200 pt-3 dark:border-neutral-700", children: [
|
|
9360
9370
|
/* @__PURE__ */ jsxRuntime.jsxs("h4", { className: "text-muted-foreground mb-2 flex items-center gap-1.5 text-xs font-semibold tracking-wide uppercase", children: [
|
|
9361
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9371
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.FileText, { size: 13 }),
|
|
9362
9372
|
"Recent Activity"
|
|
9363
9373
|
] }),
|
|
9364
9374
|
/* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "text-muted-foreground space-y-2 text-xs", children: [
|
|
@@ -9387,7 +9397,7 @@ var CountBadge = React48__namespace.forwardRef(
|
|
|
9387
9397
|
] })
|
|
9388
9398
|
] })
|
|
9389
9399
|
] }),
|
|
9390
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9400
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
9391
9401
|
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { variant: "secondary", onClick: () => setViewTarget(null), children: "Close" }),
|
|
9392
9402
|
onEdit && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9393
9403
|
chunkPEH4ZOEM_cjs.Button,
|
|
@@ -11066,10 +11076,10 @@ function FilePreviewItem({ file, onRemove, disabled }) {
|
|
|
11066
11076
|
className: "h-full w-full object-cover"
|
|
11067
11077
|
}
|
|
11068
11078
|
) : isPdf ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-2", children: [
|
|
11069
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11079
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.FileText, { className: "text-muted-foreground h-12 w-12" }),
|
|
11070
11080
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs", children: "PDF Document" })
|
|
11071
11081
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-2", children: [
|
|
11072
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11082
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Image, { className: "text-muted-foreground h-12 w-12" }),
|
|
11073
11083
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs", children: "File" })
|
|
11074
11084
|
] }),
|
|
11075
11085
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11095,7 +11105,7 @@ function FilePreviewItem({ file, onRemove, disabled }) {
|
|
|
11095
11105
|
"focus-visible:opacity-100"
|
|
11096
11106
|
),
|
|
11097
11107
|
"aria-label": `Remove ${file.file.name}`,
|
|
11098
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11108
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.X, { className: "h-4 w-4" })
|
|
11099
11109
|
}
|
|
11100
11110
|
)
|
|
11101
11111
|
}
|
|
@@ -11737,7 +11747,7 @@ function CameraViewfinder({
|
|
|
11737
11747
|
function PermissionDeniedMessage({ onRetry }) {
|
|
11738
11748
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center gap-4 py-8", children: [
|
|
11739
11749
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkIY7UQPDO_cjs.Alert, { variant: "warning", className: "w-full", children: [
|
|
11740
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11750
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.AlertCircle, { className: "h-5 w-5" }),
|
|
11741
11751
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertTitle, { children: "Camera access denied" }),
|
|
11742
11752
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertDescription, { children: "Please allow camera access in your browser settings to use this feature. You may need to refresh the page after changing permissions." })
|
|
11743
11753
|
] }),
|
|
@@ -11749,12 +11759,12 @@ function PermissionDeniedMessage({ onRetry }) {
|
|
|
11749
11759
|
/* @__PURE__ */ jsxRuntime.jsx("li", { children: "Click the button below to try again" })
|
|
11750
11760
|
] })
|
|
11751
11761
|
] }),
|
|
11752
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { onClick: onRetry, leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11762
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { onClick: onRetry, leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.RefreshCw, { className: "h-4 w-4" }), children: "Try again" })
|
|
11753
11763
|
] });
|
|
11754
11764
|
}
|
|
11755
11765
|
function CameraUnavailableMessage() {
|
|
11756
11766
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col items-center justify-center gap-4 py-8", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkIY7UQPDO_cjs.Alert, { variant: "danger", children: [
|
|
11757
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11767
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.AlertCircle, { className: "h-5 w-5" }),
|
|
11758
11768
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertTitle, { children: "Camera unavailable" }),
|
|
11759
11769
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertDescription, { children: "No camera was detected on this device. Please ensure your camera is connected and not in use by another application." })
|
|
11760
11770
|
] }) });
|
|
@@ -11779,7 +11789,7 @@ function PhotoPreview({
|
|
|
11779
11789
|
{
|
|
11780
11790
|
variant: "secondary",
|
|
11781
11791
|
onClick: onRetake,
|
|
11782
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11792
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.RefreshCw, { className: "h-4 w-4" }),
|
|
11783
11793
|
children: "Retake"
|
|
11784
11794
|
}
|
|
11785
11795
|
),
|
|
@@ -11788,7 +11798,7 @@ function PhotoPreview({
|
|
|
11788
11798
|
{
|
|
11789
11799
|
variant: "primary",
|
|
11790
11800
|
onClick: onConfirm,
|
|
11791
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11801
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Check, { className: "h-4 w-4" }),
|
|
11792
11802
|
children: "Use this photo"
|
|
11793
11803
|
}
|
|
11794
11804
|
)
|
|
@@ -11967,7 +11977,7 @@ function WebcamModal({
|
|
|
11967
11977
|
detection.stopDetection();
|
|
11968
11978
|
}
|
|
11969
11979
|
},
|
|
11970
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11980
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.ScanLine, { className: "h-4 w-4" }),
|
|
11971
11981
|
children: autoDetectEnabled ? "Auto-capture ON" : "Auto-capture OFF"
|
|
11972
11982
|
}
|
|
11973
11983
|
) }),
|
|
@@ -11980,7 +11990,7 @@ function WebcamModal({
|
|
|
11980
11990
|
onClick: switchCamera,
|
|
11981
11991
|
disabled: !isReady,
|
|
11982
11992
|
"aria-label": `Switch to ${currentFacingMode === "user" ? "back" : "front"} camera`,
|
|
11983
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11993
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.RefreshCw, { className: "h-5 w-5" })
|
|
11984
11994
|
}
|
|
11985
11995
|
),
|
|
11986
11996
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11990,7 +12000,7 @@ function WebcamModal({
|
|
|
11990
12000
|
size: "lg",
|
|
11991
12001
|
onClick: handleCapture,
|
|
11992
12002
|
disabled: !isReady,
|
|
11993
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12003
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Camera, { className: "h-5 w-5" }),
|
|
11994
12004
|
children: autoDetectEnabled ? "Manual Capture" : "Capture"
|
|
11995
12005
|
}
|
|
11996
12006
|
)
|
|
@@ -11999,19 +12009,19 @@ function WebcamModal({
|
|
|
11999
12009
|
] });
|
|
12000
12010
|
};
|
|
12001
12011
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12002
|
-
|
|
12012
|
+
chunk377KAB4C_cjs.Modal,
|
|
12003
12013
|
{
|
|
12004
12014
|
open,
|
|
12005
12015
|
onOpenChange: handleClose,
|
|
12006
12016
|
size: "lg",
|
|
12007
12017
|
"aria-label": "Webcam capture",
|
|
12008
12018
|
children: [
|
|
12009
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12010
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12011
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12019
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
12020
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Take a Photo" }),
|
|
12021
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
12012
12022
|
] }),
|
|
12013
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12014
|
-
permission !== "denied" && permission !== "unavailable" && !capturedFile && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12023
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalBody, { children: renderContent() }),
|
|
12024
|
+
permission !== "denied" && permission !== "unavailable" && !capturedFile && /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { variant: "secondary", onClick: handleClose, children: "Cancel" }) })
|
|
12015
12025
|
]
|
|
12016
12026
|
}
|
|
12017
12027
|
);
|
|
@@ -12258,7 +12268,7 @@ function DocumentScanner({
|
|
|
12258
12268
|
}
|
|
12259
12269
|
if (state === "success") {
|
|
12260
12270
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center gap-4 py-12", children: [
|
|
12261
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/30", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12271
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/30", children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.CheckCircle, { className: "h-8 w-8 text-green-600 dark:text-green-400" }) }),
|
|
12262
12272
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQDGZBDBI_cjs.Text, { weight: "semibold", size: "lg", children: "Document scanned successfully!" }),
|
|
12263
12273
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQDGZBDBI_cjs.Text, { variant: "muted", size: "sm", children: "The extracted data has been processed." })
|
|
12264
12274
|
] });
|
|
@@ -12266,7 +12276,7 @@ function DocumentScanner({
|
|
|
12266
12276
|
if (state === "error") {
|
|
12267
12277
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-4 py-8", children: [
|
|
12268
12278
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkIY7UQPDO_cjs.Alert, { variant: "danger", className: "w-full", children: [
|
|
12269
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12279
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.AlertCircle, { className: "h-5 w-5" }),
|
|
12270
12280
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertTitle, { children: "Processing failed" }),
|
|
12271
12281
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertDescription, { children: error })
|
|
12272
12282
|
] }),
|
|
@@ -12293,7 +12303,7 @@ function DocumentScanner({
|
|
|
12293
12303
|
dismissible: true,
|
|
12294
12304
|
onDismiss: () => setValidationErrors([]),
|
|
12295
12305
|
children: [
|
|
12296
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12306
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.AlertCircle, { className: "h-5 w-5" }),
|
|
12297
12307
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertTitle, { children: "Some files were not added" }),
|
|
12298
12308
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertDescription, { children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "mt-2 list-inside list-disc space-y-1", children: validationErrors.map((err, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "text-sm", children: [
|
|
12299
12309
|
/* @__PURE__ */ jsxRuntime.jsxs("strong", { children: [
|
|
@@ -12322,7 +12332,7 @@ function DocumentScanner({
|
|
|
12322
12332
|
};
|
|
12323
12333
|
input.click();
|
|
12324
12334
|
},
|
|
12325
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12335
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Upload, { className: "h-4 w-4" }),
|
|
12326
12336
|
disabled,
|
|
12327
12337
|
children: "Add more files"
|
|
12328
12338
|
}
|
|
@@ -12332,7 +12342,7 @@ function DocumentScanner({
|
|
|
12332
12342
|
{
|
|
12333
12343
|
variant: "secondary",
|
|
12334
12344
|
onClick: handleClearAll,
|
|
12335
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12345
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Trash2, { className: "h-4 w-4" }),
|
|
12336
12346
|
disabled,
|
|
12337
12347
|
children: "Clear all"
|
|
12338
12348
|
}
|
|
@@ -12342,7 +12352,7 @@ function DocumentScanner({
|
|
|
12342
12352
|
{
|
|
12343
12353
|
variant: "primary",
|
|
12344
12354
|
onClick: handleScan,
|
|
12345
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12355
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Scan, { className: "h-4 w-4" }),
|
|
12346
12356
|
disabled,
|
|
12347
12357
|
children: [
|
|
12348
12358
|
"Scan ",
|
|
@@ -12363,7 +12373,7 @@ function DocumentScanner({
|
|
|
12363
12373
|
disabled,
|
|
12364
12374
|
className: "min-h-[240px]",
|
|
12365
12375
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-4 text-center", children: [
|
|
12366
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-primary-100 dark:bg-primary-900/30 flex h-14 w-14 items-center justify-center rounded-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12376
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-primary-100 dark:bg-primary-900/30 flex h-14 w-14 items-center justify-center rounded-full", children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Upload, { className: "text-primary-600 dark:text-primary-400 h-7 w-7" }) }),
|
|
12367
12377
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
|
|
12368
12378
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQDGZBDBI_cjs.Text, { weight: "medium", children: "Drag and drop your files here" }),
|
|
12369
12379
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQDGZBDBI_cjs.Text, { variant: "muted", size: "sm", children: "or click to browse" })
|
|
@@ -12390,7 +12400,7 @@ function DocumentScanner({
|
|
|
12390
12400
|
{
|
|
12391
12401
|
variant: "secondary",
|
|
12392
12402
|
onClick: handleCameraCapture,
|
|
12393
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12403
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Camera, { className: "h-4 w-4" }),
|
|
12394
12404
|
disabled,
|
|
12395
12405
|
children: "Take a photo"
|
|
12396
12406
|
}
|
|
@@ -12400,7 +12410,7 @@ function DocumentScanner({
|
|
|
12400
12410
|
{
|
|
12401
12411
|
variant: "secondary",
|
|
12402
12412
|
onClick: () => setIsWebcamOpen(true),
|
|
12403
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12413
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Camera, { className: "h-4 w-4" }),
|
|
12404
12414
|
disabled,
|
|
12405
12415
|
children: "Use webcam"
|
|
12406
12416
|
}
|
|
@@ -12414,7 +12424,7 @@ function DocumentScanner({
|
|
|
12414
12424
|
dismissible: true,
|
|
12415
12425
|
onDismiss: () => setValidationErrors([]),
|
|
12416
12426
|
children: [
|
|
12417
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12427
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.AlertCircle, { className: "h-5 w-5" }),
|
|
12418
12428
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertTitle, { children: "Invalid files" }),
|
|
12419
12429
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertDescription, { children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "mt-2 list-inside list-disc space-y-1", children: validationErrors.map((err, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "text-sm", children: [
|
|
12420
12430
|
/* @__PURE__ */ jsxRuntime.jsxs("strong", { children: [
|
|
@@ -12907,16 +12917,16 @@ function CreateInvoiceModal({
|
|
|
12907
12917
|
value: emp.id,
|
|
12908
12918
|
label: emp.name
|
|
12909
12919
|
}));
|
|
12910
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12911
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12912
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12920
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
|
|
12921
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
12922
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Create Invoice" }),
|
|
12913
12923
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkEKIQE524_cjs.Badge, { variant: "secondary", children: [
|
|
12914
12924
|
"Step ",
|
|
12915
12925
|
step,
|
|
12916
12926
|
" of 3"
|
|
12917
12927
|
] })
|
|
12918
12928
|
] }) }),
|
|
12919
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12929
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
12920
12930
|
errorMessage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-destructive/30 bg-destructive/10 rounded-lg border p-3", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive text-sm", children: errorMessage }) }),
|
|
12921
12931
|
step === 1 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
12922
12932
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm", children: "Select the employer you want to create an invoice for." }),
|
|
@@ -13073,7 +13083,7 @@ function CreateInvoiceModal({
|
|
|
13073
13083
|
)
|
|
13074
13084
|
] })
|
|
13075
13085
|
] }),
|
|
13076
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13086
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full justify-between", children: [
|
|
13077
13087
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: step > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13078
13088
|
chunkPEH4ZOEM_cjs.Button,
|
|
13079
13089
|
{
|
|
@@ -13187,9 +13197,9 @@ function CreateReferralModal({
|
|
|
13187
13197
|
});
|
|
13188
13198
|
};
|
|
13189
13199
|
const isValid = employee && selectedServices.size > 0;
|
|
13190
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13191
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13192
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13200
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
|
|
13201
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Create Referral" }) }),
|
|
13202
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
13193
13203
|
errorMessage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-destructive/30 bg-destructive/10 rounded-lg border p-3", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive text-sm", children: errorMessage }) }),
|
|
13194
13204
|
employee && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-muted rounded-lg p-4", children: [
|
|
13195
13205
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground/70 mb-1 text-xs tracking-wide uppercase", children: "Employee" }),
|
|
@@ -13293,7 +13303,7 @@ function CreateReferralModal({
|
|
|
13293
13303
|
] })
|
|
13294
13304
|
] }) })
|
|
13295
13305
|
] }),
|
|
13296
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13306
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
13297
13307
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13298
13308
|
chunkPEH4ZOEM_cjs.Button,
|
|
13299
13309
|
{
|
|
@@ -13367,9 +13377,9 @@ function EditUserRoleModal({
|
|
|
13367
13377
|
if (!user || !selectedRoleId || !onSave) return;
|
|
13368
13378
|
onSave({ userId: user.id, roleId: selectedRoleId });
|
|
13369
13379
|
};
|
|
13370
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13371
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13372
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13380
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.Modal, { open, onOpenChange, size: "md", children: [
|
|
13381
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Edit User Role" }) }),
|
|
13382
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
13373
13383
|
user && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-muted rounded-lg p-3", children: [
|
|
13374
13384
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground font-medium", children: user.name }),
|
|
13375
13385
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground/70 text-sm", children: user.email })
|
|
@@ -13421,7 +13431,7 @@ function EditUserRoleModal({
|
|
|
13421
13431
|
)) })
|
|
13422
13432
|
] })
|
|
13423
13433
|
] }),
|
|
13424
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13434
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
13425
13435
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13426
13436
|
chunkPEH4ZOEM_cjs.Button,
|
|
13427
13437
|
{
|
|
@@ -14323,7 +14333,7 @@ function EmployerList({
|
|
|
14323
14333
|
const d = typeof date === "string" ? new Date(date) : date;
|
|
14324
14334
|
return d.toLocaleDateString();
|
|
14325
14335
|
};
|
|
14326
|
-
const
|
|
14336
|
+
const getStatusVariant = (status) => {
|
|
14327
14337
|
switch (status) {
|
|
14328
14338
|
case "active":
|
|
14329
14339
|
return "success";
|
|
@@ -14440,7 +14450,7 @@ function EmployerList({
|
|
|
14440
14450
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
14441
14451
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
14442
14452
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "truncate font-medium text-gray-900 dark:text-white", children: employer.name }),
|
|
14443
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
14453
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(employer.status), children: employer.status })
|
|
14444
14454
|
] }),
|
|
14445
14455
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-0.5 flex items-center gap-4", children: [
|
|
14446
14456
|
employer.email && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-sm text-gray-500 dark:text-gray-400", children: employer.email }),
|
|
@@ -14622,7 +14632,7 @@ function EmployerView({
|
|
|
14622
14632
|
currency: "USD"
|
|
14623
14633
|
}).format(amount);
|
|
14624
14634
|
};
|
|
14625
|
-
const
|
|
14635
|
+
const getStatusVariant = (status) => {
|
|
14626
14636
|
switch (status) {
|
|
14627
14637
|
case "active":
|
|
14628
14638
|
case "completed":
|
|
@@ -14662,7 +14672,7 @@ function EmployerView({
|
|
|
14662
14672
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
14663
14673
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
14664
14674
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: employer.name }),
|
|
14665
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
14675
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(employer.status), children: employer.status })
|
|
14666
14676
|
] }),
|
|
14667
14677
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: [
|
|
14668
14678
|
"Linked since ",
|
|
@@ -14764,7 +14774,7 @@ function EmployerView({
|
|
|
14764
14774
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: order.services.join(", ") })
|
|
14765
14775
|
] }),
|
|
14766
14776
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-right", children: [
|
|
14767
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
14777
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(order.status), children: order.status }),
|
|
14768
14778
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-xs text-gray-500 dark:text-gray-400", children: formatDate4(order.createdDate) })
|
|
14769
14779
|
] }),
|
|
14770
14780
|
onViewOrder && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14800,7 +14810,7 @@ function EmployerView({
|
|
|
14800
14810
|
] }),
|
|
14801
14811
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-right", children: [
|
|
14802
14812
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-gray-900 dark:text-white", children: formatCurrency3(invoice.amount) }),
|
|
14803
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
14813
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(invoice.status), children: invoice.status })
|
|
14804
14814
|
] }),
|
|
14805
14815
|
onViewInvoice && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14806
14816
|
chunkPEH4ZOEM_cjs.Button,
|
|
@@ -14893,12 +14903,12 @@ function EmployerServiceModal({
|
|
|
14893
14903
|
if (!onSave) return;
|
|
14894
14904
|
onSave(config);
|
|
14895
14905
|
};
|
|
14896
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14897
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14906
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
|
|
14907
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalTitle, { children: [
|
|
14898
14908
|
"Configure Service for ",
|
|
14899
14909
|
employer?.name || "Employer"
|
|
14900
14910
|
] }) }),
|
|
14901
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14911
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
14902
14912
|
errorMessage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-destructive/30 bg-destructive/10 rounded-lg border p-3", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive text-sm", children: errorMessage }) }),
|
|
14903
14913
|
service && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-primary/30 bg-primary/10 rounded-lg border p-3", children: [
|
|
14904
14914
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-primary-900 dark:text-primary-300 text-sm font-medium", children: service.name }),
|
|
@@ -15045,7 +15055,7 @@ function EmployerServiceModal({
|
|
|
15045
15055
|
)
|
|
15046
15056
|
] })
|
|
15047
15057
|
] }),
|
|
15048
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15058
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
15049
15059
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15050
15060
|
chunkPEH4ZOEM_cjs.Button,
|
|
15051
15061
|
{
|
|
@@ -16643,7 +16653,7 @@ function InventoryManager({
|
|
|
16643
16653
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: "No inventory changes recorded yet." })
|
|
16644
16654
|
] }),
|
|
16645
16655
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16646
|
-
|
|
16656
|
+
chunk377KAB4C_cjs.Modal,
|
|
16647
16657
|
{
|
|
16648
16658
|
open: showUpdateModal,
|
|
16649
16659
|
onOpenChange: (open) => {
|
|
@@ -16653,8 +16663,8 @@ function InventoryManager({
|
|
|
16653
16663
|
},
|
|
16654
16664
|
size: "lg",
|
|
16655
16665
|
children: [
|
|
16656
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16657
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16666
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Inventory Manager" }) }),
|
|
16667
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
16658
16668
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-foreground text-lg font-semibold", children: serviceName }) }),
|
|
16659
16669
|
/* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("h5", { className: "text-muted-foreground mb-2 text-sm font-medium", children: "Update Inventory" }) }),
|
|
16660
16670
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-0", children: [
|
|
@@ -16767,7 +16777,7 @@ function InventoryManager({
|
|
|
16767
16777
|
] })
|
|
16768
16778
|
] })
|
|
16769
16779
|
] }),
|
|
16770
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16780
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
16771
16781
|
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { variant: "outline", onClick: onUpdateModalClose, children: "Cancel" }),
|
|
16772
16782
|
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { onClick: handleSubmit, disabled: !updateAmount || isLoading, children: isLoading ? "Saving..." : "Save" })
|
|
16773
16783
|
] })
|
|
@@ -16814,9 +16824,9 @@ function InviteUserModal({
|
|
|
16814
16824
|
});
|
|
16815
16825
|
};
|
|
16816
16826
|
const isValid = email && roleId;
|
|
16817
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16818
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16819
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16827
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
|
|
16828
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Invite User" }) }),
|
|
16829
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
16820
16830
|
entityDisplayName && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-muted rounded-lg p-3", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground text-sm", children: [
|
|
16821
16831
|
"Inviting user to:",
|
|
16822
16832
|
" ",
|
|
@@ -16935,7 +16945,7 @@ function InviteUserModal({
|
|
|
16935
16945
|
] }),
|
|
16936
16946
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-xs", children: "An email invitation will be sent to this address. If the user doesn't have an account, they'll be prompted to create one." })
|
|
16937
16947
|
] }),
|
|
16938
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16948
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
16939
16949
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16940
16950
|
chunkPEH4ZOEM_cjs.Button,
|
|
16941
16951
|
{
|
|
@@ -17005,7 +17015,7 @@ function InvoiceList({
|
|
|
17005
17015
|
const formatCurrency3 = (amount) => {
|
|
17006
17016
|
return `${currency}${amount.toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;
|
|
17007
17017
|
};
|
|
17008
|
-
const
|
|
17018
|
+
const getStatusVariant = (status) => {
|
|
17009
17019
|
switch (status) {
|
|
17010
17020
|
case "paid":
|
|
17011
17021
|
return "success";
|
|
@@ -17193,7 +17203,7 @@ function InvoiceList({
|
|
|
17193
17203
|
}
|
|
17194
17204
|
) }),
|
|
17195
17205
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-right", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-gray-900 dark:text-white", children: formatCurrency3(invoice.amount) }) }),
|
|
17196
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
17206
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(invoice.status), children: invoice.status }) })
|
|
17197
17207
|
]
|
|
17198
17208
|
},
|
|
17199
17209
|
invoice.id
|
|
@@ -17230,7 +17240,7 @@ function InvoicePaymentPage({
|
|
|
17230
17240
|
const d = typeof date === "string" ? new Date(date) : date;
|
|
17231
17241
|
return d.toLocaleDateString();
|
|
17232
17242
|
};
|
|
17233
|
-
const
|
|
17243
|
+
const getStatusVariant = (status) => {
|
|
17234
17244
|
switch (status) {
|
|
17235
17245
|
case "paid":
|
|
17236
17246
|
return "success";
|
|
@@ -17352,7 +17362,7 @@ function InvoicePaymentPage({
|
|
|
17352
17362
|
"Invoice ",
|
|
17353
17363
|
invoice.invoiceNumber
|
|
17354
17364
|
] }),
|
|
17355
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
17365
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(invoice.status), children: invoice.status })
|
|
17356
17366
|
] }) }),
|
|
17357
17367
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkHRA4FUO6_cjs.CardContent, { className: "space-y-4", children: [
|
|
17358
17368
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1 text-sm text-gray-600 dark:text-gray-400", children: [
|
|
@@ -17569,7 +17579,7 @@ function InvoiceView({
|
|
|
17569
17579
|
const formatCurrency3 = (amount) => {
|
|
17570
17580
|
return `${currency}${amount.toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;
|
|
17571
17581
|
};
|
|
17572
|
-
const
|
|
17582
|
+
const getStatusVariant = (status) => {
|
|
17573
17583
|
switch (status) {
|
|
17574
17584
|
case "paid":
|
|
17575
17585
|
return "success";
|
|
@@ -17615,7 +17625,7 @@ function InvoiceView({
|
|
|
17615
17625
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
17616
17626
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
17617
17627
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: invoice.invoiceNumber }),
|
|
17618
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
17628
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(invoice.status), children: invoice.status })
|
|
17619
17629
|
] }),
|
|
17620
17630
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: [
|
|
17621
17631
|
"Issued ",
|
|
@@ -20721,7 +20731,7 @@ function OrderSidebar({
|
|
|
20721
20731
|
year: "numeric"
|
|
20722
20732
|
});
|
|
20723
20733
|
};
|
|
20724
|
-
const
|
|
20734
|
+
const getStatusVariant = (s) => {
|
|
20725
20735
|
switch (s?.toLowerCase()) {
|
|
20726
20736
|
case "completed":
|
|
20727
20737
|
return "success";
|
|
@@ -20800,7 +20810,7 @@ function OrderSidebar({
|
|
|
20800
20810
|
] }),
|
|
20801
20811
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-[calc(100%-8rem)] overflow-y-auto p-4", children: [
|
|
20802
20812
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4 flex items-center gap-2", children: [
|
|
20803
|
-
status && /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
20813
|
+
status && /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(status), children: status }),
|
|
20804
20814
|
priority !== "normal" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
20805
20815
|
"span",
|
|
20806
20816
|
{
|
|
@@ -20947,24 +20957,6 @@ function formatFullName(name) {
|
|
|
20947
20957
|
if (name.suffix) parts.push(name.suffix);
|
|
20948
20958
|
return parts.filter(Boolean).join(" ");
|
|
20949
20959
|
}
|
|
20950
|
-
function getStatusVariant(status) {
|
|
20951
|
-
switch (status) {
|
|
20952
|
-
case "active":
|
|
20953
|
-
return "success";
|
|
20954
|
-
case "deceased":
|
|
20955
|
-
return "danger";
|
|
20956
|
-
case "inactive":
|
|
20957
|
-
return "secondary";
|
|
20958
|
-
default:
|
|
20959
|
-
return "secondary";
|
|
20960
|
-
}
|
|
20961
|
-
}
|
|
20962
|
-
function getFlagVariant(flag) {
|
|
20963
|
-
const lower = flag.toLowerCase();
|
|
20964
|
-
if (lower === "duplicate") return "warning";
|
|
20965
|
-
if (lower === "deceased" || lower === "restricted") return "danger";
|
|
20966
|
-
return "secondary";
|
|
20967
|
-
}
|
|
20968
20960
|
function DetailItem({
|
|
20969
20961
|
icon,
|
|
20970
20962
|
label,
|
|
@@ -20979,7 +20971,7 @@ function DetailItem({
|
|
|
20979
20971
|
function AllergyRow({ allergies }) {
|
|
20980
20972
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
20981
20973
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-1.5", children: [
|
|
20982
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20974
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.AlertCircle, { size: 16, className: "text-red-600 dark:text-red-400" }),
|
|
20983
20975
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-semibold tracking-wide text-red-700 uppercase dark:text-red-400", children: "Allergies" })
|
|
20984
20976
|
] }),
|
|
20985
20977
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-1.5", children: allergies.map((a, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21001,7 +20993,7 @@ function MedicationRow({
|
|
|
21001
20993
|
const remaining = medications.length - maxVisible;
|
|
21002
20994
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
21003
20995
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-1.5", children: [
|
|
21004
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20996
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Paperclip, { size: 16, className: "text-muted-foreground/60" }),
|
|
21005
20997
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wide uppercase", children: "Meds" })
|
|
21006
20998
|
] }),
|
|
21007
20999
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
@@ -21068,7 +21060,7 @@ function PatientOverflowMenu({
|
|
|
21068
21060
|
"aria-haspopup": "menu",
|
|
21069
21061
|
"aria-expanded": open,
|
|
21070
21062
|
className: "h-8 w-8",
|
|
21071
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21063
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.MoreVertical, { size: 18 })
|
|
21072
21064
|
}
|
|
21073
21065
|
),
|
|
21074
21066
|
open && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21078,18 +21070,18 @@ function PatientOverflowMenu({
|
|
|
21078
21070
|
"aria-label": "Patient actions",
|
|
21079
21071
|
className: chunkOR5DRJCW_cjs.cn(
|
|
21080
21072
|
"absolute top-full right-0 z-50 mt-1",
|
|
21073
|
+
"w-[calc(100vw_-_2rem)] md:w-auto",
|
|
21081
21074
|
"border-border bg-card rounded-xl border py-1 shadow-lg",
|
|
21082
|
-
"max-h-[calc(
|
|
21083
|
-
"motion-safe:animate-fade-in"
|
|
21084
|
-
"w-56 sm:w-auto"
|
|
21075
|
+
"max-h-[calc(100vh_-_3rem)] overflow-y-auto md:max-h-[calc(100vh_-_4rem)]",
|
|
21076
|
+
"motion-safe:animate-fade-in"
|
|
21085
21077
|
),
|
|
21086
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col
|
|
21078
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col md:flex-row", children: [
|
|
21087
21079
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-[13rem]", children: [
|
|
21088
21080
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-[11px] font-semibold tracking-wide uppercase", children: "Quick Actions" }) }),
|
|
21089
21081
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21090
21082
|
OverflowMenuItem,
|
|
21091
21083
|
{
|
|
21092
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21084
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Pencil, { size: 15 }),
|
|
21093
21085
|
label: "Edit Patient",
|
|
21094
21086
|
onClick: () => handleAction("edit-patient")
|
|
21095
21087
|
}
|
|
@@ -21097,7 +21089,15 @@ function PatientOverflowMenu({
|
|
|
21097
21089
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21098
21090
|
OverflowMenuItem,
|
|
21099
21091
|
{
|
|
21100
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21092
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Phone, { size: 15 }),
|
|
21093
|
+
label: "Contact",
|
|
21094
|
+
onClick: () => handleAction("contact")
|
|
21095
|
+
}
|
|
21096
|
+
),
|
|
21097
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21098
|
+
OverflowMenuItem,
|
|
21099
|
+
{
|
|
21100
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Send, { size: 15 }),
|
|
21101
21101
|
label: "Send Message",
|
|
21102
21102
|
onClick: () => handleAction("send-message")
|
|
21103
21103
|
}
|
|
@@ -21105,7 +21105,7 @@ function PatientOverflowMenu({
|
|
|
21105
21105
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21106
21106
|
OverflowMenuItem,
|
|
21107
21107
|
{
|
|
21108
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21108
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Calendar, { size: 15 }),
|
|
21109
21109
|
label: "Schedule Appointment",
|
|
21110
21110
|
onClick: () => handleAction("schedule-appointment")
|
|
21111
21111
|
}
|
|
@@ -21113,7 +21113,7 @@ function PatientOverflowMenu({
|
|
|
21113
21113
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21114
21114
|
OverflowMenuItem,
|
|
21115
21115
|
{
|
|
21116
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21116
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Printer, { size: 15 }),
|
|
21117
21117
|
label: "Print Summary",
|
|
21118
21118
|
onClick: () => handleAction("print-summary")
|
|
21119
21119
|
}
|
|
@@ -21121,20 +21121,20 @@ function PatientOverflowMenu({
|
|
|
21121
21121
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21122
21122
|
OverflowMenuItem,
|
|
21123
21123
|
{
|
|
21124
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21124
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Download, { size: 15 }),
|
|
21125
21125
|
label: "Export Record",
|
|
21126
21126
|
onClick: () => handleAction("export-record")
|
|
21127
21127
|
}
|
|
21128
21128
|
)
|
|
21129
21129
|
] }),
|
|
21130
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-border my-1 border-t
|
|
21131
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-[26rem]", children: [
|
|
21130
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-border my-1 border-t md:my-0 md:border-t-0 md:border-l" }),
|
|
21131
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "md:min-w-[26rem]", children: [
|
|
21132
21132
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-[11px] font-semibold tracking-wide uppercase", children: "Add" }) }),
|
|
21133
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
21133
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-1 md:grid-cols-2 md:gap-2", children: [
|
|
21134
21134
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21135
21135
|
OverflowMenuItem,
|
|
21136
21136
|
{
|
|
21137
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21137
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.ClipboardPlus, { size: 15 }),
|
|
21138
21138
|
label: "Task",
|
|
21139
21139
|
onClick: () => handleAction("add-task")
|
|
21140
21140
|
}
|
|
@@ -21142,7 +21142,7 @@ function PatientOverflowMenu({
|
|
|
21142
21142
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21143
21143
|
OverflowMenuItem,
|
|
21144
21144
|
{
|
|
21145
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21145
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Stethoscope, { size: 15 }),
|
|
21146
21146
|
label: "Encounter",
|
|
21147
21147
|
onClick: () => handleAction("add-encounter")
|
|
21148
21148
|
}
|
|
@@ -21150,7 +21150,7 @@ function PatientOverflowMenu({
|
|
|
21150
21150
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21151
21151
|
OverflowMenuItem,
|
|
21152
21152
|
{
|
|
21153
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21153
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.ClipboardCheck, { size: 15 }),
|
|
21154
21154
|
label: "Due List Item",
|
|
21155
21155
|
onClick: () => handleAction("add-due-list")
|
|
21156
21156
|
}
|
|
@@ -21158,7 +21158,7 @@ function PatientOverflowMenu({
|
|
|
21158
21158
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21159
21159
|
OverflowMenuItem,
|
|
21160
21160
|
{
|
|
21161
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21161
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.FilePlus, { size: 15 }),
|
|
21162
21162
|
label: "Order Request",
|
|
21163
21163
|
onClick: () => handleAction("add-order")
|
|
21164
21164
|
}
|
|
@@ -21166,7 +21166,7 @@ function PatientOverflowMenu({
|
|
|
21166
21166
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21167
21167
|
OverflowMenuItem,
|
|
21168
21168
|
{
|
|
21169
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21169
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.FileCheck, { size: 15 }),
|
|
21170
21170
|
label: "eSign Request",
|
|
21171
21171
|
onClick: () => handleAction("add-esign")
|
|
21172
21172
|
}
|
|
@@ -21174,7 +21174,7 @@ function PatientOverflowMenu({
|
|
|
21174
21174
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21175
21175
|
OverflowMenuItem,
|
|
21176
21176
|
{
|
|
21177
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21177
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Wheat, { size: 15 }),
|
|
21178
21178
|
label: "Allergy",
|
|
21179
21179
|
onClick: () => handleAction("add-allergy")
|
|
21180
21180
|
}
|
|
@@ -21182,7 +21182,7 @@ function PatientOverflowMenu({
|
|
|
21182
21182
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21183
21183
|
OverflowMenuItem,
|
|
21184
21184
|
{
|
|
21185
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21185
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Pill, { size: 15 }),
|
|
21186
21186
|
label: "Medication",
|
|
21187
21187
|
onClick: () => handleAction("add-medication")
|
|
21188
21188
|
}
|
|
@@ -21190,7 +21190,7 @@ function PatientOverflowMenu({
|
|
|
21190
21190
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21191
21191
|
OverflowMenuItem,
|
|
21192
21192
|
{
|
|
21193
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21193
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Bell, { size: 15 }),
|
|
21194
21194
|
label: "Alert",
|
|
21195
21195
|
onClick: () => handleAction("add-alert")
|
|
21196
21196
|
}
|
|
@@ -21198,7 +21198,7 @@ function PatientOverflowMenu({
|
|
|
21198
21198
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21199
21199
|
OverflowMenuItem,
|
|
21200
21200
|
{
|
|
21201
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21201
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.FileHeart, { size: 15 }),
|
|
21202
21202
|
label: "Condition",
|
|
21203
21203
|
onClick: () => handleAction("add-condition")
|
|
21204
21204
|
}
|
|
@@ -21206,7 +21206,7 @@ function PatientOverflowMenu({
|
|
|
21206
21206
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21207
21207
|
OverflowMenuItem,
|
|
21208
21208
|
{
|
|
21209
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21209
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.HeartPulse, { size: 15 }),
|
|
21210
21210
|
label: "Vitals",
|
|
21211
21211
|
onClick: () => handleAction("add-vitals")
|
|
21212
21212
|
}
|
|
@@ -21221,7 +21221,7 @@ function PatientOverflowMenu({
|
|
|
21221
21221
|
function AlertRow({ comments }) {
|
|
21222
21222
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
21223
21223
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-1.5", children: [
|
|
21224
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21224
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.ClipboardList, { size: 16, className: "text-muted-foreground/60" }),
|
|
21225
21225
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wide uppercase", children: "Alert" })
|
|
21226
21226
|
] }),
|
|
21227
21227
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground text-sm", children: comments.join("; ") })
|
|
@@ -21240,8 +21240,8 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21240
21240
|
showAllergyBanner = false,
|
|
21241
21241
|
showMedicationBanner = false,
|
|
21242
21242
|
showCommentsBanner = false,
|
|
21243
|
-
|
|
21244
|
-
|
|
21243
|
+
showProviderBanner = false,
|
|
21244
|
+
showFlagBanner = false,
|
|
21245
21245
|
showOverflowMenu = false,
|
|
21246
21246
|
onOverflowAction,
|
|
21247
21247
|
onAddItem,
|
|
@@ -21254,33 +21254,19 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21254
21254
|
const hasAllergies = showAllergyBanner && allergies.length > 0;
|
|
21255
21255
|
const hasMedications = showMedicationBanner && medications.length > 0;
|
|
21256
21256
|
const hasComments = showCommentsBanner && comments.length > 0;
|
|
21257
|
-
const
|
|
21258
|
-
const
|
|
21259
|
-
detailsExpandedProp ?? true
|
|
21260
|
-
);
|
|
21261
|
-
const [actionsMenuOpen, setActionsMenuOpen] = React48__namespace.useState(false);
|
|
21262
|
-
const actionsMenuRef = React48__namespace.useRef(null);
|
|
21263
|
-
chunkSWMRCGL4_cjs.useClickOutside(
|
|
21264
|
-
actionsMenuRef,
|
|
21265
|
-
React48__namespace.useCallback(() => setActionsMenuOpen(false), [])
|
|
21266
|
-
);
|
|
21267
|
-
chunkFHY3K6PL_cjs.useEscapeKey(
|
|
21268
|
-
React48__namespace.useCallback(() => setActionsMenuOpen(false), []),
|
|
21269
|
-
actionsMenuOpen
|
|
21270
|
-
);
|
|
21271
|
-
React48__namespace.useEffect(() => {
|
|
21272
|
-
if (detailsExpandedProp !== void 0) {
|
|
21273
|
-
setDetailsExpanded(detailsExpandedProp);
|
|
21274
|
-
}
|
|
21275
|
-
}, [detailsExpandedProp]);
|
|
21257
|
+
const hasProviders = showProviderBanner && !!(patient.attendingProvider || patient.familyProvider);
|
|
21258
|
+
const hasInfoRows = hasAllergies || hasMedications || hasComments || hasProviders;
|
|
21276
21259
|
const [addModalType, setAddModalType] = React48__namespace.useState(null);
|
|
21277
21260
|
const [addForm, setAddForm] = React48__namespace.useState({});
|
|
21278
21261
|
const addEntityLabel = addModalType ? ADD_ENTITY_LABELS[addModalType] ?? "" : "";
|
|
21262
|
+
const [contactModalOpen, setContactModalOpen] = React48__namespace.useState(false);
|
|
21279
21263
|
const [editPatientOpen, setEditPatientOpen] = React48__namespace.useState(false);
|
|
21280
21264
|
const [editPatientForm, setEditPatientForm] = React48__namespace.useState({});
|
|
21281
21265
|
const handleOverflowAction = React48__namespace.useCallback(
|
|
21282
21266
|
(action) => {
|
|
21283
|
-
if (action === "
|
|
21267
|
+
if (action === "contact") {
|
|
21268
|
+
setContactModalOpen(true);
|
|
21269
|
+
} else if (action === "edit-patient") {
|
|
21284
21270
|
setEditPatientOpen(true);
|
|
21285
21271
|
setEditPatientForm({
|
|
21286
21272
|
firstName: patient.name.first,
|
|
@@ -21337,7 +21323,7 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21337
21323
|
disabled: !onBack,
|
|
21338
21324
|
"aria-label": "Go back",
|
|
21339
21325
|
className: "mt-1 -ml-2 h-8 w-8 shrink-0",
|
|
21340
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21326
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.ArrowLeft, { size: 18 })
|
|
21341
21327
|
}
|
|
21342
21328
|
),
|
|
21343
21329
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21345,71 +21331,63 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21345
21331
|
{
|
|
21346
21332
|
name: formatFullName(patient.name),
|
|
21347
21333
|
src: patient.photo,
|
|
21348
|
-
size: "
|
|
21349
|
-
className: "
|
|
21334
|
+
size: "md",
|
|
21335
|
+
className: "hidden shrink-0 md:inline-flex"
|
|
21350
21336
|
}
|
|
21351
21337
|
),
|
|
21352
|
-
/* @__PURE__ */ jsxRuntime.
|
|
21353
|
-
/* @__PURE__ */ jsxRuntime.
|
|
21354
|
-
|
|
21355
|
-
|
|
21338
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1", children: [
|
|
21339
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-foreground order-1 min-w-0 flex-1 truncate text-xl font-bold", children: displayName }),
|
|
21340
|
+
showOverflowMenu && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "order-2 shrink-0 md:order-3", children: /* @__PURE__ */ jsxRuntime.jsx(PatientOverflowMenu, { onAction: handleOverflowAction }) }),
|
|
21341
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21342
|
+
"div",
|
|
21343
|
+
{
|
|
21344
|
+
className: chunkOR5DRJCW_cjs.cn(
|
|
21345
|
+
"order-4 w-full md:order-2 md:w-auto md:shrink-0",
|
|
21346
|
+
"mt-1 md:mt-0",
|
|
21347
|
+
"[&_button[data-count-badge]]:gap-1.5 [&_button[data-count-badge]]:px-2 [&_button[data-count-badge]]:py-0.5 [&_button[data-count-badge]]:text-xs",
|
|
21348
|
+
"md:[&_button[data-count-badge]]:gap-2 md:[&_button[data-count-badge]]:px-3 md:[&_button[data-count-badge]]:py-1 md:[&_button[data-count-badge]]:text-sm"
|
|
21349
|
+
),
|
|
21350
|
+
children: actions
|
|
21351
|
+
}
|
|
21352
|
+
),
|
|
21353
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "order-3 mt-1 flex w-full flex-wrap items-center gap-x-3 gap-y-1 text-sm md:order-4", children: [
|
|
21354
|
+
patient.status && (() => {
|
|
21355
|
+
const normalizedStatus = patient.status.toLowerCase();
|
|
21356
|
+
const statusColorMap = {
|
|
21357
|
+
active: "bg-green-500",
|
|
21358
|
+
inactive: "bg-gray-400",
|
|
21359
|
+
deceased: "bg-red-500"
|
|
21360
|
+
};
|
|
21361
|
+
const statusColorClass = statusColorMap[normalizedStatus] ?? "bg-yellow-500";
|
|
21362
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1 whitespace-nowrap", children: [
|
|
21363
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21364
|
+
"span",
|
|
21365
|
+
{
|
|
21366
|
+
"aria-hidden": "true",
|
|
21367
|
+
className: `inline-block h-2 w-2 rounded-full ${statusColorClass}`
|
|
21368
|
+
}
|
|
21369
|
+
),
|
|
21370
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground capitalize", children: normalizedStatus })
|
|
21371
|
+
] });
|
|
21372
|
+
})(),
|
|
21373
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground whitespace-nowrap", children: [
|
|
21374
|
+
"MRN: ",
|
|
21375
|
+
patient.mrn
|
|
21376
|
+
] }),
|
|
21377
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground whitespace-nowrap", children: [
|
|
21356
21378
|
patient.age,
|
|
21357
21379
|
" y/o ",
|
|
21358
21380
|
patient.sex
|
|
21359
21381
|
] }),
|
|
21360
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground
|
|
21361
|
-
"
|
|
21362
|
-
patient.
|
|
21363
|
-
] })
|
|
21364
|
-
|
|
21365
|
-
(patient.status || patient.flags && patient.flags.length > 0) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-1.5 flex flex-wrap items-center gap-1.5", children: [
|
|
21366
|
-
patient.status && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21367
|
-
chunkEKIQE524_cjs.Badge,
|
|
21368
|
-
{
|
|
21369
|
-
variant: getStatusVariant(patient.status),
|
|
21370
|
-
size: "sm",
|
|
21371
|
-
className: "uppercase",
|
|
21372
|
-
children: patient.status
|
|
21373
|
-
}
|
|
21374
|
-
),
|
|
21375
|
-
patient.flags?.map((flag) => /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getFlagVariant(flag), size: "sm", children: flag.toUpperCase() }, flag))
|
|
21382
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground whitespace-nowrap", children: [
|
|
21383
|
+
"DOB: ",
|
|
21384
|
+
patient.dob
|
|
21385
|
+
] }),
|
|
21386
|
+
patient.employer && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground whitespace-nowrap", children: patient.employer })
|
|
21376
21387
|
] })
|
|
21377
|
-
] })
|
|
21378
|
-
(actions || showOverflowMenu) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-1 flex shrink-0 items-start gap-1", children: [
|
|
21379
|
-
actions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", ref: actionsMenuRef, children: [
|
|
21380
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21381
|
-
chunkPEH4ZOEM_cjs.Button,
|
|
21382
|
-
{
|
|
21383
|
-
variant: "ghost",
|
|
21384
|
-
size: "icon",
|
|
21385
|
-
onClick: () => setActionsMenuOpen(!actionsMenuOpen),
|
|
21386
|
-
"aria-label": "Open actions menu",
|
|
21387
|
-
"aria-haspopup": "true",
|
|
21388
|
-
"aria-expanded": actionsMenuOpen,
|
|
21389
|
-
"aria-controls": "patient-actions-menu",
|
|
21390
|
-
className: "h-8 w-8 md:hidden",
|
|
21391
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQUA7WVHK_cjs.Menu, { size: 18 })
|
|
21392
|
-
}
|
|
21393
|
-
),
|
|
21394
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21395
|
-
"div",
|
|
21396
|
-
{
|
|
21397
|
-
id: "patient-actions-menu",
|
|
21398
|
-
role: "group",
|
|
21399
|
-
"aria-label": "Patient actions",
|
|
21400
|
-
className: chunkOR5DRJCW_cjs.cn(
|
|
21401
|
-
"hidden items-center gap-2 md:flex",
|
|
21402
|
-
actionsMenuOpen && "border-border bg-card motion-safe:animate-fade-in absolute top-full right-0 z-50 mt-1 !flex min-w-[12rem] flex-col gap-1.5 rounded-xl border p-2 shadow-lg",
|
|
21403
|
-
"md:static md:z-auto md:mt-0 md:min-w-0 md:flex-row md:gap-2 md:rounded-none md:border-0 md:bg-transparent md:p-0 md:shadow-none"
|
|
21404
|
-
),
|
|
21405
|
-
children: actions
|
|
21406
|
-
}
|
|
21407
|
-
)
|
|
21408
|
-
] }),
|
|
21409
|
-
showOverflowMenu && /* @__PURE__ */ jsxRuntime.jsx(PatientOverflowMenu, { onAction: handleOverflowAction })
|
|
21410
|
-
] })
|
|
21388
|
+
] }) })
|
|
21411
21389
|
] }),
|
|
21412
|
-
|
|
21390
|
+
hasInfoRows && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-border bg-muted/30 mx-5 mb-3 space-y-2.5 rounded-lg border px-4 py-3", children: [
|
|
21413
21391
|
hasAllergies && /* @__PURE__ */ jsxRuntime.jsx(AllergyRow, { allergies }),
|
|
21414
21392
|
hasMedications && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21415
21393
|
MedicationRow,
|
|
@@ -21418,91 +21396,84 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21418
21396
|
maxVisible: maxVisibleMeds
|
|
21419
21397
|
}
|
|
21420
21398
|
),
|
|
21421
|
-
hasComments && /* @__PURE__ */ jsxRuntime.jsx(AlertRow, { comments })
|
|
21399
|
+
hasComments && /* @__PURE__ */ jsxRuntime.jsx(AlertRow, { comments }),
|
|
21400
|
+
hasProviders && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-x-8 gap-y-2", children: [
|
|
21401
|
+
patient.attendingProvider && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21402
|
+
DetailItem,
|
|
21403
|
+
{
|
|
21404
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Stethoscope, { size: 14 }),
|
|
21405
|
+
label: "Attending",
|
|
21406
|
+
value: patient.attendingProvider
|
|
21407
|
+
}
|
|
21408
|
+
),
|
|
21409
|
+
patient.familyProvider && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21410
|
+
DetailItem,
|
|
21411
|
+
{
|
|
21412
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Users, { size: 14 }),
|
|
21413
|
+
label: "Family MD",
|
|
21414
|
+
value: patient.familyProvider
|
|
21415
|
+
}
|
|
21416
|
+
)
|
|
21417
|
+
] })
|
|
21422
21418
|
] }),
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
) }),
|
|
21442
|
-
detailsExpanded && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21443
|
-
"div",
|
|
21444
|
-
{
|
|
21445
|
-
id: "patient-details-content",
|
|
21446
|
-
className: "border-border motion-safe:animate-fade-in space-y-3 border-t px-5 py-4",
|
|
21447
|
-
children: [
|
|
21448
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-x-10 gap-y-3", children: [
|
|
21419
|
+
showFlagBanner && patient.flags && patient.flags.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-amber-200 bg-amber-50 px-5 py-1.5 text-left text-xs font-medium tracking-wide text-amber-800 dark:border-amber-800/40 dark:bg-amber-950/40 dark:text-amber-300", children: patient.flags.map(
|
|
21420
|
+
(flag) => flag.charAt(0).toUpperCase() + flag.slice(1).toLowerCase()
|
|
21421
|
+
).join(" \xB7 ") }),
|
|
21422
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21423
|
+
chunk377KAB4C_cjs.Modal,
|
|
21424
|
+
{
|
|
21425
|
+
open: contactModalOpen,
|
|
21426
|
+
onOpenChange: (isOpen) => {
|
|
21427
|
+
if (!isOpen) setContactModalOpen(false);
|
|
21428
|
+
},
|
|
21429
|
+
size: "sm",
|
|
21430
|
+
children: [
|
|
21431
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
21432
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Contact Information" }),
|
|
21433
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
21434
|
+
] }),
|
|
21435
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
21436
|
+
patient.email && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
21449
21437
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21450
|
-
|
|
21438
|
+
chunkQIOM5ZV2_cjs.Mail,
|
|
21451
21439
|
{
|
|
21452
|
-
|
|
21453
|
-
|
|
21454
|
-
value: patient.dob
|
|
21440
|
+
size: 18,
|
|
21441
|
+
className: "text-muted-foreground shrink-0"
|
|
21455
21442
|
}
|
|
21456
21443
|
),
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
{
|
|
21460
|
-
|
|
21461
|
-
label: "Email",
|
|
21462
|
-
value: patient.email
|
|
21463
|
-
}
|
|
21464
|
-
),
|
|
21465
|
-
patient.phone && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21466
|
-
DetailItem,
|
|
21467
|
-
{
|
|
21468
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQUA7WVHK_cjs.Phone, { size: 14 }),
|
|
21469
|
-
label: "Phone",
|
|
21470
|
-
value: patient.phone
|
|
21471
|
-
}
|
|
21472
|
-
),
|
|
21473
|
-
patient.employer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21474
|
-
DetailItem,
|
|
21475
|
-
{
|
|
21476
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkQUA7WVHK_cjs.Building, { size: 14 }),
|
|
21477
|
-
label: "Employer",
|
|
21478
|
-
value: patient.employer
|
|
21479
|
-
}
|
|
21480
|
-
)
|
|
21444
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21445
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wide uppercase", children: "Email" }),
|
|
21446
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-sm", children: patient.email })
|
|
21447
|
+
] })
|
|
21481
21448
|
] }),
|
|
21482
|
-
|
|
21483
|
-
|
|
21484
|
-
|
|
21449
|
+
patient.phone && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
21450
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21451
|
+
chunkQIOM5ZV2_cjs.Phone,
|
|
21485
21452
|
{
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
value: patient.attendingProvider
|
|
21453
|
+
size: 18,
|
|
21454
|
+
className: "text-muted-foreground shrink-0"
|
|
21489
21455
|
}
|
|
21490
21456
|
),
|
|
21491
|
-
|
|
21492
|
-
|
|
21493
|
-
{
|
|
21494
|
-
|
|
21495
|
-
|
|
21496
|
-
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
|
|
21457
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21458
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wide uppercase", children: "Phone" }),
|
|
21459
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground text-sm", children: patient.phone })
|
|
21460
|
+
] })
|
|
21461
|
+
] }),
|
|
21462
|
+
!patient.email && !patient.phone && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm", children: "No contact information available." })
|
|
21463
|
+
] }) }),
|
|
21464
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21465
|
+
chunkPEH4ZOEM_cjs.Button,
|
|
21466
|
+
{
|
|
21467
|
+
variant: "secondary",
|
|
21468
|
+
onClick: () => setContactModalOpen(false),
|
|
21469
|
+
children: "Close"
|
|
21470
|
+
}
|
|
21471
|
+
) })
|
|
21472
|
+
]
|
|
21473
|
+
}
|
|
21474
|
+
),
|
|
21504
21475
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21505
|
-
|
|
21476
|
+
chunk377KAB4C_cjs.Modal,
|
|
21506
21477
|
{
|
|
21507
21478
|
open: !!addModalType,
|
|
21508
21479
|
onOpenChange: (isOpen) => {
|
|
@@ -21513,14 +21484,14 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21513
21484
|
},
|
|
21514
21485
|
size: "md",
|
|
21515
21486
|
children: [
|
|
21516
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21517
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21487
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
21488
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalTitle, { children: [
|
|
21518
21489
|
"Add ",
|
|
21519
21490
|
addEntityLabel
|
|
21520
21491
|
] }),
|
|
21521
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21492
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
21522
21493
|
] }),
|
|
21523
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21494
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
|
|
21524
21495
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21525
21496
|
chunkVV4N4WY6_cjs.Input,
|
|
21526
21497
|
{
|
|
@@ -21633,7 +21604,7 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21633
21604
|
)
|
|
21634
21605
|
] })
|
|
21635
21606
|
] }) }),
|
|
21636
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21607
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
21637
21608
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21638
21609
|
chunkPEH4ZOEM_cjs.Button,
|
|
21639
21610
|
{
|
|
@@ -21666,7 +21637,7 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21666
21637
|
}
|
|
21667
21638
|
),
|
|
21668
21639
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21669
|
-
|
|
21640
|
+
chunk377KAB4C_cjs.Modal,
|
|
21670
21641
|
{
|
|
21671
21642
|
open: editPatientOpen,
|
|
21672
21643
|
onOpenChange: (isOpen) => {
|
|
@@ -21677,11 +21648,11 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21677
21648
|
},
|
|
21678
21649
|
size: "2xl",
|
|
21679
21650
|
children: [
|
|
21680
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21681
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21682
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21651
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
21652
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Edit Patient" }),
|
|
21653
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
21683
21654
|
] }),
|
|
21684
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21655
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalBody, { children: /* @__PURE__ */ jsxRuntime.jsxs("form", { className: "space-y-4", onSubmit: (e) => e.preventDefault(), children: [
|
|
21685
21656
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-4", children: [
|
|
21686
21657
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21687
21658
|
chunkVV4N4WY6_cjs.Input,
|
|
@@ -21862,7 +21833,7 @@ var PatientHeader = React48__namespace.forwardRef(
|
|
|
21862
21833
|
}
|
|
21863
21834
|
)
|
|
21864
21835
|
] }) }),
|
|
21865
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
21836
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
21866
21837
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21867
21838
|
chunkPEH4ZOEM_cjs.Button,
|
|
21868
21839
|
{
|
|
@@ -21912,7 +21883,7 @@ function PaymentHistoryTable({
|
|
|
21912
21883
|
const formatCurrency3 = (amount) => {
|
|
21913
21884
|
return `${currency}${amount.toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;
|
|
21914
21885
|
};
|
|
21915
|
-
const
|
|
21886
|
+
const getStatusVariant = (status) => {
|
|
21916
21887
|
switch (status) {
|
|
21917
21888
|
case "completed":
|
|
21918
21889
|
return "success";
|
|
@@ -22106,7 +22077,7 @@ function PaymentHistoryTable({
|
|
|
22106
22077
|
children: formatCurrency3(payment.amount)
|
|
22107
22078
|
}
|
|
22108
22079
|
) }),
|
|
22109
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
22080
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(payment.status), children: payment.status }) }),
|
|
22110
22081
|
onRefund && /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-3 text-right", children: payment.status === "completed" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
22111
22082
|
chunkPEH4ZOEM_cjs.Button,
|
|
22112
22083
|
{
|
|
@@ -22478,7 +22449,7 @@ function PendingClaimsTable({
|
|
|
22478
22449
|
const d = typeof date === "string" ? new Date(date) : date;
|
|
22479
22450
|
return d.toLocaleDateString();
|
|
22480
22451
|
};
|
|
22481
|
-
const
|
|
22452
|
+
const getStatusVariant = (status) => {
|
|
22482
22453
|
switch (status) {
|
|
22483
22454
|
case "approved":
|
|
22484
22455
|
return "success";
|
|
@@ -22549,7 +22520,7 @@ function PendingClaimsTable({
|
|
|
22549
22520
|
] }) }),
|
|
22550
22521
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-4", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-700 dark:text-gray-300", children: claim.claimantRole || "Not specified" }) }),
|
|
22551
22522
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-4", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: formatDate4(claim.submittedDate) }) }),
|
|
22552
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-4 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
22523
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-4 text-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(claim.status), children: claim.status }) }),
|
|
22553
22524
|
/* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-4 py-4 text-right", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-2", children: [
|
|
22554
22525
|
onViewDetails && /* @__PURE__ */ jsxRuntime.jsx(
|
|
22555
22526
|
chunkPEH4ZOEM_cjs.Button,
|
|
@@ -22593,7 +22564,7 @@ function PendingClaimsTable({
|
|
|
22593
22564
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: claim.claimantEmail })
|
|
22594
22565
|
] })
|
|
22595
22566
|
] }),
|
|
22596
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
22567
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(claim.status), children: claim.status })
|
|
22597
22568
|
] }),
|
|
22598
22569
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 flex items-center justify-between", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-gray-500 dark:text-gray-400", children: [
|
|
22599
22570
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: claim.claimantRole || "No role" }),
|
|
@@ -26654,7 +26625,7 @@ function ProviderUsersTable({
|
|
|
26654
26625
|
year: "numeric"
|
|
26655
26626
|
});
|
|
26656
26627
|
};
|
|
26657
|
-
const
|
|
26628
|
+
const getStatusVariant = (status) => {
|
|
26658
26629
|
switch (status) {
|
|
26659
26630
|
case "active":
|
|
26660
26631
|
return "success";
|
|
@@ -26727,7 +26698,7 @@ function ProviderUsersTable({
|
|
|
26727
26698
|
] })
|
|
26728
26699
|
] }) }),
|
|
26729
26700
|
/* @__PURE__ */ jsxRuntime.jsx(chunkLZEY55QZ_cjs.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-gray-700 dark:text-gray-300", children: user.role }) }),
|
|
26730
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkLZEY55QZ_cjs.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant:
|
|
26701
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkLZEY55QZ_cjs.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkEKIQE524_cjs.Badge, { variant: getStatusVariant(user.status), children: user.status || "active" }) }),
|
|
26731
26702
|
/* @__PURE__ */ jsxRuntime.jsx(chunkLZEY55QZ_cjs.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-gray-500 dark:text-gray-400", children: isPending ? `Invited ${formatDate4(user.invitedAt)}` : formatDate4(user.lastActive) }) }),
|
|
26732
26703
|
showActions && /* @__PURE__ */ jsxRuntime.jsx(chunkLZEY55QZ_cjs.TableCell, { className: "text-right", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-1", children: [
|
|
26733
26704
|
isPending && onResendInvite && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -27369,9 +27340,9 @@ function RejectionModal({
|
|
|
27369
27340
|
details: details.trim() || void 0
|
|
27370
27341
|
});
|
|
27371
27342
|
};
|
|
27372
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
27373
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
27374
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
27343
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.Modal, { open, onOpenChange, size: "md", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
|
|
27344
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: title }) }),
|
|
27345
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
27375
27346
|
(description || itemDescription) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-muted rounded-lg p-3", children: [
|
|
27376
27347
|
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-sm", children: description }),
|
|
27377
27348
|
itemDescription && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-foreground mt-1 text-sm font-medium", children: itemDescription })
|
|
@@ -27444,7 +27415,7 @@ function RejectionModal({
|
|
|
27444
27415
|
needsDetails && !details.trim() && selectedReasonId && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-destructive mt-1 text-xs", children: "Please provide additional details for this rejection reason." })
|
|
27445
27416
|
] })
|
|
27446
27417
|
] }),
|
|
27447
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
27418
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
27448
27419
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
27449
27420
|
chunkPEH4ZOEM_cjs.Button,
|
|
27450
27421
|
{
|
|
@@ -28060,9 +28031,9 @@ function ResultsEntryModal({
|
|
|
28060
28031
|
const handleSubmitClick = () => {
|
|
28061
28032
|
formRef.current?.submit();
|
|
28062
28033
|
};
|
|
28063
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
28064
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28065
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
28034
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.Modal, { open, onOpenChange, size: "2xl", children: [
|
|
28035
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: serviceName }) }),
|
|
28036
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { children: [
|
|
28066
28037
|
employeeName && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-muted mb-4 rounded-lg p-3", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground text-sm", children: [
|
|
28067
28038
|
"Employee:",
|
|
28068
28039
|
" ",
|
|
@@ -28080,7 +28051,7 @@ function ResultsEntryModal({
|
|
|
28080
28051
|
}
|
|
28081
28052
|
)
|
|
28082
28053
|
] }),
|
|
28083
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
28054
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
28084
28055
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28085
28056
|
chunkPEH4ZOEM_cjs.Button,
|
|
28086
28057
|
{
|
|
@@ -30285,7 +30256,7 @@ function ServicePricingManager({
|
|
|
30285
30256
|
{
|
|
30286
30257
|
variant: "ghost",
|
|
30287
30258
|
size: "sm",
|
|
30288
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30259
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkQIOM5ZV2_cjs.Pencil, { className: "h-3.5 w-3.5" }),
|
|
30289
30260
|
onClick: () => handleEditClick(service),
|
|
30290
30261
|
children: "Edit"
|
|
30291
30262
|
}
|
|
@@ -30298,13 +30269,13 @@ function ServicePricingManager({
|
|
|
30298
30269
|
] }) })
|
|
30299
30270
|
] }),
|
|
30300
30271
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30301
|
-
|
|
30272
|
+
chunk377KAB4C_cjs.Modal,
|
|
30302
30273
|
{
|
|
30303
30274
|
open: !!editingService,
|
|
30304
30275
|
onOpenChange: () => setEditingService(null),
|
|
30305
30276
|
children: [
|
|
30306
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30307
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30277
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Edit Service Price" }) }),
|
|
30278
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
30308
30279
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-gray-900 dark:text-white", children: editingService?.serviceName }),
|
|
30309
30280
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
30310
30281
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -30350,16 +30321,16 @@ function ServicePricingManager({
|
|
|
30350
30321
|
)
|
|
30351
30322
|
] })
|
|
30352
30323
|
] }),
|
|
30353
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30324
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
30354
30325
|
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { variant: "ghost", onClick: () => setEditingService(null), children: "Cancel" }),
|
|
30355
30326
|
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { onClick: handleSaveEdit, disabled: isSaving, children: isSaving ? "Saving..." : "Save Changes" })
|
|
30356
30327
|
] })
|
|
30357
30328
|
]
|
|
30358
30329
|
}
|
|
30359
30330
|
),
|
|
30360
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30361
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30362
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30331
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.Modal, { open: showBulkModal, onOpenChange: setShowBulkModal, children: [
|
|
30332
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: "Bulk Price Adjustment" }) }),
|
|
30333
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "space-y-4", children: [
|
|
30363
30334
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: [
|
|
30364
30335
|
"Apply adjustment to ",
|
|
30365
30336
|
filteredServices.length,
|
|
@@ -30400,7 +30371,7 @@ function ServicePricingManager({
|
|
|
30400
30371
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-xs text-gray-500 dark:text-gray-400", children: "Use negative values to decrease prices" })
|
|
30401
30372
|
] })
|
|
30402
30373
|
] }),
|
|
30403
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30374
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
30404
30375
|
/* @__PURE__ */ jsxRuntime.jsx(chunkPEH4ZOEM_cjs.Button, { variant: "ghost", onClick: () => setShowBulkModal(false), children: "Cancel" }),
|
|
30405
30376
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30406
30377
|
chunkPEH4ZOEM_cjs.Button,
|
|
@@ -30690,9 +30661,9 @@ function SetupServiceModal({
|
|
|
30690
30661
|
onSave(formData);
|
|
30691
30662
|
};
|
|
30692
30663
|
const isValid = formData.name.trim() && formData.price >= 0;
|
|
30693
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30694
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30695
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30664
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.Modal, { open, onOpenChange, size: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
|
|
30665
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: title }) }),
|
|
30666
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalBody, { className: "min-w-[320px] space-y-4", children: [
|
|
30696
30667
|
errorMessage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-800 dark:bg-red-900/20", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-red-600 dark:text-red-400", children: errorMessage }) }),
|
|
30697
30668
|
showServicePicker && availableServices.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30698
30669
|
chunk5UUL5EEO_cjs.Select,
|
|
@@ -30853,7 +30824,7 @@ function SetupServiceModal({
|
|
|
30853
30824
|
] })
|
|
30854
30825
|
] })
|
|
30855
30826
|
] }),
|
|
30856
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
30827
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalFooter, { children: [
|
|
30857
30828
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30858
30829
|
chunkPEH4ZOEM_cjs.Button,
|
|
30859
30830
|
{
|
|
@@ -34112,7 +34083,7 @@ function WebChartReportViewer({
|
|
|
34112
34083
|
))
|
|
34113
34084
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground col-span-full py-8 text-center", children: noReports }) }),
|
|
34114
34085
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
34115
|
-
|
|
34086
|
+
chunk377KAB4C_cjs.Modal,
|
|
34116
34087
|
{
|
|
34117
34088
|
open: modalOpen,
|
|
34118
34089
|
onOpenChange: (open) => {
|
|
@@ -34122,12 +34093,12 @@ function WebChartReportViewer({
|
|
|
34122
34093
|
},
|
|
34123
34094
|
size: "4xl",
|
|
34124
34095
|
children: [
|
|
34125
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
34096
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk377KAB4C_cjs.ModalHeader, { children: [
|
|
34126
34097
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
34127
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34098
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalTitle, { children: currentReport?.name || "Report Results" }),
|
|
34128
34099
|
reportResult?.error ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, { className: "h-5 w-5 text-yellow-500" }) : reportResult?.success ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5 text-green-500" }) : null
|
|
34129
34100
|
] }),
|
|
34130
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34101
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalClose, {})
|
|
34131
34102
|
] }),
|
|
34132
34103
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-muted/50 flex flex-wrap items-center gap-3 border-b px-6 py-4", children: [
|
|
34133
34104
|
onDateRangeChange && dateRange && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -34171,7 +34142,7 @@ function WebChartReportViewer({
|
|
|
34171
34142
|
}
|
|
34172
34143
|
)
|
|
34173
34144
|
] }),
|
|
34174
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34145
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk377KAB4C_cjs.ModalBody, { className: "max-h-[60vh] overflow-auto", children: loadingReport ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-64 flex-col items-center justify-center", children: [
|
|
34175
34146
|
/* @__PURE__ */ jsxRuntime.jsx(chunkJYMQJ32S_cjs.Spinner, { size: "xl" }),
|
|
34176
34147
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground mt-4", children: loadingData })
|
|
34177
34148
|
] }) : reportResult?.error ? /* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.Alert, { variant: "danger", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, {}), children: /* @__PURE__ */ jsxRuntime.jsx(chunkIY7UQPDO_cjs.AlertDescription, { children: reportResult.error }) }) : reportResult?.data ? typeof reportResult.data === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -34804,35 +34775,35 @@ Object.defineProperty(exports, "tabsTriggerVariants", {
|
|
|
34804
34775
|
});
|
|
34805
34776
|
Object.defineProperty(exports, "Modal", {
|
|
34806
34777
|
enumerable: true,
|
|
34807
|
-
get: function () { return
|
|
34778
|
+
get: function () { return chunk377KAB4C_cjs.Modal; }
|
|
34808
34779
|
});
|
|
34809
34780
|
Object.defineProperty(exports, "ModalBody", {
|
|
34810
34781
|
enumerable: true,
|
|
34811
|
-
get: function () { return
|
|
34782
|
+
get: function () { return chunk377KAB4C_cjs.ModalBody; }
|
|
34812
34783
|
});
|
|
34813
34784
|
Object.defineProperty(exports, "ModalClose", {
|
|
34814
34785
|
enumerable: true,
|
|
34815
|
-
get: function () { return
|
|
34786
|
+
get: function () { return chunk377KAB4C_cjs.ModalClose; }
|
|
34816
34787
|
});
|
|
34817
34788
|
Object.defineProperty(exports, "ModalFooter", {
|
|
34818
34789
|
enumerable: true,
|
|
34819
|
-
get: function () { return
|
|
34790
|
+
get: function () { return chunk377KAB4C_cjs.ModalFooter; }
|
|
34820
34791
|
});
|
|
34821
34792
|
Object.defineProperty(exports, "ModalHeader", {
|
|
34822
34793
|
enumerable: true,
|
|
34823
|
-
get: function () { return
|
|
34794
|
+
get: function () { return chunk377KAB4C_cjs.ModalHeader; }
|
|
34824
34795
|
});
|
|
34825
34796
|
Object.defineProperty(exports, "ModalTitle", {
|
|
34826
34797
|
enumerable: true,
|
|
34827
|
-
get: function () { return
|
|
34798
|
+
get: function () { return chunk377KAB4C_cjs.ModalTitle; }
|
|
34828
34799
|
});
|
|
34829
34800
|
Object.defineProperty(exports, "modalContentVariants", {
|
|
34830
34801
|
enumerable: true,
|
|
34831
|
-
get: function () { return
|
|
34802
|
+
get: function () { return chunk377KAB4C_cjs.modalContentVariants; }
|
|
34832
34803
|
});
|
|
34833
34804
|
Object.defineProperty(exports, "modalOverlayVariants", {
|
|
34834
34805
|
enumerable: true,
|
|
34835
|
-
get: function () { return
|
|
34806
|
+
get: function () { return chunk377KAB4C_cjs.modalOverlayVariants; }
|
|
34836
34807
|
});
|
|
34837
34808
|
Object.defineProperty(exports, "Pagination", {
|
|
34838
34809
|
enumerable: true,
|