@fluxo-dev/shell-printing 26.1.1 → 26.1.2
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/index.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import React, { forwardRef, createElement as createElement$1, useState, useEffect, useCallback } from 'react';
|
|
3
|
-
import { DataCard } from '@fluxo-dev/ui-components';
|
|
4
|
-
import { PrintServerManagedType, PrintServerType, FluxoClientSys,
|
|
5
|
-
import { Stack, Text, TextInput, Select, NumberInput, Group, Button, LoadingOverlay,
|
|
3
|
+
import { DataCard, NoData, SlidingPanel } from '@fluxo-dev/ui-components';
|
|
4
|
+
import { PrintServerManagedType, PrintServerType, FluxoClientSys, PrinterType, PrinterManufacturer } from '@fluxo-dev/api-client-base';
|
|
5
|
+
import { Stack, Text, TextInput, Select, NumberInput, Group, Button, LoadingOverlay, Box, ActionIcon, Table, Center, Badge, Menu, Modal, Tooltip, Loader } from '@mantine/core';
|
|
6
6
|
import { showNotification } from '@mantine/notifications';
|
|
7
7
|
|
|
8
8
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -25,7 +25,7 @@ var global$e =
|
|
|
25
25
|
|
|
26
26
|
var objectGetOwnPropertyDescriptor = {};
|
|
27
27
|
|
|
28
|
-
var fails$
|
|
28
|
+
var fails$f = function (exec) {
|
|
29
29
|
try {
|
|
30
30
|
return !!exec();
|
|
31
31
|
} catch (error) {
|
|
@@ -33,17 +33,17 @@ var fails$d = function (exec) {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
var fails$
|
|
36
|
+
var fails$e = fails$f;
|
|
37
37
|
|
|
38
38
|
// Detect IE8's incomplete defineProperty implementation
|
|
39
|
-
var descriptors = !fails$
|
|
39
|
+
var descriptors = !fails$e(function () {
|
|
40
40
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
41
41
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
var fails$
|
|
44
|
+
var fails$d = fails$f;
|
|
45
45
|
|
|
46
|
-
var functionBindNative = !fails$
|
|
46
|
+
var functionBindNative = !fails$d(function () {
|
|
47
47
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
48
48
|
var test = (function () { /* empty */ }).bind();
|
|
49
49
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -52,10 +52,10 @@ var functionBindNative = !fails$b(function () {
|
|
|
52
52
|
|
|
53
53
|
var NATIVE_BIND$2 = functionBindNative;
|
|
54
54
|
|
|
55
|
-
var call$
|
|
55
|
+
var call$c = Function.prototype.call;
|
|
56
56
|
|
|
57
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
58
|
-
return call$
|
|
57
|
+
var functionCall = NATIVE_BIND$2 ? call$c.bind(call$c) : function () {
|
|
58
|
+
return call$c.apply(call$c, arguments);
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
var objectPropertyIsEnumerable = {};
|
|
@@ -86,38 +86,38 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
|
86
86
|
var NATIVE_BIND$1 = functionBindNative;
|
|
87
87
|
|
|
88
88
|
var FunctionPrototype$1 = Function.prototype;
|
|
89
|
-
var call$
|
|
90
|
-
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$
|
|
89
|
+
var call$b = FunctionPrototype$1.call;
|
|
90
|
+
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$b, call$b);
|
|
91
91
|
|
|
92
92
|
var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
|
|
93
93
|
return function () {
|
|
94
|
-
return call$
|
|
94
|
+
return call$b.apply(fn, arguments);
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
var uncurryThis$
|
|
98
|
+
var uncurryThis$f = functionUncurryThis;
|
|
99
99
|
|
|
100
|
-
var toString$
|
|
101
|
-
var stringSlice$2 = uncurryThis$
|
|
100
|
+
var toString$6 = uncurryThis$f({}.toString);
|
|
101
|
+
var stringSlice$2 = uncurryThis$f(''.slice);
|
|
102
102
|
|
|
103
103
|
var classofRaw$2 = function (it) {
|
|
104
|
-
return stringSlice$2(toString$
|
|
104
|
+
return stringSlice$2(toString$6(it), 8, -1);
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
var uncurryThis$
|
|
108
|
-
var fails$
|
|
109
|
-
var classof$
|
|
107
|
+
var uncurryThis$e = functionUncurryThis;
|
|
108
|
+
var fails$c = fails$f;
|
|
109
|
+
var classof$4 = classofRaw$2;
|
|
110
110
|
|
|
111
111
|
var $Object$4 = Object;
|
|
112
|
-
var split = uncurryThis$
|
|
112
|
+
var split = uncurryThis$e(''.split);
|
|
113
113
|
|
|
114
114
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
115
|
-
var indexedObject = fails$
|
|
115
|
+
var indexedObject = fails$c(function () {
|
|
116
116
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
117
117
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
118
118
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
119
119
|
}) ? function (it) {
|
|
120
|
-
return classof$
|
|
120
|
+
return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
121
121
|
} : $Object$4;
|
|
122
122
|
|
|
123
123
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -128,21 +128,21 @@ var isNullOrUndefined$3 = function (it) {
|
|
|
128
128
|
|
|
129
129
|
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
130
130
|
|
|
131
|
-
var $TypeError$
|
|
131
|
+
var $TypeError$b = TypeError;
|
|
132
132
|
|
|
133
133
|
// `RequireObjectCoercible` abstract operation
|
|
134
134
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
135
|
-
var requireObjectCoercible$
|
|
136
|
-
if (isNullOrUndefined$2(it)) throw new $TypeError$
|
|
135
|
+
var requireObjectCoercible$5 = function (it) {
|
|
136
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
|
|
137
137
|
return it;
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
// toObject with fallback for non-array-like ES3 strings
|
|
141
141
|
var IndexedObject = indexedObject;
|
|
142
|
-
var requireObjectCoercible$
|
|
142
|
+
var requireObjectCoercible$4 = requireObjectCoercible$5;
|
|
143
143
|
|
|
144
144
|
var toIndexedObject$5 = function (it) {
|
|
145
|
-
return IndexedObject(requireObjectCoercible$
|
|
145
|
+
return IndexedObject(requireObjectCoercible$4(it));
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -159,7 +159,7 @@ var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefine
|
|
|
159
159
|
|
|
160
160
|
var isCallable$f = isCallable$g;
|
|
161
161
|
|
|
162
|
-
var isObject$
|
|
162
|
+
var isObject$9 = function (it) {
|
|
163
163
|
return typeof it == 'object' ? it !== null : isCallable$f(it);
|
|
164
164
|
};
|
|
165
165
|
|
|
@@ -174,9 +174,9 @@ var getBuiltIn$3 = function (namespace, method) {
|
|
|
174
174
|
return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
var uncurryThis$
|
|
177
|
+
var uncurryThis$d = functionUncurryThis;
|
|
178
178
|
|
|
179
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
179
|
+
var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
|
|
180
180
|
|
|
181
181
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
182
182
|
|
|
@@ -210,13 +210,13 @@ var engineV8Version = version;
|
|
|
210
210
|
|
|
211
211
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
212
212
|
var V8_VERSION = engineV8Version;
|
|
213
|
-
var fails$
|
|
213
|
+
var fails$b = fails$f;
|
|
214
214
|
var global$b = global$e;
|
|
215
215
|
|
|
216
216
|
var $String$5 = global$b.String;
|
|
217
217
|
|
|
218
218
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
219
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
219
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
|
|
220
220
|
var symbol = Symbol('symbol detection');
|
|
221
221
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
222
222
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -261,38 +261,38 @@ var tryToString$3 = function (argument) {
|
|
|
261
261
|
var isCallable$c = isCallable$g;
|
|
262
262
|
var tryToString$2 = tryToString$3;
|
|
263
263
|
|
|
264
|
-
var $TypeError$
|
|
264
|
+
var $TypeError$a = TypeError;
|
|
265
265
|
|
|
266
266
|
// `Assert: IsCallable(argument) is true`
|
|
267
|
-
var aCallable$
|
|
267
|
+
var aCallable$7 = function (argument) {
|
|
268
268
|
if (isCallable$c(argument)) return argument;
|
|
269
|
-
throw new $TypeError$
|
|
269
|
+
throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
var aCallable$
|
|
272
|
+
var aCallable$6 = aCallable$7;
|
|
273
273
|
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
274
274
|
|
|
275
275
|
// `GetMethod` abstract operation
|
|
276
276
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
277
277
|
var getMethod$4 = function (V, P) {
|
|
278
278
|
var func = V[P];
|
|
279
|
-
return isNullOrUndefined$1(func) ? undefined : aCallable$
|
|
279
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable$6(func);
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
var call$
|
|
282
|
+
var call$a = functionCall;
|
|
283
283
|
var isCallable$b = isCallable$g;
|
|
284
|
-
var isObject$
|
|
284
|
+
var isObject$8 = isObject$9;
|
|
285
285
|
|
|
286
|
-
var $TypeError$
|
|
286
|
+
var $TypeError$9 = TypeError;
|
|
287
287
|
|
|
288
288
|
// `OrdinaryToPrimitive` abstract operation
|
|
289
289
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
290
290
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
291
291
|
var fn, val;
|
|
292
|
-
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$
|
|
293
|
-
if (isCallable$b(fn = input.valueOf) && !isObject$
|
|
294
|
-
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$
|
|
295
|
-
throw new $TypeError$
|
|
292
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$8(val = call$a(fn, input))) return val;
|
|
293
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$8(val = call$a(fn, input))) return val;
|
|
294
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$8(val = call$a(fn, input))) return val;
|
|
295
|
+
throw new $TypeError$9("Can't convert object to primitive value");
|
|
296
296
|
};
|
|
297
297
|
|
|
298
298
|
var sharedStore = {exports: {}};
|
|
@@ -334,20 +334,20 @@ var shared$3 = function (key, value) {
|
|
|
334
334
|
return store$2[key] || (store$2[key] = value || {});
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
var requireObjectCoercible$
|
|
337
|
+
var requireObjectCoercible$3 = requireObjectCoercible$5;
|
|
338
338
|
|
|
339
339
|
var $Object$2 = Object;
|
|
340
340
|
|
|
341
341
|
// `ToObject` abstract operation
|
|
342
342
|
// https://tc39.es/ecma262/#sec-toobject
|
|
343
343
|
var toObject$2 = function (argument) {
|
|
344
|
-
return $Object$2(requireObjectCoercible$
|
|
344
|
+
return $Object$2(requireObjectCoercible$3(argument));
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
-
var uncurryThis$
|
|
347
|
+
var uncurryThis$c = functionUncurryThis;
|
|
348
348
|
var toObject$1 = toObject$2;
|
|
349
349
|
|
|
350
|
-
var hasOwnProperty = uncurryThis$
|
|
350
|
+
var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
|
|
351
351
|
|
|
352
352
|
// `HasOwnProperty` abstract operation
|
|
353
353
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -356,14 +356,14 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
356
356
|
return hasOwnProperty(toObject$1(it), key);
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
-
var uncurryThis$
|
|
359
|
+
var uncurryThis$b = functionUncurryThis;
|
|
360
360
|
|
|
361
361
|
var id = 0;
|
|
362
362
|
var postfix = Math.random();
|
|
363
|
-
var toString$
|
|
363
|
+
var toString$5 = uncurryThis$b(1.0.toString);
|
|
364
364
|
|
|
365
365
|
var uid$2 = function (key) {
|
|
366
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
366
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
var global$9 = global$e;
|
|
@@ -377,7 +377,7 @@ var Symbol$2 = global$9.Symbol;
|
|
|
377
377
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
378
378
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
379
379
|
|
|
380
|
-
var wellKnownSymbol$
|
|
380
|
+
var wellKnownSymbol$e = function (name) {
|
|
381
381
|
if (!hasOwn$b(WellKnownSymbolsStore, name)) {
|
|
382
382
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$2, name)
|
|
383
383
|
? Symbol$2[name]
|
|
@@ -385,27 +385,27 @@ var wellKnownSymbol$c = function (name) {
|
|
|
385
385
|
} return WellKnownSymbolsStore[name];
|
|
386
386
|
};
|
|
387
387
|
|
|
388
|
-
var call$
|
|
389
|
-
var isObject$
|
|
388
|
+
var call$9 = functionCall;
|
|
389
|
+
var isObject$7 = isObject$9;
|
|
390
390
|
var isSymbol$1 = isSymbol$2;
|
|
391
391
|
var getMethod$3 = getMethod$4;
|
|
392
392
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
393
|
-
var wellKnownSymbol$
|
|
393
|
+
var wellKnownSymbol$d = wellKnownSymbol$e;
|
|
394
394
|
|
|
395
|
-
var $TypeError$
|
|
396
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
395
|
+
var $TypeError$8 = TypeError;
|
|
396
|
+
var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
|
|
397
397
|
|
|
398
398
|
// `ToPrimitive` abstract operation
|
|
399
399
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
400
400
|
var toPrimitive$1 = function (input, pref) {
|
|
401
|
-
if (!isObject$
|
|
401
|
+
if (!isObject$7(input) || isSymbol$1(input)) return input;
|
|
402
402
|
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
403
403
|
var result;
|
|
404
404
|
if (exoticToPrim) {
|
|
405
405
|
if (pref === undefined) pref = 'default';
|
|
406
|
-
result = call$
|
|
407
|
-
if (!isObject$
|
|
408
|
-
throw new $TypeError$
|
|
406
|
+
result = call$9(exoticToPrim, input, pref);
|
|
407
|
+
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
408
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
409
409
|
}
|
|
410
410
|
if (pref === undefined) pref = 'number';
|
|
411
411
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -422,22 +422,22 @@ var toPropertyKey$2 = function (argument) {
|
|
|
422
422
|
};
|
|
423
423
|
|
|
424
424
|
var global$8 = global$e;
|
|
425
|
-
var isObject$
|
|
425
|
+
var isObject$6 = isObject$9;
|
|
426
426
|
|
|
427
427
|
var document$1 = global$8.document;
|
|
428
428
|
// typeof document.createElement is 'object' in old IE
|
|
429
|
-
var EXISTS$1 = isObject$
|
|
429
|
+
var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
|
|
430
430
|
|
|
431
431
|
var documentCreateElement$2 = function (it) {
|
|
432
432
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
433
433
|
};
|
|
434
434
|
|
|
435
435
|
var DESCRIPTORS$b = descriptors;
|
|
436
|
-
var fails$
|
|
436
|
+
var fails$a = fails$f;
|
|
437
437
|
var createElement = documentCreateElement$2;
|
|
438
438
|
|
|
439
439
|
// Thanks to IE8 for its funny defineProperty
|
|
440
|
-
var ie8DomDefine = !DESCRIPTORS$b && !fails$
|
|
440
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$a(function () {
|
|
441
441
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
442
442
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
443
443
|
get: function () { return 7; }
|
|
@@ -445,7 +445,7 @@ var ie8DomDefine = !DESCRIPTORS$b && !fails$8(function () {
|
|
|
445
445
|
});
|
|
446
446
|
|
|
447
447
|
var DESCRIPTORS$a = descriptors;
|
|
448
|
-
var call$
|
|
448
|
+
var call$8 = functionCall;
|
|
449
449
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
450
450
|
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
451
451
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -464,17 +464,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 :
|
|
|
464
464
|
if (IE8_DOM_DEFINE$1) try {
|
|
465
465
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
466
466
|
} catch (error) { /* empty */ }
|
|
467
|
-
if (hasOwn$a(O, P)) return createPropertyDescriptor$3(!call$
|
|
467
|
+
if (hasOwn$a(O, P)) return createPropertyDescriptor$3(!call$8(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
468
468
|
};
|
|
469
469
|
|
|
470
470
|
var objectDefineProperty = {};
|
|
471
471
|
|
|
472
472
|
var DESCRIPTORS$9 = descriptors;
|
|
473
|
-
var fails$
|
|
473
|
+
var fails$9 = fails$f;
|
|
474
474
|
|
|
475
475
|
// V8 ~ Chrome 36-
|
|
476
476
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
477
|
-
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$
|
|
477
|
+
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$9(function () {
|
|
478
478
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
479
479
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
480
480
|
value: 42,
|
|
@@ -482,24 +482,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$7(function () {
|
|
|
482
482
|
}).prototype !== 42;
|
|
483
483
|
});
|
|
484
484
|
|
|
485
|
-
var isObject$
|
|
485
|
+
var isObject$5 = isObject$9;
|
|
486
486
|
|
|
487
487
|
var $String$3 = String;
|
|
488
|
-
var $TypeError$
|
|
488
|
+
var $TypeError$7 = TypeError;
|
|
489
489
|
|
|
490
490
|
// `Assert: Type(argument) is Object`
|
|
491
|
-
var anObject$
|
|
492
|
-
if (isObject$
|
|
493
|
-
throw new $TypeError$
|
|
491
|
+
var anObject$e = function (argument) {
|
|
492
|
+
if (isObject$5(argument)) return argument;
|
|
493
|
+
throw new $TypeError$7($String$3(argument) + ' is not an object');
|
|
494
494
|
};
|
|
495
495
|
|
|
496
496
|
var DESCRIPTORS$8 = descriptors;
|
|
497
497
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
498
498
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
499
|
-
var anObject$
|
|
499
|
+
var anObject$d = anObject$e;
|
|
500
500
|
var toPropertyKey = toPropertyKey$2;
|
|
501
501
|
|
|
502
|
-
var $TypeError$
|
|
502
|
+
var $TypeError$6 = TypeError;
|
|
503
503
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
504
504
|
var $defineProperty = Object.defineProperty;
|
|
505
505
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -511,9 +511,9 @@ var WRITABLE = 'writable';
|
|
|
511
511
|
// `Object.defineProperty` method
|
|
512
512
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
513
513
|
objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
514
|
-
anObject$
|
|
514
|
+
anObject$d(O);
|
|
515
515
|
P = toPropertyKey(P);
|
|
516
|
-
anObject$
|
|
516
|
+
anObject$d(Attributes);
|
|
517
517
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
518
518
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
519
519
|
if (current && current[WRITABLE]) {
|
|
@@ -526,13 +526,13 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
526
526
|
}
|
|
527
527
|
} return $defineProperty(O, P, Attributes);
|
|
528
528
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
529
|
-
anObject$
|
|
529
|
+
anObject$d(O);
|
|
530
530
|
P = toPropertyKey(P);
|
|
531
|
-
anObject$
|
|
531
|
+
anObject$d(Attributes);
|
|
532
532
|
if (IE8_DOM_DEFINE) try {
|
|
533
533
|
return $defineProperty(O, P, Attributes);
|
|
534
534
|
} catch (error) { /* empty */ }
|
|
535
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
535
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
|
|
536
536
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
537
537
|
return O;
|
|
538
538
|
};
|
|
@@ -567,11 +567,11 @@ var functionName = {
|
|
|
567
567
|
CONFIGURABLE: CONFIGURABLE
|
|
568
568
|
};
|
|
569
569
|
|
|
570
|
-
var uncurryThis$
|
|
570
|
+
var uncurryThis$a = functionUncurryThis;
|
|
571
571
|
var isCallable$a = isCallable$g;
|
|
572
572
|
var store$1 = sharedStoreExports;
|
|
573
573
|
|
|
574
|
-
var functionToString = uncurryThis$
|
|
574
|
+
var functionToString = uncurryThis$a(Function.toString);
|
|
575
575
|
|
|
576
576
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
577
577
|
if (!isCallable$a(store$1.inspectSource)) {
|
|
@@ -602,7 +602,7 @@ var hiddenKeys$4 = {};
|
|
|
602
602
|
|
|
603
603
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
604
604
|
var global$6 = global$e;
|
|
605
|
-
var isObject$
|
|
605
|
+
var isObject$4 = isObject$9;
|
|
606
606
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
607
607
|
var hasOwn$8 = hasOwnProperty_1;
|
|
608
608
|
var shared = sharedStoreExports;
|
|
@@ -621,7 +621,7 @@ var enforce = function (it) {
|
|
|
621
621
|
var getterFor = function (TYPE) {
|
|
622
622
|
return function (it) {
|
|
623
623
|
var state;
|
|
624
|
-
if (!isObject$
|
|
624
|
+
if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
|
|
625
625
|
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
626
626
|
} return state;
|
|
627
627
|
};
|
|
@@ -671,8 +671,8 @@ var internalState = {
|
|
|
671
671
|
getterFor: getterFor
|
|
672
672
|
};
|
|
673
673
|
|
|
674
|
-
var uncurryThis$
|
|
675
|
-
var fails$
|
|
674
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
675
|
+
var fails$8 = fails$f;
|
|
676
676
|
var isCallable$8 = isCallable$g;
|
|
677
677
|
var hasOwn$7 = hasOwnProperty_1;
|
|
678
678
|
var DESCRIPTORS$5 = descriptors;
|
|
@@ -685,11 +685,11 @@ var getInternalState$1 = InternalStateModule$2.get;
|
|
|
685
685
|
var $String$2 = String;
|
|
686
686
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
687
687
|
var defineProperty$4 = Object.defineProperty;
|
|
688
|
-
var stringSlice$1 = uncurryThis$
|
|
689
|
-
var replace$2 = uncurryThis$
|
|
690
|
-
var join = uncurryThis$
|
|
688
|
+
var stringSlice$1 = uncurryThis$9(''.slice);
|
|
689
|
+
var replace$2 = uncurryThis$9(''.replace);
|
|
690
|
+
var join = uncurryThis$9([].join);
|
|
691
691
|
|
|
692
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$
|
|
692
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$8(function () {
|
|
693
693
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
694
694
|
});
|
|
695
695
|
|
|
@@ -837,18 +837,21 @@ var createMethod$1 = function (IS_INCLUDES) {
|
|
|
837
837
|
};
|
|
838
838
|
|
|
839
839
|
var arrayIncludes = {
|
|
840
|
+
// `Array.prototype.includes` method
|
|
841
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
842
|
+
includes: createMethod$1(true),
|
|
840
843
|
// `Array.prototype.indexOf` method
|
|
841
844
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
842
845
|
indexOf: createMethod$1(false)
|
|
843
846
|
};
|
|
844
847
|
|
|
845
|
-
var uncurryThis$
|
|
848
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
846
849
|
var hasOwn$6 = hasOwnProperty_1;
|
|
847
850
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
848
851
|
var indexOf = arrayIncludes.indexOf;
|
|
849
852
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
850
853
|
|
|
851
|
-
var push = uncurryThis$
|
|
854
|
+
var push = uncurryThis$8([].push);
|
|
852
855
|
|
|
853
856
|
var objectKeysInternal = function (object, names) {
|
|
854
857
|
var O = toIndexedObject$2(object);
|
|
@@ -892,16 +895,16 @@ var objectGetOwnPropertySymbols = {};
|
|
|
892
895
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
893
896
|
|
|
894
897
|
var getBuiltIn$1 = getBuiltIn$3;
|
|
895
|
-
var uncurryThis$
|
|
898
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
896
899
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
897
900
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
898
|
-
var anObject$
|
|
901
|
+
var anObject$c = anObject$e;
|
|
899
902
|
|
|
900
|
-
var concat = uncurryThis$
|
|
903
|
+
var concat = uncurryThis$7([].concat);
|
|
901
904
|
|
|
902
905
|
// all object keys, includes non-enumerable and symbols
|
|
903
906
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
904
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
907
|
+
var keys = getOwnPropertyNamesModule.f(anObject$c(it));
|
|
905
908
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
906
909
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
907
910
|
};
|
|
@@ -923,7 +926,7 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
923
926
|
}
|
|
924
927
|
};
|
|
925
928
|
|
|
926
|
-
var fails$
|
|
929
|
+
var fails$7 = fails$f;
|
|
927
930
|
var isCallable$6 = isCallable$g;
|
|
928
931
|
|
|
929
932
|
var replacement = /#|\.prototype\./;
|
|
@@ -932,7 +935,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
932
935
|
var value = data[normalize(feature)];
|
|
933
936
|
return value === POLYFILL ? true
|
|
934
937
|
: value === NATIVE ? false
|
|
935
|
-
: isCallable$6(detection) ? fails$
|
|
938
|
+
: isCallable$6(detection) ? fails$7(detection)
|
|
936
939
|
: !!detection;
|
|
937
940
|
};
|
|
938
941
|
|
|
@@ -1001,9 +1004,9 @@ var _export = function (options, source) {
|
|
|
1001
1004
|
}
|
|
1002
1005
|
};
|
|
1003
1006
|
|
|
1004
|
-
var wellKnownSymbol$
|
|
1007
|
+
var wellKnownSymbol$c = wellKnownSymbol$e;
|
|
1005
1008
|
|
|
1006
|
-
var TO_STRING_TAG$4 = wellKnownSymbol$
|
|
1009
|
+
var TO_STRING_TAG$4 = wellKnownSymbol$c('toStringTag');
|
|
1007
1010
|
var test = {};
|
|
1008
1011
|
|
|
1009
1012
|
test[TO_STRING_TAG$4] = 'z';
|
|
@@ -1013,9 +1016,9 @@ var toStringTagSupport = String(test) === '[object z]';
|
|
|
1013
1016
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1014
1017
|
var isCallable$5 = isCallable$g;
|
|
1015
1018
|
var classofRaw$1 = classofRaw$2;
|
|
1016
|
-
var wellKnownSymbol$
|
|
1019
|
+
var wellKnownSymbol$b = wellKnownSymbol$e;
|
|
1017
1020
|
|
|
1018
|
-
var TO_STRING_TAG$3 = wellKnownSymbol$
|
|
1021
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$b('toStringTag');
|
|
1019
1022
|
var $Object$1 = Object;
|
|
1020
1023
|
|
|
1021
1024
|
// ES3 wrong here
|
|
@@ -1029,7 +1032,7 @@ var tryGet = function (it, key) {
|
|
|
1029
1032
|
};
|
|
1030
1033
|
|
|
1031
1034
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1032
|
-
var classof$
|
|
1035
|
+
var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1033
1036
|
var O, tag, result;
|
|
1034
1037
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1035
1038
|
// @@toStringTag case
|
|
@@ -1040,12 +1043,12 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1040
1043
|
: (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1041
1044
|
};
|
|
1042
1045
|
|
|
1043
|
-
var classof$
|
|
1046
|
+
var classof$2 = classof$3;
|
|
1044
1047
|
|
|
1045
1048
|
var $String$1 = String;
|
|
1046
1049
|
|
|
1047
|
-
var toString$
|
|
1048
|
-
if (classof$
|
|
1050
|
+
var toString$4 = function (argument) {
|
|
1051
|
+
if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1049
1052
|
return $String$1(argument);
|
|
1050
1053
|
};
|
|
1051
1054
|
|
|
@@ -1058,14 +1061,14 @@ var defineBuiltInAccessor$2 = function (target, name, descriptor) {
|
|
|
1058
1061
|
return defineProperty$3.f(target, name, descriptor);
|
|
1059
1062
|
};
|
|
1060
1063
|
|
|
1061
|
-
var $$
|
|
1064
|
+
var $$9 = _export;
|
|
1062
1065
|
var DESCRIPTORS$4 = descriptors;
|
|
1063
1066
|
var global$4 = global$e;
|
|
1064
|
-
var uncurryThis$
|
|
1067
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1065
1068
|
var hasOwn$4 = hasOwnProperty_1;
|
|
1066
1069
|
var isCallable$4 = isCallable$g;
|
|
1067
1070
|
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
1068
|
-
var toString$
|
|
1071
|
+
var toString$3 = toString$4;
|
|
1069
1072
|
var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
|
|
1070
1073
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
1071
1074
|
|
|
@@ -1079,7 +1082,7 @@ if (DESCRIPTORS$4 && isCallable$4(NativeSymbol) && (!('description' in SymbolPro
|
|
|
1079
1082
|
var EmptyStringDescriptionStore = {};
|
|
1080
1083
|
// wrap Symbol constructor for correct work with undefined description
|
|
1081
1084
|
var SymbolWrapper = function Symbol() {
|
|
1082
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$
|
|
1085
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$3(arguments[0]);
|
|
1083
1086
|
var result = isPrototypeOf$3(SymbolPrototype, this)
|
|
1084
1087
|
? new NativeSymbol(description)
|
|
1085
1088
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
@@ -1093,11 +1096,11 @@ if (DESCRIPTORS$4 && isCallable$4(NativeSymbol) && (!('description' in SymbolPro
|
|
|
1093
1096
|
SymbolPrototype.constructor = SymbolWrapper;
|
|
1094
1097
|
|
|
1095
1098
|
var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
|
|
1096
|
-
var thisSymbolValue = uncurryThis$
|
|
1097
|
-
var symbolDescriptiveString = uncurryThis$
|
|
1099
|
+
var thisSymbolValue = uncurryThis$6(SymbolPrototype.valueOf);
|
|
1100
|
+
var symbolDescriptiveString = uncurryThis$6(SymbolPrototype.toString);
|
|
1098
1101
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
1099
|
-
var replace$1 = uncurryThis$
|
|
1100
|
-
var stringSlice = uncurryThis$
|
|
1102
|
+
var replace$1 = uncurryThis$6(''.replace);
|
|
1103
|
+
var stringSlice = uncurryThis$6(''.slice);
|
|
1101
1104
|
|
|
1102
1105
|
defineBuiltInAccessor$1(SymbolPrototype, 'description', {
|
|
1103
1106
|
configurable: true,
|
|
@@ -1110,7 +1113,7 @@ if (DESCRIPTORS$4 && isCallable$4(NativeSymbol) && (!('description' in SymbolPro
|
|
|
1110
1113
|
}
|
|
1111
1114
|
});
|
|
1112
1115
|
|
|
1113
|
-
$$
|
|
1116
|
+
$$9({ global: true, constructor: true, forced: true }, {
|
|
1114
1117
|
Symbol: SymbolWrapper
|
|
1115
1118
|
});
|
|
1116
1119
|
}
|
|
@@ -1130,7 +1133,7 @@ var objectKeys$1 = Object.keys || function keys(O) {
|
|
|
1130
1133
|
var DESCRIPTORS$3 = descriptors;
|
|
1131
1134
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1132
1135
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1133
|
-
var anObject$
|
|
1136
|
+
var anObject$b = anObject$e;
|
|
1134
1137
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1135
1138
|
var objectKeys = objectKeys$1;
|
|
1136
1139
|
|
|
@@ -1138,7 +1141,7 @@ var objectKeys = objectKeys$1;
|
|
|
1138
1141
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1139
1142
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1140
1143
|
objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1141
|
-
anObject$
|
|
1144
|
+
anObject$b(O);
|
|
1142
1145
|
var props = toIndexedObject$1(Properties);
|
|
1143
1146
|
var keys = objectKeys(Properties);
|
|
1144
1147
|
var length = keys.length;
|
|
@@ -1153,7 +1156,7 @@ var getBuiltIn = getBuiltIn$3;
|
|
|
1153
1156
|
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1154
1157
|
|
|
1155
1158
|
/* global ActiveXObject -- old IE, WSH */
|
|
1156
|
-
var anObject$
|
|
1159
|
+
var anObject$a = anObject$e;
|
|
1157
1160
|
var definePropertiesModule = objectDefineProperties;
|
|
1158
1161
|
var enumBugKeys = enumBugKeys$3;
|
|
1159
1162
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1227,7 +1230,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1227
1230
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1228
1231
|
var result;
|
|
1229
1232
|
if (O !== null) {
|
|
1230
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1233
|
+
EmptyConstructor[PROTOTYPE] = anObject$a(O);
|
|
1231
1234
|
result = new EmptyConstructor();
|
|
1232
1235
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1233
1236
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1236,11 +1239,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1236
1239
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1237
1240
|
};
|
|
1238
1241
|
|
|
1239
|
-
var wellKnownSymbol$
|
|
1242
|
+
var wellKnownSymbol$a = wellKnownSymbol$e;
|
|
1240
1243
|
var create$2 = objectCreate;
|
|
1241
1244
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1242
1245
|
|
|
1243
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1246
|
+
var UNSCOPABLES = wellKnownSymbol$a('unscopables');
|
|
1244
1247
|
var ArrayPrototype$1 = Array.prototype;
|
|
1245
1248
|
|
|
1246
1249
|
// Array.prototype[@@unscopables]
|
|
@@ -1253,15 +1256,37 @@ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
|
1253
1256
|
}
|
|
1254
1257
|
|
|
1255
1258
|
// add a key to Array.prototype[@@unscopables]
|
|
1256
|
-
var addToUnscopables$
|
|
1259
|
+
var addToUnscopables$2 = function (key) {
|
|
1257
1260
|
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
1258
1261
|
};
|
|
1259
1262
|
|
|
1263
|
+
var $$8 = _export;
|
|
1264
|
+
var $includes = arrayIncludes.includes;
|
|
1265
|
+
var fails$6 = fails$f;
|
|
1266
|
+
var addToUnscopables$1 = addToUnscopables$2;
|
|
1267
|
+
|
|
1268
|
+
// FF99+ bug
|
|
1269
|
+
var BROKEN_ON_SPARSE = fails$6(function () {
|
|
1270
|
+
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1271
|
+
return !Array(1).includes();
|
|
1272
|
+
});
|
|
1273
|
+
|
|
1274
|
+
// `Array.prototype.includes` method
|
|
1275
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1276
|
+
$$8({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1277
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1278
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1279
|
+
}
|
|
1280
|
+
});
|
|
1281
|
+
|
|
1282
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1283
|
+
addToUnscopables$1('includes');
|
|
1284
|
+
|
|
1260
1285
|
var iterators = {};
|
|
1261
1286
|
|
|
1262
|
-
var fails$
|
|
1287
|
+
var fails$5 = fails$f;
|
|
1263
1288
|
|
|
1264
|
-
var correctPrototypeGetter = !fails$
|
|
1289
|
+
var correctPrototypeGetter = !fails$5(function () {
|
|
1265
1290
|
function F() { /* empty */ }
|
|
1266
1291
|
F.prototype.constructor = null;
|
|
1267
1292
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1290,14 +1315,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
1290
1315
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1291
1316
|
};
|
|
1292
1317
|
|
|
1293
|
-
var fails$
|
|
1318
|
+
var fails$4 = fails$f;
|
|
1294
1319
|
var isCallable$2 = isCallable$g;
|
|
1295
|
-
var isObject$
|
|
1320
|
+
var isObject$3 = isObject$9;
|
|
1296
1321
|
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1297
1322
|
var defineBuiltIn$3 = defineBuiltIn$5;
|
|
1298
|
-
var wellKnownSymbol$
|
|
1323
|
+
var wellKnownSymbol$9 = wellKnownSymbol$e;
|
|
1299
1324
|
|
|
1300
|
-
var ITERATOR$6 = wellKnownSymbol$
|
|
1325
|
+
var ITERATOR$6 = wellKnownSymbol$9('iterator');
|
|
1301
1326
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1302
1327
|
|
|
1303
1328
|
// `%IteratorPrototype%` object
|
|
@@ -1315,7 +1340,7 @@ if ([].keys) {
|
|
|
1315
1340
|
}
|
|
1316
1341
|
}
|
|
1317
1342
|
|
|
1318
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1343
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$4) || fails$4(function () {
|
|
1319
1344
|
var test = {};
|
|
1320
1345
|
// FF44- legacy iterators case
|
|
1321
1346
|
return IteratorPrototype$4[ITERATOR$6].call(test) !== test;
|
|
@@ -1338,9 +1363,9 @@ var iteratorsCore = {
|
|
|
1338
1363
|
|
|
1339
1364
|
var defineProperty$1 = objectDefineProperty.f;
|
|
1340
1365
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1341
|
-
var wellKnownSymbol$
|
|
1366
|
+
var wellKnownSymbol$8 = wellKnownSymbol$e;
|
|
1342
1367
|
|
|
1343
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1368
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
|
|
1344
1369
|
|
|
1345
1370
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1346
1371
|
if (target && !STATIC) target = target.prototype;
|
|
@@ -1365,36 +1390,36 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1365
1390
|
return IteratorConstructor;
|
|
1366
1391
|
};
|
|
1367
1392
|
|
|
1368
|
-
var uncurryThis$
|
|
1369
|
-
var aCallable$
|
|
1393
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1394
|
+
var aCallable$5 = aCallable$7;
|
|
1370
1395
|
|
|
1371
1396
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1372
1397
|
try {
|
|
1373
1398
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1374
|
-
return uncurryThis$
|
|
1399
|
+
return uncurryThis$5(aCallable$5(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1375
1400
|
} catch (error) { /* empty */ }
|
|
1376
1401
|
};
|
|
1377
1402
|
|
|
1378
|
-
var isObject$
|
|
1403
|
+
var isObject$2 = isObject$9;
|
|
1379
1404
|
|
|
1380
1405
|
var isPossiblePrototype$1 = function (argument) {
|
|
1381
|
-
return isObject$
|
|
1406
|
+
return isObject$2(argument) || argument === null;
|
|
1382
1407
|
};
|
|
1383
1408
|
|
|
1384
1409
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1385
1410
|
|
|
1386
1411
|
var $String = String;
|
|
1387
|
-
var $TypeError$
|
|
1412
|
+
var $TypeError$5 = TypeError;
|
|
1388
1413
|
|
|
1389
1414
|
var aPossiblePrototype$1 = function (argument) {
|
|
1390
1415
|
if (isPossiblePrototype(argument)) return argument;
|
|
1391
|
-
throw new $TypeError$
|
|
1416
|
+
throw new $TypeError$5("Can't set " + $String(argument) + ' as a prototype');
|
|
1392
1417
|
};
|
|
1393
1418
|
|
|
1394
1419
|
/* eslint-disable no-proto -- safe */
|
|
1395
1420
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1396
|
-
var isObject = isObject$
|
|
1397
|
-
var requireObjectCoercible$
|
|
1421
|
+
var isObject$1 = isObject$9;
|
|
1422
|
+
var requireObjectCoercible$2 = requireObjectCoercible$5;
|
|
1398
1423
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1399
1424
|
|
|
1400
1425
|
// `Object.setPrototypeOf` method
|
|
@@ -1411,17 +1436,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1411
1436
|
CORRECT_SETTER = test instanceof Array;
|
|
1412
1437
|
} catch (error) { /* empty */ }
|
|
1413
1438
|
return function setPrototypeOf(O, proto) {
|
|
1414
|
-
requireObjectCoercible$
|
|
1439
|
+
requireObjectCoercible$2(O);
|
|
1415
1440
|
aPossiblePrototype(proto);
|
|
1416
|
-
if (!isObject(O)) return O;
|
|
1441
|
+
if (!isObject$1(O)) return O;
|
|
1417
1442
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1418
1443
|
else O.__proto__ = proto;
|
|
1419
1444
|
return O;
|
|
1420
1445
|
};
|
|
1421
1446
|
}() : undefined);
|
|
1422
1447
|
|
|
1423
|
-
var $$
|
|
1424
|
-
var call$
|
|
1448
|
+
var $$7 = _export;
|
|
1449
|
+
var call$7 = functionCall;
|
|
1425
1450
|
var FunctionName = functionName;
|
|
1426
1451
|
var isCallable$1 = isCallable$g;
|
|
1427
1452
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1430,15 +1455,15 @@ var setPrototypeOf = objectSetPrototypeOf;
|
|
|
1430
1455
|
var setToStringTag$1 = setToStringTag$3;
|
|
1431
1456
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
1432
1457
|
var defineBuiltIn$2 = defineBuiltIn$5;
|
|
1433
|
-
var wellKnownSymbol$
|
|
1458
|
+
var wellKnownSymbol$7 = wellKnownSymbol$e;
|
|
1434
1459
|
var Iterators$3 = iterators;
|
|
1435
1460
|
var IteratorsCore = iteratorsCore;
|
|
1436
1461
|
|
|
1437
|
-
var PROPER_FUNCTION_NAME$
|
|
1462
|
+
var PROPER_FUNCTION_NAME$2 = FunctionName.PROPER;
|
|
1438
1463
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1439
1464
|
var IteratorPrototype$2 = IteratorsCore.IteratorPrototype;
|
|
1440
1465
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1441
|
-
var ITERATOR$5 = wellKnownSymbol$
|
|
1466
|
+
var ITERATOR$5 = wellKnownSymbol$7('iterator');
|
|
1442
1467
|
var KEYS = 'keys';
|
|
1443
1468
|
var VALUES = 'values';
|
|
1444
1469
|
var ENTRIES = 'entries';
|
|
@@ -1488,12 +1513,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1488
1513
|
}
|
|
1489
1514
|
|
|
1490
1515
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1491
|
-
if (PROPER_FUNCTION_NAME$
|
|
1516
|
+
if (PROPER_FUNCTION_NAME$2 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1492
1517
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1493
1518
|
createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
|
|
1494
1519
|
} else {
|
|
1495
1520
|
INCORRECT_VALUES_NAME = true;
|
|
1496
|
-
defaultIterator = function values() { return call$
|
|
1521
|
+
defaultIterator = function values() { return call$7(nativeIterator, this); };
|
|
1497
1522
|
}
|
|
1498
1523
|
}
|
|
1499
1524
|
|
|
@@ -1508,7 +1533,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1508
1533
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1509
1534
|
defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
|
|
1510
1535
|
}
|
|
1511
|
-
} else $$
|
|
1536
|
+
} else $$7({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1512
1537
|
}
|
|
1513
1538
|
|
|
1514
1539
|
// define iterator
|
|
@@ -1527,7 +1552,7 @@ var createIterResultObject$2 = function (value, done) {
|
|
|
1527
1552
|
};
|
|
1528
1553
|
|
|
1529
1554
|
var toIndexedObject = toIndexedObject$5;
|
|
1530
|
-
var addToUnscopables = addToUnscopables$
|
|
1555
|
+
var addToUnscopables = addToUnscopables$2;
|
|
1531
1556
|
var Iterators$2 = iterators;
|
|
1532
1557
|
var InternalStateModule$1 = internalState;
|
|
1533
1558
|
var defineProperty = objectDefineProperty.f;
|
|
@@ -1587,6 +1612,123 @@ if (DESCRIPTORS$2 && values.name !== 'values') try {
|
|
|
1587
1612
|
defineProperty(values, 'name', { value: 'values' });
|
|
1588
1613
|
} catch (error) { /* empty */ }
|
|
1589
1614
|
|
|
1615
|
+
var isObject = isObject$9;
|
|
1616
|
+
var classof$1 = classofRaw$2;
|
|
1617
|
+
var wellKnownSymbol$6 = wellKnownSymbol$e;
|
|
1618
|
+
|
|
1619
|
+
var MATCH$1 = wellKnownSymbol$6('match');
|
|
1620
|
+
|
|
1621
|
+
// `IsRegExp` abstract operation
|
|
1622
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
1623
|
+
var isRegexp = function (it) {
|
|
1624
|
+
var isRegExp;
|
|
1625
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
|
|
1626
|
+
};
|
|
1627
|
+
|
|
1628
|
+
var isRegExp = isRegexp;
|
|
1629
|
+
|
|
1630
|
+
var $TypeError$4 = TypeError;
|
|
1631
|
+
|
|
1632
|
+
var notARegexp = function (it) {
|
|
1633
|
+
if (isRegExp(it)) {
|
|
1634
|
+
throw new $TypeError$4("The method doesn't accept regular expressions");
|
|
1635
|
+
} return it;
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
var wellKnownSymbol$5 = wellKnownSymbol$e;
|
|
1639
|
+
|
|
1640
|
+
var MATCH = wellKnownSymbol$5('match');
|
|
1641
|
+
|
|
1642
|
+
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
1643
|
+
var regexp = /./;
|
|
1644
|
+
try {
|
|
1645
|
+
'/./'[METHOD_NAME](regexp);
|
|
1646
|
+
} catch (error1) {
|
|
1647
|
+
try {
|
|
1648
|
+
regexp[MATCH] = false;
|
|
1649
|
+
return '/./'[METHOD_NAME](regexp);
|
|
1650
|
+
} catch (error2) { /* empty */ }
|
|
1651
|
+
} return false;
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
var $$6 = _export;
|
|
1655
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1656
|
+
var notARegExp = notARegexp;
|
|
1657
|
+
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
1658
|
+
var toString$2 = toString$4;
|
|
1659
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
1660
|
+
|
|
1661
|
+
var stringIndexOf = uncurryThis$4(''.indexOf);
|
|
1662
|
+
|
|
1663
|
+
// `String.prototype.includes` method
|
|
1664
|
+
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
1665
|
+
$$6({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
1666
|
+
includes: function includes(searchString /* , position = 0 */) {
|
|
1667
|
+
return !!~stringIndexOf(
|
|
1668
|
+
toString$2(requireObjectCoercible$1(this)),
|
|
1669
|
+
toString$2(notARegExp(searchString)),
|
|
1670
|
+
arguments.length > 1 ? arguments[1] : undefined
|
|
1671
|
+
);
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
|
|
1675
|
+
// a string of all valid unicode whitespaces
|
|
1676
|
+
var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
1677
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
1678
|
+
|
|
1679
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1680
|
+
var requireObjectCoercible = requireObjectCoercible$5;
|
|
1681
|
+
var toString$1 = toString$4;
|
|
1682
|
+
var whitespaces$2 = whitespaces$3;
|
|
1683
|
+
|
|
1684
|
+
var replace = uncurryThis$3(''.replace);
|
|
1685
|
+
var ltrim = RegExp('^[' + whitespaces$2 + ']+');
|
|
1686
|
+
var rtrim = RegExp('(^|[^' + whitespaces$2 + '])[' + whitespaces$2 + ']+$');
|
|
1687
|
+
|
|
1688
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
1689
|
+
var createMethod = function (TYPE) {
|
|
1690
|
+
return function ($this) {
|
|
1691
|
+
var string = toString$1(requireObjectCoercible($this));
|
|
1692
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
1693
|
+
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
1694
|
+
return string;
|
|
1695
|
+
};
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1698
|
+
var stringTrim = {
|
|
1699
|
+
// `String.prototype.trim` method
|
|
1700
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1701
|
+
trim: createMethod(3)
|
|
1702
|
+
};
|
|
1703
|
+
|
|
1704
|
+
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
1705
|
+
var fails$3 = fails$f;
|
|
1706
|
+
var whitespaces$1 = whitespaces$3;
|
|
1707
|
+
|
|
1708
|
+
var non = '\u200B\u0085\u180E';
|
|
1709
|
+
|
|
1710
|
+
// check that a method works with the correct list
|
|
1711
|
+
// of whitespaces and has a correct name
|
|
1712
|
+
var stringTrimForced = function (METHOD_NAME) {
|
|
1713
|
+
return fails$3(function () {
|
|
1714
|
+
return !!whitespaces$1[METHOD_NAME]()
|
|
1715
|
+
|| non[METHOD_NAME]() !== non
|
|
1716
|
+
|| (PROPER_FUNCTION_NAME$1 && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);
|
|
1717
|
+
});
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1720
|
+
var $$5 = _export;
|
|
1721
|
+
var $trim = stringTrim.trim;
|
|
1722
|
+
var forcedStringTrimMethod = stringTrimForced;
|
|
1723
|
+
|
|
1724
|
+
// `String.prototype.trim` method
|
|
1725
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1726
|
+
$$5({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
1727
|
+
trim: function trim() {
|
|
1728
|
+
return $trim(this);
|
|
1729
|
+
}
|
|
1730
|
+
});
|
|
1731
|
+
|
|
1590
1732
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1591
1733
|
|
|
1592
1734
|
var $TypeError$3 = TypeError;
|
|
@@ -1605,17 +1747,17 @@ var createProperty$1 = function (object, key, value) {
|
|
|
1605
1747
|
else object[key] = value;
|
|
1606
1748
|
};
|
|
1607
1749
|
|
|
1608
|
-
var $$
|
|
1750
|
+
var $$4 = _export;
|
|
1609
1751
|
var global$3 = global$e;
|
|
1610
1752
|
var anInstance = anInstance$1;
|
|
1611
|
-
var anObject$
|
|
1753
|
+
var anObject$9 = anObject$e;
|
|
1612
1754
|
var isCallable = isCallable$g;
|
|
1613
1755
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1614
1756
|
var defineBuiltInAccessor = defineBuiltInAccessor$2;
|
|
1615
1757
|
var createProperty = createProperty$1;
|
|
1616
|
-
var fails$2 = fails$
|
|
1758
|
+
var fails$2 = fails$f;
|
|
1617
1759
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1618
|
-
var wellKnownSymbol$4 = wellKnownSymbol$
|
|
1760
|
+
var wellKnownSymbol$4 = wellKnownSymbol$e;
|
|
1619
1761
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1620
1762
|
var DESCRIPTORS = descriptors;
|
|
1621
1763
|
|
|
@@ -1645,7 +1787,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
1645
1787
|
return value;
|
|
1646
1788
|
},
|
|
1647
1789
|
set: function (replacement) {
|
|
1648
|
-
anObject$
|
|
1790
|
+
anObject$9(this);
|
|
1649
1791
|
if (this === IteratorPrototype$1) throw new $TypeError$2("You can't redefine this property");
|
|
1650
1792
|
if (hasOwn$1(this, key)) this[key] = replacement;
|
|
1651
1793
|
else createProperty(this, key, replacement);
|
|
@@ -1664,13 +1806,13 @@ IteratorConstructor.prototype = IteratorPrototype$1;
|
|
|
1664
1806
|
|
|
1665
1807
|
// `Iterator` constructor
|
|
1666
1808
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
1667
|
-
$$
|
|
1809
|
+
$$4({ global: true, constructor: true, forced: FORCED$1 }, {
|
|
1668
1810
|
Iterator: IteratorConstructor
|
|
1669
1811
|
});
|
|
1670
1812
|
|
|
1671
1813
|
// `GetIteratorDirect(obj)` abstract operation
|
|
1672
1814
|
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
1673
|
-
var getIteratorDirect$
|
|
1815
|
+
var getIteratorDirect$3 = function (obj) {
|
|
1674
1816
|
return {
|
|
1675
1817
|
iterator: obj,
|
|
1676
1818
|
next: obj.next,
|
|
@@ -1685,35 +1827,35 @@ var defineBuiltIns$1 = function (target, src, options) {
|
|
|
1685
1827
|
return target;
|
|
1686
1828
|
};
|
|
1687
1829
|
|
|
1688
|
-
var call$
|
|
1689
|
-
var anObject$
|
|
1830
|
+
var call$6 = functionCall;
|
|
1831
|
+
var anObject$8 = anObject$e;
|
|
1690
1832
|
var getMethod$2 = getMethod$4;
|
|
1691
1833
|
|
|
1692
1834
|
var iteratorClose$3 = function (iterator, kind, value) {
|
|
1693
1835
|
var innerResult, innerError;
|
|
1694
|
-
anObject$
|
|
1836
|
+
anObject$8(iterator);
|
|
1695
1837
|
try {
|
|
1696
1838
|
innerResult = getMethod$2(iterator, 'return');
|
|
1697
1839
|
if (!innerResult) {
|
|
1698
1840
|
if (kind === 'throw') throw value;
|
|
1699
1841
|
return value;
|
|
1700
1842
|
}
|
|
1701
|
-
innerResult = call$
|
|
1843
|
+
innerResult = call$6(innerResult, iterator);
|
|
1702
1844
|
} catch (error) {
|
|
1703
1845
|
innerError = true;
|
|
1704
1846
|
innerResult = error;
|
|
1705
1847
|
}
|
|
1706
1848
|
if (kind === 'throw') throw value;
|
|
1707
1849
|
if (innerError) throw innerResult;
|
|
1708
|
-
anObject$
|
|
1850
|
+
anObject$8(innerResult);
|
|
1709
1851
|
return value;
|
|
1710
1852
|
};
|
|
1711
1853
|
|
|
1712
|
-
var call$
|
|
1854
|
+
var call$5 = functionCall;
|
|
1713
1855
|
var create = objectCreate;
|
|
1714
1856
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1715
1857
|
var defineBuiltIns = defineBuiltIns$1;
|
|
1716
|
-
var wellKnownSymbol$3 = wellKnownSymbol$
|
|
1858
|
+
var wellKnownSymbol$3 = wellKnownSymbol$e;
|
|
1717
1859
|
var InternalStateModule = internalState;
|
|
1718
1860
|
var getMethod$1 = getMethod$4;
|
|
1719
1861
|
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
@@ -1749,7 +1891,7 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
1749
1891
|
state.done = true;
|
|
1750
1892
|
if (IS_ITERATOR) {
|
|
1751
1893
|
var returnMethod = getMethod$1(iterator, 'return');
|
|
1752
|
-
return returnMethod ? call$
|
|
1894
|
+
return returnMethod ? call$5(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
1753
1895
|
}
|
|
1754
1896
|
if (state.inner) try {
|
|
1755
1897
|
iteratorClose$2(state.inner.iterator, 'normal');
|
|
@@ -1785,24 +1927,59 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
|
1785
1927
|
return IteratorProxy;
|
|
1786
1928
|
};
|
|
1787
1929
|
|
|
1788
|
-
var anObject$
|
|
1930
|
+
var anObject$7 = anObject$e;
|
|
1789
1931
|
var iteratorClose$1 = iteratorClose$3;
|
|
1790
1932
|
|
|
1791
1933
|
// call something on iterator step with safe closing on error
|
|
1792
|
-
var callWithSafeIterationClosing$
|
|
1934
|
+
var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
|
|
1793
1935
|
try {
|
|
1794
|
-
return ENTRIES ? fn(anObject$
|
|
1936
|
+
return ENTRIES ? fn(anObject$7(value)[0], value[1]) : fn(value);
|
|
1795
1937
|
} catch (error) {
|
|
1796
1938
|
iteratorClose$1(iterator, 'throw', error);
|
|
1797
1939
|
}
|
|
1798
1940
|
};
|
|
1799
1941
|
|
|
1942
|
+
var $$3 = _export;
|
|
1943
|
+
var call$4 = functionCall;
|
|
1944
|
+
var aCallable$4 = aCallable$7;
|
|
1945
|
+
var anObject$6 = anObject$e;
|
|
1946
|
+
var getIteratorDirect$2 = getIteratorDirect$3;
|
|
1947
|
+
var createIteratorProxy$1 = iteratorCreateProxy;
|
|
1948
|
+
var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
|
|
1949
|
+
var IS_PURE$1 = isPure;
|
|
1950
|
+
|
|
1951
|
+
var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
1952
|
+
var iterator = this.iterator;
|
|
1953
|
+
var predicate = this.predicate;
|
|
1954
|
+
var next = this.next;
|
|
1955
|
+
var result, done, value;
|
|
1956
|
+
while (true) {
|
|
1957
|
+
result = anObject$6(call$4(next, iterator));
|
|
1958
|
+
done = this.done = !!result.done;
|
|
1959
|
+
if (done) return;
|
|
1960
|
+
value = result.value;
|
|
1961
|
+
if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
|
|
1962
|
+
}
|
|
1963
|
+
});
|
|
1964
|
+
|
|
1965
|
+
// `Iterator.prototype.filter` method
|
|
1966
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
1967
|
+
$$3({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
1968
|
+
filter: function filter(predicate) {
|
|
1969
|
+
anObject$6(this);
|
|
1970
|
+
aCallable$4(predicate);
|
|
1971
|
+
return new IteratorProxy$1(getIteratorDirect$2(this), {
|
|
1972
|
+
predicate: predicate
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
});
|
|
1976
|
+
|
|
1800
1977
|
var call$3 = functionCall;
|
|
1801
|
-
var aCallable$3 = aCallable$
|
|
1802
|
-
var anObject$5 = anObject$
|
|
1803
|
-
var getIteratorDirect$1 = getIteratorDirect$
|
|
1978
|
+
var aCallable$3 = aCallable$7;
|
|
1979
|
+
var anObject$5 = anObject$e;
|
|
1980
|
+
var getIteratorDirect$1 = getIteratorDirect$3;
|
|
1804
1981
|
var createIteratorProxy = iteratorCreateProxy;
|
|
1805
|
-
var callWithSafeIterationClosing = callWithSafeIterationClosing$
|
|
1982
|
+
var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
|
|
1806
1983
|
|
|
1807
1984
|
var IteratorProxy = createIteratorProxy(function () {
|
|
1808
1985
|
var iterator = this.iterator;
|
|
@@ -1881,7 +2058,7 @@ var DOMTokenListPrototype = domTokenListPrototype;
|
|
|
1881
2058
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1882
2059
|
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
1883
2060
|
var setToStringTag = setToStringTag$3;
|
|
1884
|
-
var wellKnownSymbol$2 = wellKnownSymbol$
|
|
2061
|
+
var wellKnownSymbol$2 = wellKnownSymbol$e;
|
|
1885
2062
|
|
|
1886
2063
|
var ITERATOR$3 = wellKnownSymbol$2('iterator');
|
|
1887
2064
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
@@ -1984,8 +2161,19 @@ const createReactComponent = (type, iconName, iconNamePascal, iconNode) => {
|
|
|
1984
2161
|
*/
|
|
1985
2162
|
|
|
1986
2163
|
|
|
1987
|
-
const __iconNode$
|
|
1988
|
-
const IconBrandWindows = createReactComponent("outline", "brand-windows", "BrandWindows", __iconNode$
|
|
2164
|
+
const __iconNode$e = [["path", { "d": "M17.8 20l-12 -1.5c-1 -.1 -1.8 -.9 -1.8 -1.9v-9.2c0 -1 .8 -1.8 1.8 -1.9l12 -1.5c1.2 -.1 2.2 .8 2.2 1.9v12.1c0 1.2 -1.1 2.1 -2.2 1.9z", "key": "svg-0" }], ["path", { "d": "M12 5l0 14", "key": "svg-1" }], ["path", { "d": "M4 12l16 0", "key": "svg-2" }]];
|
|
2165
|
+
const IconBrandWindows = createReactComponent("outline", "brand-windows", "BrandWindows", __iconNode$e);
|
|
2166
|
+
|
|
2167
|
+
/**
|
|
2168
|
+
* @license @tabler/icons-react v3.36.0 - MIT
|
|
2169
|
+
*
|
|
2170
|
+
* This source code is licensed under the MIT license.
|
|
2171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2172
|
+
*/
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
const __iconNode$d = [["path", { "d": "M6 5l0 14", "key": "svg-0" }], ["path", { "d": "M18 5l0 14", "key": "svg-1" }], ["path", { "d": "M2 15l20 0", "key": "svg-2" }], ["path", { "d": "M3 8a7.5 7.5 0 0 0 3 -2a6.5 6.5 0 0 0 12 0a7.5 7.5 0 0 0 3 2", "key": "svg-3" }], ["path", { "d": "M12 10l0 5", "key": "svg-4" }]];
|
|
2176
|
+
const IconBuildingBridge = createReactComponent("outline", "building-bridge", "BuildingBridge", __iconNode$d);
|
|
1989
2177
|
|
|
1990
2178
|
/**
|
|
1991
2179
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -1995,8 +2183,8 @@ const IconBrandWindows = createReactComponent("outline", "brand-windows", "Brand
|
|
|
1995
2183
|
*/
|
|
1996
2184
|
|
|
1997
2185
|
|
|
1998
|
-
const __iconNode$
|
|
1999
|
-
const
|
|
2186
|
+
const __iconNode$c = [["path", { "d": "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "key": "svg-0" }]];
|
|
2187
|
+
const IconCircle = createReactComponent("outline", "circle", "Circle", __iconNode$c);
|
|
2000
2188
|
|
|
2001
2189
|
/**
|
|
2002
2190
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2006,8 +2194,8 @@ const IconBuildingBridge = createReactComponent("outline", "building-bridge", "B
|
|
|
2006
2194
|
*/
|
|
2007
2195
|
|
|
2008
2196
|
|
|
2009
|
-
const __iconNode$
|
|
2010
|
-
const
|
|
2197
|
+
const __iconNode$b = [["path", { "d": "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-0" }], ["path", { "d": "M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-1" }], ["path", { "d": "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-2" }]];
|
|
2198
|
+
const IconDotsVertical = createReactComponent("outline", "dots-vertical", "DotsVertical", __iconNode$b);
|
|
2011
2199
|
|
|
2012
2200
|
/**
|
|
2013
2201
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2017,8 +2205,8 @@ const IconCircle = createReactComponent("outline", "circle", "Circle", __iconNod
|
|
|
2017
2205
|
*/
|
|
2018
2206
|
|
|
2019
2207
|
|
|
2020
|
-
const __iconNode$
|
|
2021
|
-
const
|
|
2208
|
+
const __iconNode$a = [["path", { "d": "M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1", "key": "svg-0" }], ["path", { "d": "M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z", "key": "svg-1" }], ["path", { "d": "M16 5l3 3", "key": "svg-2" }]];
|
|
2209
|
+
const IconEdit = createReactComponent("outline", "edit", "Edit", __iconNode$a);
|
|
2022
2210
|
|
|
2023
2211
|
/**
|
|
2024
2212
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2028,8 +2216,8 @@ const IconDotsVertical = createReactComponent("outline", "dots-vertical", "DotsV
|
|
|
2028
2216
|
*/
|
|
2029
2217
|
|
|
2030
2218
|
|
|
2031
|
-
const __iconNode$
|
|
2032
|
-
const IconExternalLink = createReactComponent("outline", "external-link", "ExternalLink", __iconNode$
|
|
2219
|
+
const __iconNode$9 = [["path", { "d": "M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6", "key": "svg-0" }], ["path", { "d": "M11 13l9 -9", "key": "svg-1" }], ["path", { "d": "M15 4h5v5", "key": "svg-2" }]];
|
|
2220
|
+
const IconExternalLink = createReactComponent("outline", "external-link", "ExternalLink", __iconNode$9);
|
|
2033
2221
|
|
|
2034
2222
|
/**
|
|
2035
2223
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2039,8 +2227,8 @@ const IconExternalLink = createReactComponent("outline", "external-link", "Exter
|
|
|
2039
2227
|
*/
|
|
2040
2228
|
|
|
2041
2229
|
|
|
2042
|
-
const __iconNode$
|
|
2043
|
-
const IconLine = createReactComponent("outline", "line", "Line", __iconNode$
|
|
2230
|
+
const __iconNode$8 = [["path", { "d": "M6 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-0" }], ["path", { "d": "M18 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-1" }], ["path", { "d": "M7.5 16.5l9 -9", "key": "svg-2" }]];
|
|
2231
|
+
const IconLine = createReactComponent("outline", "line", "Line", __iconNode$8);
|
|
2044
2232
|
|
|
2045
2233
|
/**
|
|
2046
2234
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2050,8 +2238,8 @@ const IconLine = createReactComponent("outline", "line", "Line", __iconNode$5);
|
|
|
2050
2238
|
*/
|
|
2051
2239
|
|
|
2052
2240
|
|
|
2053
|
-
const __iconNode$
|
|
2054
|
-
const IconManualGearbox = createReactComponent("outline", "manual-gearbox", "ManualGearbox", __iconNode$
|
|
2241
|
+
const __iconNode$7 = [["path", { "d": "M5 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-0" }], ["path", { "d": "M12 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-1" }], ["path", { "d": "M19 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-2" }], ["path", { "d": "M5 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-3" }], ["path", { "d": "M12 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-4" }], ["path", { "d": "M5 8l0 8", "key": "svg-5" }], ["path", { "d": "M12 8l0 8", "key": "svg-6" }], ["path", { "d": "M19 8v2a2 2 0 0 1 -2 2h-12", "key": "svg-7" }]];
|
|
2242
|
+
const IconManualGearbox = createReactComponent("outline", "manual-gearbox", "ManualGearbox", __iconNode$7);
|
|
2055
2243
|
|
|
2056
2244
|
/**
|
|
2057
2245
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2061,8 +2249,8 @@ const IconManualGearbox = createReactComponent("outline", "manual-gearbox", "Man
|
|
|
2061
2249
|
*/
|
|
2062
2250
|
|
|
2063
2251
|
|
|
2064
|
-
const __iconNode$
|
|
2065
|
-
const IconPlus = createReactComponent("outline", "plus", "Plus", __iconNode$
|
|
2252
|
+
const __iconNode$6 = [["path", { "d": "M12 5l0 14", "key": "svg-0" }], ["path", { "d": "M5 12l14 0", "key": "svg-1" }]];
|
|
2253
|
+
const IconPlus = createReactComponent("outline", "plus", "Plus", __iconNode$6);
|
|
2066
2254
|
|
|
2067
2255
|
/**
|
|
2068
2256
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2072,8 +2260,8 @@ const IconPlus = createReactComponent("outline", "plus", "Plus", __iconNode$3);
|
|
|
2072
2260
|
*/
|
|
2073
2261
|
|
|
2074
2262
|
|
|
2075
|
-
const __iconNode$
|
|
2076
|
-
const IconPrinter = createReactComponent("outline", "printer", "Printer", __iconNode$
|
|
2263
|
+
const __iconNode$5 = [["path", { "d": "M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2", "key": "svg-0" }], ["path", { "d": "M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4", "key": "svg-1" }], ["path", { "d": "M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z", "key": "svg-2" }]];
|
|
2264
|
+
const IconPrinter = createReactComponent("outline", "printer", "Printer", __iconNode$5);
|
|
2077
2265
|
|
|
2078
2266
|
/**
|
|
2079
2267
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2083,8 +2271,8 @@ const IconPrinter = createReactComponent("outline", "printer", "Printer", __icon
|
|
|
2083
2271
|
*/
|
|
2084
2272
|
|
|
2085
2273
|
|
|
2086
|
-
const __iconNode$
|
|
2087
|
-
const IconRefresh = createReactComponent("outline", "refresh", "Refresh", __iconNode$
|
|
2274
|
+
const __iconNode$4 = [["path", { "d": "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4", "key": "svg-0" }], ["path", { "d": "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4", "key": "svg-1" }]];
|
|
2275
|
+
const IconRefresh = createReactComponent("outline", "refresh", "Refresh", __iconNode$4);
|
|
2088
2276
|
|
|
2089
2277
|
/**
|
|
2090
2278
|
* @license @tabler/icons-react v3.36.0 - MIT
|
|
@@ -2094,8 +2282,41 @@ const IconRefresh = createReactComponent("outline", "refresh", "Refresh", __icon
|
|
|
2094
2282
|
*/
|
|
2095
2283
|
|
|
2096
2284
|
|
|
2097
|
-
const __iconNode = [["path", { "d": "
|
|
2098
|
-
const
|
|
2285
|
+
const __iconNode$3 = [["path", { "d": "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", "key": "svg-0" }], ["path", { "d": "M21 21l-6 -6", "key": "svg-1" }]];
|
|
2286
|
+
const IconSearch = createReactComponent("outline", "search", "Search", __iconNode$3);
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* @license @tabler/icons-react v3.36.0 - MIT
|
|
2290
|
+
*
|
|
2291
|
+
* This source code is licensed under the MIT license.
|
|
2292
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2293
|
+
*/
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
const __iconNode$2 = [["path", { "d": "M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z", "key": "svg-0" }], ["path", { "d": "M15 20h-9a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3h12", "key": "svg-1" }], ["path", { "d": "M7 8v.01", "key": "svg-2" }], ["path", { "d": "M7 16v.01", "key": "svg-3" }], ["path", { "d": "M20 15l-2 3h3l-2 3", "key": "svg-4" }]];
|
|
2297
|
+
const IconServerBolt = createReactComponent("outline", "server-bolt", "ServerBolt", __iconNode$2);
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* @license @tabler/icons-react v3.36.0 - MIT
|
|
2301
|
+
*
|
|
2302
|
+
* This source code is licensed under the MIT license.
|
|
2303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2304
|
+
*/
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
const __iconNode$1 = [["path", { "d": "M4 7l16 0", "key": "svg-0" }], ["path", { "d": "M10 11l0 6", "key": "svg-1" }], ["path", { "d": "M14 11l0 6", "key": "svg-2" }], ["path", { "d": "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12", "key": "svg-3" }], ["path", { "d": "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3", "key": "svg-4" }]];
|
|
2308
|
+
const IconTrash = createReactComponent("outline", "trash", "Trash", __iconNode$1);
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* @license @tabler/icons-react v3.36.0 - MIT
|
|
2312
|
+
*
|
|
2313
|
+
* This source code is licensed under the MIT license.
|
|
2314
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
2315
|
+
*/
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
const __iconNode = [["path", { "d": "M18 6l-12 12", "key": "svg-0" }], ["path", { "d": "M6 6l12 12", "key": "svg-1" }]];
|
|
2319
|
+
const IconX = createReactComponent("outline", "x", "X", __iconNode);
|
|
2099
2320
|
|
|
2100
2321
|
function AddPrintServer(props) {
|
|
2101
2322
|
const [type, setType] = useState(null);
|
|
@@ -2206,41 +2427,12 @@ function AddPrintServer(props) {
|
|
|
2206
2427
|
});
|
|
2207
2428
|
}
|
|
2208
2429
|
|
|
2209
|
-
// a string of all valid unicode whitespaces
|
|
2210
|
-
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
2211
|
-
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
2212
|
-
|
|
2213
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
2214
|
-
var requireObjectCoercible = requireObjectCoercible$4;
|
|
2215
|
-
var toString$1 = toString$3;
|
|
2216
|
-
var whitespaces$1 = whitespaces$2;
|
|
2217
|
-
|
|
2218
|
-
var replace = uncurryThis$3(''.replace);
|
|
2219
|
-
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
2220
|
-
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
2221
|
-
|
|
2222
|
-
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
2223
|
-
var createMethod = function (TYPE) {
|
|
2224
|
-
return function ($this) {
|
|
2225
|
-
var string = toString$1(requireObjectCoercible($this));
|
|
2226
|
-
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
2227
|
-
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
2228
|
-
return string;
|
|
2229
|
-
};
|
|
2230
|
-
};
|
|
2231
|
-
|
|
2232
|
-
var stringTrim = {
|
|
2233
|
-
// `String.prototype.trim` method
|
|
2234
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
2235
|
-
trim: createMethod(3)
|
|
2236
|
-
};
|
|
2237
|
-
|
|
2238
2430
|
var global$1 = global$e;
|
|
2239
|
-
var fails$1 = fails$
|
|
2431
|
+
var fails$1 = fails$f;
|
|
2240
2432
|
var uncurryThis$2 = functionUncurryThis;
|
|
2241
|
-
var toString = toString$
|
|
2433
|
+
var toString = toString$4;
|
|
2242
2434
|
var trim = stringTrim.trim;
|
|
2243
|
-
var whitespaces = whitespaces$
|
|
2435
|
+
var whitespaces = whitespaces$3;
|
|
2244
2436
|
|
|
2245
2437
|
var $parseInt$1 = global$1.parseInt;
|
|
2246
2438
|
var Symbol$1 = global$1.Symbol;
|
|
@@ -2267,7 +2459,7 @@ $$1({ global: true, forced: parseInt !== $parseInt }, {
|
|
|
2267
2459
|
parseInt: $parseInt
|
|
2268
2460
|
});
|
|
2269
2461
|
|
|
2270
|
-
var anObject$4 = anObject$
|
|
2462
|
+
var anObject$4 = anObject$e;
|
|
2271
2463
|
|
|
2272
2464
|
// `RegExp.prototype.flags` getter implementation
|
|
2273
2465
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
@@ -2300,9 +2492,9 @@ var regexpGetFlags = function (R) {
|
|
|
2300
2492
|
|
|
2301
2493
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
2302
2494
|
var defineBuiltIn = defineBuiltIn$5;
|
|
2303
|
-
var anObject$3 = anObject$
|
|
2304
|
-
var $toString = toString$
|
|
2305
|
-
var fails = fails$
|
|
2495
|
+
var anObject$3 = anObject$e;
|
|
2496
|
+
var $toString = toString$4;
|
|
2497
|
+
var fails = fails$f;
|
|
2306
2498
|
var getRegExpFlags = regexpGetFlags;
|
|
2307
2499
|
|
|
2308
2500
|
var TO_STRING = 'toString';
|
|
@@ -2324,15 +2516,16 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
2324
2516
|
}, { unsafe: true });
|
|
2325
2517
|
}
|
|
2326
2518
|
|
|
2327
|
-
function
|
|
2519
|
+
function EditPrinter(props) {
|
|
2520
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2328
2521
|
const [printers, setPrinters] = useState([]);
|
|
2329
|
-
const [printerType, setPrinterType] = useState('managed');
|
|
2330
|
-
const [name, setName] = useState('');
|
|
2331
|
-
const [description, setDescription] = useState('');
|
|
2332
|
-
const [mappedPrinter, setMappedPrinter] = useState('');
|
|
2333
|
-
const [manufacturer, setManufacturer] = useState('');
|
|
2334
|
-
const [ipAddress, setIpAddress] = useState('');
|
|
2335
|
-
const [port, setPort] = useState(631);
|
|
2522
|
+
const [printerType, setPrinterType] = useState(((_a = props.printer) === null || _a === void 0 ? void 0 : _a.type) === PrinterType.Managed ? 'managed' : 'unmanaged');
|
|
2523
|
+
const [name, setName] = useState(((_b = props.printer) === null || _b === void 0 ? void 0 : _b.name) || '');
|
|
2524
|
+
const [description, setDescription] = useState(((_c = props.printer) === null || _c === void 0 ? void 0 : _c.description) || '');
|
|
2525
|
+
const [mappedPrinter, setMappedPrinter] = useState(((_d = props.printer) === null || _d === void 0 ? void 0 : _d.mappedPrinterName) || '');
|
|
2526
|
+
const [manufacturer, setManufacturer] = useState(((_e = props.printer) === null || _e === void 0 ? void 0 : _e.manufacturer) !== null && ((_f = props.printer) === null || _f === void 0 ? void 0 : _f.manufacturer) !== undefined ? props.printer.manufacturer.toString() : '');
|
|
2527
|
+
const [ipAddress, setIpAddress] = useState(((_g = props.printer) === null || _g === void 0 ? void 0 : _g.ipAddress) || '');
|
|
2528
|
+
const [port, setPort] = useState(((_h = props.printer) === null || _h === void 0 ? void 0 : _h.port) || 631);
|
|
2336
2529
|
useEffect(() => {
|
|
2337
2530
|
FluxoClientSys.Instance.printing.GetPrintServerPrinters(props.printServerId).then(res => {
|
|
2338
2531
|
setPrinters(res);
|
|
@@ -2345,96 +2538,165 @@ function AddPrinter(props) {
|
|
|
2345
2538
|
});
|
|
2346
2539
|
}, []);
|
|
2347
2540
|
const isValid = useCallback(() => {
|
|
2348
|
-
if (printerType === null) return false;
|
|
2349
2541
|
if (name === null || name === '') return false;
|
|
2350
2542
|
if (description === null || description === '') return false;
|
|
2543
|
+
// Se è una modifica, solo name e description sono richiesti
|
|
2544
|
+
if (props.printer) return true;
|
|
2545
|
+
// Se è una nuova stampante, valida tutti i campi
|
|
2546
|
+
if (printerType === null) return false;
|
|
2351
2547
|
if (printerType === 'managed' && (mappedPrinter === null || mappedPrinter === '')) return false;
|
|
2352
2548
|
if (printerType === 'unmanaged' && (manufacturer === null || manufacturer === '')) return false;
|
|
2353
2549
|
if (printerType === 'unmanaged' && (ipAddress === null || ipAddress === '')) return false;
|
|
2354
2550
|
if (printerType === 'unmanaged' && (port === null || port === '')) return false;
|
|
2355
2551
|
return true;
|
|
2356
|
-
}, [printerType, name, description, mappedPrinter, manufacturer, ipAddress, port]);
|
|
2552
|
+
}, [printerType, name, description, mappedPrinter, manufacturer, ipAddress, port, props.printer]);
|
|
2357
2553
|
const submit = () => {
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2554
|
+
if (props.printer) {
|
|
2555
|
+
// Modalità modifica: solo name e description
|
|
2556
|
+
const updateCommand = {
|
|
2557
|
+
name: name,
|
|
2558
|
+
description: description
|
|
2559
|
+
};
|
|
2560
|
+
FluxoClientSys.Instance.printing.UpdatePrinter(props.printServerId, props.printer.id, updateCommand).then(() => {
|
|
2561
|
+
showNotification({
|
|
2562
|
+
title: 'Stampante aggiornata',
|
|
2563
|
+
message: 'La stampante è stata aggiornata con successo',
|
|
2564
|
+
color: 'green'
|
|
2565
|
+
});
|
|
2566
|
+
props.onSaved();
|
|
2567
|
+
}).catch(e => {
|
|
2568
|
+
showNotification({
|
|
2569
|
+
title: 'Errore',
|
|
2570
|
+
message: e.message,
|
|
2571
|
+
color: 'red'
|
|
2572
|
+
});
|
|
2372
2573
|
});
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2574
|
+
} else {
|
|
2575
|
+
// Modalità creazione: tutti i campi
|
|
2576
|
+
const addCommand = {
|
|
2577
|
+
name: name,
|
|
2578
|
+
description: description,
|
|
2579
|
+
mappedPrinterName: mappedPrinter !== null ? mappedPrinter : "",
|
|
2580
|
+
ipAddress: ipAddress !== null ? ipAddress : "",
|
|
2581
|
+
port: port !== "" ? port : 0,
|
|
2582
|
+
type: printerType === 'managed' ? PrinterType.Managed : PrinterType.Unmanaged,
|
|
2583
|
+
manufacturer: manufacturer !== null && manufacturer !== '' ? parseInt(manufacturer) : 0
|
|
2584
|
+
};
|
|
2585
|
+
FluxoClientSys.Instance.printing.AddPrinter(props.printServerId, addCommand).then(() => {
|
|
2586
|
+
showNotification({
|
|
2587
|
+
title: 'Stampante creata',
|
|
2588
|
+
message: 'La stampante è stata creata con successo',
|
|
2589
|
+
color: 'green'
|
|
2590
|
+
});
|
|
2591
|
+
props.onSaved();
|
|
2592
|
+
}).catch(e => {
|
|
2593
|
+
showNotification({
|
|
2594
|
+
title: 'Errore',
|
|
2595
|
+
message: e.message,
|
|
2596
|
+
color: 'red'
|
|
2597
|
+
});
|
|
2379
2598
|
});
|
|
2380
|
-
}
|
|
2599
|
+
}
|
|
2381
2600
|
};
|
|
2382
2601
|
return jsxs(Stack, {
|
|
2383
|
-
children: [jsx(
|
|
2602
|
+
children: [props.printer && jsx(Text, {
|
|
2603
|
+
size: "sm",
|
|
2604
|
+
c: "dimmed",
|
|
2605
|
+
mb: "md",
|
|
2606
|
+
children: "Nota: \u00C8 possibile modificare solo il nome e la descrizione della stampante. Gli altri parametri sono impostati alla creazione e non possono essere modificati."
|
|
2607
|
+
}), jsx(TextInput, {
|
|
2384
2608
|
label: 'Nome',
|
|
2385
2609
|
placeholder: 'Es: Etichettatrice 10x10',
|
|
2610
|
+
value: name,
|
|
2386
2611
|
onChange: v => setName(v.target.value)
|
|
2387
2612
|
}), jsx(TextInput, {
|
|
2388
2613
|
label: 'Descrizione',
|
|
2389
2614
|
placeholder: 'Es: Bancone area imballaggio',
|
|
2615
|
+
value: description,
|
|
2390
2616
|
onChange: v => setDescription(v.target.value)
|
|
2391
|
-
}),
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
}, {
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2617
|
+
}), props.printer ?
|
|
2618
|
+
// Modalità modifica: mostra i campi non modificabili in sola lettura
|
|
2619
|
+
jsxs(Fragment, {
|
|
2620
|
+
children: [jsx(TextInput, {
|
|
2621
|
+
label: 'Tipo stampante',
|
|
2622
|
+
value: props.printer.type === PrinterType.Managed ? 'Stampante gestita' : 'Stampante non gestita',
|
|
2623
|
+
disabled: true
|
|
2624
|
+
}), props.printer.type === PrinterType.Unmanaged ? jsxs(Fragment, {
|
|
2625
|
+
children: [jsx(TextInput, {
|
|
2626
|
+
label: 'Produttore',
|
|
2627
|
+
value: props.printer.manufacturer === PrinterManufacturer.Zebra ? 'Zebra' : 'Sconosciuto',
|
|
2628
|
+
disabled: true
|
|
2629
|
+
}), jsx(TextInput, {
|
|
2630
|
+
label: 'Indirizzo IP',
|
|
2631
|
+
value: props.printer.ipAddress || '',
|
|
2632
|
+
disabled: true
|
|
2633
|
+
}), jsx(TextInput, {
|
|
2634
|
+
label: 'Porta',
|
|
2635
|
+
value: ((_j = props.printer.port) === null || _j === void 0 ? void 0 : _j.toString()) || '',
|
|
2636
|
+
disabled: true
|
|
2637
|
+
})]
|
|
2638
|
+
}) : jsx(TextInput, {
|
|
2639
|
+
label: 'Stampante fisica',
|
|
2640
|
+
value: props.printer.mappedPrinterName,
|
|
2641
|
+
disabled: true
|
|
2642
|
+
})]
|
|
2643
|
+
}) :
|
|
2644
|
+
// Modalità creazione: mostra tutti i campi modificabili
|
|
2645
|
+
jsxs(Fragment, {
|
|
2403
2646
|
children: [jsx(Select, {
|
|
2404
|
-
|
|
2405
|
-
|
|
2647
|
+
value: printerType,
|
|
2648
|
+
onChange: v => setPrinterType(v),
|
|
2649
|
+
label: 'Tipo stampante',
|
|
2406
2650
|
data: [{
|
|
2407
|
-
label: '
|
|
2408
|
-
value:
|
|
2651
|
+
label: 'Stampante gestita',
|
|
2652
|
+
value: 'managed'
|
|
2653
|
+
}, {
|
|
2654
|
+
label: 'Stampante non gestita',
|
|
2655
|
+
value: 'unmanaged'
|
|
2409
2656
|
}]
|
|
2410
|
-
}),
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2657
|
+
}), printerType === 'unmanaged' ? jsxs(Fragment, {
|
|
2658
|
+
children: [jsx(Select, {
|
|
2659
|
+
value: manufacturer,
|
|
2660
|
+
onChange: v => setManufacturer(v || ''),
|
|
2661
|
+
label: 'Produttore',
|
|
2662
|
+
data: [{
|
|
2663
|
+
label: 'Zebra',
|
|
2664
|
+
value: PrinterManufacturer.Zebra.toString()
|
|
2665
|
+
}]
|
|
2666
|
+
}), jsx(TextInput, {
|
|
2667
|
+
value: ipAddress,
|
|
2668
|
+
onChange: v => setIpAddress(v.target.value),
|
|
2669
|
+
label: 'Indirizzo IP',
|
|
2670
|
+
placeholder: 'Es: 192.168.1.199'
|
|
2671
|
+
}), jsx(NumberInput, {
|
|
2672
|
+
value: port,
|
|
2673
|
+
onChange: v => setPort(+v),
|
|
2674
|
+
label: 'Porta',
|
|
2675
|
+
min: 1,
|
|
2676
|
+
max: 65535,
|
|
2677
|
+
placeholder: 'Es: 9100'
|
|
2678
|
+
})]
|
|
2679
|
+
}) : jsx(Select, {
|
|
2680
|
+
value: mappedPrinter,
|
|
2681
|
+
onChange: v => setMappedPrinter(v || ''),
|
|
2682
|
+
leftSection: jsx(IconPrinter, {
|
|
2683
|
+
size: 18
|
|
2684
|
+
}),
|
|
2685
|
+
label: 'Stampante fisica',
|
|
2686
|
+
data: printers
|
|
2420
2687
|
})]
|
|
2421
|
-
}) : jsx(Select, {
|
|
2422
|
-
onChange: v => setMappedPrinter(v),
|
|
2423
|
-
leftSection: jsx(IconPrinter, {
|
|
2424
|
-
size: 18
|
|
2425
|
-
}),
|
|
2426
|
-
label: 'Stampante fisica',
|
|
2427
|
-
data: printers
|
|
2428
2688
|
}), jsxs(Group, {
|
|
2429
2689
|
justify: 'right',
|
|
2690
|
+
mt: "md",
|
|
2430
2691
|
children: [jsx(Button, {
|
|
2431
2692
|
onClick: () => props.onCanceled(),
|
|
2432
2693
|
variant: 'subtle',
|
|
2694
|
+
color: "gray",
|
|
2433
2695
|
children: "Annulla"
|
|
2434
2696
|
}), jsx(Button, {
|
|
2435
2697
|
onClick: submit,
|
|
2436
2698
|
disabled: !isValid(),
|
|
2437
|
-
children:
|
|
2699
|
+
children: props.printer ? 'Aggiorna' : 'Salva'
|
|
2438
2700
|
})]
|
|
2439
2701
|
})]
|
|
2440
2702
|
});
|
|
@@ -2444,6 +2706,10 @@ function ManagePrintServer(props) {
|
|
|
2444
2706
|
const [printServer, setPrintServer] = useState();
|
|
2445
2707
|
const [printServerLoaded, setPrintServerLoaded] = useState(false);
|
|
2446
2708
|
const [addPrinterModalOpened, setAddPrinterModalOpened] = useState(false);
|
|
2709
|
+
const [editPrinterModalOpened, setEditPrinterModalOpened] = useState(false);
|
|
2710
|
+
const [deleteConfirmOpened, setDeleteConfirmOpened] = useState(false);
|
|
2711
|
+
const [currentPrinter, setCurrentPrinter] = useState();
|
|
2712
|
+
const [searchQuery, setSearchQuery] = useState('');
|
|
2447
2713
|
const [name, setName] = useState();
|
|
2448
2714
|
const [description, setDescription] = useState();
|
|
2449
2715
|
useEffect(() => {
|
|
@@ -2467,6 +2733,39 @@ function ManagePrintServer(props) {
|
|
|
2467
2733
|
loadPrintServer();
|
|
2468
2734
|
});
|
|
2469
2735
|
};
|
|
2736
|
+
const handleEditPrinter = printer => {
|
|
2737
|
+
setCurrentPrinter(printer);
|
|
2738
|
+
setEditPrinterModalOpened(true);
|
|
2739
|
+
};
|
|
2740
|
+
const handleDeletePrinter = printer => {
|
|
2741
|
+
setCurrentPrinter(printer);
|
|
2742
|
+
setDeleteConfirmOpened(true);
|
|
2743
|
+
};
|
|
2744
|
+
const confirmDeletePrinter = () => {
|
|
2745
|
+
if (currentPrinter) {
|
|
2746
|
+
FluxoClientSys.Instance.printing.DeletePrinter(props.printServerId, currentPrinter.id).then(() => {
|
|
2747
|
+
setDeleteConfirmOpened(false);
|
|
2748
|
+
setCurrentPrinter(undefined);
|
|
2749
|
+
loadPrintServer();
|
|
2750
|
+
}).catch(error => {
|
|
2751
|
+
console.error('Errore durante l\'eliminazione:', error);
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2754
|
+
};
|
|
2755
|
+
const filterPrinters = (printers, query) => {
|
|
2756
|
+
if (!query.trim()) return printers;
|
|
2757
|
+
const lowerQuery = query.toLowerCase();
|
|
2758
|
+
return printers.filter(printer => printer.name.toLowerCase().includes(lowerQuery) || printer.description.toLowerCase().includes(lowerQuery) || printer.mappedPrinterName && printer.mappedPrinterName.toLowerCase().includes(lowerQuery) || printer.ipAddress && printer.ipAddress.toLowerCase().includes(lowerQuery));
|
|
2759
|
+
};
|
|
2760
|
+
const renderPrinterStatusIcon = printer => {
|
|
2761
|
+
return jsx(Tooltip, {
|
|
2762
|
+
label: "Attiva",
|
|
2763
|
+
children: jsx(IconPrinter, {
|
|
2764
|
+
size: 16,
|
|
2765
|
+
color: "#1976d2"
|
|
2766
|
+
})
|
|
2767
|
+
});
|
|
2768
|
+
};
|
|
2470
2769
|
return jsxs("div", {
|
|
2471
2770
|
children: [jsx(LoadingOverlay, {
|
|
2472
2771
|
visible: !printServerLoaded
|
|
@@ -2502,6 +2801,7 @@ function ManagePrintServer(props) {
|
|
|
2502
2801
|
children: "Aggiorna"
|
|
2503
2802
|
})
|
|
2504
2803
|
}), jsx(DataCard, {
|
|
2804
|
+
padded: false,
|
|
2505
2805
|
title: 'Stampanti',
|
|
2506
2806
|
icon: jsx(IconPrinter, {
|
|
2507
2807
|
size: 18
|
|
@@ -2513,82 +2813,166 @@ function ManagePrintServer(props) {
|
|
|
2513
2813
|
label: 'Aggiungi',
|
|
2514
2814
|
onClick: () => setAddPrinterModalOpened(true)
|
|
2515
2815
|
}],
|
|
2516
|
-
children:
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2816
|
+
children: jsxs(Stack, {
|
|
2817
|
+
gap: 0,
|
|
2818
|
+
children: [printServer && printServer.printers.length > 0 && jsx(Box, {
|
|
2819
|
+
style: {
|
|
2820
|
+
borderBottom: '1px solid var(--mantine-color-gray-3)'
|
|
2821
|
+
},
|
|
2822
|
+
children: jsx(TextInput, {
|
|
2823
|
+
variant: 'unstyled',
|
|
2824
|
+
placeholder: "Cerca per nome, descrizione...",
|
|
2825
|
+
leftSection: jsx(IconSearch, {
|
|
2826
|
+
size: 16
|
|
2827
|
+
}),
|
|
2828
|
+
rightSection: searchQuery && jsx(ActionIcon, {
|
|
2829
|
+
size: "sm",
|
|
2830
|
+
variant: "subtle",
|
|
2831
|
+
onClick: () => setSearchQuery(''),
|
|
2832
|
+
children: jsx(IconX, {
|
|
2833
|
+
size: 14
|
|
2834
|
+
})
|
|
2835
|
+
}),
|
|
2836
|
+
value: searchQuery,
|
|
2837
|
+
onChange: e => setSearchQuery(e.currentTarget.value)
|
|
2838
|
+
})
|
|
2839
|
+
}), !printServer || printServer.printers.length === 0 ? jsx(Box, {
|
|
2840
|
+
p: 40,
|
|
2841
|
+
children: jsx(NoData, {
|
|
2842
|
+
icon: jsx(IconPrinter, {
|
|
2843
|
+
size: 48
|
|
2844
|
+
}),
|
|
2845
|
+
iconSize: 48,
|
|
2846
|
+
message: "Non ci sono stampanti configurate"
|
|
2847
|
+
})
|
|
2848
|
+
}) : (() => {
|
|
2849
|
+
const filteredPrinters = filterPrinters(printServer.printers, searchQuery);
|
|
2850
|
+
return filteredPrinters.length === 0 ? jsx(Box, {
|
|
2851
|
+
p: 40,
|
|
2852
|
+
children: jsx(NoData, {
|
|
2853
|
+
icon: jsx(IconPrinter, {
|
|
2854
|
+
size: 48
|
|
2855
|
+
}),
|
|
2856
|
+
iconSize: 48,
|
|
2857
|
+
message: "Nessun risultato"
|
|
2858
|
+
})
|
|
2859
|
+
}) : jsx(Table.ScrollContainer, {
|
|
2860
|
+
minWidth: 800,
|
|
2861
|
+
children: jsxs(Table, {
|
|
2862
|
+
highlightOnHover: true,
|
|
2863
|
+
withColumnBorders: true,
|
|
2864
|
+
children: [jsx(Table.Thead, {
|
|
2865
|
+
children: jsxs(Table.Tr, {
|
|
2866
|
+
children: [jsx(Table.Th, {
|
|
2867
|
+
w: 40,
|
|
2868
|
+
children: "Stato"
|
|
2869
|
+
}), jsx(Table.Th, {
|
|
2870
|
+
w: 'auto',
|
|
2871
|
+
children: "Nome"
|
|
2872
|
+
}), jsx(Table.Th, {
|
|
2873
|
+
w: 120,
|
|
2874
|
+
children: "Tipo"
|
|
2875
|
+
}), jsx(Table.Th, {
|
|
2876
|
+
w: 200,
|
|
2877
|
+
children: "Configurazione"
|
|
2878
|
+
}), jsx(Table.Th, {
|
|
2879
|
+
w: 40
|
|
2880
|
+
})]
|
|
2559
2881
|
})
|
|
2560
|
-
}),
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2882
|
+
}), jsx(Table.Tbody, {
|
|
2883
|
+
children: filteredPrinters.map(printer => jsxs(Table.Tr, {
|
|
2884
|
+
children: [jsx(Table.Td, {
|
|
2885
|
+
children: jsx(Center, {
|
|
2886
|
+
children: renderPrinterStatusIcon()
|
|
2887
|
+
})
|
|
2888
|
+
}), jsx(Table.Td, {
|
|
2889
|
+
children: jsxs(Stack, {
|
|
2890
|
+
gap: 2,
|
|
2891
|
+
children: [jsx(Text, {
|
|
2892
|
+
size: "sm",
|
|
2893
|
+
fw: 500,
|
|
2894
|
+
children: printer.name
|
|
2895
|
+
}), jsx(Text, {
|
|
2896
|
+
size: "xs",
|
|
2897
|
+
c: "dimmed",
|
|
2898
|
+
children: printer.description
|
|
2899
|
+
})]
|
|
2900
|
+
})
|
|
2901
|
+
}), jsx(Table.Td, {
|
|
2902
|
+
children: printer.type === PrinterType.Managed ? jsx(Badge, {
|
|
2903
|
+
color: "blue",
|
|
2904
|
+
variant: "light",
|
|
2905
|
+
size: "sm",
|
|
2906
|
+
children: "Gestita"
|
|
2907
|
+
}) : jsx(Badge, {
|
|
2908
|
+
color: "yellow",
|
|
2909
|
+
variant: "light",
|
|
2910
|
+
size: "sm",
|
|
2911
|
+
children: "Non gestita"
|
|
2912
|
+
})
|
|
2913
|
+
}), jsx(Table.Td, {
|
|
2914
|
+
children: jsxs(Group, {
|
|
2915
|
+
gap: "xs",
|
|
2916
|
+
children: [printer.type === PrinterType.Unmanaged && printer.manufacturer === PrinterManufacturer.Zebra && jsx(Badge, {
|
|
2917
|
+
color: "grape",
|
|
2918
|
+
variant: "light",
|
|
2919
|
+
size: "sm",
|
|
2920
|
+
children: "ZEBRA"
|
|
2921
|
+
}), printer.type === PrinterType.Managed && jsx(Badge, {
|
|
2922
|
+
color: "gray",
|
|
2923
|
+
variant: "light",
|
|
2924
|
+
size: "sm",
|
|
2925
|
+
children: printer.mappedPrinterName
|
|
2926
|
+
}), printer.type === PrinterType.Unmanaged && printer.ipAddress && jsxs(Badge, {
|
|
2927
|
+
color: "cyan",
|
|
2928
|
+
variant: "light",
|
|
2929
|
+
size: "sm",
|
|
2930
|
+
children: [printer.ipAddress, ":", printer.port]
|
|
2931
|
+
})]
|
|
2932
|
+
})
|
|
2933
|
+
}), jsx(Table.Td, {
|
|
2934
|
+
children: jsxs(Menu, {
|
|
2935
|
+
shadow: "md",
|
|
2936
|
+
width: 200,
|
|
2937
|
+
children: [jsx(Menu.Target, {
|
|
2938
|
+
children: jsx(ActionIcon, {
|
|
2939
|
+
variant: "subtle",
|
|
2940
|
+
color: "gray",
|
|
2941
|
+
children: jsx(IconDotsVertical, {
|
|
2942
|
+
size: 16
|
|
2943
|
+
})
|
|
2944
|
+
})
|
|
2945
|
+
}), jsxs(Menu.Dropdown, {
|
|
2946
|
+
children: [jsx(Menu.Item, {
|
|
2947
|
+
leftSection: jsx(IconEdit, {
|
|
2948
|
+
size: 16
|
|
2949
|
+
}),
|
|
2950
|
+
onClick: () => handleEditPrinter(printer),
|
|
2951
|
+
children: "Modifica"
|
|
2952
|
+
}), jsx(Menu.Divider, {}), jsx(Menu.Item, {
|
|
2953
|
+
color: "red",
|
|
2954
|
+
leftSection: jsx(IconTrash, {
|
|
2955
|
+
size: 16
|
|
2956
|
+
}),
|
|
2957
|
+
onClick: () => handleDeletePrinter(printer),
|
|
2958
|
+
children: "Elimina"
|
|
2959
|
+
})]
|
|
2960
|
+
})]
|
|
2571
2961
|
})
|
|
2572
|
-
})
|
|
2573
|
-
}), jsxs(Menu.Dropdown, {
|
|
2574
|
-
children: [jsx(Menu.Item, {
|
|
2575
|
-
children: "Modifica"
|
|
2576
|
-
}), jsx(Menu.Item, {
|
|
2577
|
-
color: 'red',
|
|
2578
|
-
children: "Elimina"
|
|
2579
2962
|
})]
|
|
2580
|
-
})
|
|
2963
|
+
}, printer.id))
|
|
2581
2964
|
})]
|
|
2582
|
-
})
|
|
2583
|
-
}
|
|
2584
|
-
})
|
|
2965
|
+
})
|
|
2966
|
+
});
|
|
2967
|
+
})()]
|
|
2585
2968
|
})
|
|
2586
2969
|
}), jsx(Modal, {
|
|
2587
2970
|
title: `Aggiungi stampante - ${printServer === null || printServer === void 0 ? void 0 : printServer.name}`,
|
|
2588
2971
|
centered: true,
|
|
2589
2972
|
opened: addPrinterModalOpened,
|
|
2590
2973
|
onClose: () => setAddPrinterModalOpened(false),
|
|
2591
|
-
|
|
2974
|
+
size: "lg",
|
|
2975
|
+
children: jsx(EditPrinter, {
|
|
2592
2976
|
onCanceled: () => setAddPrinterModalOpened(false),
|
|
2593
2977
|
onSaved: () => {
|
|
2594
2978
|
setAddPrinterModalOpened(false);
|
|
@@ -2596,16 +2980,76 @@ function ManagePrintServer(props) {
|
|
|
2596
2980
|
},
|
|
2597
2981
|
printServerId: props.printServerId
|
|
2598
2982
|
})
|
|
2983
|
+
}), jsx(Modal, {
|
|
2984
|
+
title: `Modifica stampante - ${currentPrinter === null || currentPrinter === void 0 ? void 0 : currentPrinter.name}`,
|
|
2985
|
+
centered: true,
|
|
2986
|
+
opened: editPrinterModalOpened,
|
|
2987
|
+
onClose: () => {
|
|
2988
|
+
setEditPrinterModalOpened(false);
|
|
2989
|
+
setCurrentPrinter(undefined);
|
|
2990
|
+
},
|
|
2991
|
+
size: "lg",
|
|
2992
|
+
children: jsx(EditPrinter, {
|
|
2993
|
+
printer: currentPrinter,
|
|
2994
|
+
onCanceled: () => {
|
|
2995
|
+
setEditPrinterModalOpened(false);
|
|
2996
|
+
setCurrentPrinter(undefined);
|
|
2997
|
+
},
|
|
2998
|
+
onSaved: () => {
|
|
2999
|
+
setEditPrinterModalOpened(false);
|
|
3000
|
+
setCurrentPrinter(undefined);
|
|
3001
|
+
loadPrintServer();
|
|
3002
|
+
},
|
|
3003
|
+
printServerId: props.printServerId
|
|
3004
|
+
})
|
|
3005
|
+
}), jsx(Modal, {
|
|
3006
|
+
opened: deleteConfirmOpened,
|
|
3007
|
+
onClose: () => {
|
|
3008
|
+
setDeleteConfirmOpened(false);
|
|
3009
|
+
setCurrentPrinter(undefined);
|
|
3010
|
+
},
|
|
3011
|
+
title: "Elimina Stampante",
|
|
3012
|
+
centered: true,
|
|
3013
|
+
children: jsxs(Stack, {
|
|
3014
|
+
gap: "md",
|
|
3015
|
+
children: [jsxs(Text, {
|
|
3016
|
+
size: "sm",
|
|
3017
|
+
children: ["Sei sicuro di voler eliminare la stampante ", jsx("strong", {
|
|
3018
|
+
children: currentPrinter === null || currentPrinter === void 0 ? void 0 : currentPrinter.name
|
|
3019
|
+
}), "?", jsx("br", {}), "Questa azione \u00E8 irreversibile."]
|
|
3020
|
+
}), jsxs(Group, {
|
|
3021
|
+
justify: "flex-end",
|
|
3022
|
+
gap: "sm",
|
|
3023
|
+
children: [jsx(Button, {
|
|
3024
|
+
variant: "subtle",
|
|
3025
|
+
color: "gray",
|
|
3026
|
+
onClick: () => {
|
|
3027
|
+
setDeleteConfirmOpened(false);
|
|
3028
|
+
setCurrentPrinter(undefined);
|
|
3029
|
+
},
|
|
3030
|
+
children: "Annulla"
|
|
3031
|
+
}), jsx(Button, {
|
|
3032
|
+
color: "red",
|
|
3033
|
+
onClick: confirmDeletePrinter,
|
|
3034
|
+
children: "Elimina"
|
|
3035
|
+
})]
|
|
3036
|
+
})]
|
|
3037
|
+
})
|
|
2599
3038
|
})]
|
|
2600
3039
|
})]
|
|
2601
3040
|
});
|
|
2602
3041
|
}
|
|
2603
3042
|
|
|
2604
|
-
function PrintServerList(
|
|
3043
|
+
function PrintServerList({
|
|
3044
|
+
shellPageRef
|
|
3045
|
+
}) {
|
|
2605
3046
|
const [printServers, setPrintServers] = React.useState([]);
|
|
2606
3047
|
const [addPrintServerModalOpened, setPrintServerModalOpened] = React.useState(false);
|
|
2607
3048
|
const [currentPrintServer, setCurrentPrintServer] = React.useState();
|
|
2608
3049
|
const [managePrintServerModalOpened, setManagePrintServerModalOpened] = React.useState(false);
|
|
3050
|
+
const [deleteConfirmOpened, setDeleteConfirmOpened] = React.useState(false);
|
|
3051
|
+
const [printServerToDelete, setPrintServerToDelete] = React.useState();
|
|
3052
|
+
const [searchQuery, setSearchQuery] = React.useState('');
|
|
2609
3053
|
useEffect(() => {
|
|
2610
3054
|
loadPrintServer();
|
|
2611
3055
|
}, []);
|
|
@@ -2614,7 +3058,39 @@ function PrintServerList() {
|
|
|
2614
3058
|
setPrintServers(a);
|
|
2615
3059
|
});
|
|
2616
3060
|
};
|
|
3061
|
+
const handleDeletePrintServer = printServer => {
|
|
3062
|
+
setPrintServerToDelete(printServer);
|
|
3063
|
+
setDeleteConfirmOpened(true);
|
|
3064
|
+
};
|
|
3065
|
+
const confirmDelete = () => {
|
|
3066
|
+
if (printServerToDelete) {
|
|
3067
|
+
FluxoClientSys.Instance.printing.DeletePrintServer(printServerToDelete.id).then(() => {
|
|
3068
|
+
setDeleteConfirmOpened(false);
|
|
3069
|
+
setPrintServerToDelete(undefined);
|
|
3070
|
+
loadPrintServer();
|
|
3071
|
+
}).catch(error => {
|
|
3072
|
+
console.error('Errore durante l\'eliminazione:', error);
|
|
3073
|
+
});
|
|
3074
|
+
}
|
|
3075
|
+
};
|
|
3076
|
+
const filterPrintServers = (servers, query) => {
|
|
3077
|
+
if (!query.trim()) return servers;
|
|
3078
|
+
const lowerQuery = query.toLowerCase();
|
|
3079
|
+
return servers.filter(server => server.name.toLowerCase().includes(lowerQuery) || server.description.toLowerCase().includes(lowerQuery) || server.ipAddress.toLowerCase().includes(lowerQuery));
|
|
3080
|
+
};
|
|
3081
|
+
const renderStatusIcon = server => {
|
|
3082
|
+
return jsx(Tooltip, {
|
|
3083
|
+
label: "Attivo",
|
|
3084
|
+
children: jsx(IconCircle, {
|
|
3085
|
+
size: 16,
|
|
3086
|
+
color: "#329b0d",
|
|
3087
|
+
fill: "#329b0d"
|
|
3088
|
+
})
|
|
3089
|
+
});
|
|
3090
|
+
};
|
|
3091
|
+
const filteredServers = filterPrintServers(printServers, searchQuery);
|
|
2617
3092
|
return jsxs(DataCard, {
|
|
3093
|
+
padded: false,
|
|
2618
3094
|
title: 'Print server virtuali',
|
|
2619
3095
|
actions: [{
|
|
2620
3096
|
icon: jsx(IconPlus, {
|
|
@@ -2624,132 +3100,190 @@ function PrintServerList() {
|
|
|
2624
3100
|
onClick: () => setPrintServerModalOpened(true)
|
|
2625
3101
|
}],
|
|
2626
3102
|
children: [jsxs(Stack, {
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
children:
|
|
3103
|
+
gap: 0,
|
|
3104
|
+
children: [jsx(Box, {
|
|
3105
|
+
style: {
|
|
3106
|
+
borderBottom: '1px solid var(--mantine-color-gray-3)'
|
|
3107
|
+
},
|
|
3108
|
+
children: jsx(TextInput, {
|
|
3109
|
+
variant: 'unstyled',
|
|
3110
|
+
placeholder: "Cerca per nome, descrizione, IP...",
|
|
3111
|
+
leftSection: jsx(IconSearch, {
|
|
3112
|
+
size: 16
|
|
3113
|
+
}),
|
|
3114
|
+
rightSection: searchQuery && jsx(ActionIcon, {
|
|
3115
|
+
size: "sm",
|
|
3116
|
+
variant: "subtle",
|
|
3117
|
+
onClick: () => setSearchQuery(''),
|
|
3118
|
+
children: jsx(IconX, {
|
|
3119
|
+
size: 14
|
|
3120
|
+
})
|
|
3121
|
+
}),
|
|
3122
|
+
value: searchQuery,
|
|
3123
|
+
onChange: e => setSearchQuery(e.currentTarget.value)
|
|
3124
|
+
})
|
|
3125
|
+
}), filteredServers.length === 0 ? jsx(Box, {
|
|
3126
|
+
p: 40,
|
|
3127
|
+
children: jsx(NoData, {
|
|
3128
|
+
icon: jsx(IconServerBolt, {
|
|
3129
|
+
size: 48
|
|
3130
|
+
}),
|
|
3131
|
+
iconSize: 48,
|
|
3132
|
+
message: searchQuery ? "Nessun risultato" : "Nessun print server virtuale presente"
|
|
3133
|
+
})
|
|
3134
|
+
}) : jsx(Table.ScrollContainer, {
|
|
3135
|
+
minWidth: 800,
|
|
3136
|
+
children: jsxs(Table, {
|
|
3137
|
+
highlightOnHover: true,
|
|
3138
|
+
withColumnBorders: true,
|
|
3139
|
+
children: [jsx(Table.Thead, {
|
|
3140
|
+
children: jsxs(Table.Tr, {
|
|
3141
|
+
children: [jsx(Table.Th, {
|
|
3142
|
+
w: 40,
|
|
3143
|
+
children: "Stato"
|
|
3144
|
+
}), jsx(Table.Th, {
|
|
3145
|
+
w: 'auto',
|
|
3146
|
+
children: "Nome"
|
|
3147
|
+
}), jsx(Table.Th, {
|
|
3148
|
+
w: 200,
|
|
3149
|
+
children: "Indirizzo"
|
|
3150
|
+
}), jsx(Table.Th, {
|
|
3151
|
+
w: 120,
|
|
3152
|
+
children: "Tipo"
|
|
3153
|
+
}), jsx(Table.Th, {
|
|
3154
|
+
w: 100,
|
|
3155
|
+
children: "Sistema"
|
|
3156
|
+
}), jsx(Table.Th, {
|
|
3157
|
+
w: 40
|
|
2668
3158
|
})]
|
|
2669
|
-
})
|
|
2670
|
-
}),
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
leftSection: jsx(IconExternalLink, {
|
|
2676
|
-
style: {
|
|
2677
|
-
marginTop: 4
|
|
2678
|
-
},
|
|
2679
|
-
size: 16
|
|
2680
|
-
}),
|
|
2681
|
-
style: {
|
|
2682
|
-
cursor: 'pointer'
|
|
2683
|
-
},
|
|
2684
|
-
color: 'yellow',
|
|
2685
|
-
variant: 'light',
|
|
2686
|
-
onClick: () => window.open(`http://${e.ipAddress}:${e.port}/`, '_blank'),
|
|
2687
|
-
children: [e.ipAddress.toLowerCase(), ":", e.port]
|
|
2688
|
-
}), e.managedType === PrintServerManagedType.Ipp && e.type === PrintServerType.Remote && jsxs(Badge, {
|
|
2689
|
-
color: 'gray',
|
|
2690
|
-
variant: 'light',
|
|
2691
|
-
children: [e.ipAddress.toLowerCase(), ":", e.port]
|
|
2692
|
-
}), e.type === PrintServerType.Direct ? jsx(IconLine, {
|
|
2693
|
-
size: 18
|
|
2694
|
-
}) : jsx(IconBuildingBridge, {
|
|
2695
|
-
size: 18
|
|
2696
|
-
}), e.managedType === PrintServerManagedType.Ipp ? jsx(Text, {
|
|
2697
|
-
size: 'md',
|
|
2698
|
-
fw: 900,
|
|
2699
|
-
style: {
|
|
2700
|
-
letterSpacing: '0.5px'
|
|
2701
|
-
},
|
|
2702
|
-
children: "IPP"
|
|
2703
|
-
}) : jsx(IconBrandWindows, {
|
|
2704
|
-
size: 18
|
|
2705
|
-
}), jsxs(Menu, {
|
|
2706
|
-
children: [jsx(Menu.Target, {
|
|
2707
|
-
children: jsx(IconDotsVertical, {
|
|
2708
|
-
size: 18
|
|
3159
|
+
})
|
|
3160
|
+
}), jsx(Table.Tbody, {
|
|
3161
|
+
children: filteredServers.map(server => jsxs(Table.Tr, {
|
|
3162
|
+
children: [jsx(Table.Td, {
|
|
3163
|
+
children: jsx(Center, {
|
|
3164
|
+
children: renderStatusIcon()
|
|
2709
3165
|
})
|
|
2710
|
-
}),
|
|
2711
|
-
children:
|
|
2712
|
-
|
|
2713
|
-
|
|
3166
|
+
}), jsx(Table.Td, {
|
|
3167
|
+
children: jsxs(Stack, {
|
|
3168
|
+
gap: 2,
|
|
3169
|
+
children: [jsx(Text, {
|
|
3170
|
+
size: "sm",
|
|
3171
|
+
fw: 500,
|
|
3172
|
+
children: server.name
|
|
3173
|
+
}), jsx(Text, {
|
|
3174
|
+
size: "xs",
|
|
3175
|
+
c: "dimmed",
|
|
3176
|
+
children: server.description
|
|
3177
|
+
})]
|
|
3178
|
+
})
|
|
3179
|
+
}), jsx(Table.Td, {
|
|
3180
|
+
children: server.managedType === PrintServerManagedType.Ipp && server.type === PrintServerType.Direct ? jsxs(Badge, {
|
|
3181
|
+
leftSection: jsx(IconExternalLink, {
|
|
3182
|
+
size: 12
|
|
2714
3183
|
}),
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
setManagePrintServerModalOpened(true);
|
|
3184
|
+
style: {
|
|
3185
|
+
cursor: 'pointer'
|
|
2718
3186
|
},
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
children: "
|
|
2724
|
-
})
|
|
2725
|
-
color:
|
|
2726
|
-
|
|
2727
|
-
|
|
3187
|
+
color: "yellow",
|
|
3188
|
+
variant: "light",
|
|
3189
|
+
size: "sm",
|
|
3190
|
+
onClick: () => window.open(`http://${server.ipAddress}:${server.port}/`, '_blank'),
|
|
3191
|
+
children: [server.ipAddress.toLowerCase(), ":", server.port]
|
|
3192
|
+
}) : jsxs(Badge, {
|
|
3193
|
+
color: "gray",
|
|
3194
|
+
variant: "light",
|
|
3195
|
+
size: "sm",
|
|
3196
|
+
children: [server.ipAddress.toLowerCase(), ":", server.port]
|
|
3197
|
+
})
|
|
3198
|
+
}), jsx(Table.Td, {
|
|
3199
|
+
children: jsx(Badge, {
|
|
3200
|
+
leftSection: server.type === PrintServerType.Direct ? jsx(IconLine, {
|
|
3201
|
+
size: 12
|
|
3202
|
+
}) : jsx(IconBuildingBridge, {
|
|
3203
|
+
size: 12
|
|
2728
3204
|
}),
|
|
2729
|
-
|
|
2730
|
-
|
|
3205
|
+
color: "blue",
|
|
3206
|
+
variant: "light",
|
|
3207
|
+
size: "sm",
|
|
3208
|
+
children: server.type === PrintServerType.Direct ? 'Diretto' : 'Remoto'
|
|
3209
|
+
})
|
|
3210
|
+
}), jsx(Table.Td, {
|
|
3211
|
+
children: server.managedType === PrintServerManagedType.Ipp ? jsx(Badge, {
|
|
3212
|
+
color: "grape",
|
|
3213
|
+
variant: "light",
|
|
3214
|
+
size: "sm",
|
|
3215
|
+
children: "IPP"
|
|
3216
|
+
}) : jsx(Badge, {
|
|
3217
|
+
leftSection: jsx(IconBrandWindows, {
|
|
3218
|
+
size: 12
|
|
3219
|
+
}),
|
|
3220
|
+
color: "cyan",
|
|
3221
|
+
variant: "light",
|
|
3222
|
+
size: "sm",
|
|
3223
|
+
children: "Windows"
|
|
3224
|
+
})
|
|
3225
|
+
}), jsx(Table.Td, {
|
|
3226
|
+
children: jsxs(Menu, {
|
|
3227
|
+
shadow: "md",
|
|
3228
|
+
width: 200,
|
|
3229
|
+
children: [jsx(Menu.Target, {
|
|
3230
|
+
children: jsx(ActionIcon, {
|
|
3231
|
+
variant: "subtle",
|
|
3232
|
+
color: "gray",
|
|
3233
|
+
children: jsx(IconDotsVertical, {
|
|
3234
|
+
size: 16
|
|
3235
|
+
})
|
|
3236
|
+
})
|
|
3237
|
+
}), jsxs(Menu.Dropdown, {
|
|
3238
|
+
children: [jsx(Menu.Item, {
|
|
3239
|
+
leftSection: jsx(IconManualGearbox, {
|
|
3240
|
+
size: 16
|
|
3241
|
+
}),
|
|
3242
|
+
onClick: () => {
|
|
3243
|
+
setCurrentPrintServer(server);
|
|
3244
|
+
setManagePrintServerModalOpened(true);
|
|
3245
|
+
},
|
|
3246
|
+
children: "Gestisci"
|
|
3247
|
+
}), jsx(Menu.Divider, {}), jsx(Menu.Item, {
|
|
3248
|
+
color: "red",
|
|
3249
|
+
leftSection: jsx(IconTrash, {
|
|
3250
|
+
size: 16
|
|
3251
|
+
}),
|
|
3252
|
+
onClick: () => handleDeletePrintServer(server),
|
|
3253
|
+
children: "Elimina"
|
|
3254
|
+
})]
|
|
3255
|
+
})]
|
|
3256
|
+
})
|
|
2731
3257
|
})]
|
|
2732
|
-
})
|
|
3258
|
+
}, server.id))
|
|
2733
3259
|
})]
|
|
2734
|
-
}
|
|
3260
|
+
})
|
|
2735
3261
|
})]
|
|
2736
|
-
}),
|
|
2737
|
-
|
|
2738
|
-
size: 'lg',
|
|
2739
|
-
position: 'right',
|
|
3262
|
+
}), jsx(SlidingPanel, {
|
|
3263
|
+
shellPageRef: shellPageRef,
|
|
2740
3264
|
opened: managePrintServerModalOpened,
|
|
2741
3265
|
onClose: () => {
|
|
2742
3266
|
setManagePrintServerModalOpened(false);
|
|
3267
|
+
setCurrentPrintServer(undefined);
|
|
2743
3268
|
loadPrintServer();
|
|
2744
3269
|
},
|
|
2745
|
-
|
|
2746
|
-
|
|
3270
|
+
title: "Gestisci Print Server Virtuale",
|
|
3271
|
+
size: "60%",
|
|
3272
|
+
closeOnClickOutside: false,
|
|
3273
|
+
closeOnEscape: true,
|
|
3274
|
+
children: currentPrintServer && jsx(ManagePrintServer, {
|
|
3275
|
+
printServerId: currentPrintServer.id
|
|
2747
3276
|
})
|
|
2748
|
-
}), jsx(
|
|
2749
|
-
|
|
2750
|
-
centered: true,
|
|
3277
|
+
}), jsx(SlidingPanel, {
|
|
3278
|
+
shellPageRef: shellPageRef,
|
|
2751
3279
|
opened: addPrintServerModalOpened,
|
|
2752
|
-
onClose: () =>
|
|
3280
|
+
onClose: () => {
|
|
3281
|
+
setPrintServerModalOpened(false);
|
|
3282
|
+
},
|
|
3283
|
+
title: "Aggiungi Print Server Virtuale",
|
|
3284
|
+
size: "60%",
|
|
3285
|
+
closeOnClickOutside: false,
|
|
3286
|
+
closeOnEscape: true,
|
|
2753
3287
|
children: jsx(AddPrintServer, {
|
|
2754
3288
|
onCanceled: () => setPrintServerModalOpened(false),
|
|
2755
3289
|
onSaved: () => {
|
|
@@ -2757,6 +3291,39 @@ function PrintServerList() {
|
|
|
2757
3291
|
loadPrintServer();
|
|
2758
3292
|
}
|
|
2759
3293
|
})
|
|
3294
|
+
}), jsx(Modal, {
|
|
3295
|
+
opened: deleteConfirmOpened,
|
|
3296
|
+
onClose: () => {
|
|
3297
|
+
setDeleteConfirmOpened(false);
|
|
3298
|
+
setPrintServerToDelete(undefined);
|
|
3299
|
+
},
|
|
3300
|
+
title: "Elimina Print Server Virtuale",
|
|
3301
|
+
centered: true,
|
|
3302
|
+
children: jsxs(Stack, {
|
|
3303
|
+
gap: "md",
|
|
3304
|
+
children: [jsxs(Text, {
|
|
3305
|
+
size: "sm",
|
|
3306
|
+
children: ["Sei sicuro di voler eliminare il print server ", jsx("strong", {
|
|
3307
|
+
children: printServerToDelete === null || printServerToDelete === void 0 ? void 0 : printServerToDelete.name
|
|
3308
|
+
}), "?", jsx("br", {}), "Questa azione \u00E8 irreversibile."]
|
|
3309
|
+
}), jsxs(Group, {
|
|
3310
|
+
justify: "flex-end",
|
|
3311
|
+
gap: "sm",
|
|
3312
|
+
children: [jsx(Button, {
|
|
3313
|
+
variant: "subtle",
|
|
3314
|
+
color: "gray",
|
|
3315
|
+
onClick: () => {
|
|
3316
|
+
setDeleteConfirmOpened(false);
|
|
3317
|
+
setPrintServerToDelete(undefined);
|
|
3318
|
+
},
|
|
3319
|
+
children: "Annulla"
|
|
3320
|
+
}), jsx(Button, {
|
|
3321
|
+
color: "red",
|
|
3322
|
+
onClick: confirmDelete,
|
|
3323
|
+
children: "Elimina"
|
|
3324
|
+
})]
|
|
3325
|
+
})]
|
|
3326
|
+
})
|
|
2760
3327
|
})]
|
|
2761
3328
|
});
|
|
2762
3329
|
}
|
|
@@ -2772,7 +3339,7 @@ var functionUncurryThisClause = function (fn) {
|
|
|
2772
3339
|
};
|
|
2773
3340
|
|
|
2774
3341
|
var uncurryThis = functionUncurryThisClause;
|
|
2775
|
-
var aCallable$2 = aCallable$
|
|
3342
|
+
var aCallable$2 = aCallable$7;
|
|
2776
3343
|
var NATIVE_BIND = functionBindNative;
|
|
2777
3344
|
|
|
2778
3345
|
var bind$1 = uncurryThis(uncurryThis.bind);
|
|
@@ -2785,7 +3352,7 @@ var functionBindContext = function (fn, that) {
|
|
|
2785
3352
|
};
|
|
2786
3353
|
};
|
|
2787
3354
|
|
|
2788
|
-
var wellKnownSymbol$1 = wellKnownSymbol$
|
|
3355
|
+
var wellKnownSymbol$1 = wellKnownSymbol$e;
|
|
2789
3356
|
var Iterators$1 = iterators;
|
|
2790
3357
|
|
|
2791
3358
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
@@ -2796,11 +3363,11 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
2796
3363
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
|
|
2797
3364
|
};
|
|
2798
3365
|
|
|
2799
|
-
var classof = classof$
|
|
3366
|
+
var classof = classof$3;
|
|
2800
3367
|
var getMethod = getMethod$4;
|
|
2801
3368
|
var isNullOrUndefined = isNullOrUndefined$3;
|
|
2802
3369
|
var Iterators = iterators;
|
|
2803
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
3370
|
+
var wellKnownSymbol = wellKnownSymbol$e;
|
|
2804
3371
|
|
|
2805
3372
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
2806
3373
|
|
|
@@ -2811,8 +3378,8 @@ var getIteratorMethod$2 = function (it) {
|
|
|
2811
3378
|
};
|
|
2812
3379
|
|
|
2813
3380
|
var call$1 = functionCall;
|
|
2814
|
-
var aCallable$1 = aCallable$
|
|
2815
|
-
var anObject$2 = anObject$
|
|
3381
|
+
var aCallable$1 = aCallable$7;
|
|
3382
|
+
var anObject$2 = anObject$e;
|
|
2816
3383
|
var tryToString$1 = tryToString$3;
|
|
2817
3384
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
2818
3385
|
|
|
@@ -2826,7 +3393,7 @@ var getIterator$1 = function (argument, usingIterator) {
|
|
|
2826
3393
|
|
|
2827
3394
|
var bind = functionBindContext;
|
|
2828
3395
|
var call = functionCall;
|
|
2829
|
-
var anObject$1 = anObject$
|
|
3396
|
+
var anObject$1 = anObject$e;
|
|
2830
3397
|
var tryToString = tryToString$3;
|
|
2831
3398
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2832
3399
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
@@ -2895,9 +3462,9 @@ var iterate$1 = function (iterable, unboundFunction, options) {
|
|
|
2895
3462
|
|
|
2896
3463
|
var $ = _export;
|
|
2897
3464
|
var iterate = iterate$1;
|
|
2898
|
-
var aCallable = aCallable$
|
|
2899
|
-
var anObject = anObject$
|
|
2900
|
-
var getIteratorDirect = getIteratorDirect$
|
|
3465
|
+
var aCallable = aCallable$7;
|
|
3466
|
+
var anObject = anObject$e;
|
|
3467
|
+
var getIteratorDirect = getIteratorDirect$3;
|
|
2901
3468
|
|
|
2902
3469
|
// `Iterator.prototype.find` method
|
|
2903
3470
|
// https://github.com/tc39/proposal-iterator-helpers
|
|
@@ -2957,7 +3524,8 @@ function PrinterChooser(props) {
|
|
|
2957
3524
|
const command = {
|
|
2958
3525
|
reportUrl: props.reportUrl,
|
|
2959
3526
|
virtualPrinterId: +selectedPrinter,
|
|
2960
|
-
virtualServerId: +selectedPrintServer
|
|
3527
|
+
virtualServerId: +selectedPrintServer,
|
|
3528
|
+
copies: 1
|
|
2961
3529
|
};
|
|
2962
3530
|
setOnPrinting(true);
|
|
2963
3531
|
FluxoClientSys.Instance.reporting.print(command).then(() => {
|