@ohif/app 3.12.12 → 3.12.18

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.
Files changed (39) hide show
  1. package/dist/{147.bundle.47af018b91121924a12c.js → 147.bundle.4f6c4b2f06c64d34ddf7.js} +2 -2
  2. package/dist/{1608.bundle.b9abbf4ed6cc2e491dc3.js → 1608.bundle.b937300c52a2b8676e50.js} +2 -2
  3. package/dist/{1730.bundle.f7a6a5b5ccc80f553600.js → 1730.bundle.529dce8e8340059b9ed3.js} +2 -2
  4. package/dist/{1933.bundle.0f5faf70f33aaca9b559.js → 1933.bundle.32109000c6d22f6fbfc1.js} +4 -4
  5. package/dist/{213.bundle.e7d44151916e840a8d98.js → 213.bundle.d6bf3e06e4f7a9cad04c.js} +2 -2
  6. package/dist/{2701.bundle.58a6a580073edbb4cc04.js → 2701.bundle.54392a815cb5434534dd.js} +2 -2
  7. package/dist/{2851.bundle.cc163ac2f967e849b50f.js → 2851.bundle.cda8d63df28fd6db644f.js} +10 -10
  8. package/dist/{3081.bundle.f99680b9b4e560bc979f.js → 3081.bundle.4dcdfebe88148589c520.js} +10 -10
  9. package/dist/{3461.bundle.d5e330109ab0e7c36f8e.js → 3461.bundle.72a5f02836647ecc5e68.js} +2 -2
  10. package/dist/{4202.bundle.4f76d3a50d6cf819fba0.js → 4202.bundle.89d2c6f27e2168c1eaf0.js} +1 -1
  11. package/dist/4291.bundle.80f9c614ba358607a571.js +464 -0
  12. package/dist/{4775.bundle.d890a3d78f161780ba01.js → 4775.bundle.d7934011a28d548f4a8d.js} +2 -2
  13. package/dist/{4819.bundle.d60eccdd197fad6c7fd1.js → 4819.bundle.cb4b34e4e0186d48663b.js} +4 -4
  14. package/dist/{5028.bundle.e1562151c89957181c62.js → 5028.bundle.270476526d411e1736e7.js} +2 -2
  15. package/dist/{5802.bundle.ae4d88742c353de462c2.js → 5802.bundle.e4154ef85ac25664a583.js} +2 -2
  16. package/dist/5802.css +2 -2
  17. package/dist/7159.bundle.4e35c02553d018f079c8.js +154 -0
  18. package/dist/{8305.bundle.9bb5d0f40fc013540c9c.js → 8305.bundle.bc827add8a13f2fd82af.js} +4 -4
  19. package/dist/{8558.bundle.22a3e5953823c17860aa.js → 8558.bundle.6efd49ae8af07ea9219f.js} +2 -2
  20. package/dist/{8583.bundle.38af38a4cb1844059a23.js → 8583.bundle.747d3af2f3999764317d.js} +4 -4
  21. package/dist/{9845.bundle.31f3e7e2d28fa6033ee5.js → 9845.bundle.8de3f0dd985f18df8668.js} +2 -2
  22. package/dist/{9862.bundle.73ea2a7703bf1bb96275.js → 9862.bundle.700d686f2de51c3a3291.js} +1 -1
  23. package/dist/{app.bundle.156bc1996ff3567faecd.js → app.bundle.c5ec540e13e5237c97d9.js} +363 -3574
  24. package/dist/app.bundle.css +8 -8
  25. package/dist/index.html +1 -1
  26. package/dist/sw.js +1 -1
  27. package/package.json +21 -22
  28. package/dist/2424.bundle.97d088ab7e6d802d4624.js +0 -150
  29. package/dist/7159.bundle.a5991a5d4f0dd8f1c95f.js +0 -85
  30. /package/dist/{1403.bundle.7317b367902cb4f092e2.js → 1403.bundle.f98313d845a2d793f838.js} +0 -0
  31. /package/dist/{1459.bundle.292847a7cf8cb631613d.js → 1459.bundle.500bfd5ff0ee1344e526.js} +0 -0
  32. /package/dist/{2018.bundle.53dba4d0535a0322075c.js → 2018.bundle.322200afa4cb3925b05e.js} +0 -0
  33. /package/dist/{5457.bundle.c1ff42e47af537cc89d1.js → 5457.bundle.a312cb836e9ee9ae5b71.js} +0 -0
  34. /package/dist/{5485.bundle.e28c4a96c186505873c0.js → 5485.bundle.26bacdd739c56f92d367.js} +0 -0
  35. /package/dist/{6027.bundle.fe689eaeb9163f6cf5b7.js → 6027.bundle.6748abce57182c8d5ed3.js} +0 -0
  36. /package/dist/{6163.bundle.c39812c7a4ede39513a0.js → 6163.bundle.4c8c7da038961117f3df.js} +0 -0
  37. /package/dist/{7639.bundle.b5a7255b27abc9b5e591.js → 7639.bundle.f7ed9648dd1b8af9c1d8.js} +0 -0
  38. /package/dist/{85.bundle.1e9b9b84b6a158f57bca.js → 85.bundle.71701281e6e3cff02973.js} +0 -0
  39. /package/dist/{9927.bundle.bbb5fbd167b4bac05643.js → 9927.bundle.9c2714c36b762bf5b38f.js} +0 -0
