UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

1,529 lines (1,528 loc) • 83.1 kB
/** * WARNING: This file is intended to be used within MySheerID. * This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID. */ /** * VERSION: 2.154.0-alpha.1 * BUILD_TIMESTAMP: 1763401584959 * BUILD_DATE: Mon Nov 17 2025 17:46:24 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: 73f4468155aaed0f31ab0d59dc3394018b939b6d */ import { o as je, aX as Ye, r as f, aY as J, aZ as ee, a_ as Et, a$ as It, R as vt, b0 as g, j as t, b1 as n, aO as u, c as h, i as Ut, af as Ee, b2 as jt, g as Dt, b3 as _t, e as At, b4 as We, p as wt, A as Rt, b5 as Ft, T as Nt, b6 as Ct, b7 as Ot, b8 as Tt, n as St, l as Se, V as Ie, aB as Ge, aC as $e, b9 as Lt, ba as Mt, bb as kt, bc as Pt } from "../_mysheerid-preview.js"; const Bt = (e, a, o) => je(e, (r) => { Object.keys(e).filter((s) => !!e[s] && s.includes("file")).map((s) => e[s]).concat(a, Array(Ye).fill(void 0)).splice(0, 3).forEach((s, d) => r[`file${d + 1}`] = s), o ? r.erroredFileNames = o : r.erroredFileNames = void 0; }), Yt = (e, a) => { if (![1, 2, 3].includes(a)) throw new Error( `Expected either 1, 2 or 3 for argument "fileNumber", but received ${a}` ); return je(e, (o) => { Object.keys(e).filter((r) => r.includes("file") && !r.includes(a.toString())).map((r) => e[r]).concat(Array(Ye).fill(void 0)).splice(0, 3).forEach((r, s) => o[`file${s + 1}`] = r); }); }; function Ht({ title: e, titleId: a, ...o }, r) { return /* @__PURE__ */ f.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": a }, o), e ? /* @__PURE__ */ f.createElement("title", { id: a }, e) : null, /* @__PURE__ */ f.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 zt = /* @__PURE__ */ f.forwardRef(Ht); function Vt({ title: e, titleId: a, ...o }, r) { return /* @__PURE__ */ f.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": a }, o), e ? /* @__PURE__ */ f.createElement("title", { id: a }, e) : null, /* @__PURE__ */ f.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" })); } const Wt = /* @__PURE__ */ f.forwardRef(Vt); var Gt = /* @__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 ce(e, a) { var o = $t(e); if (typeof o.path != "string") { var r = e.webkitRelativePath; Object.defineProperty(o, "path", { value: typeof a == "string" ? a : typeof r == "string" && r.length > 0 ? r : e.name, writable: !1, configurable: !1, enumerable: !0 }); } return o; } function $t(e) { var a = e.name, o = a && a.lastIndexOf(".") !== -1; if (o && !e.type) { var r = a.split(".").pop().toLowerCase(), s = Gt.get(r); s && Object.defineProperty(e, "type", { value: s, writable: !1, configurable: !1, enumerable: !0 }); } return e; } var Kt = [ // Thumbnail cache files for macOS and Windows ".DS_Store", "Thumbs.db" // Windows ]; function qt(e) { return J(this, void 0, void 0, function() { return ee(this, function(a) { return De(e) && Zt(e) ? [2, ea(e.dataTransfer, e.type)] : Qt(e) ? [2, Xt(e)] : Array.isArray(e) && e.every(function(o) { return "getFile" in o && typeof o.getFile == "function"; }) ? [2, Jt(e)] : [2, []]; }); }); } function Zt(e) { return De(e.dataTransfer); } function Qt(e) { return De(e) && De(e.target); } function De(e) { return typeof e == "object" && e !== null; } function Xt(e) { return Me(e.target.files).map(function(a) { return ce(a); }); } function Jt(e) { return J(this, void 0, void 0, function() { var a; return ee(this, function(o) { switch (o.label) { case 0: return [4, Promise.all(e.map(function(r) { return r.getFile(); }))]; case 1: return a = o.sent(), [2, a.map(function(r) { return ce(r); })]; } }); }); } function ea(e, a) { return J(this, void 0, void 0, function() { var o, r; return ee(this, function(s) { switch (s.label) { case 0: return e === null ? [2, []] : e.items ? (o = Me(e.items).filter(function(d) { return d.kind === "file"; }), a !== "drop" ? [2, o] : [4, Promise.all(o.map(ta))]) : [3, 2]; case 1: return r = s.sent(), [2, Ke(dt(r))]; case 2: return [2, Ke(Me(e.files).map(function(d) { return ce(d); }))]; } }); }); } function Ke(e) { return e.filter(function(a) { return Kt.indexOf(a.name) === -1; }); } function Me(e) { if (e === null) return []; for (var a = [], o = 0; o < e.length; o++) { var r = e[o]; a.push(r); } return a; } function ta(e) { if (typeof e.webkitGetAsEntry != "function") return qe(e); var a = e.webkitGetAsEntry(); return a && a.isDirectory ? ct(a) : qe(e); } function dt(e) { return e.reduce(function(a, o) { return Et(a, Array.isArray(o) ? dt(o) : [o]); }, []); } function qe(e) { var a = e.getAsFile(); if (!a) return Promise.reject(e + " is not a File"); var o = ce(a); return Promise.resolve(o); } function aa(e) { return J(this, void 0, void 0, function() { return ee(this, function(a) { return [2, e.isDirectory ? ct(e) : oa(e)]; }); }); } function ct(e) { var a = e.createReader(); return new Promise(function(o, r) { var s = []; function d() { var m = this; a.readEntries(function(c) { return J(m, void 0, void 0, function() { var U, R, C; return ee(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 U = j.sent(), o(U), [3, 4]; case 3: return R = j.sent(), r(R), [3, 4]; case 4: return [3, 6]; case 5: C = Promise.all(c.map(aa)), s.push(C), d(), j.label = 6; case 6: return [ 2 /*return*/ ]; } }); }); }, function(c) { r(c); }); } d(); }); } function oa(e) { return J(this, void 0, void 0, function() { return ee(this, function(a) { return [2, new Promise(function(o, r) { e.file(function(s) { var d = ce(s, e.fullPath); o(d); }, function(s) { r(s); }); })]; }); }); } var ve = {}, Ze; function ra() { return Ze || (Ze = 1, ve.__esModule = !0, ve.default = function(e, a) { if (e && a) { var o = Array.isArray(a) ? a : a.split(","); if (o.length === 0) return !0; var r = e.name || "", s = (e.type || "").toLowerCase(), d = s.replace(/\/.*$/, ""); return o.some(function(m) { var c = m.trim().toLowerCase(); return c.charAt(0) === "." ? r.toLowerCase().endsWith(c) : c.endsWith("/*") ? d === c.replace(/\/.*$/, "") : s === c; }); } return !0; }), ve; } var na = ra(); const sa = /* @__PURE__ */ It(na); function Qe(e, a) { var o = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); a && (r = r.filter(function(s) { return Object.getOwnPropertyDescriptor(e, s).enumerable; })), o.push.apply(o, r); } return o; } function Xe(e) { for (var a = 1; a < arguments.length; a++) { var o = arguments[a] != null ? arguments[a] : {}; a % 2 ? Qe(Object(o), !0).forEach(function(r) { pt(e, r, o[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Qe(Object(o)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r)); }); } return e; } function pt(e, a, o) { return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e; } function Je(e, a) { return ca(e) || da(e, a) || la(e, a) || ia(); } function ia() { 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 la(e, a) { if (e) { if (typeof e == "string") return et(e, a); var o = Object.prototype.toString.call(e).slice(8, -1); if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e); if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return et(e, a); } } function et(e, a) { (a == null || a > e.length) && (a = e.length); for (var o = 0, r = new Array(a); o < a; o++) r[o] = e[o]; return r; } function da(e, a) { var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (o != null) { var r = [], s = !0, d = !1, m, c; try { for (o = o.call(e); !(s = (m = o.next()).done) && (r.push(m.value), !(a && r.length === a)); s = !0) ; } catch (U) { d = !0, c = U; } finally { try { !s && o.return != null && o.return(); } finally { if (d) throw c; } } return r; } } function ca(e) { if (Array.isArray(e)) return e; } var pa = "file-invalid-type", ua = "file-too-large", fa = "file-too-small", ma = "too-many-files", ha = function(a) { a = Array.isArray(a) && a.length === 1 ? a[0] : a; var o = Array.isArray(a) ? "one of ".concat(a.join(", ")) : a; return { code: pa, message: "File type must be ".concat(o) }; }, tt = function(a) { return { code: ua, message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes") }; }, at = function(a) { return { code: fa, message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes") }; }, ga = { code: ma, message: "Too many files" }; function ut(e, a) { var o = e.type === "application/x-moz-file" || sa(e, a); return [o, o ? null : ha(a)]; } function ft(e, a, o) { if (le(e.size)) if (le(a) && le(o)) { if (e.size > o) return [!1, tt(o)]; if (e.size < a) return [!1, at(a)]; } else { if (le(a) && e.size < a) return [!1, at(a)]; if (le(o) && e.size > o) return [!1, tt(o)]; } return [!0, null]; } function le(e) { return e != null; } function xa(e) { var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, m = e.maxFiles; return !d && a.length > 1 || d && m >= 1 && a.length > m ? !1 : a.every(function(c) { var U = ut(c, o), R = Je(U, 1), C = R[0], j = ft(c, r, s), b = Je(j, 1), O = b[0]; return C && O; }); } function _e(e) { return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1; } function Ue(e) { return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) { return a === "Files" || a === "application/x-moz-file"; }) : !!e.target && !!e.target.files; } function ot(e) { e.preventDefault(); } function ba(e) { return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1; } function ya(e) { return e.indexOf("Edge/") !== -1; } function Ea() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent; return ba(e) || ya(e); } function L() { for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++) a[o] = arguments[o]; return function(r) { for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), m = 1; m < s; m++) d[m - 1] = arguments[m]; return a.some(function(c) { return !_e(r) && c && c.apply(void 0, [r].concat(d)), _e(r); }); }; } function rt() { return "showOpenFilePicker" in window; } function Ia(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(a) { return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || /\w+\/[-+.\w]+/g.test(a); }).reduce(function(a, o) { return Xe(Xe({}, a), {}, pt({}, o, [])); }, {}) : {} }]; } var va = ["children"], Ua = ["open"], ja = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Da = ["refKey", "onChange", "onClick"]; function _a(e) { return Ra(e) || wa(e) || mt(e) || Aa(); } function Aa() { 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 wa(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function Ra(e) { if (Array.isArray(e)) return ke(e); } function Le(e, a) { return Ca(e) || Na(e, a) || mt(e, a) || Fa(); } function Fa() { 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 mt(e, a) { if (e) { if (typeof e == "string") return ke(e, a); var o = Object.prototype.toString.call(e).slice(8, -1); if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e); if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return ke(e, a); } } function ke(e, a) { (a == null || a > e.length) && (a = e.length); for (var o = 0, r = new Array(a); o < a; o++) r[o] = e[o]; return r; } function Na(e, a) { var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (o != null) { var r = [], s = !0, d = !1, m, c; try { for (o = o.call(e); !(s = (m = o.next()).done) && (r.push(m.value), !(a && r.length === a)); s = !0) ; } catch (U) { d = !0, c = U; } finally { try { !s && o.return != null && o.return(); } finally { if (d) throw c; } } return r; } } function Ca(e) { if (Array.isArray(e)) return e; } function nt(e, a) { var o = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); a && (r = r.filter(function(s) { return Object.getOwnPropertyDescriptor(e, s).enumerable; })), o.push.apply(o, r); } return o; } function x(e) { for (var a = 1; a < arguments.length; a++) { var o = arguments[a] != null ? arguments[a] : {}; a % 2 ? nt(Object(o), !0).forEach(function(r) { Pe(e, r, o[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : nt(Object(o)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r)); }); } return e; } function Pe(e, a, o) { return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e; } function Ae(e, a) { if (e == null) return {}; var o = Oa(e, a), r, s; if (Object.getOwnPropertySymbols) { var d = Object.getOwnPropertySymbols(e); for (s = 0; s < d.length; s++) r = d[s], !(a.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]); } return o; } function Oa(e, a) { if (e == null) return {}; var o = {}, r = Object.keys(e), s, d; for (d = 0; d < r.length; d++) s = r[d], !(a.indexOf(s) >= 0) && (o[s] = e[s]); return o; } var pe = /* @__PURE__ */ f.forwardRef(function(e, a) { var o = e.children, r = Ae(e, va), s = Ta(r), d = s.open, m = Ae(s, Ua); return f.useImperativeHandle(a, function() { return { open: d }; }, [d]), /* @__PURE__ */ vt.createElement(f.Fragment, null, o(x(x({}, m), {}, { open: d }))); }); pe.displayName = "Dropzone"; var ht = { disabled: !1, getFilesFromEvent: qt, maxSize: 1 / 0, minSize: 0, multiple: !0, maxFiles: 0, preventDropOnDocument: !0, noClick: !1, noKeyboard: !1, noDrag: !1, noDragEventsBubbling: !1, validator: null, useFsAccessApi: !1 }; pe.defaultProps = ht; pe.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: g.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: g.oneOfType([g.string, g.arrayOf(g.string)]), /** * Allow drag 'n' drop (or selection from the file dialog) of multiple files */ multiple: g.bool, /** * If false, allow dropped items to take over the current browser window */ preventDropOnDocument: g.bool, /** * If true, disables click to open the native file selection dialog */ noClick: g.bool, /** * If true, disables SPACE/ENTER to open the native file selection dialog. * Note that it also stops tracking the focus state. */ noKeyboard: g.bool, /** * If true, disables drag 'n' drop */ noDrag: g.bool, /** * If true, stops drag event propagation to parents */ noDragEventsBubbling: g.bool, /** * Minimum file size (in bytes) */ minSize: g.number, /** * Maximum file size (in bytes) */ maxSize: g.number, /** * Maximum accepted number of files * The default value is 0 which means there is no limitation to how many files are accepted. */ maxFiles: g.number, /** * Enable/disable the dropzone */ disabled: g.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: g.func, /** * Cb for when closing the file dialog with no selection */ onFileDialogCancel: g.func, /** * Cb for when opening the file dialog */ onFileDialogOpen: g.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: g.bool, /** * Cb for when the `dragenter` event occurs. * * @param {DragEvent} event */ onDragEnter: g.func, /** * Cb for when the `dragleave` event occurs * * @param {DragEvent} event */ onDragLeave: g.func, /** * Cb for when the `dragover` event occurs * * @param {DragEvent} event */ onDragOver: g.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: g.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: g.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: g.func, /** * Custom validation function * @param {File} file * @returns {FileError|FileError[]} */ validator: g.func }; var Be = { isFocused: !1, isFileDialogActive: !1, isDragActive: !1, isDragAccept: !1, isDragReject: !1, draggedFiles: [], acceptedFiles: [], fileRejections: [] }; function Ta() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = x(x({}, ht), e), o = a.accept, r = a.disabled, s = a.getFilesFromEvent, d = a.maxSize, m = a.minSize, c = a.multiple, U = a.maxFiles, R = a.onDragEnter, C = a.onDragLeave, j = a.onDragOver, b = a.onDrop, O = a.onDropAccepted, te = a.onDropRejected, P = a.onFileDialogCancel, H = a.onFileDialogOpen, T = a.useFsAccessApi, z = a.preventDropOnDocument, V = a.noClick, W = a.noKeyboard, ue = a.noDrag, M = a.noDragEventsBubbling, y = a.validator, ae = f.useMemo(function() { return typeof H == "function" ? H : st; }, [H]), w = f.useMemo(function() { return typeof P == "function" ? P : st; }, [P]), A = f.useRef(null), E = f.useRef(null), oe = f.useReducer(Sa, Be), re = Le(oe, 2), G = re[0], D = re[1], He = G.isFocused, fe = G.isFileDialogActive, me = G.draggedFiles, he = function() { fe && setTimeout(function() { if (E.current) { var p = E.current.files; p.length || (D({ type: "closeDialog" }), w()); } }, 300); }; f.useEffect(function() { return T && rt() ? function() { } : (window.addEventListener("focus", he, !1), function() { window.removeEventListener("focus", he, !1); }); }, [E, fe, w, T]); var k = f.useRef([]), ne = function(p) { A.current && A.current.contains(p.target) || (p.preventDefault(), k.current = []); }; f.useEffect(function() { return z && (document.addEventListener("dragover", ot, !1), document.addEventListener("drop", ne, !1)), function() { z && (document.removeEventListener("dragover", ot), document.removeEventListener("drop", ne)); }; }, [A, z]); var ge = f.useCallback(function(i) { i.preventDefault(), i.persist(), F(i), k.current = [].concat(_a(k.current), [i.target]), Ue(i) && Promise.resolve(s(i)).then(function(p) { _e(i) && !M || (D({ draggedFiles: p, isDragActive: !0, type: "setDraggedFiles" }), R && R(i)); }); }, [s, R, M]), xe = f.useCallback(function(i) { i.preventDefault(), i.persist(), F(i); var p = Ue(i); if (p && i.dataTransfer) try { i.dataTransfer.dropEffect = "copy"; } catch { } return p && j && j(i), !1; }, [j, M]), $ = f.useCallback(function(i) { i.preventDefault(), i.persist(), F(i); var p = k.current.filter(function(_) { return A.current && A.current.contains(_); }), v = p.indexOf(i.target); v !== -1 && p.splice(v, 1), k.current = p, !(p.length > 0) && (D({ isDragActive: !1, type: "setDraggedFiles", draggedFiles: [] }), Ue(i) && C && C(i)); }, [A, C, M]), K = f.useCallback(function(i, p) { var v = [], _ = []; i.forEach(function(N) { var ie = ut(N, o), X = Le(ie, 2), we = X[0], Re = X[1], Fe = ft(N, m, d), ye = Le(Fe, 2), Ne = ye[0], Ce = ye[1], Oe = y ? y(N) : null; if (we && Ne && !Oe) v.push(N); else { var Te = [Re, Ce]; Oe && (Te = Te.concat(Oe)), _.push({ file: N, errors: Te.filter(function(yt) { return yt; }) }); } }), (!c && v.length > 1 || c && U >= 1 && v.length > U) && (v.forEach(function(N) { _.push({ file: N, errors: [ga] }); }), v.splice(0)), D({ acceptedFiles: v, fileRejections: _, type: "setFiles" }), b && b(v, _, p), _.length > 0 && te && te(_, p), v.length > 0 && O && O(v, p); }, [D, c, o, m, d, U, b, O, te, y]), q = f.useCallback(function(i) { i.preventDefault(), i.persist(), F(i), k.current = [], Ue(i) && Promise.resolve(s(i)).then(function(p) { _e(i) && !M || K(p, i); }), D({ type: "reset" }); }, [s, K, M]), B = f.useCallback(function() { if (T && rt()) { D({ type: "openDialog" }), ae(); var i = { multiple: c, types: Ia(o) }; window.showOpenFilePicker(i).then(function(p) { return s(p); }).then(function(p) { return K(p, null); }).catch(function(p) { return w(p); }).finally(function() { return D({ type: "closeDialog" }); }); return; } E.current && (D({ type: "openDialog" }), ae(), E.current.value = null, E.current.click()); }, [D, ae, w, T, K, o, c]), Z = f.useCallback(function(i) { !A.current || !A.current.isEqualNode(i.target) || (i.keyCode === 32 || i.keyCode === 13) && (i.preventDefault(), B()); }, [A, E, B]), l = f.useCallback(function() { D({ type: "focus" }); }, []), I = f.useCallback(function() { D({ type: "blur" }); }, []), se = f.useCallback(function() { V || (Ea() ? setTimeout(B, 0) : B()); }, [E, V, B]), S = function(p) { return r ? null : p; }, Q = function(p) { return W ? null : S(p); }, Y = function(p) { return ue ? null : S(p); }, F = function(p) { M && p.stopPropagation(); }, be = f.useMemo(function() { return function() { var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = i.refKey, v = p === void 0 ? "ref" : p, _ = i.role, N = i.onKeyDown, ie = i.onFocus, X = i.onBlur, we = i.onClick, Re = i.onDragEnter, Fe = i.onDragOver, ye = i.onDragLeave, Ne = i.onDrop, Ce = Ae(i, ja); return x(x(Pe({ onKeyDown: Q(L(N, Z)), onFocus: Q(L(ie, l)), onBlur: Q(L(X, I)), onClick: S(L(we, se)), onDragEnter: Y(L(Re, ge)), onDragOver: Y(L(Fe, xe)), onDragLeave: Y(L(ye, $)), onDrop: Y(L(Ne, q)), role: typeof _ == "string" && _ !== "" ? _ : "button" }, v, A), !r && !W ? { tabIndex: 0 } : {}), Ce); }; }, [A, Z, l, I, se, ge, xe, $, q, W, ue, r]), gt = f.useCallback(function(i) { i.stopPropagation(); }, []), xt = f.useMemo(function() { return function() { var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = i.refKey, v = p === void 0 ? "ref" : p, _ = i.onChange, N = i.onClick, ie = Ae(i, Da), X = Pe({ accept: o, multiple: c, type: "file", style: { display: "none" }, onChange: S(L(_, q)), onClick: S(L(N, gt)), autoComplete: "off", tabIndex: -1 }, v, E); return x(x({}, X), ie); }; }, [E, o, c, q, r]), ze = me.length, Ve = ze > 0 && xa({ files: me, accept: o, minSize: m, maxSize: d, multiple: c, maxFiles: U }), bt = ze > 0 && !Ve; return x(x({}, G), {}, { isDragAccept: Ve, isDragReject: bt, isFocused: He && !r, getRootProps: be, getInputProps: xt, rootRef: A, inputRef: E, open: S(B) }); } function Sa(e, a) { switch (a.type) { case "focus": return x(x({}, e), {}, { isFocused: !0 }); case "blur": return x(x({}, e), {}, { isFocused: !1 }); case "openDialog": return x(x({}, Be), {}, { isFileDialogActive: !0 }); case "closeDialog": return x(x({}, e), {}, { isFileDialogActive: !1 }); case "setDraggedFiles": var o = a.isDragActive, r = a.draggedFiles; return x(x({}, e), {}, { draggedFiles: r, isDragActive: o }); case "setFiles": return x(x({}, e), {}, { acceptedFiles: a.acceptedFiles, fileRejections: a.fileRejections }); case "reset": return x({}, Be); default: return e; } } function st() { } function de({ title: e, children: a, id: o, defaultState: r = "closed" }) { const [s, d] = f.useState(r === "open"), m = `${o}-region`, c = () => d(!s); return /* @__PURE__ */ t.jsxs( "section", { className: `sid-expanding-section sid-expanding-section-${o} sid-l-space-top-sm sid-l-space-btm-sm`, children: [ /* @__PURE__ */ t.jsx("header", { children: /* @__PURE__ */ t.jsxs( "button", { "aria-controls": m, "aria-expanded": s, id: o, 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: m, role: "region", "aria-labelledby": o, children: s && /* @__PURE__ */ t.jsx("div", { className: "sid-expanding-section__children", children: a }) }) ] } ); } const La = { [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" ] }, Ma = { [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" ] }, ka = { [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" ] }, Pa = { [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]: [] }, Ba = { // MILITARY_FAMILY is overridden to not show branch of service. [n.MILITARY_FAMILY]: [ "step.docUpload.uploadInfo.fullName", "step.docUpload.uploadInfo.military.militaryFamily.status" ] }; function Ya(e, a) { return [ .../* @__PURE__ */ new Set([ ...Ma[a] || [], ...La[e] || [] ]) ]; } function Ha(e, a) { return Ba[a] || [ .../* @__PURE__ */ new Set([ ...Pa[a] || [], ...ka[e] || [] ]) ]; } const za = ({ options: e, selected: a, onChange: o, showError: r }) => { const s = (d, m) => { m.target.checked ? o(a.concat(d)) : o(a.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( h, { 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: a.includes(d), onChange: s.bind(null, d), "aria-invalid": r && !a.includes(d) } ), /* @__PURE__ */ t.jsxs("div", { className: "sid-l-space-btm-md", children: [ /* @__PURE__ */ t.jsx(h, { id: d }), r && !a.includes(d) && /* @__PURE__ */ t.jsx("div", { className: "sid-field-error", children: /* @__PURE__ */ t.jsx( h, { id: "step.docUpload.confirm", defaultMessage: "Please confirm." } ) }) ] }) ] }) )) }) ] }); }, Va = ({ 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 }) ] }), Wa = (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)" } ) ] } ), it = (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)" } ) ] } ), Ga = (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: