@rivm-loculus-tools/sequence-editor 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/EditorWorkerService.js +12 -11
- package/dist/_chunks/EditorWorkerService.js.map +1 -1
- package/dist/_chunks/SequenceEditor.js +362 -495
- package/dist/_chunks/SequenceEditor.js.map +1 -1
- package/dist/_chunks/SequenceEditorPageDrawer.js +160 -49577
- package/dist/_chunks/SequenceEditorPageDrawer.js.map +1 -1
- package/dist/_chunks/comlink.js +228 -0
- package/dist/_chunks/comlink.js.map +1 -0
- package/dist/_chunks/react.js +11 -0
- package/dist/_chunks/react.js.map +1 -0
- package/dist/_chunks/sequenceEditorStore.js +40 -273
- package/dist/_chunks/sequenceEditorStore.js.map +1 -1
- package/dist/assets/index-Dn92arD_.js +8 -0
- package/dist/assets/index-Dn92arD_.js.map +1 -0
- package/dist/classes/services/EditorWorkerService/index.js +1 -2
- package/dist/classes/services/SequenceEditorEventBusService/index.js +16 -2
- package/dist/classes/services/SequenceEditorEventBusService/index.js.map +1 -0
- package/dist/classes/workers/EngineWorker/index.js +3 -2
- package/dist/classes/workers/EngineWorker/index.js.map +1 -1
- package/dist/components/app/App/index.js +15 -951
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/pages/SequenceEditorErrorPage/index.js +6 -6
- package/dist/components/pages/SequenceEditorErrorPage/index.js.map +1 -1
- package/dist/components/pages/SequenceEditorMainPage/index.js +61 -2
- package/dist/components/pages/SequenceEditorMainPage/index.js.map +1 -0
- package/dist/components/ui/SequenceEditor/index.js +1 -2
- package/dist/components/ui/SequenceEditorPage/index.js +8 -8
- package/dist/components/ui/SequenceEditorPage/index.js.map +1 -1
- package/dist/components/ui/SequenceEditorPageDrawer/index.js +1 -2
- package/dist/components/ui/SequenceEditorPageHeader/index.js +60 -2
- package/dist/components/ui/SequenceEditorPageHeader/index.js.map +1 -0
- package/dist/components/ui/SequenceEditorSearchBar/index.js +27 -2
- package/dist/components/ui/SequenceEditorSearchBar/index.js.map +1 -0
- package/dist/constants/editor.js.map +1 -1
- package/dist/constants/keyboard.js +1 -1
- package/dist/constants/keyboard.js.map +1 -1
- package/dist/constants/palette.js.map +1 -1
- package/dist/models/editor.js.map +1 -1
- package/dist/models/model.js.map +1 -1
- package/dist/models/palette.js.map +1 -1
- package/dist/stores/sequenceEditorStore/index.js +1 -2
- package/dist/utils/EditorUtil/index.js +158 -150
- package/dist/utils/EditorUtil/index.js.map +1 -1
- package/dist/utils/PaletteUtil/index.js.map +1 -1
- package/package.json +52 -29
- package/dist/_chunks/Box.js +0 -6737
- package/dist/_chunks/Box.js.map +0 -1
- package/dist/_chunks/Close.js +0 -7
- package/dist/_chunks/Close.js.map +0 -1
- package/dist/_chunks/KeyboardArrowDown.js +0 -1023
- package/dist/_chunks/KeyboardArrowDown.js.map +0 -1
- package/dist/_chunks/Redo.js +0 -2559
- package/dist/_chunks/Redo.js.map +0 -1
- package/dist/_chunks/SequenceEditorEventBusService.js +0 -102
- package/dist/_chunks/SequenceEditorEventBusService.js.map +0 -1
- package/dist/_chunks/SequenceEditorMainPage.js +0 -552
- package/dist/_chunks/SequenceEditorMainPage.js.map +0 -1
- package/dist/_chunks/SequenceEditorPageHeader.js +0 -236
- package/dist/_chunks/SequenceEditorPageHeader.js.map +0 -1
- package/dist/_chunks/SequenceEditorSearchBar.js +0 -143
- package/dist/_chunks/SequenceEditorSearchBar.js.map +0 -1
- package/dist/_chunks/TestIdUtil.js +0 -4695
- package/dist/_chunks/TestIdUtil.js.map +0 -1
- package/dist/_chunks/TextField.js +0 -3083
- package/dist/_chunks/TextField.js.map +0 -1
- package/dist/_chunks/rolldown-runtime.js +0 -13
- package/dist/_chunks/sequence_editor.js +0 -517
- package/dist/_chunks/sequence_editor.js.map +0 -1
- package/dist/_chunks/withDialog.js +0 -289
- package/dist/_chunks/withDialog.js.map +0 -1
- package/dist/assets/index-C5rc-pJV.js +0 -8
- package/dist/assets/index-C5rc-pJV.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sequence_editor.js","names":[],"sources":["../../../../../../node_modules/.pnpm/comlink@4.4.2/node_modules/comlink/dist/esm/comlink.mjs","../../../engine/wasm/sequence_editor.js"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst proxyMarker = Symbol(\"Comlink.proxy\");\nconst createEndpoint = Symbol(\"Comlink.endpoint\");\nconst releaseProxy = Symbol(\"Comlink.releaseProxy\");\nconst finalizer = Symbol(\"Comlink.finalizer\");\nconst throwMarker = Symbol(\"Comlink.thrown\");\nconst isObject = (val) => (typeof val === \"object\" && val !== null) || typeof val === \"function\";\n/**\n * Internal transfer handle to handle objects marked to proxy.\n */\nconst proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n};\n/**\n * Internal transfer handler to handle thrown exceptions.\n */\nconst throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n};\n/**\n * Allows customizing the serialization of certain values.\n */\nconst transferHandlers = new Map([\n [\"proxy\", proxyTransferHandler],\n [\"throw\", throwTransferHandler],\n]);\nfunction isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === \"*\") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n}\nfunction expose(obj, ep = globalThis, allowedOrigins = [\"*\"]) {\n ep.addEventListener(\"message\", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case \"GET\" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case \"SET\" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case \"APPLY\" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case \"CONSTRUCT\" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case \"ENDPOINT\" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case \"RELEASE\" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === \"RELEASE\" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener(\"message\", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === \"function\") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError(\"Unserializable return value\"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n}\nfunction isMessagePort(endpoint) {\n return endpoint.constructor.name === \"MessagePort\";\n}\nfunction closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n}\nfunction wrap(ep, target) {\n const pendingListeners = new Map();\n ep.addEventListener(\"message\", function handleMessage(ev) {\n const { data } = ev;\n if (!data || !data.id) {\n return;\n }\n const resolver = pendingListeners.get(data.id);\n if (!resolver) {\n return;\n }\n try {\n resolver(data);\n }\n finally {\n pendingListeners.delete(data.id);\n }\n });\n return createProxy(ep, pendingListeners, [], target);\n}\nfunction throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error(\"Proxy has been released and is not useable\");\n }\n}\nfunction releaseEndpoint(ep) {\n return requestResponseMessage(ep, new Map(), {\n type: \"RELEASE\" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n}\nconst proxyCounter = new WeakMap();\nconst proxyFinalizers = \"FinalizationRegistry\" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\nfunction registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n}\nfunction unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n}\nfunction createProxy(ep, pendingListeners, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n pendingListeners.clear();\n isProxyReleased = true;\n };\n }\n if (prop === \"then\") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, pendingListeners, {\n type: \"GET\" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, pendingListeners, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"SET\" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, pendingListeners, {\n type: \"ENDPOINT\" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === \"bind\") {\n return createProxy(ep, pendingListeners, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"APPLY\" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"CONSTRUCT\" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n}\nfunction myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n}\nfunction processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n}\nconst transferCache = new WeakMap();\nfunction transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n}\nfunction proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n}\nfunction windowEndpoint(w, context = globalThis, targetOrigin = \"*\") {\n return {\n postMessage: (msg, transferables) => w.postMessage(msg, targetOrigin, transferables),\n addEventListener: context.addEventListener.bind(context),\n removeEventListener: context.removeEventListener.bind(context),\n };\n}\nfunction toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: \"HANDLER\" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: \"RAW\" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n}\nfunction fromWireValue(value) {\n switch (value.type) {\n case \"HANDLER\" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case \"RAW\" /* WireValueType.RAW */:\n return value.value;\n }\n}\nfunction requestResponseMessage(ep, pendingListeners, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n pendingListeners.set(id, resolve);\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n}\nfunction generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join(\"-\");\n}\n\nexport { createEndpoint, expose, finalizer, proxy, proxyMarker, releaseProxy, transfer, transferHandlers, windowEndpoint, wrap };\n//# sourceMappingURL=comlink.mjs.map\n","/* @ts-self-types=\"./sequence_editor.d.ts\" */\n\n/**\n * @enum {0 | 1 | 2 | 3}\n */\nexport const EditError = Object.freeze({\n DeleteNotGap: 0, \"0\": \"DeleteNotGap\",\n MutateNotIupac: 1, \"1\": \"MutateNotIupac\",\n MoveNoGapTarget: 2, \"2\": \"MoveNoGapTarget\",\n MoveNotIupac: 3, \"3\": \"MoveNotIupac\",\n});\n\n/**\n * Direction for horizontal character movement.\n * @enum {0 | 1}\n */\nexport const MoveDirection = Object.freeze({\n Left: 0, \"0\": \"Left\",\n Right: 1, \"1\": \"Right\",\n});\n\n/**\n * The core MSA engine. Owns the alignment matrix, row names, the reusable\n * viewport buffer, and the undo/redo stacks.\n */\nexport class MsaEngine {\n __destroy_into_raw() {\n const ptr = this.__wbg_ptr;\n this.__wbg_ptr = 0;\n MsaEngineFinalization.unregister(this);\n return ptr;\n }\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_msaengine_free(ptr, 0);\n }\n /**\n * Simultaneous deletion at a single column index on a subset of rows.\n * Only rows in `row_indices` are affected: the character at `col_idx`\n * is removed and a `-` is appended at the end to keep width unchanged.\n * Non-target rows are completely untouched.\n *\n * Returns `DeleteNotGap` if any target position contains a non-`-`\n * character; the operation is all-or-nothing.\n * @param {Uint32Array} row_indices\n * @param {number} col_idx\n */\n delete_at_subset(row_indices, col_idx) {\n const ptr0 = passArray32ToWasm0(row_indices, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_delete_at_subset(this.__wbg_ptr, ptr0, len0, col_idx);\n if (ret[1]) {\n throw takeFromExternrefTable0(ret[0]);\n }\n }\n /**\n * Delete a column from every row, shrinking `alignment_width` by 1.\n * This is the width-preserving inverse of a full-column insert.\n * Returns success.\n * @param {number} col_idx\n */\n delete_column(col_idx) {\n const ret = wasm.msaengine_delete_column(this.__wbg_ptr, col_idx);\n if (ret[1]) {\n throw takeFromExternrefTable0(ret[0]);\n }\n }\n /**\n * Global alignment width (columns). Zero if nothing is loaded.\n * @returns {number}\n */\n get_alignment_width() {\n const ret = wasm.msaengine_get_alignment_width(this.__wbg_ptr);\n return ret >>> 0;\n }\n /**\n * @param {number} row\n * @returns {Uint8Array}\n */\n get_aminoacid_view(row) {\n const ret = wasm.msaengine_get_aminoacid_view(this.__wbg_ptr, row);\n return ret;\n }\n /**\n * Return the raw byte at `(row, col)`, or `0` if out of range.\n * Useful for the test harness to spot-check individual cells.\n * @param {number} row\n * @param {number} col\n * @returns {number}\n */\n get_base(row, col) {\n const ret = wasm.msaengine_get_base(this.__wbg_ptr, row, col);\n return ret;\n }\n /**\n * Return the name/identifier of a given row, or an empty string if the\n * index is out of range.\n * @param {number} row\n * @returns {string}\n */\n get_name(row) {\n let deferred1_0;\n let deferred1_1;\n try {\n const ret = wasm.msaengine_get_name(this.__wbg_ptr, row);\n deferred1_0 = ret[0];\n deferred1_1 = ret[1];\n return getStringFromWasm0(ret[0], ret[1]);\n } finally {\n wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);\n }\n }\n /**\n * Return the length of a specific row, or `0` if the row index is invalid.\n * @param {number} row\n * @returns {number}\n */\n get_row_length(row) {\n const ret = wasm.msaengine_get_row_length(this.__wbg_ptr, row);\n return ret >>> 0;\n }\n /**\n * Number of sequences currently loaded.\n * @returns {number}\n */\n get_sequence_count() {\n const ret = wasm.msaengine_get_sequence_count(this.__wbg_ptr);\n return ret >>> 0;\n }\n /**\n * Number of bytes currently held in the viewport buffer.\n * @returns {number}\n */\n get_viewport_len() {\n const ret = wasm.msaengine_get_viewport_len(this.__wbg_ptr);\n return ret >>> 0;\n }\n /**\n * Simultaneous gap insertion at a single column index on a subset of\n * rows. The inserted character is always `-` (gap). Target rows receive\n * the gap at the clamped insertion column; non-target rows have a `-`\n * appended at the end to keep matrix width consistent.\n *\n * Returns success; no validation is needed since only `-` can be inserted.\n * @param {Uint32Array} row_indices\n * @param {number} col_idx\n */\n insert_at_subset(row_indices, col_idx) {\n const ptr0 = passArray32ToWasm0(row_indices, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_insert_at_subset(this.__wbg_ptr, ptr0, len0, col_idx);\n if (ret[1]) {\n throw takeFromExternrefTable0(ret[0]);\n }\n }\n /**\n * Parse FASTA content and populate the engine.\n *\n * Performs a line-by-line scan. Sequences may span multiple lines;\n * a new sequence begins at any line starting with `>`. Whitespace and\n * blank lines are ignored. All sequence bytes are uppercased.\n *\n * The sequences are assumed to be pre-aligned as this is given from\n * loculus as a provider of the sequence data. After all sequences are\n * parsed, `alignment_width` is set to the length of the longest\n * sequence. Shorter sequences are NOT automatically padded.\n * Callers can detect ragged alignments via `get_row_length`.\n *\n * Returns the sequence count on success. Invalid sequence characters\n * reject the load without changing the current engine state.\n * @param {string} fasta_content\n * @returns {number}\n */\n load_fasta(fasta_content) {\n const ptr0 = passStringToWasm0(fasta_content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_load_fasta(this.__wbg_ptr, ptr0, len0);\n if (ret[2]) {\n throw takeFromExternrefTable0(ret[1]);\n }\n return ret[0] >>> 0;\n }\n /**\n * Move a contiguous block of IUPAC characters horizontally by 1 position\n * within a single row. Each call moves exactly 1 position; callers must\n * issue multiple calls for multi-position moves.\n *\n * `col_indices` is treated as a range `[min, max]`, non-contiguous\n * indices are clamped to their min/max.\n *\n * **Left move:** validates the selected chars are IUPAC and the position\n * to the left is `-`, then rotates the block left by 1.\n *\n * **Right move:** validates the selected chars are IUPAC and the position\n * to the right is `-`, then rotates the block right by 1.\n *\n * Returns a typed error on failure; the operation is all-or-nothing.\n * @param {number} row\n * @param {Uint32Array} col_indices\n * @param {MoveDirection} direction\n */\n move_horizontal(row, col_indices, direction) {\n const ptr0 = passArray32ToWasm0(col_indices, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_move_horizontal(this.__wbg_ptr, row, ptr0, len0, direction);\n if (ret[1]) {\n throw takeFromExternrefTable0(ret[0]);\n }\n }\n /**\n * Move the specified rows down by 1 position. Each specified row swaps\n * with the row immediately below it. Rows already at the bottom are\n * silently skipped. Multiple rows may be moved simultaneously.\n * Returns success.\n * @param {Uint32Array} row_indices\n */\n move_rows_down(row_indices) {\n const ptr0 = passArray32ToWasm0(row_indices, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_move_rows_down(this.__wbg_ptr, ptr0, len0);\n if (ret[1]) {\n throw takeFromExternrefTable0(ret[0]);\n }\n }\n /**\n * Move the specified rows up by 1 position. Each specified row swaps with\n * the row immediately above it. Rows already at the top (index 0) are\n * silently skipped. Multiple rows may be moved simultaneously.\n * Returns success.\n * @param {Uint32Array} row_indices\n */\n move_rows_up(row_indices) {\n const ptr0 = passArray32ToWasm0(row_indices, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_move_rows_up(this.__wbg_ptr, ptr0, len0);\n if (ret[1]) {\n throw takeFromExternrefTable0(ret[0]);\n }\n }\n /**\n * Simultaneous block character change (substitution) on a subset of rows\n * at a single column index. Rows outside `row_indices` are untouched.\n * Out-of-range rows or columns are silently skipped.\n *\n * Returns a typed error on validation failure; no rows are modified.\n * @param {Uint32Array} row_indices\n * @param {number} col_idx\n * @param {number} new_base\n */\n mutate_base_subset(row_indices, col_idx, new_base) {\n const ptr0 = passArray32ToWasm0(row_indices, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_mutate_base_subset(this.__wbg_ptr, ptr0, len0, col_idx, new_base);\n if (ret[1]) {\n throw takeFromExternrefTable0(ret[0]);\n }\n }\n /**\n * Construct an empty engine.\n */\n constructor() {\n const ret = wasm.msaengine_new();\n this.__wbg_ptr = ret;\n MsaEngineFinalization.register(this, this.__wbg_ptr, this);\n return this;\n }\n /**\n * Redo the most recently undone command. Returns `true` if a redo was\n * applied, `false` if the redo stack is empty.\n * @returns {boolean}\n */\n redo() {\n const ret = wasm.msaengine_redo(this.__wbg_ptr);\n return ret !== 0;\n }\n /**\n * Number of commands on the redo stack.\n * @returns {number}\n */\n redo_depth() {\n const ret = wasm.msaengine_redo_depth(this.__wbg_ptr);\n return ret >>> 0;\n }\n /**\n * @param {string} query\n * @param {boolean} check_record_names\n * @returns {any}\n */\n search(query, check_record_names) {\n const ptr0 = passStringToWasm0(query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_search(this.__wbg_ptr, ptr0, len0, check_record_names);\n if (ret[2]) {\n throw takeFromExternrefTable0(ret[1]);\n }\n return takeFromExternrefTable0(ret[0]);\n }\n /**\n * When the translate function is called, it will check if there are any untranslated sequences and then translate all rows of nucleotide sequences for all reading frames.\n * Afterwards it will select the viewport of the translated amino acid sequences for the specified range and reading frame.\n *\n * Mirrors `update_viewport`'s conventions exactly: rows and columns are\n * inclusive (`[start, end]`), and every row contributes exactly\n * `(end_col - start_col + 1)` bytes, padding short rows with `b' '`.\n * Without this fixed stride, the worker's `bytes / cols` row count would\n * be wrong whenever a translated row is shorter than the requested\n * column range (which it almost always is, since amino acid frames are\n * ~1/3 the length of the nucleotide sequence).\n * @param {number} start_row\n * @param {number} end_row\n * @param {number} start_col\n * @param {number} end_col\n * @param {number} reading_frame\n * @returns {Uint8Array}\n */\n translate(start_row, end_row, start_col, end_col, reading_frame) {\n const ret = wasm.msaengine_translate(this.__wbg_ptr, start_row, end_row, start_col, end_col, reading_frame);\n if (ret[2]) {\n throw takeFromExternrefTable0(ret[1]);\n }\n return takeFromExternrefTable0(ret[0]);\n }\n /**\n * Undo the most recent command. Returns `true` if an undo was applied,\n * `false` if the undo stack is empty.\n *\n * For `Substitutions`, the old bases are restored and the command is\n * pushed onto the redo stack. For `StructuralSnapshot`, the snapshot\n * becomes the current state and the *current* (post-edit) state is\n * captured as a new `StructuralSnapshot` on the redo stack so that redo\n * can re-apply the structural change.\n * @returns {boolean}\n */\n undo() {\n const ret = wasm.msaengine_undo(this.__wbg_ptr);\n return ret !== 0;\n }\n /**\n * Number of commands on the undo stack.\n * @returns {number}\n */\n undo_depth() {\n const ret = wasm.msaengine_undo_depth(this.__wbg_ptr);\n return ret >>> 0;\n }\n /**\n * Extract a windowed slice of the matrix into the reusable viewport buffer\n * and return it as a `Uint8Array`.\n *\n * The slice covers rows `[start_row, end_row]` inclusive and columns\n * `[start_col, end_col]` inclusive. Row indices are clamped to the\n * number of loaded sequences. Every row always contributes exactly\n * `(end_col - start_col + 1)` bytes; columns that lie beyond the end of\n * the sequence are filled with `b' '` (space). This keeps the buffer\n * strictly row-major with a fixed stride, so callers can index\n * `bytes[r * cols + c]` without inspecting per-row lengths.\n * @param {number} start_row\n * @param {number} end_row\n * @param {number} start_col\n * @param {number} end_col\n * @returns {Uint8Array}\n */\n update_viewport(start_row, end_row, start_col, end_col) {\n const ret = wasm.msaengine_update_viewport(this.__wbg_ptr, start_row, end_row, start_col, end_col);\n return ret;\n }\n /**\n * Extract a windowed slice and write it directly into a caller-provided\n * buffer (e.g. a `SharedArrayBuffer` view). Returns the number of bytes\n * written, or 0 if the slice is empty or out of range.\n *\n * This is the zero-copy-across-boundary path: the worker passes a\n * `Uint8Array` view backed by a `SharedArrayBuffer` that the main thread\n * also holds. The WASM engine writes into it via a single `memcpy` per\n * row, and the main thread reads the same memory directly. There is no\n * `postMessage` transfer of binary data, structured clone, or `ArrayBuffer.slice`.\n *\n * `out` must be at least as large as the worst-case slice\n * (`(end_row - start_row + 1) * (end_col - start_col + 1)` bytes).\n * @param {number} start_row\n * @param {number} end_row\n * @param {number} start_col\n * @param {number} end_col\n * @param {Uint8Array} out\n * @returns {number}\n */\n update_viewport_into(start_row, end_row, start_col, end_col, out) {\n var ptr0 = passArray8ToWasm0(out, wasm.__wbindgen_malloc);\n var len0 = WASM_VECTOR_LEN;\n const ret = wasm.msaengine_update_viewport_into(this.__wbg_ptr, start_row, end_row, start_col, end_col, ptr0, len0, out);\n return ret >>> 0;\n }\n}\nif (Symbol.dispose) MsaEngine.prototype[Symbol.dispose] = MsaEngine.prototype.free;\nfunction __wbg_get_imports() {\n const import0 = {\n __proto__: null,\n __wbg_Error_67e7344beaa85059: function(arg0, arg1) {\n const ret = Error(getStringFromWasm0(arg0, arg1));\n return ret;\n },\n __wbg_String_8564e559799eccda: function(arg0, arg1) {\n const ret = String(arg1);\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len1 = WASM_VECTOR_LEN;\n getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n },\n __wbg___wbindgen_copy_to_typed_array_cccd104be8cf0b8d: function(arg0, arg1, arg2) {\n new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));\n },\n __wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n },\n __wbg_log_2778eeb36efc90b4: function(arg0, arg1) {\n console.log(getStringFromWasm0(arg0, arg1));\n },\n __wbg_new_1da3429bc3c4541c: function(arg0) {\n const ret = new Uint8Array(arg0);\n return ret;\n },\n __wbg_new_6d48f1eaea5b883e: function(arg0) {\n const ret = new ArrayBuffer(arg0 >>> 0);\n return ret;\n },\n __wbg_new_bebc3f4757acf305: function() {\n const ret = new Object();\n return ret;\n },\n __wbg_new_ffa92086ea89f79c: function() {\n const ret = new Array();\n return ret;\n },\n __wbg_new_from_slice_4ee02165f9de919e: function(arg0, arg1) {\n const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));\n return ret;\n },\n __wbg_set_13d25b81ab403f5e: function(arg0, arg1, arg2) {\n arg0[arg1 >>> 0] = arg2;\n },\n __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {\n arg0[arg1] = arg2;\n },\n __wbindgen_generic_0000000000000001: function(arg0) {\n // Cast intrinsic for `F64 -> Externref`.\n const ret = arg0;\n return ret;\n },\n __wbindgen_generic_0000000000000002: function(arg0, arg1) {\n // Cast intrinsic for `Ref(String) -> Externref`.\n const ret = getStringFromWasm0(arg0, arg1);\n return ret;\n },\n __wbindgen_generic_0000000000000003: function(arg0) {\n // Cast intrinsic for `U64 -> Externref`.\n const ret = BigInt.asUintN(64, arg0);\n return ret;\n },\n __wbindgen_init_externref_table: function() {\n const table = wasm.__wbindgen_externrefs;\n const offset = table.grow(4);\n table.set(0, undefined);\n table.set(offset + 0, undefined);\n table.set(offset + 1, null);\n table.set(offset + 2, true);\n table.set(offset + 3, false);\n },\n };\n return {\n __proto__: null,\n \"./sequence_editor_bg.js\": import0,\n };\n}\n\nconst MsaEngineFinalization = (typeof FinalizationRegistry === 'undefined')\n ? { register: () => {}, unregister: () => {} }\n : new FinalizationRegistry(ptr => wasm.__wbg_msaengine_free(ptr, 1));\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n\nlet cachedDataViewMemory0 = null;\nfunction getDataViewMemory0() {\n if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {\n cachedDataViewMemory0 = new DataView(wasm.memory.buffer);\n }\n return cachedDataViewMemory0;\n}\n\nfunction getStringFromWasm0(ptr, len) {\n return decodeText(ptr >>> 0, len);\n}\n\nlet cachedUint32ArrayMemory0 = null;\nfunction getUint32ArrayMemory0() {\n if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {\n cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);\n }\n return cachedUint32ArrayMemory0;\n}\n\nlet cachedUint8ArrayMemory0 = null;\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nfunction passArray32ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 4, 4) >>> 0;\n getUint32ArrayMemory0().set(arg, ptr / 4);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nfunction passArray8ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 1, 1) >>> 0;\n getUint8ArrayMemory0().set(arg, ptr / 1);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = cachedTextEncoder.encodeInto(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction takeFromExternrefTable0(idx) {\n const value = wasm.__wbindgen_externrefs.get(idx);\n wasm.__externref_table_dealloc(idx);\n return value;\n}\n\nlet cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\ncachedTextDecoder.decode();\nconst MAX_SAFARI_DECODE_BYTES = 2146435072;\nlet numBytesDecoded = 0;\nfunction decodeText(ptr, len) {\n numBytesDecoded += len;\n if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {\n cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n cachedTextDecoder.decode();\n numBytesDecoded = len;\n }\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nconst cachedTextEncoder = new TextEncoder();\n\nif (!('encodeInto' in cachedTextEncoder)) {\n cachedTextEncoder.encodeInto = function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n };\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nlet wasmModule, wasmInstance, wasm;\nfunction __wbg_finalize_init(instance, module) {\n wasmInstance = instance;\n wasm = instance.exports;\n wasmModule = module;\n cachedDataViewMemory0 = null;\n cachedUint32ArrayMemory0 = null;\n cachedUint8ArrayMemory0 = null;\n wasm.__wbindgen_start();\n return wasm;\n}\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (!module.ok) {\n throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);\n }\n\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n } catch (e) {\n const validResponse = expectedResponseType(module.type);\n\n if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else { throw e; }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n } else {\n return instance;\n }\n }\n\n function expectedResponseType(type) {\n switch (type) {\n case 'basic': case 'cors': case 'default': return true;\n }\n return false;\n }\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (module !== undefined) {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n const instance = new WebAssembly.Instance(module, imports);\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (module_or_path !== undefined) {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (module_or_path === undefined) {\n module_or_path = new URL('sequence_editor_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync, __wbg_init as default };\n"],"x_google_ignoreList":[0],"mappings":";AAKA,IAAM,IAAc,OAAO,eAAe,GACpC,IAAiB,OAAO,kBAAkB,GAC1C,IAAe,OAAO,sBAAsB,GAC5C,IAAY,OAAO,mBAAmB,GACtC,IAAc,OAAO,gBAAgB,GACrC,KAAY,MAAS,OAAO,KAAQ,cAAY,KAAiB,OAAO,KAAQ,YAgDhF,oBAAmB,IAAI,IAAI,CAC7B,CAAC,SAAS;CA5CV,YAAY,MAAQ,EAAS,CAAG,KAAK,EAAI;CACzC,UAAU,GAAK;EACX,IAAM,EAAE,UAAO,aAAU,IAAI,eAAe;EAE5C,OADA,EAAO,GAAK,CAAK,GACV,CAAC,GAAO,CAAC,CAAK,CAAC;CAC1B;CACA,YAAY,GAAM;EAEd,OADA,EAAK,MAAM,GACJ,EAAK,CAAI;CACpB;AAmC6B,CAAC,GAC9B,CAAC,SAAS;CA9BV,YAAY,MAAU,EAAS,CAAK,KAAK,KAAe;CACxD,UAAU,EAAE,YAAS;EACjB,IAAI;EAcJ,OAbA,AAWI,IAXA,aAAiB,QACJ;GACT,SAAS;GACT,OAAO;IACH,SAAS,EAAM;IACf,MAAM,EAAM;IACZ,OAAO,EAAM;GACjB;EACJ,IAGa;GAAE,SAAS;GAAO;EAAM,GAEl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O,IAE9C,KAAiB,EAAO,QAAQ,IAAI,cAAc,MAAM,oBACxD,QAAQ,KAAK,qMAAqM,CAAC;QAE9M,MAAM;EACnB;EAGJ,IAAM,IAAQ,MAAM,EAAO,YAAY;EACvC,OAAO,MAAM,YAAY,YAAY,GAAO,CAAO;CACvD;CAAO;EACH,IAAM,IAAW,MAAM,YAAY,YAAY,GAAQ,CAAO;EAK1D,OAHA,aAAoB,YAAY,WACzB;GAAE;GAAU;EAAO,IAEnB;CAEf;CAEA,SAAS,EAAqB,GAAM;EAChC,QAAQ,GAAR;GACI,KAAK;GAAS,KAAK;GAAQ,KAAK,WAAW,OAAO;EACtD;EACA,OAAO;CACX;AACJ;AAsBA,eAAe,EAAW,GAAgB;CACtC,IAAI,MAAS,KAAA,GAAW,OAAO;CAW/B,AARI,MAAmB,KAAA,MACf,OAAO,eAAe,CAAc,MAAM,OAAO,YAChD,sBAAmB,IAEpB,QAAQ,KAAK,2FAA2F,IAI5G,MAAmB,KAAA,MACnB,IAAiB,IAAA,IAAA,ymuHAAA,KAAA,YAAA,GAAA;CAErB,IAAM,IAAU,EAAkB;CAElC,CAAI,OAAO,KAAmB,YAAa,OAAO,WAAY,cAAc,aAA0B,WAAa,OAAO,OAAQ,cAAc,aAA0B,SACtK,IAAiB,MAAM,CAAc;CAGzC,IAAM,EAAE,aAAU,cAAW,MAAM,EAAW,MAAM,GAAgB,CAAO;CAE3E,OAAO,EAAoB,GAAU,CAAM;AAC/C"}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime.js";
|
|
2
|
-
import { Dt as t, Lt as n, Ot as r, Q as i, ft as a, g as o, i as s, j as c, k as l, n as u, t as d } from "./Box.js";
|
|
3
|
-
import { b as f, d as p, f as m, i as h, l as g, n as _, p as v, r as y, s as b, t as x, u as S } from "./TestIdUtil.js";
|
|
4
|
-
import { t as C } from "./Close.js";
|
|
5
|
-
//#region ../../../../node_modules/.pnpm/@mui+material@9.4.0_@emotion+react@11.14.0_@types+react@19.3.0_react@19.3.0_supports-co_876c01243dbcdb7de27cf1bcc84db747/node_modules/@mui/material/DialogTitle/DialogTitle.mjs
|
|
6
|
-
var w = /* @__PURE__ */ e(n(), 1), T = /* @__PURE__ */ e(r(), 1), E = t(), D = (e) => {
|
|
7
|
-
let { classes: t } = e;
|
|
8
|
-
return i({ root: ["root"] }, S, t);
|
|
9
|
-
}, O = c(u, {
|
|
10
|
-
name: "MuiDialogTitle",
|
|
11
|
-
slot: "Root"
|
|
12
|
-
})({
|
|
13
|
-
padding: "16px 24px",
|
|
14
|
-
flex: "0 0 auto"
|
|
15
|
-
}), k = /*#__PURE__*/ w.forwardRef(function(e, t) {
|
|
16
|
-
let n = l({
|
|
17
|
-
props: e,
|
|
18
|
-
name: "MuiDialogTitle"
|
|
19
|
-
}), { className: r, id: i, ...o } = n, s = n, c = D(s), { titleId: u = i } = w.useContext(v);
|
|
20
|
-
return /*#__PURE__*/ (0, E.jsx)(O, {
|
|
21
|
-
component: "h2",
|
|
22
|
-
className: a(c.root, r),
|
|
23
|
-
ownerState: s,
|
|
24
|
-
ref: t,
|
|
25
|
-
variant: "h6",
|
|
26
|
-
id: i ?? u,
|
|
27
|
-
...o
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
31
|
-
children: T.default.node,
|
|
32
|
-
classes: T.default.object,
|
|
33
|
-
className: T.default.string,
|
|
34
|
-
id: T.default.string,
|
|
35
|
-
sx: T.default.oneOfType([
|
|
36
|
-
T.default.arrayOf(T.default.oneOfType([
|
|
37
|
-
T.default.func,
|
|
38
|
-
T.default.object,
|
|
39
|
-
T.default.bool
|
|
40
|
-
])),
|
|
41
|
-
T.default.func,
|
|
42
|
-
T.default.object
|
|
43
|
-
])
|
|
44
|
-
});
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region ../../../../node_modules/.pnpm/@gen-epix+ui-core-components@4.3.1_042ffd1b957752b43692251051b5ea4b/node_modules/@gen-epix/ui-core-components/dist/_chunks/rolldown-runtime.js
|
|
47
|
-
var A = Object.create, j = Object.defineProperty, M = Object.getOwnPropertyDescriptor, N = Object.getOwnPropertyNames, P = Object.getPrototypeOf, F = Object.prototype.hasOwnProperty, I = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), L = (e, t, n, r) => {
|
|
48
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = N(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !F.call(e, s) && s !== n && j(e, s, {
|
|
49
|
-
get: ((e) => t[e]).bind(null, s),
|
|
50
|
-
enumerable: !(r = M(t, s)) || r.enumerable
|
|
51
|
-
});
|
|
52
|
-
return e;
|
|
53
|
-
}, R = (e, t, n) => (n = e == null ? {} : A(P(e)), L(t || !e || !e.__esModule || !F.call(e, "default") ? j(n, "default", {
|
|
54
|
-
value: e,
|
|
55
|
-
enumerable: !0
|
|
56
|
-
}) : n, e)), z = /* @__PURE__ */ I(((e, t) => {
|
|
57
|
-
function n(e) {
|
|
58
|
-
var t = typeof e;
|
|
59
|
-
return e != null && (t == "object" || t == "function");
|
|
60
|
-
}
|
|
61
|
-
t.exports = n;
|
|
62
|
-
})), B = o(/*#__PURE__*/ (0, E.jsx)("path", { d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z" }), "ContentCopy"), V = o(/*#__PURE__*/ (0, E.jsx)("path", { d: "M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z" }), "Done"), H = /* @__PURE__ */ I(((e, t) => {
|
|
63
|
-
t.exports = { ...w };
|
|
64
|
-
})), U = /* @__PURE__ */ R((/* @__PURE__ */ I(((e, t) => {
|
|
65
|
-
var n = H();
|
|
66
|
-
function r(e) {
|
|
67
|
-
var t = e.cleanup;
|
|
68
|
-
e.isCalled || typeof t != "function" || (e.isCalled = !0, t());
|
|
69
|
-
}
|
|
70
|
-
t.exports = function(e, t, i) {
|
|
71
|
-
var a = i === void 0 ? {} : i, o = a.cleanUpOnCall, s = o === void 0 || o, c = a.cleanUpOnDepsChange, l = c !== void 0 && c, u = a.cleanUpOnUnmount, d = u === void 0 || u, f = n.useRef({
|
|
72
|
-
cleanup: null,
|
|
73
|
-
isCalled: !1
|
|
74
|
-
}), p = {
|
|
75
|
-
cleanUpOnCall: s,
|
|
76
|
-
cleanUpOnDepsChange: l,
|
|
77
|
-
cleanUpOnUnmount: d
|
|
78
|
-
}, m = n.useRef(p);
|
|
79
|
-
return n.useEffect(function() {
|
|
80
|
-
m.current = p;
|
|
81
|
-
}), n.useEffect(function() {
|
|
82
|
-
return function() {
|
|
83
|
-
m.current.cleanUpOnDepsChange && r(f.current);
|
|
84
|
-
};
|
|
85
|
-
}, [t]), n.useEffect(function() {
|
|
86
|
-
return function() {
|
|
87
|
-
m.current.cleanUpOnUnmount && r(f.current);
|
|
88
|
-
};
|
|
89
|
-
}, []), n.useCallback(function() {
|
|
90
|
-
m.current.cleanUpOnCall && r(f.current);
|
|
91
|
-
var t = e.apply(void 0, [].slice.call(arguments));
|
|
92
|
-
if (typeof t == "object") {
|
|
93
|
-
var n = t.value;
|
|
94
|
-
return f.current = {
|
|
95
|
-
cleanup: t.cleanup,
|
|
96
|
-
isCalled: !1
|
|
97
|
-
}, n;
|
|
98
|
-
}
|
|
99
|
-
return typeof t == "function" && (f.current = {
|
|
100
|
-
cleanup: t,
|
|
101
|
-
isCalled: !1
|
|
102
|
-
}), t;
|
|
103
|
-
}, t);
|
|
104
|
-
};
|
|
105
|
-
})))(), 1), W = ({ baseIcon: e, buttonProps: t, buttonText: n, buttonVariant: r, clipboardValue: i, iconOnly: a, onGetClipboardValue: o, tooltipSuccessText: c }) => {
|
|
106
|
-
let { t: l } = h(), [u, d] = (0, w.useState)("primary"), [p, m] = (0, w.useState)(e ?? /* @__PURE__ */ (0, E.jsx)(B, {})), [g, _] = (0, w.useState)(n ?? l`Copy to clipboard`), v = (0, U.default)(() => {
|
|
107
|
-
let t;
|
|
108
|
-
return (async () => {
|
|
109
|
-
try {
|
|
110
|
-
await navigator.clipboard.writeText(i ?? o()), d("success"), m(/* @__PURE__ */ (0, E.jsx)(V, {})), _(c ?? l`Copied to clipboard`);
|
|
111
|
-
} catch {
|
|
112
|
-
d("error"), m(/* @__PURE__ */ (0, E.jsx)(y, {})), _(l`Error`);
|
|
113
|
-
} finally {
|
|
114
|
-
t = window.setTimeout(() => {
|
|
115
|
-
d("primary"), m(e ?? /* @__PURE__ */ (0, E.jsx)(B, {})), _(n ?? l`Copy to clipboard`);
|
|
116
|
-
}, 2e3);
|
|
117
|
-
}
|
|
118
|
-
})(), () => {
|
|
119
|
-
clearTimeout(t);
|
|
120
|
-
};
|
|
121
|
-
}, [
|
|
122
|
-
e,
|
|
123
|
-
n,
|
|
124
|
-
i,
|
|
125
|
-
o,
|
|
126
|
-
l,
|
|
127
|
-
c
|
|
128
|
-
]);
|
|
129
|
-
return a ? /* @__PURE__ */ (0, E.jsx)(b, {
|
|
130
|
-
arrow: !0,
|
|
131
|
-
placement: "top",
|
|
132
|
-
title: g,
|
|
133
|
-
children: /* @__PURE__ */ (0, E.jsx)(s, {
|
|
134
|
-
...t,
|
|
135
|
-
color: u,
|
|
136
|
-
onClick: v,
|
|
137
|
-
size: "small",
|
|
138
|
-
children: p
|
|
139
|
-
})
|
|
140
|
-
}) : /* @__PURE__ */ (0, E.jsx)(f, {
|
|
141
|
-
...t,
|
|
142
|
-
color: u,
|
|
143
|
-
onClick: v,
|
|
144
|
-
startIcon: p,
|
|
145
|
-
variant: r ?? "contained",
|
|
146
|
-
children: n ?? l`Copy to clipboard`
|
|
147
|
-
});
|
|
148
|
-
}, G = /* @__PURE__ */ R(z(), 1), K = (e) => (0, G.default)(e) && "label" in e, q = ({ actions: e, children: t, dialogContentRef: n, disableBackdropClick: r = !1, fullScreen: i = !1, fullWidth: a = !1, maxWidth: o = !1, noCloseButton: c = !1, noPadding: l = !1, noTitle: u = !1, onClose: v, permalink: y, testId: b, title: S, titleVariant: T = "h5" }) => {
|
|
149
|
-
let { t: D } = h(), O = (0, w.useCallback)((e, t) => {
|
|
150
|
-
(!r || t !== "backdropClick" && t !== "escapeKeyDown") && v?.();
|
|
151
|
-
}, [r, v]), A = (0, w.useCallback)(() => y, [y]);
|
|
152
|
-
return /* @__PURE__ */ (0, E.jsxs)(m, {
|
|
153
|
-
...x.createAttributes(b, { title: S }),
|
|
154
|
-
fullScreen: i,
|
|
155
|
-
fullWidth: a,
|
|
156
|
-
maxWidth: o,
|
|
157
|
-
onClose: O,
|
|
158
|
-
open: !0,
|
|
159
|
-
sx: { "& .MuiDialogContent-root, & .MuiCardContent-root:last-child": { padding: l ? "0" : void 0 } },
|
|
160
|
-
children: [
|
|
161
|
-
!u && /* @__PURE__ */ (0, E.jsxs)(d, {
|
|
162
|
-
sx: {
|
|
163
|
-
display: "flex",
|
|
164
|
-
justifyContent: "space-between"
|
|
165
|
-
},
|
|
166
|
-
children: [/* @__PURE__ */ (0, E.jsxs)(k, {
|
|
167
|
-
...x.createAttributes(`${b}-title`),
|
|
168
|
-
sx: { pr: 3 },
|
|
169
|
-
variant: T,
|
|
170
|
-
children: [S, y && /* @__PURE__ */ (0, E.jsx)(d, {
|
|
171
|
-
className: "genepix-permalink",
|
|
172
|
-
sx: {
|
|
173
|
-
display: "inline-block",
|
|
174
|
-
marginLeft: 1
|
|
175
|
-
},
|
|
176
|
-
children: /* @__PURE__ */ (0, E.jsx)(W, {
|
|
177
|
-
baseIcon: /* @__PURE__ */ (0, E.jsx)(_, {}),
|
|
178
|
-
buttonProps: { sx: {
|
|
179
|
-
"& svg": { fontSize: 20 },
|
|
180
|
-
height: 20,
|
|
181
|
-
width: 20
|
|
182
|
-
} },
|
|
183
|
-
iconOnly: !0,
|
|
184
|
-
onGetClipboardValue: A
|
|
185
|
-
})
|
|
186
|
-
})]
|
|
187
|
-
}), !c && /* @__PURE__ */ (0, E.jsx)(s, {
|
|
188
|
-
...x.createAttributes(`${b}-closeButton`),
|
|
189
|
-
"aria-label": S ? D("Close dialog with title: {{title}}", { title: S }) : D`Close dialog`,
|
|
190
|
-
onClick: v,
|
|
191
|
-
sx: { color: "grey.500" },
|
|
192
|
-
title: D`Close`,
|
|
193
|
-
children: /* @__PURE__ */ (0, E.jsx)(C, {})
|
|
194
|
-
})]
|
|
195
|
-
}),
|
|
196
|
-
!!t && /* @__PURE__ */ (0, E.jsx)(g, {
|
|
197
|
-
...x.createAttributes(`${b}-content`),
|
|
198
|
-
dividers: !0,
|
|
199
|
-
ref: n,
|
|
200
|
-
sx: { paddingTop: i ? 0 : void 0 },
|
|
201
|
-
children: t
|
|
202
|
-
}),
|
|
203
|
-
e?.length > 0 && /* @__PURE__ */ (0, E.jsx)(p, {
|
|
204
|
-
...x.createAttributes(`${b}-actions`),
|
|
205
|
-
children: /* @__PURE__ */ (0, E.jsx)(d, {
|
|
206
|
-
sx: { "& > button": { margin: 1 } },
|
|
207
|
-
children: e.map((e) => K(e) ? /* @__PURE__ */ (0, E.jsx)(f, {
|
|
208
|
-
...e,
|
|
209
|
-
children: e.label
|
|
210
|
-
}, e.label) : e)
|
|
211
|
-
})
|
|
212
|
-
})
|
|
213
|
-
]
|
|
214
|
-
});
|
|
215
|
-
}, J = (e, t = {}) => class extends w.Component {
|
|
216
|
-
dialogContentRef;
|
|
217
|
-
constructor(e) {
|
|
218
|
-
super(e), this.state = {
|
|
219
|
-
actions: null,
|
|
220
|
-
disableBackdropClick: t?.disableBackdropClick,
|
|
221
|
-
isOpen: !1,
|
|
222
|
-
noCloseButton: t?.noCloseButton,
|
|
223
|
-
openProps: void 0,
|
|
224
|
-
permalink: e.permalink,
|
|
225
|
-
title: e.title || t?.defaultTitle
|
|
226
|
-
}, this.onClose = this.onClose.bind(this), this.onPermalinkChange = this.onPermalinkChange.bind(this), this.onTitleChange = this.onTitleChange.bind(this), this.onActionsChange = this.onActionsChange.bind(this), this.onDisableBackdropClickChange = this.onDisableBackdropClickChange.bind(this), this.onNoCloseButtonChange = this.onNoCloseButtonChange.bind(this), this.dialogContentRef = (0, w.createRef)();
|
|
227
|
-
}
|
|
228
|
-
close() {
|
|
229
|
-
this.setState({ isOpen: !1 });
|
|
230
|
-
}
|
|
231
|
-
open(e) {
|
|
232
|
-
this.setState({
|
|
233
|
-
isOpen: !0,
|
|
234
|
-
openProps: e
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
render() {
|
|
238
|
-
let { isOpen: n } = this.state;
|
|
239
|
-
return n ? /* @__PURE__ */ (0, E.jsx)(q, {
|
|
240
|
-
actions: this.state.actions,
|
|
241
|
-
dialogContentRef: this.dialogContentRef,
|
|
242
|
-
disableBackdropClick: this.state.disableBackdropClick,
|
|
243
|
-
fullScreen: t.fullScreen,
|
|
244
|
-
fullWidth: t.fullWidth,
|
|
245
|
-
maxWidth: t.maxWidth,
|
|
246
|
-
noCloseButton: this.state.noCloseButton,
|
|
247
|
-
noPadding: t.noPadding,
|
|
248
|
-
noTitle: t?.noTitle,
|
|
249
|
-
onClose: this.onClose,
|
|
250
|
-
permalink: this.state.permalink,
|
|
251
|
-
testId: t?.testId,
|
|
252
|
-
title: this.state.title,
|
|
253
|
-
titleVariant: t?.titleVariant,
|
|
254
|
-
children: /* @__PURE__ */ (0, E.jsx)(e, {
|
|
255
|
-
...this.props,
|
|
256
|
-
dialogContentRef: this.dialogContentRef,
|
|
257
|
-
onActionsChange: this.onActionsChange,
|
|
258
|
-
onClose: this.onClose,
|
|
259
|
-
onDisableBackdropClickChange: this.onDisableBackdropClickChange,
|
|
260
|
-
onNoCloseButtonChange: this.onNoCloseButtonChange,
|
|
261
|
-
onPermalinkChange: this.onPermalinkChange,
|
|
262
|
-
onTitleChange: this.onTitleChange,
|
|
263
|
-
openProps: this.state.openProps
|
|
264
|
-
})
|
|
265
|
-
}) : null;
|
|
266
|
-
}
|
|
267
|
-
onActionsChange(e) {
|
|
268
|
-
this.setState({ actions: e });
|
|
269
|
-
}
|
|
270
|
-
onClose() {
|
|
271
|
-
this.close(), this.props.onClose?.();
|
|
272
|
-
}
|
|
273
|
-
onDisableBackdropClickChange(e) {
|
|
274
|
-
this.setState({ disableBackdropClick: e });
|
|
275
|
-
}
|
|
276
|
-
onNoCloseButtonChange(e) {
|
|
277
|
-
this.setState({ noCloseButton: e });
|
|
278
|
-
}
|
|
279
|
-
onPermalinkChange(e) {
|
|
280
|
-
this.setState({ permalink: e });
|
|
281
|
-
}
|
|
282
|
-
onTitleChange(e) {
|
|
283
|
-
this.setState({ title: e });
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
//#endregion
|
|
287
|
-
export { J as t };
|
|
288
|
-
|
|
289
|
-
//# sourceMappingURL=withDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withDialog.js","names":["PropTypes","t","n","r","i","t","n","s","r","c","l","u","o","a","i","t","p","r","o","m","i","l","n","f","u","d","c","s","a","t","n","e"],"sources":["../../../../../../node_modules/.pnpm/@mui+material@9.4.0_@emotion+react@11.14.0_@types+react@19.3.0_react@19.3.0_supports-co_876c01243dbcdb7de27cf1bcc84db747/node_modules/@mui/material/DialogTitle/DialogTitle.mjs","../../../../../../node_modules/.pnpm/@gen-epix+ui-core-components@4.3.1_042ffd1b957752b43692251051b5ea4b/node_modules/@gen-epix/ui-core-components/dist/_chunks/rolldown-runtime.js","../../../../../../node_modules/.pnpm/@gen-epix+ui-core-components@4.3.1_042ffd1b957752b43692251051b5ea4b/node_modules/@gen-epix/ui-core-components/dist/_chunks/isObject.js","../../../../../../node_modules/.pnpm/@mui+icons-material@9.4.0_@mui+material@9.4.0_@emotion+react@11.14.0_@types+react@19.3._9ea641d093c8d4a6ca4517c9b0071d29/node_modules/@mui/icons-material/ContentCopy.mjs","../../../../../../node_modules/.pnpm/@mui+icons-material@9.4.0_@mui+material@9.4.0_@emotion+react@11.14.0_@types+react@19.3._9ea641d093c8d4a6ca4517c9b0071d29/node_modules/@mui/icons-material/Done.mjs","../../../../../../node_modules/.pnpm/@gen-epix+ui-core-components@4.3.1_042ffd1b957752b43692251051b5ea4b/node_modules/@gen-epix/ui-core-components/dist/components/CopyToClipboardButton/index.js","../../../../../../node_modules/.pnpm/@gen-epix+ui-core-components@4.3.1_042ffd1b957752b43692251051b5ea4b/node_modules/@gen-epix/ui-core-components/dist/components/Dialog/index.js","../../../../../../node_modules/.pnpm/@gen-epix+ui-core-components@4.3.1_042ffd1b957752b43692251051b5ea4b/node_modules/@gen-epix/ui-core-components/dist/hoc/withDialog/index.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport Typography from \"../Typography/index.mjs\";\nimport { styled } from \"../zero-styled/index.mjs\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.mjs\";\nimport { getDialogTitleUtilityClass } from \"./dialogTitleClasses.mjs\";\nimport DialogContext from \"../Dialog/DialogContext.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getDialogTitleUtilityClass, classes);\n};\nconst DialogTitleRoot = styled(Typography, {\n name: 'MuiDialogTitle',\n slot: 'Root'\n})({\n padding: '16px 24px',\n flex: '0 0 auto'\n});\nconst DialogTitle = /*#__PURE__*/React.forwardRef(function DialogTitle(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiDialogTitle'\n });\n const {\n className,\n id: idProp,\n ...other\n } = props;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const {\n titleId = idProp\n } = React.useContext(DialogContext);\n return /*#__PURE__*/_jsx(DialogTitleRoot, {\n component: \"h2\",\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n variant: \"h6\",\n id: idProp ?? titleId,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DialogTitle.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * @ignore\n */\n id: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default DialogTitle;","//#region \\0rolldown/runtime.js\nvar e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {\n\tif (i && typeof i == \"object\" || typeof i == \"function\") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {\n\t\tget: ((e) => i[e]).bind(null, d),\n\t\tenumerable: !(s = n(i, d)) || s.enumerable\n\t});\n\treturn e;\n}, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, \"default\") ? t(o, \"default\", {\n\tvalue: n,\n\tenumerable: !0\n}) : o, n));\n//#endregion\nexport { c as n, o as t };\n","import { t as e } from \"./rolldown-runtime.js\";\n//#region ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tfunction n(e) {\n\t\tvar t = typeof e;\n\t\treturn e != null && (t == \"object\" || t == \"function\");\n\t}\n\tt.exports = n;\n}));\n//#endregion\nexport { t };\n\n//# sourceMappingURL=isObject.js.map","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z\"\n}), 'ContentCopy');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z\"\n}), 'Done');","import { n as e, t } from \"../../_chunks/rolldown-runtime.js\";\nimport * as n from \"react\";\nimport { useState as r } from \"react\";\nimport { Button as i, IconButton as a, Tooltip as o } from \"@mui/material\";\nimport { useTranslation as s } from \"react-i18next\";\nimport c from \"@mui/icons-material/ContentCopy\";\nimport l from \"@mui/icons-material/Done\";\nimport u from \"@mui/icons-material/Error\";\nimport { jsx as d } from \"react/jsx-runtime\";\n//#region builtin:esm-external-require-react\nvar f = /* @__PURE__ */ t(((e, t) => {\n\tt.exports = { ...n };\n})), p = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {\n\tvar n = f();\n\tfunction r(e) {\n\t\tvar t = e.cleanup;\n\t\te.isCalled || typeof t != \"function\" || (e.isCalled = !0, t());\n\t}\n\tt.exports = function(e, t, i) {\n\t\tvar a = i === void 0 ? {} : i, o = a.cleanUpOnCall, s = o === void 0 || o, c = a.cleanUpOnDepsChange, l = c !== void 0 && c, u = a.cleanUpOnUnmount, d = u === void 0 || u, f = n.useRef({\n\t\t\tcleanup: null,\n\t\t\tisCalled: !1\n\t\t}), p = {\n\t\t\tcleanUpOnCall: s,\n\t\t\tcleanUpOnDepsChange: l,\n\t\t\tcleanUpOnUnmount: d\n\t\t}, m = n.useRef(p);\n\t\treturn n.useEffect(function() {\n\t\t\tm.current = p;\n\t\t}), n.useEffect(function() {\n\t\t\treturn function() {\n\t\t\t\tm.current.cleanUpOnDepsChange && r(f.current);\n\t\t\t};\n\t\t}, [t]), n.useEffect(function() {\n\t\t\treturn function() {\n\t\t\t\tm.current.cleanUpOnUnmount && r(f.current);\n\t\t\t};\n\t\t}, []), n.useCallback(function() {\n\t\t\tm.current.cleanUpOnCall && r(f.current);\n\t\t\tvar t = e.apply(void 0, [].slice.call(arguments));\n\t\t\tif (typeof t == \"object\") {\n\t\t\t\tvar n = t.value;\n\t\t\t\treturn f.current = {\n\t\t\t\t\tcleanup: t.cleanup,\n\t\t\t\t\tisCalled: !1\n\t\t\t\t}, n;\n\t\t\t}\n\t\t\treturn typeof t == \"function\" && (f.current = {\n\t\t\t\tcleanup: t,\n\t\t\t\tisCalled: !1\n\t\t\t}), t;\n\t\t}, t);\n\t};\n})))(), 1), m = ({ baseIcon: e, buttonProps: t, buttonText: n, buttonVariant: f, clipboardValue: m, iconOnly: h, onGetClipboardValue: g, tooltipSuccessText: _ }) => {\n\tlet { t: v } = s(), [y, b] = r(\"primary\"), [x, S] = r(e ?? /* @__PURE__ */ d(c, {})), [C, w] = r(n ?? v`Copy to clipboard`), T = (0, p.default)(() => {\n\t\tlet t;\n\t\treturn (async () => {\n\t\t\ttry {\n\t\t\t\tawait navigator.clipboard.writeText(m ?? g()), b(\"success\"), S(/* @__PURE__ */ d(l, {})), w(_ ?? v`Copied to clipboard`);\n\t\t\t} catch {\n\t\t\t\tb(\"error\"), S(/* @__PURE__ */ d(u, {})), w(v`Error`);\n\t\t\t} finally {\n\t\t\t\tt = window.setTimeout(() => {\n\t\t\t\t\tb(\"primary\"), S(e ?? /* @__PURE__ */ d(c, {})), w(n ?? v`Copy to clipboard`);\n\t\t\t\t}, 2e3);\n\t\t\t}\n\t\t})(), () => {\n\t\t\tclearTimeout(t);\n\t\t};\n\t}, [\n\t\te,\n\t\tn,\n\t\tm,\n\t\tg,\n\t\tv,\n\t\t_\n\t]);\n\treturn h ? /* @__PURE__ */ d(o, {\n\t\tarrow: !0,\n\t\tplacement: \"top\",\n\t\ttitle: C,\n\t\tchildren: /* @__PURE__ */ d(a, {\n\t\t\t...t,\n\t\t\tcolor: y,\n\t\t\tonClick: T,\n\t\t\tsize: \"small\",\n\t\t\tchildren: x\n\t\t})\n\t}) : /* @__PURE__ */ d(i, {\n\t\t...t,\n\t\tcolor: y,\n\t\tonClick: T,\n\t\tstartIcon: x,\n\t\tvariant: f ?? \"contained\",\n\t\tchildren: n ?? v`Copy to clipboard`\n\t});\n};\n//#endregion\nexport { m as CopyToClipboardButton };\n\n//# sourceMappingURL=index.js.map","import { n as e } from \"../../_chunks/rolldown-runtime.js\";\nimport { t } from \"../../_chunks/isObject.js\";\nimport { CopyToClipboardButton as n } from \"../CopyToClipboardButton/index.js\";\nimport { useCallback as r } from \"react\";\nimport { Box as i, Button as a, Dialog as o, DialogActions as s, DialogContent as c, DialogTitle as l, IconButton as u } from \"@mui/material\";\nimport d from \"@mui/icons-material/Close\";\nimport f from \"@mui/icons-material/Link\";\nimport { useTranslation as p } from \"react-i18next\";\nimport { TestIdUtil as m } from \"@gen-epix/ui-core/utils/TestIdUtil\";\nimport { jsx as h, jsxs as g } from \"react/jsx-runtime\";\n//#region src/components/Dialog/Dialog.tsx\nvar _ = /* @__PURE__ */ e(t(), 1), v = (e) => (0, _.default)(e) && \"label\" in e, y = ({ actions: e, children: t, dialogContentRef: _, disableBackdropClick: y = !1, fullScreen: b = !1, fullWidth: x = !1, maxWidth: S = !1, noCloseButton: C = !1, noPadding: w = !1, noTitle: T = !1, onClose: E, permalink: D, testId: O, title: k, titleVariant: A = \"h5\" }) => {\n\tlet { t: j } = p(), M = r((e, t) => {\n\t\t(!y || t !== \"backdropClick\" && t !== \"escapeKeyDown\") && E?.();\n\t}, [y, E]), N = r(() => D, [D]);\n\treturn /* @__PURE__ */ g(o, {\n\t\t...m.createAttributes(O, { title: k }),\n\t\tfullScreen: b,\n\t\tfullWidth: x,\n\t\tmaxWidth: S,\n\t\tonClose: M,\n\t\topen: !0,\n\t\tsx: { \"& .MuiDialogContent-root, & .MuiCardContent-root:last-child\": { padding: w ? \"0\" : void 0 } },\n\t\tchildren: [\n\t\t\t!T && /* @__PURE__ */ g(i, {\n\t\t\t\tsx: {\n\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\tjustifyContent: \"space-between\"\n\t\t\t\t},\n\t\t\t\tchildren: [/* @__PURE__ */ g(l, {\n\t\t\t\t\t...m.createAttributes(`${O}-title`),\n\t\t\t\t\tsx: { pr: 3 },\n\t\t\t\t\tvariant: A,\n\t\t\t\t\tchildren: [k, D && /* @__PURE__ */ h(i, {\n\t\t\t\t\t\tclassName: \"genepix-permalink\",\n\t\t\t\t\t\tsx: {\n\t\t\t\t\t\t\tdisplay: \"inline-block\",\n\t\t\t\t\t\t\tmarginLeft: 1\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ h(n, {\n\t\t\t\t\t\t\tbaseIcon: /* @__PURE__ */ h(f, {}),\n\t\t\t\t\t\t\tbuttonProps: { sx: {\n\t\t\t\t\t\t\t\t\"& svg\": { fontSize: 20 },\n\t\t\t\t\t\t\t\theight: 20,\n\t\t\t\t\t\t\t\twidth: 20\n\t\t\t\t\t\t\t} },\n\t\t\t\t\t\t\ticonOnly: !0,\n\t\t\t\t\t\t\tonGetClipboardValue: N\n\t\t\t\t\t\t})\n\t\t\t\t\t})]\n\t\t\t\t}), !C && /* @__PURE__ */ h(u, {\n\t\t\t\t\t...m.createAttributes(`${O}-closeButton`),\n\t\t\t\t\t\"aria-label\": k ? j(\"Close dialog with title: {{title}}\", { title: k }) : j`Close dialog`,\n\t\t\t\t\tonClick: E,\n\t\t\t\t\tsx: { color: \"grey.500\" },\n\t\t\t\t\ttitle: j`Close`,\n\t\t\t\t\tchildren: /* @__PURE__ */ h(d, {})\n\t\t\t\t})]\n\t\t\t}),\n\t\t\t!!t && /* @__PURE__ */ h(c, {\n\t\t\t\t...m.createAttributes(`${O}-content`),\n\t\t\t\tdividers: !0,\n\t\t\t\tref: _,\n\t\t\t\tsx: { paddingTop: b ? 0 : void 0 },\n\t\t\t\tchildren: t\n\t\t\t}),\n\t\t\te?.length > 0 && /* @__PURE__ */ h(s, {\n\t\t\t\t...m.createAttributes(`${O}-actions`),\n\t\t\t\tchildren: /* @__PURE__ */ h(i, {\n\t\t\t\t\tsx: { \"& > button\": { margin: 1 } },\n\t\t\t\t\tchildren: e.map((e) => v(e) ? /* @__PURE__ */ h(a, {\n\t\t\t\t\t\t...e,\n\t\t\t\t\t\tchildren: e.label\n\t\t\t\t\t}, e.label) : e)\n\t\t\t\t})\n\t\t\t})\n\t\t]\n\t});\n};\n//#endregion\nexport { y as Dialog };\n\n//# sourceMappingURL=index.js.map","import { Dialog as e } from \"../../components/Dialog/index.js\";\nimport { Component as t, createRef as n } from \"react\";\nimport { jsx as r } from \"react/jsx-runtime\";\n//#region src/hoc/withDialog/withDialog.tsx\nvar i = (i, a = {}) => class extends t {\n\tdialogContentRef;\n\tconstructor(e) {\n\t\tsuper(e), this.state = {\n\t\t\tactions: null,\n\t\t\tdisableBackdropClick: a?.disableBackdropClick,\n\t\t\tisOpen: !1,\n\t\t\tnoCloseButton: a?.noCloseButton,\n\t\t\topenProps: void 0,\n\t\t\tpermalink: e.permalink,\n\t\t\ttitle: e.title || a?.defaultTitle\n\t\t}, this.onClose = this.onClose.bind(this), this.onPermalinkChange = this.onPermalinkChange.bind(this), this.onTitleChange = this.onTitleChange.bind(this), this.onActionsChange = this.onActionsChange.bind(this), this.onDisableBackdropClickChange = this.onDisableBackdropClickChange.bind(this), this.onNoCloseButtonChange = this.onNoCloseButtonChange.bind(this), this.dialogContentRef = n();\n\t}\n\tclose() {\n\t\tthis.setState({ isOpen: !1 });\n\t}\n\topen(e) {\n\t\tthis.setState({\n\t\t\tisOpen: !0,\n\t\t\topenProps: e\n\t\t});\n\t}\n\trender() {\n\t\tlet { isOpen: t } = this.state;\n\t\treturn t ? /* @__PURE__ */ r(e, {\n\t\t\tactions: this.state.actions,\n\t\t\tdialogContentRef: this.dialogContentRef,\n\t\t\tdisableBackdropClick: this.state.disableBackdropClick,\n\t\t\tfullScreen: a.fullScreen,\n\t\t\tfullWidth: a.fullWidth,\n\t\t\tmaxWidth: a.maxWidth,\n\t\t\tnoCloseButton: this.state.noCloseButton,\n\t\t\tnoPadding: a.noPadding,\n\t\t\tnoTitle: a?.noTitle,\n\t\t\tonClose: this.onClose,\n\t\t\tpermalink: this.state.permalink,\n\t\t\ttestId: a?.testId,\n\t\t\ttitle: this.state.title,\n\t\t\ttitleVariant: a?.titleVariant,\n\t\t\tchildren: /* @__PURE__ */ r(i, {\n\t\t\t\t...this.props,\n\t\t\t\tdialogContentRef: this.dialogContentRef,\n\t\t\t\tonActionsChange: this.onActionsChange,\n\t\t\t\tonClose: this.onClose,\n\t\t\t\tonDisableBackdropClickChange: this.onDisableBackdropClickChange,\n\t\t\t\tonNoCloseButtonChange: this.onNoCloseButtonChange,\n\t\t\t\tonPermalinkChange: this.onPermalinkChange,\n\t\t\t\tonTitleChange: this.onTitleChange,\n\t\t\t\topenProps: this.state.openProps\n\t\t\t})\n\t\t}) : null;\n\t}\n\tonActionsChange(e) {\n\t\tthis.setState({ actions: e });\n\t}\n\tonClose() {\n\t\tthis.close(), this.props.onClose?.();\n\t}\n\tonDisableBackdropClickChange(e) {\n\t\tthis.setState({ disableBackdropClick: e });\n\t}\n\tonNoCloseButtonChange(e) {\n\t\tthis.setState({ noCloseButton: e });\n\t}\n\tonPermalinkChange(e) {\n\t\tthis.setState({ permalink: e });\n\t}\n\tonTitleChange(e) {\n\t\tthis.setState({ title: e });\n\t}\n};\n//#endregion\nexport { i as withDialog };\n\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0,1,2,3,4,5,6,7],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