@@ -0,0 +1,464 @@
1
+ "use strict";
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[4291],{
3
+
4
+ /***/ 4291
5
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
+
7
+
8
+ // EXPORTS
9
+ __webpack_require__.d(__webpack_exports__, {
10
+ "default": () => (/* binding */ dicom_pdf_src)
11
+ });
12
+
13
+ // EXTERNAL MODULE: ../../../node_modules/react/index.js
14
+ var react = __webpack_require__(86326);
15
+ ;// ../../../extensions/dicom-pdf/package.json
16
+ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/extension-dicom-pdf"}');
17
+ ;// ../../../extensions/dicom-pdf/src/id.js
18
+
19
+ const id = package_namespaceObject.UU;
20
+ const SOPClassHandlerId = `${id}.sopClassHandlerModule.dicom-pdf`;
21
+
22
+ // EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
23
+ var src = __webpack_require__(42356);
24
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 288 modules
25
+ var i18n_src = __webpack_require__(31863);
26
+ ;// ../../../extensions/dicom-pdf/src/utils/displayableDocumentTypes.ts
27
+ /**
28
+ * The set of encapsulated-document MIME types this extension is willing to put
29
+ * in front of a user, and how each one is embedded.
30
+ *
31
+ * MIMETypeOfEncapsulatedDocument is supplied by whoever produced the instance,
32
+ * so it is treated here as a claim to be checked rather than an instruction to
33
+ * be followed. A type that is not on this list is not rendered at all.
34
+ */
35
+
36
+ /**
37
+ * How a document is embedded in the viewport.
38
+ *
39
+ * 'object' - <object>. The browsers' built-in PDF viewers refuse to run inside
40
+ * a sandboxed browsing context: in Chrome a PDF renders under no sandbox at
41
+ * all and under none of the token combinations, including the fully
42
+ * permissive `allow-scripts allow-same-origin`. PDFs therefore cannot be
43
+ * sandboxed, and their safety rests entirely on the type guarantee that
44
+ * loadDisplayableDocument applies (canonical Blob type + signature check).
45
+ *
46
+ * 'iframe' - <iframe sandbox>. Markup types render correctly inside a sandbox,
47
+ * so they get one. The default is the empty sandbox: no tokens, scripts
48
+ * inert, opaque origin, no access to the viewer's storage or DOM.
49
+ */
50
+
51
+ /**
52
+ * Real files do not always put their magic number at byte 0, and readers that
53
+ * accept them anyway are the reason such files exist in the wild.
54
+ *
55
+ * PDF: ISO 32000-1 requires "%PDF-" at the start of the file, but Adobe's own
56
+ * implementation note relaxes this to anywhere within the first 1024 bytes, and
57
+ * every mainstream reader follows suit. Producers that write a UTF-8 BOM, or
58
+ * that prepend junk before the header, therefore produce files that open
59
+ * everywhere except here. Matching the 1024-byte allowance keeps the check
60
+ * doing its actual job - catching a payload that is not a PDF at all, which is
61
+ * how a document declared as PDF but containing markup gets rejected - without
62
+ * failing valid documents over leading bytes the renderer will skip anyway.
63
+ */
64
+ const PDF_SIGNATURE_SEARCH_LIMIT = 1024;
65
+
66
+ /**
67
+ * Canonical entries, keyed by canonical MIME type. Exported so downstream
68
+ * deployments can extend the list; adding an entry means asserting both that
69
+ * the browser renders that type inline and that the chosen strategy contains it.
70
+ */
71
+ const DISPLAYABLE_DOCUMENT_TYPES = {
72
+ 'application/pdf': {
73
+ mimeType: 'application/pdf',
74
+ strategy: 'object',
75
+ signature: [0x25, 0x50, 0x44, 0x46, 0x2d],
76
+ // "%PDF-"
77
+ signatureSearchLimit: PDF_SIGNATURE_SEARCH_LIMIT
78
+ },
79
+ 'text/html': {
80
+ mimeType: 'text/html',
81
+ strategy: 'iframe',
82
+ sandbox: ''
83
+ },
84
+ 'application/xhtml+xml': {
85
+ mimeType: 'application/xhtml+xml',
86
+ strategy: 'iframe',
87
+ sandbox: ''
88
+ },
89
+ 'text/xml': {
90
+ mimeType: 'text/xml',
91
+ strategy: 'iframe',
92
+ sandbox: ''
93
+ },
94
+ 'application/xml': {
95
+ mimeType: 'application/xml',
96
+ strategy: 'iframe',
97
+ sandbox: ''
98
+ },
99
+ 'text/plain': {
100
+ mimeType: 'text/plain',
101
+ strategy: 'iframe',
102
+ sandbox: ''
103
+ }
104
+ };
105
+
106
+ /**
107
+ * Non-standard spellings seen in real instances, folded onto their canonical
108
+ * entry. Accepting an alias is safe because the canonical entry decides both
109
+ * the Blob type and the signature the payload has to satisfy.
110
+ */
111
+ const DOCUMENT_MIME_TYPE_ALIASES = {
112
+ 'application/html': 'text/html',
113
+ 'application/x-pdf': 'application/pdf',
114
+ 'application/acrobat': 'application/pdf',
115
+ 'text/pdf': 'application/pdf',
116
+ 'application/xhtml': 'application/xhtml+xml'
117
+ };
118
+
119
+ /**
120
+ * Lower-cases and strips any parameters (`text/html; charset=utf-8`).
121
+ */
122
+ function normalizeDocumentMimeType(rawMimeType) {
123
+ if (typeof rawMimeType !== 'string') {
124
+ return undefined;
125
+ }
126
+ const normalized = rawMimeType.split(';')[0].trim().toLowerCase();
127
+ return normalized || undefined;
128
+ }
129
+
130
+ /**
131
+ * Resolves a declared MIME type to its allowlist entry, or undefined when the
132
+ * type is not one this extension will display.
133
+ */
134
+ function getDisplayableDocumentType(rawMimeType) {
135
+ const normalized = normalizeDocumentMimeType(rawMimeType);
136
+ if (!normalized) {
137
+ return undefined;
138
+ }
139
+ const canonical = DOCUMENT_MIME_TYPE_ALIASES[normalized] ?? normalized;
140
+ return DISPLAYABLE_DOCUMENT_TYPES[canonical];
141
+ }
142
+
143
+ /**
144
+ * Checks a payload against its type's magic number, allowing the signature to
145
+ * start anywhere within `signatureSearchLimit` bytes of the payload. Types that
146
+ * have no reliable signature pass, since for those the sandbox rather than the
147
+ * content check is what contains the document.
148
+ */
149
+ function matchesDocumentSignature(documentType, payload) {
150
+ const {
151
+ signature,
152
+ signatureSearchLimit = 0
153
+ } = documentType;
154
+ if (!signature?.length) {
155
+ return true;
156
+ }
157
+ if (payload.byteLength < signature.length) {
158
+ return false;
159
+ }
160
+
161
+ // Only the window the signature could still start in needs reading, and it is
162
+ // bounded, so an oversized document costs the same as a small one.
163
+ const lastStart = Math.min(signatureSearchLimit, payload.byteLength - signature.length);
164
+ const head = new Uint8Array(payload, 0, lastStart + signature.length);
165
+ for (let start = 0; start <= lastStart; start++) {
166
+ if (signature.every((byte, index) => head[start + index] === byte)) {
167
+ return true;
168
+ }
169
+ }
170
+ return false;
171
+ }
172
+ ;// ../../../extensions/dicom-pdf/src/utils/loadDisplayableDocument.ts
173
+
174
+ /**
175
+ * Resolves an encapsulated document into something safe to embed.
176
+ *
177
+ * The payload comes from the instance the same way every other bulkdata value
178
+ * does: inline content when the metadata carries it, otherwise the data
179
+ * source's own `retrieveBulkData`, which the data source binds onto the value
180
+ * and which caches the resolved buffer on `value.Value`. This is the path the
181
+ * video display sets take, so authentication, bulkdata URI resolution and
182
+ * caching all behave identically here.
183
+ *
184
+ * The bytes are then wrapped in a Blob whose type comes from the allowlist
185
+ * rather than from the instance. That is the type guarantee: after this point
186
+ * neither MIMETypeOfEncapsulatedDocument nor the origin server's Content-Type
187
+ * has any say in how the browser interprets the payload, so a document cannot
188
+ * be steered into being parsed as something it is not.
189
+ */
190
+ async function loadDisplayableDocument({
191
+ instance,
192
+ mimeType,
193
+ tag = 'EncapsulatedDocument'
194
+ }, {
195
+ signal
196
+ } = {}) {
197
+ const documentType = getDisplayableDocumentType(mimeType);
198
+ if (!documentType) {
199
+ return {
200
+ ok: false,
201
+ reason: 'unsupported-type',
202
+ mimeType
203
+ };
204
+ }
205
+ const value = instance?.[tag];
206
+ if (!value) {
207
+ return {
208
+ ok: false,
209
+ reason: 'retrieve-failed'
210
+ };
211
+ }
212
+ if (signal?.aborted) {
213
+ return {
214
+ ok: false,
215
+ reason: 'aborted'
216
+ };
217
+ }
218
+ let payload;
219
+ try {
220
+ payload = await readDocumentBytes(value, documentType.mimeType);
221
+ } catch (error) {
222
+ console.warn('Failed to retrieve encapsulated document', error);
223
+ return {
224
+ ok: false,
225
+ reason: 'retrieve-failed'
226
+ };
227
+ }
228
+ if (!payload?.byteLength) {
229
+ return {
230
+ ok: false,
231
+ reason: 'retrieve-failed'
232
+ };
233
+ }
234
+ if (signal?.aborted) {
235
+ return {
236
+ ok: false,
237
+ reason: 'aborted'
238
+ };
239
+ }
240
+ if (!matchesDocumentSignature(documentType, payload)) {
241
+ return {
242
+ ok: false,
243
+ reason: 'signature-mismatch',
244
+ mimeType: documentType.mimeType
245
+ };
246
+ }
247
+ const objectUrl = URL.createObjectURL(new Blob([payload], {
248
+ type: documentType.mimeType
249
+ }));
250
+ if (signal?.aborted) {
251
+ URL.revokeObjectURL(objectUrl);
252
+ return {
253
+ ok: false,
254
+ reason: 'aborted'
255
+ };
256
+ }
257
+ return {
258
+ ok: true,
259
+ url: objectUrl,
260
+ documentType,
261
+ revoke: createRevokeOnce(objectUrl)
262
+ };
263
+ }
264
+
265
+ /**
266
+ * Reads the document bytes off a naturalized bulkdata value, preferring
267
+ * whatever is already in hand. Mirrors the resolution order in
268
+ * `resolveBulkDataTags`, which is how the rest of the app reads bulkdata.
269
+ */
270
+ async function readDocumentBytes(value, mimeType) {
271
+ // Inline content delivered as base64 in the metadata.
272
+ if (value.InlineBinary) {
273
+ return base64ToArrayBuffer(value.InlineBinary);
274
+ }
275
+
276
+ // Inline content that the parser already decoded, e.g. `[ArrayBuffer]`.
277
+ if (Array.isArray(value)) {
278
+ return toArrayBuffer(value[0]);
279
+ }
280
+
281
+ // retrieveBulkData caches the resolved buffer here, so prefer it over
282
+ // re-requesting the payload.
283
+ if (value.Value) {
284
+ return toArrayBuffer(Array.isArray(value.Value) ? value.Value[0] : value.Value);
285
+ }
286
+
287
+ // Otherwise ask the data source, exactly as any other bulkdata value does.
288
+ if (typeof value.retrieveBulkData === 'function') {
289
+ const retrieved = await value.retrieveBulkData({
290
+ mediaType: mimeType
291
+ });
292
+ return toArrayBuffer(retrieved);
293
+ }
294
+ return undefined;
295
+ }
296
+ function toArrayBuffer(raw) {
297
+ // Check views first: ArrayBuffer.isView is realm-agnostic.
298
+ if (ArrayBuffer.isView(raw)) {
299
+ const view = raw;
300
+ return view.buffer.slice(view.byteOffset, view.byteOffset + view.byteLength);
301
+ }
302
+
303
+ // `instanceof ArrayBuffer` is realm-specific, so fall back to a tag check so
304
+ // that buffers created in another realm (workers, tests) are still handled.
305
+ if (raw instanceof ArrayBuffer || Object.prototype.toString.call(raw) === '[object ArrayBuffer]') {
306
+ return raw;
307
+ }
308
+ return undefined;
309
+ }
310
+
311
+ /**
312
+ * Decodes base64 inline content to bytes. `utils.b64toBlob` produces a Blob,
313
+ * but the signature check needs the bytes before a Blob is created - and the
314
+ * Blob has to be built from the allowlist type, not from a declared one.
315
+ */
316
+ function base64ToArrayBuffer(base64) {
317
+ const binary = atob(base64);
318
+ const bytes = new Uint8Array(binary.length);
319
+ for (let i = 0; i < binary.length; i++) {
320
+ bytes[i] = binary.charCodeAt(i);
321
+ }
322
+ return bytes.buffer;
323
+ }
324
+ function createRevokeOnce(objectUrl) {
325
+ let revoked = false;
326
+ return () => {
327
+ if (revoked) {
328
+ return;
329
+ }
330
+ URL.revokeObjectURL(objectUrl);
331
+ revoked = true;
332
+ };
333
+ }
334
+ ;// ../../../extensions/dicom-pdf/src/getSopClassHandlerModule.js
335
+
336
+
337
+
338
+
339
+
340
+ const SOP_CLASS_UIDS = {
341
+ ENCAPSULATED_PDF: '1.2.840.10008.5.1.4.1.1.104.1'
342
+ };
343
+ const sopClassUids = Object.values(SOP_CLASS_UIDS);
344
+ const _getDisplaySetsFromSeries = (instances, servicesManager, extensionManager) => {
345
+ return instances.map(instance => {
346
+ const {
347
+ Modality,
348
+ SOPInstanceUID
349
+ } = instance;
350
+ const {
351
+ SeriesDescription = 'PDF',
352
+ MIMETypeOfEncapsulatedDocument
353
+ } = instance;
354
+ const {
355
+ SeriesNumber,
356
+ SeriesDate,
357
+ SeriesInstanceUID,
358
+ StudyInstanceUID,
359
+ SOPClassUID
360
+ } = instance;
361
+ // The declared type is only a claim. It is resolved against the displayable
362
+ // type allowlist, and the payload is re-wrapped in a Blob of the canonical
363
+ // type, so the instance cannot steer how the browser parses the document.
364
+ const mimeType = normalizeDocumentMimeType(MIMETypeOfEncapsulatedDocument) || 'application/pdf';
365
+ const documentParams = {
366
+ instance,
367
+ tag: 'EncapsulatedDocument',
368
+ mimeType
369
+ };
370
+ const getDocument = options => loadDisplayableDocument(documentParams, options);
371
+ const displaySet = {
372
+ //plugin: id,
373
+ Modality,
374
+ displaySetInstanceUID: src/* utils */.Wp.guid(),
375
+ SeriesDescription,
376
+ SeriesNumber,
377
+ SeriesDate,
378
+ SOPInstanceUID,
379
+ SeriesInstanceUID,
380
+ StudyInstanceUID,
381
+ SOPClassHandlerId: SOPClassHandlerId,
382
+ SOPClassUID,
383
+ referencedImages: null,
384
+ measurements: null,
385
+ getDocument,
386
+ mimeType,
387
+ instances: [instance],
388
+ thumbnailSrc: null,
389
+ isDerivedDisplaySet: true,
390
+ isLoaded: false,
391
+ sopClassUids,
392
+ numImageFrames: 0,
393
+ numInstances: 1,
394
+ instance,
395
+ supportsWindowLevel: true,
396
+ label: SeriesDescription || `${i18n_src/* default */.A.t('Series')} ${SeriesNumber} - ${i18n_src/* default */.A.t(Modality)}`
397
+ };
398
+ return displaySet;
399
+ });
400
+ };
401
+ function getSopClassHandlerModule(params) {
402
+ const {
403
+ servicesManager,
404
+ extensionManager
405
+ } = params;
406
+ const getDisplaySetsFromSeries = instances => {
407
+ return _getDisplaySetsFromSeries(instances, servicesManager, extensionManager);
408
+ };
409
+ return [{
410
+ name: 'dicom-pdf',
411
+ sopClassUids,
412
+ getDisplaySetsFromSeries
413
+ }];
414
+ }
415
+ ;// ../../../extensions/dicom-pdf/src/index.tsx
416
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
417
+
418
+
419
+
420
+ const Component = /*#__PURE__*/react.lazy(() => {
421
+ return __webpack_require__.e(/* import() */ 7159).then(__webpack_require__.bind(__webpack_require__, 67159));
422
+ });
423
+ const OHIFCornerstonePdfViewport = props => {
424
+ return /*#__PURE__*/react.createElement(react.Suspense, {
425
+ fallback: /*#__PURE__*/react.createElement("div", null, "Loading...")
426
+ }, /*#__PURE__*/react.createElement(Component, props));
427
+ };
428
+
429
+ /**
430
+ *
431
+ */
432
+ const dicomPDFExtension = {
433
+ /**
434
+ * Only required property. Should be a unique value across all extensions.
435
+ */
436
+ id: id,
437
+ /**
438
+ *
439
+ *
440
+ * @param {object} [configuration={}]
441
+ * @param {object|array} [configuration.csToolsConfig] - Passed directly to `initCornerstoneTools`
442
+ */
443
+ getViewportModule({
444
+ servicesManager,
445
+ extensionManager
446
+ }) {
447
+ const ExtendedOHIFCornerstonePdfViewport = props => {
448
+ return /*#__PURE__*/react.createElement(OHIFCornerstonePdfViewport, _extends({
449
+ servicesManager: servicesManager,
450
+ extensionManager: extensionManager
451
+ }, props));
452
+ };
453
+ return [{
454
+ name: 'dicom-pdf',
455
+ component: ExtendedOHIFCornerstonePdfViewport
456
+ }];
457
+ },
458
+ getSopClassHandlerModule: getSopClassHandlerModule
459
+ };
460
+ /* harmony default export */ const dicom_pdf_src = (dicomPDFExtension);
461
+
462
+ /***/ }
463
+
464
+ }]);
@@ -341,8 +341,8 @@ var dist_esm = __webpack_require__(15327);
341
341
  var src = __webpack_require__(42356);
