@softistx/material 3.248.0 → 3.249.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +6 -2
- package/dist/adopt-styles-C3MfGnxE.js +20 -0
- package/dist/{async-slice-C5HfFq1M.js → async-slice-DdEr7vFx.js} +1 -1
- package/dist/{audio-player-2kKst8lH.js → audio-player-DMYszRGT.js} +3 -3
- package/dist/{audio-player-viewer-D9DsYBcy.js → audio-player-viewer-z13yCjo4.js} +2 -2
- package/dist/{autocomplete-JuRCjl48.js → autocomplete-Bgf_AJ6U.js} +11 -11
- package/dist/{avatar-CvvdaBu4.js → avatar-WvTropuJ.js} +1 -1
- package/dist/blank-placeholder-DZIFJ0DG.js +17 -0
- package/dist/{breadcrumb-DacRqg91.js → breadcrumb-DYa6pVsq.js} +5 -5
- package/dist/{button-CpUMPIdk.js → button-RsWgka2v.js} +1 -1
- package/dist/{calculator-BYgFgWHL.js → calculator-DPHCuAZy.js} +11 -11
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-DCHWZy6b.js → calculator-segment-Ckn9Fua9.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/canvas-BShNj4yp.js +144 -0
- package/dist/capture-outputs-qcYUPW6K.js +174 -0
- package/dist/capture-toolbar.css +2 -0
- package/dist/capture-toolbar.js +858 -0
- package/dist/capture.js +53 -139
- package/dist/charts.js +3 -3
- package/dist/{chip-CjJPmAYO.js → chip-tyDM0lpO.js} +2 -2
- package/dist/{code-editor-nNcxtslA.js → code-editor-gHHXEwF-.js} +6 -6
- package/dist/code-editor.js +6 -6
- package/dist/{code-file-viewer-CcESl49v.js → code-file-viewer-CYQcskvt.js} +4 -4
- package/dist/{code-language-items-CW8_Si05.js → code-language-items-DDFuDf_E.js} +2 -2
- package/dist/{components-BdMaUeOm.js → components-BbAylWQW.js} +16711 -20831
- package/dist/components.js +83 -79
- package/dist/{confirm-dialog-B2eonW2X.js → confirm-dialog-IHvPA3O2.js} +4 -4
- package/dist/{conversion-variant-DZm_xgUK.js → conversion-variant-MWTjnFnG.js} +5 -5
- package/dist/{currency-field-UIkYAlvP.js → currency-field-Bd9od1Ee.js} +5 -5
- package/dist/{detail-panel-header-CL2_tUG0.js → detail-panel-header-D2a63Sk3.js} +1 -1
- package/dist/{details-content-CPzj3vUr.js → details-content-CnN_ukTA.js} +6 -6
- package/dist/{details-header-band-D-CyB_Xx.js → details-header-band-wcgmC7qC.js} +5 -5
- package/dist/{details-host-BvYgFIWx.js → details-host-DKEaGH4P.js} +1 -1
- package/dist/{details-sheet-D4PTV_jR.js → details-sheet-CtNM4oDU.js} +2 -2
- package/dist/{details-shell-D4XoPRBu.js → details-shell-DZ80h6mN.js} +1 -1
- package/dist/{dialog-CleLsHkZ.js → dialog-DwUxG2-o.js} +1 -1
- package/dist/{dialog-app-bar-CLC990e6.js → dialog-app-bar-BsJ4UwKb.js} +2 -2
- package/dist/dist-Cb17ixQs.js +16 -0
- package/dist/dist-CyqFzDZ6.js +11 -0
- package/dist/dnd.js +1 -1
- package/dist/draw.js +1 -1
- package/dist/{drop-overlay-BTkVfscF.js → drop-overlay-B26hx0-T.js} +2 -2
- package/dist/{dropdown-menu-BoJC2DEH.js → dropdown-menu-D-PRbHaP.js} +1 -1
- package/dist/{editable-section-CTRGfbLJ.js → editable-section-DPmF1flG.js} +3 -3
- package/dist/editor.js +14 -14
- package/dist/embed-chunks/{avatar-GlGqPU7B.js → avatar-CSDtFCum.js} +1 -1
- package/dist/embed-chunks/{dist-BrYZYfsJ.js → dist-C-lAK_LC.js} +2 -2
- package/dist/embed-chunks/{emoji-picker-BSYBi_C8.js → emoji-picker-BWDQFdQu.js} +4 -4
- package/dist/embed-chunks/{mention-list-NW43QcRq.js → mention-list-CdUr0h3X.js} +3 -3
- package/dist/embed-chunks/{nxgt-theme-provider-B1aeqDja.js → nxgt-theme-provider-DdDsiEPj.js} +2 -2
- package/dist/embed-chunks/{switch-control-ChcowM3u.js → switch-control-B95ZWvna.js} +1 -1
- package/dist/embed-chunks/{tabs-root-CY-uLp1C.js → tabs-root-MF9lEHbq.js} +2 -2
- package/dist/embed-chunks/{use-shape-morph-NrJQMv7i.js → use-shape-morph-D1MOoQ4T.js} +110 -2
- package/dist/embed-chunks/{useLatest-B57qw3XH.js → useLatest-RGIW0nya.js} +1 -1
- package/dist/embed.js +626 -613
- package/dist/{emoji-picker-DZbTd3Fr.js → emoji-picker-DabgsEVQ.js} +7 -7
- package/dist/{empty-state-DBSJDLKL.js → empty-state-BylD7RYH.js} +1 -1
- package/dist/{error-state-kauz4If4.js → error-state-BTe_NzTC.js} +2 -2
- package/dist/fab-DUnGwNE7.js +41 -0
- package/dist/fab-dock-By2pLVh7.js +49 -0
- package/dist/{feature-popup-CcXMGFES.js → feature-popup-CW7VS2fx.js} +1 -1
- package/dist/{blank-placeholder-DeDn5Xor.js → field-box-BXN-uyrv.js} +1 -16
- package/dist/{field-group-BpV74Ttu.js → field-group-B2Ozd5Jn.js} +1 -1
- package/dist/{file-dialogs-CbdvmY__.js → file-dialogs-CgEXaCev.js} +7 -7
- package/dist/{file-manager-shell-DLaJ5Z_L.js → file-manager-shell-Tqduf5lh.js} +21 -21
- package/dist/{file-preview-host-RhZvGGqC.js → file-preview-host-CM4pV3ZD.js} +2367 -2384
- package/dist/{file-viewer-body-DM3RkXGn.js → file-viewer-body-DrWFmnp4.js} +3 -3
- package/dist/{file-viewer-dialog-impl-ei5EYj8k.js → file-viewer-dialog-impl-DZpuZZ7x.js} +2 -2
- package/dist/files-drop.js +1 -1
- package/dist/files-picker.js +8 -8
- package/dist/files.js +3 -3
- package/dist/{financial-variant-BNdOqzA5.js → financial-variant-ljdP0JL4.js} +5 -5
- package/dist/{flow-diagram-BBB6r8--.js → flow-diagram-DwUnyl0u.js} +1 -1
- package/dist/{gallery-CIIJHpmj.js → gallery-DfN2KE4Y.js} +11 -11
- package/dist/{gallery-file-viewer-DkshswFr.js → gallery-file-viewer-BfFWfLIF.js} +3 -3
- package/dist/{gl-markers-abqcNuYT.js → gl-markers-CBNFeWIk.js} +3 -3
- package/dist/{hooks-D6lOSXA5.js → hooks-DiAhgchz.js} +3 -3
- package/dist/hooks.js +3 -3
- package/dist/i18n.js +3 -3
- package/dist/{icon-button-GKYj7uC4.js → icon-button-D-gi4Plg.js} +1 -1
- package/dist/image-editor-mmhbsqs-.js +4423 -0
- package/dist/image-editor.css +1 -1
- package/dist/image-editor.js +1124 -848
- package/dist/image-markup-editor-D-QkZWKf.js +24 -0
- package/dist/input-CWf3Apid.js +18 -0
- package/dist/input-box-moFuoMt0.js +15 -0
- package/dist/{input-group-CKO68Pyi.js → input-group-Bb8sAFRF.js} +3 -2
- package/dist/{item-details-l_-rk3Hj.js → item-details-BWdHMfsS.js} +7 -7
- package/dist/keypad.js +2 -2
- package/dist/lib/capture/engine/canvas.d.ts +17 -0
- package/dist/lib/capture/engine/capture.d.ts +19 -0
- package/dist/lib/capture/engine/filters.d.ts +27 -0
- package/dist/lib/capture/engine/rect.d.ts +26 -0
- package/dist/lib/capture/engine/types.d.ts +66 -0
- package/dist/lib/capture/index.d.ts +16 -0
- package/dist/lib/capture/modes/capture-mode.d.ts +24 -0
- package/dist/lib/capture/modes/countdown.d.ts +16 -0
- package/dist/lib/capture/modes/full-page.d.ts +14 -0
- package/dist/lib/capture/modes/pick-element.d.ts +22 -0
- package/dist/lib/capture/modes/scroller.d.ts +13 -0
- package/dist/lib/capture/modes/visible.d.ts +3 -0
- package/dist/lib/capture-toolbar/index.d.ts +25 -0
- package/dist/lib/capture-toolbar/lazy-capture-outputs.d.ts +2 -0
- package/dist/lib/capture-toolbar/outputs-encode.d.ts +25 -0
- package/dist/lib/capture-toolbar/outputs.d.ts +38 -0
- package/dist/lib/capture-toolbar/partials/capture-editor.d.ts +11 -0
- package/dist/lib/capture-toolbar/partials/capture-outputs.d.ts +16 -0
- package/dist/lib/capture-toolbar/region-overlay.d.ts +15 -0
- package/dist/lib/capture-toolbar/screen-capture-toolbar.d.ts +31 -0
- package/dist/lib/capture-toolbar/types.d.ts +117 -0
- package/dist/lib/capture-toolbar/use-screen-capture.d.ts +16 -0
- package/dist/lib/components/ui/media/attachment-list/attachment-list.d.ts +2 -2
- package/dist/lib/components/ui/media/image-editor/image-markup-editor.d.ts +11 -3
- package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +7 -0
- package/dist/lib/components/ui/media/image-editor/types-session.d.ts +1 -1
- package/dist/lib/components/ui/media/image-editor/types.d.ts +8 -0
- package/dist/lib/embed/index.d.ts +2 -0
- package/dist/lib/i18n/resources/resources.d.ts +108 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/image-editor/index.d.ts +1 -1
- package/dist/lib.js +38 -56
- package/dist/{list-sheet-D22J9I-K.js → list-sheet-CejfrKJr.js} +1 -1
- package/dist/{loading-indicator-sDzxZg8f.js → loading-indicator-BBjOF25N.js} +1 -1
- package/dist/main.js +103 -98
- package/dist/{map-draw-DfbfT0eJ.js → map-draw-DyRy9SSV.js} +2 -2
- package/dist/map-draw.js +5 -5
- package/dist/map-static.js +1 -1
- package/dist/{map-view-DAx2zvV-.js → map-view-YfuYD3zS.js} +9 -9
- package/dist/map-zone-events.js +1 -1
- package/dist/map-zone-field.js +7 -7
- package/dist/map.js +10 -10
- package/dist/{marker-button-D7hEvEZD.js → marker-button-CXBaToHp.js} +1 -1
- package/dist/{marker-count-image-CWS3G-k8.js → marker-count-image-DHuzSev9.js} +1 -1
- package/dist/material.css +1 -1
- package/dist/{measure-manual-Bfvu8B_R.js → measure-manual-CcESmV1d.js} +3 -3
- package/dist/{measurement-B-OeWv7j.js → measurement-D2or6yM_.js} +1 -1
- package/dist/{media-player-DGXmWK7W.js → media-player-qW9RXFuO.js} +451 -567
- package/dist/{media-player-viewer-C3vXYcd8.js → media-player-viewer-DozPiF6T.js} +2 -2
- package/dist/{media-surface-BySonDjv.js → media-surface-BJsdNynm.js} +6 -6
- package/dist/{mention-list-BpoZHwO6.js → mention-list-z1wnlJgs.js} +2 -2
- package/dist/{native-select-Dg4bc7aC.js → native-select-BnDOVnER.js} +1 -1
- package/dist/{nxgt-theme-Ob-uFqU_.js → nxgt-theme-EYZ5aFHi.js} +6 -15
- package/dist/nxgt-theme-provider-BPXd3h82.js +40 -0
- package/dist/outputs-DF-aVqUO.js +81 -0
- package/dist/passkey.js +1 -1
- package/dist/{pdf-form-filler-DgH52W2Q.js → pdf-form-filler-Ct4eexhZ.js} +34 -34
- package/dist/pdf-form.js +2 -2
- package/dist/{pdf-reader-Bilz5foK.js → pdf-reader-khpMMEjU.js} +16 -16
- package/dist/{pdf-reader-viewer-DwQP2IpV.js → pdf-reader-viewer-B3_TdFOn.js} +2 -2
- package/dist/pdf-reader.js +2 -2
- package/dist/{percent-field-Ldc7K2wC.js → percent-field-Bu-PmCNR.js} +2 -2
- package/dist/{picker-surface-DZQbBgvA.js → picker-surface-THexE1OU.js} +3 -3
- package/dist/{popover-DwsaHFrK.js → popover-osl5duoA.js} +1 -1
- package/dist/portal-container-provider-fZFUk-ZB.js +11 -0
- package/dist/{pos-types-CKDG7pZA.js → pos-types-BPPae99i.js} +1 -1
- package/dist/{pos-variant-9nhz-ZzW.js → pos-variant-D6bDUqwV.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-BzwfeMGC.js → programmer-variant-CDlFE24o.js} +2 -2
- package/dist/{progress-BBfp7sMi.js → progress-DjHnanxA.js} +2 -2
- package/dist/{progress-linear-BOJbHnzd.js → progress-linear-CTJ_U6kY.js} +1 -1
- package/dist/{public-I8nb8pCC.js → public-u9u2Osmx.js} +6 -6
- package/dist/{rendition-stage-A1nHXYrA.js → rendition-stage-BXjQpfKK.js} +2 -2
- package/dist/{rich-code-block-BJERY3N3.js → rich-code-block-DWSzyQRw.js} +5 -5
- package/dist/{scientific-variant-st2NBm1K.js → scientific-variant-DCgApH87.js} +2 -2
- package/dist/{scroll-area-B3XstZU2.js → scroll-area-BxKiT4Dn.js} +155 -164
- package/dist/{search-field-D3AOJr7s.js → search-field-Cgqa2bQf.js} +2 -2
- package/dist/{select-DhfzCkun.js → select-BGhRlBh4.js} +166 -179
- package/dist/{sheet-B8cO1T5K.js → sheet-BvNVroog.js} +1 -1
- package/dist/{signature-dialog-BNLMPgao.js → signature-dialog-x--_QWRB.js} +5 -5
- package/dist/signature.js +1 -1
- package/dist/{site-footer-cta-Cx7zsvkq.js → site-footer-cta-B3Kfqpep.js} +4 -4
- package/dist/{site-footer-link-Di8IMIw0.js → site-footer-link-SFHrO4ld.js} +1 -1
- package/dist/{size-slot-D1cKqb09.js → size-slot-Cb-W2Zm4.js} +1 -1
- package/dist/{sortable-provider-DrLnoygf.js → sortable-provider-KRScvvYx.js} +2 -2
- package/dist/{spinner-BpH9tE8R.js → spinner-DpB6XvJJ.js} +1 -1
- package/dist/switch-c_6OtXzW.js +125 -0
- package/dist/{tabs-root-BUnIfDah.js → tabs-root-C2n3K_Yv.js} +1 -1
- package/dist/{tags-form-BwqR4UVj.js → tags-form-BKB9fP03.js} +5 -5
- package/dist/{text-field-CFCHo07X.js → text-field-Dl7xTxZe.js} +2 -2
- package/dist/{textarea-B_iMDYgM.js → textarea-C3BGZELU.js} +1 -1
- package/dist/{textarea-field-DIOGxyUd.js → textarea-field-mqWhhbis.js} +2 -2
- package/dist/theme-picker.js +5 -4
- package/dist/{theme-toggle-CsBe64lm.js → theme-toggle-K-n5eq0T.js} +3 -3
- package/dist/theme-value-CD2nDrj_.js +12 -0
- package/dist/themes.js +15 -48
- package/dist/{toasts-McZnLRHP.js → toasts-DFLecXh0.js} +5 -5
- package/dist/{toggle-group-DKN1XLBS.js → toggle-group-DMDjNJWx.js} +1 -1
- package/dist/{toolbar-group-BmzGP_JO.js → toolbar-group-bttMdvg4.js} +1 -1
- package/dist/{toolbar-item-slot-BnqQLkVd.js → toolbar-item-slot-CBn3YjeE.js} +1 -1
- package/dist/{toolbar-items-C9uasXZ2.js → toolbar-items-zL5TYLf2.js} +4 -4
- package/dist/{toolbar-keep-focus-Vc5V-dX2.js → toolbar-keep-focus-C6bnzvpE.js} +2 -2
- package/dist/{tracked-layer-CjCXB_O6.js → tracked-layer-CYdLWRK-.js} +4 -4
- package/dist/{translate-material-C-qVvGLn.js → translate-material-DZNgWjYu.js} +1 -1
- package/dist/{translator-BrzI307E.js → translator-CrIFDzAz.js} +110 -2
- package/dist/{tree-DOAs456A.js → tree-CFXDccIe.js} +1 -1
- package/dist/{upload-host-ZpSSql8v.js → upload-host-DDktVohu.js} +9 -8
- package/dist/{use-calculator-keyboard-Ss25SRoM.js → use-calculator-keyboard-BWkYuIw5.js} +1 -1
- package/dist/{use-chat-composer-DopDN-zP.js → use-chat-composer-C1Qlnw2i.js} +20 -20
- package/dist/{use-file-meta-DyJX0JVs.js → use-file-meta-DcfQCh52.js} +1 -1
- package/dist/{use-heading-spy-CA2IAqMe.js → use-heading-spy-B9xEMHbZ.js} +2 -2
- package/dist/use-image-preview-BNq_RQm5.js +20 -0
- package/dist/{use-item-entries-CYbS5otl.js → use-item-entries-BKQHcWFx.js} +1 -1
- package/dist/{use-material-translation-eYySryw3.js → use-material-translation-ZEUtduro.js} +1 -1
- package/dist/{use-media-viewer-DoNdrzhN.js → use-media-viewer-DViJNx75.js} +1 -1
- package/dist/{use-text-preview-BQE4U9cT.js → use-text-preview-Ci97JKKo.js} +2 -2
- package/dist/{use-unsaved-guard-CSfDvdxd.js → use-unsaved-guard-CWlHEvjN.js} +2 -2
- package/dist/{viewer-CXF1dAv0.js → viewer-DDPJOxBt.js} +5 -5
- package/dist/{viewer-stage-class-CpyA8o-M.js → viewer-stage-class-DJ1uod4l.js} +4 -4
- package/dist/{viewer-states-BXyCdNhE.js → viewer-states-DkaPBkK4.js} +3 -3
- package/dist/{virtual-layer-rows-DHy8vAup.js → virtual-layer-rows-DKejQ_Jd.js} +1 -1
- package/dist/visible-B-IFZ4Nv.js +475 -0
- package/docs/components/media-and-files.md +1 -1
- package/docs/guides/capture.md +248 -0
- package/docs/guides/csp.md +1 -1
- package/docs/guides/embed.md +50 -2
- package/docs/roadmap.md +2 -1
- package/docs/troubleshooting.md +56 -0
- package/package.json +18 -1
- package/dist/fab-dock-DqwbI-5n.js +0 -86
- package/dist/input-BaBE_MR_.js +0 -27
- /package/dist/{dist-B1qFabLJ.js → dist-B1qFabLJ2.js} +0 -0
package/dist/embed.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { a as e, b as t, c as n, d as r, f as i, i as a, l as o, m as s, n as c, p as l, s as u, u as d } from "./embed-chunks/use-shape-morph-
|
|
2
|
-
import { C as f, U as p, V as m, b as h, c as g, l as _, p as v, s as y, t as b, u as x, x as S } from "./embed-chunks/useLatest-
|
|
3
|
-
import { C, S as w, T, _ as E, b as D, c as O, d as ee, f as te, g as ne, h as re, i as ie, m as ae, n as oe, p as se, r as ce, s as le, t as ue, v as de, x as fe, y as pe } from "./embed-chunks/nxgt-theme-provider-
|
|
4
|
-
import { a as me, i as he, n as ge, o as _e, r as ve, s as k, t as ye } from "./embed-chunks/avatar-
|
|
5
|
-
import { c as be, d as xe, f as Se, g as Ce, h as we, i as Te, l as Ee, m as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./embed-chunks/tabs-root-
|
|
1
|
+
import { a as e, b as t, c as n, d as r, f as i, i as a, l as o, m as s, n as c, p as l, s as u, u as d } from "./embed-chunks/use-shape-morph-D1MOoQ4T.js";
|
|
2
|
+
import { C as f, U as p, V as m, b as h, c as g, l as _, p as v, s as y, t as b, u as x, x as S } from "./embed-chunks/useLatest-RGIW0nya.js";
|
|
3
|
+
import { C, S as w, T, _ as E, b as D, c as O, d as ee, f as te, g as ne, h as re, i as ie, m as ae, n as oe, p as se, r as ce, s as le, t as ue, v as de, x as fe, y as pe } from "./embed-chunks/nxgt-theme-provider-DdDsiEPj.js";
|
|
4
|
+
import { a as me, i as he, n as ge, o as _e, r as ve, s as k, t as ye } from "./embed-chunks/avatar-CSDtFCum.js";
|
|
5
|
+
import { c as be, d as xe, f as Se, g as Ce, h as we, i as Te, l as Ee, m as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./embed-chunks/tabs-root-MF9lEHbq.js";
|
|
6
6
|
import { n as A } from "./embed-chunks/is-production-Cx8oURag.js";
|
|
7
7
|
import { a as Pe, i as Fe, l as Ie, n as Le, o as Re, r as ze, s as Be, t as Ve } from "./embed-chunks/state-scenes-BxFf1hTb.js";
|
|
8
8
|
import { t as He } from "./embed-chunks/bubble-input-yXAeW84_.js";
|
|
9
9
|
import * as j from "react";
|
|
10
|
-
import M, { Children as Ue, Suspense as We, cloneElement as Ge, createContext as Ke, isValidElement as N, lazy as qe, useCallback as Je, useContext as Ye, useEffect as P, useId as F,
|
|
10
|
+
import M, { Children as Ue, Suspense as We, cloneElement as Ge, createContext as Ke, isValidElement as N, lazy as qe, useCallback as Je, useContext as Ye, useEffect as P, useId as F, useInsertionEffect as Xe, useMemo as Ze, useReducer as Qe, useRef as I, useState as L, useSyncExternalStore as $e } from "react";
|
|
11
11
|
import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
12
|
+
import { claimCspNonce as et, getCspNonce as tt } from "@softistx/material-core/csp-nonce";
|
|
13
|
+
import { AlertCircle as nt, ArrowDown as rt, ArrowUp as it, Check as at, CheckCheck as ot, CircleAlert as st, CircleCheck as ct, Clock3 as lt, Construction as ut, Copy as dt, Ellipsis as ft, File as pt, FileBraces as mt, FileImage as ht, FileMusic as gt, FileQuestion as _t, FileSpreadsheet as vt, FileText as yt, FileVideoCamera as bt, Info as xt, Mail as St, MessageSquare as Ct, PackageOpen as wt, Paperclip as Tt, Reply as Et, Search as Dt, Send as Ot, ShieldAlert as kt, SmilePlus as At, Sparkles as jt, Square as Mt, Trash2 as Nt, TriangleAlert as Pt, WifiOff as Ft, X as V } from "lucide-react";
|
|
14
|
+
import { STATE_ACCENT as It, STATE_ICON as Lt, stateCopy as Rt } from "@softistx/material-core/states";
|
|
15
|
+
import { describedBy as zt } from "@softistx/material-core/described-by";
|
|
16
|
+
import { fileKind as Bt } from "@softistx/material-core/file-preview";
|
|
17
|
+
import { formatFileSize as Vt } from "@softistx/material-core/format-file-size";
|
|
18
|
+
import { blockedReason as Ht, entryIndex as Ut, nextChoice as Wt, rovingIndex as Gt } from "@softistx/material-core/choice-group";
|
|
19
|
+
import { createAsyncSearch as Kt } from "@softistx/material-core/async-search";
|
|
20
|
+
import { dayBucket as qt, daysAgo as Jt, isValidTimeZone as Yt, localIsoDay as Xt, toDate as Zt } from "@softistx/material-core/day-math";
|
|
20
21
|
//#region ../../node_modules/@radix-ui/react-checkbox/dist/index.mjs
|
|
21
|
-
var
|
|
22
|
+
var Qt = Object.defineProperty, H = (e, t) => Qt(e, "name", {
|
|
22
23
|
value: t,
|
|
23
24
|
configurable: !0
|
|
24
|
-
}),
|
|
25
|
-
function
|
|
25
|
+
}), $t = "Checkbox", [en, tn] = l($t), [nn, rn] = en($t);
|
|
26
|
+
function an(e) {
|
|
26
27
|
let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: f } = e, [p, m] = d({
|
|
27
28
|
prop: n,
|
|
28
29
|
defaultProp: i ?? !1,
|
|
29
30
|
onChange: c,
|
|
30
|
-
caller:
|
|
31
|
+
caller: $t
|
|
31
32
|
}), [h, g] = j.useState(null), [_, v] = j.useState(null), y = j.useRef(!1), [b, x] = j.useReducer((e) => e + 1, 0), S = !h || !!o || !!h.closest("form"), C = {
|
|
32
33
|
checked: p,
|
|
33
34
|
disabled: a,
|
|
@@ -46,15 +47,15 @@ function en(e) {
|
|
|
46
47
|
bubbleInput: _,
|
|
47
48
|
setBubbleInput: v
|
|
48
49
|
};
|
|
49
|
-
return /* @__PURE__ */ z(
|
|
50
|
+
return /* @__PURE__ */ z(nn, {
|
|
50
51
|
scope: t,
|
|
51
52
|
...C,
|
|
52
|
-
children:
|
|
53
|
+
children: un(f) ? f(C) : r
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
H(
|
|
56
|
-
var
|
|
57
|
-
let { control: c, value: l, disabled: u, checked: d, required: f, setControl: p, setChecked: m, hasConsumerStoppedPropagationRef: h, onUserInteraction: g, isFormControl: _, bubbleInput: v } =
|
|
56
|
+
H(an, "CheckboxProvider");
|
|
57
|
+
var on = "CheckboxTrigger", sn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(function({ __scopeCheckbox: e, onKeyDown: n, onClick: r, ...a }, o) {
|
|
58
|
+
let { control: c, value: l, disabled: u, checked: d, required: f, setControl: p, setChecked: m, hasConsumerStoppedPropagationRef: h, onUserInteraction: g, isFormControl: _, bubbleInput: v } = rn(on, e), y = t(o, p), b = j.useRef(d);
|
|
58
59
|
return j.useEffect(() => {
|
|
59
60
|
let e = c?.form;
|
|
60
61
|
if (e) {
|
|
@@ -66,7 +67,7 @@ var tn = "CheckboxTrigger", nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(
|
|
|
66
67
|
role: "checkbox",
|
|
67
68
|
"aria-checked": U(d) ? "mixed" : d,
|
|
68
69
|
"aria-required": f,
|
|
69
|
-
"data-state":
|
|
70
|
+
"data-state": dn(d),
|
|
70
71
|
"data-disabled": u ? "" : void 0,
|
|
71
72
|
disabled: u,
|
|
72
73
|
value: l,
|
|
@@ -79,8 +80,8 @@ var tn = "CheckboxTrigger", nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(
|
|
|
79
80
|
g(), m((e) => U(e) ? !0 : !e), v && _ && (h.current = e.isPropagationStopped(), h.current || e.stopPropagation());
|
|
80
81
|
})
|
|
81
82
|
});
|
|
82
|
-
}, "CheckboxTrigger")),
|
|
83
|
-
let { control: c, hasConsumerStoppedPropagationRef: l, userInteractionCount: u, checked: d, defaultChecked: f, required: p, disabled: m, name: h, value: g, form: _, bubbleInput: v, setBubbleInput: y } =
|
|
83
|
+
}, "CheckboxTrigger")), cn = "CheckboxBubbleInput", ln = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(function({ __scopeCheckbox: e, onClick: r, ...a }, o) {
|
|
84
|
+
let { control: c, hasConsumerStoppedPropagationRef: l, userInteractionCount: u, checked: d, defaultChecked: f, required: p, disabled: m, name: h, value: g, form: _, bubbleInput: v, setBubbleInput: y } = rn(cn, e), b = t(o, y), x = n(c), S = j.useRef(!1), C = j.useRef(d), w = j.useRef(u);
|
|
84
85
|
j.useEffect(() => {
|
|
85
86
|
let e = v;
|
|
86
87
|
if (!e) return;
|
|
@@ -127,31 +128,31 @@ var tn = "CheckboxTrigger", nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ H(
|
|
|
127
128
|
}
|
|
128
129
|
});
|
|
129
130
|
}, "CheckboxBubbleInput"));
|
|
130
|
-
function
|
|
131
|
+
function un(e) {
|
|
131
132
|
return typeof e == "function";
|
|
132
133
|
}
|
|
133
|
-
H(
|
|
134
|
+
H(un, "isFunction");
|
|
134
135
|
function U(e) {
|
|
135
136
|
return e === "indeterminate";
|
|
136
137
|
}
|
|
137
138
|
H(U, "isIndeterminate");
|
|
138
|
-
function
|
|
139
|
+
function dn(e) {
|
|
139
140
|
return U(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
140
141
|
}
|
|
141
|
-
H(
|
|
142
|
+
H(dn, "getState");
|
|
142
143
|
//#endregion
|
|
143
144
|
//#region ../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs
|
|
144
|
-
var
|
|
145
|
+
var fn = Object.defineProperty, W = (e, t) => fn(e, "name", {
|
|
145
146
|
value: t,
|
|
146
147
|
configurable: !0
|
|
147
148
|
});
|
|
148
|
-
function
|
|
149
|
+
function pn(e, t) {
|
|
149
150
|
return j.useReducer((e, n) => t[e][n] ?? e, e);
|
|
150
151
|
}
|
|
151
|
-
W(
|
|
152
|
-
var
|
|
152
|
+
W(pn, "useStateMachine");
|
|
153
|
+
var mn = "ScrollArea", [hn, gn] = l(mn), [_n, G] = hn(mn), vn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
|
|
153
154
|
let { __scopeScrollArea: r, type: i = "hover", dir: a, scrollHideDelay: o = 600, ...c } = e, [l, u] = j.useState(null), [d, f] = j.useState(null), [p, h] = j.useState(null), [g, _] = j.useState(null), [v, y] = j.useState(null), [b, x] = j.useState(0), [S, C] = j.useState(0), [w, T] = j.useState(!1), [E, D] = j.useState(!1), O = t(n, u), ee = m(a);
|
|
154
|
-
return /* @__PURE__ */ z(
|
|
155
|
+
return /* @__PURE__ */ z(_n, {
|
|
155
156
|
scope: r,
|
|
156
157
|
type: i,
|
|
157
158
|
dir: ee,
|
|
@@ -183,9 +184,9 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
183
184
|
}
|
|
184
185
|
})
|
|
185
186
|
});
|
|
186
|
-
}, "ScrollArea")),
|
|
187
|
-
let { __scopeScrollArea: r, children: i, nonce: a, ...o } = e, c = G(
|
|
188
|
-
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(
|
|
187
|
+
}, "ScrollArea")), yn = "ScrollAreaViewport", bn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
|
|
188
|
+
let { __scopeScrollArea: r, children: i, nonce: a, ...o } = e, c = G(yn, r), l = t(n, j.useRef(null), c.onViewportChange);
|
|
189
|
+
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(xn, { nonce: a }), /* @__PURE__ */ z(s.div, {
|
|
189
190
|
"data-radix-scroll-area-viewport": "",
|
|
190
191
|
...o,
|
|
191
192
|
ref: l,
|
|
@@ -203,12 +204,12 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
203
204
|
children: i
|
|
204
205
|
})
|
|
205
206
|
})] });
|
|
206
|
-
}, "ScrollAreaViewport")),
|
|
207
|
+
}, "ScrollAreaViewport")), xn = /* @__PURE__ */ j.memo(/* @__PURE__ */ W(function({ nonce: e }) {
|
|
207
208
|
return /* @__PURE__ */ z("style", {
|
|
208
209
|
dangerouslySetInnerHTML: { __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}" },
|
|
209
210
|
nonce: e
|
|
210
211
|
});
|
|
211
|
-
}, "ScrollAreaViewportStyle"), (e, t) => e.nonce === t.nonce), K = "ScrollAreaScrollbar",
|
|
212
|
+
}, "ScrollAreaViewportStyle"), (e, t) => e.nonce === t.nonce), K = "ScrollAreaScrollbar", Sn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
212
213
|
let { forceMount: n, ...r } = e, i = G(K, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: o } = i, s = e.orientation === "horizontal";
|
|
213
214
|
return j.useEffect(() => (s ? a(!0) : o(!0), () => {
|
|
214
215
|
s ? a(!1) : o(!1);
|
|
@@ -216,24 +217,24 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
216
217
|
s,
|
|
217
218
|
a,
|
|
218
219
|
o
|
|
219
|
-
]), i.type === "hover" ? /* @__PURE__ */ z(
|
|
220
|
+
]), i.type === "hover" ? /* @__PURE__ */ z(Cn, {
|
|
220
221
|
...r,
|
|
221
222
|
ref: t,
|
|
222
223
|
forceMount: n
|
|
223
|
-
}) : i.type === "scroll" ? /* @__PURE__ */ z(
|
|
224
|
+
}) : i.type === "scroll" ? /* @__PURE__ */ z(wn, {
|
|
224
225
|
...r,
|
|
225
226
|
ref: t,
|
|
226
227
|
forceMount: n
|
|
227
|
-
}) : i.type === "auto" ? /* @__PURE__ */ z(
|
|
228
|
+
}) : i.type === "auto" ? /* @__PURE__ */ z(Tn, {
|
|
228
229
|
...r,
|
|
229
230
|
ref: t,
|
|
230
231
|
forceMount: n
|
|
231
|
-
}) : i.type === "always" ? /* @__PURE__ */ z(
|
|
232
|
+
}) : i.type === "always" ? /* @__PURE__ */ z(En, {
|
|
232
233
|
...r,
|
|
233
234
|
ref: t,
|
|
234
235
|
"data-state": "visible"
|
|
235
236
|
}) : null;
|
|
236
|
-
}, "ScrollAreaScrollbar")),
|
|
237
|
+
}, "ScrollAreaScrollbar")), Cn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
237
238
|
let { forceMount: n, ...r } = e, i = G(K, e.__scopeScrollArea), [a, o] = j.useState(!1);
|
|
238
239
|
return j.useEffect(() => {
|
|
239
240
|
let e = i.scrollArea, t = 0;
|
|
@@ -249,14 +250,14 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
249
250
|
}
|
|
250
251
|
}, [i.scrollArea, i.scrollHideDelay]), /* @__PURE__ */ z(p, {
|
|
251
252
|
present: n || a,
|
|
252
|
-
children: /* @__PURE__ */ z(
|
|
253
|
+
children: /* @__PURE__ */ z(Tn, {
|
|
253
254
|
"data-state": a ? "visible" : "hidden",
|
|
254
255
|
...r,
|
|
255
256
|
ref: t
|
|
256
257
|
})
|
|
257
258
|
});
|
|
258
|
-
}, "ScrollAreaScrollbarHover")),
|
|
259
|
-
let { forceMount: n, ...r } = e, a = G(K, e.__scopeScrollArea), o = e.orientation === "horizontal", s = Y(() => l("SCROLL_END"), 100), [c, l] =
|
|
259
|
+
}, "ScrollAreaScrollbarHover")), wn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
260
|
+
let { forceMount: n, ...r } = e, a = G(K, e.__scopeScrollArea), o = e.orientation === "horizontal", s = Y(() => l("SCROLL_END"), 100), [c, l] = pn("hidden", {
|
|
260
261
|
hidden: { SCROLL: "scrolling" },
|
|
261
262
|
scrolling: {
|
|
262
263
|
SCROLL_END: "idle",
|
|
@@ -297,7 +298,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
297
298
|
s
|
|
298
299
|
]), /* @__PURE__ */ z(p, {
|
|
299
300
|
present: n || c !== "hidden",
|
|
300
|
-
children: /* @__PURE__ */ z(
|
|
301
|
+
children: /* @__PURE__ */ z(En, {
|
|
301
302
|
"data-state": c === "hidden" ? "hidden" : "visible",
|
|
302
303
|
...r,
|
|
303
304
|
ref: t,
|
|
@@ -305,7 +306,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
305
306
|
onPointerLeave: i(e.onPointerLeave, () => l("POINTER_LEAVE"))
|
|
306
307
|
})
|
|
307
308
|
});
|
|
308
|
-
}, "ScrollAreaScrollbarScroll")),
|
|
309
|
+
}, "ScrollAreaScrollbarScroll")), Tn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
309
310
|
let n = G(K, e.__scopeScrollArea), { forceMount: r, ...i } = e, [a, o] = j.useState(!1), s = e.orientation === "horizontal", c = Y(() => {
|
|
310
311
|
if (n.viewport) {
|
|
311
312
|
let e = n.viewport.offsetWidth < n.viewport.scrollWidth, t = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
@@ -314,13 +315,13 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
314
315
|
}, 10);
|
|
315
316
|
return X(n.viewport, c), X(n.content, c), /* @__PURE__ */ z(p, {
|
|
316
317
|
present: r || a,
|
|
317
|
-
children: /* @__PURE__ */ z(
|
|
318
|
+
children: /* @__PURE__ */ z(En, {
|
|
318
319
|
"data-state": a ? "visible" : "hidden",
|
|
319
320
|
...i,
|
|
320
321
|
ref: t
|
|
321
322
|
})
|
|
322
323
|
});
|
|
323
|
-
}, "ScrollAreaScrollbarAuto")),
|
|
324
|
+
}, "ScrollAreaScrollbarAuto")), En = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
324
325
|
let { orientation: n = "vertical", ...r } = e, i = G(K, e.__scopeScrollArea), a = j.useRef(null), o = j.useRef(0), [s, c] = j.useState({
|
|
325
326
|
content: 0,
|
|
326
327
|
viewport: 0,
|
|
@@ -329,7 +330,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
329
330
|
paddingStart: 0,
|
|
330
331
|
paddingEnd: 0
|
|
331
332
|
}
|
|
332
|
-
}), l =
|
|
333
|
+
}), l = Rn(s.viewport, s.content), u = {
|
|
333
334
|
...r,
|
|
334
335
|
sizes: s,
|
|
335
336
|
onSizesChange: c,
|
|
@@ -339,14 +340,14 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
339
340
|
onThumbPointerDown: /* @__PURE__ */ W((e) => o.current = e, "onThumbPointerDown")
|
|
340
341
|
};
|
|
341
342
|
function d(e, t) {
|
|
342
|
-
return
|
|
343
|
+
return zn(e, o.current, s, t);
|
|
343
344
|
}
|
|
344
|
-
return W(d, "getScrollPosition"), n === "horizontal" ? /* @__PURE__ */ z(
|
|
345
|
+
return W(d, "getScrollPosition"), n === "horizontal" ? /* @__PURE__ */ z(Dn, {
|
|
345
346
|
...u,
|
|
346
347
|
ref: t,
|
|
347
348
|
onThumbPositionChange: () => {
|
|
348
349
|
if (i.viewport && a.current) {
|
|
349
|
-
let e = i.viewport.scrollLeft, t =
|
|
350
|
+
let e = i.viewport.scrollLeft, t = Bn(e, s, i.dir);
|
|
350
351
|
a.current.style.transform = `translate3d(${t}px, 0, 0)`;
|
|
351
352
|
}
|
|
352
353
|
},
|
|
@@ -356,12 +357,12 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
356
357
|
onDragScroll: (e) => {
|
|
357
358
|
i.viewport && (i.viewport.scrollLeft = d(e, i.dir));
|
|
358
359
|
}
|
|
359
|
-
}) : n === "vertical" ? /* @__PURE__ */ z(
|
|
360
|
+
}) : n === "vertical" ? /* @__PURE__ */ z(On, {
|
|
360
361
|
...u,
|
|
361
362
|
ref: t,
|
|
362
363
|
onThumbPositionChange: () => {
|
|
363
364
|
if (i.viewport && a.current) {
|
|
364
|
-
let e = i.viewport.scrollTop, t =
|
|
365
|
+
let e = i.viewport.scrollTop, t = Bn(e, s);
|
|
365
366
|
a.current.style.transform = `translate3d(0, ${t}px, 0)`;
|
|
366
367
|
}
|
|
367
368
|
},
|
|
@@ -372,11 +373,11 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
372
373
|
i.viewport && (i.viewport.scrollTop = d(e));
|
|
373
374
|
}
|
|
374
375
|
}) : null;
|
|
375
|
-
}, "ScrollAreaScrollbarVisible")),
|
|
376
|
+
}, "ScrollAreaScrollbarVisible")), Dn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
|
|
376
377
|
let { sizes: r, onSizesChange: i, ...a } = e, o = G(K, e.__scopeScrollArea), [s, c] = j.useState(), l = j.useRef(null), u = t(n, l, o.onScrollbarXChange);
|
|
377
378
|
return j.useEffect(() => {
|
|
378
379
|
l.current && c(getComputedStyle(l.current));
|
|
379
|
-
}, [l]), /* @__PURE__ */ z(
|
|
380
|
+
}, [l]), /* @__PURE__ */ z(jn, {
|
|
380
381
|
"data-orientation": "horizontal",
|
|
381
382
|
...a,
|
|
382
383
|
ref: u,
|
|
@@ -393,7 +394,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
393
394
|
onWheelScroll: (t, n) => {
|
|
394
395
|
if (o.viewport) {
|
|
395
396
|
let r = o.viewport.scrollLeft + t.deltaX;
|
|
396
|
-
e.onWheelScroll(r),
|
|
397
|
+
e.onWheelScroll(r), Hn(r, n) && t.preventDefault();
|
|
397
398
|
}
|
|
398
399
|
},
|
|
399
400
|
onResize: () => {
|
|
@@ -408,11 +409,11 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
408
409
|
});
|
|
409
410
|
}
|
|
410
411
|
});
|
|
411
|
-
}, "ScrollAreaScrollbarX")),
|
|
412
|
+
}, "ScrollAreaScrollbarX")), On = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
|
|
412
413
|
let { sizes: r, onSizesChange: i, ...a } = e, o = G(K, e.__scopeScrollArea), [s, c] = j.useState(), l = j.useRef(null), u = t(n, l, o.onScrollbarYChange);
|
|
413
414
|
return j.useEffect(() => {
|
|
414
415
|
l.current && c(getComputedStyle(l.current));
|
|
415
|
-
}, [l]), /* @__PURE__ */ z(
|
|
416
|
+
}, [l]), /* @__PURE__ */ z(jn, {
|
|
416
417
|
"data-orientation": "vertical",
|
|
417
418
|
...a,
|
|
418
419
|
ref: u,
|
|
@@ -430,7 +431,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
430
431
|
onWheelScroll: (t, n) => {
|
|
431
432
|
if (o.viewport) {
|
|
432
433
|
let r = o.viewport.scrollTop + t.deltaY;
|
|
433
|
-
e.onWheelScroll(r),
|
|
434
|
+
e.onWheelScroll(r), Hn(r, n) && t.preventDefault();
|
|
434
435
|
}
|
|
435
436
|
},
|
|
436
437
|
onResize: () => {
|
|
@@ -445,7 +446,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
445
446
|
});
|
|
446
447
|
}
|
|
447
448
|
});
|
|
448
|
-
}, "ScrollAreaScrollbarY")), [
|
|
449
|
+
}, "ScrollAreaScrollbarY")), [kn, An] = hn(K), jn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
|
|
449
450
|
let { __scopeScrollArea: r, sizes: a, hasThumb: c, onThumbChange: l, onThumbPointerUp: u, onThumbPointerDown: d, onThumbPositionChange: f, onDragScroll: p, onWheelScroll: m, onResize: h, ...g } = e, _ = G(K, r), [v, y] = j.useState(null), b = t(n, y), x = j.useRef(null), S = j.useRef(""), C = _.viewport, w = a.content - a.viewport, T = o(m), E = o(f), D = Y(h, 10);
|
|
450
451
|
function O(e) {
|
|
451
452
|
if (x.current) {
|
|
@@ -467,7 +468,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
467
468
|
v,
|
|
468
469
|
w,
|
|
469
470
|
T
|
|
470
|
-
]), j.useEffect(E, [a, E]), X(v, D), X(_.content, D), /* @__PURE__ */ z(
|
|
471
|
+
]), j.useEffect(E, [a, E]), X(v, D), X(_.content, D), /* @__PURE__ */ z(kn, {
|
|
471
472
|
scope: r,
|
|
472
473
|
scrollbar: v,
|
|
473
474
|
hasThumb: c,
|
|
@@ -492,17 +493,17 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
492
493
|
})
|
|
493
494
|
})
|
|
494
495
|
});
|
|
495
|
-
}, "ScrollAreaScrollbarImpl")),
|
|
496
|
-
let { forceMount: n, ...r } = e, i =
|
|
496
|
+
}, "ScrollAreaScrollbarImpl")), Mn = "ScrollAreaThumb", Nn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
497
|
+
let { forceMount: n, ...r } = e, i = An(Mn, e.__scopeScrollArea);
|
|
497
498
|
return /* @__PURE__ */ z(p, {
|
|
498
499
|
present: n || i.hasThumb,
|
|
499
|
-
children: /* @__PURE__ */ z(
|
|
500
|
+
children: /* @__PURE__ */ z(Pn, {
|
|
500
501
|
ref: t,
|
|
501
502
|
...r
|
|
502
503
|
})
|
|
503
504
|
});
|
|
504
|
-
}, "ScrollAreaThumb")),
|
|
505
|
-
let { __scopeScrollArea: r, style: a, ...o } = e, c = G(
|
|
505
|
+
}, "ScrollAreaThumb")), Pn = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, n) {
|
|
506
|
+
let { __scopeScrollArea: r, style: a, ...o } = e, c = G(Mn, r), l = An(Mn, r), { onThumbPositionChange: u } = l, d = t(n, l.onThumbChange), f = j.useRef(void 0), p = Y(() => {
|
|
506
507
|
f.current &&= (f.current(), void 0);
|
|
507
508
|
}, 100);
|
|
508
509
|
return j.useEffect(() => {
|
|
@@ -510,7 +511,7 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
510
511
|
if (e) {
|
|
511
512
|
let t = /* @__PURE__ */ W(() => {
|
|
512
513
|
if (p(), !f.current) {
|
|
513
|
-
let t =
|
|
514
|
+
let t = Un(e, u);
|
|
514
515
|
f.current = t, u();
|
|
515
516
|
}
|
|
516
517
|
}, "handleScroll");
|
|
@@ -538,14 +539,14 @@ var un = "ScrollArea", [dn, fn] = l(un), [pn, G] = dn(un), mn = /* @__PURE__ */
|
|
|
538
539
|
}),
|
|
539
540
|
onPointerUp: i(e.onPointerUp, l.onThumbPointerUp)
|
|
540
541
|
});
|
|
541
|
-
}, "ScrollAreaThumbImpl")),
|
|
542
|
-
let n = G(
|
|
543
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ z(
|
|
542
|
+
}, "ScrollAreaThumbImpl")), Fn = "ScrollAreaCorner", In = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
543
|
+
let n = G(Fn, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
544
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ z(Ln, {
|
|
544
545
|
...e,
|
|
545
546
|
ref: t
|
|
546
547
|
}) : null;
|
|
547
|
-
}, "ScrollAreaCorner")),
|
|
548
|
-
let { __scopeScrollArea: n, ...r } = e, i = G(
|
|
548
|
+
}, "ScrollAreaCorner")), Ln = /* @__PURE__ */ j.forwardRef(/* @__PURE__ */ W(function(e, t) {
|
|
549
|
+
let { __scopeScrollArea: n, ...r } = e, i = G(Fn, n), [a, o] = j.useState(0), [c, l] = j.useState(0), u = !!(a && c), { onCornerWidthChange: d, onCornerHeightChange: f } = i;
|
|
549
550
|
return X(i.scrollbarX, () => {
|
|
550
551
|
let e = i.scrollbarX?.offsetHeight || 0;
|
|
551
552
|
i.onCornerHeightChange(e), l(e);
|
|
@@ -572,39 +573,39 @@ function q(e) {
|
|
|
572
573
|
return e ? parseInt(e, 10) : 0;
|
|
573
574
|
}
|
|
574
575
|
W(q, "toInt");
|
|
575
|
-
function
|
|
576
|
+
function Rn(e, t) {
|
|
576
577
|
let n = e / t;
|
|
577
578
|
return isNaN(n) ? 0 : n;
|
|
578
579
|
}
|
|
579
|
-
W(
|
|
580
|
+
W(Rn, "getThumbRatio");
|
|
580
581
|
function J(e) {
|
|
581
|
-
let t =
|
|
582
|
+
let t = Rn(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
582
583
|
return Math.max(r, 18);
|
|
583
584
|
}
|
|
584
585
|
W(J, "getThumbSize");
|
|
585
|
-
function
|
|
586
|
+
function zn(e, t, n, r = "ltr") {
|
|
586
587
|
let i = J(n), a = i / 2, o = t || a, s = i - o, c = n.scrollbar.paddingStart + o, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
587
|
-
return
|
|
588
|
+
return Vn([c, l], d)(e);
|
|
588
589
|
}
|
|
589
|
-
W(
|
|
590
|
-
function
|
|
590
|
+
W(zn, "getScrollPositionFromPointer");
|
|
591
|
+
function Bn(e, t, n = "ltr") {
|
|
591
592
|
let r = J(t), i = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - i, o = t.content - t.viewport, s = a - r, c = T(e, n === "ltr" ? [0, o] : [o * -1, 0]);
|
|
592
|
-
return
|
|
593
|
+
return Vn([0, o], [0, s])(c);
|
|
593
594
|
}
|
|
594
|
-
W(
|
|
595
|
-
function
|
|
595
|
+
W(Bn, "getThumbOffsetFromScroll");
|
|
596
|
+
function Vn(e, t) {
|
|
596
597
|
return (n) => {
|
|
597
598
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
598
599
|
let r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
599
600
|
return t[0] + r * (n - e[0]);
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
|
-
W(
|
|
603
|
-
function
|
|
603
|
+
W(Vn, "linearScale");
|
|
604
|
+
function Hn(e, t) {
|
|
604
605
|
return e > 0 && e < t;
|
|
605
606
|
}
|
|
606
|
-
W(
|
|
607
|
-
var
|
|
607
|
+
W(Hn, "isScrollingWithinScrollbarBounds");
|
|
608
|
+
var Un = /* @__PURE__ */ W((e, t = () => {}) => {
|
|
608
609
|
let n = {
|
|
609
610
|
left: e.scrollLeft,
|
|
610
611
|
top: e.scrollTop
|
|
@@ -639,10 +640,10 @@ function X(e, t) {
|
|
|
639
640
|
}, [e, n]);
|
|
640
641
|
}
|
|
641
642
|
W(X, "useResizeObserver");
|
|
642
|
-
var
|
|
643
|
+
var Wn = vn, Gn = bn, Kn = In;
|
|
643
644
|
//#endregion
|
|
644
645
|
//#region lib/components/ui/feedback/notification-row/partials/notification-row-dot.tsx
|
|
645
|
-
function
|
|
646
|
+
function qn({ unread: e }) {
|
|
646
647
|
let { t } = a();
|
|
647
648
|
return e ? /* @__PURE__ */ z("span", {
|
|
648
649
|
"data-slot": "notification-row-dot",
|
|
@@ -659,7 +660,7 @@ function Un({ unread: e }) {
|
|
|
659
660
|
}
|
|
660
661
|
//#endregion
|
|
661
662
|
//#region lib/components/ui/collections/list-row/list-row.tsx
|
|
662
|
-
function
|
|
663
|
+
function Jn({ title: e, meta: t, badge: n, unread: r = !1, selected: i, className: a, ...o }) {
|
|
663
664
|
return /* @__PURE__ */ B("div", {
|
|
664
665
|
"data-slot": "list-row",
|
|
665
666
|
"data-unread": r || void 0,
|
|
@@ -667,7 +668,7 @@ function Wn({ title: e, meta: t, badge: n, unread: r = !1, selected: i, classNam
|
|
|
667
668
|
className: A("flex min-h-14 w-full min-w-0 items-center gap-3 rounded-(--nxgt-item-radius) border border-transparent bg-card px-3 py-2 text-left text-sm", "transition-colors duration-150 hover:bg-muted", i && "border-primary/35 bg-primary/10", a),
|
|
668
669
|
...o,
|
|
669
670
|
children: [
|
|
670
|
-
/* @__PURE__ */ z(
|
|
671
|
+
/* @__PURE__ */ z(qn, { unread: r }),
|
|
671
672
|
/* @__PURE__ */ B("span", {
|
|
672
673
|
className: "flex min-w-0 flex-1 flex-col",
|
|
673
674
|
children: [/* @__PURE__ */ z("span", {
|
|
@@ -688,15 +689,15 @@ function Wn({ title: e, meta: t, badge: n, unread: r = !1, selected: i, classNam
|
|
|
688
689
|
}
|
|
689
690
|
//#endregion
|
|
690
691
|
//#region lib/components/ui/feedback/alert/alert-tone-icon.tsx
|
|
691
|
-
var
|
|
692
|
-
primary: /* @__PURE__ */ z(
|
|
693
|
-
secondary: /* @__PURE__ */ z(
|
|
694
|
-
foreground: /* @__PURE__ */ z(
|
|
695
|
-
info: /* @__PURE__ */ z(
|
|
696
|
-
success: /* @__PURE__ */ z(
|
|
697
|
-
warning: /* @__PURE__ */ z(
|
|
698
|
-
error: /* @__PURE__ */ z(
|
|
699
|
-
},
|
|
692
|
+
var Yn = {
|
|
693
|
+
primary: /* @__PURE__ */ z(xt, {}),
|
|
694
|
+
secondary: /* @__PURE__ */ z(xt, {}),
|
|
695
|
+
foreground: /* @__PURE__ */ z(xt, {}),
|
|
696
|
+
info: /* @__PURE__ */ z(xt, {}),
|
|
697
|
+
success: /* @__PURE__ */ z(ct, {}),
|
|
698
|
+
warning: /* @__PURE__ */ z(Pt, {}),
|
|
699
|
+
error: /* @__PURE__ */ z(st, {})
|
|
700
|
+
}, Xn = u(`transition-all rounded border border-card-edge ${w} p-4 gap-2 text-card-foreground [&_[data-slot=alert-icon]_svg]:mt-1 [&_[data-slot=alert-icon]_svg:not([class*='size-'])]:size-4`, {
|
|
700
701
|
variants: { variant: {
|
|
701
702
|
primary: "before:bg-primary-indicator bg-[color-mix(in_oklab,var(--color-primary)_8%,var(--color-card))] dark:bg-[color-mix(in_oklab,var(--color-primary)_14%,var(--color-card))] [&_[data-slot=alert-icon]_svg]:text-primary-text shadow-primary/50",
|
|
702
703
|
secondary: "before:bg-secondary bg-[color-mix(in_oklab,var(--color-secondary)_8%,var(--color-card))] dark:bg-[color-mix(in_oklab,var(--color-secondary)_14%,var(--color-card))] [&_[data-slot=alert-icon]_svg]:text-secondary shadow-secondary/50",
|
|
@@ -707,14 +708,14 @@ var Gn = {
|
|
|
707
708
|
foreground: "before:bg-foreground bg-muted [&_[data-slot=alert-icon]_svg]:text-foreground shadow-foreground/50"
|
|
708
709
|
} },
|
|
709
710
|
defaultVariants: { variant: "primary" }
|
|
710
|
-
}),
|
|
711
|
+
}), Zn = "flex min-w-0 flex-1 flex-col gap-1 break-words whitespace-normal";
|
|
711
712
|
//#endregion
|
|
712
713
|
//#region lib/components/ui/feedback/alert/alert.tsx
|
|
713
|
-
function
|
|
714
|
-
let l = r === void 0 ?
|
|
714
|
+
function Qn({ description: e, actions: t, children: n, icon: r, title: i, className: a, variant: o, ...s }) {
|
|
715
|
+
let l = r === void 0 ? Yn[o ?? "primary"] : r;
|
|
715
716
|
return /* @__PURE__ */ B("div", {
|
|
716
717
|
"data-slot": "alert",
|
|
717
|
-
className: A("flex",
|
|
718
|
+
className: A("flex", Xn({
|
|
718
719
|
variant: o,
|
|
719
720
|
className: a
|
|
720
721
|
})),
|
|
@@ -724,7 +725,7 @@ function Jn({ description: e, actions: t, children: n, icon: r, title: i, classN
|
|
|
724
725
|
className: "shrink-0",
|
|
725
726
|
children: l
|
|
726
727
|
}), /* @__PURE__ */ B("div", {
|
|
727
|
-
className:
|
|
728
|
+
className: Zn,
|
|
728
729
|
children: [
|
|
729
730
|
k(i) && /* @__PURE__ */ z(c, {
|
|
730
731
|
"data-slot": "alert-title",
|
|
@@ -753,7 +754,7 @@ function Jn({ description: e, actions: t, children: n, icon: r, title: i, classN
|
|
|
753
754
|
}
|
|
754
755
|
//#endregion
|
|
755
756
|
//#region lib/hooks/use-focus-on-mount.ts
|
|
756
|
-
function
|
|
757
|
+
function $n(e = !0) {
|
|
757
758
|
let t = I(null);
|
|
758
759
|
return P(() => {
|
|
759
760
|
e && t.current?.focus();
|
|
@@ -761,7 +762,7 @@ function Yn(e = !0) {
|
|
|
761
762
|
}
|
|
762
763
|
//#endregion
|
|
763
764
|
//#region lib/components/ui/feedback/state-frame/state-frame-text.tsx
|
|
764
|
-
function
|
|
765
|
+
function er({ title: e, description: t, headingLevel: n, titleRef: r, inline: i, compact: a }) {
|
|
765
766
|
return e == null && t == null ? null : /* @__PURE__ */ B("div", {
|
|
766
767
|
className: A("flex flex-col", i ? "min-w-0 flex-1 gap-0.5" : "max-w-sm gap-2"),
|
|
767
768
|
children: [e != null && /* @__PURE__ */ z(c, {
|
|
@@ -780,22 +781,22 @@ function Xn({ title: e, description: t, headingLevel: n, titleRef: r, inline: i,
|
|
|
780
781
|
}
|
|
781
782
|
//#endregion
|
|
782
783
|
//#region lib/components/ui/feedback/state-frame/state-icon.tsx
|
|
783
|
-
var
|
|
784
|
-
"package-open":
|
|
785
|
-
search:
|
|
786
|
-
"file-question":
|
|
787
|
-
"shield-alert":
|
|
788
|
-
"alert-circle":
|
|
789
|
-
"wifi-off":
|
|
790
|
-
construction:
|
|
784
|
+
var tr = {
|
|
785
|
+
"package-open": wt,
|
|
786
|
+
search: Dt,
|
|
787
|
+
"file-question": _t,
|
|
788
|
+
"shield-alert": kt,
|
|
789
|
+
"alert-circle": nt,
|
|
790
|
+
"wifi-off": Ft,
|
|
791
|
+
construction: ut
|
|
791
792
|
};
|
|
792
|
-
function
|
|
793
|
-
let t =
|
|
793
|
+
function nr({ kind: e }) {
|
|
794
|
+
let t = tr[Lt[e]];
|
|
794
795
|
return /* @__PURE__ */ z(t, { "aria-hidden": "true" });
|
|
795
796
|
}
|
|
796
797
|
//#endregion
|
|
797
798
|
//#region lib/components/ui/feedback/state-frame/state-scene-illustration.tsx
|
|
798
|
-
function
|
|
799
|
+
function rr({ scene: e, size: t, loading: n }) {
|
|
799
800
|
return /* @__PURE__ */ z("div", {
|
|
800
801
|
"data-slot": "illustration",
|
|
801
802
|
"data-scene": e,
|
|
@@ -809,21 +810,21 @@ function $n({ scene: e, size: t, loading: n }) {
|
|
|
809
810
|
})
|
|
810
811
|
});
|
|
811
812
|
}
|
|
812
|
-
var
|
|
813
|
+
var ir = Fe("illustration", async () => {
|
|
813
814
|
let { Illustration: e } = await import("./embed-chunks/illustration-ByW4pxRC.js");
|
|
814
815
|
return ({ scene: t, size: n }) => /* @__PURE__ */ z(e, {
|
|
815
816
|
scene: t,
|
|
816
817
|
size: n
|
|
817
818
|
});
|
|
818
|
-
},
|
|
819
|
-
function
|
|
819
|
+
}, rr);
|
|
820
|
+
function ar({ scene: e, size: t }) {
|
|
820
821
|
return /* @__PURE__ */ z(We, {
|
|
821
|
-
fallback: /* @__PURE__ */ z(
|
|
822
|
+
fallback: /* @__PURE__ */ z(rr, {
|
|
822
823
|
scene: e,
|
|
823
824
|
size: t,
|
|
824
825
|
loading: !0
|
|
825
826
|
}),
|
|
826
|
-
children: /* @__PURE__ */ z(
|
|
827
|
+
children: /* @__PURE__ */ z(ir, {
|
|
827
828
|
scene: e,
|
|
828
829
|
size: t
|
|
829
830
|
})
|
|
@@ -831,15 +832,15 @@ function tr({ scene: e, size: t }) {
|
|
|
831
832
|
}
|
|
832
833
|
//#endregion
|
|
833
834
|
//#region lib/components/ui/feedback/state-frame/use-state-media.tsx
|
|
834
|
-
function
|
|
835
|
-
let i = t === "inline", a = t === "compact" || i, o = A("flex shrink-0 items-center justify-center rounded", Re[
|
|
836
|
-
return d = n === !1 ? null : u ? /* @__PURE__ */ z(
|
|
835
|
+
function or({ kind: e, size: t, illustration: n, icon: r }) {
|
|
836
|
+
let i = t === "inline", a = t === "compact" || i, o = A("flex shrink-0 items-center justify-center rounded", Re[It[e]], i ? "size-8 rounded-full [&_svg]:size-4" : a ? "size-10 [&_svg]:size-5" : "size-16 [&_svg]:size-7"), s = Ie(), c = n === !0 || ze(n, s?.sets) ? ze(n, s?.sets) ? n : Le[e] : null, l = n == null && r == null && t === "default" ? Be(s, Le[e]) : void 0, u = i ? null : c ?? (l ? Le[e] : null), d = null;
|
|
837
|
+
return d = n === !1 ? null : u ? /* @__PURE__ */ z(ar, {
|
|
837
838
|
scene: u,
|
|
838
839
|
size: a ? "sm" : "md"
|
|
839
840
|
}) : n != null && n !== !0 && !ze(n, s?.sets) ? n : r == null ? a ? /* @__PURE__ */ z("div", {
|
|
840
841
|
"data-slot": "state-icon-well",
|
|
841
842
|
className: o,
|
|
842
|
-
children: /* @__PURE__ */ z(
|
|
843
|
+
children: /* @__PURE__ */ z(nr, { kind: e })
|
|
843
844
|
}) : /* @__PURE__ */ z(Pe, { kind: e }) : /* @__PURE__ */ z("div", {
|
|
844
845
|
"data-slot": "state-icon-well",
|
|
845
846
|
className: o,
|
|
@@ -848,8 +849,8 @@ function nr({ kind: e, size: t, illustration: n, icon: r }) {
|
|
|
848
849
|
}
|
|
849
850
|
//#endregion
|
|
850
851
|
//#region lib/components/ui/feedback/state-frame/state-frame.tsx
|
|
851
|
-
function
|
|
852
|
-
let f = t === "inline", p = t === "compact" || f, m =
|
|
852
|
+
function sr({ kind: e, size: t = "default", illustration: n, icon: r, title: i, headingLevel: a, focusTitle: o = !1, description: s, actions: c, className: l, children: u, ...d }) {
|
|
853
|
+
let f = t === "inline", p = t === "compact" || f, m = $n(o), h = or({
|
|
853
854
|
kind: e,
|
|
854
855
|
size: t,
|
|
855
856
|
illustration: n,
|
|
@@ -862,7 +863,7 @@ function rr({ kind: e, size: t = "default", illustration: n, icon: r, title: i,
|
|
|
862
863
|
...d,
|
|
863
864
|
children: [
|
|
864
865
|
h,
|
|
865
|
-
/* @__PURE__ */ z(
|
|
866
|
+
/* @__PURE__ */ z(er, {
|
|
866
867
|
title: i,
|
|
867
868
|
description: s,
|
|
868
869
|
headingLevel: a,
|
|
@@ -880,9 +881,9 @@ function rr({ kind: e, size: t = "default", illustration: n, icon: r, title: i,
|
|
|
880
881
|
}
|
|
881
882
|
//#endregion
|
|
882
883
|
//#region lib/components/ui/feedback/empty-state/empty-state.tsx
|
|
883
|
-
function
|
|
884
|
-
let l =
|
|
885
|
-
return /* @__PURE__ */ z(
|
|
884
|
+
function cr({ kind: e = "empty", size: t = "default", illustration: n, icon: r, title: i, description: o, action: s, ...c }) {
|
|
885
|
+
let l = Rt(e, "empty-state"), { t: u } = a(), d = o ?? (i == null ? u(l.descriptionKey, l.description) : void 0);
|
|
886
|
+
return /* @__PURE__ */ z(sr, {
|
|
886
887
|
"data-slot": "empty-state",
|
|
887
888
|
"data-variant": e,
|
|
888
889
|
kind: e,
|
|
@@ -897,7 +898,7 @@ function ir({ kind: e = "empty", size: t = "default", illustration: n, icon: r,
|
|
|
897
898
|
}
|
|
898
899
|
//#endregion
|
|
899
900
|
//#region lib/components/ui/feedback/skeleton/skeleton-text.tsx
|
|
900
|
-
function
|
|
901
|
+
function lr({ lines: e = 3, labelled: t = !0, className: n, ...r }) {
|
|
901
902
|
let { t: i } = a(), o = Math.max(1, e);
|
|
902
903
|
return /* @__PURE__ */ B("div", {
|
|
903
904
|
"data-slot": "skeleton-text",
|
|
@@ -913,12 +914,12 @@ function ar({ lines: e = 3, labelled: t = !0, className: n, ...r }) {
|
|
|
913
914
|
}
|
|
914
915
|
//#endregion
|
|
915
916
|
//#region lib/components/ui/primitives/input/input.tsx
|
|
916
|
-
var
|
|
917
|
-
function
|
|
917
|
+
var ur = D;
|
|
918
|
+
function dr({ className: e, type: t = "text", ...n }) {
|
|
918
919
|
return /* @__PURE__ */ z("input", {
|
|
919
920
|
type: t,
|
|
920
921
|
"data-slot": "input",
|
|
921
|
-
className: A(
|
|
922
|
+
className: A(ur, e),
|
|
922
923
|
"data-pw": n.name ?? "input",
|
|
923
924
|
...n,
|
|
924
925
|
placeholder: Ne(n.placeholder, t)
|
|
@@ -926,7 +927,7 @@ function sr({ className: e, type: t = "text", ...n }) {
|
|
|
926
927
|
}
|
|
927
928
|
//#endregion
|
|
928
929
|
//#region lib/components/ui/fields/text-field/text-field-label.tsx
|
|
929
|
-
function
|
|
930
|
+
function fr({ children: e, action: t, required: n, htmlFor: r }) {
|
|
930
931
|
return t ? /* @__PURE__ */ B("div", {
|
|
931
932
|
"data-slot": "field-label-row",
|
|
932
933
|
className: "flex items-baseline justify-between gap-2",
|
|
@@ -948,21 +949,21 @@ function cr({ children: e, action: t, required: n, htmlFor: r }) {
|
|
|
948
949
|
}
|
|
949
950
|
//#endregion
|
|
950
951
|
//#region lib/lib/compose-refs.ts
|
|
951
|
-
function
|
|
952
|
+
function pr(...e) {
|
|
952
953
|
return (t) => {
|
|
953
954
|
for (let n of e) n && (typeof n == "function" ? n(t) : n.current = t);
|
|
954
955
|
};
|
|
955
956
|
}
|
|
956
957
|
//#endregion
|
|
957
958
|
//#region lib/components/ui/fields/text-field/text-field-units.tsx
|
|
958
|
-
function
|
|
959
|
+
function mr(e, t, n) {
|
|
959
960
|
return e === "password" && t ? "•".repeat(t.length) : t || n || " ";
|
|
960
961
|
}
|
|
961
|
-
var
|
|
962
|
-
function
|
|
963
|
-
e.defaultPrevented || e.target.closest(
|
|
962
|
+
var hr = "button, a, input, select, textarea, label, [role=button], [role=menuitem]";
|
|
963
|
+
function gr(e, t) {
|
|
964
|
+
e.defaultPrevented || e.target.closest(hr) || t?.focus();
|
|
964
965
|
}
|
|
965
|
-
function
|
|
966
|
+
function _r({ align: e, node: t }) {
|
|
966
967
|
return t ? /* @__PURE__ */ z(be, {
|
|
967
968
|
align: e,
|
|
968
969
|
"data-slot": e === "inline-start" ? "text-field-leading" : "text-field-trailing",
|
|
@@ -970,20 +971,20 @@ function pr({ align: e, node: t }) {
|
|
|
970
971
|
children: t
|
|
971
972
|
}) : null;
|
|
972
973
|
}
|
|
973
|
-
function
|
|
974
|
-
let i = r.value !== void 0, [a, o] = L(null), s = I(null), c =
|
|
974
|
+
function vr({ leading: e, trailing: t, ref: n, ...r }) {
|
|
975
|
+
let i = r.value !== void 0, [a, o] = L(null), s = I(null), c = Ze(() => pr(s, n), [n]);
|
|
975
976
|
P(() => {
|
|
976
977
|
let e = s.current?.form;
|
|
977
978
|
if (!e || i) return;
|
|
978
979
|
let t = () => o(null);
|
|
979
980
|
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
980
981
|
}, [i]);
|
|
981
|
-
let l = i ? String(r.value ?? "") : a ?? String(r.defaultValue ?? ""), u =
|
|
982
|
+
let l = i ? String(r.value ?? "") : a ?? String(r.defaultValue ?? ""), u = mr(r.type, l, r.placeholder);
|
|
982
983
|
return /* @__PURE__ */ B(je, {
|
|
983
984
|
className: "gap-1",
|
|
984
|
-
onClick: (e) =>
|
|
985
|
+
onClick: (e) => gr(e, s.current),
|
|
985
986
|
children: [
|
|
986
|
-
/* @__PURE__ */ z(
|
|
987
|
+
/* @__PURE__ */ z(_r, {
|
|
987
988
|
align: "inline-start",
|
|
988
989
|
node: e
|
|
989
990
|
}),
|
|
@@ -1000,7 +1001,7 @@ function mr({ leading: e, trailing: t, ref: n, ...r }) {
|
|
|
1000
1001
|
}
|
|
1001
1002
|
})
|
|
1002
1003
|
}),
|
|
1003
|
-
/* @__PURE__ */ z(
|
|
1004
|
+
/* @__PURE__ */ z(_r, {
|
|
1004
1005
|
align: "inline-end",
|
|
1005
1006
|
node: t
|
|
1006
1007
|
})
|
|
@@ -1009,13 +1010,13 @@ function mr({ leading: e, trailing: t, ref: n, ...r }) {
|
|
|
1009
1010
|
}
|
|
1010
1011
|
//#endregion
|
|
1011
1012
|
//#region lib/components/ui/fields/text-field/text-field.tsx
|
|
1012
|
-
function
|
|
1013
|
-
let c = fe(), l = F(), u = F(), d =
|
|
1013
|
+
function yr({ error: e, helperText: t, label: n, labelAction: r, className: i, leading: a, trailing: o, ...s }) {
|
|
1014
|
+
let c = fe(), l = F(), u = F(), d = zt(s["aria-describedby"], !!t && u), f = !!a && !N(a), p = !!o && !N(o), m = {
|
|
1014
1015
|
"aria-invalid": e,
|
|
1015
1016
|
...s,
|
|
1016
1017
|
id: s.id ?? l,
|
|
1017
1018
|
"aria-describedby": d
|
|
1018
|
-
}, h = f || p ? /* @__PURE__ */ z(
|
|
1019
|
+
}, h = f || p ? /* @__PURE__ */ z(vr, {
|
|
1019
1020
|
...m,
|
|
1020
1021
|
leading: a,
|
|
1021
1022
|
trailing: o
|
|
@@ -1026,7 +1027,7 @@ function hr({ error: e, helperText: t, label: n, labelAction: r, className: i, l
|
|
|
1026
1027
|
}),
|
|
1027
1028
|
children: [
|
|
1028
1029
|
a,
|
|
1029
|
-
/* @__PURE__ */ z(
|
|
1030
|
+
/* @__PURE__ */ z(dr, { ...m }),
|
|
1030
1031
|
o
|
|
1031
1032
|
]
|
|
1032
1033
|
});
|
|
@@ -1034,7 +1035,7 @@ function hr({ error: e, helperText: t, label: n, labelAction: r, className: i, l
|
|
|
1034
1035
|
ref: c,
|
|
1035
1036
|
"data-slot": "text-field",
|
|
1036
1037
|
className: A("grid w-full content-start gap-1.5", i),
|
|
1037
|
-
children: [/* @__PURE__ */ z(
|
|
1038
|
+
children: [/* @__PURE__ */ z(fr, {
|
|
1038
1039
|
required: s.required,
|
|
1039
1040
|
htmlFor: s.id ?? l,
|
|
1040
1041
|
action: r,
|
|
@@ -1051,20 +1052,20 @@ function hr({ error: e, helperText: t, label: n, labelAction: r, className: i, l
|
|
|
1051
1052
|
}
|
|
1052
1053
|
//#endregion
|
|
1053
1054
|
//#region lib/components/ui/fields/email-field/is-email.ts
|
|
1054
|
-
var
|
|
1055
|
-
function
|
|
1055
|
+
var br = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
1056
|
+
function xr(e) {
|
|
1056
1057
|
let t = e.trim();
|
|
1057
|
-
return !t || t.length > 254 ? !1 :
|
|
1058
|
+
return !t || t.length > 254 ? !1 : br.test(t);
|
|
1058
1059
|
}
|
|
1059
1060
|
//#endregion
|
|
1060
1061
|
//#region lib/components/ui/fields/email-field/email-field.tsx
|
|
1061
|
-
function
|
|
1062
|
-
let { t: u } = a(), d = e !== void 0, [f, p] = L(t == null ? "" : String(t)), [m, h] = L(!1), g = String((d ? e : f) ?? ""), _ =
|
|
1062
|
+
function Sr({ value: e, defaultValue: t, onChange: n, onBlur: r, error: i, helperText: o, autoComplete: s = "email", disabled: c, ...l }) {
|
|
1063
|
+
let { t: u } = a(), d = e !== void 0, [f, p] = L(t == null ? "" : String(t)), [m, h] = L(!1), g = String((d ? e : f) ?? ""), _ = xr(g), v = g.trim() !== "" && !_, y = !!i || m && v, b = m && v && !i ? u("material.email-field.invalid", "Enter a valid email") : o, S = u("material.email-field.mailto", "Send email"), C = (e) => {
|
|
1063
1064
|
d || p(e.target.value), n?.(e);
|
|
1064
1065
|
}, w = (e) => {
|
|
1065
1066
|
h(!0), r?.(e);
|
|
1066
1067
|
};
|
|
1067
|
-
return /* @__PURE__ */ z(
|
|
1068
|
+
return /* @__PURE__ */ z(yr, {
|
|
1068
1069
|
...l,
|
|
1069
1070
|
type: "email",
|
|
1070
1071
|
inputMode: "email",
|
|
@@ -1079,7 +1080,7 @@ function vr({ value: e, defaultValue: t, onChange: n, onBlur: r, error: i, helpe
|
|
|
1079
1080
|
onBlur: w,
|
|
1080
1081
|
leading: /* @__PURE__ */ z("span", {
|
|
1081
1082
|
className: "flex size-8 items-center justify-center",
|
|
1082
|
-
children: /* @__PURE__ */ z(
|
|
1083
|
+
children: /* @__PURE__ */ z(St, {
|
|
1083
1084
|
className: "size-4",
|
|
1084
1085
|
"aria-hidden": !0
|
|
1085
1086
|
})
|
|
@@ -1093,77 +1094,77 @@ function vr({ value: e, defaultValue: t, onChange: n, onBlur: r, error: i, helpe
|
|
|
1093
1094
|
onClick: () => {
|
|
1094
1095
|
window.location.assign(`mailto:${g.trim()}`);
|
|
1095
1096
|
},
|
|
1096
|
-
children: /* @__PURE__ */ z(
|
|
1097
|
+
children: /* @__PURE__ */ z(Ot, {})
|
|
1097
1098
|
}) : void 0
|
|
1098
1099
|
});
|
|
1099
1100
|
}
|
|
1100
1101
|
//#endregion
|
|
1101
1102
|
//#region ../../node_modules/react-hook-form/dist/index.esm.mjs
|
|
1102
|
-
var
|
|
1103
|
+
var Cr = (e) => e.type === "checkbox", wr = (e) => e.type === "file", Z = (e) => e instanceof Date, Tr = (e) => e == null, Er = (e) => typeof e == "object", Q = (e) => !Tr(e) && !Array.isArray(e) && Er(e) && !Z(e), Dr = (e) => Q(e) && e.target ? Cr(e.target) ? e.target.checked : wr(e.target) ? e.target.files : e.target.value : e, Or = (e, t) => t.split(".").some((t, n, r) => !isNaN(Number(t)) && e.has(r.slice(0, n).join("."))), kr = (e) => {
|
|
1103
1104
|
let t = e.constructor && e.constructor.prototype;
|
|
1104
1105
|
return Q(t) && t.hasOwnProperty("isPrototypeOf");
|
|
1105
|
-
},
|
|
1106
|
-
function
|
|
1106
|
+
}, Ar = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
1107
|
+
function jr(e) {
|
|
1107
1108
|
if (e instanceof Date) return new Date(e);
|
|
1108
1109
|
let t = typeof FileList < "u" && e instanceof FileList;
|
|
1109
|
-
if (
|
|
1110
|
+
if (Ar && (e instanceof Blob || t)) return e;
|
|
1110
1111
|
let n = Array.isArray(e);
|
|
1111
|
-
if (!n && !(Q(e) &&
|
|
1112
|
+
if (!n && !(Q(e) && kr(e))) return e;
|
|
1112
1113
|
let r = n ? [] : Object.create(Object.getPrototypeOf(e));
|
|
1113
|
-
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] =
|
|
1114
|
+
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = jr(e[t]));
|
|
1114
1115
|
return r;
|
|
1115
1116
|
}
|
|
1116
|
-
var
|
|
1117
|
+
var Mr = {
|
|
1117
1118
|
BLUR: "blur",
|
|
1118
1119
|
FOCUS_OUT: "focusout",
|
|
1119
1120
|
CHANGE: "change",
|
|
1120
1121
|
SUBMIT: "submit",
|
|
1121
1122
|
TRIGGER: "trigger",
|
|
1122
1123
|
VALID: "valid"
|
|
1123
|
-
},
|
|
1124
|
+
}, Nr = {
|
|
1124
1125
|
onBlur: "onBlur",
|
|
1125
1126
|
onChange: "onChange",
|
|
1126
1127
|
onSubmit: "onSubmit",
|
|
1127
1128
|
onTouched: "onTouched",
|
|
1128
1129
|
all: "all"
|
|
1129
|
-
},
|
|
1130
|
+
}, Pr = [
|
|
1130
1131
|
"__proto__",
|
|
1131
1132
|
"constructor",
|
|
1132
1133
|
"prototype"
|
|
1133
|
-
],
|
|
1134
|
+
], Fr = /^\w*$/, Ir = (e) => Fr.test(e), Lr = (e) => e === void 0, Rr = /[.[\]'"]/, zr = (e) => e.split(Rr).filter(Boolean), $ = (e, t, n) => {
|
|
1134
1135
|
if (!t || !Q(e)) return n;
|
|
1135
|
-
let r =
|
|
1136
|
-
if (r.some((e) =>
|
|
1137
|
-
let i = r.reduce((e, t) =>
|
|
1138
|
-
return
|
|
1139
|
-
},
|
|
1140
|
-
let r = -1, i =
|
|
1136
|
+
let r = Ir(t) ? [t] : zr(t);
|
|
1137
|
+
if (r.some((e) => Pr.includes(e))) return n;
|
|
1138
|
+
let i = r.reduce((e, t) => Tr(e) ? void 0 : e[t], e);
|
|
1139
|
+
return Lr(i) || i === e ? Lr(e[t]) ? n : e[t] : i;
|
|
1140
|
+
}, Br = (e) => typeof e == "boolean", Vr = (e) => typeof e == "function", Hr = (e, t, n) => {
|
|
1141
|
+
let r = -1, i = Ir(t) ? [t] : zr(t), a = i.length, o = a - 1;
|
|
1141
1142
|
for (; ++r < a;) {
|
|
1142
1143
|
let t = i[r], a = n;
|
|
1143
1144
|
if (r !== o) {
|
|
1144
1145
|
let n = e[t];
|
|
1145
1146
|
a = Q(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [];
|
|
1146
1147
|
}
|
|
1147
|
-
if (
|
|
1148
|
+
if (Pr.includes(t)) return;
|
|
1148
1149
|
e[t] = a, e = e[t];
|
|
1149
1150
|
}
|
|
1150
|
-
},
|
|
1151
|
-
|
|
1152
|
-
var
|
|
1151
|
+
}, Ur = M.createContext(null);
|
|
1152
|
+
Ur.displayName = "HookFormControlContext";
|
|
1153
|
+
var Wr = () => M.useContext(Ur), Gr = (e, t, n, r = !0) => {
|
|
1153
1154
|
let i = {};
|
|
1154
1155
|
for (let a in e) Object.defineProperty(i, a, { get: () => {
|
|
1155
1156
|
let i = a;
|
|
1156
|
-
return t._proxyFormState[i] !==
|
|
1157
|
+
return t._proxyFormState[i] !== Nr.all && (t._proxyFormState[i] = !r || Nr.all), n && (n[i] = !0), e[i];
|
|
1157
1158
|
} });
|
|
1158
1159
|
return i;
|
|
1159
|
-
},
|
|
1160
|
-
function
|
|
1160
|
+
}, Kr = Ar ? M.useLayoutEffect : M.useEffect, qr = (e) => Tr(e) || !Er(e), Jr = (e, t) => t.length === 0 && !Array.isArray(e) && !kr(e);
|
|
1161
|
+
function Yr(e, t, n = /* @__PURE__ */ new WeakMap()) {
|
|
1161
1162
|
if (e === t) return !0;
|
|
1162
|
-
if (
|
|
1163
|
+
if (qr(e) || qr(t)) return Object.is(e, t);
|
|
1163
1164
|
if (Z(e) && Z(t)) return Object.is(e.getTime(), t.getTime());
|
|
1164
1165
|
let r = Object.keys(e), i = Object.keys(t);
|
|
1165
1166
|
if (r.length !== i.length) return !1;
|
|
1166
|
-
if (
|
|
1167
|
+
if (Jr(e, r) || Jr(t, i)) return Object.is(e, t);
|
|
1167
1168
|
if (!r.length && Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
1168
1169
|
let a = n.get(e);
|
|
1169
1170
|
if (a && a.has(t)) return !0;
|
|
@@ -1177,28 +1178,28 @@ function Gr(e, t, n = /* @__PURE__ */ new WeakMap()) {
|
|
|
1177
1178
|
if (!(i in t)) return !1;
|
|
1178
1179
|
if (i !== "ref") {
|
|
1179
1180
|
let e = t[i];
|
|
1180
|
-
if (Z(r) && Z(e) || (Q(r) || Array.isArray(r)) && (Q(e) || Array.isArray(e)) ? !
|
|
1181
|
+
if (Z(r) && Z(e) || (Q(r) || Array.isArray(r)) && (Q(e) || Array.isArray(e)) ? !Yr(r, e, n) : !Object.is(r, e)) return !1;
|
|
1181
1182
|
}
|
|
1182
1183
|
}
|
|
1183
1184
|
return !0;
|
|
1184
1185
|
}
|
|
1185
|
-
function
|
|
1186
|
+
function Xr() {
|
|
1186
1187
|
let e = M.useRef(!1), t = M.useRef(void 0);
|
|
1187
1188
|
return {
|
|
1188
1189
|
resyncIfNeeded: M.useCallback((n, r, i) => {
|
|
1189
1190
|
if (n && e.current) {
|
|
1190
1191
|
let e = r();
|
|
1191
|
-
|
|
1192
|
+
Yr(t.current, e) || i(e);
|
|
1192
1193
|
}
|
|
1193
1194
|
e.current = !0;
|
|
1194
1195
|
}, []),
|
|
1195
1196
|
snapshot: M.useCallback((e, n) => {
|
|
1196
|
-
e && (t.current =
|
|
1197
|
+
e && (t.current = jr(n()));
|
|
1197
1198
|
}, [])
|
|
1198
1199
|
};
|
|
1199
1200
|
}
|
|
1200
|
-
function
|
|
1201
|
-
let t =
|
|
1201
|
+
function Zr(e) {
|
|
1202
|
+
let t = Wr(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = M.useState(() => ({
|
|
1202
1203
|
...n._formState,
|
|
1203
1204
|
defaultValues: n._defaultValues
|
|
1204
1205
|
})), c = M.useRef({
|
|
@@ -1210,8 +1211,8 @@ function qr(e) {
|
|
|
1210
1211
|
isValidating: !1,
|
|
1211
1212
|
isValid: !1,
|
|
1212
1213
|
errors: !1
|
|
1213
|
-
}), { resyncIfNeeded: l, snapshot: u } =
|
|
1214
|
-
return
|
|
1214
|
+
}), { resyncIfNeeded: l, snapshot: u } = Xr();
|
|
1215
|
+
return Kr(() => {
|
|
1215
1216
|
let e = () => ({
|
|
1216
1217
|
...n._formState,
|
|
1217
1218
|
defaultValues: n._defaultValues
|
|
@@ -1240,17 +1241,17 @@ function qr(e) {
|
|
|
1240
1241
|
u
|
|
1241
1242
|
]), M.useEffect(() => {
|
|
1242
1243
|
c.current.isValid && n._setValid(!0);
|
|
1243
|
-
}, [n]), M.useMemo(() =>
|
|
1244
|
+
}, [n]), M.useMemo(() => Gr(o, n, c.current, !1), [o, n]);
|
|
1244
1245
|
}
|
|
1245
|
-
var
|
|
1246
|
-
function
|
|
1247
|
-
let t =
|
|
1246
|
+
var Qr = (e) => typeof e == "string", $r = (e, t, n, r, i) => Qr(e) ? (r && t.watch.add(e), $(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), $(n, e))) : (r && (t.watchAll = !0), n);
|
|
1247
|
+
function ei(e) {
|
|
1248
|
+
let t = Wr(), { control: n = t, name: r, defaultValue: i, disabled: a, exact: o, compute: s } = e || {}, c = M.useRef(i), l = M.useRef(s), u = M.useRef(void 0), d = M.useRef(n), f = M.useRef(r);
|
|
1248
1249
|
l.current = s;
|
|
1249
1250
|
let [p, m] = M.useState(() => {
|
|
1250
1251
|
let e = n._getWatch(r, c.current);
|
|
1251
1252
|
return l.current ? l.current(e) : e;
|
|
1252
1253
|
}), h = M.useCallback((e) => {
|
|
1253
|
-
let t =
|
|
1254
|
+
let t = $r(r, n._names, e || n._formValues, !1, c.current);
|
|
1254
1255
|
return l.current ? l.current(t) : t;
|
|
1255
1256
|
}, [
|
|
1256
1257
|
n._formValues,
|
|
@@ -1258,10 +1259,10 @@ function Xr(e) {
|
|
|
1258
1259
|
r
|
|
1259
1260
|
]), g = M.useCallback((e) => {
|
|
1260
1261
|
if (!a) {
|
|
1261
|
-
let t =
|
|
1262
|
+
let t = $r(r, n._names, e || n._formValues, !1, c.current);
|
|
1262
1263
|
if (l.current) {
|
|
1263
1264
|
let e = l.current(t);
|
|
1264
|
-
|
|
1265
|
+
Yr(e, u.current) || (m(e), u.current = e);
|
|
1265
1266
|
} else m(t);
|
|
1266
1267
|
}
|
|
1267
1268
|
}, [
|
|
@@ -1269,11 +1270,11 @@ function Xr(e) {
|
|
|
1269
1270
|
n._names,
|
|
1270
1271
|
a,
|
|
1271
1272
|
r
|
|
1272
|
-
]), { resyncIfNeeded: _, snapshot: v } =
|
|
1273
|
+
]), { resyncIfNeeded: _, snapshot: v } = Xr(), y = M.useRef(g);
|
|
1273
1274
|
y.current = g;
|
|
1274
1275
|
let b = M.useRef(h);
|
|
1275
|
-
b.current = h,
|
|
1276
|
-
d.current !== n || !
|
|
1276
|
+
b.current = h, Kr(() => {
|
|
1277
|
+
d.current !== n || !Yr(f.current, r) ? (d.current = n, f.current = r, y.current()) : _(!a, () => b.current(), (e) => {
|
|
1277
1278
|
m(e), u.current = e;
|
|
1278
1279
|
});
|
|
1279
1280
|
let e = n._subscribe({
|
|
@@ -1297,7 +1298,7 @@ function Xr(e) {
|
|
|
1297
1298
|
]), M.useEffect(() => n._removeUnmounted());
|
|
1298
1299
|
let x = d.current !== n, S = f.current, C = M.useMemo(() => {
|
|
1299
1300
|
if (a) return null;
|
|
1300
|
-
let e = !x && !
|
|
1301
|
+
let e = !x && !Yr(S, r);
|
|
1301
1302
|
return x || e ? h() : null;
|
|
1302
1303
|
}, [
|
|
1303
1304
|
a,
|
|
@@ -1308,8 +1309,8 @@ function Xr(e) {
|
|
|
1308
1309
|
]);
|
|
1309
1310
|
return C === null ? p : C;
|
|
1310
1311
|
}
|
|
1311
|
-
function
|
|
1312
|
-
let t =
|
|
1312
|
+
function ti(e) {
|
|
1313
|
+
let t = Wr(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = Or(i._names.array, n), l = ei({
|
|
1313
1314
|
control: i,
|
|
1314
1315
|
name: n,
|
|
1315
1316
|
defaultValue: M.useMemo(() => $(i._formValues, n, $(i._defaultValues, n, o)), [
|
|
@@ -1318,14 +1319,14 @@ function Zr(e) {
|
|
|
1318
1319
|
o
|
|
1319
1320
|
]),
|
|
1320
1321
|
exact: s
|
|
1321
|
-
}), u =
|
|
1322
|
+
}), u = Zr({
|
|
1322
1323
|
control: i,
|
|
1323
1324
|
name: n,
|
|
1324
1325
|
exact: s
|
|
1325
1326
|
}), d = M.useRef(e), f = M.useRef(null), p = M.useRef(i.register(n, {
|
|
1326
1327
|
...e.rules,
|
|
1327
1328
|
value: l,
|
|
1328
|
-
...
|
|
1329
|
+
...Br(e.disabled) ? { disabled: e.disabled } : {}
|
|
1329
1330
|
}));
|
|
1330
1331
|
d.current = e;
|
|
1331
1332
|
let m = M.useMemo(() => Object.defineProperties({}, {
|
|
@@ -1350,36 +1351,36 @@ function Zr(e) {
|
|
|
1350
1351
|
get: () => $(u.errors, n)
|
|
1351
1352
|
}
|
|
1352
1353
|
}), [u, n]), h = M.useCallback((e) => {
|
|
1353
|
-
let t =
|
|
1354
|
+
let t = Dr(e);
|
|
1354
1355
|
return $(i._fields, n) || (p.current = i.register(n, {
|
|
1355
1356
|
...d.current.rules,
|
|
1356
1357
|
value: t
|
|
1357
1358
|
})), p.current.onChange({
|
|
1358
1359
|
target: {
|
|
1359
|
-
value:
|
|
1360
|
+
value: Dr(e),
|
|
1360
1361
|
name: n
|
|
1361
1362
|
},
|
|
1362
|
-
type:
|
|
1363
|
+
type: Mr.CHANGE
|
|
1363
1364
|
});
|
|
1364
1365
|
}, [n, i]), g = M.useCallback(() => p.current.onBlur({
|
|
1365
1366
|
target: {
|
|
1366
1367
|
value: $(i._formValues, n),
|
|
1367
1368
|
name: n
|
|
1368
1369
|
},
|
|
1369
|
-
type:
|
|
1370
|
+
type: Mr.BLUR
|
|
1370
1371
|
}), [n, i._formValues]), _ = M.useCallback((e) => {
|
|
1371
1372
|
e && (f.current = {
|
|
1372
|
-
focus: () =>
|
|
1373
|
-
select: () =>
|
|
1374
|
-
setCustomValidity: (t) =>
|
|
1375
|
-
reportValidity: () =>
|
|
1373
|
+
focus: () => Vr(e.focus) && e.focus(),
|
|
1374
|
+
select: () => Vr(e.select) && e.select(),
|
|
1375
|
+
setCustomValidity: (t) => Vr(e.setCustomValidity) && e.setCustomValidity(t),
|
|
1376
|
+
reportValidity: () => Vr(e.reportValidity) && e.reportValidity()
|
|
1376
1377
|
});
|
|
1377
1378
|
let t = $(i._fields, n);
|
|
1378
1379
|
t && t._f && e && (t._f.ref = f.current);
|
|
1379
1380
|
}, [i._fields, n]), v = M.useMemo(() => ({
|
|
1380
1381
|
name: n,
|
|
1381
1382
|
value: l,
|
|
1382
|
-
...
|
|
1383
|
+
...Br(r) || u.disabled ? { disabled: u.disabled || r } : {},
|
|
1383
1384
|
onChange: h,
|
|
1384
1385
|
onBlur: g,
|
|
1385
1386
|
ref: _
|
|
@@ -1396,15 +1397,15 @@ function Zr(e) {
|
|
|
1396
1397
|
let e = i._options.shouldUnregister || a;
|
|
1397
1398
|
p.current = i.register(n, {
|
|
1398
1399
|
...d.current.rules,
|
|
1399
|
-
...
|
|
1400
|
+
...Br(d.current.disabled) ? { disabled: d.current.disabled } : {}
|
|
1400
1401
|
});
|
|
1401
1402
|
let t = (e, t) => {
|
|
1402
1403
|
let n = $(i._fields, e);
|
|
1403
1404
|
n && n._f && (n._f.mount = t);
|
|
1404
1405
|
};
|
|
1405
1406
|
if (t(n, !0), e) {
|
|
1406
|
-
let e =
|
|
1407
|
-
|
|
1407
|
+
let e = jr($(a ? i._defaultValues : i._options.values || i._defaultValues, n, $(i._options.defaultValues, n, d.current.defaultValue)));
|
|
1408
|
+
Hr(i._defaultValues, n, e), Lr($(i._formValues, n)) && Hr(i._formValues, n, e);
|
|
1408
1409
|
}
|
|
1409
1410
|
if (!c && i.register(n), f.current) {
|
|
1410
1411
|
let e = $(i._fields, n);
|
|
@@ -1437,15 +1438,15 @@ function Zr(e) {
|
|
|
1437
1438
|
m
|
|
1438
1439
|
]);
|
|
1439
1440
|
}
|
|
1440
|
-
var
|
|
1441
|
-
|
|
1441
|
+
var ni = (e) => e.render(ti(e)), ri = M.createContext(null);
|
|
1442
|
+
ri.displayName = "HookFormContext", Nr.onSubmit, Nr.onChange;
|
|
1442
1443
|
//#endregion
|
|
1443
1444
|
//#region lib/components/ui/fields/email-field/email-form-field.tsx
|
|
1444
|
-
function
|
|
1445
|
-
return /* @__PURE__ */ z(
|
|
1445
|
+
function ii({ control: e, name: t, ...n }) {
|
|
1446
|
+
return /* @__PURE__ */ z(ni, {
|
|
1446
1447
|
control: e,
|
|
1447
1448
|
name: t,
|
|
1448
|
-
render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(
|
|
1449
|
+
render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(Sr, {
|
|
1449
1450
|
...n,
|
|
1450
1451
|
ref: e.ref,
|
|
1451
1452
|
name: e.name,
|
|
@@ -1460,17 +1461,17 @@ function ei({ control: e, name: t, ...n }) {
|
|
|
1460
1461
|
}
|
|
1461
1462
|
//#endregion
|
|
1462
1463
|
//#region lib/components/ui/fields/text-field/text-form-field.tsx
|
|
1463
|
-
function
|
|
1464
|
+
function ai({ control: e, name: t, ...n }) {
|
|
1464
1465
|
let r = (e) => (t) => {
|
|
1465
1466
|
if (n.type === "number") {
|
|
1466
1467
|
let n = parseFloat(t.target.value ?? "");
|
|
1467
1468
|
e.onChange(Number.isNaN(n) ? null : n);
|
|
1468
1469
|
} else e.onChange(t);
|
|
1469
1470
|
};
|
|
1470
|
-
return /* @__PURE__ */ z(
|
|
1471
|
+
return /* @__PURE__ */ z(ni, {
|
|
1471
1472
|
control: e,
|
|
1472
1473
|
name: t,
|
|
1473
|
-
render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(
|
|
1474
|
+
render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(yr, {
|
|
1474
1475
|
...n,
|
|
1475
1476
|
ref: e.ref,
|
|
1476
1477
|
"aria-invalid": t.invalid,
|
|
@@ -1486,7 +1487,7 @@ function ti({ control: e, name: t, ...n }) {
|
|
|
1486
1487
|
}
|
|
1487
1488
|
//#endregion
|
|
1488
1489
|
//#region lib/components/ui/primitives/textarea/textarea.tsx
|
|
1489
|
-
function
|
|
1490
|
+
function oi({ className: e, ...t }) {
|
|
1490
1491
|
return /* @__PURE__ */ z("textarea", {
|
|
1491
1492
|
"data-slot": "textarea",
|
|
1492
1493
|
"data-pw": t.name ?? "textarea",
|
|
@@ -1497,7 +1498,7 @@ function ni({ className: e, ...t }) {
|
|
|
1497
1498
|
}
|
|
1498
1499
|
//#endregion
|
|
1499
1500
|
//#region lib/components/ui/fields/textarea-field/textarea-footer.tsx
|
|
1500
|
-
function
|
|
1501
|
+
function si({ helperText: e, helperId: t, countId: n, error: r, countVisible: i, length: o, maxLength: s, overLimit: c }) {
|
|
1501
1502
|
let { t: l } = a();
|
|
1502
1503
|
if (!e && !i) return null;
|
|
1503
1504
|
let u = s != null && o >= s * .9;
|
|
@@ -1517,16 +1518,16 @@ function ri({ helperText: e, helperId: t, countId: n, error: r, countVisible: i,
|
|
|
1517
1518
|
children: [s == null ? String(o) : l("material.textarea-field.count", `${o}/${s}`, {
|
|
1518
1519
|
count: o,
|
|
1519
1520
|
max: s
|
|
1520
|
-
}), c && s != null && /* @__PURE__ */ z(
|
|
1521
|
+
}), c && s != null && /* @__PURE__ */ z(ci, { excess: o - s })]
|
|
1521
1522
|
})]
|
|
1522
1523
|
});
|
|
1523
1524
|
}
|
|
1524
|
-
function
|
|
1525
|
+
function ci({ excess: e }) {
|
|
1525
1526
|
let { t } = a();
|
|
1526
1527
|
return /* @__PURE__ */ B("span", {
|
|
1527
1528
|
"data-slot": "textarea-excess",
|
|
1528
1529
|
className: "inline-flex items-center gap-1",
|
|
1529
|
-
children: [/* @__PURE__ */ z(
|
|
1530
|
+
children: [/* @__PURE__ */ z(st, {
|
|
1530
1531
|
"aria-hidden": "true",
|
|
1531
1532
|
className: "size-3.5"
|
|
1532
1533
|
}), t("material.textarea-field.excess", `${e} over`, { count: e })]
|
|
@@ -1534,7 +1535,7 @@ function ii({ excess: e }) {
|
|
|
1534
1535
|
}
|
|
1535
1536
|
//#endregion
|
|
1536
1537
|
//#region lib/components/ui/fields/textarea-field/textarea-rows.ts
|
|
1537
|
-
var
|
|
1538
|
+
var li = {
|
|
1538
1539
|
1: "min-h-[calc(1lh+1rem)]",
|
|
1539
1540
|
2: "min-h-[calc(2lh+1rem)]",
|
|
1540
1541
|
3: "min-h-[calc(3lh+1rem)]",
|
|
@@ -1543,7 +1544,7 @@ var ai = {
|
|
|
1543
1544
|
6: "min-h-[calc(6lh+1rem)]",
|
|
1544
1545
|
8: "min-h-[calc(8lh+1rem)]",
|
|
1545
1546
|
10: "min-h-[calc(10lh+1rem)]"
|
|
1546
|
-
},
|
|
1547
|
+
}, ui = {
|
|
1547
1548
|
1: "max-h-[calc(1lh+1rem)]",
|
|
1548
1549
|
2: "max-h-[calc(2lh+1rem)]",
|
|
1549
1550
|
3: "max-h-[calc(3lh+1rem)]",
|
|
@@ -1555,14 +1556,14 @@ var ai = {
|
|
|
1555
1556
|
12: "max-h-[calc(12lh+1rem)]",
|
|
1556
1557
|
16: "max-h-[calc(16lh+1rem)]"
|
|
1557
1558
|
};
|
|
1558
|
-
function
|
|
1559
|
+
function di(e, t) {
|
|
1559
1560
|
let n = Object.keys(e).map(Number);
|
|
1560
1561
|
return e[n.filter((e) => e <= t).pop() ?? n[0] ?? 1];
|
|
1561
1562
|
}
|
|
1562
|
-
function
|
|
1563
|
-
return [e != null &&
|
|
1563
|
+
function fi(e, t) {
|
|
1564
|
+
return [e != null && di(li, e), t != null && di(ui, t)];
|
|
1564
1565
|
}
|
|
1565
|
-
function
|
|
1566
|
+
function pi(e, t) {
|
|
1566
1567
|
let n = I({});
|
|
1567
1568
|
return Je((r) => {
|
|
1568
1569
|
if (!r) return;
|
|
@@ -1573,13 +1574,13 @@ function li(e, t) {
|
|
|
1573
1574
|
};
|
|
1574
1575
|
}, [e, t]);
|
|
1575
1576
|
}
|
|
1576
|
-
function
|
|
1577
|
-
let r =
|
|
1578
|
-
return
|
|
1577
|
+
function mi(e, t, n) {
|
|
1578
|
+
let r = pi(t, n);
|
|
1579
|
+
return Ze(() => pr(e, r), [e, r]);
|
|
1579
1580
|
}
|
|
1580
1581
|
//#endregion
|
|
1581
1582
|
//#region lib/components/ui/fields/textarea-field/textarea-field.tsx
|
|
1582
|
-
function
|
|
1583
|
+
function hi(e, t, n) {
|
|
1583
1584
|
let r = e !== void 0, [i, a] = L(t == null ? "" : String(t));
|
|
1584
1585
|
return {
|
|
1585
1586
|
text: String((r ? e : i) ?? ""),
|
|
@@ -1588,8 +1589,8 @@ function di(e, t, n) {
|
|
|
1588
1589
|
}
|
|
1589
1590
|
};
|
|
1590
1591
|
}
|
|
1591
|
-
function
|
|
1592
|
-
let g = fe(), _ = F(), v = F(), b = F(), x =
|
|
1592
|
+
function gi({ error: e, helperText: t, label: n, className: r, placeholder: i, minRows: a, maxRows: o, showCount: s, monospace: c, maxLength: l, limit: u, count: d, value: f, defaultValue: p, onChange: m, ...h }) {
|
|
1593
|
+
let g = fe(), _ = F(), v = F(), b = F(), x = zt(h["aria-describedby"], !!t && v), { text: S, handleChange: C } = hi(f, p, m), w = mi(h.ref, a, o), T = u ?? l, E = d ? d(S) : S.length, D = s ?? T != null, O = T != null && E > T;
|
|
1593
1594
|
return /* @__PURE__ */ B("div", {
|
|
1594
1595
|
ref: g,
|
|
1595
1596
|
"data-slot": "textarea-field",
|
|
@@ -1600,7 +1601,7 @@ function fi({ error: e, helperText: t, label: n, className: r, placeholder: i, m
|
|
|
1600
1601
|
htmlFor: h.id ?? _,
|
|
1601
1602
|
children: n
|
|
1602
1603
|
}),
|
|
1603
|
-
/* @__PURE__ */ z(
|
|
1604
|
+
/* @__PURE__ */ z(oi, {
|
|
1604
1605
|
...h,
|
|
1605
1606
|
ref: w,
|
|
1606
1607
|
placeholder: i,
|
|
@@ -1610,10 +1611,10 @@ function fi({ error: e, helperText: t, label: n, className: r, placeholder: i, m
|
|
|
1610
1611
|
defaultValue: p,
|
|
1611
1612
|
onChange: C,
|
|
1612
1613
|
"aria-invalid": e || O || void 0,
|
|
1613
|
-
"aria-describedby":
|
|
1614
|
-
className: A(a != null && "min-h-0", o != null && "overflow-y-auto",
|
|
1614
|
+
"aria-describedby": zt(x, D && b),
|
|
1615
|
+
className: A(a != null && "min-h-0", o != null && "overflow-y-auto", fi(a, o), c && "font-mono")
|
|
1615
1616
|
}),
|
|
1616
|
-
/* @__PURE__ */ z(
|
|
1617
|
+
/* @__PURE__ */ z(si, {
|
|
1617
1618
|
helperText: t,
|
|
1618
1619
|
helperId: v,
|
|
1619
1620
|
countId: b,
|
|
@@ -1628,11 +1629,11 @@ function fi({ error: e, helperText: t, label: n, className: r, placeholder: i, m
|
|
|
1628
1629
|
}
|
|
1629
1630
|
//#endregion
|
|
1630
1631
|
//#region lib/components/ui/fields/textarea-field/textarea-form-field.tsx
|
|
1631
|
-
function
|
|
1632
|
-
return /* @__PURE__ */ z(
|
|
1632
|
+
function _i({ control: e, name: t, ...n }) {
|
|
1633
|
+
return /* @__PURE__ */ z(ni, {
|
|
1633
1634
|
control: e,
|
|
1634
1635
|
name: t,
|
|
1635
|
-
render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(
|
|
1636
|
+
render: ({ field: e, fieldState: t }) => /* @__PURE__ */ z(gi, {
|
|
1636
1637
|
...n,
|
|
1637
1638
|
ref: e.ref,
|
|
1638
1639
|
"aria-invalid": t.invalid,
|
|
@@ -1648,12 +1649,12 @@ function pi({ control: e, name: t, ...n }) {
|
|
|
1648
1649
|
}
|
|
1649
1650
|
//#endregion
|
|
1650
1651
|
//#region lib/files-drop/drop-messages.ts
|
|
1651
|
-
function
|
|
1652
|
+
function vi() {
|
|
1652
1653
|
let { t: e } = a();
|
|
1653
1654
|
return Je((t) => {
|
|
1654
1655
|
switch (t.code) {
|
|
1655
1656
|
case "type": return e("material.upload.invalid-type", "File type not accepted");
|
|
1656
|
-
case "size": return e("material.upload.too-large", "File exceeds maximum size of {size}", { size:
|
|
1657
|
+
case "size": return e("material.upload.too-large", "File exceeds maximum size of {size}", { size: Vt(t.maxSize) });
|
|
1657
1658
|
case "count": return e("material.upload.max-files", "{count, plural, one {Maximum of # file reached} other {Maximum of # files reached}}", { count: t.maxFiles });
|
|
1658
1659
|
default: return e("material.drop-overlay.empty", "File is empty");
|
|
1659
1660
|
}
|
|
@@ -1661,7 +1662,7 @@ function mi() {
|
|
|
1661
1662
|
}
|
|
1662
1663
|
//#endregion
|
|
1663
1664
|
//#region lib/components/ui/media/attachment-list/use-canvas-thumbnail.ts
|
|
1664
|
-
function
|
|
1665
|
+
function yi(e, t, n) {
|
|
1665
1666
|
let [r, i] = L(!1);
|
|
1666
1667
|
return P(() => {
|
|
1667
1668
|
if (i(!1), !t?.type.startsWith("image/") || typeof createImageBitmap != "function") return;
|
|
@@ -1682,19 +1683,19 @@ function hi(e, t, n) {
|
|
|
1682
1683
|
}
|
|
1683
1684
|
//#endregion
|
|
1684
1685
|
//#region lib/components/ui/media/attachment-list/attachment-list.tsx
|
|
1685
|
-
var
|
|
1686
|
-
image:
|
|
1687
|
-
pdf:
|
|
1688
|
-
video:
|
|
1689
|
-
audio:
|
|
1690
|
-
text:
|
|
1691
|
-
json:
|
|
1692
|
-
csv:
|
|
1693
|
-
markdown:
|
|
1694
|
-
other:
|
|
1686
|
+
var bi = {
|
|
1687
|
+
image: ht,
|
|
1688
|
+
pdf: yt,
|
|
1689
|
+
video: bt,
|
|
1690
|
+
audio: gt,
|
|
1691
|
+
text: yt,
|
|
1692
|
+
json: mt,
|
|
1693
|
+
csv: vt,
|
|
1694
|
+
markdown: yt,
|
|
1695
|
+
other: pt
|
|
1695
1696
|
};
|
|
1696
|
-
function
|
|
1697
|
-
let n = I(null), r =
|
|
1697
|
+
function xi({ item: e, size: t }) {
|
|
1698
|
+
let n = I(null), r = yi(n, e.file instanceof Blob ? e.file : void 0, t * 2), i = bi[Bt({
|
|
1698
1699
|
type: e.file.type,
|
|
1699
1700
|
name: e.file.name
|
|
1700
1701
|
})];
|
|
@@ -1715,14 +1716,14 @@ function _i({ item: e, size: t }) {
|
|
|
1715
1716
|
})]
|
|
1716
1717
|
});
|
|
1717
1718
|
}
|
|
1718
|
-
function
|
|
1719
|
-
let { t: r } = a(), i =
|
|
1719
|
+
function Si({ item: e, size: t, onRemove: n }) {
|
|
1720
|
+
let { t: r } = a(), i = vi(), o = e.refusal !== void 0, s = typeof e.refusal == "string" ? e.refusal : e.refusal && i(e.refusal), c = e.progress !== void 0 && !o;
|
|
1720
1721
|
return /* @__PURE__ */ B("li", {
|
|
1721
1722
|
"data-slot": "attachment",
|
|
1722
1723
|
"data-refused": o ? "" : void 0,
|
|
1723
1724
|
className: A("flex min-w-0 items-center gap-3 rounded-lg border bg-card p-2 text-card-foreground", o ? "border-error" : "border-border"),
|
|
1724
1725
|
children: [
|
|
1725
|
-
/* @__PURE__ */ z(
|
|
1726
|
+
/* @__PURE__ */ z(xi, {
|
|
1726
1727
|
item: e,
|
|
1727
1728
|
size: t
|
|
1728
1729
|
}),
|
|
@@ -1733,10 +1734,10 @@ function vi({ item: e, size: t, onRemove: n }) {
|
|
|
1733
1734
|
className: "truncate text-body-md font-medium",
|
|
1734
1735
|
children: e.file.name
|
|
1735
1736
|
}),
|
|
1736
|
-
/* @__PURE__ */ z("span", {
|
|
1737
|
+
typeof e.file.size == "number" && Number.isFinite(e.file.size) ? /* @__PURE__ */ z("span", {
|
|
1737
1738
|
className: "text-body-sm text-muted-foreground",
|
|
1738
|
-
children:
|
|
1739
|
-
}),
|
|
1739
|
+
children: Vt(e.file.size)
|
|
1740
|
+
}) : null,
|
|
1740
1741
|
c ? /* @__PURE__ */ z("progress", {
|
|
1741
1742
|
max: 100,
|
|
1742
1743
|
value: Math.min(100, Math.max(0, e.progress ?? 0)),
|
|
@@ -1746,7 +1747,7 @@ function vi({ item: e, size: t, onRemove: n }) {
|
|
|
1746
1747
|
s ? /* @__PURE__ */ B("span", {
|
|
1747
1748
|
role: "alert",
|
|
1748
1749
|
className: "flex items-center gap-1 text-body-sm text-error-text",
|
|
1749
|
-
children: [/* @__PURE__ */ z(
|
|
1750
|
+
children: [/* @__PURE__ */ z(st, {
|
|
1750
1751
|
"aria-hidden": !0,
|
|
1751
1752
|
className: "size-3.5 shrink-0"
|
|
1752
1753
|
}), s]
|
|
@@ -1764,24 +1765,24 @@ function vi({ item: e, size: t, onRemove: n }) {
|
|
|
1764
1765
|
]
|
|
1765
1766
|
}, e.id);
|
|
1766
1767
|
}
|
|
1767
|
-
function
|
|
1768
|
+
function Ci({ items: e, onRemove: t, thumbnailSize: n = 40, className: r, ...i }) {
|
|
1768
1769
|
let { t: o } = a();
|
|
1769
1770
|
return /* @__PURE__ */ z("ul", {
|
|
1770
1771
|
"data-slot": "attachment-list",
|
|
1771
1772
|
"aria-label": o("material.attachments.label", "Attachments"),
|
|
1772
1773
|
className: A("m-0 flex list-none flex-col gap-2 p-0", r),
|
|
1773
1774
|
...i,
|
|
1774
|
-
children: e.map((e) => /* @__PURE__ */ z(
|
|
1775
|
+
children: e.map((e) => /* @__PURE__ */ z(Si, {
|
|
1775
1776
|
item: e,
|
|
1776
1777
|
size: n,
|
|
1777
1778
|
onRemove: t
|
|
1778
1779
|
}, e.id))
|
|
1779
1780
|
});
|
|
1780
1781
|
}
|
|
1781
|
-
|
|
1782
|
+
Ci.displayName = "AttachmentList";
|
|
1782
1783
|
//#endregion
|
|
1783
1784
|
//#region lib/components/ui/overlays/dialog/dialog-aside.tsx
|
|
1784
|
-
function
|
|
1785
|
+
function wi({ className: e, ...t }) {
|
|
1785
1786
|
return /* @__PURE__ */ z("aside", {
|
|
1786
1787
|
"data-slot": "dialog-aside",
|
|
1787
1788
|
className: A("min-h-0 overflow-y-auto overscroll-contain rounded-2xl bg-muted p-4", e),
|
|
@@ -1790,13 +1791,13 @@ function bi({ className: e, ...t }) {
|
|
|
1790
1791
|
}
|
|
1791
1792
|
//#endregion
|
|
1792
1793
|
//#region lib/components/ui/overlays/dialog/dialog-body-overflow.ts
|
|
1793
|
-
function
|
|
1794
|
+
function Ti(e) {
|
|
1794
1795
|
let t = e.scrollHeight > e.clientHeight + 1;
|
|
1795
1796
|
e.toggleAttribute("data-overflow-start", t && e.scrollTop > 0), e.toggleAttribute("data-overflow-end", t && e.scrollTop + e.clientHeight < e.scrollHeight - 1);
|
|
1796
1797
|
}
|
|
1797
|
-
function
|
|
1798
|
-
if (
|
|
1799
|
-
let t = () =>
|
|
1798
|
+
function Ei(e) {
|
|
1799
|
+
if (Ti(e), typeof ResizeObserver > "u") return () => void 0;
|
|
1800
|
+
let t = () => Ti(e), n = new ResizeObserver(t), r = () => {
|
|
1800
1801
|
n.disconnect(), n.observe(e);
|
|
1801
1802
|
for (let t of Array.from(e.children)) n.observe(t);
|
|
1802
1803
|
t();
|
|
@@ -1809,13 +1810,13 @@ function Si(e) {
|
|
|
1809
1810
|
}
|
|
1810
1811
|
//#endregion
|
|
1811
1812
|
//#region lib/components/ui/overlays/dialog/dialog-body.tsx
|
|
1812
|
-
function
|
|
1813
|
+
function Di({ className: e, children: t, onScroll: n, ref: r, ...i }) {
|
|
1813
1814
|
let a = I(null), o = Je(() => {
|
|
1814
|
-
a.current &&
|
|
1815
|
+
a.current && Ti(a.current);
|
|
1815
1816
|
}, []);
|
|
1816
1817
|
return P(() => {
|
|
1817
1818
|
let e = a.current;
|
|
1818
|
-
return e ?
|
|
1819
|
+
return e ? Ei(e) : void 0;
|
|
1819
1820
|
}, []), /* @__PURE__ */ z("div", {
|
|
1820
1821
|
ref: (e) => {
|
|
1821
1822
|
a.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
@@ -1831,8 +1832,27 @@ function Ci({ className: e, children: t, onScroll: n, ref: r, ...i }) {
|
|
|
1831
1832
|
});
|
|
1832
1833
|
}
|
|
1833
1834
|
//#endregion
|
|
1835
|
+
//#region lib/hooks/use-csp-nonce.ts
|
|
1836
|
+
var Oi = Ke(void 0), ki = Ke(0);
|
|
1837
|
+
function Ai() {
|
|
1838
|
+
return Ye(Oi);
|
|
1839
|
+
}
|
|
1840
|
+
//#endregion
|
|
1841
|
+
//#region lib/components/ui/primitives/nonce-provider/nonce-provider.tsx
|
|
1842
|
+
var ji = () => () => {}, Mi = () => void 0;
|
|
1843
|
+
function Ni({ nonce: e, children: t }) {
|
|
1844
|
+
let n = Ye(Oi), r = $e(ji, tt, Mi), i = e || n || r || void 0, a = Ye(ki);
|
|
1845
|
+
return Xe(() => et(i, a), [i, a]), /* @__PURE__ */ z(Oi.Provider, {
|
|
1846
|
+
value: i,
|
|
1847
|
+
children: /* @__PURE__ */ z(ki.Provider, {
|
|
1848
|
+
value: a + 1,
|
|
1849
|
+
children: t
|
|
1850
|
+
})
|
|
1851
|
+
});
|
|
1852
|
+
}
|
|
1853
|
+
//#endregion
|
|
1834
1854
|
//#region lib/components/ui/primitives/tabs/partials/tabs-trigger-icon-node.tsx
|
|
1835
|
-
function
|
|
1855
|
+
function Pi({ icon: e }) {
|
|
1836
1856
|
return /* @__PURE__ */ z("span", {
|
|
1837
1857
|
"data-slot": "tabs-trigger-icon",
|
|
1838
1858
|
"aria-hidden": "true",
|
|
@@ -1845,20 +1865,20 @@ function wi({ icon: e }) {
|
|
|
1845
1865
|
}
|
|
1846
1866
|
//#endregion
|
|
1847
1867
|
//#region lib/components/ui/primitives/tabs/tabs-embed.tsx
|
|
1848
|
-
function
|
|
1868
|
+
function Fi(e) {
|
|
1849
1869
|
return /* @__PURE__ */ z(Te, {
|
|
1850
|
-
IconPart:
|
|
1870
|
+
IconPart: Pi,
|
|
1851
1871
|
...e
|
|
1852
1872
|
});
|
|
1853
1873
|
}
|
|
1854
1874
|
//#endregion
|
|
1855
1875
|
//#region lib/components/ui/selection/checkbox/checkbox.tsx
|
|
1856
|
-
function
|
|
1876
|
+
function Ii({ label: e, helperText: t, className: n, ...r }) {
|
|
1857
1877
|
let i = F(), a = F(), o = r["aria-invalid"] === !0 || r["aria-invalid"] === "true", s = [r["aria-describedby"], t ? a : void 0].filter(Boolean).join(" ") || void 0;
|
|
1858
1878
|
return e || t ? /* @__PURE__ */ B("div", {
|
|
1859
1879
|
"data-slot": "checkbox-field",
|
|
1860
1880
|
className: A("flex gap-1.5 w-full min-w-[min(280px,100%)] pointer-coarse:py-3", n),
|
|
1861
|
-
children: [/* @__PURE__ */ z(
|
|
1881
|
+
children: [/* @__PURE__ */ z(Li, {
|
|
1862
1882
|
...r,
|
|
1863
1883
|
"aria-describedby": s,
|
|
1864
1884
|
id: r.id ?? i
|
|
@@ -1874,15 +1894,15 @@ function Ei({ label: e, helperText: t, className: n, ...r }) {
|
|
|
1874
1894
|
children: t
|
|
1875
1895
|
})]
|
|
1876
1896
|
})]
|
|
1877
|
-
}) : /* @__PURE__ */ z(
|
|
1897
|
+
}) : /* @__PURE__ */ z(Li, {
|
|
1878
1898
|
"data-slot": "checkbox-field",
|
|
1879
1899
|
className: n,
|
|
1880
1900
|
...r,
|
|
1881
1901
|
id: r.id ?? i
|
|
1882
1902
|
});
|
|
1883
1903
|
}
|
|
1884
|
-
function
|
|
1885
|
-
let d = /* @__PURE__ */ z(
|
|
1904
|
+
function Li({ className: e, checked: t, defaultChecked: n, required: r, onCheckedChange: i, name: a, form: o, disabled: s, value: c, readOnly: l, ...u }) {
|
|
1905
|
+
let d = /* @__PURE__ */ z(sn, {
|
|
1886
1906
|
"data-slot": "checkbox",
|
|
1887
1907
|
...a === void 0 ? {} : { name: a },
|
|
1888
1908
|
"aria-readonly": l || void 0,
|
|
@@ -1909,7 +1929,7 @@ function Di({ className: e, checked: t, defaultChecked: n, required: r, onChecke
|
|
|
1909
1929
|
})
|
|
1910
1930
|
})
|
|
1911
1931
|
});
|
|
1912
|
-
return /* @__PURE__ */ z(
|
|
1932
|
+
return /* @__PURE__ */ z(an, {
|
|
1913
1933
|
checked: l ? t ?? n ?? !1 : t,
|
|
1914
1934
|
defaultChecked: l ? void 0 : n,
|
|
1915
1935
|
required: r,
|
|
@@ -1918,16 +1938,16 @@ function Di({ className: e, checked: t, defaultChecked: n, required: r, onChecke
|
|
|
1918
1938
|
form: o,
|
|
1919
1939
|
disabled: s,
|
|
1920
1940
|
value: c,
|
|
1921
|
-
...He(d, /* @__PURE__ */ z(
|
|
1941
|
+
...He(d, /* @__PURE__ */ z(ln, {}))
|
|
1922
1942
|
});
|
|
1923
1943
|
}
|
|
1924
1944
|
//#endregion
|
|
1925
1945
|
//#region lib/components/ui/selection/checkbox/checkbox-form-field.tsx
|
|
1926
|
-
function
|
|
1927
|
-
return /* @__PURE__ */ z(
|
|
1946
|
+
function Ri({ control: e, name: t, ...n }) {
|
|
1947
|
+
return /* @__PURE__ */ z(ni, {
|
|
1928
1948
|
control: e,
|
|
1929
1949
|
name: t,
|
|
1930
|
-
render: ({ field: e, fieldState: r }) => /* @__PURE__ */ z(
|
|
1950
|
+
render: ({ field: e, fieldState: r }) => /* @__PURE__ */ z(Ii, {
|
|
1931
1951
|
...n,
|
|
1932
1952
|
ref: e.ref,
|
|
1933
1953
|
name: t,
|
|
@@ -1944,14 +1964,14 @@ function Oi({ control: e, name: t, ...n }) {
|
|
|
1944
1964
|
}
|
|
1945
1965
|
//#endregion
|
|
1946
1966
|
//#region lib/components/ui/display/chip/partials/use-reveal-selected.ts
|
|
1947
|
-
var
|
|
1948
|
-
function
|
|
1967
|
+
var zi = "[aria-checked=\"true\"], [aria-pressed=\"true\"], [data-selected]";
|
|
1968
|
+
function Bi(e, t, n, r) {
|
|
1949
1969
|
let i = n ? 48 : 2, a = r ? 48 : 2;
|
|
1950
1970
|
return t.left - i < e.left ? t.left - i - e.left : t.right + a > e.right ? t.right + a - e.right : 0;
|
|
1951
1971
|
}
|
|
1952
|
-
function
|
|
1972
|
+
function Vi(e, t, n) {
|
|
1953
1973
|
if (e.scrollWidth - e.clientWidth <= 1) return;
|
|
1954
|
-
let r = getComputedStyle(e).direction === "rtl", i = r ? t.nextElementSibling : t.previousElementSibling, a = r ? t.previousElementSibling : t.nextElementSibling, o =
|
|
1974
|
+
let r = getComputedStyle(e).direction === "rtl", i = r ? t.nextElementSibling : t.previousElementSibling, a = r ? t.previousElementSibling : t.nextElementSibling, o = Bi(e.getBoundingClientRect(), t.getBoundingClientRect(), i !== null, a !== null);
|
|
1955
1975
|
if (o === 0) return;
|
|
1956
1976
|
let s = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1957
1977
|
e.scrollTo({
|
|
@@ -1959,20 +1979,20 @@ function ji(e, t, n) {
|
|
|
1959
1979
|
behavior: n && !s ? "smooth" : "auto"
|
|
1960
1980
|
});
|
|
1961
1981
|
}
|
|
1962
|
-
function
|
|
1982
|
+
function Hi(e, t) {
|
|
1963
1983
|
P(() => {
|
|
1964
1984
|
let n = e.current;
|
|
1965
1985
|
if (!t || !n) return;
|
|
1966
1986
|
let r = () => {
|
|
1967
|
-
let e = n.querySelectorAll(
|
|
1968
|
-
t &&
|
|
1987
|
+
let e = n.querySelectorAll(zi), t = e[e.length - 1];
|
|
1988
|
+
t && Vi(n, t, !1);
|
|
1969
1989
|
};
|
|
1970
1990
|
r();
|
|
1971
1991
|
let i = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(r);
|
|
1972
1992
|
i?.observe(n);
|
|
1973
1993
|
let a = typeof MutationObserver > "u" ? void 0 : new MutationObserver((e) => {
|
|
1974
1994
|
let t = e.map((e) => e.target).filter((e) => e instanceof HTMLElement && e.matches("[aria-checked=\"true\"], [aria-pressed=\"true\"], [data-selected]")), r = t[t.length - 1];
|
|
1975
|
-
r &&
|
|
1995
|
+
r && Vi(n, r, !0);
|
|
1976
1996
|
});
|
|
1977
1997
|
return a?.observe(n, {
|
|
1978
1998
|
subtree: !0,
|
|
@@ -1989,14 +2009,14 @@ function Mi(e, t) {
|
|
|
1989
2009
|
}
|
|
1990
2010
|
//#endregion
|
|
1991
2011
|
//#region lib/components/ui/display/chip/partials/use-chip-rail.ts
|
|
1992
|
-
var
|
|
2012
|
+
var Ui = [
|
|
1993
2013
|
"-mx-0.5 -my-1 min-w-0 flex-nowrap overflow-x-auto overscroll-x-contain px-0.5 py-1 scroll-px-4 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&>*]:shrink-0",
|
|
1994
2014
|
"ltr:data-[fade=start]:[mask-image:linear-gradient(to_right,transparent,#000_2rem)]",
|
|
1995
2015
|
"ltr:data-[fade=end]:[mask-image:linear-gradient(to_left,transparent,#000_2rem)]",
|
|
1996
2016
|
"rtl:data-[fade=start]:[mask-image:linear-gradient(to_left,transparent,#000_2rem)]",
|
|
1997
2017
|
"rtl:data-[fade=end]:[mask-image:linear-gradient(to_right,transparent,#000_2rem)]",
|
|
1998
2018
|
"data-[fade=both]:[mask-image:linear-gradient(to_right,transparent,#000_2rem,#000_calc(100%-2rem),transparent)]"
|
|
1999
|
-
].join(" "),
|
|
2019
|
+
].join(" "), Wi = [
|
|
2000
2020
|
"max-sm:-mx-0.5 max-sm:-my-1 max-sm:min-w-0 max-sm:flex-nowrap max-sm:overflow-x-auto max-sm:overscroll-x-contain max-sm:px-0.5 max-sm:py-1 max-sm:scroll-px-4 max-sm:snap-x max-sm:snap-proximity max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden max-sm:[&>*]:shrink-0 max-sm:[&>*]:snap-start",
|
|
2001
2021
|
"max-sm:ltr:data-[fade=start]:[mask-image:linear-gradient(to_right,transparent,#000_2rem)]",
|
|
2002
2022
|
"max-sm:ltr:data-[fade=end]:[mask-image:linear-gradient(to_left,transparent,#000_2rem)]",
|
|
@@ -2004,7 +2024,7 @@ var Ni = [
|
|
|
2004
2024
|
"max-sm:rtl:data-[fade=end]:[mask-image:linear-gradient(to_right,transparent,#000_2rem)]",
|
|
2005
2025
|
"max-sm:data-[fade=both]:[mask-image:linear-gradient(to_right,transparent,#000_2rem,#000_calc(100%-2rem),transparent)]"
|
|
2006
2026
|
].join(" ");
|
|
2007
|
-
function
|
|
2027
|
+
function Gi(e, t = !1) {
|
|
2008
2028
|
let n = I(null), [r, i] = L();
|
|
2009
2029
|
return P(() => {
|
|
2010
2030
|
let t = n.current;
|
|
@@ -2025,13 +2045,13 @@ function Fi(e, t = !1) {
|
|
|
2025
2045
|
return o?.observe(t), () => {
|
|
2026
2046
|
t.removeEventListener("scroll", r), t.removeEventListener("wheel", a), o?.disconnect();
|
|
2027
2047
|
};
|
|
2028
|
-
}, [e]),
|
|
2048
|
+
}, [e]), Hi(n, e), e ? {
|
|
2029
2049
|
ref: n,
|
|
2030
2050
|
props: {
|
|
2031
2051
|
"data-overflow": t ? "scroll-phone" : "scroll",
|
|
2032
2052
|
"data-fade": r
|
|
2033
2053
|
},
|
|
2034
|
-
className: t ?
|
|
2054
|
+
className: t ? Wi : Ui
|
|
2035
2055
|
} : {
|
|
2036
2056
|
ref: void 0,
|
|
2037
2057
|
props: void 0,
|
|
@@ -2040,7 +2060,7 @@ function Fi(e, t = !1) {
|
|
|
2040
2060
|
}
|
|
2041
2061
|
//#endregion
|
|
2042
2062
|
//#region lib/components/ui/primitives/label/field-group.tsx
|
|
2043
|
-
function
|
|
2063
|
+
function Ki({ id: e }) {
|
|
2044
2064
|
let { t } = a();
|
|
2045
2065
|
return /* @__PURE__ */ z("span", {
|
|
2046
2066
|
id: e,
|
|
@@ -2048,7 +2068,7 @@ function Ii({ id: e }) {
|
|
|
2048
2068
|
children: t("material.zod.default", "This value is not valid.")
|
|
2049
2069
|
});
|
|
2050
2070
|
}
|
|
2051
|
-
function
|
|
2071
|
+
function qi({ id: e }) {
|
|
2052
2072
|
let { t } = a();
|
|
2053
2073
|
return /* @__PURE__ */ z("span", {
|
|
2054
2074
|
id: e,
|
|
@@ -2056,7 +2076,7 @@ function Li({ id: e }) {
|
|
|
2056
2076
|
children: t("material.zod.required", "This field is required.")
|
|
2057
2077
|
});
|
|
2058
2078
|
}
|
|
2059
|
-
function
|
|
2079
|
+
function Ji({ label: e, labelId: t, describedBy: n = [] }, r) {
|
|
2060
2080
|
let i = !!(r["aria-label"] || r["aria-labelledby"]);
|
|
2061
2081
|
return {
|
|
2062
2082
|
"aria-labelledby": r["aria-labelledby"] || (e && !i ? t : void 0),
|
|
@@ -2065,13 +2085,13 @@ function Ri({ label: e, labelId: t, describedBy: n = [] }, r) {
|
|
|
2065
2085
|
}
|
|
2066
2086
|
//#endregion
|
|
2067
2087
|
//#region lib/components/ui/selection/choice-group/choice-group-header.tsx
|
|
2068
|
-
var
|
|
2088
|
+
var Yi = (e) => ({
|
|
2069
2089
|
labelId: `${e}-label`,
|
|
2070
2090
|
helperId: `${e}-helper`,
|
|
2071
2091
|
invalidId: `${e}-invalid`,
|
|
2072
2092
|
requiredId: `${e}-required`
|
|
2073
2093
|
});
|
|
2074
|
-
function
|
|
2094
|
+
function Xi({ ids: e, label: t, helperText: n, error: r, invalid: i, required: a, multiple: o, hideLabel: s }) {
|
|
2075
2095
|
return /* @__PURE__ */ B(R, { children: [
|
|
2076
2096
|
t && /* @__PURE__ */ z(y, {
|
|
2077
2097
|
id: e.labelId,
|
|
@@ -2079,18 +2099,18 @@ function Bi({ ids: e, label: t, helperText: n, error: r, invalid: i, required: a
|
|
|
2079
2099
|
className: s ? "sr-only" : void 0,
|
|
2080
2100
|
children: t
|
|
2081
2101
|
}),
|
|
2082
|
-
o && a && /* @__PURE__ */ z(
|
|
2102
|
+
o && a && /* @__PURE__ */ z(qi, { id: e.requiredId }),
|
|
2083
2103
|
n && /* @__PURE__ */ z(_, {
|
|
2084
2104
|
id: e.helperId,
|
|
2085
2105
|
error: r,
|
|
2086
2106
|
children: n
|
|
2087
2107
|
}),
|
|
2088
|
-
i && !n && /* @__PURE__ */ z(
|
|
2108
|
+
i && !n && /* @__PURE__ */ z(Ki, { id: e.invalidId })
|
|
2089
2109
|
] });
|
|
2090
2110
|
}
|
|
2091
2111
|
//#endregion
|
|
2092
2112
|
//#region lib/components/ui/selection/choice-group/choice-group-root.tsx
|
|
2093
|
-
function
|
|
2113
|
+
function Zi({ group: e, name: t, slot: n, hideLabel: r, className: i, contentClassName: a, inlineReasons: o, reasonsBelow: s, contentRef: c, contentProps: l, children: u, ref: d, ...f }) {
|
|
2094
2114
|
let p = fe(), { rootProps: m } = e;
|
|
2095
2115
|
return /* @__PURE__ */ B("div", {
|
|
2096
2116
|
"data-slot": n,
|
|
@@ -2100,7 +2120,7 @@ function Vi({ group: e, name: t, slot: n, hideLabel: r, className: i, contentCla
|
|
|
2100
2120
|
...m,
|
|
2101
2121
|
ref: p,
|
|
2102
2122
|
children: [
|
|
2103
|
-
/* @__PURE__ */ z(
|
|
2123
|
+
/* @__PURE__ */ z(Xi, {
|
|
2104
2124
|
ids: e.ids,
|
|
2105
2125
|
label: e.label,
|
|
2106
2126
|
helperText: e.helperText,
|
|
@@ -2135,7 +2155,7 @@ function Vi({ group: e, name: t, slot: n, hideLabel: r, className: i, contentCla
|
|
|
2135
2155
|
}
|
|
2136
2156
|
//#endregion
|
|
2137
2157
|
//#region lib/components/ui/selection/choice-group/choice-selection.ts
|
|
2138
|
-
function
|
|
2158
|
+
function Qi(e) {
|
|
2139
2159
|
return e.type === "multiple" ? {
|
|
2140
2160
|
type: "multiple",
|
|
2141
2161
|
value: e.value,
|
|
@@ -2149,12 +2169,12 @@ function Hi(e) {
|
|
|
2149
2169
|
}
|
|
2150
2170
|
//#endregion
|
|
2151
2171
|
//#region lib/components/ui/selection/choice-group/choice-group-props.ts
|
|
2152
|
-
function
|
|
2172
|
+
function $i({ groupId: e, ids: t, multiple: n, orientation: r, label: i, help: a, invalid: o, required: s, aria: c, onKeyDown: l }) {
|
|
2153
2173
|
return {
|
|
2154
2174
|
role: n ? "group" : "radiogroup",
|
|
2155
2175
|
id: e,
|
|
2156
2176
|
"aria-orientation": n ? void 0 : r,
|
|
2157
|
-
...
|
|
2177
|
+
...Ji({
|
|
2158
2178
|
label: i,
|
|
2159
2179
|
labelId: t.labelId,
|
|
2160
2180
|
describedBy: [
|
|
@@ -2168,7 +2188,7 @@ function Ui({ groupId: e, ids: t, multiple: n, orientation: r, label: i, help: a
|
|
|
2168
2188
|
onKeyDown: l
|
|
2169
2189
|
};
|
|
2170
2190
|
}
|
|
2171
|
-
function
|
|
2191
|
+
function ea({ multiple: e, checked: t, reason: n, isEntry: r, disabled: i, onClick: a, ref: o }) {
|
|
2172
2192
|
return {
|
|
2173
2193
|
role: e ? "checkbox" : "radio",
|
|
2174
2194
|
"aria-checked": t,
|
|
@@ -2183,12 +2203,12 @@ function Wi({ multiple: e, checked: t, reason: n, isEntry: r, disabled: i, onCli
|
|
|
2183
2203
|
}
|
|
2184
2204
|
//#endregion
|
|
2185
2205
|
//#region lib/components/ui/primitives/direction/direction-of.ts
|
|
2186
|
-
function
|
|
2206
|
+
function ta(e) {
|
|
2187
2207
|
return e && getComputedStyle(e).direction === "rtl" ? "rtl" : "ltr";
|
|
2188
2208
|
}
|
|
2189
2209
|
//#endregion
|
|
2190
2210
|
//#region lib/components/ui/selection/choice-group/choice-key-target.ts
|
|
2191
|
-
var
|
|
2211
|
+
var na = /* @__PURE__ */ new Set([
|
|
2192
2212
|
"ArrowUp",
|
|
2193
2213
|
"ArrowDown",
|
|
2194
2214
|
"ArrowLeft",
|
|
@@ -2196,7 +2216,7 @@ var Ki = /* @__PURE__ */ new Set([
|
|
|
2196
2216
|
"Home",
|
|
2197
2217
|
"End"
|
|
2198
2218
|
]);
|
|
2199
|
-
function
|
|
2219
|
+
function ra(e, t, n) {
|
|
2200
2220
|
let r = n[t]?.getBoundingClientRect();
|
|
2201
2221
|
if (!r) return null;
|
|
2202
2222
|
let i = r.left + r.width / 2, a = r.top + r.height / 2, o = e === "ArrowDown", s = n.flatMap((e, n) => {
|
|
@@ -2213,37 +2233,37 @@ function qi(e, t, n) {
|
|
|
2213
2233
|
let c = Math.min(...s.map((e) => e.dy));
|
|
2214
2234
|
return s.filter((e) => e.dy - c < r.height / 2).sort((e, t) => e.dx - t.dx)[0].index;
|
|
2215
2235
|
}
|
|
2216
|
-
function
|
|
2236
|
+
function ia(e, t, n, r, i) {
|
|
2217
2237
|
if (e.altKey || e.ctrlKey || e.metaKey) return null;
|
|
2218
2238
|
if (e.key === "Enter") return e.preventDefault(), null;
|
|
2219
|
-
if (!
|
|
2239
|
+
if (!na.has(e.key) || r) return null;
|
|
2220
2240
|
let a = t.indexOf(e.target);
|
|
2221
2241
|
if (a === -1) return null;
|
|
2222
|
-
let o = e.key === "ArrowUp" || e.key === "ArrowDown", s = (i && o ?
|
|
2242
|
+
let o = e.key === "ArrowUp" || e.key === "ArrowDown", s = (i && o ? ra(e.key, a, t) : null) ?? Gt(e.key, a, n.map(() => ({ enabled: !0 })), { rtl: ta(e.currentTarget) === "rtl" });
|
|
2223
2243
|
return e.preventDefault(), s === null ? null : (t[s]?.focus(), s);
|
|
2224
2244
|
}
|
|
2225
2245
|
//#endregion
|
|
2226
2246
|
//#region lib/components/ui/selection/choice-group/choice-press.ts
|
|
2227
|
-
function
|
|
2247
|
+
function aa(e, t) {
|
|
2228
2248
|
let { options: n, selection: r, disabled: i, max: a } = e, o = n[t], s = r.type === "multiple" ? a : void 0;
|
|
2229
|
-
if (!o || i ||
|
|
2249
|
+
if (!o || i || Ht(o, r.value, s)) return;
|
|
2230
2250
|
if (r.type === "multiple") {
|
|
2231
|
-
let e =
|
|
2251
|
+
let e = Wt("multiple", r.value, o.value, { max: a });
|
|
2232
2252
|
e !== "blocked" && r.onValueChange?.(e);
|
|
2233
2253
|
return;
|
|
2234
2254
|
}
|
|
2235
|
-
let c =
|
|
2255
|
+
let c = Wt("single", r.value, o.value, { deselectable: r.deselectable });
|
|
2236
2256
|
c !== r.value && r.onValueChange?.(c);
|
|
2237
2257
|
}
|
|
2238
|
-
function
|
|
2239
|
-
let r =
|
|
2240
|
-
r !== null && e.selection.type !== "multiple" &&
|
|
2258
|
+
function oa(e, t, n) {
|
|
2259
|
+
let r = ia(t, n, e.options, e.disabled, e.grid);
|
|
2260
|
+
r !== null && e.selection.type !== "multiple" && aa(e, r);
|
|
2241
2261
|
}
|
|
2242
2262
|
//#endregion
|
|
2243
2263
|
//#region lib/components/ui/selection/choice-group/choice-texts.ts
|
|
2244
|
-
function
|
|
2264
|
+
function sa({ t: e, groupId: t, options: n, value: r, multiple: i, max: a, min: o, hasHelper: s }) {
|
|
2245
2265
|
let c = n.map((n, i) => {
|
|
2246
|
-
let o =
|
|
2266
|
+
let o = Ht(n, r, a), s;
|
|
2247
2267
|
return o === "max" ? s = e("material.choice-group.max-reached", "{max, plural, one {Up to # choice} other {Up to # choices}}", { max: a ?? 0 }) : n.disabled && (s = n.disabledReason), {
|
|
2248
2268
|
id: `${t}-reason-${i}`,
|
|
2249
2269
|
text: s,
|
|
@@ -2261,12 +2281,12 @@ function Zi({ t: e, groupId: t, options: n, value: r, multiple: i, max: a, min:
|
|
|
2261
2281
|
}
|
|
2262
2282
|
//#endregion
|
|
2263
2283
|
//#region lib/components/ui/selection/choice-group/use-choice-item-refs.ts
|
|
2264
|
-
function
|
|
2284
|
+
function ca(e, t) {
|
|
2265
2285
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
2266
2286
|
}
|
|
2267
|
-
function
|
|
2287
|
+
function la({ ref: e, entry: t, count: n }) {
|
|
2268
2288
|
let r = I([]), i = I([]);
|
|
2269
|
-
return P(() => (r.current.length = n,
|
|
2289
|
+
return P(() => (r.current.length = n, ca(e, r.current[t] ?? null), () => ca(e, null)), [
|
|
2270
2290
|
t,
|
|
2271
2291
|
e,
|
|
2272
2292
|
n
|
|
@@ -2279,8 +2299,8 @@ function $i({ ref: e, entry: t, count: n }) {
|
|
|
2279
2299
|
}
|
|
2280
2300
|
//#endregion
|
|
2281
2301
|
//#region lib/components/ui/selection/choice-group/use-choice-group.ts
|
|
2282
|
-
function
|
|
2283
|
-
let { options: t, selection: n, label: r, helperText: i, error: o, disabled: s, ref: c } = e, { t: l } = a(), u = F(), d = e.id ?? u, f =
|
|
2302
|
+
function ua(e) {
|
|
2303
|
+
let { options: t, selection: n, label: r, helperText: i, error: o, disabled: s, ref: c } = e, { t: l } = a(), u = F(), d = e.id ?? u, f = Yi(d), p = n.type === "multiple", m = n.value, h = p ? e.max : void 0, g = e.aria ?? {}, _ = Array.isArray(m) ? m : m === null ? [] : [m], v = !!(o || g["aria-invalid"] && g["aria-invalid"] !== "false"), y = sa({
|
|
2284
2304
|
t: l,
|
|
2285
2305
|
groupId: d,
|
|
2286
2306
|
options: t,
|
|
@@ -2289,13 +2309,13 @@ function ea(e) {
|
|
|
2289
2309
|
max: h,
|
|
2290
2310
|
min: e.min,
|
|
2291
2311
|
hasHelper: !!i
|
|
2292
|
-
}), b = i || y.hint, x = s ? -1 :
|
|
2312
|
+
}), b = i || y.hint, x = s ? -1 : Ut(t, m), S = {
|
|
2293
2313
|
options: t,
|
|
2294
2314
|
selection: n,
|
|
2295
2315
|
disabled: s,
|
|
2296
2316
|
max: e.max,
|
|
2297
2317
|
grid: e.grid
|
|
2298
|
-
}, C = t.length, { items: w, itemRef: T } =
|
|
2318
|
+
}, C = t.length, { items: w, itemRef: T } = la({
|
|
2299
2319
|
ref: c,
|
|
2300
2320
|
entry: x,
|
|
2301
2321
|
count: C
|
|
@@ -2316,7 +2336,7 @@ function ea(e) {
|
|
|
2316
2336
|
text: e.text,
|
|
2317
2337
|
why: e.why
|
|
2318
2338
|
}] : []),
|
|
2319
|
-
rootProps:
|
|
2339
|
+
rootProps: $i({
|
|
2320
2340
|
groupId: d,
|
|
2321
2341
|
ids: f,
|
|
2322
2342
|
multiple: p,
|
|
@@ -2326,28 +2346,28 @@ function ea(e) {
|
|
|
2326
2346
|
invalid: v,
|
|
2327
2347
|
required: e.required,
|
|
2328
2348
|
aria: g,
|
|
2329
|
-
onKeyDown: (e) =>
|
|
2349
|
+
onKeyDown: (e) => oa(S, e, w.current)
|
|
2330
2350
|
}),
|
|
2331
|
-
itemProps: (e, t) =>
|
|
2351
|
+
itemProps: (e, t) => ea({
|
|
2332
2352
|
multiple: p,
|
|
2333
2353
|
checked: _.includes(e.value),
|
|
2334
2354
|
reason: y.reasons[t],
|
|
2335
2355
|
isEntry: t === x,
|
|
2336
2356
|
disabled: s,
|
|
2337
|
-
onClick: () =>
|
|
2357
|
+
onClick: () => aa(S, t),
|
|
2338
2358
|
ref: T(t)
|
|
2339
2359
|
})
|
|
2340
2360
|
};
|
|
2341
2361
|
}
|
|
2342
2362
|
//#endregion
|
|
2343
2363
|
//#region lib/components/ui/selection/choice-group/use-choice-group-field.ts
|
|
2344
|
-
function
|
|
2345
|
-
let r =
|
|
2364
|
+
function da(e, t, n = {}) {
|
|
2365
|
+
let r = Qi(e), { type: i, value: a, onValueChange: o, label: s, helperText: c, error: l, required: u, disabled: d, name: f, max: p, min: m, orientation: h, ref: g, ..._ } = e, { deselectable: v, ...y } = {
|
|
2346
2366
|
deselectable: void 0,
|
|
2347
2367
|
..._
|
|
2348
2368
|
};
|
|
2349
2369
|
return {
|
|
2350
|
-
group:
|
|
2370
|
+
group: ua({
|
|
2351
2371
|
options: t,
|
|
2352
2372
|
selection: r,
|
|
2353
2373
|
grid: n.grid,
|
|
@@ -2370,7 +2390,7 @@ function ta(e, t, n = {}) {
|
|
|
2370
2390
|
}
|
|
2371
2391
|
//#endregion
|
|
2372
2392
|
//#region lib/components/ui/selection/chip-group-field/chip-group-columns.ts
|
|
2373
|
-
var
|
|
2393
|
+
var fa = [
|
|
2374
2394
|
"grid-cols-1",
|
|
2375
2395
|
"grid-cols-2",
|
|
2376
2396
|
"grid-cols-3",
|
|
@@ -2383,7 +2403,7 @@ var na = [
|
|
|
2383
2403
|
"grid-cols-10",
|
|
2384
2404
|
"grid-cols-11",
|
|
2385
2405
|
"grid-cols-12"
|
|
2386
|
-
],
|
|
2406
|
+
], pa = [
|
|
2387
2407
|
"sm:grid-cols-1",
|
|
2388
2408
|
"sm:grid-cols-2",
|
|
2389
2409
|
"sm:grid-cols-3",
|
|
@@ -2396,7 +2416,7 @@ var na = [
|
|
|
2396
2416
|
"sm:grid-cols-10",
|
|
2397
2417
|
"sm:grid-cols-11",
|
|
2398
2418
|
"sm:grid-cols-12"
|
|
2399
|
-
],
|
|
2419
|
+
], ma = [
|
|
2400
2420
|
"md:grid-cols-1",
|
|
2401
2421
|
"md:grid-cols-2",
|
|
2402
2422
|
"md:grid-cols-3",
|
|
@@ -2409,7 +2429,7 @@ var na = [
|
|
|
2409
2429
|
"md:grid-cols-10",
|
|
2410
2430
|
"md:grid-cols-11",
|
|
2411
2431
|
"md:grid-cols-12"
|
|
2412
|
-
],
|
|
2432
|
+
], ha = [
|
|
2413
2433
|
"lg:grid-cols-1",
|
|
2414
2434
|
"lg:grid-cols-2",
|
|
2415
2435
|
"lg:grid-cols-3",
|
|
@@ -2422,26 +2442,26 @@ var na = [
|
|
|
2422
2442
|
"lg:grid-cols-10",
|
|
2423
2443
|
"lg:grid-cols-11",
|
|
2424
2444
|
"lg:grid-cols-12"
|
|
2425
|
-
],
|
|
2426
|
-
function
|
|
2445
|
+
], ga = (e, t) => t === void 0 || !Number.isFinite(t) ? void 0 : e[Math.min(12, Math.max(1, Math.trunc(t))) - 1];
|
|
2446
|
+
function _a(e) {
|
|
2427
2447
|
let t = typeof e == "number" ? { base: e } : e;
|
|
2428
2448
|
return [
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2449
|
+
ga(fa, t.base ?? 1),
|
|
2450
|
+
ga(pa, t.sm),
|
|
2451
|
+
ga(ma, t.md),
|
|
2452
|
+
ga(ha, t.lg)
|
|
2433
2453
|
].filter(Boolean).join(" ");
|
|
2434
2454
|
}
|
|
2435
2455
|
//#endregion
|
|
2436
2456
|
//#region lib/components/ui/display/chip/chip.variants.ts
|
|
2437
|
-
function
|
|
2457
|
+
function va(e) {
|
|
2438
2458
|
return e === "tag" ? "tag" : e === "tonal" || e === "filled" || e === "ghost" ? "soft" : "hairline";
|
|
2439
2459
|
}
|
|
2440
|
-
function
|
|
2460
|
+
function ya(e) {
|
|
2441
2461
|
return !e || e === "default" ? "neutral" : e;
|
|
2442
2462
|
}
|
|
2443
|
-
function
|
|
2444
|
-
let i =
|
|
2463
|
+
function ba({ variant: e, size: t, color: n, selected: r }) {
|
|
2464
|
+
let i = va(e), a = ya(n);
|
|
2445
2465
|
return {
|
|
2446
2466
|
look: i,
|
|
2447
2467
|
tone: a,
|
|
@@ -2458,22 +2478,22 @@ function ua({ variant: e, size: t, color: n, selected: r }) {
|
|
|
2458
2478
|
}
|
|
2459
2479
|
//#endregion
|
|
2460
2480
|
//#region lib/components/ui/display/chip/partials/chip-body.tsx
|
|
2461
|
-
function
|
|
2481
|
+
function xa(e) {
|
|
2462
2482
|
return N(e) ? Ge(e, { className: A("size-(--chip-avatar)", e.props.className) }) : e;
|
|
2463
2483
|
}
|
|
2464
|
-
function
|
|
2484
|
+
function Sa({ avatar: e, leading: t, label: n, trailing: r, check: i, dot: a }) {
|
|
2465
2485
|
let o = null;
|
|
2466
2486
|
return e ? o = /* @__PURE__ */ z("span", {
|
|
2467
2487
|
"data-slot": "chip-avatar",
|
|
2468
2488
|
"aria-hidden": n ? "true" : void 0,
|
|
2469
|
-
children:
|
|
2489
|
+
children: xa(e)
|
|
2470
2490
|
}) : t ? o = /* @__PURE__ */ z("span", {
|
|
2471
2491
|
"data-slot": "chip-lead",
|
|
2472
2492
|
children: t
|
|
2473
2493
|
}) : i ? o = /* @__PURE__ */ z("span", {
|
|
2474
2494
|
"data-slot": "chip-check",
|
|
2475
2495
|
"aria-hidden": "true",
|
|
2476
|
-
children: /* @__PURE__ */ z(
|
|
2496
|
+
children: /* @__PURE__ */ z(at, { strokeWidth: 2.75 })
|
|
2477
2497
|
}) : a && (o = /* @__PURE__ */ z("span", {
|
|
2478
2498
|
"data-slot": "chip-dot",
|
|
2479
2499
|
"aria-hidden": "true"
|
|
@@ -2491,13 +2511,13 @@ function fa({ avatar: e, leading: t, label: n, trailing: r, check: i, dot: a })
|
|
|
2491
2511
|
}
|
|
2492
2512
|
//#endregion
|
|
2493
2513
|
//#region lib/lib/react-node-text.ts
|
|
2494
|
-
function
|
|
2495
|
-
return e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(
|
|
2514
|
+
function Ca(e) {
|
|
2515
|
+
return e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(Ca).join("") : N(e) ? Ca(e.props.children) : "";
|
|
2496
2516
|
}
|
|
2497
2517
|
//#endregion
|
|
2498
2518
|
//#region lib/components/ui/display/chip/partials/chip-dismiss-button.tsx
|
|
2499
|
-
function
|
|
2500
|
-
let { t: i } = a(), o =
|
|
2519
|
+
function wa({ label: e, dismissLabel: t, disabled: n, onDismiss: r }) {
|
|
2520
|
+
let { t: i } = a(), o = Ca(e).replace(/\s+/g, " ").trim(), s = i("material.chip.dismiss", "Remove");
|
|
2501
2521
|
return /* @__PURE__ */ z(S, {
|
|
2502
2522
|
content: s,
|
|
2503
2523
|
children: /* @__PURE__ */ z("button", {
|
|
@@ -2517,7 +2537,7 @@ function ma({ label: e, dismissLabel: t, disabled: n, onDismiss: r }) {
|
|
|
2517
2537
|
}
|
|
2518
2538
|
//#endregion
|
|
2519
2539
|
//#region lib/components/ui/display/chip/partials/chip-dismissible.tsx
|
|
2520
|
-
function
|
|
2540
|
+
function Ta({ shared: e, body: t, label: n, dismissLabel: r, onDismiss: i, disabled: a, tooltip: o, className: s, bodyProps: c, ref: l }) {
|
|
2521
2541
|
let u = c.onClick ? /* @__PURE__ */ z("button", {
|
|
2522
2542
|
type: "button",
|
|
2523
2543
|
disabled: a,
|
|
@@ -2543,7 +2563,7 @@ function ha({ shared: e, body: t, label: n, dismissLabel: r, onDismiss: i, disab
|
|
|
2543
2563
|
children: [o ? /* @__PURE__ */ z(S, {
|
|
2544
2564
|
content: o,
|
|
2545
2565
|
children: u
|
|
2546
|
-
}) : u, /* @__PURE__ */ z(
|
|
2566
|
+
}) : u, /* @__PURE__ */ z(wa, {
|
|
2547
2567
|
label: n,
|
|
2548
2568
|
dismissLabel: r,
|
|
2549
2569
|
disabled: a,
|
|
@@ -2553,7 +2573,7 @@ function ha({ shared: e, body: t, label: n, dismissLabel: r, onDismiss: i, disab
|
|
|
2553
2573
|
}
|
|
2554
2574
|
//#endregion
|
|
2555
2575
|
//#region lib/components/ui/display/chip/partials/chip-plain.tsx
|
|
2556
|
-
function
|
|
2576
|
+
function Ea({ shared: e, body: t, disabled: n, tooltip: r, className: i, rootProps: a, ref: o }) {
|
|
2557
2577
|
let s = a.onClick ? /* @__PURE__ */ z("button", {
|
|
2558
2578
|
type: "button",
|
|
2559
2579
|
...e,
|
|
@@ -2582,17 +2602,17 @@ function ga({ shared: e, body: t, disabled: n, tooltip: r, className: i, rootPro
|
|
|
2582
2602
|
}
|
|
2583
2603
|
//#endregion
|
|
2584
2604
|
//#region lib/components/ui/display/chip/chip.tsx
|
|
2585
|
-
function
|
|
2605
|
+
function Da(e) {
|
|
2586
2606
|
let { loading: t, lockOnClick: n, spinnerVariant: r, wrap: i, asChild: a, ...o } = e;
|
|
2587
2607
|
return o;
|
|
2588
2608
|
}
|
|
2589
|
-
function
|
|
2590
|
-
let h =
|
|
2609
|
+
function Oa({ label: e, leading: t, trailing: n, avatar: r, className: i, active: a, variant: o = "outlined", onDismiss: s, dismissLabel: c, size: l = "default", color: u, tooltip: d, ref: f, disabled: p, ...m }) {
|
|
2610
|
+
let h = Da(m), g = h["aria-pressed"] === !0 || h["aria-pressed"] === "true" || h["aria-checked"] === !0 || h["aria-checked"] === "true", _ = ba({
|
|
2591
2611
|
variant: o,
|
|
2592
2612
|
size: l,
|
|
2593
2613
|
color: u,
|
|
2594
2614
|
selected: a || g
|
|
2595
|
-
}), v = _.attributes, y = /* @__PURE__ */ z(
|
|
2615
|
+
}), v = _.attributes, y = /* @__PURE__ */ z(Sa, {
|
|
2596
2616
|
avatar: r,
|
|
2597
2617
|
leading: t,
|
|
2598
2618
|
label: e,
|
|
@@ -2600,7 +2620,7 @@ function va({ label: e, leading: t, trailing: n, avatar: r, className: i, active
|
|
|
2600
2620
|
check: g,
|
|
2601
2621
|
dot: _.look === "tag" && _.tone !== "neutral"
|
|
2602
2622
|
});
|
|
2603
|
-
return s ? /* @__PURE__ */ z(
|
|
2623
|
+
return s ? /* @__PURE__ */ z(Ta, {
|
|
2604
2624
|
shared: v,
|
|
2605
2625
|
body: y,
|
|
2606
2626
|
label: e,
|
|
@@ -2611,7 +2631,7 @@ function va({ label: e, leading: t, trailing: n, avatar: r, className: i, active
|
|
|
2611
2631
|
className: i,
|
|
2612
2632
|
bodyProps: h,
|
|
2613
2633
|
ref: f
|
|
2614
|
-
}) : /* @__PURE__ */ z(
|
|
2634
|
+
}) : /* @__PURE__ */ z(Ea, {
|
|
2615
2635
|
shared: v,
|
|
2616
2636
|
body: y,
|
|
2617
2637
|
disabled: p,
|
|
@@ -2623,7 +2643,7 @@ function va({ label: e, leading: t, trailing: n, avatar: r, className: i, active
|
|
|
2623
2643
|
}
|
|
2624
2644
|
//#endregion
|
|
2625
2645
|
//#region lib/components/ui/selection/option-count/option-count.tsx
|
|
2626
|
-
function
|
|
2646
|
+
function ka({ count: e, inChip: t = !1 }) {
|
|
2627
2647
|
let { t: n } = a();
|
|
2628
2648
|
return e === void 0 ? null : /* @__PURE__ */ B(R, { children: [
|
|
2629
2649
|
" ",
|
|
@@ -2640,24 +2660,24 @@ function ya({ count: e, inChip: t = !1 }) {
|
|
|
2640
2660
|
}
|
|
2641
2661
|
//#endregion
|
|
2642
2662
|
//#region lib/components/ui/selection/chip-group-field/partials/chip-group-option.tsx
|
|
2643
|
-
function
|
|
2663
|
+
function Aa() {
|
|
2644
2664
|
return /* @__PURE__ */ z("svg", {
|
|
2645
2665
|
"aria-hidden": "true",
|
|
2646
2666
|
focusable: "false",
|
|
2647
2667
|
"data-room": ""
|
|
2648
2668
|
});
|
|
2649
2669
|
}
|
|
2650
|
-
function
|
|
2670
|
+
function ja({ group: e, option: t, index: n, size: r, dataPw: i, name: a, columns: o, showReason: s }) {
|
|
2651
2671
|
let { ref: c, "aria-describedby": l, ...u } = e.itemProps(t, n), d = u["aria-checked"], f = e.reasons.find((e) => e.id === l)?.text, p = t.description ? `${e.groupId}-description-${n}` : void 0, m = s && f && e.reasons.find((e) => e.id === l)?.why === "disabled" ? f : void 0, h = [l, p].filter(Boolean).join(" ");
|
|
2652
|
-
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(
|
|
2672
|
+
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(Oa, {
|
|
2653
2673
|
...u,
|
|
2654
2674
|
ref: c,
|
|
2655
2675
|
variant: "tonal",
|
|
2656
2676
|
size: r,
|
|
2657
2677
|
color: t.tone,
|
|
2658
2678
|
label: t.label,
|
|
2659
|
-
leading: d ? void 0 : t.icon ?? /* @__PURE__ */ z(
|
|
2660
|
-
trailing: /* @__PURE__ */ z(
|
|
2679
|
+
leading: d ? void 0 : t.icon ?? /* @__PURE__ */ z(Aa, {}),
|
|
2680
|
+
trailing: /* @__PURE__ */ z(ka, {
|
|
2661
2681
|
count: t.count,
|
|
2662
2682
|
inChip: !0
|
|
2663
2683
|
}),
|
|
@@ -2675,7 +2695,7 @@ function xa({ group: e, option: t, index: n, size: r, dataPw: i, name: a, column
|
|
|
2675
2695
|
}
|
|
2676
2696
|
//#endregion
|
|
2677
2697
|
//#region lib/components/ui/selection/chip-group-field/partials/chip-group-reasons.tsx
|
|
2678
|
-
function
|
|
2698
|
+
function Ma({ reasons: e }) {
|
|
2679
2699
|
return e.length === 0 ? null : /* @__PURE__ */ z("div", {
|
|
2680
2700
|
"data-slot": "chip-group-reasons",
|
|
2681
2701
|
className: "grid gap-0.5 px-1 text-xs text-muted-foreground",
|
|
@@ -2698,7 +2718,7 @@ function Sa({ reasons: e }) {
|
|
|
2698
2718
|
}
|
|
2699
2719
|
//#endregion
|
|
2700
2720
|
//#region lib/components/ui/selection/chip-group-field/partials/chip-group-sections.tsx
|
|
2701
|
-
function
|
|
2721
|
+
function Na({ groupId: e, sections: t, gridClasses: n, renderChip: r }) {
|
|
2702
2722
|
let i = 0;
|
|
2703
2723
|
return t.map((t, a) => {
|
|
2704
2724
|
let o = i;
|
|
@@ -2723,8 +2743,8 @@ function Ca({ groupId: e, sections: t, gridClasses: n, renderChip: r }) {
|
|
|
2723
2743
|
}
|
|
2724
2744
|
//#endregion
|
|
2725
2745
|
//#region lib/components/ui/selection/chip-group-field/chip-group-field.tsx
|
|
2726
|
-
function
|
|
2727
|
-
let { options: t, groups: n, size: r, columns: i, overflow: a = "wrap", showDisabledReason: o = !0, hideLabel: s, ...c } = e, l = n ? n.flatMap((e) => e.options) : t ?? [], { group: u, name: d, dom: f } =
|
|
2746
|
+
function Pa(e) {
|
|
2747
|
+
let { options: t, groups: n, size: r, columns: i, overflow: a = "wrap", showDisabledReason: o = !0, hideLabel: s, ...c } = e, l = n ? n.flatMap((e) => e.options) : t ?? [], { group: u, name: d, dom: f } = da(c, l, { grid: i !== void 0 || n !== void 0 }), p = Gi(a !== "wrap" && i === void 0 && !n, a === "scroll-phone"), m = i === void 0 ? void 0 : _a(i), h = (e, t) => /* @__PURE__ */ z(ja, {
|
|
2728
2748
|
group: u,
|
|
2729
2749
|
option: e,
|
|
2730
2750
|
index: t,
|
|
@@ -2740,18 +2760,18 @@ function wa(e) {
|
|
|
2740
2760
|
label: e.label
|
|
2741
2761
|
}] : [];
|
|
2742
2762
|
}) : [];
|
|
2743
|
-
return /* @__PURE__ */ z(
|
|
2763
|
+
return /* @__PURE__ */ z(Zi, {
|
|
2744
2764
|
...f,
|
|
2745
2765
|
group: u,
|
|
2746
2766
|
name: d,
|
|
2747
2767
|
slot: "chip-group-field",
|
|
2748
2768
|
hideLabel: s,
|
|
2749
2769
|
inlineReasons: o,
|
|
2750
|
-
reasonsBelow: /* @__PURE__ */ z(
|
|
2770
|
+
reasonsBelow: /* @__PURE__ */ z(Ma, { reasons: g }),
|
|
2751
2771
|
contentRef: p.ref,
|
|
2752
2772
|
contentProps: p.props,
|
|
2753
2773
|
contentClassName: A(p.className, n && "mt-1 flex-col flex-nowrap gap-4", !n && m && `grid ${m}`),
|
|
2754
|
-
children: n ? /* @__PURE__ */ z(
|
|
2774
|
+
children: n ? /* @__PURE__ */ z(Na, {
|
|
2755
2775
|
groupId: u.groupId,
|
|
2756
2776
|
sections: n,
|
|
2757
2777
|
gridClasses: m,
|
|
@@ -2761,9 +2781,9 @@ function wa(e) {
|
|
|
2761
2781
|
}
|
|
2762
2782
|
//#endregion
|
|
2763
2783
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-attachment-chip.tsx
|
|
2764
|
-
var
|
|
2765
|
-
function
|
|
2766
|
-
let { t: r } = a(), i = I(null), o =
|
|
2784
|
+
var Fa = 36;
|
|
2785
|
+
function Ia({ file: e, onRemove: t, className: n }) {
|
|
2786
|
+
let { t: r } = a(), i = I(null), o = yi(i, e, Fa * 2), s = r("material.chat.remove-attachment", "Remove attachment");
|
|
2767
2787
|
return /* @__PURE__ */ B("div", {
|
|
2768
2788
|
"data-slot": "chat-composer-attachment-chip",
|
|
2769
2789
|
className: A("group/chip inline-flex min-w-0 max-w-full animate-in items-center gap-2.5 rounded-(--nxgt-shape-corner-md) border border-border/70 bg-background py-1.5 ps-1.5 pe-1 text-xs shadow-xs fade-in zoom-in-95 duration-(--nxgt-motion-effects-default-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none @md:max-w-64", n),
|
|
@@ -2775,7 +2795,7 @@ function Ea({ file: e, onRemove: t, className: n }) {
|
|
|
2775
2795
|
}),
|
|
2776
2796
|
!o && /* @__PURE__ */ z("span", {
|
|
2777
2797
|
className: "flex size-9 shrink-0 items-center justify-center rounded-(--nxgt-shape-corner-sm) bg-primary/10 text-primary-text",
|
|
2778
|
-
children: /* @__PURE__ */ z(
|
|
2798
|
+
children: /* @__PURE__ */ z(yt, { className: "size-4" })
|
|
2779
2799
|
}),
|
|
2780
2800
|
/* @__PURE__ */ B("span", {
|
|
2781
2801
|
className: "flex min-w-0 flex-col",
|
|
@@ -2784,7 +2804,7 @@ function Ea({ file: e, onRemove: t, className: n }) {
|
|
|
2784
2804
|
children: e.name
|
|
2785
2805
|
}), /* @__PURE__ */ z("span", {
|
|
2786
2806
|
className: "text-[0.6875rem] text-muted-foreground tabular-nums",
|
|
2787
|
-
children:
|
|
2807
|
+
children: Vt(e.size)
|
|
2788
2808
|
})]
|
|
2789
2809
|
}),
|
|
2790
2810
|
t && /* @__PURE__ */ z(x, {
|
|
@@ -2801,7 +2821,7 @@ function Ea({ file: e, onRemove: t, className: n }) {
|
|
|
2801
2821
|
}
|
|
2802
2822
|
//#endregion
|
|
2803
2823
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-attachments.tsx
|
|
2804
|
-
function
|
|
2824
|
+
function La({ isDisabled: e, canAttachMore: t, accept: n, maxFiles: r, attachLabel: i, fileInputRef: a, onAttachmentsChange: o, handleFiles: s, actions: c }) {
|
|
2805
2825
|
return !o && !c ? null : /* @__PURE__ */ B("div", {
|
|
2806
2826
|
"data-slot": "chat-composer-tools",
|
|
2807
2827
|
className: "flex items-end gap-1 pb-0.5",
|
|
@@ -2823,15 +2843,15 @@ function Da({ isDisabled: e, canAttachMore: t, accept: n, maxFiles: r, attachLab
|
|
|
2823
2843
|
disabled: e || !t,
|
|
2824
2844
|
onClick: () => a.current?.click(),
|
|
2825
2845
|
className: "shrink-0",
|
|
2826
|
-
children: /* @__PURE__ */ z(
|
|
2846
|
+
children: /* @__PURE__ */ z(Tt, {})
|
|
2827
2847
|
})] }), c]
|
|
2828
2848
|
});
|
|
2829
2849
|
}
|
|
2830
|
-
function
|
|
2850
|
+
function Ra({ attachments: e, isDisabled: t, onAttachmentsChange: n, className: r }) {
|
|
2831
2851
|
return e.length === 0 ? null : /* @__PURE__ */ z("div", {
|
|
2832
2852
|
"data-slot": "chat-composer-attachments",
|
|
2833
2853
|
className: A("flex flex-wrap gap-2", r),
|
|
2834
|
-
children: e.map((r, i) => /* @__PURE__ */ z(
|
|
2854
|
+
children: e.map((r, i) => /* @__PURE__ */ z(Ia, {
|
|
2835
2855
|
file: r,
|
|
2836
2856
|
onRemove: t ? void 0 : () => n?.(e.filter((e, t) => t !== i))
|
|
2837
2857
|
}, `${r.name}-${r.size}-${i}`))
|
|
@@ -2839,7 +2859,7 @@ function Oa({ attachments: e, isDisabled: t, onAttachmentsChange: n, className:
|
|
|
2839
2859
|
}
|
|
2840
2860
|
//#endregion
|
|
2841
2861
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-disabled-reason.tsx
|
|
2842
|
-
function
|
|
2862
|
+
function za({ id: e, children: t }) {
|
|
2843
2863
|
return e ? /* @__PURE__ */ z("p", {
|
|
2844
2864
|
id: e,
|
|
2845
2865
|
"data-slot": "chat-composer-disabled-reason",
|
|
@@ -2849,7 +2869,7 @@ function ka({ id: e, children: t }) {
|
|
|
2849
2869
|
}
|
|
2850
2870
|
//#endregion
|
|
2851
2871
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-send.tsx
|
|
2852
|
-
function
|
|
2872
|
+
function Ba({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i, shape: a = "round" }) {
|
|
2853
2873
|
if (i) return /* @__PURE__ */ z(x, {
|
|
2854
2874
|
"data-slot": "chat-composer-stop",
|
|
2855
2875
|
"data-send-shape": a === "squircle" ? a : void 0,
|
|
@@ -2859,7 +2879,7 @@ function Aa({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i,
|
|
|
2859
2879
|
"aria-label": t,
|
|
2860
2880
|
onClick: i,
|
|
2861
2881
|
className: "size-9 shrink-0 animate-in zoom-in-75 duration-(--nxgt-motion-effects-default-duration) ease-effects-default motion-reduce:animate-none",
|
|
2862
|
-
children: /* @__PURE__ */ z(
|
|
2882
|
+
children: /* @__PURE__ */ z(Mt, { className: "size-3.5 fill-current" })
|
|
2863
2883
|
});
|
|
2864
2884
|
let o = !n && !r;
|
|
2865
2885
|
return /* @__PURE__ */ z(x, {
|
|
@@ -2873,7 +2893,7 @@ function Aa({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i,
|
|
|
2873
2893
|
disabled: !o,
|
|
2874
2894
|
"aria-label": e,
|
|
2875
2895
|
className: A("size-9 shrink-0 [transition:scale_var(--nxgt-motion-spatial-fast-duration)_var(--nxgt-motion-spatial-fast),opacity_var(--nxgt-motion-effects-default-duration)_var(--nxgt-motion-effects-default),background-color_var(--nxgt-motion-effects-default-duration)_var(--nxgt-motion-effects-default)]", o ? "scale-100" : "scale-90 disabled:opacity-35"),
|
|
2876
|
-
children: /* @__PURE__ */ z(
|
|
2896
|
+
children: /* @__PURE__ */ z(it, {
|
|
2877
2897
|
className: "size-4.5",
|
|
2878
2898
|
strokeWidth: 2.5
|
|
2879
2899
|
})
|
|
@@ -2881,7 +2901,7 @@ function Aa({ sendLabel: e, stopLabel: t, isDisabled: n, isEmpty: r, onStop: i,
|
|
|
2881
2901
|
}
|
|
2882
2902
|
//#endregion
|
|
2883
2903
|
//#region lib/components/ui/widgets/chat/partials/preloaded-lazy.tsx
|
|
2884
|
-
function
|
|
2904
|
+
function Va(e) {
|
|
2885
2905
|
let t, n, r = () => (n ??= e().then((e) => (t = e, { default: e })), n), i = qe(r);
|
|
2886
2906
|
function a(e) {
|
|
2887
2907
|
return z(t || i, { ...e });
|
|
@@ -2890,12 +2910,12 @@ function ja(e) {
|
|
|
2890
2910
|
}
|
|
2891
2911
|
//#endregion
|
|
2892
2912
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-input.tsx
|
|
2893
|
-
var
|
|
2894
|
-
function
|
|
2913
|
+
var Ha = Va(() => import("./embed-chunks/emoji-picker-BWDQFdQu.js").then((e) => e.EmojiPicker));
|
|
2914
|
+
function Ua({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKeyDown: i, placeholder: a, messageLabel: o, sendLabel: s, stopLabel: c = "Stop", attachLabel: l, isDisabled: u, describedBy: d, isEmpty: f, canAttachMore: p, handleFiles: m, onAttachmentsChange: h, accept: g, maxFiles: _, maxLength: v, actions: y, emojis: b, onStop: x }) {
|
|
2895
2915
|
return /* @__PURE__ */ B("div", {
|
|
2896
2916
|
className: "flex items-end gap-1 p-1.5",
|
|
2897
2917
|
children: [
|
|
2898
|
-
/* @__PURE__ */ z(
|
|
2918
|
+
/* @__PURE__ */ z(La, {
|
|
2899
2919
|
isDisabled: u,
|
|
2900
2920
|
canAttachMore: p,
|
|
2901
2921
|
accept: g,
|
|
@@ -2906,7 +2926,7 @@ function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKey
|
|
|
2906
2926
|
handleFiles: m,
|
|
2907
2927
|
actions: /* @__PURE__ */ B(R, { children: [b && b.length > 0 && /* @__PURE__ */ z(We, {
|
|
2908
2928
|
fallback: null,
|
|
2909
|
-
children: /* @__PURE__ */ z(
|
|
2929
|
+
children: /* @__PURE__ */ z(Ha, {
|
|
2910
2930
|
emojis: b,
|
|
2911
2931
|
onSelect: (n) => {
|
|
2912
2932
|
n.emoji && t?.(`${e}${n.emoji}`);
|
|
@@ -2914,7 +2934,7 @@ function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKey
|
|
|
2914
2934
|
})
|
|
2915
2935
|
}), y] })
|
|
2916
2936
|
}),
|
|
2917
|
-
/* @__PURE__ */ z(
|
|
2937
|
+
/* @__PURE__ */ z(oi, {
|
|
2918
2938
|
ref: n,
|
|
2919
2939
|
value: e,
|
|
2920
2940
|
onChange: (e) => t?.(e.target.value),
|
|
@@ -2928,7 +2948,7 @@ function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKey
|
|
|
2928
2948
|
"aria-label": o,
|
|
2929
2949
|
"aria-describedby": d
|
|
2930
2950
|
}),
|
|
2931
|
-
/* @__PURE__ */ z(
|
|
2951
|
+
/* @__PURE__ */ z(Ba, {
|
|
2932
2952
|
sendLabel: s,
|
|
2933
2953
|
stopLabel: c,
|
|
2934
2954
|
isDisabled: u,
|
|
@@ -2940,7 +2960,7 @@ function Na({ value: e, onValueChange: t, textareaRef: n, fileInputRef: r, onKey
|
|
|
2940
2960
|
}
|
|
2941
2961
|
//#endregion
|
|
2942
2962
|
//#region lib/components/ui/widgets/mentions/mention-search-view.ts
|
|
2943
|
-
function
|
|
2963
|
+
function Wa(e, t, n) {
|
|
2944
2964
|
let r = ve(e ?? [], n);
|
|
2945
2965
|
return t ? t.status === "error" ? {
|
|
2946
2966
|
items: r,
|
|
@@ -2962,8 +2982,8 @@ function Pa(e, t, n) {
|
|
|
2962
2982
|
}
|
|
2963
2983
|
//#endregion
|
|
2964
2984
|
//#region lib/components/ui/widgets/chat/partials/floating-mentions.tsx
|
|
2965
|
-
var
|
|
2966
|
-
function
|
|
2985
|
+
var Ga = "max-h-(--radix-popover-content-available-height) overflow-y-auto shadow-md";
|
|
2986
|
+
function Ka({ textareaRef: e, children: t }) {
|
|
2967
2987
|
let n = I(null);
|
|
2968
2988
|
n.current = e.current?.closest("[data-slot=\"chat-composer\"]") ?? e.current;
|
|
2969
2989
|
let r = f();
|
|
@@ -2988,7 +3008,7 @@ function Ia({ textareaRef: e, children: t }) {
|
|
|
2988
3008
|
}
|
|
2989
3009
|
//#endregion
|
|
2990
3010
|
//#region lib/components/ui/widgets/chat/use-chat-caret-move.ts
|
|
2991
|
-
var
|
|
3011
|
+
var qa = /* @__PURE__ */ new Set([
|
|
2992
3012
|
"ArrowLeft",
|
|
2993
3013
|
"ArrowRight",
|
|
2994
3014
|
"ArrowUp",
|
|
@@ -2998,13 +3018,13 @@ var La = /* @__PURE__ */ new Set([
|
|
|
2998
3018
|
"PageUp",
|
|
2999
3019
|
"PageDown"
|
|
3000
3020
|
]);
|
|
3001
|
-
function
|
|
3002
|
-
let [, t] =
|
|
3021
|
+
function Ja(e) {
|
|
3022
|
+
let [, t] = Qe((e) => e + 1, 0);
|
|
3003
3023
|
P(() => {
|
|
3004
3024
|
let n = e.current;
|
|
3005
3025
|
if (!n) return;
|
|
3006
3026
|
let r = (e) => {
|
|
3007
|
-
!e.isComposing &&
|
|
3027
|
+
!e.isComposing && qa.has(e.key) && t();
|
|
3008
3028
|
}, i = n.ownerDocument, a = () => {
|
|
3009
3029
|
i.activeElement === n && t();
|
|
3010
3030
|
};
|
|
@@ -3015,13 +3035,13 @@ function Ra(e) {
|
|
|
3015
3035
|
}
|
|
3016
3036
|
//#endregion
|
|
3017
3037
|
//#region lib/components/ui/widgets/mentions/mention-keys.ts
|
|
3018
|
-
function
|
|
3038
|
+
function Ya(e, t, n) {
|
|
3019
3039
|
if (e.isComposing || e.keyCode === 229 || e.altKey || e.ctrlKey || e.metaKey) return null;
|
|
3020
3040
|
if (e.key === "Escape") return e.shiftKey ? null : { type: "close" };
|
|
3021
3041
|
if (n === 0 || e.shiftKey) return null;
|
|
3022
3042
|
if (e.key === "Enter" || e.key === "Tab") return { type: "pick" };
|
|
3023
3043
|
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return null;
|
|
3024
|
-
let r = Array.from({ length: n }, () => ({ enabled: !0 })), i =
|
|
3044
|
+
let r = Array.from({ length: n }, () => ({ enabled: !0 })), i = Gt(e.key, t, r, {});
|
|
3025
3045
|
return i === null ? null : {
|
|
3026
3046
|
type: "move",
|
|
3027
3047
|
index: i
|
|
@@ -3029,7 +3049,7 @@ function za(e, t, n) {
|
|
|
3029
3049
|
}
|
|
3030
3050
|
//#endregion
|
|
3031
3051
|
//#region lib/components/ui/widgets/chat/use-chat-mention-keys.ts
|
|
3032
|
-
function
|
|
3052
|
+
function Xa({ textareaRef: e, open: t, listId: n, activeId: r, active: i, count: a, onAction: o }) {
|
|
3033
3053
|
let s = I({
|
|
3034
3054
|
active: i,
|
|
3035
3055
|
count: a,
|
|
@@ -3068,7 +3088,7 @@ function Ba({ textareaRef: e, open: t, listId: n, activeId: r, active: i, count:
|
|
|
3068
3088
|
let n = e.current;
|
|
3069
3089
|
if (!n || !t) return;
|
|
3070
3090
|
let r = (e) => {
|
|
3071
|
-
let t = s.current, n =
|
|
3091
|
+
let t = s.current, n = Ya(e, t.active, t.count);
|
|
3072
3092
|
n && (e.preventDefault(), e.stopPropagation(), t.onAction(n));
|
|
3073
3093
|
};
|
|
3074
3094
|
return n.addEventListener("keydown", r), () => n.removeEventListener("keydown", r);
|
|
@@ -3076,13 +3096,13 @@ function Ba({ textareaRef: e, open: t, listId: n, activeId: r, active: i, count:
|
|
|
3076
3096
|
}
|
|
3077
3097
|
//#endregion
|
|
3078
3098
|
//#region lib/hooks/use-async-search.ts
|
|
3079
|
-
var
|
|
3099
|
+
var Za = {
|
|
3080
3100
|
status: "idle",
|
|
3081
3101
|
query: "",
|
|
3082
3102
|
results: []
|
|
3083
3103
|
};
|
|
3084
|
-
function
|
|
3085
|
-
let r = b(e), [i, a] = L(
|
|
3104
|
+
function Qa(e, t, n) {
|
|
3105
|
+
let r = b(e), [i, a] = L(Za), [o] = L(() => Kt({ search: (e, t) => r.current.onSearch?.(e, t) ?? Promise.resolve([]) }, (e) => {
|
|
3086
3106
|
a(e), e.status === "error" && r.current.onSearchError?.(e.error);
|
|
3087
3107
|
})), s = !!e.onSearch;
|
|
3088
3108
|
return P(() => {
|
|
@@ -3101,8 +3121,8 @@ function Ha(e, t, n) {
|
|
|
3101
3121
|
}
|
|
3102
3122
|
//#endregion
|
|
3103
3123
|
//#region lib/components/ui/widgets/chat/use-chat-mention-search.ts
|
|
3104
|
-
function
|
|
3105
|
-
return
|
|
3124
|
+
function $a(e, t) {
|
|
3125
|
+
return Qa({
|
|
3106
3126
|
onSearch: e?.query,
|
|
3107
3127
|
onSearchError: e?.onError,
|
|
3108
3128
|
debounceMs: e?.debounceMs,
|
|
@@ -3111,28 +3131,28 @@ function Ua(e, t) {
|
|
|
3111
3131
|
}
|
|
3112
3132
|
//#endregion
|
|
3113
3133
|
//#region lib/components/ui/widgets/chat/chat-composer-mentions.tsx
|
|
3114
|
-
var
|
|
3115
|
-
function
|
|
3134
|
+
var eo = Va(() => import("./embed-chunks/mention-list-CdUr0h3X.js").then((e) => e.MentionList));
|
|
3135
|
+
function to({ value: e, textareaRef: t, mentions: n, search: r, onValueChange: i }) {
|
|
3116
3136
|
let [a, o] = L(!0), [s, c] = L({
|
|
3117
3137
|
query: null,
|
|
3118
3138
|
index: 0
|
|
3119
3139
|
}), l = F();
|
|
3120
|
-
|
|
3121
|
-
let u = t.current?.selectionStart ?? e.length, d = me(e, u), f = d !== null && a, p =
|
|
3140
|
+
Ja(t);
|
|
3141
|
+
let u = t.current?.selectionStart ?? e.length, d = me(e, u), f = d !== null && a, p = $a(r, f ? d : null);
|
|
3122
3142
|
P(() => {
|
|
3123
3143
|
d === null && o(!0), c({
|
|
3124
3144
|
query: d,
|
|
3125
3145
|
index: 0
|
|
3126
3146
|
});
|
|
3127
3147
|
}, [d]);
|
|
3128
|
-
let m = s.query === d ? s.index : 0, h =
|
|
3148
|
+
let m = s.query === d ? s.index : 0, h = Wa(n, p, d ?? ""), g = h.items.length, _ = Math.min(m, Math.max(g - 1, 0)), v = (n) => {
|
|
3129
3149
|
o(!1);
|
|
3130
3150
|
let r = ge(e, u, n);
|
|
3131
3151
|
i?.(r.value), requestAnimationFrame(() => {
|
|
3132
3152
|
t.current?.setSelectionRange(r.caret, r.caret), t.current?.focus();
|
|
3133
3153
|
});
|
|
3134
3154
|
};
|
|
3135
|
-
if (
|
|
3155
|
+
if (Xa({
|
|
3136
3156
|
textareaRef: t,
|
|
3137
3157
|
open: f,
|
|
3138
3158
|
listId: l,
|
|
@@ -3148,24 +3168,24 @@ function Ga({ value: e, textareaRef: t, mentions: n, search: r, onValueChange: i
|
|
|
3148
3168
|
}), !f) return null;
|
|
3149
3169
|
let y = /* @__PURE__ */ z(We, {
|
|
3150
3170
|
fallback: null,
|
|
3151
|
-
children: /* @__PURE__ */ z(
|
|
3171
|
+
children: /* @__PURE__ */ z(eo, {
|
|
3152
3172
|
id: l,
|
|
3153
3173
|
items: h.items,
|
|
3154
3174
|
selectedIndex: _,
|
|
3155
3175
|
loading: h.loading,
|
|
3156
3176
|
failed: h.failed,
|
|
3157
|
-
className: r ?
|
|
3177
|
+
className: r ? Ga : void 0,
|
|
3158
3178
|
onSelect: v
|
|
3159
3179
|
})
|
|
3160
3180
|
});
|
|
3161
|
-
return r ? /* @__PURE__ */ z(
|
|
3181
|
+
return r ? /* @__PURE__ */ z(Ka, {
|
|
3162
3182
|
textareaRef: t,
|
|
3163
3183
|
children: y
|
|
3164
3184
|
}) : y;
|
|
3165
3185
|
}
|
|
3166
3186
|
//#endregion
|
|
3167
3187
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-suggestions.tsx
|
|
3168
|
-
function
|
|
3188
|
+
function no({ suggestions: e, onSelect: t, disabled: n }) {
|
|
3169
3189
|
let { t: r } = a();
|
|
3170
3190
|
return e.length === 0 ? null : /* @__PURE__ */ z("div", {
|
|
3171
3191
|
"data-slot": "chat-composer-suggestions",
|
|
@@ -3177,7 +3197,7 @@ function Ka({ suggestions: e, onSelect: t, disabled: n }) {
|
|
|
3177
3197
|
disabled: n,
|
|
3178
3198
|
onClick: () => t(e),
|
|
3179
3199
|
className: A("inline-flex shrink-0 cursor-pointer snap-start items-center gap-1.5 whitespace-nowrap rounded-(--nxgt-shape-corner-full)", "border border-primary/30 bg-primary/5 px-3 py-1.5 font-medium text-primary-text text-xs", "outline-none transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast hover:border-primary/60 hover:bg-primary/10", "focus-visible:ring-[3px] focus-visible:ring-ring/50 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-[Highlight] disabled:cursor-not-allowed disabled:opacity-50", "animate-in fade-in slide-in-from-bottom-1 fill-mode-backwards duration-(--nxgt-motion-effects-slow-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none", r === 1 && "delay-75", r === 2 && "delay-150", r > 2 && "delay-200"),
|
|
3180
|
-
children: [r === 0 && /* @__PURE__ */ z(
|
|
3200
|
+
children: [r === 0 && /* @__PURE__ */ z(jt, {
|
|
3181
3201
|
"aria-hidden": "true",
|
|
3182
3202
|
className: "size-3.5"
|
|
3183
3203
|
}), e]
|
|
@@ -3186,9 +3206,9 @@ function Ka({ suggestions: e, onSelect: t, disabled: n }) {
|
|
|
3186
3206
|
}
|
|
3187
3207
|
//#endregion
|
|
3188
3208
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-notices.tsx
|
|
3189
|
-
function
|
|
3209
|
+
function ro({ composer: e, value: t = "", onValueChange: n, onSend: r, suggestions: i, onSuggestionSelect: a, mentions: o, mentionSearch: s }) {
|
|
3190
3210
|
return /* @__PURE__ */ B(R, { children: [
|
|
3191
|
-
i && i.length > 0 && /* @__PURE__ */ z(
|
|
3211
|
+
i && i.length > 0 && /* @__PURE__ */ z(no, {
|
|
3192
3212
|
suggestions: i,
|
|
3193
3213
|
disabled: e.isDisabled,
|
|
3194
3214
|
onSelect: a ?? ((e) => r?.(e, []))
|
|
@@ -3198,7 +3218,7 @@ function qa({ composer: e, value: t = "", onValueChange: n, onSend: r, suggestio
|
|
|
3198
3218
|
className: "px-1 text-error-text text-xs",
|
|
3199
3219
|
children: e.errorMessage
|
|
3200
3220
|
}),
|
|
3201
|
-
(o && o.length > 0 || s) && /* @__PURE__ */ z(
|
|
3221
|
+
(o && o.length > 0 || s) && /* @__PURE__ */ z(to, {
|
|
3202
3222
|
value: t,
|
|
3203
3223
|
textareaRef: e.textareaRef,
|
|
3204
3224
|
mentions: o,
|
|
@@ -3209,7 +3229,7 @@ function qa({ composer: e, value: t = "", onValueChange: n, onSend: r, suggestio
|
|
|
3209
3229
|
}
|
|
3210
3230
|
//#endregion
|
|
3211
3231
|
//#region lib/components/ui/widgets/chat/chat-reply-quote.tsx
|
|
3212
|
-
function
|
|
3232
|
+
function io({ author: e, content: t, onClick: n, tone: r = "default", className: i, ...o }) {
|
|
3213
3233
|
let { t: s } = a(), c = A(w, "flex w-full min-w-0 flex-col gap-0.5 rounded-(--nxgt-shape-corner-sm) ps-3 pe-2.5 py-1.5 text-start text-xs", r === "inverted" ? "before:bg-primary-foreground/70 bg-primary-foreground/15 text-primary-foreground" : "before:bg-primary-indicator bg-primary/8 text-foreground", n && "cursor-pointer outline-none transition-colors duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast hover:bg-primary/15 focus-visible:ring-[3px] focus-visible:ring-ring/50 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:outline-solid forced-colors:focus-visible:outline-[Highlight]", i), l = /* @__PURE__ */ B(R, { children: [e != null && /* @__PURE__ */ z("span", {
|
|
3214
3234
|
className: A("truncate font-semibold", r === "inverted" ? "" : "text-primary-text"),
|
|
3215
3235
|
children: e
|
|
@@ -3233,17 +3253,17 @@ function Ja({ author: e, content: t, onClick: n, tone: r = "default", className:
|
|
|
3233
3253
|
}
|
|
3234
3254
|
//#endregion
|
|
3235
3255
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-reply.tsx
|
|
3236
|
-
function
|
|
3256
|
+
function ao({ replyTo: e, onCancel: t }) {
|
|
3237
3257
|
let { t: n } = a(), r = n("material.chat.composer.cancel-reply", "Cancel reply");
|
|
3238
3258
|
return /* @__PURE__ */ B("div", {
|
|
3239
3259
|
"data-slot": "chat-composer-reply",
|
|
3240
3260
|
className: "flex animate-in items-center gap-2 px-2 pt-2 fade-in slide-in-from-bottom-1 duration-(--nxgt-motion-effects-default-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none",
|
|
3241
3261
|
children: [
|
|
3242
|
-
/* @__PURE__ */ z(
|
|
3262
|
+
/* @__PURE__ */ z(Et, {
|
|
3243
3263
|
"aria-hidden": "true",
|
|
3244
3264
|
className: "size-4 shrink-0 text-primary-text"
|
|
3245
3265
|
}),
|
|
3246
|
-
/* @__PURE__ */ z(
|
|
3266
|
+
/* @__PURE__ */ z(io, {
|
|
3247
3267
|
author: e.author == null ? void 0 : /* @__PURE__ */ B(R, { children: [
|
|
3248
3268
|
/* @__PURE__ */ z("span", {
|
|
3249
3269
|
className: "font-normal text-muted-foreground",
|
|
@@ -3270,10 +3290,10 @@ function Ya({ replyTo: e, onCancel: t }) {
|
|
|
3270
3290
|
}
|
|
3271
3291
|
//#endregion
|
|
3272
3292
|
//#region lib/components/ui/widgets/chat/partials/chat-composer-surface.tsx
|
|
3273
|
-
function
|
|
3293
|
+
function oo({ composer: e, floating: t, disabledReason: n, ...r }) {
|
|
3274
3294
|
let { isDisabled: i, labels: a } = e, { value: o = "", attachments: s = [], isLoading: c = !1 } = r, l = F(), u = n ? l : void 0;
|
|
3275
3295
|
return /* @__PURE__ */ B(R, { children: [
|
|
3276
|
-
/* @__PURE__ */ z(
|
|
3296
|
+
/* @__PURE__ */ z(ro, {
|
|
3277
3297
|
composer: e,
|
|
3278
3298
|
value: o,
|
|
3279
3299
|
onValueChange: r.onValueChange,
|
|
@@ -3287,17 +3307,17 @@ function Xa({ composer: e, floating: t, disabledReason: n, ...r }) {
|
|
|
3287
3307
|
"data-slot": "chat-composer-surface",
|
|
3288
3308
|
className: A("flex flex-col rounded-(--nxgt-shape-corner-lg-plus) border border-border transition-[border-color,box-shadow] duration-(--nxgt-motion-effects-fast-duration) ease-effects-fast", "focus-within:border-primary/60 dark:focus-within:border-primary-indicator focus-within:ring-[3px] focus-within:ring-primary/15 forced-colors:focus-within:outline-2 forced-colors:focus-within:outline-solid forced-colors:focus-within:outline-[Highlight]", t ? "bg-background shadow-lg" : "bg-card-muted-40", i && "opacity-70"),
|
|
3289
3309
|
children: [
|
|
3290
|
-
r.replyTo && /* @__PURE__ */ z(
|
|
3310
|
+
r.replyTo && /* @__PURE__ */ z(ao, {
|
|
3291
3311
|
replyTo: r.replyTo,
|
|
3292
3312
|
onCancel: r.onCancelReply
|
|
3293
3313
|
}),
|
|
3294
|
-
/* @__PURE__ */ z(
|
|
3314
|
+
/* @__PURE__ */ z(Ra, {
|
|
3295
3315
|
attachments: s,
|
|
3296
3316
|
isDisabled: i,
|
|
3297
3317
|
onAttachmentsChange: r.onAttachmentsChange,
|
|
3298
3318
|
className: "px-2.5 pt-2.5"
|
|
3299
3319
|
}),
|
|
3300
|
-
/* @__PURE__ */ z(
|
|
3320
|
+
/* @__PURE__ */ z(Ua, {
|
|
3301
3321
|
value: o,
|
|
3302
3322
|
onValueChange: r.onValueChange,
|
|
3303
3323
|
textareaRef: e.textareaRef,
|
|
@@ -3323,20 +3343,20 @@ function Xa({ composer: e, floating: t, disabledReason: n, ...r }) {
|
|
|
3323
3343
|
})
|
|
3324
3344
|
]
|
|
3325
3345
|
}),
|
|
3326
|
-
/* @__PURE__ */ z(
|
|
3346
|
+
/* @__PURE__ */ z(za, {
|
|
3327
3347
|
id: u,
|
|
3328
3348
|
children: n
|
|
3329
3349
|
}),
|
|
3330
|
-
r.maxLength != null && /* @__PURE__ */ z(
|
|
3350
|
+
r.maxLength != null && /* @__PURE__ */ z(co, {
|
|
3331
3351
|
length: o.length,
|
|
3332
3352
|
maxLength: r.maxLength
|
|
3333
3353
|
})
|
|
3334
3354
|
] });
|
|
3335
3355
|
}
|
|
3336
|
-
function
|
|
3356
|
+
function so(e) {
|
|
3337
3357
|
return A("@container relative flex shrink-0 flex-col gap-2 px-3 pt-2 pb-3 @md:px-4", e ? "bg-transparent" : "border-border/70 border-t bg-background");
|
|
3338
3358
|
}
|
|
3339
|
-
function
|
|
3359
|
+
function co({ length: e, maxLength: t }) {
|
|
3340
3360
|
return /* @__PURE__ */ B("span", {
|
|
3341
3361
|
className: A("-mt-1 self-end px-2 text-[0.6875rem] tabular-nums", e >= t ? "text-error-text" : "text-muted-foreground"),
|
|
3342
3362
|
children: [
|
|
@@ -3348,19 +3368,19 @@ function Qa({ length: e, maxLength: t }) {
|
|
|
3348
3368
|
}
|
|
3349
3369
|
//#endregion
|
|
3350
3370
|
//#region lib/components/ui/media/upload/network-upload-field/network-upload-field.utils.ts
|
|
3351
|
-
function
|
|
3371
|
+
function lo(e, t) {
|
|
3352
3372
|
let n = t.split(",").map((e) => e.trim()).filter(Boolean);
|
|
3353
3373
|
return n.length === 0 || n.some((t) => t.startsWith(".") ? e.name.toLowerCase().endsWith(t.toLowerCase()) : t.endsWith("/*") ? e.type.startsWith(t.slice(0, -1)) : e.type === t);
|
|
3354
3374
|
}
|
|
3355
|
-
function
|
|
3356
|
-
return t.accept &&
|
|
3375
|
+
function uo(e, t) {
|
|
3376
|
+
return t.accept && !lo(e, t.accept) ? "accept" : t.maxSize !== void 0 && e.size > t.maxSize ? "max-size" : t.maxFiles !== void 0 && t.currentCount !== void 0 && t.currentCount >= t.maxFiles ? "max-files" : null;
|
|
3357
3377
|
}
|
|
3358
3378
|
//#endregion
|
|
3359
3379
|
//#region lib/components/ui/widgets/chat/use-chat-composer-attachments.ts
|
|
3360
|
-
function
|
|
3380
|
+
function fo(e, t, n) {
|
|
3361
3381
|
let r = [...t], i = null;
|
|
3362
3382
|
for (let t of e) {
|
|
3363
|
-
let e =
|
|
3383
|
+
let e = uo(t, {
|
|
3364
3384
|
accept: n.accept,
|
|
3365
3385
|
maxFiles: n.maxFiles,
|
|
3366
3386
|
currentCount: r.length
|
|
@@ -3376,11 +3396,11 @@ function to(e, t, n) {
|
|
|
3376
3396
|
error: i
|
|
3377
3397
|
};
|
|
3378
3398
|
}
|
|
3379
|
-
function
|
|
3399
|
+
function po({ attachments: e, accept: t, maxFiles: n, disabled: r = !1, isLoading: i = !1, onAttachmentsChange: o }) {
|
|
3380
3400
|
let { t: s } = a(), [c, l] = L(null), u = r || i, d = n == null || e.length < n;
|
|
3381
3401
|
function f(r) {
|
|
3382
3402
|
if (!r.length || u) return;
|
|
3383
|
-
let { files: i, error: a } =
|
|
3403
|
+
let { files: i, error: a } = fo(r, e, {
|
|
3384
3404
|
accept: t,
|
|
3385
3405
|
maxFiles: n
|
|
3386
3406
|
});
|
|
@@ -3396,17 +3416,17 @@ function no({ attachments: e, accept: t, maxFiles: n, disabled: r = !1, isLoadin
|
|
|
3396
3416
|
}
|
|
3397
3417
|
//#endregion
|
|
3398
3418
|
//#region lib/components/ui/widgets/chat/use-chat-composer.ts
|
|
3399
|
-
function
|
|
3419
|
+
function mo(e, t) {
|
|
3400
3420
|
return e.key !== "Enter" || e.nativeEvent.isComposing ? !1 : t ? !e.shiftKey : e.ctrlKey || e.metaKey;
|
|
3401
3421
|
}
|
|
3402
|
-
function
|
|
3422
|
+
function ho({ value: e, onSend: t, placeholder: n, disabled: r, isLoading: i, sendLabel: o, stopLabel: s, attachments: c, onAttachmentsChange: l, accept: u, maxFiles: d, attachmentLabel: f, sendOnEnter: p = !0 }) {
|
|
3403
3423
|
let { t: m } = a(), h = I(null), g = I(null), _ = {
|
|
3404
3424
|
attach: f ?? m("material.chat.attach", "Add attachment"),
|
|
3405
3425
|
placeholder: n ?? m("material.chat.placeholder", "Type a message…"),
|
|
3406
3426
|
send: o ?? m("material.chat.send", "Send"),
|
|
3407
3427
|
stop: s ?? m("material.chat.composer.stop", "Stop generating"),
|
|
3408
3428
|
message: m("material.chat.message", "Message")
|
|
3409
|
-
}, { errorMessage: v, canAttachMore: y, hasAttachments: b, handleFiles: x, isDisabled: S } =
|
|
3429
|
+
}, { errorMessage: v, canAttachMore: y, hasAttachments: b, handleFiles: x, isDisabled: S } = po({
|
|
3410
3430
|
attachments: c,
|
|
3411
3431
|
accept: u,
|
|
3412
3432
|
maxFiles: d,
|
|
@@ -3428,7 +3448,7 @@ function io({ value: e, onSend: t, placeholder: n, disabled: r, isLoading: i, se
|
|
|
3428
3448
|
isDisabled: S,
|
|
3429
3449
|
isEmpty: C,
|
|
3430
3450
|
handleKeyDown(e) {
|
|
3431
|
-
|
|
3451
|
+
mo(e, p) && (e.preventDefault(), w());
|
|
3432
3452
|
},
|
|
3433
3453
|
formProps: {
|
|
3434
3454
|
onSubmit(e) {
|
|
@@ -3445,8 +3465,8 @@ function io({ value: e, onSend: t, placeholder: n, disabled: r, isLoading: i, se
|
|
|
3445
3465
|
}
|
|
3446
3466
|
//#endregion
|
|
3447
3467
|
//#region lib/components/ui/widgets/chat/chat-composer.tsx
|
|
3448
|
-
function
|
|
3449
|
-
let O =
|
|
3468
|
+
function go({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabled: i = !1, disabledReason: a, isLoading: o = !1, sendLabel: s, maxLength: c, attachments: l = [], onAttachmentsChange: u, accept: d, maxFiles: f, attachmentLabel: p, actions: m, emojis: h, mentions: g, mentionSearch: _, variant: v = "bar", suggestions: y, onSuggestionSelect: b, replyTo: x, onCancelReply: S, onStop: C, stopLabel: w, sendOnEnter: T = !0, className: E, ...D }) {
|
|
3469
|
+
let O = ho({
|
|
3450
3470
|
value: e,
|
|
3451
3471
|
onSend: n,
|
|
3452
3472
|
placeholder: r,
|
|
@@ -3465,9 +3485,9 @@ function ao({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabl
|
|
|
3465
3485
|
"data-slot": "chat-composer",
|
|
3466
3486
|
"data-variant": v,
|
|
3467
3487
|
...O.formProps,
|
|
3468
|
-
className: A(
|
|
3488
|
+
className: A(so(v === "floating"), E),
|
|
3469
3489
|
...D,
|
|
3470
|
-
children: /* @__PURE__ */ z(
|
|
3490
|
+
children: /* @__PURE__ */ z(oo, {
|
|
3471
3491
|
composer: O,
|
|
3472
3492
|
floating: v === "floating",
|
|
3473
3493
|
value: e,
|
|
@@ -3494,12 +3514,12 @@ function ao({ value: e = "", onValueChange: t, onSend: n, placeholder: r, disabl
|
|
|
3494
3514
|
}
|
|
3495
3515
|
//#endregion
|
|
3496
3516
|
//#region lib/components/ui/widgets/chat/chat-layout-context.ts
|
|
3497
|
-
var
|
|
3517
|
+
var _o = Ke({
|
|
3498
3518
|
layout: "bubbles",
|
|
3499
3519
|
density: "comfortable"
|
|
3500
3520
|
});
|
|
3501
|
-
function
|
|
3502
|
-
let t = Ye(
|
|
3521
|
+
function vo(e) {
|
|
3522
|
+
let t = Ye(_o);
|
|
3503
3523
|
return {
|
|
3504
3524
|
layout: e.layout ?? t.layout,
|
|
3505
3525
|
density: e.density ?? t.density
|
|
@@ -3507,7 +3527,7 @@ function so(e) {
|
|
|
3507
3527
|
}
|
|
3508
3528
|
//#endregion
|
|
3509
3529
|
//#region lib/components/ui/widgets/chat/chat-message.variants.ts
|
|
3510
|
-
var
|
|
3530
|
+
var yo = u("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
|
|
3511
3531
|
variants: {
|
|
3512
3532
|
variant: {
|
|
3513
3533
|
user: "ms-auto bg-primary text-primary-foreground shadow-sm",
|
|
@@ -3573,7 +3593,7 @@ var co = u("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
|
|
|
3573
3593
|
layout: "bubbles",
|
|
3574
3594
|
density: "comfortable"
|
|
3575
3595
|
}
|
|
3576
|
-
}),
|
|
3596
|
+
}), bo = {
|
|
3577
3597
|
end: {
|
|
3578
3598
|
single: "rounded-ee-md",
|
|
3579
3599
|
first: "rounded-ee-md",
|
|
@@ -3587,10 +3607,10 @@ var co = u("relative w-max max-w-full break-words [overflow-wrap:anywhere]", {
|
|
|
3587
3607
|
last: "rounded-ss-md rounded-es-md"
|
|
3588
3608
|
}
|
|
3589
3609
|
};
|
|
3590
|
-
function
|
|
3591
|
-
return t === "bubbles" ? e === "user" ?
|
|
3610
|
+
function xo(e, t, n) {
|
|
3611
|
+
return t === "bubbles" ? e === "user" ? bo.end[n] : e === "assistant" ? bo.start[n] : "" : "";
|
|
3592
3612
|
}
|
|
3593
|
-
var
|
|
3613
|
+
var So = u("group/message flex w-full animate-in fade-in slide-in-from-bottom-2 duration-(--nxgt-motion-effects-slow-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none", {
|
|
3594
3614
|
variants: {
|
|
3595
3615
|
variant: {
|
|
3596
3616
|
user: "",
|
|
@@ -3639,22 +3659,22 @@ var fo = u("group/message flex w-full animate-in fade-in slide-in-from-bottom-2
|
|
|
3639
3659
|
density: "comfortable"
|
|
3640
3660
|
}
|
|
3641
3661
|
});
|
|
3642
|
-
function
|
|
3662
|
+
function Co(e, t) {
|
|
3643
3663
|
return e !== "middle" && e !== "last" ? "" : t === "compact" ? "-mt-1.5" : "-mt-3";
|
|
3644
3664
|
}
|
|
3645
|
-
function
|
|
3665
|
+
function wo(e, t) {
|
|
3646
3666
|
return t === "flat" ? e === "compact" ? "size-7" : "size-9" : e === "compact" ? "size-6" : "size-8";
|
|
3647
3667
|
}
|
|
3648
3668
|
//#endregion
|
|
3649
3669
|
//#region lib/components/ui/widgets/chat/chat-copy-text.ts
|
|
3650
|
-
function
|
|
3670
|
+
function To(e, t) {
|
|
3651
3671
|
if (t) return t;
|
|
3652
3672
|
if (typeof e == "string") return e;
|
|
3653
3673
|
if (N(e) && typeof e.props.content == "string") return e.props.content;
|
|
3654
3674
|
}
|
|
3655
3675
|
//#endregion
|
|
3656
3676
|
//#region lib/components/ui/widgets/chat/chat-message.view.ts
|
|
3657
|
-
var
|
|
3677
|
+
var Eo = [
|
|
3658
3678
|
"variant",
|
|
3659
3679
|
"avatar",
|
|
3660
3680
|
"avatarFallback",
|
|
@@ -3681,10 +3701,10 @@ var go = [
|
|
|
3681
3701
|
"onReactionToggle",
|
|
3682
3702
|
"menuItems"
|
|
3683
3703
|
];
|
|
3684
|
-
function
|
|
3704
|
+
function Do(e) {
|
|
3685
3705
|
let t = {}, n = {};
|
|
3686
3706
|
for (let [r, i] of Object.entries(e)) {
|
|
3687
|
-
let e =
|
|
3707
|
+
let e = Eo.includes(r);
|
|
3688
3708
|
(e ? t : n)[r] = i;
|
|
3689
3709
|
}
|
|
3690
3710
|
return {
|
|
@@ -3692,7 +3712,7 @@ function _o(e) {
|
|
|
3692
3712
|
dom: n
|
|
3693
3713
|
};
|
|
3694
3714
|
}
|
|
3695
|
-
function
|
|
3715
|
+
function Oo(e, { layout: t, density: n }) {
|
|
3696
3716
|
let { variant: r = "assistant", groupPosition: i = "single", status: a = "sent", isLoading: o = !1, copyable: s = !0, edited: c = !1 } = e, l = t === "flat", u = r === "user", d = i === "single" || i === "first", f = i === "single" || i === "last", p = a === "failed", m = !l && (f || p) ? e.timestamp : void 0;
|
|
3697
3717
|
return {
|
|
3698
3718
|
variant: r,
|
|
@@ -3710,13 +3730,13 @@ function vo(e, { layout: t, density: n }) {
|
|
|
3710
3730
|
edited: c,
|
|
3711
3731
|
alignEnd: u && !l,
|
|
3712
3732
|
hasAvatar: r === "assistant" || r === "tool" || l && u,
|
|
3713
|
-
copyText: s && !o && a !== "sending" ?
|
|
3733
|
+
copyText: s && !o && a !== "sending" ? To(e.children, e.copyText) : void 0,
|
|
3714
3734
|
hasMeta: !!m || p || c || u && a !== "sent"
|
|
3715
3735
|
};
|
|
3716
3736
|
}
|
|
3717
3737
|
//#endregion
|
|
3718
3738
|
//#region lib/components/ui/widgets/chat/partials/chat-message-aside.tsx
|
|
3719
|
-
function
|
|
3739
|
+
function ko({ showAvatar: e, avatar: t, avatarSrc: n, avatarFallback: r, size: i, hoverTime: a, className: o }) {
|
|
3720
3740
|
return /* @__PURE__ */ B("div", {
|
|
3721
3741
|
"data-slot": "chat-message-aside",
|
|
3722
3742
|
className: A("flex shrink-0 justify-center", i, o),
|
|
@@ -3732,24 +3752,24 @@ function yo({ showAvatar: e, avatar: t, avatarSrc: n, avatarFallback: r, size: i
|
|
|
3732
3752
|
}
|
|
3733
3753
|
//#endregion
|
|
3734
3754
|
//#region lib/components/ui/widgets/chat/chat-message-meta.tsx
|
|
3735
|
-
function
|
|
3755
|
+
function Ao({ status: e }) {
|
|
3736
3756
|
let { t } = a();
|
|
3737
|
-
return e === "sending" ? /* @__PURE__ */ z(
|
|
3757
|
+
return e === "sending" ? /* @__PURE__ */ z(lt, {
|
|
3738
3758
|
role: "img",
|
|
3739
3759
|
"aria-label": t("material.chat.status.sending", "Sending"),
|
|
3740
3760
|
className: "size-3"
|
|
3741
|
-
}) : e === "delivered" ? /* @__PURE__ */ z(
|
|
3761
|
+
}) : e === "delivered" ? /* @__PURE__ */ z(ot, {
|
|
3742
3762
|
role: "img",
|
|
3743
3763
|
"aria-label": t("material.chat.status.delivered", "Delivered"),
|
|
3744
3764
|
className: "size-3.5"
|
|
3745
|
-
}) : e === "read" ? /* @__PURE__ */ z(
|
|
3765
|
+
}) : e === "read" ? /* @__PURE__ */ z(ot, {
|
|
3746
3766
|
role: "img",
|
|
3747
3767
|
"aria-label": t("material.chat.status.read", "Read"),
|
|
3748
3768
|
className: "size-3.5 text-primary-text"
|
|
3749
3769
|
}) : null;
|
|
3750
3770
|
}
|
|
3751
|
-
function
|
|
3752
|
-
let { t: l } = a(), u = l("material.chat.send-failed", "Couldn't send"), d = l("material.chat.retry", "Retry"), f = o && !n && i !== "sent" ? /* @__PURE__ */ z(
|
|
3771
|
+
function jo({ alignEnd: e, timestamp: t, failed: n, onRetry: r, status: i = "sent", showStatus: o = !1, edited: s = !1, className: c }) {
|
|
3772
|
+
let { t: l } = a(), u = l("material.chat.send-failed", "Couldn't send"), d = l("material.chat.retry", "Retry"), f = o && !n && i !== "sent" ? /* @__PURE__ */ z(Ao, { status: i }) : null;
|
|
3753
3773
|
return !k(t) && !n && !f && !s ? null : /* @__PURE__ */ B("div", {
|
|
3754
3774
|
"data-slot": "chat-message-meta",
|
|
3755
3775
|
className: A("flex items-center gap-1 px-1 text-[0.6875rem] text-muted-foreground leading-4 tabular-nums", e && "flex-row-reverse", c),
|
|
@@ -3778,20 +3798,20 @@ function xo({ alignEnd: e, timestamp: t, failed: n, onRetry: r, status: i = "sen
|
|
|
3778
3798
|
}
|
|
3779
3799
|
//#endregion
|
|
3780
3800
|
//#region lib/components/ui/widgets/chat/chat-reaction-group.tsx
|
|
3781
|
-
var
|
|
3801
|
+
var Mo = [
|
|
3782
3802
|
"👍",
|
|
3783
3803
|
"❤️",
|
|
3784
3804
|
"😂",
|
|
3785
3805
|
"🎉",
|
|
3786
3806
|
"👀"
|
|
3787
3807
|
];
|
|
3788
|
-
function
|
|
3808
|
+
function No({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions: r = Mo, addLabel: i, className: o, ...s }) {
|
|
3789
3809
|
let { t: c } = a(), l = i ?? c("material.chat.add-reaction", "Add reaction");
|
|
3790
3810
|
return /* @__PURE__ */ B("div", {
|
|
3791
3811
|
"data-slot": "chat-reaction-group",
|
|
3792
3812
|
className: A("flex flex-wrap items-center gap-1", o),
|
|
3793
3813
|
...s,
|
|
3794
|
-
children: [e.map((e) => /* @__PURE__ */ z(
|
|
3814
|
+
children: [e.map((e) => /* @__PURE__ */ z(Oa, {
|
|
3795
3815
|
label: `${e.emoji}${e.count ? ` ${e.count}` : ""}`,
|
|
3796
3816
|
active: e.active,
|
|
3797
3817
|
size: "sm",
|
|
@@ -3803,7 +3823,7 @@ function Co({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions:
|
|
|
3803
3823
|
color: "default",
|
|
3804
3824
|
"aria-label": l,
|
|
3805
3825
|
className: "size-7",
|
|
3806
|
-
children: /* @__PURE__ */ z(
|
|
3826
|
+
children: /* @__PURE__ */ z(At, { className: "size-4" })
|
|
3807
3827
|
})
|
|
3808
3828
|
}), /* @__PURE__ */ z(ie, {
|
|
3809
3829
|
align: "start",
|
|
@@ -3819,14 +3839,14 @@ function Co({ reactions: e, onReactionToggle: t, onAddReaction: n, suggestions:
|
|
|
3819
3839
|
}
|
|
3820
3840
|
//#endregion
|
|
3821
3841
|
//#region lib/components/ui/actions/copy-button/copy-to-clipboard.ts
|
|
3822
|
-
async function
|
|
3842
|
+
async function Po(e) {
|
|
3823
3843
|
if (!navigator.clipboard?.writeText) throw Error("Clipboard is not available");
|
|
3824
3844
|
await navigator.clipboard.writeText(e);
|
|
3825
3845
|
}
|
|
3826
3846
|
//#endregion
|
|
3827
3847
|
//#region lib/components/ui/actions/copy-button/use-copy-status.ts
|
|
3828
|
-
var
|
|
3829
|
-
function
|
|
3848
|
+
var Fo = 1500;
|
|
3849
|
+
function Io(e = Fo) {
|
|
3830
3850
|
let [t, n] = L("idle"), r = I(void 0), i = I(!1);
|
|
3831
3851
|
P(() => (i.current = !1, () => {
|
|
3832
3852
|
i.current = !0, clearTimeout(r.current);
|
|
@@ -3835,7 +3855,7 @@ function Eo(e = To) {
|
|
|
3835
3855
|
if (!t) return;
|
|
3836
3856
|
let a = "copied";
|
|
3837
3857
|
try {
|
|
3838
|
-
await
|
|
3858
|
+
await Po(t);
|
|
3839
3859
|
} catch {
|
|
3840
3860
|
a = "failed";
|
|
3841
3861
|
}
|
|
@@ -3848,8 +3868,8 @@ function Eo(e = To) {
|
|
|
3848
3868
|
}
|
|
3849
3869
|
//#endregion
|
|
3850
3870
|
//#region lib/components/ui/actions/copy-button/copy-button.tsx
|
|
3851
|
-
function
|
|
3852
|
-
let { t: u } = a(), { status: d, copy: f } =
|
|
3871
|
+
function Lo({ value: e, label: t, copiedLabel: n, failedLabel: r, icon: i, onCopyResult: o, variant: s = "ghost", color: c = "default", ...l }) {
|
|
3872
|
+
let { t: u } = a(), { status: d, copy: f } = Io(), p = t ?? u("material.copy.copy", "Copy"), m = n ?? u("material.copy.copied", "Copied"), h = r ?? u("material.copy.failed", "Copy failed"), g = d === "copied" ? m : d === "failed" ? h : "";
|
|
3853
3873
|
async function _() {
|
|
3854
3874
|
let t = await f(typeof e == "function" ? e() : e);
|
|
3855
3875
|
t && o?.(t);
|
|
@@ -3861,7 +3881,7 @@ function Do({ value: e, label: t, copiedLabel: n, failedLabel: r, icon: i, onCop
|
|
|
3861
3881
|
"aria-label": p,
|
|
3862
3882
|
tooltip: g || p,
|
|
3863
3883
|
onClick: _,
|
|
3864
|
-
children: d === "copied" ? /* @__PURE__ */ z(
|
|
3884
|
+
children: d === "copied" ? /* @__PURE__ */ z(at, {}) : d === "failed" ? /* @__PURE__ */ z(V, {}) : i ?? /* @__PURE__ */ z(dt, {})
|
|
3865
3885
|
}), /* @__PURE__ */ z("span", {
|
|
3866
3886
|
role: "status",
|
|
3867
3887
|
"aria-live": "polite",
|
|
@@ -3872,8 +3892,8 @@ function Do({ value: e, label: t, copiedLabel: n, failedLabel: r, icon: i, onCop
|
|
|
3872
3892
|
}
|
|
3873
3893
|
//#endregion
|
|
3874
3894
|
//#region lib/components/ui/widgets/chat/partials/chat-message-action-menus.tsx
|
|
3875
|
-
var
|
|
3876
|
-
function
|
|
3895
|
+
var Ro = "size-7 [&_svg]:size-3.5";
|
|
3896
|
+
function zo({ side: e, emojis: t, onReact: n }) {
|
|
3877
3897
|
let { t: r } = a();
|
|
3878
3898
|
return /* @__PURE__ */ B(ce, { children: [/* @__PURE__ */ z(le, {
|
|
3879
3899
|
asChild: !0,
|
|
@@ -3881,8 +3901,8 @@ function ko({ side: e, emojis: t, onReact: n }) {
|
|
|
3881
3901
|
variant: "ghost",
|
|
3882
3902
|
color: "default",
|
|
3883
3903
|
"aria-label": r("material.chat.actions.react", "React"),
|
|
3884
|
-
className:
|
|
3885
|
-
children: /* @__PURE__ */ z(
|
|
3904
|
+
className: Ro,
|
|
3905
|
+
children: /* @__PURE__ */ z(At, {})
|
|
3886
3906
|
})
|
|
3887
3907
|
}), /* @__PURE__ */ z(ie, {
|
|
3888
3908
|
align: e === "end" ? "end" : "start",
|
|
@@ -3894,7 +3914,7 @@ function ko({ side: e, emojis: t, onReact: n }) {
|
|
|
3894
3914
|
}, e))
|
|
3895
3915
|
})] });
|
|
3896
3916
|
}
|
|
3897
|
-
function
|
|
3917
|
+
function Bo({ side: e, onDelete: t, children: n }) {
|
|
3898
3918
|
let { t: r } = a();
|
|
3899
3919
|
return /* @__PURE__ */ B(ce, { children: [/* @__PURE__ */ z(le, {
|
|
3900
3920
|
asChild: !0,
|
|
@@ -3902,21 +3922,21 @@ function Ao({ side: e, onDelete: t, children: n }) {
|
|
|
3902
3922
|
variant: "ghost",
|
|
3903
3923
|
color: "default",
|
|
3904
3924
|
"aria-label": r("material.chat.actions.more", "More actions"),
|
|
3905
|
-
className:
|
|
3906
|
-
children: /* @__PURE__ */ z(
|
|
3925
|
+
className: Ro,
|
|
3926
|
+
children: /* @__PURE__ */ z(ft, {})
|
|
3907
3927
|
})
|
|
3908
3928
|
}), /* @__PURE__ */ B(ie, {
|
|
3909
3929
|
align: e === "end" ? "end" : "start",
|
|
3910
3930
|
children: [n, t && /* @__PURE__ */ B(O, {
|
|
3911
3931
|
variant: "error",
|
|
3912
3932
|
onClick: t,
|
|
3913
|
-
children: [/* @__PURE__ */ z(
|
|
3933
|
+
children: [/* @__PURE__ */ z(Nt, {}), r("material.chat.actions.delete", "Delete")]
|
|
3914
3934
|
})]
|
|
3915
3935
|
})] });
|
|
3916
3936
|
}
|
|
3917
3937
|
//#endregion
|
|
3918
3938
|
//#region lib/components/ui/widgets/chat/partials/chat-message-actions.tsx
|
|
3919
|
-
function
|
|
3939
|
+
function Vo({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactionSuggestions: o, menuItems: s }) {
|
|
3920
3940
|
let { t: c } = a(), l = !!(r || s), u = !!(i && o.length > 0);
|
|
3921
3941
|
if (!t && !n && !l && !u) return null;
|
|
3922
3942
|
let d = c("material.chat.actions.reply", "Reply");
|
|
@@ -3926,7 +3946,7 @@ function jo({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactio
|
|
|
3926
3946
|
"aria-label": c("material.chat.actions.label", "Message actions"),
|
|
3927
3947
|
className: A("absolute -top-4 z-10 flex items-center gap-0.5 rounded-(--nxgt-shape-corner-full) border border-border/70 bg-popover p-0.5 text-popover-foreground shadow-md", "pointer-events-none scale-95 opacity-0 [transition:opacity_var(--nxgt-motion-effects-fast-duration)_var(--nxgt-motion-effects-fast),scale_var(--nxgt-motion-spatial-fast-duration)_var(--nxgt-motion-spatial-fast)] motion-reduce:scale-none", "group-hover/message:pointer-events-auto group-hover/message:scale-100 group-hover/message:opacity-100", "group-focus-within/message:pointer-events-auto group-focus-within/message:scale-100 group-focus-within/message:opacity-100", "has-[[data-state=open]]:pointer-events-auto has-[[data-state=open]]:scale-100 has-[[data-state=open]]:opacity-100", e === "end" && "start-2 @lg:start-auto @lg:top-1 @lg:end-[calc(100%+0.5rem)]", e === "start" && "end-2 @lg:end-auto @lg:top-1 @lg:start-[calc(100%+0.5rem)]", e === "row" && "end-2"),
|
|
3928
3948
|
children: [
|
|
3929
|
-
u && i && /* @__PURE__ */ z(
|
|
3949
|
+
u && i && /* @__PURE__ */ z(zo, {
|
|
3930
3950
|
side: e,
|
|
3931
3951
|
emojis: o,
|
|
3932
3952
|
onReact: i
|
|
@@ -3938,14 +3958,14 @@ function jo({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactio
|
|
|
3938
3958
|
"aria-label": d,
|
|
3939
3959
|
onClick: n,
|
|
3940
3960
|
className: "size-7 [&_svg]:size-3.5",
|
|
3941
|
-
children: /* @__PURE__ */ z(
|
|
3961
|
+
children: /* @__PURE__ */ z(Et, {})
|
|
3942
3962
|
}),
|
|
3943
|
-
t && /* @__PURE__ */ z(
|
|
3963
|
+
t && /* @__PURE__ */ z(Lo, {
|
|
3944
3964
|
value: t,
|
|
3945
3965
|
label: c("material.chat.copy", "Copy message"),
|
|
3946
3966
|
className: "size-7 [&_svg]:size-3.5"
|
|
3947
3967
|
}),
|
|
3948
|
-
l && /* @__PURE__ */ z(
|
|
3968
|
+
l && /* @__PURE__ */ z(Bo, {
|
|
3949
3969
|
side: e,
|
|
3950
3970
|
onDelete: r,
|
|
3951
3971
|
children: s
|
|
@@ -3955,12 +3975,12 @@ function jo({ side: e, copyText: t, onReply: n, onDelete: r, onReact: i, reactio
|
|
|
3955
3975
|
}
|
|
3956
3976
|
//#endregion
|
|
3957
3977
|
//#region lib/components/ui/widgets/chat/partials/chat-message-bubble.tsx
|
|
3958
|
-
function
|
|
3959
|
-
let u = A(
|
|
3978
|
+
function Ho({ variant: e, layout: t, density: n, position: r, isLoading: i, isStreaming: a, status: o, replyTo: s, actions: c, children: l }) {
|
|
3979
|
+
let u = A(yo({
|
|
3960
3980
|
variant: e,
|
|
3961
3981
|
layout: t,
|
|
3962
3982
|
density: n
|
|
3963
|
-
}),
|
|
3983
|
+
}), xo(e, t, r));
|
|
3964
3984
|
if (i) return /* @__PURE__ */ z("div", {
|
|
3965
3985
|
className: A(u, "flex items-center gap-1"),
|
|
3966
3986
|
children: /* @__PURE__ */ z(_e, { className: "h-3 w-24" })
|
|
@@ -3970,13 +3990,13 @@ function Mo({ variant: e, layout: t, density: n, position: r, isLoading: i, isSt
|
|
|
3970
3990
|
"data-slot": "chat-message-bubble-wrap",
|
|
3971
3991
|
tabIndex: -1,
|
|
3972
3992
|
className: A("group/bubble relative max-w-full outline-none", t === "flat" && "w-full", o === "sending" && "opacity-70"),
|
|
3973
|
-
children: [/* @__PURE__ */ z(
|
|
3993
|
+
children: [/* @__PURE__ */ z(Vo, {
|
|
3974
3994
|
side: t === "flat" ? "row" : e === "user" ? "end" : "start",
|
|
3975
3995
|
...c
|
|
3976
3996
|
}), /* @__PURE__ */ B("div", {
|
|
3977
3997
|
"data-slot": "chat-message-bubble",
|
|
3978
3998
|
className: A(u, o === "failed" && "ring-2 ring-error/70", s && t === "bubbles" && "flex flex-col gap-1.5"),
|
|
3979
|
-
children: [s && /* @__PURE__ */ z(
|
|
3999
|
+
children: [s && /* @__PURE__ */ z(io, {
|
|
3980
4000
|
...s,
|
|
3981
4001
|
tone: d ? "inverted" : "default",
|
|
3982
4002
|
className: A(t === "bubbles" ? "-mx-1 mt-0.5 w-auto" : "max-w-md")
|
|
@@ -3992,7 +4012,7 @@ function Mo({ variant: e, layout: t, density: n, position: r, isLoading: i, isSt
|
|
|
3992
4012
|
}
|
|
3993
4013
|
//#endregion
|
|
3994
4014
|
//#region lib/components/ui/widgets/chat/partials/chat-message-heading.tsx
|
|
3995
|
-
function
|
|
4015
|
+
function Uo({ author: e, timestamp: t }) {
|
|
3996
4016
|
return e == null && t == null ? null : /* @__PURE__ */ B("div", {
|
|
3997
4017
|
"data-slot": "chat-message-heading",
|
|
3998
4018
|
className: "flex min-w-0 items-baseline gap-2 px-1 text-xs",
|
|
@@ -4007,7 +4027,7 @@ function No({ author: e, timestamp: t }) {
|
|
|
4007
4027
|
}
|
|
4008
4028
|
//#endregion
|
|
4009
4029
|
//#region lib/components/ui/widgets/chat/partials/chat-message-body.tsx
|
|
4010
|
-
var
|
|
4030
|
+
var Wo = [
|
|
4011
4031
|
"👍",
|
|
4012
4032
|
"❤️",
|
|
4013
4033
|
"😂",
|
|
@@ -4015,12 +4035,12 @@ var Po = [
|
|
|
4015
4035
|
"😮",
|
|
4016
4036
|
"🙏"
|
|
4017
4037
|
];
|
|
4018
|
-
function
|
|
4038
|
+
function Go({ content: e, view: t }) {
|
|
4019
4039
|
let { variant: n, alignEnd: r, flat: i, lead: a, isUser: o } = t;
|
|
4020
4040
|
return /* @__PURE__ */ B("div", {
|
|
4021
4041
|
className: A("flex min-w-0 flex-col gap-1", i ? "flex-1" : "max-w-[85%] @md:max-w-[75%]", r && "items-end", n === "system" && "w-full max-w-full items-center"),
|
|
4022
4042
|
children: [
|
|
4023
|
-
/* @__PURE__ */ z(
|
|
4043
|
+
/* @__PURE__ */ z(Uo, {
|
|
4024
4044
|
author: a && (!o || i) ? e.author : void 0,
|
|
4025
4045
|
timestamp: i && a ? e.timestamp : void 0
|
|
4026
4046
|
}),
|
|
@@ -4029,7 +4049,7 @@ function Fo({ content: e, view: t }) {
|
|
|
4029
4049
|
className: "mb-0.5 self-start rounded-full bg-secondary px-2 py-0.5 text-[10px] font-medium text-secondary-foreground",
|
|
4030
4050
|
children: e.toolName
|
|
4031
4051
|
}),
|
|
4032
|
-
/* @__PURE__ */ z(
|
|
4052
|
+
/* @__PURE__ */ z(Ho, {
|
|
4033
4053
|
variant: n,
|
|
4034
4054
|
layout: t.layout,
|
|
4035
4055
|
density: t.density,
|
|
@@ -4043,17 +4063,17 @@ function Fo({ content: e, view: t }) {
|
|
|
4043
4063
|
onReply: e.onReply,
|
|
4044
4064
|
onDelete: e.onDelete,
|
|
4045
4065
|
onReact: e.onReact,
|
|
4046
|
-
reactionSuggestions: e.reactionSuggestions ??
|
|
4066
|
+
reactionSuggestions: e.reactionSuggestions ?? Wo,
|
|
4047
4067
|
menuItems: e.menuItems
|
|
4048
4068
|
},
|
|
4049
4069
|
children: e.children
|
|
4050
4070
|
}),
|
|
4051
|
-
e.reactions && e.reactions.length > 0 && /* @__PURE__ */ z(
|
|
4071
|
+
e.reactions && e.reactions.length > 0 && /* @__PURE__ */ z(No, {
|
|
4052
4072
|
reactions: e.reactions,
|
|
4053
4073
|
onReactionToggle: e.onReactionToggle,
|
|
4054
4074
|
className: A("px-1", r && "justify-end")
|
|
4055
4075
|
}),
|
|
4056
|
-
/* @__PURE__ */ z(
|
|
4076
|
+
/* @__PURE__ */ z(jo, {
|
|
4057
4077
|
alignEnd: r,
|
|
4058
4078
|
timestamp: t.metaTime,
|
|
4059
4079
|
failed: t.failed,
|
|
@@ -4072,8 +4092,8 @@ function Fo({ content: e, view: t }) {
|
|
|
4072
4092
|
}
|
|
4073
4093
|
//#endregion
|
|
4074
4094
|
//#region lib/components/ui/widgets/chat/chat-message.tsx
|
|
4075
|
-
function
|
|
4076
|
-
let { content: a, dom: o } =
|
|
4095
|
+
function Ko({ layout: e, density: t, className: n, text: r, ...i }) {
|
|
4096
|
+
let { content: a, dom: o } = Do(r === void 0 ? i : {
|
|
4077
4097
|
...i,
|
|
4078
4098
|
copyText: i.copyText ?? r,
|
|
4079
4099
|
children: /* @__PURE__ */ z("span", {
|
|
@@ -4081,10 +4101,10 @@ function Io({ layout: e, density: t, className: n, text: r, ...i }) {
|
|
|
4081
4101
|
className: "whitespace-pre-wrap [overflow-wrap:anywhere]",
|
|
4082
4102
|
children: r
|
|
4083
4103
|
})
|
|
4084
|
-
}), { layout: s, density: c } =
|
|
4104
|
+
}), { layout: s, density: c } = vo({
|
|
4085
4105
|
layout: e,
|
|
4086
4106
|
density: t
|
|
4087
|
-
}), l =
|
|
4107
|
+
}), l = Oo(a, {
|
|
4088
4108
|
layout: s,
|
|
4089
4109
|
density: c
|
|
4090
4110
|
}), { variant: u, groupPosition: d, flat: f, lead: p, tail: m } = l;
|
|
@@ -4093,61 +4113,54 @@ function Io({ layout: e, density: t, className: n, text: r, ...i }) {
|
|
|
4093
4113
|
"data-variant": u,
|
|
4094
4114
|
"data-layout": s,
|
|
4095
4115
|
"data-group": d,
|
|
4096
|
-
className: A(
|
|
4116
|
+
className: A(So({
|
|
4097
4117
|
variant: u,
|
|
4098
4118
|
layout: s,
|
|
4099
4119
|
density: c
|
|
4100
|
-
}),
|
|
4120
|
+
}), Co(d, c), n),
|
|
4101
4121
|
...o,
|
|
4102
|
-
children: [l.hasAvatar && /* @__PURE__ */ z(
|
|
4122
|
+
children: [l.hasAvatar && /* @__PURE__ */ z(ko, {
|
|
4103
4123
|
showAvatar: f ? p : m,
|
|
4104
4124
|
avatar: a.avatar,
|
|
4105
4125
|
avatarSrc: a.avatarSrc,
|
|
4106
4126
|
avatarFallback: a.avatarFallback,
|
|
4107
|
-
size:
|
|
4127
|
+
size: wo(c, s),
|
|
4108
4128
|
className: A(!f && l.hasMeta && "mb-5"),
|
|
4109
4129
|
hoverTime: f && !p ? a.timestamp : void 0
|
|
4110
|
-
}), /* @__PURE__ */ z(
|
|
4130
|
+
}), /* @__PURE__ */ z(Go, {
|
|
4111
4131
|
content: a,
|
|
4112
4132
|
view: l
|
|
4113
4133
|
})]
|
|
4114
4134
|
});
|
|
4115
4135
|
}
|
|
4116
4136
|
//#endregion
|
|
4117
|
-
//#region lib/hooks/use-csp-nonce.ts
|
|
4118
|
-
var Lo = Ke(void 0);
|
|
4119
|
-
Ke(0);
|
|
4120
|
-
function Ro() {
|
|
4121
|
-
return Ye(Lo);
|
|
4122
|
-
}
|
|
4123
|
-
//#endregion
|
|
4124
4137
|
//#region lib/components/ui/primitives/scroll-area/scroll-area.tsx
|
|
4125
|
-
function
|
|
4126
|
-
let i =
|
|
4127
|
-
return /* @__PURE__ */ B(
|
|
4138
|
+
function qo({ className: e, children: t, viewportProps: n, ...r }) {
|
|
4139
|
+
let i = Ai();
|
|
4140
|
+
return /* @__PURE__ */ B(Wn, {
|
|
4128
4141
|
"data-slot": "scroll-area",
|
|
4129
4142
|
className: A("relative", e),
|
|
4130
4143
|
...r,
|
|
4131
4144
|
children: [
|
|
4132
|
-
/* @__PURE__ */ z(
|
|
4145
|
+
/* @__PURE__ */ z(Gn, {
|
|
4133
4146
|
...n,
|
|
4134
4147
|
"data-slot": "scroll-area-viewport",
|
|
4135
4148
|
nonce: i,
|
|
4136
4149
|
className: A("focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", n?.className),
|
|
4137
4150
|
children: t
|
|
4138
4151
|
}),
|
|
4139
|
-
/* @__PURE__ */ z(
|
|
4140
|
-
/* @__PURE__ */ z(
|
|
4152
|
+
/* @__PURE__ */ z(Jo, {}),
|
|
4153
|
+
/* @__PURE__ */ z(Kn, {})
|
|
4141
4154
|
]
|
|
4142
4155
|
});
|
|
4143
4156
|
}
|
|
4144
|
-
function
|
|
4145
|
-
return /* @__PURE__ */ z(
|
|
4157
|
+
function Jo({ className: e, orientation: t = "vertical", ...n }) {
|
|
4158
|
+
return /* @__PURE__ */ z(Sn, {
|
|
4146
4159
|
"data-slot": "scroll-area-scrollbar",
|
|
4147
4160
|
orientation: t,
|
|
4148
4161
|
className: A("flex touch-none p-px transition-colors select-none", t === "vertical" && "h-full w-2.5 border-l border-l-transparent", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", e),
|
|
4149
4162
|
...n,
|
|
4150
|
-
children: /* @__PURE__ */ z(
|
|
4163
|
+
children: /* @__PURE__ */ z(Nn, {
|
|
4151
4164
|
"data-slot": "scroll-area-thumb",
|
|
4152
4165
|
className: "bg-border relative flex-1 rounded-full"
|
|
4153
4166
|
})
|
|
@@ -4155,22 +4168,22 @@ function Bo({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
4155
4168
|
}
|
|
4156
4169
|
//#endregion
|
|
4157
4170
|
//#region lib/components/ui/widgets/chat/partials/chat-empty-thread.tsx
|
|
4158
|
-
function
|
|
4171
|
+
function Yo() {
|
|
4159
4172
|
let { t: e } = a();
|
|
4160
|
-
return /* @__PURE__ */ z(
|
|
4173
|
+
return /* @__PURE__ */ z(cr, {
|
|
4161
4174
|
kind: "empty",
|
|
4162
4175
|
size: "compact",
|
|
4163
|
-
icon: /* @__PURE__ */ z(
|
|
4176
|
+
icon: /* @__PURE__ */ z(Ct, {}),
|
|
4164
4177
|
title: e("material.chat.empty", "No messages yet"),
|
|
4165
4178
|
description: e("material.chat.empty-description", "Send a message to start the conversation.")
|
|
4166
4179
|
});
|
|
4167
4180
|
}
|
|
4168
4181
|
//#endregion
|
|
4169
4182
|
//#region lib/components/ui/actions/scroll-to-latest-button/scroll-to-latest-button.tsx
|
|
4170
|
-
function
|
|
4183
|
+
function Xo({ visible: e = !0, count: t = 0, label: n, direction: r = "down", className: i, type: o = "button", ...s }) {
|
|
4171
4184
|
let { t: c } = a();
|
|
4172
4185
|
if (!e) return null;
|
|
4173
|
-
let l = n ?? c("material.scroll-to-latest.label", "Scroll to latest"), u = r === "up" ?
|
|
4186
|
+
let l = n ?? c("material.scroll-to-latest.label", "Scroll to latest"), u = r === "up" ? it : rt, d = t > 0, f = c("material.scroll-to-latest.new", "{count, plural, one {# new message} other {# new messages}}", { count: t });
|
|
4174
4187
|
return /* @__PURE__ */ B("button", {
|
|
4175
4188
|
type: o,
|
|
4176
4189
|
"data-slot": "scroll-to-latest-button",
|
|
@@ -4193,11 +4206,11 @@ function Ho({ visible: e = !0, count: t = 0, label: n, direction: r = "down", cl
|
|
|
4193
4206
|
}
|
|
4194
4207
|
//#endregion
|
|
4195
4208
|
//#region lib/components/ui/widgets/chat/partials/chat-scroll-to-latest.tsx
|
|
4196
|
-
function
|
|
4209
|
+
function Zo({ visible: e, count: t, label: n, onClick: r }) {
|
|
4197
4210
|
let { t: i } = a();
|
|
4198
4211
|
return /* @__PURE__ */ z("div", {
|
|
4199
4212
|
className: "pointer-events-none absolute inset-x-0 bottom-3 flex justify-center",
|
|
4200
|
-
children: /* @__PURE__ */ z(
|
|
4213
|
+
children: /* @__PURE__ */ z(Xo, {
|
|
4201
4214
|
visible: e,
|
|
4202
4215
|
count: t,
|
|
4203
4216
|
label: n ?? i("material.chat.scroll-to-latest", "Scroll to latest"),
|
|
@@ -4208,7 +4221,7 @@ function Uo({ visible: e, count: t, label: n, onClick: r }) {
|
|
|
4208
4221
|
}
|
|
4209
4222
|
//#endregion
|
|
4210
4223
|
//#region lib/components/ui/feedback/typing-indicator/typing-indicator.tsx
|
|
4211
|
-
var
|
|
4224
|
+
var Qo = u("nxgt-typing inline-flex w-max items-center text-muted-foreground", {
|
|
4212
4225
|
variants: {
|
|
4213
4226
|
variant: {
|
|
4214
4227
|
dots: "px-1 py-1",
|
|
@@ -4224,14 +4237,14 @@ var Wo = u("nxgt-typing inline-flex w-max items-center text-muted-foreground", {
|
|
|
4224
4237
|
size: "md"
|
|
4225
4238
|
}
|
|
4226
4239
|
});
|
|
4227
|
-
function
|
|
4240
|
+
function $o({ label: e, variant: t, size: n, className: r, ...i }) {
|
|
4228
4241
|
let { t: o } = a(), s = e ?? o("material.typing-indicator.label", "Typing");
|
|
4229
4242
|
return /* @__PURE__ */ z("div", {
|
|
4230
4243
|
"data-slot": "typing-indicator",
|
|
4231
4244
|
"data-variant": t ?? "dots",
|
|
4232
4245
|
role: "status",
|
|
4233
4246
|
"aria-label": s,
|
|
4234
|
-
className: A(
|
|
4247
|
+
className: A(Qo({
|
|
4235
4248
|
variant: t,
|
|
4236
4249
|
size: n
|
|
4237
4250
|
}), r),
|
|
@@ -4248,9 +4261,9 @@ function Go({ label: e, variant: t, size: n, className: r, ...i }) {
|
|
|
4248
4261
|
}
|
|
4249
4262
|
//#endregion
|
|
4250
4263
|
//#region lib/components/ui/widgets/chat/chat-typing-indicator.tsx
|
|
4251
|
-
function
|
|
4264
|
+
function es({ label: e, ...t }) {
|
|
4252
4265
|
let { t: n } = a();
|
|
4253
|
-
return /* @__PURE__ */ z(
|
|
4266
|
+
return /* @__PURE__ */ z($o, {
|
|
4254
4267
|
"data-slot": "chat-typing-indicator",
|
|
4255
4268
|
label: e ?? n("material.chat.typing", "Typing"),
|
|
4256
4269
|
...t
|
|
@@ -4258,13 +4271,13 @@ function Ko({ label: e, ...t }) {
|
|
|
4258
4271
|
}
|
|
4259
4272
|
//#endregion
|
|
4260
4273
|
//#region lib/components/ui/widgets/chat/partials/chat-typing-row.tsx
|
|
4261
|
-
function
|
|
4274
|
+
function ts({ density: e, layout: t, avatar: n, label: r }) {
|
|
4262
4275
|
return /* @__PURE__ */ B("div", {
|
|
4263
4276
|
className: "flex animate-in items-end gap-2 fade-in slide-in-from-bottom-2 duration-(--nxgt-motion-effects-slow-duration) ease-(--nxgt-motion-emphasized-decelerate) motion-reduce:animate-none",
|
|
4264
4277
|
children: [/* @__PURE__ */ z("div", {
|
|
4265
|
-
className: A("shrink-0",
|
|
4278
|
+
className: A("shrink-0", wo(e, t)),
|
|
4266
4279
|
children: n
|
|
4267
|
-
}), /* @__PURE__ */ z(
|
|
4280
|
+
}), /* @__PURE__ */ z(es, {
|
|
4268
4281
|
variant: "bubble",
|
|
4269
4282
|
label: r
|
|
4270
4283
|
})]
|
|
@@ -4272,32 +4285,32 @@ function qo({ density: e, layout: t, avatar: n, label: r }) {
|
|
|
4272
4285
|
}
|
|
4273
4286
|
//#endregion
|
|
4274
4287
|
//#region lib/components/ui/widgets/chat/chat-unseen.ts
|
|
4275
|
-
function
|
|
4288
|
+
function ns(e, t, n, r) {
|
|
4276
4289
|
if (r) return 0;
|
|
4277
4290
|
let i = n - t;
|
|
4278
4291
|
return i > 0 ? e + i : e;
|
|
4279
4292
|
}
|
|
4280
4293
|
//#endregion
|
|
4281
4294
|
//#region lib/components/ui/widgets/chat/use-chat-scroll.ts
|
|
4282
|
-
function
|
|
4295
|
+
function rs(e) {
|
|
4283
4296
|
return e?.querySelector("[data-slot=\"scroll-area-viewport\"]");
|
|
4284
4297
|
}
|
|
4285
|
-
function
|
|
4298
|
+
function is(e) {
|
|
4286
4299
|
return e.scrollHeight - e.scrollTop - e.clientHeight;
|
|
4287
4300
|
}
|
|
4288
|
-
function
|
|
4301
|
+
function as(e, t) {
|
|
4289
4302
|
let n = I(null), r = I(null), i = I(!0), a = I(e), [o, s] = L(!0), [c, l] = L(0), u = Je((e = "auto") => {
|
|
4290
|
-
let t =
|
|
4303
|
+
let t = rs(n.current);
|
|
4291
4304
|
t && t.scrollTo({
|
|
4292
4305
|
top: t.scrollHeight,
|
|
4293
4306
|
behavior: e
|
|
4294
4307
|
});
|
|
4295
4308
|
}, []);
|
|
4296
4309
|
return P(() => {
|
|
4297
|
-
let e =
|
|
4310
|
+
let e = rs(n.current);
|
|
4298
4311
|
if (!e) return;
|
|
4299
4312
|
let r = () => {
|
|
4300
|
-
let n =
|
|
4313
|
+
let n = is(e) <= t;
|
|
4301
4314
|
i.current = n, s(n), n && l(0);
|
|
4302
4315
|
};
|
|
4303
4316
|
return i.current && (e.scrollTop = e.scrollHeight), r(), e.addEventListener("scroll", r, { passive: !0 }), () => e.removeEventListener("scroll", r);
|
|
@@ -4310,7 +4323,7 @@ function Zo(e, t) {
|
|
|
4310
4323
|
return t.observe(e), () => t.disconnect();
|
|
4311
4324
|
}, [u]), P(() => {
|
|
4312
4325
|
let t = i.current;
|
|
4313
|
-
l((n) =>
|
|
4326
|
+
l((n) => ns(n, a.current, e, t)), a.current = e, t && u();
|
|
4314
4327
|
}, [e, u]), {
|
|
4315
4328
|
rootRef: n,
|
|
4316
4329
|
contentRef: r,
|
|
@@ -4323,17 +4336,17 @@ function Zo(e, t) {
|
|
|
4323
4336
|
}
|
|
4324
4337
|
//#endregion
|
|
4325
4338
|
//#region lib/components/ui/widgets/chat/chat-message-list.tsx
|
|
4326
|
-
function
|
|
4327
|
-
let { t: h } = a(), g = u ?? Ue.count(d), _ =
|
|
4339
|
+
function os({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r, scrollToBottomLabel: i, showScrollToBottom: o = !0, bottomThreshold: s = 96, layout: c = "bubbles", density: l = "comfortable", itemCount: u, children: d, className: f, viewportProps: p, ...m }) {
|
|
4340
|
+
let { t: h } = a(), g = u ?? Ue.count(d), _ = as(g + +!!e, s), v = Ze(() => ({
|
|
4328
4341
|
layout: c,
|
|
4329
4342
|
density: l
|
|
4330
4343
|
}), [c, l]);
|
|
4331
|
-
return /* @__PURE__ */ z(
|
|
4344
|
+
return /* @__PURE__ */ z(_o.Provider, {
|
|
4332
4345
|
value: v,
|
|
4333
4346
|
children: /* @__PURE__ */ B("div", {
|
|
4334
4347
|
ref: _.rootRef,
|
|
4335
4348
|
className: "relative h-full min-h-0 flex-1",
|
|
4336
|
-
children: [/* @__PURE__ */ z(
|
|
4349
|
+
children: [/* @__PURE__ */ z(qo, {
|
|
4337
4350
|
"data-slot": "chat-message-list",
|
|
4338
4351
|
"data-layout": c,
|
|
4339
4352
|
"data-density": l,
|
|
@@ -4349,14 +4362,14 @@ function Qo({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r,
|
|
|
4349
4362
|
role: "log",
|
|
4350
4363
|
"aria-label": h("material.chat.thread.log", "Messages"),
|
|
4351
4364
|
className: A("mx-auto flex w-full min-w-0 flex-col", l === "compact" ? "gap-2.5 p-3" : "gap-4 p-4 @lg:px-6"),
|
|
4352
|
-
children: [g === 0 ? r ?? /* @__PURE__ */ z(
|
|
4365
|
+
children: [g === 0 ? r ?? /* @__PURE__ */ z(Yo, {}) : d, e && /* @__PURE__ */ z(ts, {
|
|
4353
4366
|
density: l,
|
|
4354
4367
|
layout: c,
|
|
4355
4368
|
avatar: n,
|
|
4356
4369
|
label: t
|
|
4357
4370
|
})]
|
|
4358
4371
|
})
|
|
4359
|
-
}), o && /* @__PURE__ */ z(
|
|
4372
|
+
}), o && /* @__PURE__ */ z(Zo, {
|
|
4360
4373
|
visible: !_.atBottom,
|
|
4361
4374
|
count: _.unseen,
|
|
4362
4375
|
label: i,
|
|
@@ -4367,17 +4380,17 @@ function Qo({ isTyping: e = !1, typingLabel: t, typingAvatar: n, emptyState: r,
|
|
|
4367
4380
|
}
|
|
4368
4381
|
//#endregion
|
|
4369
4382
|
//#region lib/components/ui/display/day-separator/day-label.ts
|
|
4370
|
-
function
|
|
4371
|
-
let o = a &&
|
|
4383
|
+
function ss(e, { now: t = /* @__PURE__ */ new Date(), locale: n, today: r, yesterday: i, timeZone: a }) {
|
|
4384
|
+
let o = a && Yt(a) ? a : void 0, s = Zt(e);
|
|
4372
4385
|
if (Number.isNaN(s.getTime())) return "";
|
|
4373
|
-
let c =
|
|
4386
|
+
let c = qt(Jt(s, t, o));
|
|
4374
4387
|
if (c === "today") return r;
|
|
4375
4388
|
if (c === "yesterday") return i;
|
|
4376
4389
|
if (c === "week") return new Intl.DateTimeFormat(n, {
|
|
4377
4390
|
weekday: "long",
|
|
4378
4391
|
timeZone: o
|
|
4379
4392
|
}).format(s);
|
|
4380
|
-
let l = (e) => Number(
|
|
4393
|
+
let l = (e) => Number(Xt(e, o).slice(0, 4)), u = l(Zt(t)) === l(s);
|
|
4381
4394
|
return new Intl.DateTimeFormat(n, {
|
|
4382
4395
|
weekday: u ? "short" : void 0,
|
|
4383
4396
|
day: "numeric",
|
|
@@ -4388,7 +4401,7 @@ function $o(e, { now: t = /* @__PURE__ */ new Date(), locale: n, today: r, yeste
|
|
|
4388
4401
|
}
|
|
4389
4402
|
//#endregion
|
|
4390
4403
|
//#region lib/components/ui/display/day-separator/day-separator.tsx
|
|
4391
|
-
var
|
|
4404
|
+
var cs = u("flex w-full items-center gap-3 py-2 text-xs text-muted-foreground", {
|
|
4392
4405
|
variants: {
|
|
4393
4406
|
variant: {
|
|
4394
4407
|
pill: "",
|
|
@@ -4404,11 +4417,11 @@ var es = u("flex w-full items-center gap-3 py-2 text-xs text-muted-foreground",
|
|
|
4404
4417
|
sticky: !1
|
|
4405
4418
|
}
|
|
4406
4419
|
});
|
|
4407
|
-
function
|
|
4420
|
+
function ls({ date: e, label: t, now: n, locale: r, timeZone: i }) {
|
|
4408
4421
|
let { t: o, language: s } = a();
|
|
4409
4422
|
if (t != null) return /* @__PURE__ */ z(R, { children: t });
|
|
4410
4423
|
if (e == null) return null;
|
|
4411
|
-
let c =
|
|
4424
|
+
let c = ss(e, {
|
|
4412
4425
|
now: n,
|
|
4413
4426
|
timeZone: i,
|
|
4414
4427
|
locale: r ?? s ?? "en",
|
|
@@ -4416,16 +4429,16 @@ function ts({ date: e, label: t, now: n, locale: r, timeZone: i }) {
|
|
|
4416
4429
|
yesterday: o("material.day-separator.yesterday", "Yesterday")
|
|
4417
4430
|
});
|
|
4418
4431
|
return /* @__PURE__ */ z("time", {
|
|
4419
|
-
dateTime:
|
|
4432
|
+
dateTime: Xt(e, i),
|
|
4420
4433
|
children: c
|
|
4421
4434
|
});
|
|
4422
4435
|
}
|
|
4423
|
-
function
|
|
4436
|
+
function us({ date: e, label: t, badge: n, now: r, timeZone: i, locale: a, variant: o, sticky: s, as: c = "div", className: l, ...u }) {
|
|
4424
4437
|
let d = (o ?? "pill") === "pill";
|
|
4425
4438
|
return /* @__PURE__ */ B(c, {
|
|
4426
4439
|
"data-slot": "day-separator",
|
|
4427
4440
|
"data-variant": o ?? "pill",
|
|
4428
|
-
className: A(
|
|
4441
|
+
className: A(cs({
|
|
4429
4442
|
variant: o,
|
|
4430
4443
|
sticky: s
|
|
4431
4444
|
}), c !== "div" && "m-0 font-normal", l),
|
|
@@ -4437,7 +4450,7 @@ function ns({ date: e, label: t, badge: n, now: r, timeZone: i, locale: a, varia
|
|
|
4437
4450
|
}),
|
|
4438
4451
|
/* @__PURE__ */ B("span", {
|
|
4439
4452
|
className: A("inline-flex shrink-0 items-center gap-1.5 font-medium", d && "rounded-(--nxgt-shape-corner-full) border border-border/60 bg-(--nxgt-sticky-surface,var(--ground,var(--background))) px-3 py-1 shadow-xs", !d && s && "rounded-(--nxgt-shape-corner-full) bg-(--nxgt-sticky-surface,var(--ground,var(--background))) px-2 py-0.5"),
|
|
4440
|
-
children: [/* @__PURE__ */ z(
|
|
4453
|
+
children: [/* @__PURE__ */ z(ls, {
|
|
4441
4454
|
date: e,
|
|
4442
4455
|
label: t,
|
|
4443
4456
|
now: r,
|
|
@@ -4457,8 +4470,8 @@ function ns({ date: e, label: t, badge: n, now: r, timeZone: i, locale: a, varia
|
|
|
4457
4470
|
}
|
|
4458
4471
|
//#endregion
|
|
4459
4472
|
//#region lib/components/ui/widgets/chat/chat-message-separator.tsx
|
|
4460
|
-
function
|
|
4461
|
-
return /* @__PURE__ */ z(
|
|
4473
|
+
function ds({ sticky: e = !1, ...t }) {
|
|
4474
|
+
return /* @__PURE__ */ z(us, {
|
|
4462
4475
|
"data-slot": "chat-message-separator",
|
|
4463
4476
|
sticky: e,
|
|
4464
4477
|
...t
|
|
@@ -4466,7 +4479,7 @@ function rs({ sticky: e = !1, ...t }) {
|
|
|
4466
4479
|
}
|
|
4467
4480
|
//#endregion
|
|
4468
4481
|
//#region lib/components/ui/widgets/chat/chat-thread.tsx
|
|
4469
|
-
function
|
|
4482
|
+
function fs({ header: e, footer: t, composerProps: n, messageListProps: r, layout: i, density: a, surface: o = "plain", children: s, className: c, ...l }) {
|
|
4470
4483
|
return /* @__PURE__ */ B("div", {
|
|
4471
4484
|
"data-slot": "chat-thread",
|
|
4472
4485
|
"data-surface": o,
|
|
@@ -4478,13 +4491,13 @@ function is({ header: e, footer: t, composerProps: n, messageListProps: r, layou
|
|
|
4478
4491
|
className: "z-10 shrink-0 border-border/70 border-b bg-background",
|
|
4479
4492
|
children: e
|
|
4480
4493
|
}),
|
|
4481
|
-
/* @__PURE__ */ z(
|
|
4494
|
+
/* @__PURE__ */ z(os, {
|
|
4482
4495
|
layout: i,
|
|
4483
4496
|
density: a,
|
|
4484
4497
|
...r,
|
|
4485
4498
|
children: s
|
|
4486
4499
|
}),
|
|
4487
|
-
n && /* @__PURE__ */ z(
|
|
4500
|
+
n && /* @__PURE__ */ z(go, { ...n }),
|
|
4488
4501
|
t && /* @__PURE__ */ z("div", {
|
|
4489
4502
|
"data-slot": "chat-thread-footer",
|
|
4490
4503
|
className: "shrink-0",
|
|
@@ -4494,4 +4507,4 @@ function is({ header: e, footer: t, composerProps: n, messageListProps: r, layou
|
|
|
4494
4507
|
});
|
|
4495
4508
|
}
|
|
4496
4509
|
//#endregion
|
|
4497
|
-
export {
|
|
4510
|
+
export { Qn as Alert, Ci as AttachmentList, xe as Badge, C as Button, go as ChatComposer, Ko as ChatMessage, os as ChatMessageList, ds as ChatMessageSeparator, fs as ChatThread, Ii as Checkbox, Ri as CheckboxFormField, Pa as ChipGroupField, te as Dialog, wi as DialogAside, Di as DialogBody, se as DialogClose, ae as DialogContent, ne as DialogDescription, E as DialogFooter, de as DialogHeader, pe as DialogTitle, re as DialogTrigger, Sr as EmailField, ii as EmailFormField, cr as EmptyState, e as I18nProvider, dr as Input, Jn as ListRow, Ni as NonceProvider, ue as NxgtThemeProvider, ee as PortalContainerProvider, _e as Skeleton, lr as SkeletonText, v as Spinner, Me as Tabs, Ae as TabsContent, Oe as TabsList, Fi as TabsTrigger, yr as TextField, ai as TextFormField, oi as Textarea, gi as TextareaField, _i as TextareaFormField, oe as adoptStyles };
|