@senitix/ui 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-BcwB0wwz.cjs +2 -0
- package/dist/accordion-BcwB0wwz.cjs.map +1 -0
- package/dist/accordion-BwnJKrKm.js +360 -0
- package/dist/accordion-BwnJKrKm.js.map +1 -0
- package/dist/appointment-scheduler-BoQQO51F.cjs +2 -0
- package/dist/appointment-scheduler-BoQQO51F.cjs.map +1 -0
- package/dist/appointment-scheduler-DHAs-mF_.js +192 -0
- package/dist/appointment-scheduler-DHAs-mF_.js.map +1 -0
- package/dist/arrow-right-CM3nmiZe.js +15 -0
- package/dist/arrow-right-CM3nmiZe.js.map +1 -0
- package/dist/arrow-right-vDxRZOfm.cjs +7 -0
- package/dist/arrow-right-vDxRZOfm.cjs.map +1 -0
- package/dist/avatar-BlEcWE7T.js +191 -0
- package/dist/avatar-BlEcWE7T.js.map +1 -0
- package/dist/avatar-Cl38Ye4J.cjs +2 -0
- package/dist/avatar-Cl38Ye4J.cjs.map +1 -0
- package/dist/badge-BZcdBG5J.cjs +23 -0
- package/dist/badge-BZcdBG5J.cjs.map +1 -0
- package/dist/badge-D0C_rP2l.js +157 -0
- package/dist/badge-D0C_rP2l.js.map +1 -0
- package/dist/button-BP_ug5gP.js +126 -0
- package/dist/button-BP_ug5gP.js.map +1 -0
- package/dist/button-CPuCii0R.cjs +2 -0
- package/dist/button-CPuCii0R.cjs.map +1 -0
- package/dist/{calendar-DgnhzEfp.js → calendar-86qoSnO7.js} +368 -433
- package/dist/calendar-86qoSnO7.js.map +1 -0
- package/dist/{calendar-D3RWU0_G.cjs → calendar-BH-AuyiB.cjs} +2 -2
- package/dist/{calendar-D3RWU0_G.cjs.map → calendar-BH-AuyiB.cjs.map} +1 -1
- package/dist/calendar-CSJ060ym.cjs +2 -0
- package/dist/calendar-CSJ060ym.cjs.map +1 -0
- package/dist/{calendar-CUxm1K7J.js → calendar-JUSWONQ0.js} +2 -2
- package/dist/{calendar-CUxm1K7J.js.map → calendar-JUSWONQ0.js.map} +1 -1
- package/dist/{card-DISL3sPJ.cjs → card-CToWUN1K.cjs} +2 -2
- package/dist/{card-DISL3sPJ.cjs.map → card-CToWUN1K.cjs.map} +1 -1
- package/dist/{card-fId5vof_.js → card-yxbWFvZ1.js} +2 -2
- package/dist/{card-fId5vof_.js.map → card-yxbWFvZ1.js.map} +1 -1
- package/dist/checkbox-BmugT50K.cjs +2 -0
- package/dist/checkbox-BmugT50K.cjs.map +1 -0
- package/dist/{checkbox-BY2zxQVv.js → checkbox-CTa9e4SG.js} +95 -97
- package/dist/checkbox-CTa9e4SG.js.map +1 -0
- package/dist/chevron-left-5h87iFo_.cjs +7 -0
- package/dist/chevron-left-5h87iFo_.cjs.map +1 -0
- package/dist/chevron-left-DD5mQuvf.js +14 -0
- package/dist/chevron-left-DD5mQuvf.js.map +1 -0
- package/dist/{chevron-right-Bxf8i4gi.cjs → chevron-right-D-TdAZ7l.cjs} +2 -2
- package/dist/{chevron-right-Bxf8i4gi.cjs.map → chevron-right-D-TdAZ7l.cjs.map} +1 -1
- package/dist/{chevron-right-BLyGmyaF.js → chevron-right-Di90aqSn.js} +2 -2
- package/dist/{chevron-right-BLyGmyaF.js.map → chevron-right-Di90aqSn.js.map} +1 -1
- package/dist/chevron-up-Bq55Db6X.cjs +7 -0
- package/dist/{chevron-up-C3RClqXD.cjs.map → chevron-up-Bq55Db6X.cjs.map} +1 -1
- package/dist/{chevron-up-BmYZUtrk.js → chevron-up-Dr7EIn9V.js} +2 -2
- package/dist/{chevron-up-BmYZUtrk.js.map → chevron-up-Dr7EIn9V.js.map} +1 -1
- package/dist/clock-BjJE8PGr.js +15 -0
- package/dist/clock-BjJE8PGr.js.map +1 -0
- package/dist/clock-CnxBAA_O.cjs +7 -0
- package/dist/clock-CnxBAA_O.cjs.map +1 -0
- package/dist/command-BPtg-XK3.cjs +2 -0
- package/dist/command-BPtg-XK3.cjs.map +1 -0
- package/dist/command-VraXPLVI.js +404 -0
- package/dist/command-VraXPLVI.js.map +1 -0
- package/dist/components/builders/index.cjs.js +2 -0
- package/dist/components/builders/index.cjs.js.map +1 -0
- package/dist/components/builders/index.es.js +42 -0
- package/dist/components/builders/index.es.js.map +1 -0
- package/dist/components/charts/index.cjs.js +1 -1
- package/dist/components/charts/index.es.js +7 -6
- package/dist/components/charts/index.es.js.map +1 -1
- package/dist/components/data-display/index.cjs.js +1 -1
- package/dist/components/data-display/index.es.js +43 -20
- package/dist/components/dnd/index.cjs.js +1 -1
- package/dist/components/dnd/index.es.js +1 -1
- package/dist/components/feedback/index.cjs.js +1 -1
- package/dist/components/feedback/index.es.js +1 -1
- package/dist/components/forms/index.cjs.js +1 -1
- package/dist/components/forms/index.es.js +24 -23
- package/dist/components/forms/index.es.js.map +1 -1
- package/dist/components/layouts/index.cjs.js +1 -1
- package/dist/components/layouts/index.es.js +45 -21
- package/dist/components/messaging/index.cjs.js +2 -0
- package/dist/components/messaging/index.cjs.js.map +1 -0
- package/dist/components/messaging/index.es.js +15 -0
- package/dist/components/messaging/index.es.js.map +1 -0
- package/dist/components/navigation/index.cjs.js +1 -1
- package/dist/components/navigation/index.es.js +1 -1
- package/dist/components/scheduling/index.cjs.js +2 -0
- package/dist/components/scheduling/index.cjs.js.map +1 -0
- package/dist/components/scheduling/index.es.js +6 -0
- package/dist/components/scheduling/index.es.js.map +1 -0
- package/dist/components/ui/index.cjs.js +1 -1
- package/dist/components/ui/index.es.js +168 -158
- package/dist/components/ui/index.es.js.map +1 -1
- package/dist/dialog-BFBDL8_i.js +382 -0
- package/dist/dialog-BFBDL8_i.js.map +1 -0
- package/dist/dialog-DO5i1PED.cjs +6 -0
- package/dist/dialog-DO5i1PED.cjs.map +1 -0
- package/dist/dropdown-menu-CkCCV_tw.js +969 -0
- package/dist/dropdown-menu-CkCCV_tw.js.map +1 -0
- package/dist/dropdown-menu-ejikFvg2.cjs +7 -0
- package/dist/dropdown-menu-ejikFvg2.cjs.map +1 -0
- package/dist/{ellipsis-6eUne95u.js → ellipsis-CKhpjj5H.js} +2 -2
- package/dist/{ellipsis-6eUne95u.js.map → ellipsis-CKhpjj5H.js.map} +1 -1
- package/dist/{ellipsis-DkM3GBF5.cjs → ellipsis-Dk7Wfc4i.cjs} +3 -3
- package/dist/{ellipsis-DkM3GBF5.cjs.map → ellipsis-Dk7Wfc4i.cjs.map} +1 -1
- package/dist/external-link-CGBqsrbm.cjs +7 -0
- package/dist/external-link-CGBqsrbm.cjs.map +1 -0
- package/dist/external-link-UeWW0ty3.js +16 -0
- package/dist/external-link-UeWW0ty3.js.map +1 -0
- package/dist/eye-Cved4eAo.cjs +7 -0
- package/dist/eye-Cved4eAo.cjs.map +1 -0
- package/dist/eye-KdCUpmO8.js +21 -0
- package/dist/eye-KdCUpmO8.js.map +1 -0
- package/dist/{file-Cw_u_aJB.js → file-CHbdXCWO.js} +2 -2
- package/dist/{file-Cw_u_aJB.js.map → file-CHbdXCWO.js.map} +1 -1
- package/dist/{file-Cp5UoYUZ.cjs → file-CqYRamm8.cjs} +3 -3
- package/dist/{file-Cp5UoYUZ.cjs.map → file-CqYRamm8.cjs.map} +1 -1
- package/dist/file-spreadsheet-CpySxI0-.cjs +7 -0
- package/dist/file-spreadsheet-CpySxI0-.cjs.map +1 -0
- package/dist/file-spreadsheet-EqZMR-mM.js +19 -0
- package/dist/file-spreadsheet-EqZMR-mM.js.map +1 -0
- package/dist/form-preview-BGdea5K7.cjs +111 -0
- package/dist/form-preview-BGdea5K7.cjs.map +1 -0
- package/dist/form-preview-C6WfeXyD.js +12075 -0
- package/dist/form-preview-C6WfeXyD.js.map +1 -0
- package/dist/full-calendar-CZMK_rPy.cjs +18 -0
- package/dist/full-calendar-CZMK_rPy.cjs.map +1 -0
- package/dist/full-calendar-CjaDgutS.js +2631 -0
- package/dist/full-calendar-CjaDgutS.js.map +1 -0
- package/dist/funnel-chart-Dfj1pOyV.cjs +6 -0
- package/dist/funnel-chart-Dfj1pOyV.cjs.map +1 -0
- package/dist/funnel-chart-o9qcEMgg.js +2952 -0
- package/dist/funnel-chart-o9qcEMgg.js.map +1 -0
- package/dist/global-search-Dhv8goH8.js +1331 -0
- package/dist/global-search-Dhv8goH8.js.map +1 -0
- package/dist/global-search-msFICB8l.cjs +22 -0
- package/dist/global-search-msFICB8l.cjs.map +1 -0
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +9 -7
- package/dist/hooks/index.es.js.map +1 -1
- package/dist/{index-DtaLkIY8.js → index-BGUveO6l.js} +84 -79
- package/dist/{index-DtaLkIY8.js.map → index-BGUveO6l.js.map} +1 -1
- package/dist/{index-gVbM3K4f.cjs → index-Bhee6XHk.cjs} +2 -2
- package/dist/{index-gVbM3K4f.cjs.map → index-Bhee6XHk.cjs.map} +1 -1
- package/dist/index-CrSlyWAA.js +1090 -0
- package/dist/index-CrSlyWAA.js.map +1 -0
- package/dist/{index-Dk_Et2WJ.js → index-D8-pHJim.js} +2 -2
- package/dist/{index-Dk_Et2WJ.js.map → index-D8-pHJim.js.map} +1 -1
- package/dist/index-Dy_9oyP3.cjs +2 -0
- package/dist/{index-D2U2F80P.cjs.map → index-Dy_9oyP3.cjs.map} +1 -1
- package/dist/index-hnbbvGmb.cjs +21 -0
- package/dist/index-hnbbvGmb.cjs.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +434 -319
- package/dist/index.es.js.map +1 -1
- package/dist/input-Pfq8fkiV.js +2718 -0
- package/dist/input-Pfq8fkiV.js.map +1 -0
- package/dist/input-UBp7V7li.cjs +52 -0
- package/dist/input-UBp7V7li.cjs.map +1 -0
- package/dist/label-CExiitfO.js +50 -0
- package/dist/label-CExiitfO.js.map +1 -0
- package/dist/label-F0zGAiI2.cjs +2 -0
- package/dist/label-F0zGAiI2.cjs.map +1 -0
- package/dist/loader-circle-CBVYGIRp.js +14 -0
- package/dist/loader-circle-CBVYGIRp.js.map +1 -0
- package/dist/loader-circle-IaJKvYsP.cjs +7 -0
- package/dist/loader-circle-IaJKvYsP.cjs.map +1 -0
- package/dist/locale-provider-BHGNO4j7.js +1786 -0
- package/dist/locale-provider-BHGNO4j7.js.map +1 -0
- package/dist/locale-provider-BScpm-eC.cjs +2 -0
- package/dist/locale-provider-BScpm-eC.cjs.map +1 -0
- package/dist/locale-selector-D0jV4-90.cjs +12 -0
- package/dist/locale-selector-D0jV4-90.cjs.map +1 -0
- package/dist/locale-selector-n75sM9qA.js +1740 -0
- package/dist/locale-selector-n75sM9qA.js.map +1 -0
- package/dist/map-pin-CHh0xl6i.js +46 -0
- package/dist/map-pin-CHh0xl6i.js.map +1 -0
- package/dist/map-pin-DGObSZ40.cjs +17 -0
- package/dist/map-pin-DGObSZ40.cjs.map +1 -0
- package/dist/message-square-B_xLey5D.js +14 -0
- package/dist/message-square-B_xLey5D.js.map +1 -0
- package/dist/message-square-_69ua8rH.cjs +7 -0
- package/dist/message-square-_69ua8rH.cjs.map +1 -0
- package/dist/minus-BUFkTM0k.cjs +7 -0
- package/dist/{minus-C0uyaz70.cjs.map → minus-BUFkTM0k.cjs.map} +1 -1
- package/dist/{minus-CiwV65ZG.js → minus-DJ0tmymW.js} +2 -2
- package/dist/{minus-CiwV65ZG.js.map → minus-DJ0tmymW.js.map} +1 -1
- package/dist/multi-container-CytCGxsc.cjs +7 -0
- package/dist/multi-container-CytCGxsc.cjs.map +1 -0
- package/dist/multi-container-DmkgnCJN.js +799 -0
- package/dist/multi-container-DmkgnCJN.js.map +1 -0
- package/dist/multi-select-D9akBt7B.js +224 -0
- package/dist/multi-select-D9akBt7B.js.map +1 -0
- package/dist/multi-select-DxN_LuXC.cjs +7 -0
- package/dist/multi-select-DxN_LuXC.cjs.map +1 -0
- package/dist/pencil-BJULwaDl.cjs +12 -0
- package/dist/pencil-BJULwaDl.cjs.map +1 -0
- package/dist/pencil-HL0trGIs.js +31 -0
- package/dist/pencil-HL0trGIs.js.map +1 -0
- package/dist/permission-matrix-CTQ1OiTO.js +6128 -0
- package/dist/permission-matrix-CTQ1OiTO.js.map +1 -0
- package/dist/permission-matrix-DRu-cV44.cjs +93 -0
- package/dist/permission-matrix-DRu-cV44.cjs.map +1 -0
- package/dist/phone-B0J1dGIE.js +31 -0
- package/dist/phone-B0J1dGIE.js.map +1 -0
- package/dist/phone-DPA6vucM.cjs +12 -0
- package/dist/phone-DPA6vucM.cjs.map +1 -0
- package/dist/plus-Bcuujcqd.cjs +7 -0
- package/dist/{plus-BsV82JJ5.cjs.map → plus-Bcuujcqd.cjs.map} +1 -1
- package/dist/{plus-DxD6rofl.js → plus-D7DMDKb8.js} +2 -2
- package/dist/{plus-DxD6rofl.js.map → plus-D7DMDKb8.js.map} +1 -1
- package/dist/popover-Bba1ELMX.cjs +2 -0
- package/dist/popover-Bba1ELMX.cjs.map +1 -0
- package/dist/popover-CZWAuYUL.js +281 -0
- package/dist/popover-CZWAuYUL.js.map +1 -0
- package/dist/progress-BPpsmZ48.js +218 -0
- package/dist/progress-BPpsmZ48.js.map +1 -0
- package/dist/progress-BrzjVhWG.cjs +22 -0
- package/dist/progress-BrzjVhWG.cjs.map +1 -0
- package/dist/providers/index.cjs.js +1 -1
- package/dist/providers/index.es.js +1 -1
- package/dist/radio-group-B9RM_c7e.js +244 -0
- package/dist/radio-group-B9RM_c7e.js.map +1 -0
- package/dist/radio-group-_n8TTqNQ.cjs +2 -0
- package/dist/radio-group-_n8TTqNQ.cjs.map +1 -0
- package/dist/record-dialog-footer-CQPnqhfv.js +2577 -0
- package/dist/record-dialog-footer-CQPnqhfv.js.map +1 -0
- package/dist/record-dialog-footer-DLH96eAV.cjs +37 -0
- package/dist/record-dialog-footer-DLH96eAV.cjs.map +1 -0
- package/dist/scroll-area-CGNbDUBQ.js +889 -0
- package/dist/scroll-area-CGNbDUBQ.js.map +1 -0
- package/dist/scroll-area-HsTSI_58.cjs +22 -0
- package/dist/scroll-area-HsTSI_58.cjs.map +1 -0
- package/dist/select-CEsYpjPi.cjs +2 -0
- package/dist/select-CEsYpjPi.cjs.map +1 -0
- package/dist/{select-BJpZrtep.js → select-Ce2C2acZ.js} +184 -179
- package/dist/select-Ce2C2acZ.js.map +1 -0
- package/dist/send-DIkOd-pu.js +21 -0
- package/dist/send-DIkOd-pu.js.map +1 -0
- package/dist/send-H6HC-rS8.cjs +7 -0
- package/dist/send-H6HC-rS8.cjs.map +1 -0
- package/dist/shared-inbox-Bv0AgLew.js +702 -0
- package/dist/shared-inbox-Bv0AgLew.js.map +1 -0
- package/dist/shared-inbox-DWEKfDX3.cjs +22 -0
- package/dist/shared-inbox-DWEKfDX3.cjs.map +1 -0
- package/dist/sheet-C0-aBGln.cjs +2 -0
- package/dist/sheet-C0-aBGln.cjs.map +1 -0
- package/dist/sheet-Cyq_eDFW.js +147 -0
- package/dist/sheet-Cyq_eDFW.js.map +1 -0
- package/dist/{skeleton-Bl6FAxHT.js → skeleton-C_dwS3_6.js} +2 -2
- package/dist/{skeleton-Bl6FAxHT.js.map → skeleton-C_dwS3_6.js.map} +1 -1
- package/dist/{skeleton-Cb6MWerF.cjs → skeleton-D3YsjVWD.cjs} +2 -2
- package/dist/{skeleton-Cb6MWerF.cjs.map → skeleton-D3YsjVWD.cjs.map} +1 -1
- package/dist/sparkline-chart-BP4bk24J.js +15881 -0
- package/dist/sparkline-chart-BP4bk24J.js.map +1 -0
- package/dist/sparkline-chart-D6SLZVjp.cjs +79 -0
- package/dist/sparkline-chart-D6SLZVjp.cjs.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/switch-AEZvZSRV.cjs +2 -0
- package/dist/switch-AEZvZSRV.cjs.map +1 -0
- package/dist/switch-BF4LLvaU.js +147 -0
- package/dist/switch-BF4LLvaU.js.map +1 -0
- package/dist/table-2-Bn-YjZ9s.cjs +17 -0
- package/dist/table-2-Bn-YjZ9s.cjs.map +1 -0
- package/dist/table-2-C7E_N72K.js +52 -0
- package/dist/table-2-C7E_N72K.js.map +1 -0
- package/dist/textarea-4qZDuQ-C.js +206 -0
- package/dist/textarea-4qZDuQ-C.js.map +1 -0
- package/dist/textarea-Bq_zyt0L.cjs +2 -0
- package/dist/textarea-Bq_zyt0L.cjs.map +1 -0
- package/dist/tooltip-Dd7le9EO.cjs +2 -0
- package/dist/tooltip-Dd7le9EO.cjs.map +1 -0
- package/dist/tooltip-Dee-pNPI.js +338 -0
- package/dist/tooltip-Dee-pNPI.js.map +1 -0
- package/dist/trash-2-B3EP3JfM.js +18 -0
- package/dist/trash-2-B3EP3JfM.js.map +1 -0
- package/dist/trash-2-DWEeKlWT.cjs +7 -0
- package/dist/trash-2-DWEeKlWT.cjs.map +1 -0
- package/dist/{trending-up-BHFXgLWy.js → trending-up-ljWtN4pj.js} +2 -2
- package/dist/{trending-up-BHFXgLWy.js.map → trending-up-ljWtN4pj.js.map} +1 -1
- package/dist/{trending-up-BBjz_E69.cjs → trending-up-mLgmkp--.cjs} +2 -2
- package/dist/{trending-up-BBjz_E69.cjs.map → trending-up-mLgmkp--.cjs.map} +1 -1
- package/dist/upload-2tm-XihE.cjs +7 -0
- package/dist/upload-2tm-XihE.cjs.map +1 -0
- package/dist/upload-C_JDP8O0.js +16 -0
- package/dist/upload-C_JDP8O0.js.map +1 -0
- package/dist/use-controllable-state-3ATd6Fqd.cjs +2 -0
- package/dist/use-controllable-state-3ATd6Fqd.cjs.map +1 -0
- package/dist/use-controllable-state-CEa-Zlq6.js +23 -0
- package/dist/use-controllable-state-CEa-Zlq6.js.map +1 -0
- package/dist/use-formatters-Bb0fX1lW.cjs +2 -0
- package/dist/{use-formatters-CObUgipW.cjs.map → use-formatters-Bb0fX1lW.cjs.map} +1 -1
- package/dist/{use-formatters-Bgj3JA4i.js → use-formatters-xeMS4gdV.js} +1160 -1165
- package/dist/{use-formatters-Bgj3JA4i.js.map → use-formatters-xeMS4gdV.js.map} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +1 -1
- package/dist/welcome-card-Ccbl_miQ.js +1007 -0
- package/dist/welcome-card-Ccbl_miQ.js.map +1 -0
- package/dist/welcome-card-D-ShMkaS.cjs +37 -0
- package/dist/welcome-card-D-ShMkaS.cjs.map +1 -0
- package/dist/x-BBkgEhUv.js +15 -0
- package/dist/x-BBkgEhUv.js.map +1 -0
- package/dist/x-D-El5XAY.cjs +7 -0
- package/dist/x-D-El5XAY.cjs.map +1 -0
- package/package.json +20 -2
- package/dist/avatar-BT_SPwFW.cjs +0 -18
- package/dist/avatar-BT_SPwFW.cjs.map +0 -1
- package/dist/avatar-C5-ZWIqT.js +0 -305
- package/dist/avatar-C5-ZWIqT.js.map +0 -1
- package/dist/calendar-BF5drX5u.cjs +0 -12
- package/dist/calendar-BF5drX5u.cjs.map +0 -1
- package/dist/calendar-DgnhzEfp.js.map +0 -1
- package/dist/checkbox-BY2zxQVv.js.map +0 -1
- package/dist/checkbox-CL6u7vL6.cjs +0 -2
- package/dist/checkbox-CL6u7vL6.cjs.map +0 -1
- package/dist/chevron-down-BiUlxZA-.js +0 -14
- package/dist/chevron-down-BiUlxZA-.js.map +0 -1
- package/dist/chevron-down-Ce0kqXiD.cjs +0 -7
- package/dist/chevron-down-Ce0kqXiD.cjs.map +0 -1
- package/dist/chevron-up-C3RClqXD.cjs +0 -7
- package/dist/createLucideIcon-BC8wu-bu.js +0 -80
- package/dist/createLucideIcon-BC8wu-bu.js.map +0 -1
- package/dist/createLucideIcon-Cv8nC2E9.cjs +0 -22
- package/dist/createLucideIcon-Cv8nC2E9.cjs.map +0 -1
- package/dist/filter-tags-DoRzXjuY.cjs +0 -48
- package/dist/filter-tags-DoRzXjuY.cjs.map +0 -1
- package/dist/filter-tags-zEQmRhEU.js +0 -2712
- package/dist/filter-tags-zEQmRhEU.js.map +0 -1
- package/dist/full-calendar-5Z4JSj8g.js +0 -3551
- package/dist/full-calendar-5Z4JSj8g.js.map +0 -1
- package/dist/full-calendar-DjAvCfuE.cjs +0 -23
- package/dist/full-calendar-DjAvCfuE.cjs.map +0 -1
- package/dist/global-search-BbZfc-VL.js +0 -1216
- package/dist/global-search-BbZfc-VL.js.map +0 -1
- package/dist/global-search-Bd74_wPV.cjs +0 -22
- package/dist/global-search-Bd74_wPV.cjs.map +0 -1
- package/dist/index-D2U2F80P.cjs +0 -2
- package/dist/index-DG0KV-sw.cjs +0 -11
- package/dist/index-DG0KV-sw.cjs.map +0 -1
- package/dist/index-XnFSmCuh.js +0 -299
- package/dist/index-XnFSmCuh.js.map +0 -1
- package/dist/input-BgPy-4Qu.js +0 -3658
- package/dist/input-BgPy-4Qu.js.map +0 -1
- package/dist/input-Cfr2WB-P.cjs +0 -47
- package/dist/input-Cfr2WB-P.cjs.map +0 -1
- package/dist/locale-provider-BojNdf1Y.cjs +0 -2
- package/dist/locale-provider-BojNdf1Y.cjs.map +0 -1
- package/dist/locale-provider-DzBeb-X3.js +0 -1013
- package/dist/locale-provider-DzBeb-X3.js.map +0 -1
- package/dist/locale-selector-BD1IWk6X.cjs +0 -22
- package/dist/locale-selector-BD1IWk6X.cjs.map +0 -1
- package/dist/locale-selector-DLRSyVye.js +0 -1772
- package/dist/locale-selector-DLRSyVye.js.map +0 -1
- package/dist/minus-C0uyaz70.cjs +0 -7
- package/dist/multi-container-BZia7HCU.js +0 -748
- package/dist/multi-container-BZia7HCU.js.map +0 -1
- package/dist/multi-container-BdNbgtPZ.cjs +0 -7
- package/dist/multi-container-BdNbgtPZ.cjs.map +0 -1
- package/dist/pipeline-Dh052Dvj.cjs +0 -27
- package/dist/pipeline-Dh052Dvj.cjs.map +0 -1
- package/dist/pipeline-DqWvleNy.js +0 -1076
- package/dist/pipeline-DqWvleNy.js.map +0 -1
- package/dist/plus-BsV82JJ5.cjs +0 -7
- package/dist/popover-BgLxmm1z.cjs +0 -7
- package/dist/popover-BgLxmm1z.cjs.map +0 -1
- package/dist/popover-PI9jbhnS.js +0 -775
- package/dist/popover-PI9jbhnS.js.map +0 -1
- package/dist/progress-CTTt_CP3.js +0 -260
- package/dist/progress-CTTt_CP3.js.map +0 -1
- package/dist/progress-CTWb7X1Q.cjs +0 -37
- package/dist/progress-CTWb7X1Q.cjs.map +0 -1
- package/dist/scroll-area-A3jGu-Ta.js +0 -974
- package/dist/scroll-area-A3jGu-Ta.js.map +0 -1
- package/dist/scroll-area-DzDnWIYJ.cjs +0 -12
- package/dist/scroll-area-DzDnWIYJ.cjs.map +0 -1
- package/dist/select-BJpZrtep.js.map +0 -1
- package/dist/select-Ii8HRuXa.cjs +0 -2
- package/dist/select-Ii8HRuXa.cjs.map +0 -1
- package/dist/separator-BzcDE0Ei.cjs +0 -2
- package/dist/separator-BzcDE0Ei.cjs.map +0 -1
- package/dist/separator-DyarVo1-.js +0 -396
- package/dist/separator-DyarVo1-.js.map +0 -1
- package/dist/sheet-DPSdOoE6.js +0 -84
- package/dist/sheet-DPSdOoE6.js.map +0 -1
- package/dist/sheet-XtjvbEMq.cjs +0 -2
- package/dist/sheet-XtjvbEMq.cjs.map +0 -1
- package/dist/sparkline-chart-CeCDeMNk.cjs +0 -102
- package/dist/sparkline-chart-CeCDeMNk.cjs.map +0 -1
- package/dist/sparkline-chart-DUS4CoW_.js +0 -19787
- package/dist/sparkline-chart-DUS4CoW_.js.map +0 -1
- package/dist/use-formatters-CObUgipW.cjs +0 -2
- package/dist/welcome-card-CNuEa6Ck.cjs +0 -67
- package/dist/welcome-card-CNuEa6Ck.cjs.map +0 -1
- package/dist/welcome-card-Cp6t6G3j.js +0 -1041
- package/dist/welcome-card-Cp6t6G3j.js.map +0 -1
|
@@ -0,0 +1,2631 @@
|
|
|
1
|
+
import { jsx as e, Fragment as se, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { c as Ce, b as Ye, B as j } from "./button-BP_ug5gP.js";
|
|
4
|
+
import { c as y } from "./index-BGUveO6l.js";
|
|
5
|
+
import { u as kr } from "./locale-provider-BHGNO4j7.js";
|
|
6
|
+
import { D as Xe, a as Ge, b as qe, c as Je } from "./dropdown-menu-CkCCV_tw.js";
|
|
7
|
+
import { d as Ze, u as Qe, f as et, b as Ir, B as Fr, n as Or, P as Lr, I as Vr } from "./input-Pfq8fkiV.js";
|
|
8
|
+
import { c as De, T as ee, a as te, b as re } from "./tooltip-Dee-pNPI.js";
|
|
9
|
+
import { B as le, C as $r } from "./badge-D0C_rP2l.js";
|
|
10
|
+
import { R as Br, C as Hr, d as Kr } from "./accordion-BwnJKrKm.js";
|
|
11
|
+
import { c as tt, d as U, b as Re, e as F, P as z, u as jr, k as rt, f as zr, j as ce, l as Wr, h as Ur } from "./scroll-area-CGNbDUBQ.js";
|
|
12
|
+
import { u as Yr, S as Xr, c as Gr, b as qr, d as Jr, f as ne } from "./select-Ce2C2acZ.js";
|
|
13
|
+
import { u as Zr } from "./use-toast-DG2qdYhl.js";
|
|
14
|
+
import * as Qr from "react-dom";
|
|
15
|
+
import { a as st } from "./index-D8-pHJim.js";
|
|
16
|
+
import { X as es } from "./x-BBkgEhUv.js";
|
|
17
|
+
import { m as at, R as ts, P as rs, T as ss, O as as, W as os, C as ns, k as is, l as ls, j as ot } from "./dialog-BFBDL8_i.js";
|
|
18
|
+
import { L as cs } from "./label-CExiitfO.js";
|
|
19
|
+
import { C as ds, F as He, M as us } from "./map-pin-CHh0xl6i.js";
|
|
20
|
+
import { I as Ke, C as ms, T as fs } from "./progress-BPpsmZ48.js";
|
|
21
|
+
import { A as nt, a as it, b as lt } from "./avatar-BlEcWE7T.js";
|
|
22
|
+
import { C as ct } from "./chevron-left-DD5mQuvf.js";
|
|
23
|
+
import { C as dt } from "./chevron-right-Di90aqSn.js";
|
|
24
|
+
import { i as Y, a as Ae, b as ut, s as Pe, e as Me, c as _e, d as ue, f as mt, g as ps } from "./calendar-86qoSnO7.js";
|
|
25
|
+
import { c as hs, t as W, n as gs, a as me, f as K, u as Z, s as ke, p as ft } from "./use-formatters-xeMS4gdV.js";
|
|
26
|
+
import { C as vs, a as bs, c as ws, d as ys, e as xs } from "./card-yxbWFvZ1.js";
|
|
27
|
+
import { S as ve } from "./sheet-Cyq_eDFW.js";
|
|
28
|
+
import { L as je } from "./loader-circle-CBVYGIRp.js";
|
|
29
|
+
import { F as Ns } from "./file-spreadsheet-EqZMR-mM.js";
|
|
30
|
+
import { S } from "./skeleton-C_dwS3_6.js";
|
|
31
|
+
import { P as Ts, a as Ss, b as Es } from "./popover-CZWAuYUL.js";
|
|
32
|
+
import { C as Cs } from "./clock-BjJE8PGr.js";
|
|
33
|
+
/**
|
|
34
|
+
* @license lucide-react v0.441.0 - ISC
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the ISC license.
|
|
37
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/
|
|
39
|
+
const ze = tt("Download", [
|
|
40
|
+
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
41
|
+
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
42
|
+
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
43
|
+
]);
|
|
44
|
+
/**
|
|
45
|
+
* @license lucide-react v0.441.0 - ISC
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the ISC license.
|
|
48
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/
|
|
50
|
+
const Ds = tt("FileJson", [
|
|
51
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
52
|
+
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
53
|
+
[
|
|
54
|
+
"path",
|
|
55
|
+
{ d: "M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1", key: "1oajmo" }
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
"path",
|
|
59
|
+
{ d: "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1", key: "mpwhp6" }
|
|
60
|
+
]
|
|
61
|
+
]), Rs = Ce(
|
|
62
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
63
|
+
{
|
|
64
|
+
variants: {
|
|
65
|
+
variant: {
|
|
66
|
+
default: "bg-background text-foreground",
|
|
67
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
|
|
68
|
+
success: "border-success/50 text-success dark:border-success [&>svg]:text-success bg-success/10",
|
|
69
|
+
warning: "border-warning/50 text-warning dark:border-warning [&>svg]:text-warning bg-warning/10",
|
|
70
|
+
info: "border-info/50 text-info dark:border-info [&>svg]:text-info bg-info/10"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
variant: "default"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
), As = d.forwardRef(({ className: t, variant: s, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, role: "alert", className: y(Rs({ variant: s }), t), ...r }));
|
|
78
|
+
As.displayName = "Alert";
|
|
79
|
+
const Ps = d.forwardRef(
|
|
80
|
+
({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
81
|
+
"h5",
|
|
82
|
+
{
|
|
83
|
+
ref: r,
|
|
84
|
+
className: y("mb-1 font-medium leading-none tracking-tight", t),
|
|
85
|
+
...s
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
);
|
|
89
|
+
Ps.displayName = "AlertTitle";
|
|
90
|
+
const Ms = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e("div", { ref: r, className: y("text-sm [&_p]:leading-relaxed", t), ...s }));
|
|
91
|
+
Ms.displayName = "AlertDescription";
|
|
92
|
+
var _s = Symbol("radix.slottable");
|
|
93
|
+
// @__NO_SIDE_EFFECTS__
|
|
94
|
+
function ks(t) {
|
|
95
|
+
const s = ({ children: r }) => /* @__PURE__ */ e(se, { children: r });
|
|
96
|
+
return s.displayName = `${t}.Slottable`, s.__radixId = _s, s;
|
|
97
|
+
}
|
|
98
|
+
var pt = "AlertDialog", [Is] = Re(pt, [
|
|
99
|
+
at
|
|
100
|
+
]), X = at(), ht = (t) => {
|
|
101
|
+
const { __scopeAlertDialog: s, ...r } = t, a = X(s);
|
|
102
|
+
return /* @__PURE__ */ e(ts, { ...a, ...r, modal: !0 });
|
|
103
|
+
};
|
|
104
|
+
ht.displayName = pt;
|
|
105
|
+
var Fs = "AlertDialogTrigger", gt = d.forwardRef(
|
|
106
|
+
(t, s) => {
|
|
107
|
+
const { __scopeAlertDialog: r, ...a } = t, o = X(r);
|
|
108
|
+
return /* @__PURE__ */ e(ss, { ...o, ...a, ref: s });
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
gt.displayName = Fs;
|
|
112
|
+
var Os = "AlertDialogPortal", vt = (t) => {
|
|
113
|
+
const { __scopeAlertDialog: s, ...r } = t, a = X(s);
|
|
114
|
+
return /* @__PURE__ */ e(rs, { ...a, ...r });
|
|
115
|
+
};
|
|
116
|
+
vt.displayName = Os;
|
|
117
|
+
var Ls = "AlertDialogOverlay", bt = d.forwardRef(
|
|
118
|
+
(t, s) => {
|
|
119
|
+
const { __scopeAlertDialog: r, ...a } = t, o = X(r);
|
|
120
|
+
return /* @__PURE__ */ e(as, { ...o, ...a, ref: s });
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
bt.displayName = Ls;
|
|
124
|
+
var q = "AlertDialogContent", [Vs, $s] = Is(q), Bs = /* @__PURE__ */ ks("AlertDialogContent"), wt = d.forwardRef(
|
|
125
|
+
(t, s) => {
|
|
126
|
+
const { __scopeAlertDialog: r, children: a, ...o } = t, c = X(r), n = d.useRef(null), m = U(s, n), l = d.useRef(null);
|
|
127
|
+
return /* @__PURE__ */ e(
|
|
128
|
+
os,
|
|
129
|
+
{
|
|
130
|
+
contentName: q,
|
|
131
|
+
titleName: yt,
|
|
132
|
+
docsSlug: "alert-dialog",
|
|
133
|
+
children: /* @__PURE__ */ e(Vs, { scope: r, cancelRef: l, children: /* @__PURE__ */ f(
|
|
134
|
+
ns,
|
|
135
|
+
{
|
|
136
|
+
role: "alertdialog",
|
|
137
|
+
...c,
|
|
138
|
+
...o,
|
|
139
|
+
ref: m,
|
|
140
|
+
onOpenAutoFocus: F(o.onOpenAutoFocus, (u) => {
|
|
141
|
+
var p;
|
|
142
|
+
u.preventDefault(), (p = l.current) == null || p.focus({ preventScroll: !0 });
|
|
143
|
+
}),
|
|
144
|
+
onPointerDownOutside: (u) => u.preventDefault(),
|
|
145
|
+
onInteractOutside: (u) => u.preventDefault(),
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ e(Bs, { children: a }),
|
|
148
|
+
/* @__PURE__ */ e(Ks, { contentRef: n })
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
) })
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
wt.displayName = q;
|
|
157
|
+
var yt = "AlertDialogTitle", xt = d.forwardRef(
|
|
158
|
+
(t, s) => {
|
|
159
|
+
const { __scopeAlertDialog: r, ...a } = t, o = X(r);
|
|
160
|
+
return /* @__PURE__ */ e(is, { ...o, ...a, ref: s });
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
xt.displayName = yt;
|
|
164
|
+
var Nt = "AlertDialogDescription", Tt = d.forwardRef((t, s) => {
|
|
165
|
+
const { __scopeAlertDialog: r, ...a } = t, o = X(r);
|
|
166
|
+
return /* @__PURE__ */ e(ls, { ...o, ...a, ref: s });
|
|
167
|
+
});
|
|
168
|
+
Tt.displayName = Nt;
|
|
169
|
+
var Hs = "AlertDialogAction", St = d.forwardRef(
|
|
170
|
+
(t, s) => {
|
|
171
|
+
const { __scopeAlertDialog: r, ...a } = t, o = X(r);
|
|
172
|
+
return /* @__PURE__ */ e(ot, { ...o, ...a, ref: s });
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
St.displayName = Hs;
|
|
176
|
+
var Et = "AlertDialogCancel", Ct = d.forwardRef(
|
|
177
|
+
(t, s) => {
|
|
178
|
+
const { __scopeAlertDialog: r, ...a } = t, { cancelRef: o } = $s(Et, r), c = X(r), n = U(s, o);
|
|
179
|
+
return /* @__PURE__ */ e(ot, { ...c, ...a, ref: n });
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
Ct.displayName = Et;
|
|
183
|
+
var Ks = ({ contentRef: t }) => {
|
|
184
|
+
const s = `\`${q}\` requires a description for the component to be accessible for screen reader users.
|
|
185
|
+
|
|
186
|
+
You can add a description to the \`${q}\` by passing a \`${Nt}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
187
|
+
|
|
188
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${q}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
189
|
+
|
|
190
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
191
|
+
return d.useEffect(() => {
|
|
192
|
+
var a;
|
|
193
|
+
document.getElementById(
|
|
194
|
+
(a = t.current) == null ? void 0 : a.getAttribute("aria-describedby")
|
|
195
|
+
) || console.warn(s);
|
|
196
|
+
}, [s, t]), null;
|
|
197
|
+
}, js = ht, zs = gt, Ws = vt, Dt = bt, Rt = wt, At = St, Pt = Ct, Mt = xt, _t = Tt;
|
|
198
|
+
const Us = js, Qo = zs, Ys = Ws, kt = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
199
|
+
Dt,
|
|
200
|
+
{
|
|
201
|
+
className: y(
|
|
202
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
203
|
+
t
|
|
204
|
+
),
|
|
205
|
+
...s,
|
|
206
|
+
ref: r
|
|
207
|
+
}
|
|
208
|
+
));
|
|
209
|
+
kt.displayName = Dt.displayName;
|
|
210
|
+
const It = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ f(Ys, { children: [
|
|
211
|
+
/* @__PURE__ */ e(kt, {}),
|
|
212
|
+
/* @__PURE__ */ e(
|
|
213
|
+
Rt,
|
|
214
|
+
{
|
|
215
|
+
ref: r,
|
|
216
|
+
className: y(
|
|
217
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
218
|
+
t
|
|
219
|
+
),
|
|
220
|
+
...s
|
|
221
|
+
}
|
|
222
|
+
)
|
|
223
|
+
] }));
|
|
224
|
+
It.displayName = Rt.displayName;
|
|
225
|
+
const Ft = ({ className: t, ...s }) => /* @__PURE__ */ e("div", { className: y("flex flex-col space-y-2 text-center sm:text-left", t), ...s });
|
|
226
|
+
Ft.displayName = "AlertDialogHeader";
|
|
227
|
+
const Ot = ({ className: t, ...s }) => /* @__PURE__ */ e(
|
|
228
|
+
"div",
|
|
229
|
+
{
|
|
230
|
+
className: y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", t),
|
|
231
|
+
...s
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
Ot.displayName = "AlertDialogFooter";
|
|
235
|
+
const Lt = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
236
|
+
Mt,
|
|
237
|
+
{
|
|
238
|
+
ref: r,
|
|
239
|
+
className: y("text-lg font-semibold", t),
|
|
240
|
+
...s
|
|
241
|
+
}
|
|
242
|
+
));
|
|
243
|
+
Lt.displayName = Mt.displayName;
|
|
244
|
+
const Vt = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
245
|
+
_t,
|
|
246
|
+
{
|
|
247
|
+
ref: r,
|
|
248
|
+
className: y("text-sm text-muted-foreground", t),
|
|
249
|
+
...s
|
|
250
|
+
}
|
|
251
|
+
));
|
|
252
|
+
Vt.displayName = _t.displayName;
|
|
253
|
+
const $t = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(At, { ref: r, className: y(Ye(), t), ...s }));
|
|
254
|
+
$t.displayName = At.displayName;
|
|
255
|
+
const Bt = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
256
|
+
Pt,
|
|
257
|
+
{
|
|
258
|
+
ref: r,
|
|
259
|
+
className: y(Ye({ variant: "outline" }), "mt-2 sm:mt-0", t),
|
|
260
|
+
...s
|
|
261
|
+
}
|
|
262
|
+
));
|
|
263
|
+
Bt.displayName = Pt.displayName;
|
|
264
|
+
const Xs = d.forwardRef(
|
|
265
|
+
({
|
|
266
|
+
className: t,
|
|
267
|
+
variant: s = "default",
|
|
268
|
+
size: r = "default",
|
|
269
|
+
children: a,
|
|
270
|
+
options: o,
|
|
271
|
+
onClick: c,
|
|
272
|
+
dropdownAlign: n = "end",
|
|
273
|
+
disabled: m,
|
|
274
|
+
...l
|
|
275
|
+
}, u) => {
|
|
276
|
+
const { t: p } = kr();
|
|
277
|
+
return /* @__PURE__ */ f("div", { className: "flex", children: [
|
|
278
|
+
/* @__PURE__ */ e(
|
|
279
|
+
j,
|
|
280
|
+
{
|
|
281
|
+
ref: u,
|
|
282
|
+
variant: s,
|
|
283
|
+
size: r,
|
|
284
|
+
className: y("rounded-r-none border-r-0", t),
|
|
285
|
+
onClick: c,
|
|
286
|
+
disabled: m,
|
|
287
|
+
...l,
|
|
288
|
+
children: a
|
|
289
|
+
}
|
|
290
|
+
),
|
|
291
|
+
/* @__PURE__ */ f(Xe, { children: [
|
|
292
|
+
/* @__PURE__ */ e(Ge, { asChild: !0, children: /* @__PURE__ */ f(
|
|
293
|
+
j,
|
|
294
|
+
{
|
|
295
|
+
variant: s,
|
|
296
|
+
size: r,
|
|
297
|
+
className: "rounded-l-none px-2",
|
|
298
|
+
disabled: m,
|
|
299
|
+
children: [
|
|
300
|
+
/* @__PURE__ */ e(Ze, { className: "h-4 w-4" }),
|
|
301
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: p("common.moreOptions") })
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
) }),
|
|
305
|
+
/* @__PURE__ */ e(qe, { align: n, children: o.map((i, g) => /* @__PURE__ */ f(
|
|
306
|
+
Je,
|
|
307
|
+
{
|
|
308
|
+
onClick: i.onClick,
|
|
309
|
+
disabled: i.disabled,
|
|
310
|
+
className: "flex items-center gap-2",
|
|
311
|
+
children: [
|
|
312
|
+
i.icon && /* @__PURE__ */ e("span", { className: "h-4 w-4", children: i.icon }),
|
|
313
|
+
i.label
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
g
|
|
317
|
+
)) })
|
|
318
|
+
] })
|
|
319
|
+
] });
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
Xs.displayName = "SplitButton";
|
|
323
|
+
const Gs = Ce(
|
|
324
|
+
"inline-flex items-center justify-center rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50",
|
|
325
|
+
{
|
|
326
|
+
variants: {
|
|
327
|
+
variant: {
|
|
328
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
329
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
330
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
331
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
332
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
333
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
334
|
+
},
|
|
335
|
+
size: {
|
|
336
|
+
default: "h-10 w-10",
|
|
337
|
+
sm: "h-8 w-8",
|
|
338
|
+
lg: "h-12 w-12",
|
|
339
|
+
xl: "h-14 w-14"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
defaultVariants: {
|
|
343
|
+
variant: "default",
|
|
344
|
+
size: "default"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
), qs = d.forwardRef(
|
|
348
|
+
({
|
|
349
|
+
className: t,
|
|
350
|
+
variant: s,
|
|
351
|
+
size: r,
|
|
352
|
+
icon: a,
|
|
353
|
+
tooltip: o,
|
|
354
|
+
tooltipSide: c = "top",
|
|
355
|
+
loading: n = !1,
|
|
356
|
+
disabled: m,
|
|
357
|
+
...l
|
|
358
|
+
}, u) => {
|
|
359
|
+
const p = /* @__PURE__ */ e(
|
|
360
|
+
"button",
|
|
361
|
+
{
|
|
362
|
+
ref: u,
|
|
363
|
+
className: y(Gs({ variant: s, size: r }), t),
|
|
364
|
+
disabled: m || n,
|
|
365
|
+
...l,
|
|
366
|
+
children: n ? /* @__PURE__ */ f(
|
|
367
|
+
"svg",
|
|
368
|
+
{
|
|
369
|
+
className: "h-4 w-4 animate-spin",
|
|
370
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
371
|
+
fill: "none",
|
|
372
|
+
viewBox: "0 0 24 24",
|
|
373
|
+
children: [
|
|
374
|
+
/* @__PURE__ */ e(
|
|
375
|
+
"circle",
|
|
376
|
+
{
|
|
377
|
+
className: "opacity-25",
|
|
378
|
+
cx: "12",
|
|
379
|
+
cy: "12",
|
|
380
|
+
r: "10",
|
|
381
|
+
stroke: "currentColor",
|
|
382
|
+
strokeWidth: "4"
|
|
383
|
+
}
|
|
384
|
+
),
|
|
385
|
+
/* @__PURE__ */ e(
|
|
386
|
+
"path",
|
|
387
|
+
{
|
|
388
|
+
className: "opacity-75",
|
|
389
|
+
fill: "currentColor",
|
|
390
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
) : a
|
|
396
|
+
}
|
|
397
|
+
);
|
|
398
|
+
return o ? /* @__PURE__ */ e(De, { children: /* @__PURE__ */ f(ee, { children: [
|
|
399
|
+
/* @__PURE__ */ e(te, { asChild: !0, children: p }),
|
|
400
|
+
/* @__PURE__ */ e(re, { side: c, children: /* @__PURE__ */ e("p", { children: o }) })
|
|
401
|
+
] }) }) : p;
|
|
402
|
+
}
|
|
403
|
+
);
|
|
404
|
+
qs.displayName = "IconButton";
|
|
405
|
+
const Js = d.forwardRef(
|
|
406
|
+
({
|
|
407
|
+
className: t,
|
|
408
|
+
children: s,
|
|
409
|
+
badge: r,
|
|
410
|
+
badgeVariant: a = "destructive",
|
|
411
|
+
badgePosition: o = "top-right",
|
|
412
|
+
showBadge: c = !0,
|
|
413
|
+
...n
|
|
414
|
+
}, m) => {
|
|
415
|
+
const l = c && r !== void 0 && r !== null && r !== "";
|
|
416
|
+
if (o === "inline")
|
|
417
|
+
return /* @__PURE__ */ f(j, { ref: m, className: y("gap-2", t), ...n, children: [
|
|
418
|
+
s,
|
|
419
|
+
l && /* @__PURE__ */ e(le, { variant: a, className: "ml-1 h-5 min-w-5 rounded-full px-1.5", children: r })
|
|
420
|
+
] });
|
|
421
|
+
const u = {
|
|
422
|
+
"top-right": "-right-1 -top-1",
|
|
423
|
+
"top-left": "-left-1 -top-1",
|
|
424
|
+
"bottom-right": "-bottom-1 -right-1",
|
|
425
|
+
"bottom-left": "-bottom-1 -left-1"
|
|
426
|
+
};
|
|
427
|
+
return /* @__PURE__ */ f("div", { className: "relative inline-flex", children: [
|
|
428
|
+
/* @__PURE__ */ e(j, { ref: m, className: t, ...n, children: s }),
|
|
429
|
+
l && /* @__PURE__ */ e(
|
|
430
|
+
le,
|
|
431
|
+
{
|
|
432
|
+
variant: a,
|
|
433
|
+
className: y(
|
|
434
|
+
"absolute flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-xs",
|
|
435
|
+
u[o]
|
|
436
|
+
),
|
|
437
|
+
children: typeof r == "number" && r > 99 ? "99+" : r
|
|
438
|
+
}
|
|
439
|
+
)
|
|
440
|
+
] });
|
|
441
|
+
}
|
|
442
|
+
);
|
|
443
|
+
Js.displayName = "ButtonWithBadge";
|
|
444
|
+
const en = Br, tn = Hr, rn = Kr;
|
|
445
|
+
var Ht = ["PageUp", "PageDown"], Kt = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], jt = {
|
|
446
|
+
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
447
|
+
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
448
|
+
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
449
|
+
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
450
|
+
}, Q = "Slider", [ye, Zs, Qs] = et(Q), [zt] = Re(Q, [
|
|
451
|
+
Qs
|
|
452
|
+
]), [ea, fe] = zt(Q), Wt = d.forwardRef(
|
|
453
|
+
(t, s) => {
|
|
454
|
+
const {
|
|
455
|
+
name: r,
|
|
456
|
+
min: a = 0,
|
|
457
|
+
max: o = 100,
|
|
458
|
+
step: c = 1,
|
|
459
|
+
orientation: n = "horizontal",
|
|
460
|
+
disabled: m = !1,
|
|
461
|
+
minStepsBetweenThumbs: l = 0,
|
|
462
|
+
defaultValue: u = [a],
|
|
463
|
+
value: p,
|
|
464
|
+
onValueChange: i = () => {
|
|
465
|
+
},
|
|
466
|
+
onValueCommit: g = () => {
|
|
467
|
+
},
|
|
468
|
+
inverted: v = !1,
|
|
469
|
+
form: b,
|
|
470
|
+
...h
|
|
471
|
+
} = t, w = d.useRef(/* @__PURE__ */ new Set()), x = d.useRef(0), N = n === "horizontal" ? ta : ra, [T = [], D] = Qe({
|
|
472
|
+
prop: p,
|
|
473
|
+
defaultProp: u,
|
|
474
|
+
onChange: (A) => {
|
|
475
|
+
var V;
|
|
476
|
+
(V = [...w.current][x.current]) == null || V.focus(), i(A);
|
|
477
|
+
}
|
|
478
|
+
}), M = d.useRef(T);
|
|
479
|
+
function R(A) {
|
|
480
|
+
const k = ia(T, A);
|
|
481
|
+
P(A, k);
|
|
482
|
+
}
|
|
483
|
+
function L(A) {
|
|
484
|
+
P(A, x.current);
|
|
485
|
+
}
|
|
486
|
+
function _() {
|
|
487
|
+
const A = M.current[x.current];
|
|
488
|
+
T[x.current] !== A && g(T);
|
|
489
|
+
}
|
|
490
|
+
function P(A, k, { commit: V } = { commit: !1 }) {
|
|
491
|
+
const C = ua(c), O = ma(Math.round((A - a) / c) * c + a, C), $ = rt(O, [a, o]);
|
|
492
|
+
D((H = []) => {
|
|
493
|
+
const B = oa(H, $, k);
|
|
494
|
+
if (da(B, l * c)) {
|
|
495
|
+
x.current = B.indexOf($);
|
|
496
|
+
const G = String(B) !== String(H);
|
|
497
|
+
return G && V && g(B), G ? B : H;
|
|
498
|
+
} else
|
|
499
|
+
return H;
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
return /* @__PURE__ */ e(
|
|
503
|
+
ea,
|
|
504
|
+
{
|
|
505
|
+
scope: t.__scopeSlider,
|
|
506
|
+
name: r,
|
|
507
|
+
disabled: m,
|
|
508
|
+
min: a,
|
|
509
|
+
max: o,
|
|
510
|
+
valueIndexToChangeRef: x,
|
|
511
|
+
thumbs: w.current,
|
|
512
|
+
values: T,
|
|
513
|
+
orientation: n,
|
|
514
|
+
form: b,
|
|
515
|
+
children: /* @__PURE__ */ e(ye.Provider, { scope: t.__scopeSlider, children: /* @__PURE__ */ e(ye.Slot, { scope: t.__scopeSlider, children: /* @__PURE__ */ e(
|
|
516
|
+
N,
|
|
517
|
+
{
|
|
518
|
+
"aria-disabled": m,
|
|
519
|
+
"data-disabled": m ? "" : void 0,
|
|
520
|
+
...h,
|
|
521
|
+
ref: s,
|
|
522
|
+
onPointerDown: F(h.onPointerDown, () => {
|
|
523
|
+
m || (M.current = T);
|
|
524
|
+
}),
|
|
525
|
+
min: a,
|
|
526
|
+
max: o,
|
|
527
|
+
inverted: v,
|
|
528
|
+
onSlideStart: m ? void 0 : R,
|
|
529
|
+
onSlideMove: m ? void 0 : L,
|
|
530
|
+
onSlideEnd: m ? void 0 : _,
|
|
531
|
+
onHomeKeyDown: () => !m && P(a, 0, { commit: !0 }),
|
|
532
|
+
onEndKeyDown: () => !m && P(o, T.length - 1, { commit: !0 }),
|
|
533
|
+
onStepKeyDown: ({ event: A, direction: k }) => {
|
|
534
|
+
if (!m) {
|
|
535
|
+
const O = Ht.includes(A.key) || A.shiftKey && Kt.includes(A.key) ? 10 : 1, $ = x.current, H = T[$], B = c * O * k;
|
|
536
|
+
P(H + B, $, { commit: !0 });
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
) }) })
|
|
541
|
+
}
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
);
|
|
545
|
+
Wt.displayName = Q;
|
|
546
|
+
var [Ut, Yt] = zt(Q, {
|
|
547
|
+
startEdge: "left",
|
|
548
|
+
endEdge: "right",
|
|
549
|
+
size: "width",
|
|
550
|
+
direction: 1
|
|
551
|
+
}), ta = d.forwardRef(
|
|
552
|
+
(t, s) => {
|
|
553
|
+
const {
|
|
554
|
+
min: r,
|
|
555
|
+
max: a,
|
|
556
|
+
dir: o,
|
|
557
|
+
inverted: c,
|
|
558
|
+
onSlideStart: n,
|
|
559
|
+
onSlideMove: m,
|
|
560
|
+
onSlideEnd: l,
|
|
561
|
+
onStepKeyDown: u,
|
|
562
|
+
...p
|
|
563
|
+
} = t, [i, g] = d.useState(null), v = U(s, (N) => g(N)), b = d.useRef(void 0), h = jr(o), w = h === "ltr", x = w && !c || !w && c;
|
|
564
|
+
function E(N) {
|
|
565
|
+
const T = b.current || i.getBoundingClientRect(), D = [0, T.width], R = Ie(D, x ? [r, a] : [a, r]);
|
|
566
|
+
return b.current = T, R(N - T.left);
|
|
567
|
+
}
|
|
568
|
+
return /* @__PURE__ */ e(
|
|
569
|
+
Ut,
|
|
570
|
+
{
|
|
571
|
+
scope: t.__scopeSlider,
|
|
572
|
+
startEdge: x ? "left" : "right",
|
|
573
|
+
endEdge: x ? "right" : "left",
|
|
574
|
+
direction: x ? 1 : -1,
|
|
575
|
+
size: "width",
|
|
576
|
+
children: /* @__PURE__ */ e(
|
|
577
|
+
Xt,
|
|
578
|
+
{
|
|
579
|
+
dir: h,
|
|
580
|
+
"data-orientation": "horizontal",
|
|
581
|
+
...p,
|
|
582
|
+
ref: v,
|
|
583
|
+
style: {
|
|
584
|
+
...p.style,
|
|
585
|
+
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
586
|
+
},
|
|
587
|
+
onSlideStart: (N) => {
|
|
588
|
+
const T = E(N.clientX);
|
|
589
|
+
n == null || n(T);
|
|
590
|
+
},
|
|
591
|
+
onSlideMove: (N) => {
|
|
592
|
+
const T = E(N.clientX);
|
|
593
|
+
m == null || m(T);
|
|
594
|
+
},
|
|
595
|
+
onSlideEnd: () => {
|
|
596
|
+
b.current = void 0, l == null || l();
|
|
597
|
+
},
|
|
598
|
+
onStepKeyDown: (N) => {
|
|
599
|
+
const D = jt[x ? "from-left" : "from-right"].includes(N.key);
|
|
600
|
+
u == null || u({ event: N, direction: D ? -1 : 1 });
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
)
|
|
604
|
+
}
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
), ra = d.forwardRef(
|
|
608
|
+
(t, s) => {
|
|
609
|
+
const {
|
|
610
|
+
min: r,
|
|
611
|
+
max: a,
|
|
612
|
+
inverted: o,
|
|
613
|
+
onSlideStart: c,
|
|
614
|
+
onSlideMove: n,
|
|
615
|
+
onSlideEnd: m,
|
|
616
|
+
onStepKeyDown: l,
|
|
617
|
+
...u
|
|
618
|
+
} = t, p = d.useRef(null), i = U(s, p), g = d.useRef(void 0), v = !o;
|
|
619
|
+
function b(h) {
|
|
620
|
+
const w = g.current || p.current.getBoundingClientRect(), x = [0, w.height], N = Ie(x, v ? [a, r] : [r, a]);
|
|
621
|
+
return g.current = w, N(h - w.top);
|
|
622
|
+
}
|
|
623
|
+
return /* @__PURE__ */ e(
|
|
624
|
+
Ut,
|
|
625
|
+
{
|
|
626
|
+
scope: t.__scopeSlider,
|
|
627
|
+
startEdge: v ? "bottom" : "top",
|
|
628
|
+
endEdge: v ? "top" : "bottom",
|
|
629
|
+
size: "height",
|
|
630
|
+
direction: v ? 1 : -1,
|
|
631
|
+
children: /* @__PURE__ */ e(
|
|
632
|
+
Xt,
|
|
633
|
+
{
|
|
634
|
+
"data-orientation": "vertical",
|
|
635
|
+
...u,
|
|
636
|
+
ref: i,
|
|
637
|
+
style: {
|
|
638
|
+
...u.style,
|
|
639
|
+
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
640
|
+
},
|
|
641
|
+
onSlideStart: (h) => {
|
|
642
|
+
const w = b(h.clientY);
|
|
643
|
+
c == null || c(w);
|
|
644
|
+
},
|
|
645
|
+
onSlideMove: (h) => {
|
|
646
|
+
const w = b(h.clientY);
|
|
647
|
+
n == null || n(w);
|
|
648
|
+
},
|
|
649
|
+
onSlideEnd: () => {
|
|
650
|
+
g.current = void 0, m == null || m();
|
|
651
|
+
},
|
|
652
|
+
onStepKeyDown: (h) => {
|
|
653
|
+
const x = jt[v ? "from-bottom" : "from-top"].includes(h.key);
|
|
654
|
+
l == null || l({ event: h, direction: x ? -1 : 1 });
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
)
|
|
658
|
+
}
|
|
659
|
+
);
|
|
660
|
+
}
|
|
661
|
+
), Xt = d.forwardRef(
|
|
662
|
+
(t, s) => {
|
|
663
|
+
const {
|
|
664
|
+
__scopeSlider: r,
|
|
665
|
+
onSlideStart: a,
|
|
666
|
+
onSlideMove: o,
|
|
667
|
+
onSlideEnd: c,
|
|
668
|
+
onHomeKeyDown: n,
|
|
669
|
+
onEndKeyDown: m,
|
|
670
|
+
onStepKeyDown: l,
|
|
671
|
+
...u
|
|
672
|
+
} = t, p = fe(Q, r);
|
|
673
|
+
return /* @__PURE__ */ e(
|
|
674
|
+
z.span,
|
|
675
|
+
{
|
|
676
|
+
...u,
|
|
677
|
+
ref: s,
|
|
678
|
+
onKeyDown: F(t.onKeyDown, (i) => {
|
|
679
|
+
i.key === "Home" ? (n(i), i.preventDefault()) : i.key === "End" ? (m(i), i.preventDefault()) : Ht.concat(Kt).includes(i.key) && (l(i), i.preventDefault());
|
|
680
|
+
}),
|
|
681
|
+
onPointerDown: F(t.onPointerDown, (i) => {
|
|
682
|
+
const g = i.target;
|
|
683
|
+
g.setPointerCapture(i.pointerId), i.preventDefault(), p.thumbs.has(g) ? g.focus() : a(i);
|
|
684
|
+
}),
|
|
685
|
+
onPointerMove: F(t.onPointerMove, (i) => {
|
|
686
|
+
i.target.hasPointerCapture(i.pointerId) && o(i);
|
|
687
|
+
}),
|
|
688
|
+
onPointerUp: F(t.onPointerUp, (i) => {
|
|
689
|
+
const g = i.target;
|
|
690
|
+
g.hasPointerCapture(i.pointerId) && (g.releasePointerCapture(i.pointerId), c(i));
|
|
691
|
+
})
|
|
692
|
+
}
|
|
693
|
+
);
|
|
694
|
+
}
|
|
695
|
+
), Gt = "SliderTrack", qt = d.forwardRef(
|
|
696
|
+
(t, s) => {
|
|
697
|
+
const { __scopeSlider: r, ...a } = t, o = fe(Gt, r);
|
|
698
|
+
return /* @__PURE__ */ e(
|
|
699
|
+
z.span,
|
|
700
|
+
{
|
|
701
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
702
|
+
"data-orientation": o.orientation,
|
|
703
|
+
...a,
|
|
704
|
+
ref: s
|
|
705
|
+
}
|
|
706
|
+
);
|
|
707
|
+
}
|
|
708
|
+
);
|
|
709
|
+
qt.displayName = Gt;
|
|
710
|
+
var xe = "SliderRange", Jt = d.forwardRef(
|
|
711
|
+
(t, s) => {
|
|
712
|
+
const { __scopeSlider: r, ...a } = t, o = fe(xe, r), c = Yt(xe, r), n = d.useRef(null), m = U(s, n), l = o.values.length, u = o.values.map(
|
|
713
|
+
(g) => er(g, o.min, o.max)
|
|
714
|
+
), p = l > 1 ? Math.min(...u) : 0, i = 100 - Math.max(...u);
|
|
715
|
+
return /* @__PURE__ */ e(
|
|
716
|
+
z.span,
|
|
717
|
+
{
|
|
718
|
+
"data-orientation": o.orientation,
|
|
719
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
720
|
+
...a,
|
|
721
|
+
ref: m,
|
|
722
|
+
style: {
|
|
723
|
+
...t.style,
|
|
724
|
+
[c.startEdge]: p + "%",
|
|
725
|
+
[c.endEdge]: i + "%"
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
);
|
|
731
|
+
Jt.displayName = xe;
|
|
732
|
+
var Ne = "SliderThumb", Zt = d.forwardRef(
|
|
733
|
+
(t, s) => {
|
|
734
|
+
const r = Zs(t.__scopeSlider), [a, o] = d.useState(null), c = U(s, (m) => o(m)), n = d.useMemo(
|
|
735
|
+
() => a ? r().findIndex((m) => m.ref.current === a) : -1,
|
|
736
|
+
[r, a]
|
|
737
|
+
);
|
|
738
|
+
return /* @__PURE__ */ e(sa, { ...t, ref: c, index: n });
|
|
739
|
+
}
|
|
740
|
+
), sa = d.forwardRef(
|
|
741
|
+
(t, s) => {
|
|
742
|
+
const { __scopeSlider: r, index: a, name: o, ...c } = t, n = fe(Ne, r), m = Yt(Ne, r), [l, u] = d.useState(null), p = U(s, (E) => u(E)), i = l ? n.form || !!l.closest("form") : !0, g = Ir(l), v = n.values[a], b = v === void 0 ? 0 : er(v, n.min, n.max), h = na(a, n.values.length), w = g == null ? void 0 : g[m.size], x = w ? la(w, b, m.direction) : 0;
|
|
743
|
+
return d.useEffect(() => {
|
|
744
|
+
if (l)
|
|
745
|
+
return n.thumbs.add(l), () => {
|
|
746
|
+
n.thumbs.delete(l);
|
|
747
|
+
};
|
|
748
|
+
}, [l, n.thumbs]), /* @__PURE__ */ f(
|
|
749
|
+
"span",
|
|
750
|
+
{
|
|
751
|
+
style: {
|
|
752
|
+
transform: "var(--radix-slider-thumb-transform)",
|
|
753
|
+
position: "absolute",
|
|
754
|
+
[m.startEdge]: `calc(${b}% + ${x}px)`
|
|
755
|
+
},
|
|
756
|
+
children: [
|
|
757
|
+
/* @__PURE__ */ e(ye.ItemSlot, { scope: t.__scopeSlider, children: /* @__PURE__ */ e(
|
|
758
|
+
z.span,
|
|
759
|
+
{
|
|
760
|
+
role: "slider",
|
|
761
|
+
"aria-label": t["aria-label"] || h,
|
|
762
|
+
"aria-valuemin": n.min,
|
|
763
|
+
"aria-valuenow": v,
|
|
764
|
+
"aria-valuemax": n.max,
|
|
765
|
+
"aria-orientation": n.orientation,
|
|
766
|
+
"data-orientation": n.orientation,
|
|
767
|
+
"data-disabled": n.disabled ? "" : void 0,
|
|
768
|
+
tabIndex: n.disabled ? void 0 : 0,
|
|
769
|
+
...c,
|
|
770
|
+
ref: p,
|
|
771
|
+
style: v === void 0 ? { display: "none" } : t.style,
|
|
772
|
+
onFocus: F(t.onFocus, () => {
|
|
773
|
+
n.valueIndexToChangeRef.current = a;
|
|
774
|
+
})
|
|
775
|
+
}
|
|
776
|
+
) }),
|
|
777
|
+
i && /* @__PURE__ */ e(
|
|
778
|
+
Qt,
|
|
779
|
+
{
|
|
780
|
+
name: o ?? (n.name ? n.name + (n.values.length > 1 ? "[]" : "") : void 0),
|
|
781
|
+
form: n.form,
|
|
782
|
+
value: v
|
|
783
|
+
},
|
|
784
|
+
a
|
|
785
|
+
)
|
|
786
|
+
]
|
|
787
|
+
}
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
);
|
|
791
|
+
Zt.displayName = Ne;
|
|
792
|
+
var aa = "RadioBubbleInput", Qt = d.forwardRef(
|
|
793
|
+
({ __scopeSlider: t, value: s, ...r }, a) => {
|
|
794
|
+
const o = d.useRef(null), c = U(o, a), n = Yr(s);
|
|
795
|
+
return d.useEffect(() => {
|
|
796
|
+
const m = o.current;
|
|
797
|
+
if (!m) return;
|
|
798
|
+
const l = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
799
|
+
if (n !== s && p) {
|
|
800
|
+
const i = new Event("input", { bubbles: !0 });
|
|
801
|
+
p.call(m, s), m.dispatchEvent(i);
|
|
802
|
+
}
|
|
803
|
+
}, [n, s]), /* @__PURE__ */ e(
|
|
804
|
+
z.input,
|
|
805
|
+
{
|
|
806
|
+
style: { display: "none" },
|
|
807
|
+
...r,
|
|
808
|
+
ref: c,
|
|
809
|
+
defaultValue: s
|
|
810
|
+
}
|
|
811
|
+
);
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
Qt.displayName = aa;
|
|
815
|
+
function oa(t = [], s, r) {
|
|
816
|
+
const a = [...t];
|
|
817
|
+
return a[r] = s, a.sort((o, c) => o - c);
|
|
818
|
+
}
|
|
819
|
+
function er(t, s, r) {
|
|
820
|
+
const c = 100 / (r - s) * (t - s);
|
|
821
|
+
return rt(c, [0, 100]);
|
|
822
|
+
}
|
|
823
|
+
function na(t, s) {
|
|
824
|
+
return s > 2 ? `Value ${t + 1} of ${s}` : s === 2 ? ["Minimum", "Maximum"][t] : void 0;
|
|
825
|
+
}
|
|
826
|
+
function ia(t, s) {
|
|
827
|
+
if (t.length === 1) return 0;
|
|
828
|
+
const r = t.map((o) => Math.abs(o - s)), a = Math.min(...r);
|
|
829
|
+
return r.indexOf(a);
|
|
830
|
+
}
|
|
831
|
+
function la(t, s, r) {
|
|
832
|
+
const a = t / 2, c = Ie([0, 50], [0, a]);
|
|
833
|
+
return (a - c(s) * r) * r;
|
|
834
|
+
}
|
|
835
|
+
function ca(t) {
|
|
836
|
+
return t.slice(0, -1).map((s, r) => t[r + 1] - s);
|
|
837
|
+
}
|
|
838
|
+
function da(t, s) {
|
|
839
|
+
if (s > 0) {
|
|
840
|
+
const r = ca(t);
|
|
841
|
+
return Math.min(...r) >= s;
|
|
842
|
+
}
|
|
843
|
+
return !0;
|
|
844
|
+
}
|
|
845
|
+
function Ie(t, s) {
|
|
846
|
+
return (r) => {
|
|
847
|
+
if (t[0] === t[1] || s[0] === s[1]) return s[0];
|
|
848
|
+
const a = (s[1] - s[0]) / (t[1] - t[0]);
|
|
849
|
+
return s[0] + a * (r - t[0]);
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
function ua(t) {
|
|
853
|
+
return (String(t).split(".")[1] || "").length;
|
|
854
|
+
}
|
|
855
|
+
function ma(t, s) {
|
|
856
|
+
const r = Math.pow(10, s);
|
|
857
|
+
return Math.round(t * r) / r;
|
|
858
|
+
}
|
|
859
|
+
var tr = Wt, fa = qt, pa = Jt, ha = Zt;
|
|
860
|
+
const ga = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ f(
|
|
861
|
+
tr,
|
|
862
|
+
{
|
|
863
|
+
ref: r,
|
|
864
|
+
className: y("relative flex w-full touch-none select-none items-center", t),
|
|
865
|
+
...s,
|
|
866
|
+
children: [
|
|
867
|
+
/* @__PURE__ */ e(fa, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ e(pa, { className: "absolute h-full bg-primary" }) }),
|
|
868
|
+
/* @__PURE__ */ e(ha, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50" })
|
|
869
|
+
]
|
|
870
|
+
}
|
|
871
|
+
));
|
|
872
|
+
ga.displayName = tr.displayName;
|
|
873
|
+
var Fe = "ToastProvider", [Oe, va, ba] = et("Toast"), [rr] = Re("Toast", [ba]), [wa, pe] = rr(Fe), sr = (t) => {
|
|
874
|
+
const {
|
|
875
|
+
__scopeToast: s,
|
|
876
|
+
label: r = "Notification",
|
|
877
|
+
duration: a = 5e3,
|
|
878
|
+
swipeDirection: o = "right",
|
|
879
|
+
swipeThreshold: c = 50,
|
|
880
|
+
children: n
|
|
881
|
+
} = t, [m, l] = d.useState(null), [u, p] = d.useState(0), i = d.useRef(!1), g = d.useRef(!1);
|
|
882
|
+
return r.trim() || console.error(
|
|
883
|
+
`Invalid prop \`label\` supplied to \`${Fe}\`. Expected non-empty \`string\`.`
|
|
884
|
+
), /* @__PURE__ */ e(Oe.Provider, { scope: s, children: /* @__PURE__ */ e(
|
|
885
|
+
wa,
|
|
886
|
+
{
|
|
887
|
+
scope: s,
|
|
888
|
+
label: r,
|
|
889
|
+
duration: a,
|
|
890
|
+
swipeDirection: o,
|
|
891
|
+
swipeThreshold: c,
|
|
892
|
+
toastCount: u,
|
|
893
|
+
viewport: m,
|
|
894
|
+
onViewportChange: l,
|
|
895
|
+
onToastAdd: d.useCallback(() => p((v) => v + 1), []),
|
|
896
|
+
onToastRemove: d.useCallback(() => p((v) => v - 1), []),
|
|
897
|
+
isFocusedToastEscapeKeyDownRef: i,
|
|
898
|
+
isClosePausedRef: g,
|
|
899
|
+
children: n
|
|
900
|
+
}
|
|
901
|
+
) });
|
|
902
|
+
};
|
|
903
|
+
sr.displayName = Fe;
|
|
904
|
+
var ar = "ToastViewport", ya = ["F8"], Te = "toast.viewportPause", Se = "toast.viewportResume", or = d.forwardRef(
|
|
905
|
+
(t, s) => {
|
|
906
|
+
const {
|
|
907
|
+
__scopeToast: r,
|
|
908
|
+
hotkey: a = ya,
|
|
909
|
+
label: o = "Notifications ({hotkey})",
|
|
910
|
+
...c
|
|
911
|
+
} = t, n = pe(ar, r), m = va(r), l = d.useRef(null), u = d.useRef(null), p = d.useRef(null), i = d.useRef(null), g = U(s, i, n.onViewportChange), v = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), b = n.toastCount > 0;
|
|
912
|
+
d.useEffect(() => {
|
|
913
|
+
const w = (x) => {
|
|
914
|
+
var N;
|
|
915
|
+
a.length !== 0 && a.every((T) => x[T] || x.code === T) && ((N = i.current) == null || N.focus());
|
|
916
|
+
};
|
|
917
|
+
return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
|
|
918
|
+
}, [a]), d.useEffect(() => {
|
|
919
|
+
const w = l.current, x = i.current;
|
|
920
|
+
if (b && w && x) {
|
|
921
|
+
const E = () => {
|
|
922
|
+
if (!n.isClosePausedRef.current) {
|
|
923
|
+
const M = new CustomEvent(Te);
|
|
924
|
+
x.dispatchEvent(M), n.isClosePausedRef.current = !0;
|
|
925
|
+
}
|
|
926
|
+
}, N = () => {
|
|
927
|
+
if (n.isClosePausedRef.current) {
|
|
928
|
+
const M = new CustomEvent(Se);
|
|
929
|
+
x.dispatchEvent(M), n.isClosePausedRef.current = !1;
|
|
930
|
+
}
|
|
931
|
+
}, T = (M) => {
|
|
932
|
+
!w.contains(M.relatedTarget) && N();
|
|
933
|
+
}, D = () => {
|
|
934
|
+
w.contains(document.activeElement) || N();
|
|
935
|
+
};
|
|
936
|
+
return w.addEventListener("focusin", E), w.addEventListener("focusout", T), w.addEventListener("pointermove", E), w.addEventListener("pointerleave", D), window.addEventListener("blur", E), window.addEventListener("focus", N), () => {
|
|
937
|
+
w.removeEventListener("focusin", E), w.removeEventListener("focusout", T), w.removeEventListener("pointermove", E), w.removeEventListener("pointerleave", D), window.removeEventListener("blur", E), window.removeEventListener("focus", N);
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
}, [b, n.isClosePausedRef]);
|
|
941
|
+
const h = d.useCallback(
|
|
942
|
+
({ tabbingDirection: w }) => {
|
|
943
|
+
const E = m().map((N) => {
|
|
944
|
+
const T = N.ref.current, D = [T, ...ka(T)];
|
|
945
|
+
return w === "forwards" ? D : D.reverse();
|
|
946
|
+
});
|
|
947
|
+
return (w === "forwards" ? E.reverse() : E).flat();
|
|
948
|
+
},
|
|
949
|
+
[m]
|
|
950
|
+
);
|
|
951
|
+
return d.useEffect(() => {
|
|
952
|
+
const w = i.current;
|
|
953
|
+
if (w) {
|
|
954
|
+
const x = (E) => {
|
|
955
|
+
var D, M, R;
|
|
956
|
+
const N = E.altKey || E.ctrlKey || E.metaKey;
|
|
957
|
+
if (E.key === "Tab" && !N) {
|
|
958
|
+
const L = document.activeElement, _ = E.shiftKey;
|
|
959
|
+
if (E.target === w && _) {
|
|
960
|
+
(D = u.current) == null || D.focus();
|
|
961
|
+
return;
|
|
962
|
+
}
|
|
963
|
+
const k = h({ tabbingDirection: _ ? "backwards" : "forwards" }), V = k.findIndex((C) => C === L);
|
|
964
|
+
be(k.slice(V + 1)) ? E.preventDefault() : _ ? (M = u.current) == null || M.focus() : (R = p.current) == null || R.focus();
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
return w.addEventListener("keydown", x), () => w.removeEventListener("keydown", x);
|
|
968
|
+
}
|
|
969
|
+
}, [m, h]), /* @__PURE__ */ f(
|
|
970
|
+
Fr,
|
|
971
|
+
{
|
|
972
|
+
ref: l,
|
|
973
|
+
role: "region",
|
|
974
|
+
"aria-label": o.replace("{hotkey}", v),
|
|
975
|
+
tabIndex: -1,
|
|
976
|
+
style: { pointerEvents: b ? void 0 : "none" },
|
|
977
|
+
children: [
|
|
978
|
+
b && /* @__PURE__ */ e(
|
|
979
|
+
Ee,
|
|
980
|
+
{
|
|
981
|
+
ref: u,
|
|
982
|
+
onFocusFromOutsideViewport: () => {
|
|
983
|
+
const w = h({
|
|
984
|
+
tabbingDirection: "forwards"
|
|
985
|
+
});
|
|
986
|
+
be(w);
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
),
|
|
990
|
+
/* @__PURE__ */ e(Oe.Slot, { scope: r, children: /* @__PURE__ */ e(z.ol, { tabIndex: -1, ...c, ref: g }) }),
|
|
991
|
+
b && /* @__PURE__ */ e(
|
|
992
|
+
Ee,
|
|
993
|
+
{
|
|
994
|
+
ref: p,
|
|
995
|
+
onFocusFromOutsideViewport: () => {
|
|
996
|
+
const w = h({
|
|
997
|
+
tabbingDirection: "backwards"
|
|
998
|
+
});
|
|
999
|
+
be(w);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
)
|
|
1003
|
+
]
|
|
1004
|
+
}
|
|
1005
|
+
);
|
|
1006
|
+
}
|
|
1007
|
+
);
|
|
1008
|
+
or.displayName = ar;
|
|
1009
|
+
var nr = "ToastFocusProxy", Ee = d.forwardRef(
|
|
1010
|
+
(t, s) => {
|
|
1011
|
+
const { __scopeToast: r, onFocusFromOutsideViewport: a, ...o } = t, c = pe(nr, r);
|
|
1012
|
+
return /* @__PURE__ */ e(
|
|
1013
|
+
st,
|
|
1014
|
+
{
|
|
1015
|
+
tabIndex: 0,
|
|
1016
|
+
...o,
|
|
1017
|
+
ref: s,
|
|
1018
|
+
style: { position: "fixed" },
|
|
1019
|
+
onFocus: (n) => {
|
|
1020
|
+
var u;
|
|
1021
|
+
const m = n.relatedTarget;
|
|
1022
|
+
!((u = c.viewport) != null && u.contains(m)) && a();
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
);
|
|
1028
|
+
Ee.displayName = nr;
|
|
1029
|
+
var ae = "Toast", xa = "toast.swipeStart", Na = "toast.swipeMove", Ta = "toast.swipeCancel", Sa = "toast.swipeEnd", ir = d.forwardRef(
|
|
1030
|
+
(t, s) => {
|
|
1031
|
+
const { forceMount: r, open: a, defaultOpen: o, onOpenChange: c, ...n } = t, [m, l] = Qe({
|
|
1032
|
+
prop: a,
|
|
1033
|
+
defaultProp: o ?? !0,
|
|
1034
|
+
onChange: c,
|
|
1035
|
+
caller: ae
|
|
1036
|
+
});
|
|
1037
|
+
return /* @__PURE__ */ e(zr, { present: r || m, children: /* @__PURE__ */ e(
|
|
1038
|
+
Da,
|
|
1039
|
+
{
|
|
1040
|
+
open: m,
|
|
1041
|
+
...n,
|
|
1042
|
+
ref: s,
|
|
1043
|
+
onClose: () => l(!1),
|
|
1044
|
+
onPause: ce(t.onPause),
|
|
1045
|
+
onResume: ce(t.onResume),
|
|
1046
|
+
onSwipeStart: F(t.onSwipeStart, (u) => {
|
|
1047
|
+
u.currentTarget.setAttribute("data-swipe", "start");
|
|
1048
|
+
}),
|
|
1049
|
+
onSwipeMove: F(t.onSwipeMove, (u) => {
|
|
1050
|
+
const { x: p, y: i } = u.detail.delta;
|
|
1051
|
+
u.currentTarget.setAttribute("data-swipe", "move"), u.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${p}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${i}px`);
|
|
1052
|
+
}),
|
|
1053
|
+
onSwipeCancel: F(t.onSwipeCancel, (u) => {
|
|
1054
|
+
u.currentTarget.setAttribute("data-swipe", "cancel"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
1055
|
+
}),
|
|
1056
|
+
onSwipeEnd: F(t.onSwipeEnd, (u) => {
|
|
1057
|
+
const { x: p, y: i } = u.detail.delta;
|
|
1058
|
+
u.currentTarget.setAttribute("data-swipe", "end"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), u.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${p}px`), u.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${i}px`), l(!1);
|
|
1059
|
+
})
|
|
1060
|
+
}
|
|
1061
|
+
) });
|
|
1062
|
+
}
|
|
1063
|
+
);
|
|
1064
|
+
ir.displayName = ae;
|
|
1065
|
+
var [Ea, Ca] = rr(ae, {
|
|
1066
|
+
onClose() {
|
|
1067
|
+
}
|
|
1068
|
+
}), Da = d.forwardRef(
|
|
1069
|
+
(t, s) => {
|
|
1070
|
+
const {
|
|
1071
|
+
__scopeToast: r,
|
|
1072
|
+
type: a = "foreground",
|
|
1073
|
+
duration: o,
|
|
1074
|
+
open: c,
|
|
1075
|
+
onClose: n,
|
|
1076
|
+
onEscapeKeyDown: m,
|
|
1077
|
+
onPause: l,
|
|
1078
|
+
onResume: u,
|
|
1079
|
+
onSwipeStart: p,
|
|
1080
|
+
onSwipeMove: i,
|
|
1081
|
+
onSwipeCancel: g,
|
|
1082
|
+
onSwipeEnd: v,
|
|
1083
|
+
...b
|
|
1084
|
+
} = t, h = pe(ae, r), [w, x] = d.useState(null), E = U(s, (C) => x(C)), N = d.useRef(null), T = d.useRef(null), D = o || h.duration, M = d.useRef(0), R = d.useRef(D), L = d.useRef(0), { onToastAdd: _, onToastRemove: P } = h, A = ce(() => {
|
|
1085
|
+
var O;
|
|
1086
|
+
(w == null ? void 0 : w.contains(document.activeElement)) && ((O = h.viewport) == null || O.focus()), n();
|
|
1087
|
+
}), k = d.useCallback(
|
|
1088
|
+
(C) => {
|
|
1089
|
+
!C || C === 1 / 0 || (window.clearTimeout(L.current), M.current = (/* @__PURE__ */ new Date()).getTime(), L.current = window.setTimeout(A, C));
|
|
1090
|
+
},
|
|
1091
|
+
[A]
|
|
1092
|
+
);
|
|
1093
|
+
d.useEffect(() => {
|
|
1094
|
+
const C = h.viewport;
|
|
1095
|
+
if (C) {
|
|
1096
|
+
const O = () => {
|
|
1097
|
+
k(R.current), u == null || u();
|
|
1098
|
+
}, $ = () => {
|
|
1099
|
+
const H = (/* @__PURE__ */ new Date()).getTime() - M.current;
|
|
1100
|
+
R.current = R.current - H, window.clearTimeout(L.current), l == null || l();
|
|
1101
|
+
};
|
|
1102
|
+
return C.addEventListener(Te, $), C.addEventListener(Se, O), () => {
|
|
1103
|
+
C.removeEventListener(Te, $), C.removeEventListener(Se, O);
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
}, [h.viewport, D, l, u, k]), d.useEffect(() => {
|
|
1107
|
+
c && !h.isClosePausedRef.current && k(D);
|
|
1108
|
+
}, [c, D, h.isClosePausedRef, k]), d.useEffect(() => (_(), () => P()), [_, P]);
|
|
1109
|
+
const V = d.useMemo(() => w ? pr(w) : null, [w]);
|
|
1110
|
+
return h.viewport ? /* @__PURE__ */ f(se, { children: [
|
|
1111
|
+
V && /* @__PURE__ */ e(
|
|
1112
|
+
Ra,
|
|
1113
|
+
{
|
|
1114
|
+
__scopeToast: r,
|
|
1115
|
+
role: "status",
|
|
1116
|
+
"aria-live": a === "foreground" ? "assertive" : "polite",
|
|
1117
|
+
children: V
|
|
1118
|
+
}
|
|
1119
|
+
),
|
|
1120
|
+
/* @__PURE__ */ e(Ea, { scope: r, onClose: A, children: Qr.createPortal(
|
|
1121
|
+
/* @__PURE__ */ e(Oe.ItemSlot, { scope: r, children: /* @__PURE__ */ e(
|
|
1122
|
+
Or,
|
|
1123
|
+
{
|
|
1124
|
+
asChild: !0,
|
|
1125
|
+
onEscapeKeyDown: F(m, () => {
|
|
1126
|
+
h.isFocusedToastEscapeKeyDownRef.current || A(), h.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
1127
|
+
}),
|
|
1128
|
+
children: /* @__PURE__ */ e(
|
|
1129
|
+
z.li,
|
|
1130
|
+
{
|
|
1131
|
+
tabIndex: 0,
|
|
1132
|
+
"data-state": c ? "open" : "closed",
|
|
1133
|
+
"data-swipe-direction": h.swipeDirection,
|
|
1134
|
+
...b,
|
|
1135
|
+
ref: E,
|
|
1136
|
+
style: { userSelect: "none", touchAction: "none", ...t.style },
|
|
1137
|
+
onKeyDown: F(t.onKeyDown, (C) => {
|
|
1138
|
+
C.key === "Escape" && (m == null || m(C.nativeEvent), C.nativeEvent.defaultPrevented || (h.isFocusedToastEscapeKeyDownRef.current = !0, A()));
|
|
1139
|
+
}),
|
|
1140
|
+
onPointerDown: F(t.onPointerDown, (C) => {
|
|
1141
|
+
C.button === 0 && (N.current = { x: C.clientX, y: C.clientY });
|
|
1142
|
+
}),
|
|
1143
|
+
onPointerMove: F(t.onPointerMove, (C) => {
|
|
1144
|
+
if (!N.current) return;
|
|
1145
|
+
const O = C.clientX - N.current.x, $ = C.clientY - N.current.y, H = !!T.current, B = ["left", "right"].includes(h.swipeDirection), G = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, Mr = B ? G(0, O) : 0, _r = B ? 0 : G(0, $), ge = C.pointerType === "touch" ? 10 : 2, oe = { x: Mr, y: _r }, Be = { originalEvent: C, delta: oe };
|
|
1146
|
+
H ? (T.current = oe, ie(Na, i, Be, {
|
|
1147
|
+
discrete: !1
|
|
1148
|
+
})) : We(oe, h.swipeDirection, ge) ? (T.current = oe, ie(xa, p, Be, {
|
|
1149
|
+
discrete: !1
|
|
1150
|
+
}), C.target.setPointerCapture(C.pointerId)) : (Math.abs(O) > ge || Math.abs($) > ge) && (N.current = null);
|
|
1151
|
+
}),
|
|
1152
|
+
onPointerUp: F(t.onPointerUp, (C) => {
|
|
1153
|
+
const O = T.current, $ = C.target;
|
|
1154
|
+
if ($.hasPointerCapture(C.pointerId) && $.releasePointerCapture(C.pointerId), T.current = null, N.current = null, O) {
|
|
1155
|
+
const H = C.currentTarget, B = { originalEvent: C, delta: O };
|
|
1156
|
+
We(O, h.swipeDirection, h.swipeThreshold) ? ie(Sa, v, B, {
|
|
1157
|
+
discrete: !0
|
|
1158
|
+
}) : ie(
|
|
1159
|
+
Ta,
|
|
1160
|
+
g,
|
|
1161
|
+
B,
|
|
1162
|
+
{
|
|
1163
|
+
discrete: !0
|
|
1164
|
+
}
|
|
1165
|
+
), H.addEventListener("click", (G) => G.preventDefault(), {
|
|
1166
|
+
once: !0
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
})
|
|
1170
|
+
}
|
|
1171
|
+
)
|
|
1172
|
+
}
|
|
1173
|
+
) }),
|
|
1174
|
+
h.viewport
|
|
1175
|
+
) })
|
|
1176
|
+
] }) : null;
|
|
1177
|
+
}
|
|
1178
|
+
), Ra = (t) => {
|
|
1179
|
+
const { __scopeToast: s, children: r, ...a } = t, o = pe(ae, s), [c, n] = d.useState(!1), [m, l] = d.useState(!1);
|
|
1180
|
+
return Ma(() => n(!0)), d.useEffect(() => {
|
|
1181
|
+
const u = window.setTimeout(() => l(!0), 1e3);
|
|
1182
|
+
return () => window.clearTimeout(u);
|
|
1183
|
+
}, []), m ? null : /* @__PURE__ */ e(Lr, { asChild: !0, children: /* @__PURE__ */ e(st, { ...a, children: c && /* @__PURE__ */ f(se, { children: [
|
|
1184
|
+
o.label,
|
|
1185
|
+
" ",
|
|
1186
|
+
r
|
|
1187
|
+
] }) }) });
|
|
1188
|
+
}, Aa = "ToastTitle", lr = d.forwardRef(
|
|
1189
|
+
(t, s) => {
|
|
1190
|
+
const { __scopeToast: r, ...a } = t;
|
|
1191
|
+
return /* @__PURE__ */ e(z.div, { ...a, ref: s });
|
|
1192
|
+
}
|
|
1193
|
+
);
|
|
1194
|
+
lr.displayName = Aa;
|
|
1195
|
+
var Pa = "ToastDescription", cr = d.forwardRef(
|
|
1196
|
+
(t, s) => {
|
|
1197
|
+
const { __scopeToast: r, ...a } = t;
|
|
1198
|
+
return /* @__PURE__ */ e(z.div, { ...a, ref: s });
|
|
1199
|
+
}
|
|
1200
|
+
);
|
|
1201
|
+
cr.displayName = Pa;
|
|
1202
|
+
var dr = "ToastAction", ur = d.forwardRef(
|
|
1203
|
+
(t, s) => {
|
|
1204
|
+
const { altText: r, ...a } = t;
|
|
1205
|
+
return r.trim() ? /* @__PURE__ */ e(fr, { altText: r, asChild: !0, children: /* @__PURE__ */ e(Le, { ...a, ref: s }) }) : (console.error(
|
|
1206
|
+
`Invalid prop \`altText\` supplied to \`${dr}\`. Expected non-empty \`string\`.`
|
|
1207
|
+
), null);
|
|
1208
|
+
}
|
|
1209
|
+
);
|
|
1210
|
+
ur.displayName = dr;
|
|
1211
|
+
var mr = "ToastClose", Le = d.forwardRef(
|
|
1212
|
+
(t, s) => {
|
|
1213
|
+
const { __scopeToast: r, ...a } = t, o = Ca(mr, r);
|
|
1214
|
+
return /* @__PURE__ */ e(fr, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1215
|
+
z.button,
|
|
1216
|
+
{
|
|
1217
|
+
type: "button",
|
|
1218
|
+
...a,
|
|
1219
|
+
ref: s,
|
|
1220
|
+
onClick: F(t.onClick, o.onClose)
|
|
1221
|
+
}
|
|
1222
|
+
) });
|
|
1223
|
+
}
|
|
1224
|
+
);
|
|
1225
|
+
Le.displayName = mr;
|
|
1226
|
+
var fr = d.forwardRef((t, s) => {
|
|
1227
|
+
const { __scopeToast: r, altText: a, ...o } = t;
|
|
1228
|
+
return /* @__PURE__ */ e(
|
|
1229
|
+
z.div,
|
|
1230
|
+
{
|
|
1231
|
+
"data-radix-toast-announce-exclude": "",
|
|
1232
|
+
"data-radix-toast-announce-alt": a || void 0,
|
|
1233
|
+
...o,
|
|
1234
|
+
ref: s
|
|
1235
|
+
}
|
|
1236
|
+
);
|
|
1237
|
+
});
|
|
1238
|
+
function pr(t) {
|
|
1239
|
+
const s = [];
|
|
1240
|
+
return Array.from(t.childNodes).forEach((a) => {
|
|
1241
|
+
if (a.nodeType === a.TEXT_NODE && a.textContent && s.push(a.textContent), _a(a)) {
|
|
1242
|
+
const o = a.ariaHidden || a.hidden || a.style.display === "none", c = a.dataset.radixToastAnnounceExclude === "";
|
|
1243
|
+
if (!o)
|
|
1244
|
+
if (c) {
|
|
1245
|
+
const n = a.dataset.radixToastAnnounceAlt;
|
|
1246
|
+
n && s.push(n);
|
|
1247
|
+
} else
|
|
1248
|
+
s.push(...pr(a));
|
|
1249
|
+
}
|
|
1250
|
+
}), s;
|
|
1251
|
+
}
|
|
1252
|
+
function ie(t, s, r, { discrete: a }) {
|
|
1253
|
+
const o = r.originalEvent.currentTarget, c = new CustomEvent(t, { bubbles: !0, cancelable: !0, detail: r });
|
|
1254
|
+
s && o.addEventListener(t, s, { once: !0 }), a ? Wr(o, c) : o.dispatchEvent(c);
|
|
1255
|
+
}
|
|
1256
|
+
var We = (t, s, r = 0) => {
|
|
1257
|
+
const a = Math.abs(t.x), o = Math.abs(t.y), c = a > o;
|
|
1258
|
+
return s === "left" || s === "right" ? c && a > r : !c && o > r;
|
|
1259
|
+
};
|
|
1260
|
+
function Ma(t = () => {
|
|
1261
|
+
}) {
|
|
1262
|
+
const s = ce(t);
|
|
1263
|
+
Ur(() => {
|
|
1264
|
+
let r = 0, a = 0;
|
|
1265
|
+
return r = window.requestAnimationFrame(() => a = window.requestAnimationFrame(s)), () => {
|
|
1266
|
+
window.cancelAnimationFrame(r), window.cancelAnimationFrame(a);
|
|
1267
|
+
};
|
|
1268
|
+
}, [s]);
|
|
1269
|
+
}
|
|
1270
|
+
function _a(t) {
|
|
1271
|
+
return t.nodeType === t.ELEMENT_NODE;
|
|
1272
|
+
}
|
|
1273
|
+
function ka(t) {
|
|
1274
|
+
const s = [], r = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
|
|
1275
|
+
acceptNode: (a) => {
|
|
1276
|
+
const o = a.tagName === "INPUT" && a.type === "hidden";
|
|
1277
|
+
return a.disabled || a.hidden || o ? NodeFilter.FILTER_SKIP : a.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1278
|
+
}
|
|
1279
|
+
});
|
|
1280
|
+
for (; r.nextNode(); ) s.push(r.currentNode);
|
|
1281
|
+
return s;
|
|
1282
|
+
}
|
|
1283
|
+
function be(t) {
|
|
1284
|
+
const s = document.activeElement;
|
|
1285
|
+
return t.some((r) => r === s ? !0 : (r.focus(), document.activeElement !== s));
|
|
1286
|
+
}
|
|
1287
|
+
var Ia = sr, hr = or, gr = ir, vr = lr, br = cr, wr = ur, yr = Le;
|
|
1288
|
+
const Fa = Ia, xr = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
1289
|
+
hr,
|
|
1290
|
+
{
|
|
1291
|
+
ref: r,
|
|
1292
|
+
className: y(
|
|
1293
|
+
"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
1294
|
+
t
|
|
1295
|
+
),
|
|
1296
|
+
...s
|
|
1297
|
+
}
|
|
1298
|
+
));
|
|
1299
|
+
xr.displayName = hr.displayName;
|
|
1300
|
+
const Oa = Ce(
|
|
1301
|
+
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
1302
|
+
{
|
|
1303
|
+
variants: {
|
|
1304
|
+
variant: {
|
|
1305
|
+
default: "border bg-background text-foreground",
|
|
1306
|
+
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground",
|
|
1307
|
+
success: "border-success bg-success text-success-foreground",
|
|
1308
|
+
warning: "border-warning bg-warning text-warning-foreground"
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
defaultVariants: {
|
|
1312
|
+
variant: "default"
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
), Nr = d.forwardRef(({ className: t, variant: s, ...r }, a) => /* @__PURE__ */ e(
|
|
1316
|
+
gr,
|
|
1317
|
+
{
|
|
1318
|
+
ref: a,
|
|
1319
|
+
className: y(Oa({ variant: s }), t),
|
|
1320
|
+
...r
|
|
1321
|
+
}
|
|
1322
|
+
));
|
|
1323
|
+
Nr.displayName = gr.displayName;
|
|
1324
|
+
const La = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
1325
|
+
wr,
|
|
1326
|
+
{
|
|
1327
|
+
ref: r,
|
|
1328
|
+
className: y(
|
|
1329
|
+
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus-visible:ring-destructive",
|
|
1330
|
+
t
|
|
1331
|
+
),
|
|
1332
|
+
...s
|
|
1333
|
+
}
|
|
1334
|
+
));
|
|
1335
|
+
La.displayName = wr.displayName;
|
|
1336
|
+
const Tr = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
1337
|
+
yr,
|
|
1338
|
+
{
|
|
1339
|
+
ref: r,
|
|
1340
|
+
className: y(
|
|
1341
|
+
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus-visible:ring-destructive",
|
|
1342
|
+
t
|
|
1343
|
+
),
|
|
1344
|
+
"toast-close": "",
|
|
1345
|
+
...s,
|
|
1346
|
+
children: /* @__PURE__ */ e(es, { className: "h-4 w-4" })
|
|
1347
|
+
}
|
|
1348
|
+
));
|
|
1349
|
+
Tr.displayName = yr.displayName;
|
|
1350
|
+
const Sr = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(vr, { ref: r, className: y("text-sm font-semibold", t), ...s }));
|
|
1351
|
+
Sr.displayName = vr.displayName;
|
|
1352
|
+
const Er = d.forwardRef(({ className: t, ...s }, r) => /* @__PURE__ */ e(
|
|
1353
|
+
br,
|
|
1354
|
+
{
|
|
1355
|
+
ref: r,
|
|
1356
|
+
className: y("text-sm opacity-90", t),
|
|
1357
|
+
...s
|
|
1358
|
+
}
|
|
1359
|
+
));
|
|
1360
|
+
Er.displayName = br.displayName;
|
|
1361
|
+
function sn() {
|
|
1362
|
+
const { toasts: t } = Zr();
|
|
1363
|
+
return /* @__PURE__ */ f(Fa, { children: [
|
|
1364
|
+
t.map(function({ id: s, title: r, description: a, action: o, ...c }) {
|
|
1365
|
+
return /* @__PURE__ */ f(Nr, { ...c, children: [
|
|
1366
|
+
/* @__PURE__ */ f("div", { className: "grid gap-1", children: [
|
|
1367
|
+
r && /* @__PURE__ */ e(Sr, { children: r }),
|
|
1368
|
+
a && /* @__PURE__ */ e(Er, { children: a })
|
|
1369
|
+
] }),
|
|
1370
|
+
o,
|
|
1371
|
+
/* @__PURE__ */ e(Tr, {})
|
|
1372
|
+
] }, s);
|
|
1373
|
+
}),
|
|
1374
|
+
/* @__PURE__ */ e(xr, {})
|
|
1375
|
+
] });
|
|
1376
|
+
}
|
|
1377
|
+
function Va(t) {
|
|
1378
|
+
return hs(t, Date.now());
|
|
1379
|
+
}
|
|
1380
|
+
function $a(t) {
|
|
1381
|
+
return (s) => {
|
|
1382
|
+
const r = Math.trunc, a = r(s);
|
|
1383
|
+
return a === 0 ? 0 : a;
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
function Ba(t, s) {
|
|
1387
|
+
return +W(t) - +W(s);
|
|
1388
|
+
}
|
|
1389
|
+
function Cr(t, s, r) {
|
|
1390
|
+
const a = Ba(t, s) / gs;
|
|
1391
|
+
return $a()(a);
|
|
1392
|
+
}
|
|
1393
|
+
function Ve(t) {
|
|
1394
|
+
const s = W(t);
|
|
1395
|
+
return s.setHours(23, 59, 59, 999), s;
|
|
1396
|
+
}
|
|
1397
|
+
function Dr(t) {
|
|
1398
|
+
return W(t).getHours();
|
|
1399
|
+
}
|
|
1400
|
+
function Rr(t) {
|
|
1401
|
+
return W(t).getMinutes();
|
|
1402
|
+
}
|
|
1403
|
+
function he(t) {
|
|
1404
|
+
return Y(t, Va(t));
|
|
1405
|
+
}
|
|
1406
|
+
function $e(t, s) {
|
|
1407
|
+
const r = +W(t), [a, o] = [
|
|
1408
|
+
+W(s.start),
|
|
1409
|
+
+W(s.end)
|
|
1410
|
+
].sort((c, n) => c - n);
|
|
1411
|
+
return r >= a && r <= o;
|
|
1412
|
+
}
|
|
1413
|
+
function de(t, s) {
|
|
1414
|
+
const r = W(t);
|
|
1415
|
+
return r.setHours(s), r;
|
|
1416
|
+
}
|
|
1417
|
+
function Ar(t, s) {
|
|
1418
|
+
const r = W(t);
|
|
1419
|
+
return r.setMinutes(s), r;
|
|
1420
|
+
}
|
|
1421
|
+
function Pr(t, s) {
|
|
1422
|
+
return Ae(t, -1);
|
|
1423
|
+
}
|
|
1424
|
+
function Ha(t, s) {
|
|
1425
|
+
return ut(t, -1);
|
|
1426
|
+
}
|
|
1427
|
+
const Ka = {
|
|
1428
|
+
default: {
|
|
1429
|
+
icon: Ke,
|
|
1430
|
+
iconColor: "text-foreground",
|
|
1431
|
+
buttonVariant: "default"
|
|
1432
|
+
},
|
|
1433
|
+
destructive: {
|
|
1434
|
+
icon: fs,
|
|
1435
|
+
iconColor: "text-destructive",
|
|
1436
|
+
buttonVariant: "destructive"
|
|
1437
|
+
},
|
|
1438
|
+
warning: {
|
|
1439
|
+
icon: ms,
|
|
1440
|
+
iconColor: "text-warning",
|
|
1441
|
+
buttonVariant: "default"
|
|
1442
|
+
},
|
|
1443
|
+
info: {
|
|
1444
|
+
icon: Ke,
|
|
1445
|
+
iconColor: "text-info",
|
|
1446
|
+
buttonVariant: "default"
|
|
1447
|
+
},
|
|
1448
|
+
success: {
|
|
1449
|
+
icon: ds,
|
|
1450
|
+
iconColor: "text-success",
|
|
1451
|
+
buttonVariant: "default"
|
|
1452
|
+
}
|
|
1453
|
+
}, ja = d.forwardRef(
|
|
1454
|
+
({
|
|
1455
|
+
open: t,
|
|
1456
|
+
onOpenChange: s,
|
|
1457
|
+
title: r,
|
|
1458
|
+
description: a,
|
|
1459
|
+
confirmLabel: o = "Confirm",
|
|
1460
|
+
cancelLabel: c = "Cancel",
|
|
1461
|
+
onConfirm: n,
|
|
1462
|
+
onCancel: m,
|
|
1463
|
+
variant: l = "default",
|
|
1464
|
+
loading: u = !1,
|
|
1465
|
+
confirmationText: p,
|
|
1466
|
+
confirmationPlaceholder: i = "Type to confirm"
|
|
1467
|
+
}, g) => {
|
|
1468
|
+
const [v, b] = d.useState(""), h = Ka[l], w = h.icon, x = p && v !== p || u, E = () => {
|
|
1469
|
+
n(), b("");
|
|
1470
|
+
}, N = () => {
|
|
1471
|
+
m == null || m(), b(""), s(!1);
|
|
1472
|
+
};
|
|
1473
|
+
return /* @__PURE__ */ e(Us, { open: t, onOpenChange: s, children: /* @__PURE__ */ f(It, { ref: g, children: [
|
|
1474
|
+
/* @__PURE__ */ e(Ft, { children: /* @__PURE__ */ f("div", { className: "flex items-start gap-4", children: [
|
|
1475
|
+
/* @__PURE__ */ e(
|
|
1476
|
+
"div",
|
|
1477
|
+
{
|
|
1478
|
+
className: y(
|
|
1479
|
+
"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full",
|
|
1480
|
+
l === "destructive" && "bg-destructive/10",
|
|
1481
|
+
l === "warning" && "bg-warning/10",
|
|
1482
|
+
l === "info" && "bg-info/10",
|
|
1483
|
+
l === "success" && "bg-success/10",
|
|
1484
|
+
l === "default" && "bg-muted"
|
|
1485
|
+
),
|
|
1486
|
+
children: /* @__PURE__ */ e(w, { className: y("h-5 w-5", h.iconColor) })
|
|
1487
|
+
}
|
|
1488
|
+
),
|
|
1489
|
+
/* @__PURE__ */ f("div", { className: "flex-1", children: [
|
|
1490
|
+
/* @__PURE__ */ e(Lt, { children: r }),
|
|
1491
|
+
/* @__PURE__ */ e(Vt, { className: "mt-2", children: a })
|
|
1492
|
+
] })
|
|
1493
|
+
] }) }),
|
|
1494
|
+
p && /* @__PURE__ */ f("div", { className: "mt-4 space-y-2", children: [
|
|
1495
|
+
/* @__PURE__ */ f(cs, { htmlFor: "confirmation-input", className: "text-sm", children: [
|
|
1496
|
+
"Type ",
|
|
1497
|
+
/* @__PURE__ */ e("span", { className: "font-mono font-bold", children: p }),
|
|
1498
|
+
" to confirm"
|
|
1499
|
+
] }),
|
|
1500
|
+
/* @__PURE__ */ e(
|
|
1501
|
+
Vr,
|
|
1502
|
+
{
|
|
1503
|
+
id: "confirmation-input",
|
|
1504
|
+
value: v,
|
|
1505
|
+
onChange: (T) => b(T.target.value),
|
|
1506
|
+
placeholder: i,
|
|
1507
|
+
autoComplete: "off"
|
|
1508
|
+
}
|
|
1509
|
+
)
|
|
1510
|
+
] }),
|
|
1511
|
+
/* @__PURE__ */ f(Ot, { className: "mt-4", children: [
|
|
1512
|
+
/* @__PURE__ */ e(Bt, { onClick: N, disabled: u, children: c }),
|
|
1513
|
+
/* @__PURE__ */ e(
|
|
1514
|
+
$t,
|
|
1515
|
+
{
|
|
1516
|
+
onClick: E,
|
|
1517
|
+
disabled: x,
|
|
1518
|
+
className: y(
|
|
1519
|
+
l === "destructive" && "bg-destructive text-destructive-foreground hover:bg-destructive/90"
|
|
1520
|
+
),
|
|
1521
|
+
children: u ? "Loading..." : o
|
|
1522
|
+
}
|
|
1523
|
+
)
|
|
1524
|
+
] })
|
|
1525
|
+
] }) });
|
|
1526
|
+
}
|
|
1527
|
+
);
|
|
1528
|
+
ja.displayName = "ConfirmationDialog";
|
|
1529
|
+
const we = {
|
|
1530
|
+
sm: "h-6 w-6 text-[10px]",
|
|
1531
|
+
md: "h-8 w-8 text-xs",
|
|
1532
|
+
lg: "h-10 w-10 text-sm"
|
|
1533
|
+
}, za = d.forwardRef(
|
|
1534
|
+
({
|
|
1535
|
+
className: t,
|
|
1536
|
+
avatars: s,
|
|
1537
|
+
max: r = 4,
|
|
1538
|
+
size: a = "md",
|
|
1539
|
+
showTooltip: o = !0,
|
|
1540
|
+
onMoreClick: c,
|
|
1541
|
+
...n
|
|
1542
|
+
}, m) => {
|
|
1543
|
+
const l = s.slice(0, r), u = s.length - r, p = u > 0, i = (v) => v.split(" ").map((b) => b[0]).join("").toUpperCase().slice(0, 2), g = (v, b) => {
|
|
1544
|
+
const h = /* @__PURE__ */ f(
|
|
1545
|
+
nt,
|
|
1546
|
+
{
|
|
1547
|
+
className: y(
|
|
1548
|
+
we[a],
|
|
1549
|
+
"border-2 border-background",
|
|
1550
|
+
b > 0 && "-ml-2"
|
|
1551
|
+
),
|
|
1552
|
+
children: [
|
|
1553
|
+
v.image && /* @__PURE__ */ e(it, { src: v.image, alt: v.name }),
|
|
1554
|
+
/* @__PURE__ */ e(lt, { className: y(we[a], "font-medium"), children: i(v.name) })
|
|
1555
|
+
]
|
|
1556
|
+
},
|
|
1557
|
+
b
|
|
1558
|
+
);
|
|
1559
|
+
return v.href ? /* @__PURE__ */ e("a", { href: v.href, className: "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 rounded-full", children: o ? /* @__PURE__ */ f(ee, { children: [
|
|
1560
|
+
/* @__PURE__ */ e(te, { asChild: !0, children: h }),
|
|
1561
|
+
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("p", { children: v.name }) })
|
|
1562
|
+
] }) : h }, b) : o ? /* @__PURE__ */ f(ee, { children: [
|
|
1563
|
+
/* @__PURE__ */ e(te, { asChild: !0, children: h }),
|
|
1564
|
+
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("p", { children: v.name }) })
|
|
1565
|
+
] }, b) : h;
|
|
1566
|
+
};
|
|
1567
|
+
return /* @__PURE__ */ e(De, { children: /* @__PURE__ */ f("div", { ref: m, className: y("flex items-center", t), ...n, children: [
|
|
1568
|
+
l.map((v, b) => g(v, b)),
|
|
1569
|
+
p && /* @__PURE__ */ f(ee, { children: [
|
|
1570
|
+
/* @__PURE__ */ e(te, { asChild: !0, children: /* @__PURE__ */ f(
|
|
1571
|
+
"button",
|
|
1572
|
+
{
|
|
1573
|
+
onClick: c,
|
|
1574
|
+
className: y(
|
|
1575
|
+
we[a],
|
|
1576
|
+
"relative -ml-2 flex items-center justify-center rounded-full border-2 border-background bg-muted font-medium text-muted-foreground hover:bg-muted/80",
|
|
1577
|
+
c && "cursor-pointer"
|
|
1578
|
+
),
|
|
1579
|
+
children: [
|
|
1580
|
+
"+",
|
|
1581
|
+
u
|
|
1582
|
+
]
|
|
1583
|
+
}
|
|
1584
|
+
) }),
|
|
1585
|
+
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("div", { className: "space-y-1", children: s.slice(r).map((v, b) => /* @__PURE__ */ e("p", { children: v.name }, b)) }) })
|
|
1586
|
+
] })
|
|
1587
|
+
] }) });
|
|
1588
|
+
}
|
|
1589
|
+
);
|
|
1590
|
+
za.displayName = "AvatarGroup";
|
|
1591
|
+
const Wa = {
|
|
1592
|
+
sm: "h-8 w-8",
|
|
1593
|
+
md: "h-10 w-10",
|
|
1594
|
+
lg: "h-12 w-12",
|
|
1595
|
+
xl: "h-16 w-16"
|
|
1596
|
+
}, Ua = {
|
|
1597
|
+
sm: "h-2.5 w-2.5",
|
|
1598
|
+
md: "h-3 w-3",
|
|
1599
|
+
lg: "h-3.5 w-3.5",
|
|
1600
|
+
xl: "h-4 w-4"
|
|
1601
|
+
}, Ya = {
|
|
1602
|
+
online: "bg-success",
|
|
1603
|
+
offline: "bg-muted-foreground",
|
|
1604
|
+
away: "bg-warning",
|
|
1605
|
+
busy: "bg-destructive",
|
|
1606
|
+
dnd: "bg-destructive"
|
|
1607
|
+
}, Xa = {
|
|
1608
|
+
"bottom-right": "bottom-0 right-0",
|
|
1609
|
+
"bottom-left": "bottom-0 left-0",
|
|
1610
|
+
"top-right": "top-0 right-0",
|
|
1611
|
+
"top-left": "top-0 left-0"
|
|
1612
|
+
}, Ga = d.forwardRef(
|
|
1613
|
+
({
|
|
1614
|
+
className: t,
|
|
1615
|
+
name: s,
|
|
1616
|
+
image: r,
|
|
1617
|
+
status: a = "offline",
|
|
1618
|
+
showStatus: o = !0,
|
|
1619
|
+
size: c = "md",
|
|
1620
|
+
statusPosition: n = "bottom-right",
|
|
1621
|
+
...m
|
|
1622
|
+
}, l) => {
|
|
1623
|
+
const u = (p) => p.split(" ").map((i) => i[0]).join("").toUpperCase().slice(0, 2);
|
|
1624
|
+
return /* @__PURE__ */ f("div", { ref: l, className: y("relative inline-block", t), ...m, children: [
|
|
1625
|
+
/* @__PURE__ */ f(nt, { className: Wa[c], children: [
|
|
1626
|
+
r && /* @__PURE__ */ e(it, { src: r, alt: s }),
|
|
1627
|
+
/* @__PURE__ */ e(lt, { children: u(s) })
|
|
1628
|
+
] }),
|
|
1629
|
+
o && /* @__PURE__ */ e(
|
|
1630
|
+
"span",
|
|
1631
|
+
{
|
|
1632
|
+
className: y(
|
|
1633
|
+
"absolute block rounded-full border-2 border-background",
|
|
1634
|
+
Ua[c],
|
|
1635
|
+
Ya[a],
|
|
1636
|
+
Xa[n]
|
|
1637
|
+
),
|
|
1638
|
+
title: a.charAt(0).toUpperCase() + a.slice(1)
|
|
1639
|
+
}
|
|
1640
|
+
)
|
|
1641
|
+
] });
|
|
1642
|
+
}
|
|
1643
|
+
);
|
|
1644
|
+
Ga.displayName = "AvatarWithStatus";
|
|
1645
|
+
const qa = d.forwardRef(
|
|
1646
|
+
({
|
|
1647
|
+
className: t,
|
|
1648
|
+
steps: s,
|
|
1649
|
+
currentStep: r,
|
|
1650
|
+
orientation: a = "horizontal",
|
|
1651
|
+
onStepClick: o,
|
|
1652
|
+
allowClickPast: c = !1,
|
|
1653
|
+
showStepNumber: n = !0,
|
|
1654
|
+
...m
|
|
1655
|
+
}, l) => {
|
|
1656
|
+
const u = (p) => {
|
|
1657
|
+
o && (c || p <= r) && o(p);
|
|
1658
|
+
};
|
|
1659
|
+
return /* @__PURE__ */ e(
|
|
1660
|
+
"div",
|
|
1661
|
+
{
|
|
1662
|
+
ref: l,
|
|
1663
|
+
className: y(
|
|
1664
|
+
"flex",
|
|
1665
|
+
a === "horizontal" ? "flex-row items-center" : "flex-col",
|
|
1666
|
+
t
|
|
1667
|
+
),
|
|
1668
|
+
...m,
|
|
1669
|
+
children: s.map((p, i) => {
|
|
1670
|
+
const g = i < r, v = i === r, b = o && (c || i <= r);
|
|
1671
|
+
return /* @__PURE__ */ f(d.Fragment, { children: [
|
|
1672
|
+
/* @__PURE__ */ f(
|
|
1673
|
+
"div",
|
|
1674
|
+
{
|
|
1675
|
+
className: y(
|
|
1676
|
+
"flex",
|
|
1677
|
+
a === "horizontal" ? "flex-col items-center" : "flex-row items-start gap-4",
|
|
1678
|
+
b && "cursor-pointer"
|
|
1679
|
+
),
|
|
1680
|
+
onClick: () => u(i),
|
|
1681
|
+
children: [
|
|
1682
|
+
/* @__PURE__ */ e(
|
|
1683
|
+
"div",
|
|
1684
|
+
{
|
|
1685
|
+
className: y(
|
|
1686
|
+
"flex h-10 w-10 items-center justify-center rounded-full border-2 text-sm font-medium transition-colors",
|
|
1687
|
+
g && "border-primary bg-primary text-primary-foreground",
|
|
1688
|
+
v && "border-primary text-primary",
|
|
1689
|
+
!g && !v && "border-muted-foreground/30 text-muted-foreground"
|
|
1690
|
+
),
|
|
1691
|
+
children: g ? /* @__PURE__ */ e($r, { className: "h-5 w-5" }) : p.icon ? p.icon : n ? i + 1 : null
|
|
1692
|
+
}
|
|
1693
|
+
),
|
|
1694
|
+
/* @__PURE__ */ f(
|
|
1695
|
+
"div",
|
|
1696
|
+
{
|
|
1697
|
+
className: y(
|
|
1698
|
+
"text-center",
|
|
1699
|
+
a === "horizontal" ? "mt-2" : "flex-1",
|
|
1700
|
+
a === "vertical" && "text-left"
|
|
1701
|
+
),
|
|
1702
|
+
children: [
|
|
1703
|
+
/* @__PURE__ */ f(
|
|
1704
|
+
"p",
|
|
1705
|
+
{
|
|
1706
|
+
className: y(
|
|
1707
|
+
"text-sm font-medium",
|
|
1708
|
+
v && "text-primary",
|
|
1709
|
+
!g && !v && "text-muted-foreground"
|
|
1710
|
+
),
|
|
1711
|
+
children: [
|
|
1712
|
+
p.title,
|
|
1713
|
+
p.optional && /* @__PURE__ */ e("span", { className: "ml-1 text-xs font-normal text-muted-foreground", children: "(Optional)" })
|
|
1714
|
+
]
|
|
1715
|
+
}
|
|
1716
|
+
),
|
|
1717
|
+
p.description && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: p.description })
|
|
1718
|
+
]
|
|
1719
|
+
}
|
|
1720
|
+
)
|
|
1721
|
+
]
|
|
1722
|
+
}
|
|
1723
|
+
),
|
|
1724
|
+
i < s.length - 1 && /* @__PURE__ */ e(
|
|
1725
|
+
"div",
|
|
1726
|
+
{
|
|
1727
|
+
className: y(
|
|
1728
|
+
"bg-muted-foreground/30",
|
|
1729
|
+
a === "horizontal" ? "mx-4 h-0.5 flex-1" : "ml-5 mt-2 mb-2 w-0.5 min-h-8",
|
|
1730
|
+
i < r && "bg-primary"
|
|
1731
|
+
)
|
|
1732
|
+
}
|
|
1733
|
+
)
|
|
1734
|
+
] }, p.id);
|
|
1735
|
+
})
|
|
1736
|
+
}
|
|
1737
|
+
);
|
|
1738
|
+
}
|
|
1739
|
+
);
|
|
1740
|
+
qa.displayName = "Stepper";
|
|
1741
|
+
const Ja = d.forwardRef(
|
|
1742
|
+
({
|
|
1743
|
+
className: t,
|
|
1744
|
+
value: s,
|
|
1745
|
+
onChange: r,
|
|
1746
|
+
minDate: a,
|
|
1747
|
+
maxDate: o,
|
|
1748
|
+
disabledDates: c = [],
|
|
1749
|
+
highlightedDates: n = [],
|
|
1750
|
+
...m
|
|
1751
|
+
}, l) => {
|
|
1752
|
+
const [u, p] = d.useState(s || /* @__PURE__ */ new Date()), i = Pe(u), g = Me(i), v = me(i), b = _e(g), h = [];
|
|
1753
|
+
let w = v;
|
|
1754
|
+
for (; w <= b; )
|
|
1755
|
+
h.push(w), w = ue(w, 1);
|
|
1756
|
+
const x = (R) => a && R < a || o && R > o ? !0 : c.some((L) => Y(L, R)), E = (R) => n.some((L) => Y(L, R)), N = () => p(Pr(u)), T = () => p(Ae(u, 1)), D = (R) => {
|
|
1757
|
+
x(R) || r == null || r(R);
|
|
1758
|
+
}, M = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
1759
|
+
return /* @__PURE__ */ f("div", { ref: l, className: y("w-64 rounded-lg border bg-card p-3", t), ...m, children: [
|
|
1760
|
+
/* @__PURE__ */ f("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
1761
|
+
/* @__PURE__ */ e(
|
|
1762
|
+
j,
|
|
1763
|
+
{
|
|
1764
|
+
variant: "ghost",
|
|
1765
|
+
size: "icon",
|
|
1766
|
+
className: "h-7 w-7",
|
|
1767
|
+
onClick: N,
|
|
1768
|
+
children: /* @__PURE__ */ e(ct, { className: "h-4 w-4" })
|
|
1769
|
+
}
|
|
1770
|
+
),
|
|
1771
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: K(u, "MMMM yyyy") }),
|
|
1772
|
+
/* @__PURE__ */ e(
|
|
1773
|
+
j,
|
|
1774
|
+
{
|
|
1775
|
+
variant: "ghost",
|
|
1776
|
+
size: "icon",
|
|
1777
|
+
className: "h-7 w-7",
|
|
1778
|
+
onClick: T,
|
|
1779
|
+
children: /* @__PURE__ */ e(dt, { className: "h-4 w-4" })
|
|
1780
|
+
}
|
|
1781
|
+
)
|
|
1782
|
+
] }),
|
|
1783
|
+
/* @__PURE__ */ e("div", { className: "mb-1 grid grid-cols-7 gap-0", children: M.map((R) => /* @__PURE__ */ e(
|
|
1784
|
+
"div",
|
|
1785
|
+
{
|
|
1786
|
+
className: "flex h-8 items-center justify-center text-xs font-medium text-muted-foreground",
|
|
1787
|
+
children: R
|
|
1788
|
+
},
|
|
1789
|
+
R
|
|
1790
|
+
)) }),
|
|
1791
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-0", children: h.map((R, L) => {
|
|
1792
|
+
const _ = mt(R, u), P = s && Y(R, s), A = he(R), k = x(R), V = E(R);
|
|
1793
|
+
return /* @__PURE__ */ f(
|
|
1794
|
+
"button",
|
|
1795
|
+
{
|
|
1796
|
+
onClick: () => D(R),
|
|
1797
|
+
disabled: k,
|
|
1798
|
+
className: y(
|
|
1799
|
+
"relative flex h-8 w-8 items-center justify-center rounded-md text-sm transition-colors",
|
|
1800
|
+
!_ && "text-muted-foreground/40",
|
|
1801
|
+
_ && "hover:bg-accent",
|
|
1802
|
+
A && "font-bold",
|
|
1803
|
+
A && !P && "text-primary",
|
|
1804
|
+
P && "bg-primary text-primary-foreground hover:bg-primary",
|
|
1805
|
+
k && "cursor-not-allowed opacity-50",
|
|
1806
|
+
V && !P && "bg-accent"
|
|
1807
|
+
),
|
|
1808
|
+
children: [
|
|
1809
|
+
K(R, "d"),
|
|
1810
|
+
V && !P && /* @__PURE__ */ e("span", { className: "absolute bottom-1 h-1 w-1 rounded-full bg-primary" })
|
|
1811
|
+
]
|
|
1812
|
+
},
|
|
1813
|
+
L
|
|
1814
|
+
);
|
|
1815
|
+
}) })
|
|
1816
|
+
] });
|
|
1817
|
+
}
|
|
1818
|
+
);
|
|
1819
|
+
Ja.displayName = "MiniCalendar";
|
|
1820
|
+
const Za = d.forwardRef(
|
|
1821
|
+
({ className: t, title: s, description: r, children: a, footer: o, variant: c = "default", ...n }, m) => c === "card" ? /* @__PURE__ */ f(vs, { ref: m, className: t, ...n, children: [
|
|
1822
|
+
/* @__PURE__ */ f(bs, { children: [
|
|
1823
|
+
/* @__PURE__ */ e(ws, { className: "text-lg", children: s }),
|
|
1824
|
+
r && /* @__PURE__ */ e(ys, { children: r })
|
|
1825
|
+
] }),
|
|
1826
|
+
/* @__PURE__ */ e(xs, { className: "space-y-4", children: a }),
|
|
1827
|
+
o && /* @__PURE__ */ f(se, { children: [
|
|
1828
|
+
/* @__PURE__ */ e(ve, {}),
|
|
1829
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2 p-4", children: o })
|
|
1830
|
+
] })
|
|
1831
|
+
] }) : /* @__PURE__ */ f("div", { ref: m, className: y("space-y-4", t), ...n, children: [
|
|
1832
|
+
/* @__PURE__ */ f("div", { children: [
|
|
1833
|
+
/* @__PURE__ */ e("h3", { className: "text-lg font-medium", children: s }),
|
|
1834
|
+
r && /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: r })
|
|
1835
|
+
] }),
|
|
1836
|
+
/* @__PURE__ */ e(ve, {}),
|
|
1837
|
+
/* @__PURE__ */ e("div", { className: "space-y-4", children: a }),
|
|
1838
|
+
o && /* @__PURE__ */ f(se, { children: [
|
|
1839
|
+
/* @__PURE__ */ e(ve, {}),
|
|
1840
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2", children: o })
|
|
1841
|
+
] })
|
|
1842
|
+
] })
|
|
1843
|
+
);
|
|
1844
|
+
Za.displayName = "SettingsSection";
|
|
1845
|
+
const Qa = d.forwardRef(
|
|
1846
|
+
({ className: t, label: s, description: r, children: a, htmlFor: o, ...c }, n) => /* @__PURE__ */ f(
|
|
1847
|
+
"div",
|
|
1848
|
+
{
|
|
1849
|
+
ref: n,
|
|
1850
|
+
className: y("flex items-start justify-between gap-4", t),
|
|
1851
|
+
...c,
|
|
1852
|
+
children: [
|
|
1853
|
+
/* @__PURE__ */ f("div", { className: "space-y-0.5", children: [
|
|
1854
|
+
/* @__PURE__ */ e("label", { htmlFor: o, className: "text-sm font-medium", children: s }),
|
|
1855
|
+
r && /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: r })
|
|
1856
|
+
] }),
|
|
1857
|
+
/* @__PURE__ */ e("div", { className: "flex-shrink-0", children: a })
|
|
1858
|
+
]
|
|
1859
|
+
}
|
|
1860
|
+
)
|
|
1861
|
+
);
|
|
1862
|
+
Qa.displayName = "SettingsRow";
|
|
1863
|
+
const eo = [
|
|
1864
|
+
{ format: "csv", label: "Export as CSV", icon: /* @__PURE__ */ e(He, { className: "h-4 w-4" }) },
|
|
1865
|
+
{ format: "excel", label: "Export as Excel", icon: /* @__PURE__ */ e(Ns, { className: "h-4 w-4" }) },
|
|
1866
|
+
{ format: "pdf", label: "Export as PDF", icon: /* @__PURE__ */ e(He, { className: "h-4 w-4" }) },
|
|
1867
|
+
{ format: "json", label: "Export as JSON", icon: /* @__PURE__ */ e(Ds, { className: "h-4 w-4" }) }
|
|
1868
|
+
], to = d.forwardRef(
|
|
1869
|
+
({
|
|
1870
|
+
className: t,
|
|
1871
|
+
onExport: s,
|
|
1872
|
+
options: r = eo,
|
|
1873
|
+
loading: a = !1,
|
|
1874
|
+
defaultFormat: o = "csv",
|
|
1875
|
+
showDropdown: c = !0,
|
|
1876
|
+
variant: n = "outline",
|
|
1877
|
+
size: m = "sm",
|
|
1878
|
+
children: l,
|
|
1879
|
+
...u
|
|
1880
|
+
}, p) => {
|
|
1881
|
+
const [i, g] = d.useState(!1), v = async (h) => {
|
|
1882
|
+
g(!0);
|
|
1883
|
+
try {
|
|
1884
|
+
await s(h);
|
|
1885
|
+
} finally {
|
|
1886
|
+
g(!1);
|
|
1887
|
+
}
|
|
1888
|
+
}, b = a || i;
|
|
1889
|
+
return !c || r.length === 1 ? /* @__PURE__ */ f(
|
|
1890
|
+
j,
|
|
1891
|
+
{
|
|
1892
|
+
ref: p,
|
|
1893
|
+
variant: n,
|
|
1894
|
+
size: m,
|
|
1895
|
+
className: y("gap-2", t),
|
|
1896
|
+
onClick: () => {
|
|
1897
|
+
var h;
|
|
1898
|
+
return v(((h = r[0]) == null ? void 0 : h.format) || o);
|
|
1899
|
+
},
|
|
1900
|
+
disabled: b,
|
|
1901
|
+
...u,
|
|
1902
|
+
children: [
|
|
1903
|
+
b ? /* @__PURE__ */ e(je, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(ze, { className: "h-4 w-4" }),
|
|
1904
|
+
l || "Export"
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
) : /* @__PURE__ */ f(Xe, { children: [
|
|
1908
|
+
/* @__PURE__ */ e(Ge, { asChild: !0, children: /* @__PURE__ */ f(
|
|
1909
|
+
j,
|
|
1910
|
+
{
|
|
1911
|
+
ref: p,
|
|
1912
|
+
variant: n,
|
|
1913
|
+
size: m,
|
|
1914
|
+
className: y("gap-2", t),
|
|
1915
|
+
disabled: b,
|
|
1916
|
+
...u,
|
|
1917
|
+
children: [
|
|
1918
|
+
b ? /* @__PURE__ */ e(je, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(ze, { className: "h-4 w-4" }),
|
|
1919
|
+
l || "Export",
|
|
1920
|
+
/* @__PURE__ */ e(Ze, { className: "h-3 w-3 opacity-50" })
|
|
1921
|
+
]
|
|
1922
|
+
}
|
|
1923
|
+
) }),
|
|
1924
|
+
/* @__PURE__ */ e(qe, { align: "end", children: r.map((h) => /* @__PURE__ */ f(
|
|
1925
|
+
Je,
|
|
1926
|
+
{
|
|
1927
|
+
onClick: () => v(h.format),
|
|
1928
|
+
disabled: h.disabled,
|
|
1929
|
+
className: "gap-2",
|
|
1930
|
+
children: [
|
|
1931
|
+
h.icon,
|
|
1932
|
+
h.label
|
|
1933
|
+
]
|
|
1934
|
+
},
|
|
1935
|
+
h.format
|
|
1936
|
+
)) })
|
|
1937
|
+
] });
|
|
1938
|
+
}
|
|
1939
|
+
);
|
|
1940
|
+
to.displayName = "ExportButton";
|
|
1941
|
+
const ro = d.forwardRef(
|
|
1942
|
+
({ className: t, ...s }, r) => /* @__PURE__ */ f("div", { ref: r, className: y("space-y-3 rounded-lg border p-4", t), ...s, children: [
|
|
1943
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/2" }),
|
|
1944
|
+
/* @__PURE__ */ e(S, { className: "h-8 w-3/4" }),
|
|
1945
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-full" }),
|
|
1946
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-2/3" })
|
|
1947
|
+
] })
|
|
1948
|
+
);
|
|
1949
|
+
ro.displayName = "SkeletonCard";
|
|
1950
|
+
const Ue = () => /* @__PURE__ */ f("div", { className: "space-y-3 rounded-lg border p-4", children: [
|
|
1951
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/2" }),
|
|
1952
|
+
/* @__PURE__ */ e(S, { className: "h-8 w-3/4" }),
|
|
1953
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-full" }),
|
|
1954
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-2/3" })
|
|
1955
|
+
] }), so = d.forwardRef(
|
|
1956
|
+
({ className: t, rows: s = 5, columns: r = 4, ...a }, o) => /* @__PURE__ */ f("div", { ref: o, className: y("space-y-2", t), ...a, children: [
|
|
1957
|
+
/* @__PURE__ */ e("div", { className: "flex gap-4 border-b pb-2", children: Array.from({ length: r }).map((c, n) => /* @__PURE__ */ e(S, { className: "h-4 flex-1" }, n)) }),
|
|
1958
|
+
Array.from({ length: s }).map((c, n) => /* @__PURE__ */ e("div", { className: "flex gap-4 py-2", children: Array.from({ length: r }).map((m, l) => /* @__PURE__ */ e(S, { className: "h-4 flex-1" }, l)) }, n))
|
|
1959
|
+
] })
|
|
1960
|
+
);
|
|
1961
|
+
so.displayName = "SkeletonTable";
|
|
1962
|
+
const ao = ({ rows: t = 5 }) => /* @__PURE__ */ f("div", { className: "space-y-2", children: [
|
|
1963
|
+
/* @__PURE__ */ f("div", { className: "flex gap-4 border-b pb-2", children: [
|
|
1964
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
1965
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
1966
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
1967
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" })
|
|
1968
|
+
] }),
|
|
1969
|
+
Array.from({ length: t }).map((s, r) => /* @__PURE__ */ f("div", { className: "flex gap-4 py-2", children: [
|
|
1970
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
1971
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
1972
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" }),
|
|
1973
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/4" })
|
|
1974
|
+
] }, r))
|
|
1975
|
+
] }), oo = d.forwardRef(
|
|
1976
|
+
({ className: t, items: s = 3, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: y("space-y-3", t), ...r, children: Array.from({ length: s }).map((o, c) => /* @__PURE__ */ f("div", { className: "flex items-center gap-3", children: [
|
|
1977
|
+
/* @__PURE__ */ e(S, { className: "h-10 w-10 rounded-full" }),
|
|
1978
|
+
/* @__PURE__ */ f("div", { className: "flex-1 space-y-1.5", children: [
|
|
1979
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/3" }),
|
|
1980
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-2/3" })
|
|
1981
|
+
] })
|
|
1982
|
+
] }, c)) })
|
|
1983
|
+
);
|
|
1984
|
+
oo.displayName = "SkeletonList";
|
|
1985
|
+
const no = ({ items: t = 3 }) => /* @__PURE__ */ e("div", { className: "space-y-3", children: Array.from({ length: t }).map((s, r) => /* @__PURE__ */ f("div", { className: "flex items-center gap-3", children: [
|
|
1986
|
+
/* @__PURE__ */ e(S, { className: "h-10 w-10 rounded-full" }),
|
|
1987
|
+
/* @__PURE__ */ f("div", { className: "flex-1 space-y-1.5", children: [
|
|
1988
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-1/3" }),
|
|
1989
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-2/3" })
|
|
1990
|
+
] })
|
|
1991
|
+
] }, r)) }), io = () => /* @__PURE__ */ f("div", { className: "space-y-4", children: [
|
|
1992
|
+
/* @__PURE__ */ f("div", { className: "space-y-2", children: [
|
|
1993
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-20" }),
|
|
1994
|
+
/* @__PURE__ */ e(S, { className: "h-10 w-full" })
|
|
1995
|
+
] }),
|
|
1996
|
+
/* @__PURE__ */ f("div", { className: "space-y-2", children: [
|
|
1997
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-24" }),
|
|
1998
|
+
/* @__PURE__ */ e(S, { className: "h-10 w-full" })
|
|
1999
|
+
] }),
|
|
2000
|
+
/* @__PURE__ */ f("div", { className: "space-y-2", children: [
|
|
2001
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-16" }),
|
|
2002
|
+
/* @__PURE__ */ e(S, { className: "h-24 w-full" })
|
|
2003
|
+
] }),
|
|
2004
|
+
/* @__PURE__ */ e(S, { className: "h-10 w-24" })
|
|
2005
|
+
] }), lo = d.forwardRef(
|
|
2006
|
+
({ className: t, ...s }, r) => /* @__PURE__ */ f("div", { ref: r, className: y("flex items-start gap-4", t), ...s, children: [
|
|
2007
|
+
/* @__PURE__ */ e(S, { className: "h-20 w-20 rounded-full" }),
|
|
2008
|
+
/* @__PURE__ */ f("div", { className: "flex-1 space-y-2", children: [
|
|
2009
|
+
/* @__PURE__ */ e(S, { className: "h-6 w-48" }),
|
|
2010
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-32" }),
|
|
2011
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-64" })
|
|
2012
|
+
] })
|
|
2013
|
+
] })
|
|
2014
|
+
);
|
|
2015
|
+
lo.displayName = "SkeletonProfile";
|
|
2016
|
+
const co = () => /* @__PURE__ */ f("div", { className: "flex items-start gap-4", children: [
|
|
2017
|
+
/* @__PURE__ */ e(S, { className: "h-20 w-20 rounded-full" }),
|
|
2018
|
+
/* @__PURE__ */ f("div", { className: "flex-1 space-y-2", children: [
|
|
2019
|
+
/* @__PURE__ */ e(S, { className: "h-6 w-48" }),
|
|
2020
|
+
/* @__PURE__ */ e(S, { className: "h-4 w-32" }),
|
|
2021
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-64" })
|
|
2022
|
+
] })
|
|
2023
|
+
] }), uo = ({ count: t = 4 }) => /* @__PURE__ */ e("div", { className: "grid grid-cols-2 gap-4 md:grid-cols-4", children: Array.from({ length: t }).map((s, r) => /* @__PURE__ */ f("div", { className: "space-y-2 rounded-lg border p-4", children: [
|
|
2024
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-20" }),
|
|
2025
|
+
/* @__PURE__ */ e(S, { className: "h-8 w-24" }),
|
|
2026
|
+
/* @__PURE__ */ e(S, { className: "h-3 w-16" })
|
|
2027
|
+
] }, r)) }), mo = d.forwardRef(
|
|
2028
|
+
({ className: t, lines: s = 3, ...r }, a) => /* @__PURE__ */ e("div", { ref: a, className: y("space-y-2", t), ...r, children: Array.from({ length: s }).map((o, c) => /* @__PURE__ */ e(
|
|
2029
|
+
S,
|
|
2030
|
+
{
|
|
2031
|
+
className: y("h-4", c === s - 1 ? "w-3/4" : "w-full")
|
|
2032
|
+
},
|
|
2033
|
+
c
|
|
2034
|
+
)) })
|
|
2035
|
+
);
|
|
2036
|
+
mo.displayName = "SkeletonText";
|
|
2037
|
+
const fo = d.forwardRef(
|
|
2038
|
+
({ className: t, variant: s = "card", count: r = 1, ...a }, o) => {
|
|
2039
|
+
const c = () => {
|
|
2040
|
+
switch (s) {
|
|
2041
|
+
case "card":
|
|
2042
|
+
return Array.from({ length: r }).map((n, m) => /* @__PURE__ */ e(Ue, {}, m));
|
|
2043
|
+
case "table":
|
|
2044
|
+
return /* @__PURE__ */ e(ao, { rows: r });
|
|
2045
|
+
case "list":
|
|
2046
|
+
return /* @__PURE__ */ e(no, { items: r });
|
|
2047
|
+
case "form":
|
|
2048
|
+
return /* @__PURE__ */ e(io, {});
|
|
2049
|
+
case "profile":
|
|
2050
|
+
return /* @__PURE__ */ e(co, {});
|
|
2051
|
+
case "stats":
|
|
2052
|
+
return /* @__PURE__ */ e(uo, { count: r });
|
|
2053
|
+
default:
|
|
2054
|
+
return /* @__PURE__ */ e(Ue, {});
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
return /* @__PURE__ */ e(
|
|
2058
|
+
"div",
|
|
2059
|
+
{
|
|
2060
|
+
ref: o,
|
|
2061
|
+
className: y(s === "card" && r > 1 && "grid gap-4 md:grid-cols-2 lg:grid-cols-3", t),
|
|
2062
|
+
...a,
|
|
2063
|
+
children: c()
|
|
2064
|
+
}
|
|
2065
|
+
);
|
|
2066
|
+
}
|
|
2067
|
+
);
|
|
2068
|
+
fo.displayName = "SkeletonLoader";
|
|
2069
|
+
const po = {
|
|
2070
|
+
beta: {
|
|
2071
|
+
label: "Beta",
|
|
2072
|
+
className: "bg-info/20 text-info hover:bg-info/30 border-info/30",
|
|
2073
|
+
defaultTooltip: "This feature is in beta and may change"
|
|
2074
|
+
},
|
|
2075
|
+
new: {
|
|
2076
|
+
label: "New",
|
|
2077
|
+
className: "bg-success/20 text-success hover:bg-success/30 border-success/30",
|
|
2078
|
+
defaultTooltip: "This feature was recently added"
|
|
2079
|
+
},
|
|
2080
|
+
experimental: {
|
|
2081
|
+
label: "Experimental",
|
|
2082
|
+
className: "bg-warning/20 text-warning hover:bg-warning/30 border-warning/30",
|
|
2083
|
+
defaultTooltip: "This feature is experimental and may not work as expected"
|
|
2084
|
+
},
|
|
2085
|
+
"coming-soon": {
|
|
2086
|
+
label: "Coming Soon",
|
|
2087
|
+
className: "bg-muted text-muted-foreground hover:bg-muted/80 border-muted",
|
|
2088
|
+
defaultTooltip: "This feature is coming soon"
|
|
2089
|
+
},
|
|
2090
|
+
deprecated: {
|
|
2091
|
+
label: "Deprecated",
|
|
2092
|
+
className: "bg-destructive/20 text-destructive hover:bg-destructive/30 border-destructive/30",
|
|
2093
|
+
defaultTooltip: "This feature is deprecated and will be removed"
|
|
2094
|
+
}
|
|
2095
|
+
}, ho = d.forwardRef(
|
|
2096
|
+
({ className: t, variant: s = "beta", tooltip: r, showTooltip: a = !0, children: o, ...c }, n) => {
|
|
2097
|
+
const m = po[s], l = r || m.defaultTooltip, u = /* @__PURE__ */ e("span", { ref: n, children: /* @__PURE__ */ e(
|
|
2098
|
+
le,
|
|
2099
|
+
{
|
|
2100
|
+
className: y("text-xs font-medium border", m.className, t),
|
|
2101
|
+
...c,
|
|
2102
|
+
children: o || m.label
|
|
2103
|
+
}
|
|
2104
|
+
) });
|
|
2105
|
+
return a ? /* @__PURE__ */ e(De, { children: /* @__PURE__ */ f(ee, { children: [
|
|
2106
|
+
/* @__PURE__ */ e(te, { asChild: !0, children: u }),
|
|
2107
|
+
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("p", { children: l }) })
|
|
2108
|
+
] }) }) : u;
|
|
2109
|
+
}
|
|
2110
|
+
);
|
|
2111
|
+
ho.displayName = "BetaBadge";
|
|
2112
|
+
const go = {
|
|
2113
|
+
default: { bg: "bg-primary/10", text: "text-primary", border: "border-primary" },
|
|
2114
|
+
work: { bg: "bg-blue-100", text: "text-blue-700", border: "border-blue-500" },
|
|
2115
|
+
personal: { bg: "bg-green-100", text: "text-green-700", border: "border-green-500" },
|
|
2116
|
+
meeting: { bg: "bg-purple-100", text: "text-purple-700", border: "border-purple-500" },
|
|
2117
|
+
reminder: { bg: "bg-yellow-100", text: "text-yellow-700", border: "border-yellow-500" },
|
|
2118
|
+
holiday: { bg: "bg-red-100", text: "text-red-700", border: "border-red-500" }
|
|
2119
|
+
}, I = (t) => typeof t == "string" ? ft(t) : t, vo = ({
|
|
2120
|
+
date: t,
|
|
2121
|
+
view: s,
|
|
2122
|
+
onViewChange: r,
|
|
2123
|
+
onNavigate: a,
|
|
2124
|
+
showViewSelector: o = !0,
|
|
2125
|
+
showNavigation: c = !0,
|
|
2126
|
+
showToday: n = !0
|
|
2127
|
+
}) => {
|
|
2128
|
+
const { t: m, formatDate: l } = Z(), u = () => {
|
|
2129
|
+
switch (s) {
|
|
2130
|
+
case "month":
|
|
2131
|
+
return l(t, "MMMM yyyy");
|
|
2132
|
+
case "week": {
|
|
2133
|
+
const p = me(t), i = _e(t);
|
|
2134
|
+
return p.getMonth() === i.getMonth() ? `${l(p, "MMM d")} - ${l(i, "d, yyyy")}` : `${l(p, "MMM d")} - ${l(i, "MMM d, yyyy")}`;
|
|
2135
|
+
}
|
|
2136
|
+
case "day":
|
|
2137
|
+
return l(t, "EEEE, MMMM d, yyyy");
|
|
2138
|
+
case "agenda":
|
|
2139
|
+
return l(t, "MMMM yyyy");
|
|
2140
|
+
default:
|
|
2141
|
+
return l(t, "MMMM yyyy");
|
|
2142
|
+
}
|
|
2143
|
+
};
|
|
2144
|
+
return /* @__PURE__ */ f("div", { className: "flex items-center justify-between border-b p-4", children: [
|
|
2145
|
+
/* @__PURE__ */ f("div", { className: "flex items-center gap-4", children: [
|
|
2146
|
+
c && /* @__PURE__ */ f("div", { className: "flex items-center gap-1", children: [
|
|
2147
|
+
/* @__PURE__ */ e(
|
|
2148
|
+
j,
|
|
2149
|
+
{
|
|
2150
|
+
variant: "outline",
|
|
2151
|
+
size: "icon",
|
|
2152
|
+
onClick: () => a("prev"),
|
|
2153
|
+
className: "h-8 w-8",
|
|
2154
|
+
children: /* @__PURE__ */ e(ct, { className: "h-4 w-4" })
|
|
2155
|
+
}
|
|
2156
|
+
),
|
|
2157
|
+
/* @__PURE__ */ e(
|
|
2158
|
+
j,
|
|
2159
|
+
{
|
|
2160
|
+
variant: "outline",
|
|
2161
|
+
size: "icon",
|
|
2162
|
+
onClick: () => a("next"),
|
|
2163
|
+
className: "h-8 w-8",
|
|
2164
|
+
children: /* @__PURE__ */ e(dt, { className: "h-4 w-4" })
|
|
2165
|
+
}
|
|
2166
|
+
)
|
|
2167
|
+
] }),
|
|
2168
|
+
n && /* @__PURE__ */ e(j, { variant: "outline", size: "sm", onClick: () => a("today"), children: m("calendar.today") }),
|
|
2169
|
+
/* @__PURE__ */ e("h2", { className: "text-lg font-semibold", children: u() })
|
|
2170
|
+
] }),
|
|
2171
|
+
o && /* @__PURE__ */ f(Xr, { value: s, onValueChange: (p) => r(p), children: [
|
|
2172
|
+
/* @__PURE__ */ e(Gr, { className: "w-32", children: /* @__PURE__ */ e(qr, {}) }),
|
|
2173
|
+
/* @__PURE__ */ f(Jr, { children: [
|
|
2174
|
+
/* @__PURE__ */ e(ne, { value: "month", children: m("calendar.month") }),
|
|
2175
|
+
/* @__PURE__ */ e(ne, { value: "week", children: m("calendar.week") }),
|
|
2176
|
+
/* @__PURE__ */ e(ne, { value: "day", children: m("calendar.day") }),
|
|
2177
|
+
/* @__PURE__ */ e(ne, { value: "agenda", children: m("calendar.agenda") })
|
|
2178
|
+
] })
|
|
2179
|
+
] })
|
|
2180
|
+
] });
|
|
2181
|
+
}, J = ({ event: t, compact: s = !1, onClick: r }) => {
|
|
2182
|
+
const { t: a, formatDate: o } = Z(), c = t.category || "default", n = go[c], m = I(t.start), l = I(t.end);
|
|
2183
|
+
return s ? /* @__PURE__ */ f(
|
|
2184
|
+
"button",
|
|
2185
|
+
{
|
|
2186
|
+
onClick: () => r == null ? void 0 : r(t),
|
|
2187
|
+
className: y(
|
|
2188
|
+
"w-full truncate rounded px-1 py-0.5 text-left text-xs",
|
|
2189
|
+
n.bg,
|
|
2190
|
+
n.text,
|
|
2191
|
+
"hover:opacity-80 transition-opacity"
|
|
2192
|
+
),
|
|
2193
|
+
children: [
|
|
2194
|
+
!t.allDay && /* @__PURE__ */ f("span", { className: "font-medium", children: [
|
|
2195
|
+
K(m, "h:mm"),
|
|
2196
|
+
" "
|
|
2197
|
+
] }),
|
|
2198
|
+
t.title
|
|
2199
|
+
]
|
|
2200
|
+
}
|
|
2201
|
+
) : /* @__PURE__ */ f(Ts, { children: [
|
|
2202
|
+
/* @__PURE__ */ e(Ss, { asChild: !0, children: /* @__PURE__ */ f(
|
|
2203
|
+
"button",
|
|
2204
|
+
{
|
|
2205
|
+
className: y(
|
|
2206
|
+
"w-full truncate rounded-md px-2 py-1 text-left text-sm border-l-2",
|
|
2207
|
+
n.bg,
|
|
2208
|
+
n.text,
|
|
2209
|
+
n.border,
|
|
2210
|
+
"hover:opacity-80 transition-opacity"
|
|
2211
|
+
),
|
|
2212
|
+
children: [
|
|
2213
|
+
/* @__PURE__ */ e("div", { className: "font-medium truncate", children: t.title }),
|
|
2214
|
+
!t.allDay && /* @__PURE__ */ f("div", { className: "text-xs opacity-75", children: [
|
|
2215
|
+
K(m, "h:mm a"),
|
|
2216
|
+
" - ",
|
|
2217
|
+
K(l, "h:mm a")
|
|
2218
|
+
] })
|
|
2219
|
+
]
|
|
2220
|
+
}
|
|
2221
|
+
) }),
|
|
2222
|
+
/* @__PURE__ */ e(Es, { className: "w-80", align: "start", children: /* @__PURE__ */ f("div", { className: "space-y-3", children: [
|
|
2223
|
+
/* @__PURE__ */ f("div", { className: "flex items-start justify-between", children: [
|
|
2224
|
+
/* @__PURE__ */ e("h3", { className: "font-semibold text-lg", children: t.title }),
|
|
2225
|
+
/* @__PURE__ */ e(le, { variant: "secondary", className: y("capitalize", n.bg, n.text), children: c })
|
|
2226
|
+
] }),
|
|
2227
|
+
/* @__PURE__ */ f("div", { className: "space-y-2 text-sm", children: [
|
|
2228
|
+
/* @__PURE__ */ f("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
2229
|
+
/* @__PURE__ */ e(Cs, { className: "h-4 w-4" }),
|
|
2230
|
+
t.allDay ? /* @__PURE__ */ e("span", { children: a("calendar.allDay") }) : /* @__PURE__ */ f("span", { children: [
|
|
2231
|
+
o(m, "MMM d, h:mm a"),
|
|
2232
|
+
" - ",
|
|
2233
|
+
K(l, "h:mm a")
|
|
2234
|
+
] })
|
|
2235
|
+
] }),
|
|
2236
|
+
t.location && /* @__PURE__ */ f("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
2237
|
+
/* @__PURE__ */ e(us, { className: "h-4 w-4" }),
|
|
2238
|
+
/* @__PURE__ */ e("span", { children: t.location })
|
|
2239
|
+
] }),
|
|
2240
|
+
t.description && /* @__PURE__ */ e("p", { className: "text-muted-foreground pt-2", children: t.description })
|
|
2241
|
+
] }),
|
|
2242
|
+
/* @__PURE__ */ e("div", { className: "flex gap-2 pt-2", children: /* @__PURE__ */ e(j, { size: "sm", className: "flex-1", onClick: () => r == null ? void 0 : r(t), children: a("calendar.viewDetails") }) })
|
|
2243
|
+
] }) })
|
|
2244
|
+
] });
|
|
2245
|
+
}, bo = ({
|
|
2246
|
+
date: t,
|
|
2247
|
+
events: s,
|
|
2248
|
+
onEventClick: r,
|
|
2249
|
+
onDateClick: a
|
|
2250
|
+
}) => {
|
|
2251
|
+
const { t: o, formatDate: c } = Z(), n = Pe(t), m = Me(n), l = me(n), u = _e(m), p = [];
|
|
2252
|
+
let i = l;
|
|
2253
|
+
for (; i <= u; )
|
|
2254
|
+
p.push(i), i = ue(i, 1);
|
|
2255
|
+
const g = (b) => s.filter((h) => {
|
|
2256
|
+
const w = ke(I(h.start)), x = Ve(I(h.end));
|
|
2257
|
+
return $e(b, { start: w, end: x }) || Y(w, b);
|
|
2258
|
+
}), v = d.useMemo(() => [0, 1, 2, 3, 4, 5, 6].map((b) => {
|
|
2259
|
+
const h = new Date(2024, 0, b);
|
|
2260
|
+
return c(h, "EEE");
|
|
2261
|
+
}), [c]);
|
|
2262
|
+
return /* @__PURE__ */ f("div", { className: "flex-1 overflow-auto", children: [
|
|
2263
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 border-b", children: v.map((b, h) => /* @__PURE__ */ e(
|
|
2264
|
+
"div",
|
|
2265
|
+
{
|
|
2266
|
+
className: "border-r last:border-r-0 px-2 py-2 text-center text-sm font-medium text-muted-foreground",
|
|
2267
|
+
children: b
|
|
2268
|
+
},
|
|
2269
|
+
h
|
|
2270
|
+
)) }),
|
|
2271
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 flex-1", children: p.map((b, h) => {
|
|
2272
|
+
const w = mt(b, t), x = he(b), E = g(b);
|
|
2273
|
+
return /* @__PURE__ */ f(
|
|
2274
|
+
"div",
|
|
2275
|
+
{
|
|
2276
|
+
className: y(
|
|
2277
|
+
"min-h-[100px] border-r border-b last:border-r-0 p-1",
|
|
2278
|
+
!w && "bg-muted/30"
|
|
2279
|
+
),
|
|
2280
|
+
onClick: () => a == null ? void 0 : a(b),
|
|
2281
|
+
children: [
|
|
2282
|
+
/* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-1", children: /* @__PURE__ */ e(
|
|
2283
|
+
"span",
|
|
2284
|
+
{
|
|
2285
|
+
className: y(
|
|
2286
|
+
"flex h-6 w-6 items-center justify-center rounded-full text-sm",
|
|
2287
|
+
x && "bg-primary text-primary-foreground font-bold",
|
|
2288
|
+
!w && "text-muted-foreground"
|
|
2289
|
+
),
|
|
2290
|
+
children: K(b, "d")
|
|
2291
|
+
}
|
|
2292
|
+
) }),
|
|
2293
|
+
/* @__PURE__ */ f("div", { className: "space-y-0.5", children: [
|
|
2294
|
+
E.slice(0, 3).map((N) => /* @__PURE__ */ e(
|
|
2295
|
+
J,
|
|
2296
|
+
{
|
|
2297
|
+
event: N,
|
|
2298
|
+
compact: !0,
|
|
2299
|
+
onClick: r
|
|
2300
|
+
},
|
|
2301
|
+
N.id
|
|
2302
|
+
)),
|
|
2303
|
+
E.length > 3 && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground px-1", children: o("calendar.more", { count: E.length - 3 }) })
|
|
2304
|
+
] })
|
|
2305
|
+
]
|
|
2306
|
+
},
|
|
2307
|
+
h
|
|
2308
|
+
);
|
|
2309
|
+
}) })
|
|
2310
|
+
] });
|
|
2311
|
+
}, wo = ({
|
|
2312
|
+
date: t,
|
|
2313
|
+
events: s,
|
|
2314
|
+
onEventClick: r,
|
|
2315
|
+
onDateClick: a
|
|
2316
|
+
}) => {
|
|
2317
|
+
const { t: o, formatDate: c } = Z(), n = me(t), m = Array.from({ length: 24 }, (i, g) => g), l = Array.from({ length: 7 }, (i, g) => ue(n, g)), u = (i, g) => s.filter((v) => {
|
|
2318
|
+
if (v.allDay) return !1;
|
|
2319
|
+
const b = I(v.start);
|
|
2320
|
+
return Y(b, i) && Dr(b) === g;
|
|
2321
|
+
}), p = (i) => s.filter((g) => {
|
|
2322
|
+
if (!g.allDay) return !1;
|
|
2323
|
+
const v = ke(I(g.start)), b = Ve(I(g.end));
|
|
2324
|
+
return $e(i, { start: v, end: b }) || Y(v, i);
|
|
2325
|
+
});
|
|
2326
|
+
return /* @__PURE__ */ f("div", { className: "flex-1 flex flex-col overflow-hidden", children: [
|
|
2327
|
+
/* @__PURE__ */ f("div", { className: "flex border-b", children: [
|
|
2328
|
+
/* @__PURE__ */ e("div", { className: "w-16 flex-shrink-0" }),
|
|
2329
|
+
l.map((i) => /* @__PURE__ */ f(
|
|
2330
|
+
"div",
|
|
2331
|
+
{
|
|
2332
|
+
className: "flex-1 border-l px-2 py-2 text-center",
|
|
2333
|
+
children: [
|
|
2334
|
+
/* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground", children: c(i, "EEE") }),
|
|
2335
|
+
/* @__PURE__ */ e(
|
|
2336
|
+
"div",
|
|
2337
|
+
{
|
|
2338
|
+
className: y(
|
|
2339
|
+
"text-lg font-semibold",
|
|
2340
|
+
he(i) && "text-primary"
|
|
2341
|
+
),
|
|
2342
|
+
children: K(i, "d")
|
|
2343
|
+
}
|
|
2344
|
+
)
|
|
2345
|
+
]
|
|
2346
|
+
},
|
|
2347
|
+
i.toISOString()
|
|
2348
|
+
))
|
|
2349
|
+
] }),
|
|
2350
|
+
/* @__PURE__ */ f("div", { className: "flex border-b", children: [
|
|
2351
|
+
/* @__PURE__ */ e("div", { className: "w-16 flex-shrink-0 px-2 py-1 text-xs text-muted-foreground", children: o("calendar.allDay") }),
|
|
2352
|
+
l.map((i) => {
|
|
2353
|
+
const g = p(i);
|
|
2354
|
+
return /* @__PURE__ */ e("div", { className: "flex-1 border-l px-1 py-1 min-h-[40px]", children: g.map((v) => /* @__PURE__ */ e(J, { event: v, compact: !0, onClick: r }, v.id)) }, i.toISOString());
|
|
2355
|
+
})
|
|
2356
|
+
] }),
|
|
2357
|
+
/* @__PURE__ */ e("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ e("div", { className: "relative", children: m.map((i) => /* @__PURE__ */ f("div", { className: "flex h-12 border-b", children: [
|
|
2358
|
+
/* @__PURE__ */ e("div", { className: "w-16 flex-shrink-0 px-2 py-1 text-xs text-muted-foreground text-right", children: K(de(/* @__PURE__ */ new Date(), i), "h a") }),
|
|
2359
|
+
l.map((g) => {
|
|
2360
|
+
const v = u(g, i);
|
|
2361
|
+
return /* @__PURE__ */ e(
|
|
2362
|
+
"div",
|
|
2363
|
+
{
|
|
2364
|
+
className: "flex-1 border-l relative",
|
|
2365
|
+
onClick: () => a == null ? void 0 : a(de(Ar(g, 0), i)),
|
|
2366
|
+
children: v.map((b) => {
|
|
2367
|
+
const h = I(b.start), w = I(b.end), x = Cr(w, h), E = Rr(h) / 60 * 100, N = Math.max(x / 60 * 100, 25);
|
|
2368
|
+
return /* @__PURE__ */ e(
|
|
2369
|
+
"div",
|
|
2370
|
+
{
|
|
2371
|
+
className: "absolute left-0 right-0 mx-0.5 overflow-hidden",
|
|
2372
|
+
style: {
|
|
2373
|
+
top: `${E}%`,
|
|
2374
|
+
height: `${N}%`,
|
|
2375
|
+
minHeight: "20px"
|
|
2376
|
+
},
|
|
2377
|
+
children: /* @__PURE__ */ e(J, { event: b, compact: !0, onClick: r })
|
|
2378
|
+
},
|
|
2379
|
+
b.id
|
|
2380
|
+
);
|
|
2381
|
+
})
|
|
2382
|
+
},
|
|
2383
|
+
g.toISOString()
|
|
2384
|
+
);
|
|
2385
|
+
})
|
|
2386
|
+
] }, i)) }) })
|
|
2387
|
+
] });
|
|
2388
|
+
}, yo = ({
|
|
2389
|
+
date: t,
|
|
2390
|
+
events: s,
|
|
2391
|
+
onEventClick: r,
|
|
2392
|
+
onDateClick: a
|
|
2393
|
+
}) => {
|
|
2394
|
+
const { t: o } = Z(), c = Array.from({ length: 24 }, (l, u) => u), n = (l) => s.filter((u) => {
|
|
2395
|
+
if (u.allDay) return !1;
|
|
2396
|
+
const p = I(u.start);
|
|
2397
|
+
return Y(p, t) && Dr(p) === l;
|
|
2398
|
+
}), m = s.filter((l) => {
|
|
2399
|
+
if (!l.allDay) return !1;
|
|
2400
|
+
const u = ke(I(l.start)), p = Ve(I(l.end));
|
|
2401
|
+
return $e(t, { start: u, end: p }) || Y(u, t);
|
|
2402
|
+
});
|
|
2403
|
+
return /* @__PURE__ */ f("div", { className: "flex-1 flex flex-col overflow-hidden", children: [
|
|
2404
|
+
m.length > 0 && /* @__PURE__ */ f("div", { className: "border-b p-2 space-y-1", children: [
|
|
2405
|
+
/* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground mb-1", children: o("calendar.allDay") }),
|
|
2406
|
+
m.map((l) => /* @__PURE__ */ e(J, { event: l, onClick: r }, l.id))
|
|
2407
|
+
] }),
|
|
2408
|
+
/* @__PURE__ */ e("div", { className: "flex-1 overflow-auto", children: c.map((l) => {
|
|
2409
|
+
const u = n(l);
|
|
2410
|
+
return /* @__PURE__ */ f(
|
|
2411
|
+
"div",
|
|
2412
|
+
{
|
|
2413
|
+
className: "flex h-16 border-b hover:bg-muted/50 transition-colors",
|
|
2414
|
+
onClick: () => a == null ? void 0 : a(de(Ar(t, 0), l)),
|
|
2415
|
+
children: [
|
|
2416
|
+
/* @__PURE__ */ e("div", { className: "w-20 flex-shrink-0 px-3 py-1 text-sm text-muted-foreground text-right border-r", children: K(de(/* @__PURE__ */ new Date(), l), "h:mm a") }),
|
|
2417
|
+
/* @__PURE__ */ e("div", { className: "flex-1 px-2 py-1 relative", children: u.map((p) => {
|
|
2418
|
+
const i = I(p.start), g = I(p.end), v = Cr(g, i), b = Math.max(v / 60 * 64, 32);
|
|
2419
|
+
return /* @__PURE__ */ e(
|
|
2420
|
+
"div",
|
|
2421
|
+
{
|
|
2422
|
+
className: "absolute left-2 right-2",
|
|
2423
|
+
style: {
|
|
2424
|
+
top: `${Rr(i) / 60 * 100}%`,
|
|
2425
|
+
height: `${b}px`
|
|
2426
|
+
},
|
|
2427
|
+
children: /* @__PURE__ */ e(J, { event: p, onClick: r })
|
|
2428
|
+
},
|
|
2429
|
+
p.id
|
|
2430
|
+
);
|
|
2431
|
+
}) })
|
|
2432
|
+
]
|
|
2433
|
+
},
|
|
2434
|
+
l
|
|
2435
|
+
);
|
|
2436
|
+
}) })
|
|
2437
|
+
] });
|
|
2438
|
+
}, xo = ({ date: t, events: s, onEventClick: r }) => {
|
|
2439
|
+
const { t: a, formatDate: o } = Z(), c = Pe(t), n = Me(t), l = s.filter((p) => {
|
|
2440
|
+
const i = I(p.start);
|
|
2441
|
+
return i >= c && i <= n;
|
|
2442
|
+
}).sort((p, i) => I(p.start).getTime() - I(i.start).getTime()).reduce((p, i) => {
|
|
2443
|
+
const g = K(I(i.start), "yyyy-MM-dd");
|
|
2444
|
+
return p[g] || (p[g] = []), p[g].push(i), p;
|
|
2445
|
+
}, {}), u = Object.keys(l).sort();
|
|
2446
|
+
return u.length === 0 ? /* @__PURE__ */ e("div", { className: "flex-1 flex items-center justify-center text-muted-foreground", children: a("calendar.noEvents") }) : /* @__PURE__ */ e("div", { className: "flex-1 overflow-auto p-4", children: /* @__PURE__ */ e("div", { className: "space-y-6", children: u.map((p) => {
|
|
2447
|
+
const i = ft(p), g = l[p];
|
|
2448
|
+
return /* @__PURE__ */ f("div", { children: [
|
|
2449
|
+
/* @__PURE__ */ f("div", { className: "flex items-center gap-3 mb-3", children: [
|
|
2450
|
+
/* @__PURE__ */ f(
|
|
2451
|
+
"div",
|
|
2452
|
+
{
|
|
2453
|
+
className: y(
|
|
2454
|
+
"flex h-12 w-12 flex-col items-center justify-center rounded-lg",
|
|
2455
|
+
he(i) ? "bg-primary text-primary-foreground" : "bg-muted"
|
|
2456
|
+
),
|
|
2457
|
+
children: [
|
|
2458
|
+
/* @__PURE__ */ e("span", { className: "text-xs font-medium uppercase", children: o(i, "EEE") }),
|
|
2459
|
+
/* @__PURE__ */ e("span", { className: "text-lg font-bold", children: K(i, "d") })
|
|
2460
|
+
]
|
|
2461
|
+
}
|
|
2462
|
+
),
|
|
2463
|
+
/* @__PURE__ */ f("div", { children: [
|
|
2464
|
+
/* @__PURE__ */ e("div", { className: "font-semibold", children: o(i, "EEEE") }),
|
|
2465
|
+
/* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground", children: o(i, "MMMM d, yyyy") })
|
|
2466
|
+
] })
|
|
2467
|
+
] }),
|
|
2468
|
+
/* @__PURE__ */ e("div", { className: "space-y-2 pl-15", children: g.map((v) => /* @__PURE__ */ e(J, { event: v, onClick: r }, v.id)) })
|
|
2469
|
+
] }, p);
|
|
2470
|
+
}) }) });
|
|
2471
|
+
}, No = d.forwardRef(
|
|
2472
|
+
({
|
|
2473
|
+
className: t,
|
|
2474
|
+
events: s = [],
|
|
2475
|
+
view: r,
|
|
2476
|
+
defaultView: a = "month",
|
|
2477
|
+
onViewChange: o,
|
|
2478
|
+
date: c,
|
|
2479
|
+
defaultDate: n,
|
|
2480
|
+
onDateChange: m,
|
|
2481
|
+
onEventClick: l,
|
|
2482
|
+
onDateClick: u,
|
|
2483
|
+
onEventCreate: p,
|
|
2484
|
+
showViewSelector: i = !0,
|
|
2485
|
+
showNavigation: g = !0,
|
|
2486
|
+
showToday: v = !0,
|
|
2487
|
+
...b
|
|
2488
|
+
}, h) => {
|
|
2489
|
+
const [w, x] = d.useState(a), [E, N] = d.useState(n || /* @__PURE__ */ new Date()), T = r ?? w, D = c ?? E, M = (_) => {
|
|
2490
|
+
r === void 0 && x(_), o == null || o(_);
|
|
2491
|
+
}, R = (_) => {
|
|
2492
|
+
c === void 0 && N(_), m == null || m(_);
|
|
2493
|
+
}, L = (_) => {
|
|
2494
|
+
let P;
|
|
2495
|
+
if (_ === "today")
|
|
2496
|
+
P = /* @__PURE__ */ new Date();
|
|
2497
|
+
else {
|
|
2498
|
+
const A = _ === "prev" ? -1 : 1;
|
|
2499
|
+
switch (T) {
|
|
2500
|
+
case "month":
|
|
2501
|
+
case "agenda":
|
|
2502
|
+
P = A > 0 ? Ae(D, 1) : Pr(D);
|
|
2503
|
+
break;
|
|
2504
|
+
case "week":
|
|
2505
|
+
P = A > 0 ? ut(D, 1) : Ha(D);
|
|
2506
|
+
break;
|
|
2507
|
+
case "day":
|
|
2508
|
+
P = A > 0 ? ue(D, 1) : ps(D, 1);
|
|
2509
|
+
break;
|
|
2510
|
+
default:
|
|
2511
|
+
P = D;
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
R(P);
|
|
2515
|
+
};
|
|
2516
|
+
return /* @__PURE__ */ f(
|
|
2517
|
+
"div",
|
|
2518
|
+
{
|
|
2519
|
+
ref: h,
|
|
2520
|
+
className: y("flex flex-col h-full border rounded-lg bg-background", t),
|
|
2521
|
+
...b,
|
|
2522
|
+
children: [
|
|
2523
|
+
/* @__PURE__ */ e(
|
|
2524
|
+
vo,
|
|
2525
|
+
{
|
|
2526
|
+
date: D,
|
|
2527
|
+
view: T,
|
|
2528
|
+
onViewChange: M,
|
|
2529
|
+
onNavigate: L,
|
|
2530
|
+
showViewSelector: i,
|
|
2531
|
+
showNavigation: g,
|
|
2532
|
+
showToday: v
|
|
2533
|
+
}
|
|
2534
|
+
),
|
|
2535
|
+
T === "month" && /* @__PURE__ */ e(
|
|
2536
|
+
bo,
|
|
2537
|
+
{
|
|
2538
|
+
date: D,
|
|
2539
|
+
events: s,
|
|
2540
|
+
onEventClick: l,
|
|
2541
|
+
onDateClick: u
|
|
2542
|
+
}
|
|
2543
|
+
),
|
|
2544
|
+
T === "week" && /* @__PURE__ */ e(
|
|
2545
|
+
wo,
|
|
2546
|
+
{
|
|
2547
|
+
date: D,
|
|
2548
|
+
events: s,
|
|
2549
|
+
onEventClick: l,
|
|
2550
|
+
onDateClick: u
|
|
2551
|
+
}
|
|
2552
|
+
),
|
|
2553
|
+
T === "day" && /* @__PURE__ */ e(
|
|
2554
|
+
yo,
|
|
2555
|
+
{
|
|
2556
|
+
date: D,
|
|
2557
|
+
events: s,
|
|
2558
|
+
onEventClick: l,
|
|
2559
|
+
onDateClick: u
|
|
2560
|
+
}
|
|
2561
|
+
),
|
|
2562
|
+
T === "agenda" && /* @__PURE__ */ e(
|
|
2563
|
+
xo,
|
|
2564
|
+
{
|
|
2565
|
+
date: D,
|
|
2566
|
+
events: s,
|
|
2567
|
+
onEventClick: l
|
|
2568
|
+
}
|
|
2569
|
+
)
|
|
2570
|
+
]
|
|
2571
|
+
}
|
|
2572
|
+
);
|
|
2573
|
+
}
|
|
2574
|
+
);
|
|
2575
|
+
No.displayName = "FullCalendar";
|
|
2576
|
+
export {
|
|
2577
|
+
As as A,
|
|
2578
|
+
Js as B,
|
|
2579
|
+
en as C,
|
|
2580
|
+
Ga as D,
|
|
2581
|
+
qa as E,
|
|
2582
|
+
Za as F,
|
|
2583
|
+
Qa as G,
|
|
2584
|
+
to as H,
|
|
2585
|
+
qs as I,
|
|
2586
|
+
fo as J,
|
|
2587
|
+
ro as K,
|
|
2588
|
+
so as L,
|
|
2589
|
+
Ja as M,
|
|
2590
|
+
oo as N,
|
|
2591
|
+
lo as O,
|
|
2592
|
+
mo as P,
|
|
2593
|
+
ho as Q,
|
|
2594
|
+
No as R,
|
|
2595
|
+
Xs as S,
|
|
2596
|
+
Fa as T,
|
|
2597
|
+
vo as U,
|
|
2598
|
+
J as V,
|
|
2599
|
+
bo as W,
|
|
2600
|
+
wo as X,
|
|
2601
|
+
yo as Y,
|
|
2602
|
+
xo as Z,
|
|
2603
|
+
go as _,
|
|
2604
|
+
Ps as a,
|
|
2605
|
+
Ms as b,
|
|
2606
|
+
Us as c,
|
|
2607
|
+
Ys as d,
|
|
2608
|
+
kt as e,
|
|
2609
|
+
Qo as f,
|
|
2610
|
+
It as g,
|
|
2611
|
+
Ft as h,
|
|
2612
|
+
Ot as i,
|
|
2613
|
+
Lt as j,
|
|
2614
|
+
Vt as k,
|
|
2615
|
+
$t as l,
|
|
2616
|
+
Bt as m,
|
|
2617
|
+
Gs as n,
|
|
2618
|
+
tn as o,
|
|
2619
|
+
rn as p,
|
|
2620
|
+
ga as q,
|
|
2621
|
+
xr as r,
|
|
2622
|
+
Nr as s,
|
|
2623
|
+
Sr as t,
|
|
2624
|
+
Er as u,
|
|
2625
|
+
Tr as v,
|
|
2626
|
+
La as w,
|
|
2627
|
+
sn as x,
|
|
2628
|
+
ja as y,
|
|
2629
|
+
za as z
|
|
2630
|
+
};
|
|
2631
|
+
//# sourceMappingURL=full-calendar-CjaDgutS.js.map
|