@g4rcez/components 5.0.2 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnimatePresence-j36AYeOQ.js +181 -0
- package/dist/AnimatePresence-j36AYeOQ.js.map +1 -0
- package/dist/Calendar.es-xICmgvjq.js +23 -0
- package/dist/Calendar.es-xICmgvjq.js.map +1 -0
- package/dist/Funnel.es-DjKVl8Nj.js +23 -0
- package/dist/Funnel.es-DjKVl8Nj.js.map +1 -0
- package/dist/{MotionConfig-DKKYqBH2.js → MotionConfig-CXHoPGbK.js} +2 -2
- package/dist/{MotionConfig-DKKYqBH2.js.map → MotionConfig-CXHoPGbK.js.map} +1 -1
- package/dist/Plus.es-DbyRkEE2.js +23 -0
- package/dist/Plus.es-DbyRkEE2.js.map +1 -0
- package/dist/Trash.es-BFAc8PMf.js +23 -0
- package/dist/Trash.es-BFAc8PMf.js.map +1 -0
- package/dist/{calendar-PCCZDUIL.js → calendar-DEPkz8sw.js} +364 -502
- package/dist/calendar-DEPkz8sw.js.map +1 -0
- package/dist/calendar-header-Dfr-CwkY.js +174 -0
- package/dist/calendar-header-Dfr-CwkY.js.map +1 -0
- package/dist/chunk-jwUa06l-.js +23 -0
- package/dist/components/core/button.js +1 -1
- package/dist/components/core/heading.js +11 -0
- package/dist/components/core/heading.js.map +1 -0
- package/dist/{polymorph-BLXhrn9n.js → components/core/polymorph.js} +2 -2
- package/dist/components/core/polymorph.js.map +1 -0
- package/dist/components/core/render-on-view.js +29 -0
- package/dist/components/core/render-on-view.js.map +1 -0
- package/dist/components/core/resizable.d.ts +7 -1
- package/dist/components/core/resizable.d.ts.map +1 -1
- package/dist/components/core/resizable.js +60 -0
- package/dist/components/core/resizable.js.map +1 -0
- package/dist/components/core/resizable.jsx +46 -40
- package/dist/{slot-pC8kH9De.js → components/core/slot.js} +2 -2
- package/dist/components/core/slot.js.map +1 -0
- package/dist/components/core/tag.js +1 -1
- package/dist/components/core/typography.js +40 -0
- package/dist/components/core/typography.js.map +1 -0
- package/dist/components/display/alert.d.ts.map +1 -1
- package/dist/components/display/alert.js +83 -102
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/alert.jsx +26 -29
- package/dist/components/display/calendar.d.ts.map +1 -1
- package/dist/components/display/calendar.js +1 -1
- package/dist/components/display/calendar.jsx +15 -10
- package/dist/components/display/card.js +2 -2
- package/dist/components/display/empty.d.ts.map +1 -1
- package/dist/components/display/empty.js +25 -0
- package/dist/components/display/empty.js.map +1 -0
- package/dist/components/display/empty.jsx +3 -1
- package/dist/components/display/list.d.ts.map +1 -1
- package/dist/components/display/list.js +132 -122
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/list.jsx +30 -25
- package/dist/components/display/notifications.d.ts.map +1 -1
- package/dist/components/display/notifications.js +1 -1
- package/dist/components/display/notifications.jsx +8 -6
- package/dist/components/display/progress.d.ts.map +1 -1
- package/dist/components/display/progress.js +3 -0
- package/dist/components/display/progress.jsx +6 -8
- package/dist/components/display/shortcut.js +2 -0
- package/dist/components/display/skeleton.js +41 -0
- package/dist/components/display/skeleton.js.map +1 -0
- package/dist/components/display/spinner.js +17 -0
- package/dist/components/display/spinner.js.map +1 -0
- package/dist/components/display/step.d.ts.map +1 -1
- package/dist/components/display/step.js +3 -0
- package/dist/components/display/step.jsx +5 -5
- package/dist/components/display/tabs.js +1 -1
- package/dist/components/display/timeline.js +1 -1
- package/dist/components/floating/command-palette.d.ts.map +1 -1
- package/dist/components/floating/command-palette.js +255 -0
- package/dist/components/floating/command-palette.js.map +1 -0
- package/dist/components/floating/command-palette.jsx +34 -25
- package/dist/components/floating/dropdown.js +1 -1
- package/dist/components/floating/dropdown.js.map +1 -1
- package/dist/components/floating/dropdown.jsx +1 -1
- package/dist/components/floating/expand.js +15 -14
- package/dist/components/floating/expand.js.map +1 -1
- package/dist/components/floating/menu.js +1 -1
- package/dist/components/floating/modal.d.ts +14 -11
- package/dist/components/floating/modal.d.ts.map +1 -1
- package/dist/components/floating/modal.js +1 -1
- package/dist/components/floating/modal.jsx +56 -17
- package/dist/components/floating/toolbar.d.ts +3 -3
- package/dist/components/floating/toolbar.d.ts.map +1 -1
- package/dist/components/floating/toolbar.js +20 -0
- package/dist/components/floating/toolbar.js.map +1 -0
- package/dist/components/floating/toolbar.jsx +7 -3
- package/dist/components/floating/tooltip.js +2 -2
- package/dist/components/floating/tooltip.js.map +1 -1
- package/dist/components/floating/tooltip.jsx +1 -1
- package/dist/components/floating/wizard.js +3 -0
- package/dist/components/form/autocomplete.d.ts.map +1 -1
- package/dist/components/form/autocomplete.js +344 -2
- package/dist/components/form/autocomplete.js.map +1 -0
- package/dist/components/form/autocomplete.jsx +27 -18
- package/dist/components/form/checkbox.d.ts.map +1 -1
- package/dist/components/form/checkbox.js +29 -27
- package/dist/components/form/checkbox.js.map +1 -1
- package/dist/components/form/checkbox.jsx +21 -6
- package/dist/components/form/date-picker.js +1 -1
- package/dist/components/form/date-picker.jsx +1 -1
- package/dist/components/form/file-upload.d.ts +6 -1
- package/dist/components/form/file-upload.d.ts.map +1 -1
- package/dist/components/form/file-upload.js +1 -1
- package/dist/components/form/file-upload.jsx +34 -12
- package/dist/components/form/formReset.js +10 -0
- package/dist/components/form/formReset.js.map +1 -0
- package/dist/components/form/free-text.js +70 -0
- package/dist/components/form/free-text.js.map +1 -0
- package/dist/components/form/free-text.jsx +1 -1
- package/dist/components/form/input-field.d.ts.map +1 -1
- package/dist/components/form/input-field.js +3 -0
- package/dist/components/form/input-field.jsx +14 -8
- package/dist/components/form/input.js +1 -1
- package/dist/components/form/multi-select.d.ts.map +1 -1
- package/dist/components/form/multi-select.js +420 -0
- package/dist/components/form/multi-select.js.map +1 -0
- package/dist/components/form/multi-select.jsx +41 -33
- package/dist/components/form/select.d.ts.map +1 -1
- package/dist/components/form/select.js +55 -51
- package/dist/components/form/select.js.map +1 -1
- package/dist/components/form/select.jsx +8 -5
- package/dist/components/form/slider.js +3 -0
- package/dist/components/form/switch.d.ts +2 -1
- package/dist/components/form/switch.d.ts.map +1 -1
- package/dist/components/form/switch.js +32 -26
- package/dist/components/form/switch.js.map +1 -1
- package/dist/components/form/switch.jsx +26 -13
- package/dist/components/form/textarea.js +19 -0
- package/dist/components/form/textarea.js.map +1 -0
- package/dist/components/page-calendar/calendar-header.d.ts.map +1 -1
- package/dist/components/page-calendar/calendar-header.js +2 -0
- package/dist/components/page-calendar/calendar-header.jsx +6 -4
- package/dist/components/page-calendar/day-view.js +124 -0
- package/dist/components/page-calendar/day-view.js.map +1 -0
- package/dist/components/page-calendar/event-pill.js +44 -0
- package/dist/components/page-calendar/event-pill.js.map +1 -0
- package/dist/components/page-calendar/month-view.d.ts.map +1 -1
- package/dist/components/page-calendar/month-view.js +109 -0
- package/dist/components/page-calendar/month-view.js.map +1 -0
- package/dist/components/page-calendar/month-view.jsx +78 -31
- package/dist/components/page-calendar/page-calendar.d.ts.map +1 -1
- package/dist/components/page-calendar/page-calendar.js +75 -0
- package/dist/components/page-calendar/page-calendar.js.map +1 -0
- package/dist/components/page-calendar/page-calendar.jsx +2 -2
- package/dist/components/page-calendar/week-view.js +88 -0
- package/dist/components/page-calendar/week-view.js.map +1 -0
- package/dist/components/table/filter.d.ts.map +1 -1
- package/dist/components/table/filter.js +239 -0
- package/dist/components/table/filter.js.map +1 -0
- package/dist/components/table/filter.jsx +9 -4
- package/dist/components/table/group.d.ts.map +1 -1
- package/dist/components/table/group.js +3 -0
- package/dist/components/table/group.jsx +5 -3
- package/dist/components/table/index.js +102 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/inner-table.js +2 -0
- package/dist/components/table/inner-table.jsx +1 -1
- package/dist/components/table/metadata.js +73 -0
- package/dist/components/table/metadata.js.map +1 -0
- package/dist/components/table/metadata.jsx +1 -1
- package/dist/components/table/pagination.js +70 -0
- package/dist/components/table/pagination.js.map +1 -0
- package/dist/components/table/row.js +58 -0
- package/dist/components/table/row.js.map +1 -0
- package/dist/components/table/sort.d.ts.map +1 -1
- package/dist/components/table/sort.js +3 -0
- package/dist/components/table/sort.jsx +3 -1
- package/dist/components/table/thead.js +3 -0
- package/dist/config/default-translations.d.ts +18 -0
- package/dist/config/default-translations.d.ts.map +1 -1
- package/dist/config/default-translations.jsx +18 -0
- package/dist/{use-translations-DTLfPE3_.js → context-CsnUsfeP.js} +55 -40
- package/dist/context-CsnUsfeP.js.map +1 -0
- package/dist/{date-picker-BhKEFZew.js → date-picker-DNzupG8R.js} +301 -317
- package/dist/date-picker-DNzupG8R.js.map +1 -0
- package/dist/dict-CisoYSMO.js +28 -0
- package/dist/dict-CisoYSMO.js.map +1 -0
- package/dist/dist-ChfJ5LO9.js +498 -0
- package/dist/dist-ChfJ5LO9.js.map +1 -0
- package/dist/{dist-BrGpYRaj.js → dist-DIjUECx9.js} +56 -56
- package/dist/{dist-BrGpYRaj.js.map → dist-DIjUECx9.js.map} +1 -1
- package/dist/dom-Bn4wY_Zx.js.map +1 -1
- package/dist/{file-upload-DWbZfeG5.js → file-upload-C2zNnv9n.js} +501 -481
- package/dist/{file-upload-DWbZfeG5.js.map → file-upload-C2zNnv9n.js.map} +1 -1
- package/dist/fzf-CPGDDCoU.js +64 -0
- package/dist/fzf-CPGDDCoU.js.map +1 -0
- package/dist/getISOWeek-EcB4Ebqp.js +72 -0
- package/dist/getISOWeek-EcB4Ebqp.js.map +1 -0
- package/dist/group-Dl14TJXO.js +222 -0
- package/dist/group-Dl14TJXO.js.map +1 -0
- package/dist/hooks/use-translations.d.ts +18 -0
- package/dist/hooks/use-translations.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inner-table-CeDX60cL.js +151 -0
- package/dist/inner-table-CeDX60cL.js.map +1 -0
- package/dist/input-Cmyuea4Y.js +412 -0
- package/dist/input-Cmyuea4Y.js.map +1 -0
- package/dist/{input-field-B_whI66Q.js → input-field-ffx1MbHo.js} +29 -16
- package/dist/input-field-ffx1MbHo.js.map +1 -0
- package/dist/isSameMonth-C3lsSwcg.js +10 -0
- package/dist/isSameMonth-C3lsSwcg.js.map +1 -0
- package/dist/isToday-COXfxFui.js +32 -0
- package/dist/isToday-COXfxFui.js.map +1 -0
- package/dist/lib/dom.d.ts.map +1 -1
- package/dist/modal-Df8-6i-o.js +408 -0
- package/dist/modal-Df8-6i-o.js.map +1 -0
- package/dist/notifications-NhCESJUV.js +1697 -0
- package/dist/notifications-NhCESJUV.js.map +1 -0
- package/dist/page-calendar.utils-Bd0PHktL.js +102 -0
- package/dist/page-calendar.utils-Bd0PHktL.js.map +1 -0
- package/dist/preset/preset.tailwind.d.ts.map +1 -1
- package/dist/preset/preset.tailwind.js +6 -7
- package/dist/preset/src/styles/dark.js +1 -1
- package/dist/progress-8LO5gWLp.js +104 -0
- package/dist/progress-8LO5gWLp.js.map +1 -0
- package/dist/{proxy-BcJ_5Dwq.js → proxy-fP2NxmhM.js} +658 -844
- package/dist/proxy-fP2NxmhM.js.map +1 -0
- package/dist/shim-Czv-YhKR.js +93 -0
- package/dist/shim-Czv-YhKR.js.map +1 -0
- package/dist/shortcut-CQCmgmlU.js +100 -0
- package/dist/shortcut-CQCmgmlU.js.map +1 -0
- package/dist/slider-TX9hiHO-.js +1196 -0
- package/dist/slider-TX9hiHO-.js.map +1 -0
- package/dist/sort-DGmiselV.js +195 -0
- package/dist/sort-DGmiselV.js.map +1 -0
- package/dist/step-DFpJ7zCG.js +185 -0
- package/dist/step-DFpJ7zCG.js.map +1 -0
- package/dist/styles/dark.js +1 -1
- package/dist/subMonths-QcCnE3Yh.js +43 -0
- package/dist/subMonths-QcCnE3Yh.js.map +1 -0
- package/dist/table-lib-1bkYSklk.js +174 -0
- package/dist/table-lib-1bkYSklk.js.map +1 -0
- package/dist/{tabs-Ciy0l9OF.js → tabs-Brc963EW.js} +2 -2
- package/dist/{tabs-Ciy0l9OF.js.map → tabs-Brc963EW.js.map} +1 -1
- package/dist/thead-B6WELJZ-.js +211 -0
- package/dist/thead-B6WELJZ-.js.map +1 -0
- package/dist/use-locale-DPM_sg4s.js +12 -0
- package/dist/use-locale-DPM_sg4s.js.map +1 -0
- package/dist/use-remove-scroll-pAgC09Sq.js +38 -0
- package/dist/use-remove-scroll-pAgC09Sq.js.map +1 -0
- package/dist/use-translations-BE4PuhLm.js +11 -0
- package/dist/use-translations-BE4PuhLm.js.map +1 -0
- package/dist/useAnimationFrame-DnKbaXfi.js +223 -0
- package/dist/useAnimationFrame-DnKbaXfi.js.map +1 -0
- package/dist/valueToPercent-DZc_m1tm.js +43 -0
- package/dist/valueToPercent-DZc_m1tm.js.map +1 -0
- package/dist/visuallyHidden-B7wI86yi.js +303 -0
- package/dist/visuallyHidden-B7wI86yi.js.map +1 -0
- package/dist/with-selector-BFW5n-pb.js +102 -0
- package/dist/with-selector-BFW5n-pb.js.map +1 -0
- package/dist/wizard-7u_qZ-78.js +218 -0
- package/dist/wizard-7u_qZ-78.js.map +1 -0
- package/package.json +19 -11
- package/dist/autocomplete-D3VOTihi.js +0 -415
- package/dist/autocomplete-D3VOTihi.js.map +0 -1
- package/dist/calendar-PCCZDUIL.js.map +0 -1
- package/dist/components/table/table.js +0 -3
- package/dist/date-picker-BhKEFZew.js.map +0 -1
- package/dist/input-B7jqwPG4.js +0 -473
- package/dist/input-B7jqwPG4.js.map +0 -1
- package/dist/input-field-B_whI66Q.js.map +0 -1
- package/dist/modal-Bz-61ays.js +0 -373
- package/dist/modal-Bz-61ays.js.map +0 -1
- package/dist/notifications-MT4XkLov.js +0 -2203
- package/dist/notifications-MT4XkLov.js.map +0 -1
- package/dist/polymorph-BLXhrn9n.js.map +0 -1
- package/dist/proxy-BcJ_5Dwq.js.map +0 -1
- package/dist/skeleton-CBYEq3lM.js +0 -26
- package/dist/skeleton-CBYEq3lM.js.map +0 -1
- package/dist/slot-pC8kH9De.js.map +0 -1
- package/dist/table-CUFbAI2k.js +0 -1914
- package/dist/table-CUFbAI2k.js.map +0 -1
- package/dist/use-translations-DTLfPE3_.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { o as e,
|
|
1
|
+
import { o as e, t } from "./chunk-jwUa06l-.js";
|
|
2
2
|
import { t as n } from "./File.es-CjNVQ00B.js";
|
|
3
3
|
import { t as r } from "./X.es-Cjq2a_OA.js";
|
|
4
4
|
import { t as i } from "./IconBase.es-BlJQ9IXo.js";
|
|
5
|
-
import { t as a } from "./use-translations-
|
|
6
|
-
import { t as o } from "./modal-
|
|
5
|
+
import { t as a } from "./use-translations-BE4PuhLm.js";
|
|
6
|
+
import { t as o } from "./modal-Df8-6i-o.js";
|
|
7
7
|
import * as s from "react";
|
|
8
|
-
import c, { Fragment as l,
|
|
8
|
+
import c, { Fragment as l, cloneElement as u, createContext as d, forwardRef as f, useCallback as p, useContext as m, useEffect as h, useImperativeHandle as g, useMemo as _, useReducer as ee, useRef as v, useState as y } from "react";
|
|
9
9
|
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
10
10
|
//#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/defs/FileCode.es.js
|
|
11
11
|
var S = /* @__PURE__ */ new Map([
|
|
@@ -18,7 +18,7 @@ var S = /* @__PURE__ */ new Map([
|
|
|
18
18
|
["light", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z" }))],
|
|
19
19
|
["regular", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z" }))],
|
|
20
20
|
["thin", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z" }))]
|
|
21
|
-
]),
|
|
21
|
+
]), C = /* @__PURE__ */ new Map([
|
|
22
22
|
["bold", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z" }))],
|
|
23
23
|
["duotone", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", {
|
|
24
24
|
d: "M208,88H152V32Z",
|
|
@@ -28,7 +28,7 @@ var S = /* @__PURE__ */ new Map([
|
|
|
28
28
|
["light", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z" }))],
|
|
29
29
|
["regular", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z" }))],
|
|
30
30
|
["thin", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z" }))]
|
|
31
|
-
]),
|
|
31
|
+
]), te = /* @__PURE__ */ new Map([
|
|
32
32
|
["bold", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-1.91,84.69a12,12,0,0,0-11.92-.15L126.5,152.44A20,20,0,0,0,108,140H48a20,20,0,0,0-20,20v48a20,20,0,0,0,20,20h60a20,20,0,0,0,18.5-12.44l19.67,10.93A12,12,0,0,0,164,216V152A12,12,0,0,0,158.09,141.66ZM104,204H52V164h52Zm36-8.39-12-6.67v-9.88l12-6.67Z" }))],
|
|
33
33
|
["duotone", /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", {
|
|
34
34
|
d: "M208,88H152V32Zm-88,72a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V196l32,20V152l-32,20Z",
|
|
@@ -89,7 +89,7 @@ O.displayName = "FileCodeIcon";
|
|
|
89
89
|
var k = s.forwardRef((e, t) => /* @__PURE__ */ s.createElement(i, {
|
|
90
90
|
ref: t,
|
|
91
91
|
...e,
|
|
92
|
-
weights:
|
|
92
|
+
weights: C
|
|
93
93
|
}));
|
|
94
94
|
k.displayName = "FileTextIcon";
|
|
95
95
|
//#endregion
|
|
@@ -97,7 +97,7 @@ k.displayName = "FileTextIcon";
|
|
|
97
97
|
var A = s.forwardRef((e, t) => /* @__PURE__ */ s.createElement(i, {
|
|
98
98
|
ref: t,
|
|
99
99
|
...e,
|
|
100
|
-
weights:
|
|
100
|
+
weights: te
|
|
101
101
|
}));
|
|
102
102
|
A.displayName = "FileVideoIcon";
|
|
103
103
|
//#endregion
|
|
@@ -144,7 +144,7 @@ var F = [
|
|
|
144
144
|
"EB",
|
|
145
145
|
"ZB",
|
|
146
146
|
"YB"
|
|
147
|
-
],
|
|
147
|
+
], I = [
|
|
148
148
|
"B",
|
|
149
149
|
"KiB",
|
|
150
150
|
"MiB",
|
|
@@ -154,7 +154,7 @@ var F = [
|
|
|
154
154
|
"EiB",
|
|
155
155
|
"ZiB",
|
|
156
156
|
"YiB"
|
|
157
|
-
],
|
|
157
|
+
], L = [
|
|
158
158
|
"b",
|
|
159
159
|
"kbit",
|
|
160
160
|
"Mbit",
|
|
@@ -164,7 +164,7 @@ var F = [
|
|
|
164
164
|
"Ebit",
|
|
165
165
|
"Zbit",
|
|
166
166
|
"Ybit"
|
|
167
|
-
],
|
|
167
|
+
], ne = [
|
|
168
168
|
"b",
|
|
169
169
|
"kibit",
|
|
170
170
|
"Mibit",
|
|
@@ -174,22 +174,22 @@ var F = [
|
|
|
174
174
|
"Eibit",
|
|
175
175
|
"Zibit",
|
|
176
176
|
"Yibit"
|
|
177
|
-
],
|
|
177
|
+
], R = (e, t, n) => {
|
|
178
178
|
let r = e;
|
|
179
179
|
return typeof t == "string" || Array.isArray(t) ? r = e.toLocaleString(t, n) : (t === !0 || n !== void 0) && (r = e.toLocaleString(void 0, n)), r;
|
|
180
|
-
},
|
|
180
|
+
}, z = (e) => {
|
|
181
181
|
if (typeof e == "number") return Math.log10(e);
|
|
182
182
|
let t = e.toString(10);
|
|
183
183
|
return t.length + Math.log10(`0.${t.slice(0, 15)}`);
|
|
184
|
-
},
|
|
184
|
+
}, re = (e) => typeof e == "number" ? Math.log(e) : z(e) * Math.log(10), B = (e, t) => {
|
|
185
185
|
if (typeof e == "number") return e / t;
|
|
186
186
|
let n = e / BigInt(t), r = e % BigInt(t);
|
|
187
187
|
return Number(n) + Number(r) / t;
|
|
188
|
-
},
|
|
188
|
+
}, V = (e, t) => {
|
|
189
189
|
if (t === void 0) return e;
|
|
190
190
|
if (typeof t != "number" || !Number.isSafeInteger(t) || t < 0) throw TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof t}: ${t}`);
|
|
191
191
|
return t === 0 ? e : e.length < t ? e.padStart(t, " ") : e;
|
|
192
|
-
},
|
|
192
|
+
}, ie = (e) => {
|
|
193
193
|
let { minimumFractionDigits: t, maximumFractionDigits: n } = e;
|
|
194
194
|
if (!(t === void 0 && n === void 0)) return {
|
|
195
195
|
...t !== void 0 && { minimumFractionDigits: t },
|
|
@@ -197,7 +197,7 @@ var F = [
|
|
|
197
197
|
roundingMode: "trunc"
|
|
198
198
|
};
|
|
199
199
|
};
|
|
200
|
-
function
|
|
200
|
+
function H(e, t) {
|
|
201
201
|
if (typeof e != "bigint" && !Number.isFinite(e)) throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);
|
|
202
202
|
t = {
|
|
203
203
|
bits: !1,
|
|
@@ -206,28 +206,28 @@ function ae(e, t) {
|
|
|
206
206
|
nonBreakingSpace: !1,
|
|
207
207
|
...t
|
|
208
208
|
};
|
|
209
|
-
let n = t.bits ? t.binary ?
|
|
210
|
-
if (t.signed && i) return
|
|
209
|
+
let n = t.bits ? t.binary ? ne : L : t.binary ? I : F, r = t.space ? t.nonBreakingSpace ? "\xA0" : " " : "", i = typeof e == "number" ? e === 0 : e === 0n;
|
|
210
|
+
if (t.signed && i) return V(` 0${r}${n[0]}`, t.fixedWidth);
|
|
211
211
|
let a = e < 0, o = a ? "-" : t.signed ? "+" : "";
|
|
212
212
|
a && (e = -e);
|
|
213
|
-
let s =
|
|
214
|
-
if (e < 1) c = o +
|
|
213
|
+
let s = ie(t), c;
|
|
214
|
+
if (e < 1) c = o + R(e, t.locale, s) + r + n[0];
|
|
215
215
|
else {
|
|
216
|
-
let i = Math.min(Math.floor(t.binary ?
|
|
217
|
-
if (e =
|
|
216
|
+
let i = Math.min(Math.floor(t.binary ? re(e) / Math.log(1024) : z(e) / 3), n.length - 1);
|
|
217
|
+
if (e = B(e, (t.binary ? 1024 : 1e3) ** i), !s) {
|
|
218
218
|
let t = Math.max(3, Math.floor(e).toString().length);
|
|
219
219
|
e = e.toPrecision(t);
|
|
220
220
|
}
|
|
221
|
-
let a =
|
|
221
|
+
let a = R(Number(e), t.locale, s), l = n[i];
|
|
222
222
|
c = o + a + r + l;
|
|
223
223
|
}
|
|
224
|
-
return
|
|
224
|
+
return V(c, t.fixedWidth);
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
|
|
228
|
-
var
|
|
229
|
-
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117,
|
|
230
|
-
function
|
|
228
|
+
var ae = /* @__PURE__ */ t(((e) => {
|
|
229
|
+
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, ee = t ? Symbol.for("react.responder") : 60118, v = t ? Symbol.for("react.scope") : 60119;
|
|
230
|
+
function y(e) {
|
|
231
231
|
if (typeof e == "object" && e) {
|
|
232
232
|
var t = e.$$typeof;
|
|
233
233
|
switch (t) {
|
|
@@ -251,43 +251,43 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
return
|
|
254
|
+
function b(e) {
|
|
255
|
+
return y(e) === u;
|
|
256
256
|
}
|
|
257
257
|
e.AsyncMode = l, e.ConcurrentMode = u, e.ContextConsumer = c, e.ContextProvider = s, e.Element = n, e.ForwardRef = d, e.Fragment = i, e.Lazy = h, e.Memo = m, e.Portal = r, e.Profiler = o, e.StrictMode = a, e.Suspense = f, e.isAsyncMode = function(e) {
|
|
258
|
-
return
|
|
259
|
-
}, e.isConcurrentMode =
|
|
260
|
-
return
|
|
258
|
+
return b(e) || y(e) === l;
|
|
259
|
+
}, e.isConcurrentMode = b, e.isContextConsumer = function(e) {
|
|
260
|
+
return y(e) === c;
|
|
261
261
|
}, e.isContextProvider = function(e) {
|
|
262
|
-
return
|
|
262
|
+
return y(e) === s;
|
|
263
263
|
}, e.isElement = function(e) {
|
|
264
264
|
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
265
265
|
}, e.isForwardRef = function(e) {
|
|
266
|
-
return
|
|
266
|
+
return y(e) === d;
|
|
267
267
|
}, e.isFragment = function(e) {
|
|
268
|
-
return
|
|
268
|
+
return y(e) === i;
|
|
269
269
|
}, e.isLazy = function(e) {
|
|
270
|
-
return
|
|
270
|
+
return y(e) === h;
|
|
271
271
|
}, e.isMemo = function(e) {
|
|
272
|
-
return
|
|
272
|
+
return y(e) === m;
|
|
273
273
|
}, e.isPortal = function(e) {
|
|
274
|
-
return
|
|
274
|
+
return y(e) === r;
|
|
275
275
|
}, e.isProfiler = function(e) {
|
|
276
|
-
return
|
|
276
|
+
return y(e) === o;
|
|
277
277
|
}, e.isStrictMode = function(e) {
|
|
278
|
-
return
|
|
278
|
+
return y(e) === a;
|
|
279
279
|
}, e.isSuspense = function(e) {
|
|
280
|
-
return
|
|
280
|
+
return y(e) === f;
|
|
281
281
|
}, e.isValidElementType = function(e) {
|
|
282
|
-
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof ===
|
|
283
|
-
}, e.typeOf =
|
|
284
|
-
})), oe = /* @__PURE__ */
|
|
282
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === ee || e.$$typeof === v || e.$$typeof === g);
|
|
283
|
+
}, e.typeOf = y;
|
|
284
|
+
})), oe = /* @__PURE__ */ t(((e) => {
|
|
285
285
|
process.env.NODE_ENV !== "production" && (function() {
|
|
286
|
-
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117,
|
|
287
|
-
function
|
|
288
|
-
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof ===
|
|
286
|
+
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, ee = t ? Symbol.for("react.responder") : 60118, v = t ? Symbol.for("react.scope") : 60119;
|
|
287
|
+
function y(e) {
|
|
288
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === ee || e.$$typeof === v || e.$$typeof === g);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function b(e) {
|
|
291
291
|
if (typeof e == "object" && e) {
|
|
292
292
|
var t = e.$$typeof;
|
|
293
293
|
switch (t) {
|
|
@@ -315,51 +315,51 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
-
return
|
|
321
|
-
}
|
|
322
|
-
function te(e) {
|
|
323
|
-
return x(e) === u;
|
|
318
|
+
var x = l, S = u, C = c, te = s, w = n, T = d, E = i, D = h, O = m, k = r, A = o, j = a, M = f, N = !1;
|
|
319
|
+
function P(e) {
|
|
320
|
+
return N || (N = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), F(e) || b(e) === l;
|
|
324
321
|
}
|
|
325
|
-
function
|
|
326
|
-
return
|
|
322
|
+
function F(e) {
|
|
323
|
+
return b(e) === u;
|
|
327
324
|
}
|
|
328
325
|
function I(e) {
|
|
329
|
-
return
|
|
330
|
-
}
|
|
331
|
-
function re(e) {
|
|
332
|
-
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
326
|
+
return b(e) === c;
|
|
333
327
|
}
|
|
334
328
|
function L(e) {
|
|
335
|
-
return
|
|
329
|
+
return b(e) === s;
|
|
336
330
|
}
|
|
337
|
-
function
|
|
338
|
-
return
|
|
331
|
+
function ne(e) {
|
|
332
|
+
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
339
333
|
}
|
|
340
|
-
function
|
|
341
|
-
return
|
|
334
|
+
function R(e) {
|
|
335
|
+
return b(e) === d;
|
|
342
336
|
}
|
|
343
337
|
function z(e) {
|
|
344
|
-
return
|
|
338
|
+
return b(e) === i;
|
|
345
339
|
}
|
|
346
|
-
function
|
|
347
|
-
return
|
|
340
|
+
function re(e) {
|
|
341
|
+
return b(e) === h;
|
|
348
342
|
}
|
|
349
|
-
function
|
|
350
|
-
return
|
|
343
|
+
function B(e) {
|
|
344
|
+
return b(e) === m;
|
|
351
345
|
}
|
|
352
346
|
function V(e) {
|
|
353
|
-
return
|
|
347
|
+
return b(e) === r;
|
|
348
|
+
}
|
|
349
|
+
function ie(e) {
|
|
350
|
+
return b(e) === o;
|
|
351
|
+
}
|
|
352
|
+
function H(e) {
|
|
353
|
+
return b(e) === a;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
return
|
|
355
|
+
function ae(e) {
|
|
356
|
+
return b(e) === f;
|
|
357
357
|
}
|
|
358
|
-
e.AsyncMode =
|
|
358
|
+
e.AsyncMode = x, e.ConcurrentMode = S, e.ContextConsumer = C, e.ContextProvider = te, e.Element = w, e.ForwardRef = T, e.Fragment = E, e.Lazy = D, e.Memo = O, e.Portal = k, e.Profiler = A, e.StrictMode = j, e.Suspense = M, e.isAsyncMode = P, e.isConcurrentMode = F, e.isContextConsumer = I, e.isContextProvider = L, e.isElement = ne, e.isForwardRef = R, e.isFragment = z, e.isLazy = re, e.isMemo = B, e.isPortal = V, e.isProfiler = ie, e.isStrictMode = H, e.isSuspense = ae, e.isValidElementType = y, e.typeOf = b;
|
|
359
359
|
})();
|
|
360
|
-
})), se = /* @__PURE__ */
|
|
361
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
362
|
-
})),
|
|
360
|
+
})), se = /* @__PURE__ */ t(((e, t) => {
|
|
361
|
+
process.env.NODE_ENV === "production" ? t.exports = ae() : t.exports = oe();
|
|
362
|
+
})), U = /* @__PURE__ */ t(((e, t) => {
|
|
363
363
|
var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
364
364
|
function a(e) {
|
|
365
365
|
if (e == null) throw TypeError("Object.assign cannot be called with null or undefined");
|
|
@@ -392,14 +392,14 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
392
392
|
}
|
|
393
393
|
return s;
|
|
394
394
|
};
|
|
395
|
-
})),
|
|
395
|
+
})), W = /* @__PURE__ */ t(((e, t) => {
|
|
396
396
|
t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
397
|
-
})),
|
|
397
|
+
})), G = /* @__PURE__ */ t(((e, t) => {
|
|
398
398
|
t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
399
|
-
})),
|
|
399
|
+
})), ce = /* @__PURE__ */ t(((e, t) => {
|
|
400
400
|
var n = function() {};
|
|
401
401
|
if (process.env.NODE_ENV !== "production") {
|
|
402
|
-
var r =
|
|
402
|
+
var r = W(), i = {}, a = G();
|
|
403
403
|
n = function(e) {
|
|
404
404
|
var t = "Warning: " + e;
|
|
405
405
|
typeof console < "u" && console.error(t);
|
|
@@ -432,8 +432,8 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
432
432
|
o.resetWarningCache = function() {
|
|
433
433
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
434
434
|
}, t.exports = o;
|
|
435
|
-
})), le = /* @__PURE__ */
|
|
436
|
-
var n = se(), r =
|
|
435
|
+
})), le = /* @__PURE__ */ t(((e, t) => {
|
|
436
|
+
var n = se(), r = U(), i = W(), a = G(), o = ce(), s = function() {};
|
|
437
437
|
process.env.NODE_ENV !== "production" && (s = function(e) {
|
|
438
438
|
var t = "Warning: " + e;
|
|
439
439
|
typeof console < "u" && console.error(t);
|
|
@@ -459,17 +459,17 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
459
459
|
object: _("object"),
|
|
460
460
|
string: _("string"),
|
|
461
461
|
symbol: _("symbol"),
|
|
462
|
-
any:
|
|
463
|
-
arrayOf:
|
|
464
|
-
element:
|
|
465
|
-
elementType:
|
|
466
|
-
instanceOf:
|
|
467
|
-
node:
|
|
462
|
+
any: ee(),
|
|
463
|
+
arrayOf: v,
|
|
464
|
+
element: y(),
|
|
465
|
+
elementType: b(),
|
|
466
|
+
instanceOf: x,
|
|
467
|
+
node: w(),
|
|
468
468
|
objectOf: C,
|
|
469
|
-
oneOf:
|
|
470
|
-
oneOfType:
|
|
471
|
-
shape:
|
|
472
|
-
exact:
|
|
469
|
+
oneOf: S,
|
|
470
|
+
oneOfType: te,
|
|
471
|
+
shape: E,
|
|
472
|
+
exact: D
|
|
473
473
|
};
|
|
474
474
|
function m(e, t) {
|
|
475
475
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
@@ -498,23 +498,23 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
498
498
|
function _(e) {
|
|
499
499
|
function t(t, n, r, i, a, o) {
|
|
500
500
|
var s = t[n];
|
|
501
|
-
if (
|
|
502
|
-
var c =
|
|
501
|
+
if (A(s) !== e) {
|
|
502
|
+
var c = j(s);
|
|
503
503
|
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected ") + ("`" + e + "`."), { expectedType: e });
|
|
504
504
|
}
|
|
505
505
|
return null;
|
|
506
506
|
}
|
|
507
507
|
return g(t);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function ee() {
|
|
510
510
|
return g(c);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function v(e) {
|
|
513
513
|
function t(t, n, r, a, o) {
|
|
514
514
|
if (typeof e != "function") return new h("Property `" + o + "` of component `" + r + "` has invalid PropType notation inside arrayOf.");
|
|
515
515
|
var s = t[n];
|
|
516
516
|
if (!Array.isArray(s)) {
|
|
517
|
-
var c =
|
|
517
|
+
var c = A(s);
|
|
518
518
|
return new h("Invalid " + a + " `" + o + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected an array."));
|
|
519
519
|
}
|
|
520
520
|
for (var l = 0; l < s.length; l++) {
|
|
@@ -525,44 +525,44 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
525
525
|
}
|
|
526
526
|
return g(t);
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function y() {
|
|
529
529
|
function t(t, n, r, i, a) {
|
|
530
530
|
var o = t[n];
|
|
531
531
|
if (!e(o)) {
|
|
532
|
-
var s =
|
|
532
|
+
var s = A(o);
|
|
533
533
|
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement."));
|
|
534
534
|
}
|
|
535
535
|
return null;
|
|
536
536
|
}
|
|
537
537
|
return g(t);
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function b() {
|
|
540
540
|
function e(e, t, r, i, a) {
|
|
541
541
|
var o = e[t];
|
|
542
542
|
if (!n.isValidElementType(o)) {
|
|
543
|
-
var s =
|
|
543
|
+
var s = A(o);
|
|
544
544
|
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement type."));
|
|
545
545
|
}
|
|
546
546
|
return null;
|
|
547
547
|
}
|
|
548
548
|
return g(e);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function x(e) {
|
|
551
551
|
function t(t, n, r, i, a) {
|
|
552
552
|
if (!(t[n] instanceof e)) {
|
|
553
|
-
var o = e.name || f, s =
|
|
553
|
+
var o = e.name || f, s = N(t[n]);
|
|
554
554
|
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected ") + ("instance of `" + o + "`."));
|
|
555
555
|
}
|
|
556
556
|
return null;
|
|
557
557
|
}
|
|
558
558
|
return g(t);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function S(e) {
|
|
561
561
|
if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).") : s("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
562
562
|
function t(t, n, r, i, a) {
|
|
563
563
|
for (var o = t[n], s = 0; s < e.length; s++) if (m(o, e[s])) return null;
|
|
564
564
|
var c = JSON.stringify(e, function(e, t) {
|
|
565
|
-
return
|
|
565
|
+
return j(t) === "symbol" ? String(t) : t;
|
|
566
566
|
});
|
|
567
567
|
return new h("Invalid " + i + " `" + a + "` of value `" + String(o) + "` " + ("supplied to `" + r + "`, expected one of " + c + "."));
|
|
568
568
|
}
|
|
@@ -571,7 +571,7 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
571
571
|
function C(e) {
|
|
572
572
|
function t(t, n, r, o, s) {
|
|
573
573
|
if (typeof e != "function") return new h("Property `" + s + "` of component `" + r + "` has invalid PropType notation inside objectOf.");
|
|
574
|
-
var c = t[n], l =
|
|
574
|
+
var c = t[n], l = A(c);
|
|
575
575
|
if (l !== "object") return new h("Invalid " + o + " `" + s + "` of type " + ("`" + l + "` supplied to `" + r + "`, expected an object."));
|
|
576
576
|
for (var u in c) if (a(c, u)) {
|
|
577
577
|
var d = e(c, u, r, o, s + "." + u, i);
|
|
@@ -581,11 +581,11 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
581
581
|
}
|
|
582
582
|
return g(t);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function te(e) {
|
|
585
585
|
if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
586
586
|
for (var t = 0; t < e.length; t++) {
|
|
587
587
|
var n = e[t];
|
|
588
|
-
if (typeof n != "function") return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
588
|
+
if (typeof n != "function") return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(n) + " at index " + t + "."), c;
|
|
589
589
|
}
|
|
590
590
|
function r(t, n, r, o, s) {
|
|
591
591
|
for (var c = [], l = 0; l < e.length; l++) {
|
|
@@ -598,22 +598,22 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
598
598
|
}
|
|
599
599
|
return g(r);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function w() {
|
|
602
602
|
function e(e, t, n, r, i) {
|
|
603
|
-
return
|
|
603
|
+
return O(e[t]) ? null : new h("Invalid " + r + " `" + i + "` supplied to " + ("`" + n + "`, expected a ReactNode."));
|
|
604
604
|
}
|
|
605
605
|
return g(e);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function T(e, t, n, r, i) {
|
|
608
608
|
return new h((e || "React class") + ": " + t + " type `" + n + "." + r + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + i + "`.");
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function E(e) {
|
|
611
611
|
function t(t, n, r, a, o) {
|
|
612
|
-
var s = t[n], c =
|
|
612
|
+
var s = t[n], c = A(s);
|
|
613
613
|
if (c !== "object") return new h("Invalid " + a + " `" + o + "` of type `" + c + "` " + ("supplied to `" + r + "`, expected `object`."));
|
|
614
614
|
for (var l in e) {
|
|
615
615
|
var u = e[l];
|
|
616
|
-
if (typeof u != "function") return
|
|
616
|
+
if (typeof u != "function") return T(r, a, o, l, j(u));
|
|
617
617
|
var d = u(s, l, r, a, o + "." + l, i);
|
|
618
618
|
if (d) return d;
|
|
619
619
|
}
|
|
@@ -621,13 +621,13 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
621
621
|
}
|
|
622
622
|
return g(t);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function D(e) {
|
|
625
625
|
function t(t, n, o, s, c) {
|
|
626
|
-
var l = t[n], u =
|
|
626
|
+
var l = t[n], u = A(l);
|
|
627
627
|
if (u !== "object") return new h("Invalid " + s + " `" + c + "` of type `" + u + "` " + ("supplied to `" + o + "`, expected `object`."));
|
|
628
628
|
for (var d in r({}, t[n], e)) {
|
|
629
629
|
var f = e[d];
|
|
630
|
-
if (a(e, d) && typeof f != "function") return
|
|
630
|
+
if (a(e, d) && typeof f != "function") return T(o, s, c, d, j(f));
|
|
631
631
|
if (!f) return new h("Invalid " + s + " `" + c + "` key `" + d + "` supplied to `" + o + "`.\nBad object: " + JSON.stringify(t[n], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(e), null, " "));
|
|
632
632
|
var p = f(l, d, o, s, c + "." + d, i);
|
|
633
633
|
if (p) return p;
|
|
@@ -636,47 +636,47 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
636
636
|
}
|
|
637
637
|
return g(t);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function O(t) {
|
|
640
640
|
switch (typeof t) {
|
|
641
641
|
case "number":
|
|
642
642
|
case "string":
|
|
643
643
|
case "undefined": return !0;
|
|
644
644
|
case "boolean": return !t;
|
|
645
645
|
case "object":
|
|
646
|
-
if (Array.isArray(t)) return t.every(
|
|
646
|
+
if (Array.isArray(t)) return t.every(O);
|
|
647
647
|
if (t === null || e(t)) return !0;
|
|
648
648
|
var n = d(t);
|
|
649
649
|
if (n) {
|
|
650
650
|
var r = n.call(t), i;
|
|
651
651
|
if (n !== t.entries) {
|
|
652
|
-
for (; !(i = r.next()).done;) if (!
|
|
652
|
+
for (; !(i = r.next()).done;) if (!O(i.value)) return !1;
|
|
653
653
|
} else for (; !(i = r.next()).done;) {
|
|
654
654
|
var a = i.value;
|
|
655
|
-
if (a && !
|
|
655
|
+
if (a && !O(a[1])) return !1;
|
|
656
656
|
}
|
|
657
657
|
} else return !1;
|
|
658
658
|
return !0;
|
|
659
659
|
default: return !1;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function k(e, t) {
|
|
663
663
|
return e === "symbol" ? !0 : t ? t["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && t instanceof Symbol : !1;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function A(e) {
|
|
666
666
|
var t = typeof e;
|
|
667
|
-
return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" :
|
|
667
|
+
return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : k(t, e) ? "symbol" : t;
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function j(e) {
|
|
670
670
|
if (e == null) return "" + e;
|
|
671
|
-
var t =
|
|
671
|
+
var t = A(e);
|
|
672
672
|
if (t === "object") {
|
|
673
673
|
if (e instanceof Date) return "date";
|
|
674
674
|
if (e instanceof RegExp) return "regexp";
|
|
675
675
|
}
|
|
676
676
|
return t;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
var t =
|
|
678
|
+
function M(e) {
|
|
679
|
+
var t = j(e);
|
|
680
680
|
switch (t) {
|
|
681
681
|
case "array":
|
|
682
682
|
case "object": return "an " + t;
|
|
@@ -686,13 +686,13 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
686
686
|
default: return t;
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function N(e) {
|
|
690
690
|
return !e.constructor || !e.constructor.name ? f : e.constructor.name;
|
|
691
691
|
}
|
|
692
692
|
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
|
|
693
693
|
};
|
|
694
|
-
})), ue = /* @__PURE__ */
|
|
695
|
-
var n =
|
|
694
|
+
})), ue = /* @__PURE__ */ t(((e, t) => {
|
|
695
|
+
var n = W();
|
|
696
696
|
function r() {}
|
|
697
697
|
function i() {}
|
|
698
698
|
i.resetWarningCache = r, t.exports = function() {
|
|
@@ -731,7 +731,7 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
731
731
|
};
|
|
732
732
|
return a.PropTypes = a, a;
|
|
733
733
|
};
|
|
734
|
-
})), de = /* @__PURE__ */
|
|
734
|
+
})), de = /* @__PURE__ */ t(((e, t) => {
|
|
735
735
|
if (process.env.NODE_ENV !== "production") {
|
|
736
736
|
var n = se();
|
|
737
737
|
t.exports = le()(n.isElement, !0);
|
|
@@ -739,7 +739,7 @@ var V = /* @__PURE__ */ e(((e) => {
|
|
|
739
739
|
}));
|
|
740
740
|
//#endregion
|
|
741
741
|
//#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
742
|
-
function
|
|
742
|
+
function K(e, t, n, r) {
|
|
743
743
|
function i(e) {
|
|
744
744
|
return e instanceof n ? e : new n(function(t) {
|
|
745
745
|
t(e);
|
|
@@ -768,7 +768,7 @@ function G(e, t, n, r) {
|
|
|
768
768
|
}
|
|
769
769
|
//#endregion
|
|
770
770
|
//#region ../../node_modules/.pnpm/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file.js
|
|
771
|
-
var
|
|
771
|
+
var fe = new Map([
|
|
772
772
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
773
773
|
["3dml", "text/vnd.in3d.3dml"],
|
|
774
774
|
["3ds", "image/x-3ds"],
|
|
@@ -1971,17 +1971,17 @@ var K = new Map([
|
|
|
1971
1971
|
]);
|
|
1972
1972
|
function q(e, t, n) {
|
|
1973
1973
|
let r = J(e), { webkitRelativePath: i } = e, a = typeof t == "string" ? t : typeof i == "string" && i.length > 0 ? i : `./${e.name}`;
|
|
1974
|
-
return typeof r.path != "string" &&
|
|
1974
|
+
return typeof r.path != "string" && pe(r, "path", a), n !== void 0 && Object.defineProperty(r, "handle", {
|
|
1975
1975
|
value: n,
|
|
1976
1976
|
writable: !1,
|
|
1977
1977
|
configurable: !1,
|
|
1978
1978
|
enumerable: !0
|
|
1979
|
-
}),
|
|
1979
|
+
}), pe(r, "relativePath", a), r;
|
|
1980
1980
|
}
|
|
1981
1981
|
function J(e) {
|
|
1982
1982
|
let { name: t } = e;
|
|
1983
1983
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
1984
|
-
let n = t.split(".").pop().toLowerCase(), r =
|
|
1984
|
+
let n = t.split(".").pop().toLowerCase(), r = fe.get(n);
|
|
1985
1985
|
r && Object.defineProperty(e, "type", {
|
|
1986
1986
|
value: r,
|
|
1987
1987
|
writable: !1,
|
|
@@ -1991,7 +1991,7 @@ function J(e) {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
return e;
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function pe(e, t, n) {
|
|
1995
1995
|
Object.defineProperty(e, t, {
|
|
1996
1996
|
value: n,
|
|
1997
1997
|
writable: !1,
|
|
@@ -2001,42 +2001,42 @@ function Y(e, t, n) {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
//#endregion
|
|
2003
2003
|
//#region ../../node_modules/.pnpm/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file-selector.js
|
|
2004
|
-
var
|
|
2005
|
-
function pe(e) {
|
|
2006
|
-
return G(this, void 0, void 0, function* () {
|
|
2007
|
-
return ge(e) && me(e.dataTransfer) ? ye(e.dataTransfer, e.type) : he(e) ? _e(e) : Array.isArray(e) && e.every((e) => "getFile" in e && typeof e.getFile == "function") ? ve(e) : [];
|
|
2008
|
-
});
|
|
2009
|
-
}
|
|
2010
|
-
function me(e) {
|
|
2011
|
-
return ge(e);
|
|
2012
|
-
}
|
|
2004
|
+
var me = [".DS_Store", "Thumbs.db"];
|
|
2013
2005
|
function he(e) {
|
|
2014
|
-
return
|
|
2006
|
+
return K(this, void 0, void 0, function* () {
|
|
2007
|
+
return ve(e) && ge(e.dataTransfer) ? xe(e.dataTransfer, e.type) : _e(e) ? ye(e) : Array.isArray(e) && e.every((e) => "getFile" in e && typeof e.getFile == "function") ? be(e) : [];
|
|
2008
|
+
});
|
|
2015
2009
|
}
|
|
2016
2010
|
function ge(e) {
|
|
2017
|
-
return
|
|
2011
|
+
return ve(e);
|
|
2018
2012
|
}
|
|
2019
2013
|
function _e(e) {
|
|
2020
|
-
return
|
|
2014
|
+
return ve(e) && ve(e.target);
|
|
2021
2015
|
}
|
|
2022
2016
|
function ve(e) {
|
|
2023
|
-
return
|
|
2017
|
+
return typeof e == "object" && !!e;
|
|
2018
|
+
}
|
|
2019
|
+
function ye(e) {
|
|
2020
|
+
return Ce(e.target.files).map((e) => q(e));
|
|
2021
|
+
}
|
|
2022
|
+
function be(e) {
|
|
2023
|
+
return K(this, void 0, void 0, function* () {
|
|
2024
2024
|
return (yield Promise.all(e.map((e) => e.getFile()))).map((e) => q(e));
|
|
2025
2025
|
});
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2028
|
-
return
|
|
2027
|
+
function xe(e, t) {
|
|
2028
|
+
return K(this, void 0, void 0, function* () {
|
|
2029
2029
|
if (e.items) {
|
|
2030
|
-
let n =
|
|
2031
|
-
return t === "drop" ?
|
|
2030
|
+
let n = Ce(e.items).filter((e) => e.kind === "file");
|
|
2031
|
+
return t === "drop" ? Se(Te(yield Promise.all(n.map(we)))) : n;
|
|
2032
2032
|
}
|
|
2033
|
-
return
|
|
2033
|
+
return Se(Ce(e.files).map((e) => q(e)));
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2037
|
-
return e.filter((e) =>
|
|
2036
|
+
function Se(e) {
|
|
2037
|
+
return e.filter((e) => me.indexOf(e.name) === -1);
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function Ce(e) {
|
|
2040
2040
|
if (e === null) return [];
|
|
2041
2041
|
let t = [];
|
|
2042
2042
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -2045,16 +2045,16 @@ function xe(e) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
return t;
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2049
|
-
if (typeof e.webkitGetAsEntry != "function") return
|
|
2048
|
+
function we(e) {
|
|
2049
|
+
if (typeof e.webkitGetAsEntry != "function") return Ee(e);
|
|
2050
2050
|
let t = e.webkitGetAsEntry();
|
|
2051
|
-
return t && t.isDirectory ?
|
|
2051
|
+
return t && t.isDirectory ? Oe(t) : Ee(e, t);
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2054
|
-
return e.reduce((e, t) => [...e, ...Array.isArray(t) ?
|
|
2053
|
+
function Te(e) {
|
|
2054
|
+
return e.reduce((e, t) => [...e, ...Array.isArray(t) ? Te(t) : [t]], []);
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2057
|
-
return
|
|
2056
|
+
function Ee(e, t) {
|
|
2057
|
+
return K(this, void 0, void 0, function* () {
|
|
2058
2058
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2059
2059
|
let t = yield e.getAsFileSystemHandle();
|
|
2060
2060
|
if (t === null) throw Error(`${e} is not a File`);
|
|
@@ -2068,19 +2068,19 @@ function we(e, t) {
|
|
|
2068
2068
|
return q(n, t?.fullPath ?? void 0);
|
|
2069
2069
|
});
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2072
|
-
return
|
|
2073
|
-
return e.isDirectory ?
|
|
2071
|
+
function De(e) {
|
|
2072
|
+
return K(this, void 0, void 0, function* () {
|
|
2073
|
+
return e.isDirectory ? Oe(e) : ke(e);
|
|
2074
2074
|
});
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function Oe(e) {
|
|
2077
2077
|
let t = e.createReader();
|
|
2078
2078
|
return new Promise((e, n) => {
|
|
2079
2079
|
let r = [];
|
|
2080
2080
|
function i() {
|
|
2081
|
-
t.readEntries((t) =>
|
|
2081
|
+
t.readEntries((t) => K(this, void 0, void 0, function* () {
|
|
2082
2082
|
if (t.length) {
|
|
2083
|
-
let e = Promise.all(t.map(
|
|
2083
|
+
let e = Promise.all(t.map(De));
|
|
2084
2084
|
r.push(e), i();
|
|
2085
2085
|
} else try {
|
|
2086
2086
|
e(yield Promise.all(r));
|
|
@@ -2094,8 +2094,8 @@ function Ee(e) {
|
|
|
2094
2094
|
i();
|
|
2095
2095
|
});
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2098
|
-
return
|
|
2097
|
+
function ke(e) {
|
|
2098
|
+
return K(this, void 0, void 0, function* () {
|
|
2099
2099
|
return new Promise((t, n) => {
|
|
2100
2100
|
e.file((n) => {
|
|
2101
2101
|
t(q(n, e.fullPath));
|
|
@@ -2107,7 +2107,7 @@ function De(e) {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
//#endregion
|
|
2109
2109
|
//#region ../../node_modules/.pnpm/attr-accept@2.2.5/node_modules/attr-accept/dist/es/index.js
|
|
2110
|
-
var
|
|
2110
|
+
var Ae = /* @__PURE__ */ t(((e) => {
|
|
2111
2111
|
e.__esModule = !0, e.default = function(e, t) {
|
|
2112
2112
|
if (e && t) {
|
|
2113
2113
|
var n = Array.isArray(t) ? t : t.split(",");
|
|
@@ -2120,20 +2120,20 @@ var Oe = /* @__PURE__ */ e(((e) => {
|
|
|
2120
2120
|
}
|
|
2121
2121
|
return !0;
|
|
2122
2122
|
};
|
|
2123
|
-
})),
|
|
2124
|
-
function
|
|
2125
|
-
return
|
|
2123
|
+
})), Y = /* @__PURE__ */ e(de()), je = /* @__PURE__ */ e(Ae());
|
|
2124
|
+
function Me(e) {
|
|
2125
|
+
return Fe(e) || Pe(e) || Be(e) || Ne();
|
|
2126
2126
|
}
|
|
2127
|
-
function
|
|
2127
|
+
function Ne() {
|
|
2128
2128
|
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2129
2129
|
}
|
|
2130
|
-
function
|
|
2130
|
+
function Pe(e) {
|
|
2131
2131
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2134
|
-
if (Array.isArray(e)) return
|
|
2133
|
+
function Fe(e) {
|
|
2134
|
+
if (Array.isArray(e)) return Ve(e);
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function Ie(e, t) {
|
|
2137
2137
|
var n = Object.keys(e);
|
|
2138
2138
|
if (Object.getOwnPropertySymbols) {
|
|
2139
2139
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2143,18 +2143,18 @@ function Pe(e, t) {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
return n;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Le(e) {
|
|
2147
2147
|
for (var t = 1; t < arguments.length; t++) {
|
|
2148
2148
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2149
|
-
t % 2 ?
|
|
2150
|
-
|
|
2151
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2149
|
+
t % 2 ? Ie(Object(n), !0).forEach(function(t) {
|
|
2150
|
+
Re(e, t, n[t]);
|
|
2151
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ie(Object(n)).forEach(function(t) {
|
|
2152
2152
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2153
2153
|
});
|
|
2154
2154
|
}
|
|
2155
2155
|
return e;
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2157
|
+
function Re(e, t, n) {
|
|
2158
2158
|
return t in e ? Object.defineProperty(e, t, {
|
|
2159
2159
|
value: n,
|
|
2160
2160
|
enumerable: !0,
|
|
@@ -2162,26 +2162,26 @@ function Ie(e, t, n) {
|
|
|
2162
2162
|
writable: !0
|
|
2163
2163
|
}) : e[t] = n, e;
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2166
|
-
return
|
|
2165
|
+
function X(e, t) {
|
|
2166
|
+
return Ue(e) || He(e, t) || Be(e, t) || ze();
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function ze() {
|
|
2169
2169
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function Be(e, t) {
|
|
2172
2172
|
if (e) {
|
|
2173
|
-
if (typeof e == "string") return
|
|
2173
|
+
if (typeof e == "string") return Ve(e, t);
|
|
2174
2174
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2175
2175
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
2176
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
2176
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Ve(e, t);
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function Ve(e, t) {
|
|
2180
2180
|
(t == null || t > e.length) && (t = e.length);
|
|
2181
2181
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2182
2182
|
return r;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function He(e, t) {
|
|
2185
2185
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2186
2186
|
if (n != null) {
|
|
2187
2187
|
var r = [], i = !0, a = !1, o, s;
|
|
@@ -2199,124 +2199,124 @@ function Ve(e, t) {
|
|
|
2199
2199
|
return r;
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function Ue(e) {
|
|
2203
2203
|
if (Array.isArray(e)) return e;
|
|
2204
2204
|
}
|
|
2205
|
-
var
|
|
2205
|
+
var We = typeof je.default == "function" ? je.default : je.default.default, Ge = "file-invalid-type", Ke = "file-too-large", qe = "file-too-small", Je = "too-many-files", Ye = function() {
|
|
2206
2206
|
var e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "").split(",");
|
|
2207
2207
|
return {
|
|
2208
|
-
code:
|
|
2208
|
+
code: Ge,
|
|
2209
2209
|
message: `File type must be ${e.length > 1 ? `one of ${e.join(", ")}` : e[0]}`
|
|
2210
2210
|
};
|
|
2211
|
-
},
|
|
2211
|
+
}, Xe = function(e) {
|
|
2212
2212
|
return {
|
|
2213
|
-
code:
|
|
2213
|
+
code: Ke,
|
|
2214
2214
|
message: `File is larger than ${e} ${e === 1 ? "byte" : "bytes"}`
|
|
2215
2215
|
};
|
|
2216
|
-
},
|
|
2216
|
+
}, Ze = function(e) {
|
|
2217
2217
|
return {
|
|
2218
|
-
code:
|
|
2218
|
+
code: qe,
|
|
2219
2219
|
message: `File is smaller than ${e} ${e === 1 ? "byte" : "bytes"}`
|
|
2220
2220
|
};
|
|
2221
|
-
},
|
|
2222
|
-
code:
|
|
2221
|
+
}, Qe = {
|
|
2222
|
+
code: Je,
|
|
2223
2223
|
message: "Too many files"
|
|
2224
2224
|
};
|
|
2225
|
-
function
|
|
2225
|
+
function $e(e) {
|
|
2226
2226
|
return e.type === "" && typeof e.getAsFile == "function";
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2229
|
-
var n = e.type === "application/x-moz-file" ||
|
|
2230
|
-
return [n, n ? null :
|
|
2228
|
+
function et(e, t) {
|
|
2229
|
+
var n = e.type === "application/x-moz-file" || We(e, t) || $e(e);
|
|
2230
|
+
return [n, n ? null : Ye(t)];
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function tt(e, t, n) {
|
|
2233
2233
|
if (Z(e.size)) {
|
|
2234
2234
|
if (Z(t) && Z(n)) {
|
|
2235
|
-
if (e.size > n) return [!1,
|
|
2236
|
-
if (e.size < t) return [!1,
|
|
2237
|
-
} else if (Z(t) && e.size < t) return [!1,
|
|
2238
|
-
else if (Z(n) && e.size > n) return [!1,
|
|
2235
|
+
if (e.size > n) return [!1, Xe(n)];
|
|
2236
|
+
if (e.size < t) return [!1, Ze(t)];
|
|
2237
|
+
} else if (Z(t) && e.size < t) return [!1, Ze(t)];
|
|
2238
|
+
else if (Z(n) && e.size > n) return [!1, Xe(n)];
|
|
2239
2239
|
}
|
|
2240
2240
|
return [!0, null];
|
|
2241
2241
|
}
|
|
2242
2242
|
function Z(e) {
|
|
2243
2243
|
return e != null;
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function nt(e) {
|
|
2246
2246
|
var t = e.files, n = e.accept, r = e.minSize, i = e.maxSize, a = e.multiple, o = e.maxFiles, s = e.validator;
|
|
2247
2247
|
return !a && t.length > 1 || a && o >= 1 && t.length > o ? !1 : t.every(function(e) {
|
|
2248
|
-
var t =
|
|
2248
|
+
var t = X(et(e, n), 1)[0], a = X(tt(e, r, i), 1)[0], o = s ? s(e) : null;
|
|
2249
2249
|
return t && a && !o;
|
|
2250
2250
|
});
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function rt(e) {
|
|
2253
2253
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : e.cancelBubble === void 0 ? !1 : e.cancelBubble;
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function it(e) {
|
|
2256
2256
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(e) {
|
|
2257
2257
|
return e === "Files" || e === "application/x-moz-file";
|
|
2258
2258
|
}) : !!e.target && !!e.target.files;
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function at(e) {
|
|
2261
2261
|
e.preventDefault();
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function ot(e) {
|
|
2264
2264
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2266
|
+
function st(e) {
|
|
2267
2267
|
return e.indexOf("Edge/") !== -1;
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function ct() {
|
|
2270
2270
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2271
|
-
return
|
|
2271
|
+
return ot(e) || st(e);
|
|
2272
2272
|
}
|
|
2273
2273
|
function Q() {
|
|
2274
2274
|
var e = [...arguments];
|
|
2275
2275
|
return function(t) {
|
|
2276
2276
|
var n = [...arguments].slice(1);
|
|
2277
2277
|
return e.some(function(e) {
|
|
2278
|
-
return !
|
|
2278
|
+
return !rt(t) && e && e.apply(void 0, [t].concat(n)), rt(t);
|
|
2279
2279
|
});
|
|
2280
2280
|
};
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function lt() {
|
|
2283
2283
|
return "showOpenFilePicker" in window;
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2285
|
+
function ut(e) {
|
|
2286
2286
|
return Z(e) ? [{
|
|
2287
2287
|
description: "Files",
|
|
2288
2288
|
accept: Object.entries(e).filter(function(e) {
|
|
2289
|
-
var t =
|
|
2290
|
-
return
|
|
2289
|
+
var t = X(e, 2), n = t[0], r = t[1], i = !0;
|
|
2290
|
+
return mt(n) || (console.warn(`Skipped "${n}" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.`), i = !1), (!Array.isArray(r) || !r.every(ht)) && (console.warn(`Skipped "${n}" because an invalid file extension was provided.`), i = !1), i;
|
|
2291
2291
|
}).reduce(function(e, t) {
|
|
2292
|
-
var n =
|
|
2293
|
-
return
|
|
2292
|
+
var n = X(t, 2), r = n[0], i = n[1];
|
|
2293
|
+
return Le(Le({}, e), {}, Re({}, r, i));
|
|
2294
2294
|
}, {})
|
|
2295
2295
|
}] : e;
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2297
|
+
function dt(e) {
|
|
2298
2298
|
if (Z(e)) return Object.entries(e).reduce(function(e, t) {
|
|
2299
|
-
var n =
|
|
2300
|
-
return [].concat(
|
|
2299
|
+
var n = X(t, 2), r = n[0], i = n[1];
|
|
2300
|
+
return [].concat(Me(e), [r], Me(i));
|
|
2301
2301
|
}, []).filter(function(e) {
|
|
2302
|
-
return
|
|
2302
|
+
return mt(e) || ht(e);
|
|
2303
2303
|
}).join(",");
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2305
|
+
function ft(e) {
|
|
2306
2306
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function pt(e) {
|
|
2309
2309
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2310
2310
|
}
|
|
2311
|
-
function
|
|
2311
|
+
function mt(e) {
|
|
2312
2312
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function ht(e) {
|
|
2315
2315
|
return /^.*\.[\w]+$/.test(e);
|
|
2316
2316
|
}
|
|
2317
2317
|
//#endregion
|
|
2318
2318
|
//#region ../../node_modules/.pnpm/react-dropzone@15.0.0_react@19.2.3/node_modules/react-dropzone/dist/es/index.js
|
|
2319
|
-
var
|
|
2319
|
+
var gt = ["children"], _t = ["open"], vt = [
|
|
2320
2320
|
"refKey",
|
|
2321
2321
|
"role",
|
|
2322
2322
|
"onKeyDown",
|
|
@@ -2327,43 +2327,43 @@ var ht = ["children"], gt = ["open"], _t = [
|
|
|
2327
2327
|
"onDragOver",
|
|
2328
2328
|
"onDragLeave",
|
|
2329
2329
|
"onDrop"
|
|
2330
|
-
],
|
|
2330
|
+
], yt = [
|
|
2331
2331
|
"refKey",
|
|
2332
2332
|
"onChange",
|
|
2333
2333
|
"onClick"
|
|
2334
2334
|
];
|
|
2335
|
-
function
|
|
2336
|
-
return
|
|
2335
|
+
function bt(e) {
|
|
2336
|
+
return Ct(e) || St(e) || Et(e) || xt();
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function xt() {
|
|
2339
2339
|
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function St(e) {
|
|
2342
2342
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2345
|
-
if (Array.isArray(e)) return
|
|
2344
|
+
function Ct(e) {
|
|
2345
|
+
if (Array.isArray(e)) return Dt(e);
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2348
|
-
return
|
|
2347
|
+
function wt(e, t) {
|
|
2348
|
+
return kt(e) || Ot(e, t) || Et(e, t) || Tt();
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function Tt() {
|
|
2351
2351
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Et(e, t) {
|
|
2354
2354
|
if (e) {
|
|
2355
|
-
if (typeof e == "string") return
|
|
2355
|
+
if (typeof e == "string") return Dt(e, t);
|
|
2356
2356
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2357
2357
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
2358
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
2358
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Dt(e, t);
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function Dt(e, t) {
|
|
2362
2362
|
(t == null || t > e.length) && (t = e.length);
|
|
2363
2363
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2364
2364
|
return r;
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function Ot(e, t) {
|
|
2367
2367
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2368
2368
|
if (n != null) {
|
|
2369
2369
|
var r = [], i = !0, a = !1, o, s;
|
|
@@ -2381,10 +2381,10 @@ function Dt(e, t) {
|
|
|
2381
2381
|
return r;
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function kt(e) {
|
|
2385
2385
|
if (Array.isArray(e)) return e;
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function At(e, t) {
|
|
2388
2388
|
var n = Object.keys(e);
|
|
2389
2389
|
if (Object.getOwnPropertySymbols) {
|
|
2390
2390
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2397,15 +2397,15 @@ function kt(e, t) {
|
|
|
2397
2397
|
function $(e) {
|
|
2398
2398
|
for (var t = 1; t < arguments.length; t++) {
|
|
2399
2399
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2400
|
-
t % 2 ?
|
|
2401
|
-
|
|
2402
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2400
|
+
t % 2 ? At(Object(n), !0).forEach(function(t) {
|
|
2401
|
+
jt(e, t, n[t]);
|
|
2402
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : At(Object(n)).forEach(function(t) {
|
|
2403
2403
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2404
2404
|
});
|
|
2405
2405
|
}
|
|
2406
2406
|
return e;
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function jt(e, t, n) {
|
|
2409
2409
|
return t in e ? Object.defineProperty(e, t, {
|
|
2410
2410
|
value: n,
|
|
2411
2411
|
enumerable: !0,
|
|
@@ -2413,31 +2413,31 @@ function At(e, t, n) {
|
|
|
2413
2413
|
writable: !0
|
|
2414
2414
|
}) : e[t] = n, e;
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function Mt(e, t) {
|
|
2417
2417
|
if (e == null) return {};
|
|
2418
|
-
var n =
|
|
2418
|
+
var n = Nt(e, t), r, i;
|
|
2419
2419
|
if (Object.getOwnPropertySymbols) {
|
|
2420
2420
|
var a = Object.getOwnPropertySymbols(e);
|
|
2421
2421
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2422
2422
|
}
|
|
2423
2423
|
return n;
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function Nt(e, t) {
|
|
2426
2426
|
if (e == null) return {};
|
|
2427
2427
|
var n = {}, r = Object.keys(e), i, a;
|
|
2428
2428
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2429
2429
|
return n;
|
|
2430
2430
|
}
|
|
2431
|
-
var
|
|
2432
|
-
var n = e.children, r =
|
|
2433
|
-
return
|
|
2431
|
+
var Pt = /* @__PURE__ */ f(function(e, t) {
|
|
2432
|
+
var n = e.children, r = Lt(Mt(e, gt)), i = r.open, a = Mt(r, _t);
|
|
2433
|
+
return g(t, function() {
|
|
2434
2434
|
return { open: i };
|
|
2435
2435
|
}, [i]), /* @__PURE__ */ c.createElement(l, null, n($($({}, a), {}, { open: i })));
|
|
2436
2436
|
});
|
|
2437
|
-
|
|
2438
|
-
var
|
|
2437
|
+
Pt.displayName = "Dropzone";
|
|
2438
|
+
var Ft = {
|
|
2439
2439
|
disabled: !1,
|
|
2440
|
-
getFilesFromEvent:
|
|
2440
|
+
getFilesFromEvent: he,
|
|
2441
2441
|
maxSize: Infinity,
|
|
2442
2442
|
minSize: 0,
|
|
2443
2443
|
multiple: !0,
|
|
@@ -2451,34 +2451,34 @@ var Pt = {
|
|
|
2451
2451
|
useFsAccessApi: !1,
|
|
2452
2452
|
autoFocus: !1
|
|
2453
2453
|
};
|
|
2454
|
-
|
|
2455
|
-
children:
|
|
2456
|
-
accept:
|
|
2457
|
-
multiple:
|
|
2458
|
-
preventDropOnDocument:
|
|
2459
|
-
noClick:
|
|
2460
|
-
noKeyboard:
|
|
2461
|
-
noDrag:
|
|
2462
|
-
noDragEventsBubbling:
|
|
2463
|
-
minSize:
|
|
2464
|
-
maxSize:
|
|
2465
|
-
maxFiles:
|
|
2466
|
-
disabled:
|
|
2467
|
-
getFilesFromEvent:
|
|
2468
|
-
onFileDialogCancel:
|
|
2469
|
-
onFileDialogOpen:
|
|
2470
|
-
useFsAccessApi:
|
|
2471
|
-
autoFocus:
|
|
2472
|
-
onDragEnter:
|
|
2473
|
-
onDragLeave:
|
|
2474
|
-
onDragOver:
|
|
2475
|
-
onDrop:
|
|
2476
|
-
onDropAccepted:
|
|
2477
|
-
onDropRejected:
|
|
2478
|
-
onError:
|
|
2479
|
-
validator:
|
|
2454
|
+
Pt.defaultProps = Ft, Pt.propTypes = {
|
|
2455
|
+
children: Y.default.func,
|
|
2456
|
+
accept: Y.default.objectOf(Y.default.arrayOf(Y.default.string)),
|
|
2457
|
+
multiple: Y.default.bool,
|
|
2458
|
+
preventDropOnDocument: Y.default.bool,
|
|
2459
|
+
noClick: Y.default.bool,
|
|
2460
|
+
noKeyboard: Y.default.bool,
|
|
2461
|
+
noDrag: Y.default.bool,
|
|
2462
|
+
noDragEventsBubbling: Y.default.bool,
|
|
2463
|
+
minSize: Y.default.number,
|
|
2464
|
+
maxSize: Y.default.number,
|
|
2465
|
+
maxFiles: Y.default.number,
|
|
2466
|
+
disabled: Y.default.bool,
|
|
2467
|
+
getFilesFromEvent: Y.default.func,
|
|
2468
|
+
onFileDialogCancel: Y.default.func,
|
|
2469
|
+
onFileDialogOpen: Y.default.func,
|
|
2470
|
+
useFsAccessApi: Y.default.bool,
|
|
2471
|
+
autoFocus: Y.default.bool,
|
|
2472
|
+
onDragEnter: Y.default.func,
|
|
2473
|
+
onDragLeave: Y.default.func,
|
|
2474
|
+
onDragOver: Y.default.func,
|
|
2475
|
+
onDrop: Y.default.func,
|
|
2476
|
+
onDropAccepted: Y.default.func,
|
|
2477
|
+
onDropRejected: Y.default.func,
|
|
2478
|
+
onError: Y.default.func,
|
|
2479
|
+
validator: Y.default.func
|
|
2480
2480
|
};
|
|
2481
|
-
var
|
|
2481
|
+
var It = {
|
|
2482
2482
|
isFocused: !1,
|
|
2483
2483
|
isFileDialogActive: !1,
|
|
2484
2484
|
isDragActive: !1,
|
|
@@ -2488,57 +2488,57 @@ var Ft = {
|
|
|
2488
2488
|
acceptedFiles: [],
|
|
2489
2489
|
fileRejections: []
|
|
2490
2490
|
};
|
|
2491
|
-
function
|
|
2492
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = $($({},
|
|
2491
|
+
function Lt() {
|
|
2492
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = $($({}, Ft), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, l = t.onDragEnter, u = t.onDragLeave, d = t.onDragOver, f = t.onDrop, m = t.onDropAccepted, g = t.onDropRejected, y = t.onFileDialogCancel, b = t.onFileDialogOpen, x = t.useFsAccessApi, S = t.autoFocus, C = t.preventDropOnDocument, te = t.noClick, w = t.noKeyboard, T = t.noDrag, E = t.noDragEventsBubbling, D = t.onError, O = t.validator, k = _(function() {
|
|
2493
|
+
return dt(n);
|
|
2494
|
+
}, [n]), A = _(function() {
|
|
2493
2495
|
return ut(n);
|
|
2494
|
-
}, [n]), j =
|
|
2495
|
-
return
|
|
2496
|
-
}, [
|
|
2497
|
-
return typeof
|
|
2498
|
-
}, [
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
!R.current && L && setTimeout(function() {
|
|
2502
|
-
F.current && (F.current.files.length || (I({ type: "closeDialog" }), N()));
|
|
2496
|
+
}, [n]), j = _(function() {
|
|
2497
|
+
return typeof b == "function" ? b : zt;
|
|
2498
|
+
}, [b]), M = _(function() {
|
|
2499
|
+
return typeof y == "function" ? y : zt;
|
|
2500
|
+
}, [y]), N = v(null), P = v(null), F = wt(ee(Rt, It), 2), I = F[0], L = F[1], ne = I.isFocused, R = I.isFileDialogActive, z = v(typeof window < "u" && window.isSecureContext && x && lt()), re = function() {
|
|
2501
|
+
!z.current && R && setTimeout(function() {
|
|
2502
|
+
P.current && (P.current.files.length || (L({ type: "closeDialog" }), M()));
|
|
2503
2503
|
}, 300);
|
|
2504
2504
|
};
|
|
2505
|
-
|
|
2506
|
-
return window.addEventListener("focus",
|
|
2507
|
-
window.removeEventListener("focus",
|
|
2505
|
+
h(function() {
|
|
2506
|
+
return window.addEventListener("focus", re, !1), function() {
|
|
2507
|
+
window.removeEventListener("focus", re, !1);
|
|
2508
2508
|
};
|
|
2509
2509
|
}, [
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2510
|
+
P,
|
|
2511
|
+
R,
|
|
2512
|
+
M,
|
|
2513
|
+
z
|
|
2514
2514
|
]);
|
|
2515
|
-
var
|
|
2516
|
-
|
|
2515
|
+
var B = v([]), V = v([]), ie = function(e) {
|
|
2516
|
+
N.current && N.current.contains(e.target) || (e.preventDefault(), B.current = []);
|
|
2517
2517
|
};
|
|
2518
|
-
|
|
2519
|
-
return C && (document.addEventListener("dragover",
|
|
2520
|
-
C && (document.removeEventListener("dragover",
|
|
2518
|
+
h(function() {
|
|
2519
|
+
return C && (document.addEventListener("dragover", at, !1), document.addEventListener("drop", ie, !1)), function() {
|
|
2520
|
+
C && (document.removeEventListener("dragover", at), document.removeEventListener("drop", ie));
|
|
2521
2521
|
};
|
|
2522
|
-
}, [
|
|
2522
|
+
}, [N, C]), h(function() {
|
|
2523
2523
|
var e = function(e) {
|
|
2524
|
-
|
|
2524
|
+
V.current = [].concat(bt(V.current), [e.target]), it(e) && L({
|
|
2525
2525
|
isDragGlobal: !0,
|
|
2526
2526
|
type: "setDragGlobal"
|
|
2527
2527
|
});
|
|
2528
2528
|
}, t = function(e) {
|
|
2529
|
-
|
|
2529
|
+
V.current = V.current.filter(function(t) {
|
|
2530
2530
|
return t !== e.target && t !== null;
|
|
2531
|
-
}), !(
|
|
2531
|
+
}), !(V.current.length > 0) && L({
|
|
2532
2532
|
isDragGlobal: !1,
|
|
2533
2533
|
type: "setDragGlobal"
|
|
2534
2534
|
});
|
|
2535
2535
|
}, n = function() {
|
|
2536
|
-
|
|
2536
|
+
V.current = [], L({
|
|
2537
2537
|
isDragGlobal: !1,
|
|
2538
2538
|
type: "setDragGlobal"
|
|
2539
2539
|
});
|
|
2540
2540
|
}, r = function() {
|
|
2541
|
-
|
|
2541
|
+
V.current = [], L({
|
|
2542
2542
|
isDragGlobal: !1,
|
|
2543
2543
|
type: "setDragGlobal"
|
|
2544
2544
|
});
|
|
@@ -2546,28 +2546,28 @@ function It() {
|
|
|
2546
2546
|
return document.addEventListener("dragenter", e, !1), document.addEventListener("dragleave", t, !1), document.addEventListener("dragend", n, !1), document.addEventListener("drop", r, !1), function() {
|
|
2547
2547
|
document.removeEventListener("dragenter", e), document.removeEventListener("dragleave", t), document.removeEventListener("dragend", n), document.removeEventListener("drop", r);
|
|
2548
2548
|
};
|
|
2549
|
-
}, [
|
|
2550
|
-
return !r &&
|
|
2549
|
+
}, [N]), h(function() {
|
|
2550
|
+
return !r && S && N.current && N.current.focus(), function() {};
|
|
2551
2551
|
}, [
|
|
2552
|
-
|
|
2553
|
-
|
|
2552
|
+
N,
|
|
2553
|
+
S,
|
|
2554
2554
|
r
|
|
2555
2555
|
]);
|
|
2556
|
-
var
|
|
2557
|
-
|
|
2558
|
-
}, [
|
|
2559
|
-
e.preventDefault(), e.persist(),
|
|
2560
|
-
if (!(
|
|
2561
|
-
var n = t.length, r = n > 0 &&
|
|
2556
|
+
var H = p(function(e) {
|
|
2557
|
+
D ? D(e) : console.error(e);
|
|
2558
|
+
}, [D]), ae = p(function(e) {
|
|
2559
|
+
e.preventDefault(), e.persist(), J(e), B.current = [].concat(bt(B.current), [e.target]), it(e) && Promise.resolve(i(e)).then(function(t) {
|
|
2560
|
+
if (!(rt(e) && !E)) {
|
|
2561
|
+
var n = t.length, r = n > 0 && nt({
|
|
2562
2562
|
files: t,
|
|
2563
|
-
accept:
|
|
2563
|
+
accept: k,
|
|
2564
2564
|
minSize: o,
|
|
2565
2565
|
maxSize: a,
|
|
2566
2566
|
multiple: s,
|
|
2567
2567
|
maxFiles: c,
|
|
2568
|
-
validator:
|
|
2568
|
+
validator: O
|
|
2569
2569
|
});
|
|
2570
|
-
|
|
2570
|
+
L({
|
|
2571
2571
|
isDragAccept: r,
|
|
2572
2572
|
isDragReject: n > 0 && !r,
|
|
2573
2573
|
isDragActive: !0,
|
|
@@ -2575,45 +2575,45 @@ function It() {
|
|
|
2575
2575
|
}), l && l(e);
|
|
2576
2576
|
}
|
|
2577
2577
|
}).catch(function(e) {
|
|
2578
|
-
return
|
|
2578
|
+
return H(e);
|
|
2579
2579
|
});
|
|
2580
2580
|
}, [
|
|
2581
2581
|
i,
|
|
2582
2582
|
l,
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2583
|
+
H,
|
|
2584
|
+
E,
|
|
2585
|
+
k,
|
|
2586
2586
|
o,
|
|
2587
2587
|
a,
|
|
2588
2588
|
s,
|
|
2589
2589
|
c,
|
|
2590
|
-
|
|
2591
|
-
]),
|
|
2592
|
-
e.preventDefault(), e.persist(),
|
|
2593
|
-
var t =
|
|
2590
|
+
O
|
|
2591
|
+
]), oe = p(function(e) {
|
|
2592
|
+
e.preventDefault(), e.persist(), J(e);
|
|
2593
|
+
var t = it(e);
|
|
2594
2594
|
if (t && e.dataTransfer) try {
|
|
2595
2595
|
e.dataTransfer.dropEffect = "copy";
|
|
2596
2596
|
} catch {}
|
|
2597
2597
|
return t && d && d(e), !1;
|
|
2598
|
-
}, [d,
|
|
2599
|
-
e.preventDefault(), e.persist(),
|
|
2600
|
-
var t =
|
|
2601
|
-
return
|
|
2598
|
+
}, [d, E]), se = p(function(e) {
|
|
2599
|
+
e.preventDefault(), e.persist(), J(e);
|
|
2600
|
+
var t = B.current.filter(function(e) {
|
|
2601
|
+
return N.current && N.current.contains(e);
|
|
2602
2602
|
}), n = t.indexOf(e.target);
|
|
2603
|
-
n !== -1 && t.splice(n, 1),
|
|
2603
|
+
n !== -1 && t.splice(n, 1), B.current = t, !(t.length > 0) && (L({
|
|
2604
2604
|
type: "setDraggedFiles",
|
|
2605
2605
|
isDragActive: !1,
|
|
2606
2606
|
isDragAccept: !1,
|
|
2607
2607
|
isDragReject: !1
|
|
2608
|
-
}),
|
|
2608
|
+
}), it(e) && u && u(e));
|
|
2609
2609
|
}, [
|
|
2610
|
-
|
|
2610
|
+
N,
|
|
2611
2611
|
u,
|
|
2612
|
-
|
|
2613
|
-
]),
|
|
2612
|
+
E
|
|
2613
|
+
]), U = p(function(e, t) {
|
|
2614
2614
|
var n = [], r = [];
|
|
2615
2615
|
e.forEach(function(e) {
|
|
2616
|
-
var t =
|
|
2616
|
+
var t = wt(et(e, k), 2), i = t[0], s = t[1], c = wt(tt(e, o, a), 2), l = c[0], u = c[1], d = O ? O(e) : null;
|
|
2617
2617
|
if (i && l && !d) n.push(e);
|
|
2618
2618
|
else {
|
|
2619
2619
|
var f = [s, u];
|
|
@@ -2627,112 +2627,112 @@ function It() {
|
|
|
2627
2627
|
}), (!s && n.length > 1 || s && c >= 1 && n.length > c) && (n.forEach(function(e) {
|
|
2628
2628
|
r.push({
|
|
2629
2629
|
file: e,
|
|
2630
|
-
errors: [
|
|
2630
|
+
errors: [Qe]
|
|
2631
2631
|
});
|
|
2632
|
-
}), n.splice(0)),
|
|
2632
|
+
}), n.splice(0)), L({
|
|
2633
2633
|
acceptedFiles: n,
|
|
2634
2634
|
fileRejections: r,
|
|
2635
2635
|
type: "setFiles"
|
|
2636
|
-
}),
|
|
2636
|
+
}), f && f(n, r, t), r.length > 0 && g && g(r, t), n.length > 0 && m && m(n, t);
|
|
2637
2637
|
}, [
|
|
2638
|
-
|
|
2638
|
+
L,
|
|
2639
2639
|
s,
|
|
2640
|
-
|
|
2640
|
+
k,
|
|
2641
2641
|
o,
|
|
2642
2642
|
a,
|
|
2643
2643
|
c,
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
]),
|
|
2649
|
-
e.preventDefault(), e.persist(),
|
|
2650
|
-
|
|
2644
|
+
f,
|
|
2645
|
+
m,
|
|
2646
|
+
g,
|
|
2647
|
+
O
|
|
2648
|
+
]), W = p(function(e) {
|
|
2649
|
+
e.preventDefault(), e.persist(), J(e), B.current = [], it(e) && Promise.resolve(i(e)).then(function(t) {
|
|
2650
|
+
rt(e) && !E || U(t, e);
|
|
2651
2651
|
}).catch(function(e) {
|
|
2652
|
-
return
|
|
2653
|
-
}),
|
|
2652
|
+
return H(e);
|
|
2653
|
+
}), L({ type: "reset" });
|
|
2654
2654
|
}, [
|
|
2655
2655
|
i,
|
|
2656
|
+
U,
|
|
2656
2657
|
H,
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
I({ type: "openDialog" }), M();
|
|
2658
|
+
E
|
|
2659
|
+
]), G = p(function() {
|
|
2660
|
+
if (z.current) {
|
|
2661
|
+
L({ type: "openDialog" }), j();
|
|
2662
2662
|
var e = {
|
|
2663
2663
|
multiple: s,
|
|
2664
|
-
types:
|
|
2664
|
+
types: A
|
|
2665
2665
|
};
|
|
2666
2666
|
window.showOpenFilePicker(e).then(function(e) {
|
|
2667
2667
|
return i(e);
|
|
2668
2668
|
}).then(function(e) {
|
|
2669
|
-
|
|
2669
|
+
U(e, null), L({ type: "closeDialog" });
|
|
2670
2670
|
}).catch(function(e) {
|
|
2671
|
-
|
|
2671
|
+
ft(e) ? (M(e), L({ type: "closeDialog" })) : pt(e) ? (z.current = !1, P.current ? (P.current.value = null, P.current.click()) : H(/* @__PURE__ */ Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : H(e);
|
|
2672
2672
|
});
|
|
2673
2673
|
return;
|
|
2674
2674
|
}
|
|
2675
|
-
|
|
2675
|
+
P.current && (L({ type: "openDialog" }), j(), P.current.value = null, P.current.click());
|
|
2676
2676
|
}, [
|
|
2677
|
-
|
|
2677
|
+
L,
|
|
2678
|
+
j,
|
|
2678
2679
|
M,
|
|
2679
|
-
|
|
2680
|
-
|
|
2680
|
+
x,
|
|
2681
|
+
U,
|
|
2681
2682
|
H,
|
|
2682
|
-
|
|
2683
|
-
j,
|
|
2683
|
+
A,
|
|
2684
2684
|
s
|
|
2685
|
-
]),
|
|
2686
|
-
!
|
|
2687
|
-
}, [
|
|
2688
|
-
|
|
2689
|
-
}, []),
|
|
2690
|
-
|
|
2691
|
-
}, []),
|
|
2692
|
-
|
|
2693
|
-
}, [
|
|
2685
|
+
]), ce = p(function(e) {
|
|
2686
|
+
!N.current || !N.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), G());
|
|
2687
|
+
}, [N, G]), le = p(function() {
|
|
2688
|
+
L({ type: "focus" });
|
|
2689
|
+
}, []), ue = p(function() {
|
|
2690
|
+
L({ type: "blur" });
|
|
2691
|
+
}, []), de = p(function() {
|
|
2692
|
+
te || (ct() ? setTimeout(G, 0) : G());
|
|
2693
|
+
}, [te, G]), K = function(e) {
|
|
2694
2694
|
return r ? null : e;
|
|
2695
|
+
}, fe = function(e) {
|
|
2696
|
+
return w ? null : K(e);
|
|
2695
2697
|
}, q = function(e) {
|
|
2696
2698
|
return T ? null : K(e);
|
|
2697
2699
|
}, J = function(e) {
|
|
2698
|
-
|
|
2699
|
-
},
|
|
2700
|
-
D && e.stopPropagation();
|
|
2701
|
-
}, fe = g(function() {
|
|
2700
|
+
E && e.stopPropagation();
|
|
2701
|
+
}, pe = _(function() {
|
|
2702
2702
|
return function() {
|
|
2703
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, n = t === void 0 ? "ref" : t, i = e.role, a = e.onKeyDown, o = e.onFocus, s = e.onBlur, c = e.onClick, l = e.onDragEnter, u = e.onDragOver, d = e.onDragLeave, f = e.onDrop, p =
|
|
2704
|
-
return $($(
|
|
2705
|
-
onKeyDown:
|
|
2706
|
-
onFocus:
|
|
2707
|
-
onBlur:
|
|
2708
|
-
onClick: K(Q(c,
|
|
2709
|
-
onDragEnter:
|
|
2710
|
-
onDragOver:
|
|
2711
|
-
onDragLeave:
|
|
2712
|
-
onDrop:
|
|
2703
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, n = t === void 0 ? "ref" : t, i = e.role, a = e.onKeyDown, o = e.onFocus, s = e.onBlur, c = e.onClick, l = e.onDragEnter, u = e.onDragOver, d = e.onDragLeave, f = e.onDrop, p = Mt(e, vt);
|
|
2704
|
+
return $($(jt({
|
|
2705
|
+
onKeyDown: fe(Q(a, ce)),
|
|
2706
|
+
onFocus: fe(Q(o, le)),
|
|
2707
|
+
onBlur: fe(Q(s, ue)),
|
|
2708
|
+
onClick: K(Q(c, de)),
|
|
2709
|
+
onDragEnter: q(Q(l, ae)),
|
|
2710
|
+
onDragOver: q(Q(u, oe)),
|
|
2711
|
+
onDragLeave: q(Q(d, se)),
|
|
2712
|
+
onDrop: q(Q(f, W)),
|
|
2713
2713
|
role: typeof i == "string" && i !== "" ? i : "presentation"
|
|
2714
|
-
}, n,
|
|
2714
|
+
}, n, N), !r && !w ? { tabIndex: 0 } : {}), p);
|
|
2715
2715
|
};
|
|
2716
2716
|
}, [
|
|
2717
|
-
|
|
2717
|
+
N,
|
|
2718
|
+
ce,
|
|
2718
2719
|
le,
|
|
2719
2720
|
ue,
|
|
2720
2721
|
de,
|
|
2721
|
-
|
|
2722
|
+
ae,
|
|
2722
2723
|
oe,
|
|
2723
2724
|
se,
|
|
2724
|
-
|
|
2725
|
-
|
|
2725
|
+
W,
|
|
2726
|
+
w,
|
|
2726
2727
|
T,
|
|
2727
|
-
E,
|
|
2728
2728
|
r
|
|
2729
|
-
]),
|
|
2729
|
+
]), me = p(function(e) {
|
|
2730
2730
|
e.stopPropagation();
|
|
2731
|
-
}, []),
|
|
2731
|
+
}, []), he = _(function() {
|
|
2732
2732
|
return function() {
|
|
2733
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, n = t === void 0 ? "ref" : t, r = e.onChange, i = e.onClick, a =
|
|
2734
|
-
return $($({},
|
|
2735
|
-
accept:
|
|
2733
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, n = t === void 0 ? "ref" : t, r = e.onChange, i = e.onClick, a = Mt(e, yt);
|
|
2734
|
+
return $($({}, jt({
|
|
2735
|
+
accept: k,
|
|
2736
2736
|
multiple: s,
|
|
2737
2737
|
type: "file",
|
|
2738
2738
|
style: {
|
|
@@ -2747,33 +2747,33 @@ function It() {
|
|
|
2747
2747
|
width: "1px",
|
|
2748
2748
|
whiteSpace: "nowrap"
|
|
2749
2749
|
},
|
|
2750
|
-
onChange: K(Q(r,
|
|
2751
|
-
onClick: K(Q(i,
|
|
2750
|
+
onChange: K(Q(r, W)),
|
|
2751
|
+
onClick: K(Q(i, me)),
|
|
2752
2752
|
tabIndex: -1
|
|
2753
|
-
}, n,
|
|
2753
|
+
}, n, P)), a);
|
|
2754
2754
|
};
|
|
2755
2755
|
}, [
|
|
2756
|
-
|
|
2756
|
+
P,
|
|
2757
2757
|
n,
|
|
2758
2758
|
s,
|
|
2759
|
-
|
|
2759
|
+
W,
|
|
2760
2760
|
r
|
|
2761
2761
|
]);
|
|
2762
|
-
return $($({},
|
|
2763
|
-
isFocused:
|
|
2764
|
-
getRootProps:
|
|
2765
|
-
getInputProps:
|
|
2766
|
-
rootRef:
|
|
2767
|
-
inputRef:
|
|
2768
|
-
open: K(
|
|
2762
|
+
return $($({}, I), {}, {
|
|
2763
|
+
isFocused: ne && !r,
|
|
2764
|
+
getRootProps: pe,
|
|
2765
|
+
getInputProps: he,
|
|
2766
|
+
rootRef: N,
|
|
2767
|
+
inputRef: P,
|
|
2768
|
+
open: K(G)
|
|
2769
2769
|
});
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function Rt(e, t) {
|
|
2772
2772
|
/* istanbul ignore next */
|
|
2773
2773
|
switch (t.type) {
|
|
2774
2774
|
case "focus": return $($({}, e), {}, { isFocused: !0 });
|
|
2775
2775
|
case "blur": return $($({}, e), {}, { isFocused: !1 });
|
|
2776
|
-
case "openDialog": return $($({},
|
|
2776
|
+
case "openDialog": return $($({}, It), {}, { isFileDialogActive: !0 });
|
|
2777
2777
|
case "closeDialog": return $($({}, e), {}, { isFileDialogActive: !1 });
|
|
2778
2778
|
case "setDraggedFiles": return $($({}, e), {}, {
|
|
2779
2779
|
isDragActive: t.isDragActive,
|
|
@@ -2786,14 +2786,14 @@ function Lt(e, t) {
|
|
|
2786
2786
|
isDragReject: !1
|
|
2787
2787
|
});
|
|
2788
2788
|
case "setDragGlobal": return $($({}, e), {}, { isDragGlobal: t.isDragGlobal });
|
|
2789
|
-
case "reset": return $({},
|
|
2789
|
+
case "reset": return $({}, It);
|
|
2790
2790
|
default: return e;
|
|
2791
2791
|
}
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function zt() {}
|
|
2794
2794
|
//#endregion
|
|
2795
2795
|
//#region src/components/form/file-upload.tsx
|
|
2796
|
-
var
|
|
2796
|
+
var Bt = d([null, () => {}]), Vt = () => m(Bt), Ht = (e) => e.type.startsWith("image/") ? "img" : e.type.startsWith("audio/") ? "audio" : e.type.startsWith("video/") ? "video" : e.type, Ut = {
|
|
2797
2797
|
csv: N,
|
|
2798
2798
|
xls: N,
|
|
2799
2799
|
mov: A,
|
|
@@ -2803,32 +2803,32 @@ var zt = u([null, () => {}]), Bt = () => p(zt), Vt = (e) => e.type.startsWith("i
|
|
|
2803
2803
|
txt: k,
|
|
2804
2804
|
json: O,
|
|
2805
2805
|
mp3: P
|
|
2806
|
-
},
|
|
2807
|
-
let [,
|
|
2806
|
+
}, Wt = (e) => {
|
|
2807
|
+
let t = a(), [, i] = Vt(), [o, s] = y({
|
|
2808
2808
|
url: "",
|
|
2809
2809
|
type: "",
|
|
2810
2810
|
size: ""
|
|
2811
2811
|
});
|
|
2812
|
-
|
|
2812
|
+
h(() => {
|
|
2813
2813
|
let t = e.file, n = URL.createObjectURL(t);
|
|
2814
|
-
return
|
|
2814
|
+
return s({
|
|
2815
2815
|
url: n,
|
|
2816
|
-
type:
|
|
2817
|
-
size:
|
|
2816
|
+
type: Ht(t),
|
|
2817
|
+
size: H(t.size)
|
|
2818
2818
|
}), () => URL.revokeObjectURL(n);
|
|
2819
2819
|
}, [e.file]);
|
|
2820
|
-
let
|
|
2821
|
-
|
|
2822
|
-
...
|
|
2820
|
+
let c = (t) => {
|
|
2821
|
+
t.stopPropagation(), t.preventDefault(), i({
|
|
2822
|
+
...o,
|
|
2823
2823
|
file: e.file
|
|
2824
2824
|
});
|
|
2825
|
-
},
|
|
2825
|
+
}, l = (t) => {
|
|
2826
2826
|
t.preventDefault(), t.stopPropagation(), e.onDeleteFile?.(e.file);
|
|
2827
|
-
},
|
|
2828
|
-
src:
|
|
2827
|
+
}, u = e.file.name, d = Ut[e.file.name.split(".").at(-1)] ?? n, f = o.type === "img" ? /* @__PURE__ */ b("img", {
|
|
2828
|
+
src: o.url,
|
|
2829
2829
|
className: "w-full object-contain",
|
|
2830
2830
|
alt: e.file.name
|
|
2831
|
-
}) : /* @__PURE__ */ b(
|
|
2831
|
+
}) : /* @__PURE__ */ b(d, { size: 48 });
|
|
2832
2832
|
return /* @__PURE__ */ x("li", {
|
|
2833
2833
|
className: "flex w-full flex-row justify-between gap-file-upload-gap border-b border-card-border last:border-b-transparent",
|
|
2834
2834
|
children: [/* @__PURE__ */ x("div", {
|
|
@@ -2837,15 +2837,15 @@ var zt = u([null, () => {}]), Bt = () => p(zt), Vt = (e) => e.type.startsWith("i
|
|
|
2837
2837
|
className: "flex flex-row items-center gap-file-upload-gap",
|
|
2838
2838
|
children: [/* @__PURE__ */ b("button", {
|
|
2839
2839
|
type: "button",
|
|
2840
|
-
onClick:
|
|
2841
|
-
"aria-label":
|
|
2840
|
+
onClick: c,
|
|
2841
|
+
"aria-label": t.fileUploadViewFile(u),
|
|
2842
2842
|
className: "m-2 flex size-file-upload-thumb-size items-center justify-center overflow-hidden",
|
|
2843
|
-
children:
|
|
2843
|
+
children: f
|
|
2844
2844
|
}), /* @__PURE__ */ x("div", {
|
|
2845
2845
|
className: "flex flex-col items-start justify-start text-left",
|
|
2846
2846
|
children: [/* @__PURE__ */ b("span", { children: e.file.name }), /* @__PURE__ */ b("span", {
|
|
2847
2847
|
className: "text-file-upload-text-size italic",
|
|
2848
|
-
children:
|
|
2848
|
+
children: o.size
|
|
2849
2849
|
})]
|
|
2850
2850
|
})]
|
|
2851
2851
|
}), e.File ? /* @__PURE__ */ b("div", {
|
|
@@ -2855,9 +2855,9 @@ var zt = u([null, () => {}]), Bt = () => p(zt), Vt = (e) => e.type.startsWith("i
|
|
|
2855
2855
|
}), /* @__PURE__ */ b("div", {
|
|
2856
2856
|
className: "align-start flex justify-start py-file-upload-delete-py transition-colors duration-300 ease-linear hover:text-danger-hover",
|
|
2857
2857
|
children: /* @__PURE__ */ b("button", {
|
|
2858
|
-
onClick:
|
|
2858
|
+
onClick: l,
|
|
2859
2859
|
type: "button",
|
|
2860
|
-
"aria-label":
|
|
2860
|
+
"aria-label": t.fileUploadRemoveFile(u),
|
|
2861
2861
|
className: "flex size-6 items-center justify-center",
|
|
2862
2862
|
children: /* @__PURE__ */ b(r, {
|
|
2863
2863
|
size: 16,
|
|
@@ -2866,40 +2866,51 @@ var zt = u([null, () => {}]), Bt = () => p(zt), Vt = (e) => e.type.startsWith("i
|
|
|
2866
2866
|
})
|
|
2867
2867
|
})]
|
|
2868
2868
|
});
|
|
2869
|
-
},
|
|
2869
|
+
}, Gt = (e) => /* @__PURE__ */ b("ul", {
|
|
2870
2870
|
className: "w-full space-y-8",
|
|
2871
|
-
children: e.files.map((t) => /* @__PURE__ */ b(
|
|
2871
|
+
children: e.files.map((t) => /* @__PURE__ */ b(Wt, {
|
|
2872
2872
|
File: e.File,
|
|
2873
2873
|
onDeleteFile: e.onDeleteFile,
|
|
2874
2874
|
file: t
|
|
2875
2875
|
}, t.name))
|
|
2876
|
-
}),
|
|
2877
|
-
let t = a()
|
|
2876
|
+
}), Kt = (e) => {
|
|
2877
|
+
let t = a(), n = e.dragging ? M : j, r = (t) => {
|
|
2878
|
+
t.preventDefault(), t.stopPropagation(), e.onUpload?.();
|
|
2879
|
+
};
|
|
2878
2880
|
return /* @__PURE__ */ x("div", {
|
|
2879
2881
|
className: "flex flex-col items-center justify-center",
|
|
2880
2882
|
children: [/* @__PURE__ */ b("div", {
|
|
2881
2883
|
className: "flex flex-col items-center justify-center gap-file-upload-inner-gap",
|
|
2882
|
-
children: /* @__PURE__ */ b(
|
|
2884
|
+
children: /* @__PURE__ */ b("span", {
|
|
2883
2885
|
className: "text-primary",
|
|
2884
|
-
|
|
2886
|
+
children: /* @__PURE__ */ b(n, {
|
|
2887
|
+
size: 80,
|
|
2888
|
+
"aria-hidden": "true"
|
|
2889
|
+
})
|
|
2885
2890
|
})
|
|
2886
2891
|
}), /* @__PURE__ */ x("div", {
|
|
2887
2892
|
className: "my-file-upload-thumb-my flex flex-col items-center gap-file-upload-thumb-gap",
|
|
2888
2893
|
children: [/* @__PURE__ */ b("p", { children: t.uploadIdle }), /* @__PURE__ */ b("button", {
|
|
2889
2894
|
className: "text-primary underline",
|
|
2890
2895
|
type: "button",
|
|
2896
|
+
"aria-label": t.fileUploadUploadButtonLabel(t.uploadIdleButton),
|
|
2897
|
+
onClick: r,
|
|
2898
|
+
onKeyDown: (e) => {
|
|
2899
|
+
e.key !== "Enter" && e.key !== " " || r(e);
|
|
2900
|
+
},
|
|
2891
2901
|
children: t.uploadIdleButton
|
|
2892
2902
|
})]
|
|
2893
2903
|
})]
|
|
2894
2904
|
});
|
|
2895
|
-
},
|
|
2905
|
+
}, qt = (e) => e.isDragActive ? /* @__PURE__ */ b(Kt, {
|
|
2896
2906
|
files: e.files,
|
|
2897
|
-
dragging: !0
|
|
2898
|
-
|
|
2907
|
+
dragging: !0,
|
|
2908
|
+
onUpload: e.onUpload
|
|
2909
|
+
}) : e.files.length > 0 ? /* @__PURE__ */ b(Gt, {
|
|
2899
2910
|
File: e.File,
|
|
2900
2911
|
onDeleteFile: e.onDeleteFile,
|
|
2901
2912
|
files: e.files
|
|
2902
|
-
}) : /* @__PURE__ */ b(l, { children: e.idle }),
|
|
2913
|
+
}) : /* @__PURE__ */ b(l, { children: u(e.idle, { onUpload: e.onUpload }) }), Jt = /* @__PURE__ */ b(Kt, { dragging: !1 }), Yt = (e) => {
|
|
2903
2914
|
let t = e.item.file, n = e.item.type;
|
|
2904
2915
|
return /* @__PURE__ */ x("div", {
|
|
2905
2916
|
className: "flex flex-col gap-file-upload-gap",
|
|
@@ -2928,11 +2939,17 @@ var zt = u([null, () => {}]), Bt = () => p(zt), Vt = (e) => e.type.startsWith("i
|
|
|
2928
2939
|
}) }) : null
|
|
2929
2940
|
]
|
|
2930
2941
|
});
|
|
2931
|
-
},
|
|
2932
|
-
let s = a(), c = y(null), [l, u] = y([]), d = i.files ?? l, f = () => c[1](null), { getRootProps: p, getInputProps: m, isDragActive: h } =
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2942
|
+
}, Xt = ({ idle: e = Jt, onDeleteFile: t, File: n, onDrop: r, ...i }) => {
|
|
2943
|
+
let s = a(), c = y(null), [l, u] = y([]), d = i.files ?? l, f = () => c[1](null), { getRootProps: p, getInputProps: m, isDragActive: h, open: g } = Lt({
|
|
2944
|
+
multiple: i.multiple,
|
|
2945
|
+
onDragEnter: i.onDragEnter,
|
|
2946
|
+
onDragOver: i.onDragOver,
|
|
2947
|
+
onDragLeave: i.onDragLeave,
|
|
2948
|
+
onDrop: (e) => {
|
|
2949
|
+
r?.(e), u((t) => t.concat(e));
|
|
2950
|
+
}
|
|
2951
|
+
});
|
|
2952
|
+
return /* @__PURE__ */ x(Bt.Provider, {
|
|
2936
2953
|
value: c,
|
|
2937
2954
|
children: [/* @__PURE__ */ b(o, {
|
|
2938
2955
|
overlayClickClose: !0,
|
|
@@ -2940,27 +2957,30 @@ var zt = u([null, () => {}]), Bt = () => p(zt), Vt = (e) => e.type.startsWith("i
|
|
|
2940
2957
|
ariaTitle: s.uploadDialogTitle,
|
|
2941
2958
|
open: c[0] !== null,
|
|
2942
2959
|
onChange: f,
|
|
2943
|
-
children: c[0] ? /* @__PURE__ */ b(
|
|
2960
|
+
children: c[0] ? /* @__PURE__ */ b(Yt, { item: c[0] }) : null
|
|
2944
2961
|
}), /* @__PURE__ */ x("div", {
|
|
2945
|
-
...p(
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2962
|
+
...p({
|
|
2963
|
+
"aria-label": s.fileUploadZoneLabel,
|
|
2964
|
+
"data-active": d ? d.length > 0 : !1,
|
|
2965
|
+
className: "flex flex-col items-center justify-center rounded-file-upload-radius border border-card-border p-file-upload-p text-foreground data-[active=true]:border-solid data-[active=false]:border-dashed data-[active=true]:border-transparent data-[active=true]:bg-card-background"
|
|
2966
|
+
}),
|
|
2949
2967
|
children: [/* @__PURE__ */ b("input", {
|
|
2950
|
-
...m(
|
|
2968
|
+
...m(),
|
|
2969
|
+
"aria-label": s.fileUploadZoneLabel,
|
|
2951
2970
|
name: i.name,
|
|
2952
2971
|
id: i.name
|
|
2953
|
-
}), /* @__PURE__ */ b(
|
|
2972
|
+
}), /* @__PURE__ */ b(qt, {
|
|
2954
2973
|
File: n,
|
|
2955
2974
|
onDeleteFile: t,
|
|
2956
2975
|
isDragActive: h,
|
|
2957
2976
|
idle: e,
|
|
2958
|
-
files: d
|
|
2977
|
+
files: d,
|
|
2978
|
+
onUpload: g
|
|
2959
2979
|
})]
|
|
2960
2980
|
})]
|
|
2961
2981
|
});
|
|
2962
2982
|
};
|
|
2963
2983
|
//#endregion
|
|
2964
|
-
export {
|
|
2984
|
+
export { Xt as t };
|
|
2965
2985
|
|
|
2966
|
-
//# sourceMappingURL=file-upload-
|
|
2986
|
+
//# sourceMappingURL=file-upload-C2zNnv9n.js.map
|