342
342
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
343
343
  var es = __webpack_require__(99993);
344
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
345
- var ui_next_src = __webpack_require__(12517);
344
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3076 modules
345
+ var ui_next_src = __webpack_require__(92082);
346
346
  ;// ../../../extensions/usAnnotation/src/panels/USAnnotationPanel.tsx
347
347
 
348
348
 
@@ -117,8 +117,8 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
117
117
  var es = __webpack_require__(70574);
118
118
  // EXTERNAL MODULE: ../../../node_modules/@xstate/react/es/index.js + 8 modules
119
119
  var react_es = __webpack_require__(95261);
120
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
121
- var src = __webpack_require__(12517);
120
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3076 modules
121
+ var src = __webpack_require__(92082);
122
122
  ;// ../../../extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/measurementTrackingMachine.js
123
123
 
124
124
  const RESPONSE = {
@@ -1065,8 +1065,8 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
1065
1065
  var src = __webpack_require__(42356);
1066
1066
  // EXTERNAL MODULE: ../../../extensions/default/src/Panels/StudyBrowser/PanelStudyBrowser.tsx + 3 modules
1067
1067
  var PanelStudyBrowser = __webpack_require__(40565);
1068
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
1069
- var ui_next_src = __webpack_require__(12517);
1068
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3076 modules
1069
+ var ui_next_src = __webpack_require__(92082);
1070
1070
  ;// ../../../extensions/measurement-tracking/src/panels/PanelStudyBrowserTracking/untrackSeriesModal.tsx
1071
1071
 
1072
1072
 
@@ -22,8 +22,8 @@ const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
22
22
  var react = __webpack_require__(86326);
23
23
  // EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
24
24
  var src = __webpack_require__(42356);
25
- // EXTERNAL MODULE: ../../i18n/src/index.js + 286 modules
26
- var i18n_src = __webpack_require__(89010);
25
+ // EXTERNAL MODULE: ../../i18n/src/index.js + 288 modules
26
+ var i18n_src = __webpack_require__(31863);
27
27
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
28
28
  var esm = __webpack_require__(15327);
29
29
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/adapters/dist/esm/index.js + 71 modules
@@ -49,8 +49,8 @@ const listComponentGenerator = props => {
49
49
  ;// ../../../extensions/dicom-microscopy/src/components/ViewportOverlay/ViewportOverlay.css
50
50
  // extracted by mini-css-extract-plugin
51
51
 
52
- // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3075 modules
53
- var ui_next_src = __webpack_require__(12517);
52
+ // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3076 modules
53
+ var ui_next_src = __webpack_require__(92082);
54
54
  // EXTERNAL MODULE: ../../../node_modules/moment/moment.js
55
55
  var moment = __webpack_require__(14867);
56
56
  var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
package/dist/5802.css CHANGED
@@ -1,2 +1,2 @@
1
- .DicomMicroscopyViewer{--ol-partial-background-color:#7f7f7fb3;--ol-foreground-color:#000;--ol-subtle-foreground-color:#000;--ol-subtle-background-color:#4e4e4e80;-webkit-user-select:none;-moz-user-select:none; -ms-user-select:none; user-select:none}.DicomMicroscopyViewer .ol-box{background-color:var(--ol-partial-background-color);border:1.5px solid var(--ol-background-color);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box}.DicomMicroscopyViewer .ol-mouse-position{position:absolute;right:8px;top:8px}.DicomMicroscopyViewer .ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.DicomMicroscopyViewer .ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;margin:1px;text-align:center;-webkit-transition:all .25s;transition:all .25s;will-change:contents,width}.DicomMicroscopyViewer .ol-scale-bar{bottom:8px;left:8px;position:absolute}.DicomMicroscopyViewer .ol-scale-bar-inner{display:-webkit-box;display:-ms-flexbox;display:flex}.DicomMicroscopyViewer .ol-scale-step-marker{background-color:var(--ol-foreground-color);float:right;height:15px;width:1px;z-index:10}.DicomMicroscopyViewer .ol-scale-step-text{bottom:-5px;font-size:10px;z-index:11}.DicomMicroscopyViewer .ol-scale-step-text,.DicomMicroscopyViewer .ol-scale-text{color:var(--ol-foreground-color);position:absolute;text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.DicomMicroscopyViewer .ol-scale-text{bottom:25px;font-size:12px;text-align:center}.DicomMicroscopyViewer .ol-scale-singlebar{border:1px solid var(--ol-foreground-color);-webkit-box-sizing:border-box;box-sizing:border-box;height:10px;position:relative;z-index:9}.DicomMicroscopyViewer .ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.DicomMicroscopyViewer .ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.DicomMicroscopyViewer .ol-unsupported{display:none}.DicomMicroscopyViewer .ol-unselectable,.DicomMicroscopyViewer .ol-viewport{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none; -ms-user-select:none; user-select:none}.DicomMicroscopyViewer .ol-viewport canvas{all:unset}.DicomMicroscopyViewer .ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text; -ms-user-select:text; user-select:text}.DicomMicroscopyViewer .ol-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.DicomMicroscopyViewer .ol-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.DicomMicroscopyViewer .ol-control{background-color:var(--ol-subtle-background-color);border-radius:4px;position:absolute}.DicomMicroscopyViewer .ol-zoom{left:.5em;top:.5em}.DicomMicroscopyViewer .ol-rotate{right:.5em;top:.5em;-webkit-transition:opacity .25s linear,visibility 0s linear;transition:opacity .25s linear,visibility 0s linear}.DicomMicroscopyViewer .ol-rotate.ol-hidden{opacity:0;-webkit-transition:opacity .25s linear,visibility 0s linear .25s;transition:opacity .25s linear,visibility 0s linear .25s;visibility:hidden}.DicomMicroscopyViewer .ol-zoom-extent{left:.5em;top:4.643em}.DicomMicroscopyViewer .ol-full-screen{right:.5em;top:.5em}.DicomMicroscopyViewer .ol-control button{background-color:var(--ol-background-color);border:none;border-radius:2px;color:var(--ol-subtle-foreground-color);display:block;font-size:inherit;font-weight:700;height:1.375em;line-height:.4em;margin:1px;padding:0;text-align:center;text-decoration:none;width:1.375em}.DicomMicroscopyViewer .ol-control button::-moz-focus-inner{border:none;padding:0}.DicomMicroscopyViewer .ol-zoom-extent button{line-height:1.4em}.DicomMicroscopyViewer .ol-compass{display:block;font-weight:400;will-change:transform}.DicomMicroscopyViewer .ol-touch .ol-control button{font-size:1.5em}.DicomMicroscopyViewer .ol-touch .ol-zoom-extent{top:5.5em}.DicomMicroscopyViewer .ol-control button:focus,.DicomMicroscopyViewer .ol-control button:hover{color:var(--ol-foreground-color);outline:1px solid var(--ol-subtle-foreground-color);text-decoration:none}.DicomMicroscopyViewer .ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.DicomMicroscopyViewer .ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.DicomMicroscopyViewer .ol-attribution{-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:.5em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-flow:row-reverse;flex-flow:row-reverse;max-width:calc(100% - 1.3em);right:.5em;text-align:right}.DicomMicroscopyViewer .ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.DicomMicroscopyViewer .ol-attribution ul{color:var(--ol-foreground-color);font-size:12px;margin:0;padding:1px .5em;text-shadow:0 0 2px var(--ol-background-color)}.DicomMicroscopyViewer .ol-attribution li{display:inline;list-style:none}.DicomMicroscopyViewer .ol-attribution li:not(:last-child):after{content:" "}.DicomMicroscopyViewer .ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.DicomMicroscopyViewer .ol-attribution button{-ms-flex-negative:0;flex-shrink:0}.DicomMicroscopyViewer .ol-attribution.ol-collapsed ul{display:none}.DicomMicroscopyViewer .ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.DicomMicroscopyViewer .ol-attribution.ol-uncollapsible{border-radius:4px 0 0;bottom:0;right:0}.DicomMicroscopyViewer .ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.DicomMicroscopyViewer .ol-attribution.ol-uncollapsible button{display:none}.DicomMicroscopyViewer .ol-zoomslider{height:200px;left:.5em;top:4.5em}.DicomMicroscopyViewer .ol-zoomslider button{height:10px;position:relative}.DicomMicroscopyViewer .ol-touch .ol-zoomslider{top:5.5em}.DicomMicroscopyViewer .ol-overviewmap{bottom:.5em;left:.5em}.DicomMicroscopyViewer .ol-overviewmap.ol-uncollapsible{border-radius:0 4px 0 0;bottom:0;left:0}.DicomMicroscopyViewer .ol-overviewmap .ol-overviewmap-map,.DicomMicroscopyViewer .ol-overviewmap button{display:block}.DicomMicroscopyViewer .ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.DicomMicroscopyViewer .ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.DicomMicroscopyViewer .ol-overviewmap.ol-collapsed .ol-overviewmap-map,.DicomMicroscopyViewer .ol-overviewmap.ol-uncollapsible button{display:none}.DicomMicroscopyViewer .ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.DicomMicroscopyViewer .ol-overviewmap-box{border:.5px dotted var(--ol-subtle-foreground-color)}.DicomMicroscopyViewer .ol-overviewmap .ol-overviewmap-box:hover{cursor:move}@layout-header-background: #007ea3;@primary-color: #007ea3;@processing-color: #8cb8c6;@success-color: #3f9c35;@warning-color: #eeaf30;@error-color: #96172e;@font-size-base: 14px;.DicomMicroscopyViewer .ol-tooltip{font-size:16px!important}
2
- .DicomMicroscopyViewer .OpenLayersOverlay{display:block!important;height:100%;pointer-events:none!important;width:100%}.DicomMicroscopyViewer .text-primary-light{color:#ff0;font-size:14px;font-weight:400}.DicomMicroscopyViewer .text-primary-light span{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.DicomMicroscopyViewer .absolute{position:absolute}.DicomMicroscopyViewer .flex{display:-webkit-box;display:-ms-flexbox;display:flex}.DicomMicroscopyViewer .flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.DicomMicroscopyViewer .flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.DicomMicroscopyViewer .pointer-events-none{pointer-events:none}.DicomMicroscopyViewer .left-viewport-scrollbar{left:.5rem}.DicomMicroscopyViewer .right-viewport-scrollbar{right:1.3rem}.DicomMicroscopyViewer .top-viewport{top:.5rem}.DicomMicroscopyViewer .bottom-viewport{bottom:.5rem}.DicomMicroscopyViewer .bottom-viewport.left-viewport{bottom:.5rem;left:calc(.5rem + 250px)}.DicomMicroscopyViewer .right-viewport-scrollbar .flex{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}.DicomMicroscopyViewer .microscopy-viewport-overlay{background:#00000080;max-width:40%;padding:.5rem 1rem}.DicomMicroscopyViewer .microscopy-viewport-overlay .flex{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.DicomMicroscopyViewer .top-viewport .flex span:not(.font-light){-ms-flex-negative:0;flex-shrink:0}
1
+ .DicomMicroscopyViewer{--ol-partial-background-color:hsla(0,0%,50%,.7);--ol-foreground-color:#000;--ol-subtle-foreground-color:#000;--ol-subtle-background-color:rgba(78,78,78,.5);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DicomMicroscopyViewer .ol-box{background-color:var(--ol-partial-background-color);border:1.5px solid var(--ol-background-color);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box}.DicomMicroscopyViewer .ol-mouse-position{position:absolute;right:8px;top:8px}.DicomMicroscopyViewer .ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.DicomMicroscopyViewer .ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;margin:1px;text-align:center;-webkit-transition:all .25s;transition:all .25s;will-change:contents,width}.DicomMicroscopyViewer .ol-scale-bar{bottom:8px;left:8px;position:absolute}.DicomMicroscopyViewer .ol-scale-bar-inner{display:-webkit-box;display:-ms-flexbox;display:flex}.DicomMicroscopyViewer .ol-scale-step-marker{background-color:var(--ol-foreground-color);float:right;height:15px;width:1px;z-index:10}.DicomMicroscopyViewer .ol-scale-step-text{bottom:-5px;font-size:10px;z-index:11}.DicomMicroscopyViewer .ol-scale-step-text,.DicomMicroscopyViewer .ol-scale-text{color:var(--ol-foreground-color);position:absolute;text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.DicomMicroscopyViewer .ol-scale-text{bottom:25px;font-size:12px;text-align:center}.DicomMicroscopyViewer .ol-scale-singlebar{border:1px solid var(--ol-foreground-color);-webkit-box-sizing:border-box;box-sizing:border-box;height:10px;position:relative;z-index:9}.DicomMicroscopyViewer .ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.DicomMicroscopyViewer .ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.DicomMicroscopyViewer .ol-unsupported{display:none}.DicomMicroscopyViewer .ol-unselectable,.DicomMicroscopyViewer .ol-viewport{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DicomMicroscopyViewer .ol-viewport canvas{all:unset}.DicomMicroscopyViewer .ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.DicomMicroscopyViewer .ol-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.DicomMicroscopyViewer .ol-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.DicomMicroscopyViewer .ol-control{background-color:var(--ol-subtle-background-color);border-radius:4px;position:absolute}.DicomMicroscopyViewer .ol-zoom{left:.5em;top:.5em}.DicomMicroscopyViewer .ol-rotate{right:.5em;top:.5em;-webkit-transition:opacity .25s linear,visibility 0s linear;transition:opacity .25s linear,visibility 0s linear}.DicomMicroscopyViewer .ol-rotate.ol-hidden{opacity:0;-webkit-transition:opacity .25s linear,visibility 0s linear .25s;transition:opacity .25s linear,visibility 0s linear .25s;visibility:hidden}.DicomMicroscopyViewer .ol-zoom-extent{left:.5em;top:4.643em}.DicomMicroscopyViewer .ol-full-screen{right:.5em;top:.5em}.DicomMicroscopyViewer .ol-control button{background-color:var(--ol-background-color);border:none;border-radius:2px;color:var(--ol-subtle-foreground-color);display:block;font-size:inherit;font-weight:700;height:1.375em;line-height:.4em;margin:1px;padding:0;text-align:center;text-decoration:none;width:1.375em}.DicomMicroscopyViewer .ol-control button::-moz-focus-inner{border:none;padding:0}.DicomMicroscopyViewer .ol-zoom-extent button{line-height:1.4em}.DicomMicroscopyViewer .ol-compass{display:block;font-weight:400;will-change:transform}.DicomMicroscopyViewer .ol-touch .ol-control button{font-size:1.5em}.DicomMicroscopyViewer .ol-touch .ol-zoom-extent{top:5.5em}.DicomMicroscopyViewer .ol-control button:focus,.DicomMicroscopyViewer .ol-control button:hover{color:var(--ol-foreground-color);outline:1px solid var(--ol-subtle-foreground-color);text-decoration:none}.DicomMicroscopyViewer .ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.DicomMicroscopyViewer .ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.DicomMicroscopyViewer .ol-attribution{-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:.5em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-flow:row-reverse;flex-flow:row-reverse;max-width:calc(100% - 1.3em);right:.5em;text-align:right}.DicomMicroscopyViewer .ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.DicomMicroscopyViewer .ol-attribution ul{color:var(--ol-foreground-color);font-size:12px;margin:0;padding:1px .5em;text-shadow:0 0 2px var(--ol-background-color)}.DicomMicroscopyViewer .ol-attribution li{display:inline;list-style:none}.DicomMicroscopyViewer .ol-attribution li:not(:last-child):after{content:" "}.DicomMicroscopyViewer .ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.DicomMicroscopyViewer .ol-attribution button{-ms-flex-negative:0;flex-shrink:0}.DicomMicroscopyViewer .ol-attribution.ol-collapsed ul{display:none}.DicomMicroscopyViewer .ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.DicomMicroscopyViewer .ol-attribution.ol-uncollapsible{border-radius:4px 0 0;bottom:0;right:0}.DicomMicroscopyViewer .ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.DicomMicroscopyViewer .ol-attribution.ol-uncollapsible button{display:none}.DicomMicroscopyViewer .ol-zoomslider{height:200px;left:.5em;top:4.5em}.DicomMicroscopyViewer .ol-zoomslider button{height:10px;position:relative}.DicomMicroscopyViewer .ol-touch .ol-zoomslider{top:5.5em}.DicomMicroscopyViewer .ol-overviewmap{bottom:.5em;left:.5em}.DicomMicroscopyViewer .ol-overviewmap.ol-uncollapsible{border-radius:0 4px 0 0;bottom:0;left:0}.DicomMicroscopyViewer .ol-overviewmap .ol-overviewmap-map,.DicomMicroscopyViewer .ol-overviewmap button{display:block}.DicomMicroscopyViewer .ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.DicomMicroscopyViewer .ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.DicomMicroscopyViewer .ol-overviewmap.ol-collapsed .ol-overviewmap-map,.DicomMicroscopyViewer .ol-overviewmap.ol-uncollapsible button{display:none}.DicomMicroscopyViewer .ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.DicomMicroscopyViewer .ol-overviewmap-box{border:.5px dotted var(--ol-subtle-foreground-color)}.DicomMicroscopyViewer .ol-overviewmap .ol-overviewmap-box:hover{cursor:move}@layout-header-background: #007ea3;@primary-color: #007ea3;@processing-color: #8cb8c6;@success-color: #3f9c35;@warning-color: #eeaf30;@error-color: #96172e;@font-size-base: 14px;.DicomMicroscopyViewer .ol-tooltip{font-size:16px!important}
2
+ .DicomMicroscopyViewer .OpenLayersOverlay{display:block!important;height:100%;pointer-events:none!important;width:100%}.DicomMicroscopyViewer .text-primary-light{color:#ff0;font-size:14px;font-weight:400}.DicomMicroscopyViewer .text-primary-light span{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.DicomMicroscopyViewer .absolute{position:absolute}.DicomMicroscopyViewer .flex{display:-webkit-box;display:-ms-flexbox;display:flex}.DicomMicroscopyViewer .flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.DicomMicroscopyViewer .flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.DicomMicroscopyViewer .pointer-events-none{pointer-events:none}.DicomMicroscopyViewer .left-viewport-scrollbar{left:.5rem}.DicomMicroscopyViewer .right-viewport-scrollbar{right:1.3rem}.DicomMicroscopyViewer .top-viewport{top:.5rem}.DicomMicroscopyViewer .bottom-viewport{bottom:.5rem}.DicomMicroscopyViewer .bottom-viewport.left-viewport{bottom:.5rem;left:calc(.5rem + 250px)}.DicomMicroscopyViewer .right-viewport-scrollbar .flex{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}.DicomMicroscopyViewer .microscopy-viewport-overlay{background:rgba(0,0,0,.5);max-width:40%;padding:.5rem 1rem}.DicomMicroscopyViewer .microscopy-viewport-overlay .flex{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.DicomMicroscopyViewer .top-viewport .flex span:not(.font-light){-ms-flex-negative:0;flex-shrink:0}