@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
1,513 lines (1,512 loc) • 81.2 kB
JavaScript
/**
* VERSION: 2.130.0-alpha.4
* BUILD_TIMESTAMP: 1759000374473
* BUILD_DATE: Sat Sep 27 2025 19:12:54 GMT+0000 (Coordinated Universal Time)
* BUILD_COMMIT: be6ef87ab40e8747994d32363389cf39e36a4326
*/
import { aZ as K, a_ as q, a$ as It, b0 as h, j as t, b1 as n, aQ as u, au as ye, aE as Et, e as vt, b2 as Ut, i as jt, b3 as We, t as Dt, A as _t, b4 as At, b5 as wt, b6 as Rt, B as Ft, b7 as Nt, b8 as Tt, b9 as Ot, q as Ct, l as Le, V as Ie, ba as St, bb as Lt, bc as Mt, bd as kt, r as Ge, be as Pt, bf as Bt } from "./es6-N0LU_o1K.js";
import * as Ue from "react";
import Yt, { forwardRef as Ht, useImperativeHandle as zt, Fragment as Vt, useMemo as Ee, useRef as Me, useReducer as Wt, useEffect as $e, useCallback as N, useState as ne } from "react";
import { FormattedHTMLMessage as m, injectIntl as Gt } from "react-intl";
var $t = /* @__PURE__ */ new Map([
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
["aac", "audio/aac"],
["abw", "application/x-abiword"],
["arc", "application/x-freearc"],
["avif", "image/avif"],
["avi", "video/x-msvideo"],
["azw", "application/vnd.amazon.ebook"],
["bin", "application/octet-stream"],
["bmp", "image/bmp"],
["bz", "application/x-bzip"],
["bz2", "application/x-bzip2"],
["cda", "application/x-cdf"],
["csh", "application/x-csh"],
["css", "text/css"],
["csv", "text/csv"],
["doc", "application/msword"],
["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
["eot", "application/vnd.ms-fontobject"],
["epub", "application/epub+zip"],
["gz", "application/gzip"],
["gif", "image/gif"],
["htm", "text/html"],
["html", "text/html"],
["ico", "image/vnd.microsoft.icon"],
["ics", "text/calendar"],
["jar", "application/java-archive"],
["jpeg", "image/jpeg"],
["jpg", "image/jpeg"],
["js", "text/javascript"],
["json", "application/json"],
["jsonld", "application/ld+json"],
["mid", "audio/midi"],
["midi", "audio/midi"],
["mjs", "text/javascript"],
["mp3", "audio/mpeg"],
["mp4", "video/mp4"],
["mpeg", "video/mpeg"],
["mpkg", "application/vnd.apple.installer+xml"],
["odp", "application/vnd.oasis.opendocument.presentation"],
["ods", "application/vnd.oasis.opendocument.spreadsheet"],
["odt", "application/vnd.oasis.opendocument.text"],
["oga", "audio/ogg"],
["ogv", "video/ogg"],
["ogx", "application/ogg"],
["opus", "audio/opus"],
["otf", "font/otf"],
["png", "image/png"],
["pdf", "application/pdf"],
["php", "application/x-httpd-php"],
["ppt", "application/vnd.ms-powerpoint"],
["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
["rar", "application/vnd.rar"],
["rtf", "application/rtf"],
["sh", "application/x-sh"],
["svg", "image/svg+xml"],
["swf", "application/x-shockwave-flash"],
["tar", "application/x-tar"],
["tif", "image/tiff"],
["tiff", "image/tiff"],
["ts", "video/mp2t"],
["ttf", "font/ttf"],
["txt", "text/plain"],
["vsd", "application/vnd.visio"],
["wav", "audio/wav"],
["weba", "audio/webm"],
["webm", "video/webm"],
["webp", "image/webp"],
["woff", "font/woff"],
["woff2", "font/woff2"],
["xhtml", "application/xhtml+xml"],
["xls", "application/vnd.ms-excel"],
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
["xml", "application/xml"],
["xul", "application/vnd.mozilla.xul+xml"],
["zip", "application/zip"],
["7z", "application/x-7z-compressed"],
// Others
["mkv", "video/x-matroska"],
["mov", "video/quicktime"],
["msg", "application/vnd.ms-outlook"]
]);
function se(e, o) {
var a = Kt(e);
if (typeof a.path != "string") {
var r = e.webkitRelativePath;
Object.defineProperty(a, "path", {
value: typeof o == "string" ? o : typeof r == "string" && r.length > 0 ? r : e.name,
writable: !1,
configurable: !1,
enumerable: !0
});
}
return a;
}
function Kt(e) {
var o = e.name, a = o && o.lastIndexOf(".") !== -1;
if (a && !e.type) {
var r = o.split(".").pop().toLowerCase(), s = $t.get(r);
s && Object.defineProperty(e, "type", {
value: s,
writable: !1,
configurable: !1,
enumerable: !0
});
}
return e;
}
var qt = [
// Thumbnail cache files for macOS and Windows
".DS_Store",
"Thumbs.db"
// Windows
];
function Zt(e) {
return K(this, void 0, void 0, function() {
return q(this, function(o) {
return je(e) && Qt(e) ? [2, to(e.dataTransfer, e.type)] : Xt(e) ? [2, Jt(e)] : Array.isArray(e) && e.every(function(a) {
return "getFile" in a && typeof a.getFile == "function";
}) ? [2, eo(e)] : [2, []];
});
});
}
function Qt(e) {
return je(e.dataTransfer);
}
function Xt(e) {
return je(e) && je(e.target);
}
function je(e) {
return typeof e == "object" && e !== null;
}
function Jt(e) {
return Pe(e.target.files).map(function(o) {
return se(o);
});
}
function eo(e) {
return K(this, void 0, void 0, function() {
var o;
return q(this, function(a) {
switch (a.label) {
case 0:
return [4, Promise.all(e.map(function(r) {
return r.getFile();
}))];
case 1:
return o = a.sent(), [2, o.map(function(r) {
return se(r);
})];
}
});
});
}
function to(e, o) {
return K(this, void 0, void 0, function() {
var a, r;
return q(this, function(s) {
switch (s.label) {
case 0:
return e === null ? [2, []] : e.items ? (a = Pe(e.items).filter(function(d) {
return d.kind === "file";
}), o !== "drop" ? [2, a] : [4, Promise.all(a.map(oo))]) : [3, 2];
case 1:
return r = s.sent(), [2, Ke(lt(r))];
case 2:
return [2, Ke(Pe(e.files).map(function(d) {
return se(d);
}))];
}
});
});
}
function Ke(e) {
return e.filter(function(o) {
return qt.indexOf(o.name) === -1;
});
}
function Pe(e) {
if (e === null)
return [];
for (var o = [], a = 0; a < e.length; a++) {
var r = e[a];
o.push(r);
}
return o;
}
function oo(e) {
if (typeof e.webkitGetAsEntry != "function")
return qe(e);
var o = e.webkitGetAsEntry();
return o && o.isDirectory ? dt(o) : qe(e);
}
function lt(e) {
return e.reduce(function(o, a) {
return It(o, Array.isArray(a) ? lt(a) : [a]);
}, []);
}
function qe(e) {
var o = e.getAsFile();
if (!o)
return Promise.reject(e + " is not a File");
var a = se(o);
return Promise.resolve(a);
}
function ao(e) {
return K(this, void 0, void 0, function() {
return q(this, function(o) {
return [2, e.isDirectory ? dt(e) : ro(e)];
});
});
}
function dt(e) {
var o = e.createReader();
return new Promise(function(a, r) {
var s = [];
function d() {
var f = this;
o.readEntries(function(c) {
return K(f, void 0, void 0, function() {
var E, g, A;
return q(this, function(j) {
switch (j.label) {
case 0:
if (c.length) return [3, 5];
j.label = 1;
case 1:
return j.trys.push([1, 3, , 4]), [4, Promise.all(s)];
case 2:
return E = j.sent(), a(E), [3, 4];
case 3:
return g = j.sent(), r(g), [3, 4];
case 4:
return [3, 6];
case 5:
A = Promise.all(c.map(ao)), s.push(A), d(), j.label = 6;
case 6:
return [
2
/*return*/
];
}
});
});
}, function(c) {
r(c);
});
}
d();
});
}
function ro(e) {
return K(this, void 0, void 0, function() {
return q(this, function(o) {
return [2, new Promise(function(a, r) {
e.file(function(s) {
var d = se(s, e.fullPath);
a(d);
}, function(s) {
r(s);
});
})];
});
});
}
var no = function(e, o) {
if (e && o) {
var a = Array.isArray(o) ? o : o.split(",");
if (a.length === 0)
return !0;
var r = e.name || "", s = (e.type || "").toLowerCase(), d = s.replace(/\/.*$/, "");
return a.some(function(f) {
var c = f.trim().toLowerCase();
return c.charAt(0) === "." ? r.toLowerCase().endsWith(c) : c.endsWith("/*") ? d === c.replace(/\/.*$/, "") : s === c;
});
}
return !0;
};
function Ze(e, o) {
var a = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
o && (r = r.filter(function(s) {
return Object.getOwnPropertyDescriptor(e, s).enumerable;
})), a.push.apply(a, r);
}
return a;
}
function Qe(e) {
for (var o = 1; o < arguments.length; o++) {
var a = arguments[o] != null ? arguments[o] : {};
o % 2 ? Ze(Object(a), !0).forEach(function(r) {
ct(e, r, a[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Ze(Object(a)).forEach(function(r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
});
}
return e;
}
function ct(e, o, a) {
return o in e ? Object.defineProperty(e, o, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = a, e;
}
function Xe(e, o) {
return co(e) || lo(e, o) || io(e, o) || so();
}
function so() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function io(e, o) {
if (e) {
if (typeof e == "string") return Je(e, o);
var a = Object.prototype.toString.call(e).slice(8, -1);
if (a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set") return Array.from(e);
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return Je(e, o);
}
}
function Je(e, o) {
(o == null || o > e.length) && (o = e.length);
for (var a = 0, r = new Array(o); a < o; a++)
r[a] = e[a];
return r;
}
function lo(e, o) {
var a = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (a != null) {
var r = [], s = !0, d = !1, f, c;
try {
for (a = a.call(e); !(s = (f = a.next()).done) && (r.push(f.value), !(o && r.length === o)); s = !0)
;
} catch (E) {
d = !0, c = E;
} finally {
try {
!s && a.return != null && a.return();
} finally {
if (d) throw c;
}
}
return r;
}
}
function co(e) {
if (Array.isArray(e)) return e;
}
var po = "file-invalid-type", uo = "file-too-large", fo = "file-too-small", mo = "too-many-files", ho = function(o) {
o = Array.isArray(o) && o.length === 1 ? o[0] : o;
var a = Array.isArray(o) ? "one of ".concat(o.join(", ")) : o;
return {
code: po,
message: "File type must be ".concat(a)
};
}, et = function(o) {
return {
code: uo,
message: "File is larger than ".concat(o, " ").concat(o === 1 ? "byte" : "bytes")
};
}, tt = function(o) {
return {
code: fo,
message: "File is smaller than ".concat(o, " ").concat(o === 1 ? "byte" : "bytes")
};
}, go = {
code: mo,
message: "Too many files"
};
function pt(e, o) {
var a = e.type === "application/x-moz-file" || no(e, o);
return [a, a ? null : ho(o)];
}
function ut(e, o, a) {
if (ae(e.size))
if (ae(o) && ae(a)) {
if (e.size > a) return [!1, et(a)];
if (e.size < o) return [!1, tt(o)];
} else {
if (ae(o) && e.size < o) return [!1, tt(o)];
if (ae(a) && e.size > a) return [!1, et(a)];
}
return [!0, null];
}
function ae(e) {
return e != null;
}
function xo(e) {
var o = e.files, a = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, f = e.maxFiles;
return !d && o.length > 1 || d && f >= 1 && o.length > f ? !1 : o.every(function(c) {
var E = pt(c, a), g = Xe(E, 1), A = g[0], j = ut(c, r, s), T = Xe(j, 1), L = T[0];
return A && L;
});
}
function De(e) {
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
}
function ve(e) {
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(o) {
return o === "Files" || o === "application/x-moz-file";
}) : !!e.target && !!e.target.files;
}
function ot(e) {
e.preventDefault();
}
function bo(e) {
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
}
function yo(e) {
return e.indexOf("Edge/") !== -1;
}
function Io() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
return bo(e) || yo(e);
}
function C() {
for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
o[a] = arguments[a];
return function(r) {
for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), f = 1; f < s; f++)
d[f - 1] = arguments[f];
return o.some(function(c) {
return !De(r) && c && c.apply(void 0, [r].concat(d)), De(r);
});
};
}
function at() {
return "showOpenFilePicker" in window;
}
function Eo(e) {
return e = typeof e == "string" ? e.split(",") : e, [{
description: "everything",
// TODO: Need to handle filtering more elegantly than this!
accept: Array.isArray(e) ? e.filter(function(o) {
return o === "audio/*" || o === "video/*" || o === "image/*" || o === "text/*" || /\w+\/[-+.\w]+/g.test(o);
}).reduce(function(o, a) {
return Qe(Qe({}, o), {}, ct({}, a, []));
}, {}) : {}
}];
}
var vo = ["children"], Uo = ["open"], jo = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Do = ["refKey", "onChange", "onClick"];
function _o(e) {
return Ro(e) || wo(e) || ft(e) || Ao();
}
function Ao() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function wo(e) {
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
}
function Ro(e) {
if (Array.isArray(e)) return Be(e);
}
function ke(e, o) {
return To(e) || No(e, o) || ft(e, o) || Fo();
}
function Fo() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function ft(e, o) {
if (e) {
if (typeof e == "string") return Be(e, o);
var a = Object.prototype.toString.call(e).slice(8, -1);
if (a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set") return Array.from(e);
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return Be(e, o);
}
}
function Be(e, o) {
(o == null || o > e.length) && (o = e.length);
for (var a = 0, r = new Array(o); a < o; a++)
r[a] = e[a];
return r;
}
function No(e, o) {
var a = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (a != null) {
var r = [], s = !0, d = !1, f, c;
try {
for (a = a.call(e); !(s = (f = a.next()).done) && (r.push(f.value), !(o && r.length === o)); s = !0)
;
} catch (E) {
d = !0, c = E;
} finally {
try {
!s && a.return != null && a.return();
} finally {
if (d) throw c;
}
}
return r;
}
}
function To(e) {
if (Array.isArray(e)) return e;
}
function rt(e, o) {
var a = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
o && (r = r.filter(function(s) {
return Object.getOwnPropertyDescriptor(e, s).enumerable;
})), a.push.apply(a, r);
}
return a;
}
function x(e) {
for (var o = 1; o < arguments.length; o++) {
var a = arguments[o] != null ? arguments[o] : {};
o % 2 ? rt(Object(a), !0).forEach(function(r) {
Ye(e, r, a[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : rt(Object(a)).forEach(function(r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
});
}
return e;
}
function Ye(e, o, a) {
return o in e ? Object.defineProperty(e, o, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = a, e;
}
function _e(e, o) {
if (e == null) return {};
var a = Oo(e, o), r, s;
if (Object.getOwnPropertySymbols) {
var d = Object.getOwnPropertySymbols(e);
for (s = 0; s < d.length; s++)
r = d[s], !(o.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
}
return a;
}
function Oo(e, o) {
if (e == null) return {};
var a = {}, r = Object.keys(e), s, d;
for (d = 0; d < r.length; d++)
s = r[d], !(o.indexOf(s) >= 0) && (a[s] = e[s]);
return a;
}
var ie = /* @__PURE__ */ Ht(function(e, o) {
var a = e.children, r = _e(e, vo), s = Co(r), d = s.open, f = _e(s, Uo);
return zt(o, function() {
return {
open: d
};
}, [d]), /* @__PURE__ */ Yt.createElement(Vt, null, a(x(x({}, f), {}, {
open: d
})));
});
ie.displayName = "Dropzone";
var mt = {
disabled: !1,
getFilesFromEvent: Zt,
maxSize: 1 / 0,
minSize: 0,
multiple: !0,
maxFiles: 0,
preventDropOnDocument: !0,
noClick: !1,
noKeyboard: !1,
noDrag: !1,
noDragEventsBubbling: !1,
validator: null,
useFsAccessApi: !1
};
ie.defaultProps = mt;
ie.propTypes = {
/**
* Render function that exposes the dropzone state and prop getter fns
*
* @param {object} params
* @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render
* @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render
* @param {Function} params.open Open the native file selection dialog
* @param {boolean} params.isFocused Dropzone area is in focus
* @param {boolean} params.isFileDialogActive File dialog is opened
* @param {boolean} params.isDragActive Active drag is in progress
* @param {boolean} params.isDragAccept Dragged files are accepted
* @param {boolean} params.isDragReject Some dragged files are rejected
* @param {File[]} params.draggedFiles Files in active drag
* @param {File[]} params.acceptedFiles Accepted files
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
*/
children: h.func,
/**
* Set accepted file types.
* See https://github.com/okonet/attr-accept for more information.
* Keep in mind that mime type determination is not reliable across platforms. CSV files,
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
* Windows. In some cases there might not be a mime type set at all.
* See: https://github.com/react-dropzone/react-dropzone/issues/276
*/
accept: h.oneOfType([h.string, h.arrayOf(h.string)]),
/**
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
*/
multiple: h.bool,
/**
* If false, allow dropped items to take over the current browser window
*/
preventDropOnDocument: h.bool,
/**
* If true, disables click to open the native file selection dialog
*/
noClick: h.bool,
/**
* If true, disables SPACE/ENTER to open the native file selection dialog.
* Note that it also stops tracking the focus state.
*/
noKeyboard: h.bool,
/**
* If true, disables drag 'n' drop
*/
noDrag: h.bool,
/**
* If true, stops drag event propagation to parents
*/
noDragEventsBubbling: h.bool,
/**
* Minimum file size (in bytes)
*/
minSize: h.number,
/**
* Maximum file size (in bytes)
*/
maxSize: h.number,
/**
* Maximum accepted number of files
* The default value is 0 which means there is no limitation to how many files are accepted.
*/
maxFiles: h.number,
/**
* Enable/disable the dropzone
*/
disabled: h.bool,
/**
* Use this to provide a custom file aggregator
*
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
*/
getFilesFromEvent: h.func,
/**
* Cb for when closing the file dialog with no selection
*/
onFileDialogCancel: h.func,
/**
* Cb for when opening the file dialog
*/
onFileDialogOpen: h.func,
/**
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
* to open the file picker instead of using an `<input type="file">` click event.
*/
useFsAccessApi: h.bool,
/**
* Cb for when the `dragenter` event occurs.
*
* @param {DragEvent} event
*/
onDragEnter: h.func,
/**
* Cb for when the `dragleave` event occurs
*
* @param {DragEvent} event
*/
onDragLeave: h.func,
/**
* Cb for when the `dragover` event occurs
*
* @param {DragEvent} event
*/
onDragOver: h.func,
/**
* Cb for when the `drop` event occurs.
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
*
* Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.
* `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.
* If `multiple` is set to false and additional files are dropped,
* all files besides the first will be rejected.
* Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.
*
* Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.
* If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.
*
* `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.
* For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
*
* ```js
* function onDrop(acceptedFiles) {
* const req = request.post('/upload')
* acceptedFiles.forEach(file => {
* req.attach(file.name, file)
* })
* req.end(callback)
* }
* ```
*
* @param {File[]} acceptedFiles
* @param {FileRejection[]} fileRejections
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
*/
onDrop: h.func,
/**
* Cb for when the `drop` event occurs.
* Note that if no files are accepted, this callback is not invoked.
*
* @param {File[]} files
* @param {(DragEvent|Event)} event
*/
onDropAccepted: h.func,
/**
* Cb for when the `drop` event occurs.
* Note that if no files are rejected, this callback is not invoked.
*
* @param {FileRejection[]} fileRejections
* @param {(DragEvent|Event)} event
*/
onDropRejected: h.func,
/**
* Custom validation function
* @param {File} file
* @returns {FileError|FileError[]}
*/
validator: h.func
};
var He = {
isFocused: !1,
isFileDialogActive: !1,
isDragActive: !1,
isDragAccept: !1,
isDragReject: !1,
draggedFiles: [],
acceptedFiles: [],
fileRejections: []
};
function Co() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = x(x({}, mt), e), a = o.accept, r = o.disabled, s = o.getFilesFromEvent, d = o.maxSize, f = o.minSize, c = o.multiple, E = o.maxFiles, g = o.onDragEnter, A = o.onDragLeave, j = o.onDragOver, T = o.onDrop, L = o.onDropAccepted, S = o.onDropRejected, H = o.onFileDialogCancel, B = o.onFileDialogOpen, Y = o.useFsAccessApi, Z = o.preventDropOnDocument, le = o.noClick, y = o.noKeyboard, de = o.noDrag, v = o.noDragEventsBubbling, ce = o.validator, O = Ee(function() {
return typeof B == "function" ? B : nt;
}, [B]), M = Ee(function() {
return typeof H == "function" ? H : nt;
}, [H]), U = Me(null), w = Me(null), pe = Wt(So, He), Ae = ke(pe, 2), z = Ae[0], D = Ae[1], we = z.isFocused, Q = z.isFileDialogActive, X = z.draggedFiles, ue = function() {
Q && setTimeout(function() {
if (w.current) {
var p = w.current.files;
p.length || (D({
type: "closeDialog"
}), M());
}
}, 300);
};
$e(function() {
return Y && at() ? function() {
} : (window.addEventListener("focus", ue, !1), function() {
window.removeEventListener("focus", ue, !1);
});
}, [w, Q, M, Y]);
var k = Me([]), V = function(p) {
U.current && U.current.contains(p.target) || (p.preventDefault(), k.current = []);
};
$e(function() {
return Z && (document.addEventListener("dragover", ot, !1), document.addEventListener("drop", V, !1)), function() {
Z && (document.removeEventListener("dragover", ot), document.removeEventListener("drop", V));
};
}, [U, Z]);
var fe = N(function(l) {
l.preventDefault(), l.persist(), xe(l), k.current = [].concat(_o(k.current), [l.target]), ve(l) && Promise.resolve(s(l)).then(function(p) {
De(l) && !v || (D({
draggedFiles: p,
isDragActive: !0,
type: "setDraggedFiles"
}), g && g(l));
});
}, [s, g, v]), me = N(function(l) {
l.preventDefault(), l.persist(), xe(l);
var p = ve(l);
if (p && l.dataTransfer)
try {
l.dataTransfer.dropEffect = "copy";
} catch {
}
return p && j && j(l), !1;
}, [j, v]), he = N(function(l) {
l.preventDefault(), l.persist(), xe(l);
var p = k.current.filter(function(_) {
return U.current && U.current.contains(_);
}), I = p.indexOf(l.target);
I !== -1 && p.splice(I, 1), k.current = p, !(p.length > 0) && (D({
isDragActive: !1,
type: "setDraggedFiles",
draggedFiles: []
}), ve(l) && A && A(l));
}, [U, A, v]), P = N(function(l, p) {
var I = [], _ = [];
l.forEach(function(F) {
var oe = pt(F, a), $ = ke(oe, 2), Re = $[0], Fe = $[1], Ne = ut(F, f, d), be = ke(Ne, 2), Te = be[0], Oe = be[1], Ce = ce ? ce(F) : null;
if (Re && Te && !Ce)
I.push(F);
else {
var Se = [Fe, Oe];
Ce && (Se = Se.concat(Ce)), _.push({
file: F,
errors: Se.filter(function(yt) {
return yt;
})
});
}
}), (!c && I.length > 1 || c && E >= 1 && I.length > E) && (I.forEach(function(F) {
_.push({
file: F,
errors: [go]
});
}), I.splice(0)), D({
acceptedFiles: I,
fileRejections: _,
type: "setFiles"
}), T && T(I, _, p), _.length > 0 && S && S(_, p), I.length > 0 && L && L(I, p);
}, [D, c, a, f, d, E, T, L, S, ce]), i = N(function(l) {
l.preventDefault(), l.persist(), xe(l), k.current = [], ve(l) && Promise.resolve(s(l)).then(function(p) {
De(l) && !v || P(p, l);
}), D({
type: "reset"
});
}, [s, P, v]), b = N(function() {
if (Y && at()) {
D({
type: "openDialog"
}), O();
var l = {
multiple: c,
types: Eo(a)
};
window.showOpenFilePicker(l).then(function(p) {
return s(p);
}).then(function(p) {
return P(p, null);
}).catch(function(p) {
return M(p);
}).finally(function() {
return D({
type: "closeDialog"
});
});
return;
}
w.current && (D({
type: "openDialog"
}), O(), w.current.value = null, w.current.click());
}, [D, O, M, Y, P, a, c]), J = N(function(l) {
!U.current || !U.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), b());
}, [U, w, b]), W = N(function() {
D({
type: "focus"
});
}, []), ee = N(function() {
D({
type: "blur"
});
}, []), te = N(function() {
le || (Io() ? setTimeout(b, 0) : b());
}, [w, le, b]), R = function(p) {
return r ? null : p;
}, G = function(p) {
return y ? null : R(p);
}, ge = function(p) {
return de ? null : R(p);
}, xe = function(p) {
v && p.stopPropagation();
}, ht = Ee(function() {
return function() {
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, I = p === void 0 ? "ref" : p, _ = l.role, F = l.onKeyDown, oe = l.onFocus, $ = l.onBlur, Re = l.onClick, Fe = l.onDragEnter, Ne = l.onDragOver, be = l.onDragLeave, Te = l.onDrop, Oe = _e(l, jo);
return x(x(Ye({
onKeyDown: G(C(F, J)),
onFocus: G(C(oe, W)),
onBlur: G(C($, ee)),
onClick: R(C(Re, te)),
onDragEnter: ge(C(Fe, fe)),
onDragOver: ge(C(Ne, me)),
onDragLeave: ge(C(be, he)),
onDrop: ge(C(Te, i)),
role: typeof _ == "string" && _ !== "" ? _ : "button"
}, I, U), !r && !y ? {
tabIndex: 0
} : {}), Oe);
};
}, [U, J, W, ee, te, fe, me, he, i, y, de, r]), gt = N(function(l) {
l.stopPropagation();
}, []), xt = Ee(function() {
return function() {
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, I = p === void 0 ? "ref" : p, _ = l.onChange, F = l.onClick, oe = _e(l, Do), $ = Ye({
accept: a,
multiple: c,
type: "file",
style: {
display: "none"
},
onChange: R(C(_, i)),
onClick: R(C(F, gt)),
autoComplete: "off",
tabIndex: -1
}, I, w);
return x(x({}, $), oe);
};
}, [w, a, c, i, r]), ze = X.length, Ve = ze > 0 && xo({
files: X,
accept: a,
minSize: f,
maxSize: d,
multiple: c,
maxFiles: E
}), bt = ze > 0 && !Ve;
return x(x({}, z), {}, {
isDragAccept: Ve,
isDragReject: bt,
isFocused: we && !r,
getRootProps: ht,
getInputProps: xt,
rootRef: U,
inputRef: w,
open: R(b)
});
}
function So(e, o) {
switch (o.type) {
case "focus":
return x(x({}, e), {}, {
isFocused: !0
});
case "blur":
return x(x({}, e), {}, {
isFocused: !1
});
case "openDialog":
return x(x({}, He), {}, {
isFileDialogActive: !0
});
case "closeDialog":
return x(x({}, e), {}, {
isFileDialogActive: !1
});
case "setDraggedFiles":
var a = o.isDragActive, r = o.draggedFiles;
return x(x({}, e), {}, {
draggedFiles: r,
isDragActive: a
});
case "setFiles":
return x(x({}, e), {}, {
acceptedFiles: o.acceptedFiles,
fileRejections: o.fileRejections
});
case "reset":
return x({}, He);
default:
return e;
}
}
function nt() {
}
function re({
title: e,
children: o,
id: a,
defaultState: r = "closed"
}) {
const [s, d] = ne(r === "open"), f = `${a}-region`, c = () => d(!s);
return /* @__PURE__ */ t.jsxs(
"section",
{
className: `sid-expanding-section sid-expanding-section-${a} sid-l-space-top-sm sid-l-space-btm-sm`,
children: [
/* @__PURE__ */ t.jsx("header", { children: /* @__PURE__ */ t.jsxs(
"button",
{
"aria-controls": f,
"aria-expanded": s,
id: a,
type: "button",
className: "sid-expanding-section__title",
onClick: c,
children: [
/* @__PURE__ */ t.jsx("span", { children: e }),
/* @__PURE__ */ t.jsx(
"div",
{
className: `sid-expanding-section__indicator sid-expanding-section__indicator--state-${s ? "open" : "closed"}`
}
)
]
}
) }),
/* @__PURE__ */ t.jsx("div", { id: f, role: "region", "aria-labelledby": a, children: s && /* @__PURE__ */ t.jsx("div", { className: "sid-expanding-section__children", children: o }) })
]
}
);
}
const Lo = {
[u.STUDENT]: [
"step.docUpload.acceptableUploads.student.idCard",
"step.docUpload.acceptableUploads.student.classSchedule",
"step.docUpload.acceptableUploads.student.tuitionReceipt"
],
[u.TEACHER]: [
"step.docUpload.acceptableUploads.officialLetter",
"step.docUpload.acceptableUploads.teacher.idCard",
"step.docUpload.acceptableUploads.teacher.payStub"
],
[u.MEDICAL]: [
"step.docUpload.acceptableUploads.medical.idCard",
"step.docUpload.acceptableUploads.medical.payStub",
"step.docUpload.acceptableUploads.medical.letterEmployment"
],
[u.FIRST_RESPONDER]: [
"step.docUpload.acceptableUploads.firstResponder.idCard",
"step.docUpload.acceptableUploads.firstResponder.letter",
"step.docUpload.acceptableUploads.firstResponder.payStub"
],
[u.MILITARY]: [],
[u.MEMBER]: [
"step.docUpload.acceptableUploads.member.idCard",
"step.docUpload.acceptableUploads.member.payStub"
],
[u.SENIOR]: [
"step.docUpload.acceptableUploads.senior.birthCertificate",
"step.docUpload.acceptableUploads.senior.driversLicense",
"step.docUpload.acceptableUploads.senior.passport",
"step.docUpload.acceptableUploads.senior.stateId"
],
[u.AGE]: [
"step.docUpload.acceptableUploads.senior.birthCertificate",
"step.docUpload.acceptableUploads.senior.driversLicense",
"step.docUpload.acceptableUploads.senior.passport",
"step.docUpload.acceptableUploads.senior.stateId"
],
[u.EMPLOYMENT]: [
"step.docUpload.acceptableUploads.employment.employeeIdCard",
"step.docUpload.acceptableUploads.employment.payStub",
"step.docUpload.acceptableUploads.employment.officialLetter"
],
[u.IDENTITY]: [],
[u.LICENSED_PROFESSIONAL]: [],
[u.RECENT_MOVER]: [
"step.docUpload.acceptableUploads.recentMover.changeOfAddress",
"step.docUpload.acceptableUploads.recentMover.mortgageDeed",
"step.docUpload.acceptableUploads.recentMover.rentalAgreement"
],
[u.LOW_INCOME]: [
"step.docUpload.acceptableUploads.lowIncome.program",
"step.docUpload.acceptableUploads.lowIncome.programApprovalLetter",
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
]
}, Mo = {
[n.ACTIVE_DUTY]: [
"step.docUpload.acceptableUploads.military.active.leaveEarningStatement",
"step.docUpload.acceptableUploads.military.active.uniformedServicesId"
],
[n.VETERAN]: [
"step.docUpload.acceptableUploads.military.vet.dd214Form",
"step.docUpload.acceptableUploads.military.vet.dischargeCertificate",
"step.docUpload.acceptableUploads.military.vet.vaHealthBenefitsCard",
"step.docUpload.acceptableUploads.military.vet.vaDigitalId",
"step.docUpload.acceptableUploads.military.vet.driverLicenseVeteran",
"step.docUpload.acceptableUploads.military.vet.departmentVeteranId"
],
[n.RESERVIST]: [
"step.docUpload.acceptableUploads.military.reservist.leaveEarningStatement",
"step.docUpload.acceptableUploads.military.reservist.uniformedServicesId"
],
[n.MILITARY_RETIREE]: [
"step.docUpload.acceptableUploads.military.militaryRetiree.blueUniformedId",
"step.docUpload.acceptableUploads.military.militaryRetiree.vaHealthBenefitsCard",
"step.docUpload.acceptableUploads.military.militaryRetiree.retireeId",
"step.docUpload.acceptableUploads.military.militaryRetiree.dd214Form",
"step.docUpload.acceptableUploads.military.militaryRetiree.vaDigitalId"
],
[n.MILITARY_FAMILY]: [
"step.docUpload.acceptableUploads.military.dependent",
// "Any document that proves you are a Registered Military Dependent"
"step.docUpload.nameChanged"
// "If your name has changed since the document was issued, upload a 2nd document showing your official name change."
],
[n.GOLD_STAR_FAMILY]: [],
[n.FIREFIGHTER]: [],
[n.POLICE]: [],
[n.EMT]: [],
[n.NURSE]: [],
[n.DRIVER_LICENSE]: [],
[n.GENERAL_IDENTITY]: [],
[n.HYBRID_IDENTITY]: [],
[n.HOME_BUYER]: [],
[n.OTHER_MOVER]: [],
[n.LICENSED_COSMETOLOGIST]: [
"step.docUpload.acceptableUploads.licensedProfessional.license"
],
[n.LICENSED_REAL_ESTATE_AGENT]: [
"step.docUpload.acceptableUploads.licensedProfessional.license"
],
[n.VETERINARIAN]: ["step.docUpload.acceptableUploads.licensedProfessional.license"],
[n.SNAP_BENEFITS]: [
"step.docUpload.acceptableUploads.lowIncome.programCard",
"step.docUpload.acceptableUploads.lowIncome.programApprovalLetter",
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
],
[n.OTHER_GOVERNMENT_ASSISTANCE]: [
"step.docUpload.acceptableUploads.lowIncome.program",
"step.docUpload.acceptableUploads.lowIncome.programApprovalLetter",
"step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
"step.docUpload.acceptableUploads.lowIncome.programBankStatement"
],
[n.CHILD_CARE_WORKER]: [
"step.docUpload.acceptableUploads.licensedProfessional.license"
],
[n.LIBRARIAN]: [],
[n.INTERIOR_DESIGNER]: [],
[n.ARCHITECT]: [],
[n.GENERAL_CONTRACTOR]: [],
[n.NUTRITION_PROFESSIONAL]: [
"step.docUpload.acceptableUploads.licensedProfessional.license"
]
}, ko = {
[u.STUDENT]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.institutionName",
"step.docUpload.uploadInfo.dateCurrentYear"
],
[u.TEACHER]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.institutionName",
"step.docUpload.uploadInfo.dateCurrentYear"
],
[u.FIRST_RESPONDER]: ["step.docUpload.uploadInfo.fullName"],
[u.MEDICAL]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.medical.medicalRole",
"step.docUpload.uploadInfo.medical.validDate"
],
[u.MILITARY]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.military.serviceBranch"
],
[u.IDENTITY]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.dateCurrentYear"
],
[u.MEMBER]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.organization",
"step.docUpload.uploadInfo.affiliation"
],
[u.SENIOR]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.senior.birthDate"
],
[u.AGE]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.age.birthDate"
],
[u.EMPLOYMENT]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.employment.company",
"step.docUpload.uploadInfo.employment.currentAffiliation",
"step.docUpload.uploadInfo.medical.validDate"
],
[u.LICENSED_PROFESSIONAL]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.licensedProfessional.licenseStatus",
"step.docUpload.uploadInfo.licensedProfessional.validDate"
],
[u.RECENT_MOVER]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.recentMover.address",
"step.docUpload.uploadInfo.recentMover.validDate"
],
[u.LOW_INCOME]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.lowIncome.validDate"
]
}, Po = {
[n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
[n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
[n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
[n.MILITARY_RETIREE]: ["step.docUpload.uploadInfo.military.militaryRetiree.status"],
[n.MILITARY_FAMILY]: [
// Overridden in SubSegmentUploadInfoOverrides
],
[n.GOLD_STAR_FAMILY]: [],
[n.FIREFIGHTER]: ["step.docUpload.uploadInfo.firstResponder.firefighter.status"],
[n.POLICE]: ["step.docUpload.uploadInfo.firstResponder.police.status"],
[n.EMT]: ["step.docUpload.uploadInfo.firstResponder.emt.status"],
[n.NURSE]: [],
[n.DRIVER_LICENSE]: [],
[n.GENERAL_IDENTITY]: [],
[n.HYBRID_IDENTITY]: [],
[n.HOME_BUYER]: [],
[n.OTHER_MOVER]: [],
[n.LICENSED_COSMETOLOGIST]: [],
[n.LICENSED_REAL_ESTATE_AGENT]: [],
[n.VETERINARIAN]: [],
[n.SNAP_BENEFITS]: [],
[n.OTHER_GOVERNMENT_ASSISTANCE]: [],
[n.CHILD_CARE_WORKER]: [],
[n.LIBRARIAN]: [],
[n.INTERIOR_DESIGNER]: [],
[n.ARCHITECT]: [],
[n.GENERAL_CONTRACTOR]: [],
[n.NUTRITION_PROFESSIONAL]: []
}, Bo = {
// MILITARY_FAMILY is overridden to not show branch of service.
[n.MILITARY_FAMILY]: [
"step.docUpload.uploadInfo.fullName",
"step.docUpload.uploadInfo.military.militaryFamily.status"
]
};
function Yo(e, o) {
return [
.../* @__PURE__ */ new Set([
...Mo[o] || [],
...Lo[e] || []
])
];
}
function Ho(e, o) {
return Bo[o] || [
.../* @__PURE__ */ new Set([
...Po[o] || [],
...ko[e] || []
])
];
}
const zo = ({
options: e,
selected: o,
onChange: a,
showError: r
}) => {
const s = (d, f) => {
f.target.checked ? a(o.concat(d)) : a(o.filter((c) => c !== d));
};
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
/* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-top-md sid-l-space-btm-md", children: /* @__PURE__ */ t.jsx(
m,
{
id: "experiment.step.docUpload.documentMustInclude",
defaultMessage: "Your documents must include:"
}
) }),
/* @__PURE__ */ t.jsx("fieldset", { className: "sid-doc-requirements", children: e.map((d) => (
// Disabling because the linter is kinda broken. the control is INSIDE THE LABEL
// eslint-disable-next-line jsx-a11y/label-has-associated-control
/* @__PURE__ */ t.jsxs("label", { className: "sid-doc-requirements__option", children: [
/* @__PURE__ */ t.jsx(
"input",
{
type: "checkbox",
name: "requirements",
value: d,
checked: o.includes(d),
onChange: s.bind(null, d),
"aria-invalid": r && !o.includes(d)
}
),
/* @__PURE__ */ t.jsxs("div", { className: "sid-l-space-btm-md", children: [
/* @__PURE__ */ t.jsx(m, { id: d }),
r && !o.includes(d) && /* @__PURE__ */ t.jsx("div", { className: "sid-field-error", children: /* @__PURE__ */ t.jsx(
m,
{
id: "step.docUpload.confirm",
defaultMessage: "Please confirm."
}
) })
] })
] })
)) })
] });
}, Vo = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
/* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
/* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
] });
function Wo({
title: e,
titleId: o,
...a
}, r) {
return /* @__PURE__ */ Ue.createElement("svg", Object.assign({
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
viewBox: "0 0 24 24",
strokeWidth: 1.5,
stroke: "currentColor",
"aria-hidden": "true",
"data-slot": "icon",
ref: r,
"aria-labelledby": o
}, a), e ? /* @__PURE__ */ Ue.createElement("title", {
id: o
}, e) : null, /* @__PURE__ */ Ue.createElement("path", {
strokeLinecap: "round",
strokeLinejoin: "round",
d: "M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
}));
}
const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: 168,
height: 168,
fill: "none",
viewBox: "0 0 168 168",
...e,
children: [
/* @__PURE__ */ t.jsx("circle", { cx: 83.514, cy: 85.516, r: 64, fill: "#F1F5F9", transform: "rotate(5.116 83.514 85.516)" }),
/* @__PURE__ */ t.jsx(
"rect",
{
width: 69.14,
height: 130.872,
x: 37.134,
y: 27.051,
fill: "#fff",
rx: 8,
transform: "rotate(-11.496 37.134 27.05)"
}
),
/* @__PURE__ */ t.jsx(
"path",
{
fill: "#94A3B8",
d: "m44.394 50.569 62.986-12.81 10.335 50.815-62.986 12.81z",
opacity: 0.7
}
),
/* @__PURE__ */ t.jsx(
"rect",
{
width: 59.482,
height: 42.197,
x: 81.641,
y: 46.525,
fill: "#fff",
stroke: "#0F172A",
strokeWidth: 2.25,
rx: 3.225,
transform: "rotate(-1.248 81.64 46.525)"
}
),
/* @__PURE__ */ t.jsx(
"path",
{
fill: "#B0BCCC",
d: "m83.376 80.513 57.558-1.025.088 5a2 2 0 0 1-1.964 2.034l-53.558.954a2 2 0 0 1-2.035-1.964l-.089-4.999ZM140.162 53.003l-57.208 1.5-.108-4.791a2.06 2.06 0 0 1 2.006-2.106l52.899-1.387a2.25 2.25 0 0 1 2.308 2.199l.103 4.585Z"
}
),
/* @__PURE__ */ t.jsx(
"path",
{
stroke: "#000",
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: 2,
d: "M102.982 73.725a7.491 7.491 0 0 0-5.983-2.975 7.489 7.489 0 0 0-5.981 2.975m11.964 0a9 9 0 1 0-11.965 0m11.965 0A8.97 8.97 0 0 1 96.999 76a8.966 8.966 0 0 1-5.981-2.275m8.981-8.975a3 3 0 1 1-5.998 0 3 3 0 0 1 5.998 0Z"
}
),
/* @__PURE__ */ t.jsx(
"circle",
{
cx: 93.647,
cy: 131.469,
r: 4.939,
fill: "#0F172A",
transform: "rotate(-11.496 93.647 131.469)"
}
),
/* @__PURE__ */ t.jsx("path", { stroke: "#000", strokeWidth: 2, d: "M111 63h23M111 67h17M111 71h19" }),
/* @__PURE__ */ t.jsx(
"rect",
{
width: 66.14,
height: 127.872,
x: 38.903,
y: 28.222,
stroke: "#000",
strokeWidth: 3,
rx: 6.5,
transform: "rotate(-11.496 38.903 28.222)"
}
)
]
}
), st = (e) => /* @__PURE__ */ t.jsxs(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: 80,
height: 80,
fill: "none",
viewBox: "0 0 80 80",
...e,
children: [
/* @__PURE__ */ t.jsx("circle", { cx: 41.757, cy: 42.758, r: 32, fill: "#F1F5F9", transform: "rotate(5.116 41.757 42.758)" }),
/* @__PURE__ */ t.jsx(
"rect",
{
width: 34.57,
height: 65.436,
x: 18.566,
y: 13.525,
fill: "#fff",
rx: 4,
transform: "rotate(-11.496 18.566 13.525)"
}
),
/* @__PURE__ */ t.jsx("path", { fill: "#94A3B8", d: "M22.197 25.285 53.69 18.88l5.168 25.407-31.494 6.405z", opacity: 0.7 }),
/* @__PURE__ */ t.jsx(
"rect",
{
width: 29.741,
height: 21.099,
x: 40.821,
y: 23.263,
fill: "#fff",
stroke: "#0F172A",
strokeWidth: 1.125,
rx: 1.613,
transform: "rotate(-1.248 40.82 23.263)"
}
),
/* @__PURE__ */ t.jsx(
"path",
{
stroke: "#000",
strokeLinecap: "round",
strokeLinejoin: "round",
d: "M51.991 37.363a3.743 3.743 0 0 0-2.99-1.488 3.745 3.745 0 0 0-2.992 1.488m5.982 0A4.499 4.499 0 0 0 49 29.5a4.5 4.5 0 0 0-2.99 7.863m5.981 0a4.484 4.484 0 0 1-2.99 1.137 4.483 4.483 0 0 1-2.992-1.137m4.491-4.488a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"
}
),
/* @__PURE__ */ t.jsx("path", { stroke: "#000", d: "M56 32h11.5M56 34h8.5M56 36h9.5" }),
/* @__PURE__ */ t.jsx(
"path",
{
fill: "#B0BCCC",
d: "m41.688 40.257 28.778-.513.045 2.5a1 1 0 0 1-.982 1.017l-26.78.477a1 1 0 0 1-1.017-.982l-.044-2.5ZM70.082 26.502l-28.604.75-.054-2.396a1.03 1.03 0 0 1 1.002-1.053l26.45-.693a1.125 1.125 0 0 1 1.154 1.099l.052 2.293Z"
}
),
/* @__PURE__ */ t.jsx(
"circle",
{
cx: 46.824,
cy: 65.735,
r: 2.469,
fill: "#0F172A",
transform: "rotate(-11.496 46.824 65.735)"
}
),
/* @__PURE__ */ t.jsx(
"rect",
{
width: 33.07,
height: 63.936,
x: 19.451,
y: 14.111,
stroke: "#000",
strokeWidth: 1.5,
rx: 3.25,
transform: "rotate(-11.496 19.45 14.11)"
}
)
]
}
), Ko = (e) => /* @__PURE__ */ t.jsxs(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
width: 168,
height: 168,
fill: "none",
viewBox: "0 0 168 168",
...e,
children: [
/* @__PURE__ */ t.jsx("circle", { cx: 83.901, cy: 85.086, r: 64, fill: "#F1F5F9", transform: "rotate(-.812 83.901 85.086)" }),
/* @__PURE__ */ t.jsx("path", { stroke: "#535A68", strokeLinecap: "round", strokeWidth: 2.05, d: "M45.1 58.913h14.862" }),
/* @__PURE__ */ t.jsx(
"rect",
{
width: 102,
height: 111,
x: 32.5,
y: 29.5,
fill: "#fff",
stroke: "#000",
strokeWidth: 3,
rx: 6.5
}
),
/* @__PURE__ */ t.jsx("rect", { width: 14, height: 48, x: 43, y: 75, fill: "#F1F5F9", rx: 2.148 }),
/* @__PURE__ */ t.jsx("rect", { width: 13.962, height: 5.817, x: 43, y: 84.56, fill: "#64748B", rx: 2 }),
/* @__PURE__ */ t.jsx("rect", { width: 13.962, height: 5.817, x: 43, y: 93.868, fill: "#CBD5E1", rx: 2 }),
/* @__PURE__ */ t.jsx("rect", { width: 13.962, height: 5.817, x: 43, y: 112.484, fill: "#94A3B8", rx: 2 }),
/* @__PURE__ */ t.jsx("rect", { width: 14, height: 48, x: 60.06, y: 75, fill: "#F1F5F9", rx: 2.148 }),
/* @__PURE__ */ t.jsx("rect", { width: 13.962, height: 5.817, x: 60, y: 93.868, fill: "#64748B", rx: 2 }),
/* @__PURE__ */ t.jsx("rect", { width: 13.962, height: 5.817, x: 60, y: 112.484, fill: "#CBD5E1", rx: 2 }),
/* @__PURE__ */ t.jsx("rect", { width: 14, height: 48, x: 77.06, y: 75, fill: "#F1F5F9", rx: 2.148 }),
/* @__PURE__ */ t.jsx("rect", { width: 13.962, height: 5.817, x: 77.06, y: 84.56, fill: "#94A3B8", rx: 2 }),
/* @__PURE__ */ t.jsx("rect", { width: 13.962, height: 5.817, x: 77.06, y: 93.868, fi