etiquetas.js 1.0.0-alpha.14 → 1.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/etiquetas.es.js +62 -60
- package/dist/etiquetas.umd.js +28 -28
- package/dist/etiquetas.umd.js.map +1 -1
- package/dist/{index-0gBKtbw4.js → index-CrFIiiLi.js} +705 -293
- package/dist/index-CrFIiiLi.js.map +1 -0
- package/dist/{index.es-CjFLf4zU.js → index.es-cX3jF13I.js} +4 -4
- package/dist/{index.es-CjFLf4zU.js.map → index.es-cX3jF13I.js.map} +1 -1
- package/dist/templates-DB-LZbhi.js +40 -0
- package/dist/templates-DB-LZbhi.js.map +1 -0
- package/dist/usePrinterStore-DjE7a9VN.js +114 -0
- package/dist/usePrinterStore-DjE7a9VN.js.map +1 -0
- package/package.json +1 -1
- package/dist/index-0gBKtbw4.js.map +0 -1
|
@@ -89,7 +89,6 @@ var __asyncGenerator = (__this, __arguments, generator) => {
|
|
|
89
89
|
var __forAwait = (obj, it2, method) => (it2 = obj[__knownSymbol("asyncIterator")]) ? it2.call(obj) : (obj = obj[__knownSymbol("iterator")](), it2 = {}, method = (key, fn) => (fn = obj[key]) && (it2[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it2);
|
|
90
90
|
var _Util_static, getExtremumOnCurve_fn, getExtremum_fn, _regex, _toolbar, _colorPicker, _editor, _buttons, _altText, _comment, _signatureDescriptionButton, _l10nRemove, _EditorToolbar_static, pointerDown_fn, _EditorToolbar_instances, focusIn_fn, focusOut_fn, addListenersToElement_fn, divider_get, _buttons2, _toolbar2, _uiManager, _FloatingToolbar_instances, render_fn, getLastPoint_fn, makeButton_fn, _id, _baseId, _id2, _cache, _ImageManager_instances, get_fn, _commands, _locked, _maxSize, _position, _KeyboardManager_instances, serialize_fn, _abortController, _activeEditor, _allEditableAnnotations, _allEditors, _allLayers, _altTextManager, _annotationStorage, _changedExistingAnnotations, _commandManager, _commentManager, _copyPasteAC, _currentDrawingSession, _currentPageIndex, _deletedAnnotationsElementIds, _draggingEditors, _editorTypes, _editorsToRescale, _enableHighlightFloatingButton, _enableUpdatedAddImage, _enableNewAltTextWhenAddingImage, _filterFactory, _focusMainContainerTimeoutId, _focusManagerAC, _highlightColors, _highlightWhenShiftUp, _floatingToolbar, _idManager, _isEnabled, _isPointerDown, _isWaiting, _keyboardManagerAC, _lastActiveElement, _mainHighlightColorPicker, _missingCanvases, _mlManager, _mode, _selectedEditors, _selectedTextNode, _signatureManager, _pageColors, _showAllStates, _pdfDocument, _previousStates, _translation, _translationTimeoutId, _container, _viewer, _viewerAlert, _updateModeCapability, _AnnotationEditorUIManager_instances, getAnchorElementForSelection_fn, getLayerForTextLayer_fn, displayFloatingToolbar_fn, selectionChange_fn, onSelectEnd_fn, addSelectionListener_fn, addFocusManager_fn, removeFocusManager_fn, addKeyboardManager_fn, removeKeyboardManager_fn, addCopyPasteListeners_fn, removeCopyPasteListeners_fn, addDragAndDropListeners_fn, dispatchUpdateStates_fn, dispatchUpdateUI_fn, enableAll_fn, disableAll_fn, addEditorToLayer_fn, lastSelectedEditor_get, isEmpty_fn, selectEditors_fn, _altText2, _altTextDecorative, _altTextButton, _altTextButtonLabel, _altTextTooltip, _altTextTooltipTimeout, _altTextWasFromKeyBoard, _badge, _editor2, _guessedText, _textWithDisclaimer, _useNewAltTextFlow, _l10nNewButton, _AltText_instances, label_get, setState_fn, _commentButton, _commentWasFromKeyBoard, _editor3, _initialText, _text, _date, _deleted, _container2, _isPinching, _isPinchingStopped, _isPinchingDisabled, _onPinchStart, _onPinching, _onPinchEnd, _pointerDownAC, _signal, _touchInfo, _touchManagerAC, _touchMoveAC, _TouchManager_instances, onTouchStart_fn, onTouchMove_fn, onTouchEnd_fn, _accessibilityData, _allResizerDivs, _altText3, _comment2, _disabled, _dragPointerId, _dragPointerType, _keepAspectRatio, _resizersDiv, _lastPointerCoords, _savedDimensions, _focusAC, _focusedResizerName, _hasBeenClicked, _initialRect, _isEditing, _isInEditMode, _isResizerEnabledForKeyboard, _moveInDOMTimeout, _prevDragX, _prevDragY, _telemetryTimeouts, _touchManager, _isDraggable, _zIndex, _AnnotationEditor_instances, translate_fn, _AnnotationEditor_static, rotatePoint_fn, getRotationMatrix_fn, createResizers_fn, resizerPointerdown_fn, resize_fn, addResizeToUndoStack_fn, resizerPointermove_fn, touchPinchStartCallback_fn, touchPinchCallback_fn, touchPinchEndCallback_fn, selectOnPointerEvent_fn, setUpDragSession_fn, addFocusListeners_fn, resizerKeydown_fn, resizerBlur_fn, resizerFocus_fn, setResizerTabIndex_fn, stopResizing_fn, _modified, _modifiedIds, _storage, _AnnotationStorage_instances, setModified_fn, _serializable, _systemFonts, _listeners, _deferred, _messageAC, _MessageHandler_instances, onMessage_fn, createStreamSink_fn, processStreamMessage_fn, deleteStreamController_fn, _enableHWA, _baseUrl, __cache, __defs, _docId, _document, __hcmCache, _id3, _DOMFilterFactory_instances, cache_get, hcmCache_get, defs_get, createTables_fn, createUrl_fn, addLuminosityConversion_fn, addGrayConversion_fn, createFilter_fn, appendFeFunc_fn, addTransferMapConversion_fn, addTransferMapAlphaConversion_fn, getRGB_fn, _simple, _incremental, _namedDependencies, _savesStack, _markedContentStack, _baseTransformStack, _clipBox, _pendingBBox, _pendingBBoxIdx, _pendingDependencies, _operations, _fontBBoxTrustworthy, _canvasWidth, _canvasHeight, _dependencyTracker, _opIdx, _nestingLevel, _outerDependencies, _savesLevel, _CanvasGraphics_instances, restoreInitialState_fn, drawFilter_fn, getScaledPath_fn, _port, _src, _map, _data, _isDisplay, _isPrint, _userSet, _visible, _cachedGetHash, _groups, _initialHash, _order, _OptionalContentConfig_instances, evaluateVisibilityExpression_fn, _objs, _PDFObjects_instances, ensureObj_fn, _g, _capability, _container3, _disableProcessItems, _fontInspectorEnabled, _lang, _layoutTextParams, _pageHeight, _pageWidth, _reader, _rootContainer, _rotation, _scale, _styleCache, _textContentItemsStr, _textContentSource, _textDivs, _textDivProperties, _transform, _ascentCache, _canvasContexts, _canvasCtxFonts, _minFontSize, _pendingTextLayers, _TextLayer_instances, processItems_fn, appendText_fn, layout_fn, _TextLayer_static, getCtx_fn, ensureCtxFont_fn, ensureMinFontSizeComputed_fn, getAscent_fn, _docId2, _capability2, _progressiveDoneListeners, _progressiveReadListeners, _progressListeners, _rangeListeners, _pendingCleanup, _PDFPageProxy_instances, tryCleanup_fn, _capability3, _messageHandler, _port2, _webWorker, _fakeWorkerId, _isWorkerDisabled, _workerPorts, _PDFWorker_instances, resolve_fn, initializeFromPort_fn, initialize_fn, setupFakeWorker_fn, _PDFWorker_static, mainThreadWorkerMessageHandler_get, _methodPromises, _pageCache, _pagePromises, _pageRefCache, _passwordCapability, _WorkerTransport_instances, cacheSimpleMethod_fn, _internalRenderTask, _rAF, _canvasInUse, _button, _buttonSwatch, _defaultColor, _dropdown, _dropdownWasFromKeyboard, _isMainColorPicker, _editor4, _eventBus, _openDropdownAC, _uiManager2, _l10nColor, _ColorPicker_instances, getDropdownRoot_fn, colorSelect_fn, keyDown_fn, openDropdown_fn, pointerDown_fn2, isDropdownVisible_get, _input, _editor5, _uiManager3, _l10nColor2, _updates, _hasBorder, _popupElement, _AnnotationElement_instances, changeLightness_fn, setRectEdited_fn, _LinkAnnotationElement_instances, setInternalLink_fn, bindAttachment_fn, bindSetOCGState_fn, _boundKeyDown, _boundHide, _boundShow, _boundToggle, _color, _container4, _contentsObj, _dateObj, _elements, _eventBus2, _parent, _parentRect, _pinned, _popup, _popupAbortController, _position2, _commentButton2, _commentButtonPosition, _commentButtonColor, _rect, _richText, _titleObj, _updates2, _wasVisible, _PopupElement_instances, addEventListeners_fn, setCommentButtonPosition_fn, renderCommentButton_fn, html_get, fontSize_get, fontColor_get, makePopupContent_fn, keyDown_fn2, setPosition_fn, toggle_fn, show_fn, hide_fn, _line, _square, _circle, _polyline, _polylinesGroupElement, _polylines, _InkAnnotationElement_instances, getTransform_fn, _trigger, _FileAttachmentAnnotationElement_instances, download_fn, _accessibilityManager, _annotationCanvasMap, _editableAnnotations, _structTreeLayer, _AnnotationLayer_instances, appendElement_fn, setAnnotationCanvasMap_fn, _color2, _content, _editorDivId, _editModeAC, _fontSize, _FreeTextEditor_instances, updateFontSize_fn, updateColor_fn, extractText_fn, setEditorDimensions_fn, _FreeTextEditor_static, getNodeContent_fn, setContent_fn, serializeContent_fn, deserializeContent_fn, hasElementChanged_fn, _box, _bottom, _innerMargin, _isLTR, _top, _last, _lastX, _lastY, _min, _min_dist, _scaleFactor, _thickness, _points, _MIN_DIST, _MIN_DIFF, _MIN, _FreeDrawOutliner_instances, getLastCoords_fn, toSVGPathTwoPoints_fn, toSVGPathStart_fn, toSVGPathEnd_fn, getOutlineTwoPoints_fn, getOutlineStart_fn, getOutlineEnd_fn, _box2, _bbox, _innerMargin2, _isLTR2, _points2, _scaleFactor2, _outline, _FreeDrawOutline_instances, computeMinMax_fn, _box3, _lastPoint, _verticalEdges, _intervals, _HighlightOutliner_instances, getOutlines_fn, binarySearch_fn, insert_fn, remove_fn, breakEdge_fn, _box4, _outlines, _anchorNode, _anchorOffset, _boxes, _clipPathId, _colorPicker2, _focusOutlines, _focusNode, _focusOffset, _highlightDiv, _highlightOutlines, _id4, _isFreeHighlight, _lastPoint2, _opacity, _outlineId, _text2, _thickness2, _methodOfCreation, _HighlightEditor_instances, createOutlines_fn, createFreeOutlines_fn, updateColor_fn2, updateThickness_fn, changeThickness_fn, cleanDrawLayer_fn, addToDrawLayer_fn, _HighlightEditor_static, rotateBbox_fn, keydown_fn, setCaret_fn, getRotation_fn, serializeBoxes_fn, serializeOutlines_fn, highlightMove_fn, endHighlight_fn, hasElementChanged_fn2, _svgProperties, _drawOutlines, _mustBeCommitted, _currentDraw, _currentDrawingAC, _currentDrawingOptions, _currentPointerId, _currentPointerType, _currentPointerIds, _currentMoveTimestamp, _DrawingEditor_instances, createDrawOutlines_fn, createDrawing_fn, cleanDrawLayer_fn2, addToDrawLayer_fn2, convertToParentSpace_fn, convertToDrawSpace_fn, updateBbox_fn, rotateBox_fn, _last2, _line2, _lines, _rotation2, _thickness3, _points3, _lastSVGPath, _lastIndex, _outlines2, _parentWidth, _parentHeight, _InkDrawOutliner_instances, normalizePoint_fn, _bbox2, _currentRotation, _innerMargin3, _lines2, _parentWidth2, _parentHeight2, _parentScale, _rotation3, _thickness4, _InkDrawOutline_instances, getMarginComponents_fn, getBBoxWithNoMargin_fn, computeBbox_fn, updateThickness_fn2, _InkEditor_instances, hasElementChanged_fn3, _PARAMETERS, _SignatureExtractor_static, neighborIndexToId_fn, _neighborIdToIndex, clockwiseNonZero_fn, counterClockwiseNonZero_fn, findContours_fn, douglasPeuckerHelper_fn, douglasPeucker_fn, bilateralFilter_fn, getHistogram_fn, toUint8_fn, guessThreshold_fn, getGrayPixels_fn, _isExtracted, _description, _signatureData, _signatureUUID, _bitmap, _bitmapId, _bitmapPromise, _bitmapUrl, _bitmapFile, _bitmapFileName, _canvas3, _missingCanvas, _resizeTimeoutId, _isSvg, _hasBeenAddedInUndoStack, _StampEditor_instances, getBitmapFetched_fn, getBitmapDone_fn, getBitmap_fn, createCanvas_fn, scaleBitmap_fn, drawBitmap_fn, serializeBitmap_fn, hasElementChanged_fn4, _accessibilityManager2, _allowClick, _annotationLayer, _clickAC, _editorFocusTimeoutId, _editors, _hadPointerDown, _isDisabling, _isEnabling, _drawingAC, _focusedElement, _textLayer, _textSelectionAC, _textLayerDblClickAC, _lastPointerDownTimestamp, _uiManager4, _editorTypes2, _AnnotationEditorLayer_instances, textLayerPointerDown_fn, currentEditorType_get, createNewEditor_fn, getCenterPoint_fn, cleanup_fn, _parent2, _mapping, _toUpdate, _id5, _DrawLayer_static, setBox_fn, _DrawLayer_instances, createSVG_fn, createClipPath_fn, updateProperties_fn;
|
|
91
91
|
import axios from "axios";
|
|
92
|
-
import require$$0 from "react";
|
|
93
92
|
const API_BASE_URL = "https://db33.dev.dinabox.net/api";
|
|
94
93
|
const apiClient = axios.create({
|
|
95
94
|
baseURL: API_BASE_URL,
|
|
@@ -600,8 +599,8 @@ CODE39$1.CODE39 = CODE39;
|
|
|
600
599
|
var CODE128$2 = {};
|
|
601
600
|
var CODE128_AUTO = {};
|
|
602
601
|
var CODE128$1 = {};
|
|
603
|
-
var constants$
|
|
604
|
-
Object.defineProperty(constants$
|
|
602
|
+
var constants$5 = {};
|
|
603
|
+
Object.defineProperty(constants$5, "__esModule", {
|
|
605
604
|
value: true
|
|
606
605
|
});
|
|
607
606
|
var _SET_BY_CODE;
|
|
@@ -613,29 +612,29 @@ function _defineProperty(obj, key, value) {
|
|
|
613
612
|
}
|
|
614
613
|
return obj;
|
|
615
614
|
}
|
|
616
|
-
var SET_A = constants$
|
|
617
|
-
var SET_B = constants$
|
|
618
|
-
var SET_C = constants$
|
|
619
|
-
constants$
|
|
620
|
-
var START_A = constants$
|
|
621
|
-
var START_B = constants$
|
|
622
|
-
var START_C = constants$
|
|
623
|
-
constants$
|
|
624
|
-
constants$
|
|
625
|
-
constants$
|
|
626
|
-
constants$
|
|
627
|
-
constants$
|
|
615
|
+
var SET_A = constants$5.SET_A = 0;
|
|
616
|
+
var SET_B = constants$5.SET_B = 1;
|
|
617
|
+
var SET_C = constants$5.SET_C = 2;
|
|
618
|
+
constants$5.SHIFT = 98;
|
|
619
|
+
var START_A = constants$5.START_A = 103;
|
|
620
|
+
var START_B = constants$5.START_B = 104;
|
|
621
|
+
var START_C = constants$5.START_C = 105;
|
|
622
|
+
constants$5.MODULO = 103;
|
|
623
|
+
constants$5.STOP = 106;
|
|
624
|
+
constants$5.FNC1 = 207;
|
|
625
|
+
constants$5.SET_BY_CODE = (_SET_BY_CODE = {}, _defineProperty(_SET_BY_CODE, START_A, SET_A), _defineProperty(_SET_BY_CODE, START_B, SET_B), _defineProperty(_SET_BY_CODE, START_C, SET_C), _SET_BY_CODE);
|
|
626
|
+
constants$5.SWAP = {
|
|
628
627
|
101: SET_A,
|
|
629
628
|
100: SET_B,
|
|
630
629
|
99: SET_C
|
|
631
630
|
};
|
|
632
|
-
constants$
|
|
633
|
-
constants$
|
|
634
|
-
constants$
|
|
635
|
-
constants$
|
|
636
|
-
constants$
|
|
637
|
-
constants$
|
|
638
|
-
constants$
|
|
631
|
+
constants$5.A_START_CHAR = String.fromCharCode(208);
|
|
632
|
+
constants$5.B_START_CHAR = String.fromCharCode(209);
|
|
633
|
+
constants$5.C_START_CHAR = String.fromCharCode(210);
|
|
634
|
+
constants$5.A_CHARS = "[\0-_È-Ï]";
|
|
635
|
+
constants$5.B_CHARS = "[ -È-Ï]";
|
|
636
|
+
constants$5.C_CHARS = "(Ï*[0-9]{2}Ï*)";
|
|
637
|
+
constants$5.BARS = [11011001100, 11001101100, 11001100110, 10010011e3, 10010001100, 10001001100, 10011001e3, 10011000100, 10001100100, 11001001e3, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011e3, 11011000110, 11000110110, 10100011e3, 10001011e3, 10001000110, 10110001e3, 10001101e3, 10001100010, 11010001e3, 11000101e3, 11000100010, 10110111e3, 10110001110, 10001101110, 10111011e3, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101e3, 11011100010, 11011101110, 11101011e3, 11101000110, 11100010110, 11101101e3, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 1010011e4, 10100001100, 1001011e4, 10010000110, 10000101100, 10000100110, 1011001e4, 10110000100, 1001101e4, 10011000010, 10000110100, 10000110010, 11000010010, 1100101e4, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111e3, 10100011110, 10001011110, 10111101e3, 10111100010, 11110101e3, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 1101001e4, 11010011100, 1100011101011];
|
|
639
638
|
Object.defineProperty(CODE128$1, "__esModule", {
|
|
640
639
|
value: true
|
|
641
640
|
});
|
|
@@ -657,7 +656,7 @@ var _createClass$m = /* @__PURE__ */ function() {
|
|
|
657
656
|
}();
|
|
658
657
|
var _Barcode2$b = Barcode$1;
|
|
659
658
|
var _Barcode3$b = _interopRequireDefault$z(_Barcode2$b);
|
|
660
|
-
var _constants$b = constants$
|
|
659
|
+
var _constants$b = constants$5;
|
|
661
660
|
function _interopRequireDefault$z(obj) {
|
|
662
661
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
663
662
|
}
|
|
@@ -785,7 +784,7 @@ var auto = {};
|
|
|
785
784
|
Object.defineProperty(auto, "__esModule", {
|
|
786
785
|
value: true
|
|
787
786
|
});
|
|
788
|
-
var _constants$a = constants$
|
|
787
|
+
var _constants$a = constants$5;
|
|
789
788
|
var matchSetALength = function matchSetALength2(string) {
|
|
790
789
|
return string.match(new RegExp("^" + _constants$a.A_CHARS + "*"))[0].length;
|
|
791
790
|
};
|
|
@@ -898,7 +897,7 @@ var _createClass$l = /* @__PURE__ */ function() {
|
|
|
898
897
|
}();
|
|
899
898
|
var _CODE2$5 = CODE128$1;
|
|
900
899
|
var _CODE3$4 = _interopRequireDefault$x(_CODE2$5);
|
|
901
|
-
var _constants$9 = constants$
|
|
900
|
+
var _constants$9 = constants$5;
|
|
902
901
|
function _interopRequireDefault$x(obj) {
|
|
903
902
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
904
903
|
}
|
|
@@ -957,7 +956,7 @@ var _createClass$k = /* @__PURE__ */ function() {
|
|
|
957
956
|
}();
|
|
958
957
|
var _CODE2$4 = CODE128$1;
|
|
959
958
|
var _CODE3$3 = _interopRequireDefault$w(_CODE2$4);
|
|
960
|
-
var _constants$8 = constants$
|
|
959
|
+
var _constants$8 = constants$5;
|
|
961
960
|
function _interopRequireDefault$w(obj) {
|
|
962
961
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
963
962
|
}
|
|
@@ -1016,7 +1015,7 @@ var _createClass$j = /* @__PURE__ */ function() {
|
|
|
1016
1015
|
}();
|
|
1017
1016
|
var _CODE2$3 = CODE128$1;
|
|
1018
1017
|
var _CODE3$2 = _interopRequireDefault$v(_CODE2$3);
|
|
1019
|
-
var _constants$7 = constants$
|
|
1018
|
+
var _constants$7 = constants$5;
|
|
1020
1019
|
function _interopRequireDefault$v(obj) {
|
|
1021
1020
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
1022
1021
|
}
|
|
@@ -1074,13 +1073,13 @@ CODE128$2.CODE128B = _CODE128B2.default;
|
|
|
1074
1073
|
CODE128$2.CODE128C = _CODE128C2.default;
|
|
1075
1074
|
var EAN_UPC = {};
|
|
1076
1075
|
var EAN13$1 = {};
|
|
1077
|
-
var constants$
|
|
1078
|
-
Object.defineProperty(constants$
|
|
1076
|
+
var constants$4 = {};
|
|
1077
|
+
Object.defineProperty(constants$4, "__esModule", {
|
|
1079
1078
|
value: true
|
|
1080
1079
|
});
|
|
1081
|
-
constants$
|
|
1082
|
-
constants$
|
|
1083
|
-
constants$
|
|
1080
|
+
constants$4.SIDE_BIN = "101";
|
|
1081
|
+
constants$4.MIDDLE_BIN = "01010";
|
|
1082
|
+
constants$4.BINARIES = {
|
|
1084
1083
|
"L": [
|
|
1085
1084
|
// The L (left) type of encoding
|
|
1086
1085
|
"0001101",
|
|
@@ -1147,15 +1146,15 @@ constants$3.BINARIES = {
|
|
|
1147
1146
|
"0010111"
|
|
1148
1147
|
]
|
|
1149
1148
|
};
|
|
1150
|
-
constants$
|
|
1151
|
-
constants$
|
|
1152
|
-
constants$
|
|
1149
|
+
constants$4.EAN2_STRUCTURE = ["LL", "LG", "GL", "GG"];
|
|
1150
|
+
constants$4.EAN5_STRUCTURE = ["GGLLL", "GLGLL", "GLLGL", "GLLLG", "LGGLL", "LLGGL", "LLLGG", "LGLGL", "LGLLG", "LLGLG"];
|
|
1151
|
+
constants$4.EAN13_STRUCTURE = ["LLLLLL", "LLGLGG", "LLGGLG", "LLGGGL", "LGLLGG", "LGGLLG", "LGGGLL", "LGLGLG", "LGLGGL", "LGGLGL"];
|
|
1153
1152
|
var EAN$1 = {};
|
|
1154
1153
|
var encoder = {};
|
|
1155
1154
|
Object.defineProperty(encoder, "__esModule", {
|
|
1156
1155
|
value: true
|
|
1157
1156
|
});
|
|
1158
|
-
var _constants$6 = constants$
|
|
1157
|
+
var _constants$6 = constants$4;
|
|
1159
1158
|
var encode$1 = function encode(data, structure, separator) {
|
|
1160
1159
|
var encoded = data.split("").map(function(val, idx) {
|
|
1161
1160
|
return _constants$6.BINARIES[structure[idx]];
|
|
@@ -1190,7 +1189,7 @@ var _createClass$i = /* @__PURE__ */ function() {
|
|
|
1190
1189
|
return Constructor;
|
|
1191
1190
|
};
|
|
1192
1191
|
}();
|
|
1193
|
-
var _constants$5 = constants$
|
|
1192
|
+
var _constants$5 = constants$4;
|
|
1194
1193
|
var _encoder$4 = encoder;
|
|
1195
1194
|
var _encoder2$4 = _interopRequireDefault$t(_encoder$4);
|
|
1196
1195
|
var _Barcode2$a = Barcode$1;
|
|
@@ -1309,7 +1308,7 @@ var _get$1 = function get(object2, property, receiver) {
|
|
|
1309
1308
|
return getter.call(receiver);
|
|
1310
1309
|
}
|
|
1311
1310
|
};
|
|
1312
|
-
var _constants$4 = constants$
|
|
1311
|
+
var _constants$4 = constants$4;
|
|
1313
1312
|
var _EAN2$2 = EAN$1;
|
|
1314
1313
|
var _EAN3$2 = _interopRequireDefault$s(_EAN2$2);
|
|
1315
1314
|
function _interopRequireDefault$s(obj) {
|
|
@@ -1539,7 +1538,7 @@ var _createClass$f = /* @__PURE__ */ function() {
|
|
|
1539
1538
|
return Constructor;
|
|
1540
1539
|
};
|
|
1541
1540
|
}();
|
|
1542
|
-
var _constants$3 = constants$
|
|
1541
|
+
var _constants$3 = constants$4;
|
|
1543
1542
|
var _encoder$3 = encoder;
|
|
1544
1543
|
var _encoder2$3 = _interopRequireDefault$q(_encoder$3);
|
|
1545
1544
|
var _Barcode2$9 = Barcode$1;
|
|
@@ -1617,7 +1616,7 @@ var _createClass$e = /* @__PURE__ */ function() {
|
|
|
1617
1616
|
return Constructor;
|
|
1618
1617
|
};
|
|
1619
1618
|
}();
|
|
1620
|
-
var _constants$2 = constants$
|
|
1619
|
+
var _constants$2 = constants$4;
|
|
1621
1620
|
var _encoder$2 = encoder;
|
|
1622
1621
|
var _encoder2$2 = _interopRequireDefault$p(_encoder$2);
|
|
1623
1622
|
var _Barcode2$8 = Barcode$1;
|
|
@@ -2009,13 +2008,13 @@ EAN_UPC.UPC = _UPC2.default;
|
|
|
2009
2008
|
EAN_UPC.UPCE = _UPCE2.default;
|
|
2010
2009
|
var ITF$2 = {};
|
|
2011
2010
|
var ITF$1 = {};
|
|
2012
|
-
var constants$
|
|
2013
|
-
Object.defineProperty(constants$
|
|
2011
|
+
var constants$3 = {};
|
|
2012
|
+
Object.defineProperty(constants$3, "__esModule", {
|
|
2014
2013
|
value: true
|
|
2015
2014
|
});
|
|
2016
|
-
constants$
|
|
2017
|
-
constants$
|
|
2018
|
-
constants$
|
|
2015
|
+
constants$3.START_BIN = "1010";
|
|
2016
|
+
constants$3.END_BIN = "11101";
|
|
2017
|
+
constants$3.BINARIES = ["00110", "10001", "01001", "11000", "00101", "10100", "01100", "00011", "10010", "01010"];
|
|
2019
2018
|
Object.defineProperty(ITF$1, "__esModule", {
|
|
2020
2019
|
value: true
|
|
2021
2020
|
});
|
|
@@ -2035,7 +2034,7 @@ var _createClass$b = /* @__PURE__ */ function() {
|
|
|
2035
2034
|
return Constructor;
|
|
2036
2035
|
};
|
|
2037
2036
|
}();
|
|
2038
|
-
var _constants$1 = constants$
|
|
2037
|
+
var _constants$1 = constants$3;
|
|
2039
2038
|
var _Barcode2$5 = Barcode$1;
|
|
2040
2039
|
var _Barcode3$5 = _interopRequireDefault$l(_Barcode2$5);
|
|
2041
2040
|
function _interopRequireDefault$l(obj) {
|
|
@@ -2650,11 +2649,11 @@ var codabar = function(_Barcode) {
|
|
|
2650
2649
|
codabar$1.codabar = codabar;
|
|
2651
2650
|
var CODE93$2 = {};
|
|
2652
2651
|
var CODE93$1 = {};
|
|
2653
|
-
var constants = {};
|
|
2654
|
-
Object.defineProperty(constants, "__esModule", {
|
|
2652
|
+
var constants$1 = {};
|
|
2653
|
+
Object.defineProperty(constants$1, "__esModule", {
|
|
2655
2654
|
value: true
|
|
2656
2655
|
});
|
|
2657
|
-
constants.SYMBOLS = [
|
|
2656
|
+
constants$1.SYMBOLS = [
|
|
2658
2657
|
"0",
|
|
2659
2658
|
"1",
|
|
2660
2659
|
"2",
|
|
@@ -2706,8 +2705,8 @@ constants.SYMBOLS = [
|
|
|
2706
2705
|
// Start/Stop
|
|
2707
2706
|
"ÿ"
|
|
2708
2707
|
];
|
|
2709
|
-
constants.BINARIES = ["100010100", "101001000", "101000100", "101000010", "100101000", "100100100", "100100010", "101010000", "100010010", "100001010", "110101000", "110100100", "110100010", "110010100", "110010010", "110001010", "101101000", "101100100", "101100010", "100110100", "100011010", "101011000", "101001100", "101000110", "100101100", "100010110", "110110100", "110110010", "110101100", "110100110", "110010110", "110011010", "101101100", "101100110", "100110110", "100111010", "100101110", "111010100", "111010010", "111001010", "101101110", "101110110", "110101110", "100100110", "111011010", "111010110", "100110010", "101011110"];
|
|
2710
|
-
constants.MULTI_SYMBOLS = {
|
|
2708
|
+
constants$1.BINARIES = ["100010100", "101001000", "101000100", "101000010", "100101000", "100100100", "100100010", "101010000", "100010010", "100001010", "110101000", "110100100", "110100010", "110010100", "110010010", "110001010", "101101000", "101100100", "101100010", "100110100", "100011010", "101011000", "101001100", "101000110", "100101100", "100010110", "110110100", "110110010", "110101100", "110100110", "110010110", "110011010", "101101100", "101100110", "100110110", "100111010", "100101110", "111010100", "111010010", "111001010", "101101110", "101110110", "110101110", "100100110", "111011010", "111010110", "100110010", "101011110"];
|
|
2709
|
+
constants$1.MULTI_SYMBOLS = {
|
|
2711
2710
|
"\0": ["(%)", "U"],
|
|
2712
2711
|
"": ["($)", "A"],
|
|
2713
2712
|
"": ["($)", "B"],
|
|
@@ -2813,7 +2812,7 @@ var _createClass$6 = /* @__PURE__ */ function() {
|
|
|
2813
2812
|
return Constructor;
|
|
2814
2813
|
};
|
|
2815
2814
|
}();
|
|
2816
|
-
var _constants = constants;
|
|
2815
|
+
var _constants = constants$1;
|
|
2817
2816
|
var _Barcode2$1 = Barcode$1;
|
|
2818
2817
|
var _Barcode3$1 = _interopRequireDefault$a(_Barcode2$1);
|
|
2819
2818
|
function _interopRequireDefault$a(obj) {
|
|
@@ -11530,7 +11529,7 @@ function(t2) {
|
|
|
11530
11529
|
*/
|
|
11531
11530
|
function(t2) {
|
|
11532
11531
|
function e2() {
|
|
11533
|
-
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-
|
|
11532
|
+
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-cX3jF13I.js")).catch(function(t3) {
|
|
11534
11533
|
return Promise.reject(new Error("Could not load canvg: " + t3));
|
|
11535
11534
|
}).then(function(t3) {
|
|
11536
11535
|
return t3.default ? t3.default : t3;
|
|
@@ -12992,7 +12991,7 @@ lodash.exports;
|
|
|
12992
12991
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
12993
12992
|
var coreJsData = context["__core-js_shared__"];
|
|
12994
12993
|
var funcToString = funcProto.toString;
|
|
12995
|
-
var
|
|
12994
|
+
var hasOwnProperty2 = objectProto.hasOwnProperty;
|
|
12996
12995
|
var idCounter = 0;
|
|
12997
12996
|
var maskSrcKey = function() {
|
|
12998
12997
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
@@ -13002,7 +13001,7 @@ lodash.exports;
|
|
|
13002
13001
|
var objectCtorString = funcToString.call(Object2);
|
|
13003
13002
|
var oldDash = root._;
|
|
13004
13003
|
var reIsNative = RegExp2(
|
|
13005
|
-
"^" + funcToString.call(
|
|
13004
|
+
"^" + funcToString.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
13006
13005
|
);
|
|
13007
13006
|
var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
13008
13007
|
var defineProperty = function() {
|
|
@@ -13025,7 +13024,7 @@ lodash.exports;
|
|
|
13025
13024
|
if (value instanceof LodashWrapper) {
|
|
13026
13025
|
return value;
|
|
13027
13026
|
}
|
|
13028
|
-
if (
|
|
13027
|
+
if (hasOwnProperty2.call(value, "__wrapped__")) {
|
|
13029
13028
|
return wrapperClone(value);
|
|
13030
13029
|
}
|
|
13031
13030
|
}
|
|
@@ -13186,11 +13185,11 @@ lodash.exports;
|
|
|
13186
13185
|
var result2 = data[key];
|
|
13187
13186
|
return result2 === HASH_UNDEFINED ? undefined$1 : result2;
|
|
13188
13187
|
}
|
|
13189
|
-
return
|
|
13188
|
+
return hasOwnProperty2.call(data, key) ? data[key] : undefined$1;
|
|
13190
13189
|
}
|
|
13191
13190
|
function hashHas(key) {
|
|
13192
13191
|
var data = this.__data__;
|
|
13193
|
-
return nativeCreate ? data[key] !== undefined$1 :
|
|
13192
|
+
return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty2.call(data, key);
|
|
13194
13193
|
}
|
|
13195
13194
|
function hashSet(key, value) {
|
|
13196
13195
|
var data = this.__data__;
|
|
@@ -13347,7 +13346,7 @@ lodash.exports;
|
|
|
13347
13346
|
function arrayLikeKeys(value, inherited) {
|
|
13348
13347
|
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length;
|
|
13349
13348
|
for (var key in value) {
|
|
13350
|
-
if ((inherited ||
|
|
13349
|
+
if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
13351
13350
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
13352
13351
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
13353
13352
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -13374,7 +13373,7 @@ lodash.exports;
|
|
|
13374
13373
|
}
|
|
13375
13374
|
function assignValue(object2, key, value) {
|
|
13376
13375
|
var objValue = object2[key];
|
|
13377
|
-
if (!(
|
|
13376
|
+
if (!(hasOwnProperty2.call(object2, key) && eq(objValue, value)) || value === undefined$1 && !(key in object2)) {
|
|
13378
13377
|
baseAssignValue(object2, key, value);
|
|
13379
13378
|
}
|
|
13380
13379
|
}
|
|
@@ -13649,7 +13648,7 @@ lodash.exports;
|
|
|
13649
13648
|
return value > other;
|
|
13650
13649
|
}
|
|
13651
13650
|
function baseHas(object2, key) {
|
|
13652
|
-
return object2 != null &&
|
|
13651
|
+
return object2 != null && hasOwnProperty2.call(object2, key);
|
|
13653
13652
|
}
|
|
13654
13653
|
function baseHasIn(object2, key) {
|
|
13655
13654
|
return object2 != null && key in Object2(object2);
|
|
@@ -13736,7 +13735,7 @@ lodash.exports;
|
|
|
13736
13735
|
return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
13737
13736
|
}
|
|
13738
13737
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
13739
|
-
var objIsWrapped = objIsObj &&
|
|
13738
|
+
var objIsWrapped = objIsObj && hasOwnProperty2.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty2.call(other, "__wrapped__");
|
|
13740
13739
|
if (objIsWrapped || othIsWrapped) {
|
|
13741
13740
|
var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
13742
13741
|
stack || (stack = new Stack());
|
|
@@ -13817,7 +13816,7 @@ lodash.exports;
|
|
|
13817
13816
|
}
|
|
13818
13817
|
var result2 = [];
|
|
13819
13818
|
for (var key in Object2(object2)) {
|
|
13820
|
-
if (
|
|
13819
|
+
if (hasOwnProperty2.call(object2, key) && key != "constructor") {
|
|
13821
13820
|
result2.push(key);
|
|
13822
13821
|
}
|
|
13823
13822
|
}
|
|
@@ -13829,7 +13828,7 @@ lodash.exports;
|
|
|
13829
13828
|
}
|
|
13830
13829
|
var isProto = isPrototype(object2), result2 = [];
|
|
13831
13830
|
for (var key in object2) {
|
|
13832
|
-
if (!(key == "constructor" && (isProto || !
|
|
13831
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object2, key)))) {
|
|
13833
13832
|
result2.push(key);
|
|
13834
13833
|
}
|
|
13835
13834
|
}
|
|
@@ -14772,7 +14771,7 @@ lodash.exports;
|
|
|
14772
14771
|
return func(number);
|
|
14773
14772
|
};
|
|
14774
14773
|
}
|
|
14775
|
-
var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ?
|
|
14774
|
+
var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop2 : function(values3) {
|
|
14776
14775
|
return new Set2(values3);
|
|
14777
14776
|
};
|
|
14778
14777
|
function createToPairs(keysFunc) {
|
|
@@ -14842,7 +14841,7 @@ lodash.exports;
|
|
|
14842
14841
|
return setWrapToString(setter(result2, newData), func, bitmask);
|
|
14843
14842
|
}
|
|
14844
14843
|
function customDefaultsAssignIn(objValue, srcValue, key, object2) {
|
|
14845
|
-
if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !
|
|
14844
|
+
if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !hasOwnProperty2.call(object2, key)) {
|
|
14846
14845
|
return srcValue;
|
|
14847
14846
|
}
|
|
14848
14847
|
return objValue;
|
|
@@ -14955,7 +14954,7 @@ lodash.exports;
|
|
|
14955
14954
|
var index = objLength;
|
|
14956
14955
|
while (index--) {
|
|
14957
14956
|
var key = objProps[index];
|
|
14958
|
-
if (!(isPartial ? key in other :
|
|
14957
|
+
if (!(isPartial ? key in other : hasOwnProperty2.call(other, key))) {
|
|
14959
14958
|
return false;
|
|
14960
14959
|
}
|
|
14961
14960
|
}
|
|
@@ -14999,11 +14998,11 @@ lodash.exports;
|
|
|
14999
14998
|
function getAllKeysIn(object2) {
|
|
15000
14999
|
return baseGetAllKeys(object2, keysIn, getSymbolsIn);
|
|
15001
15000
|
}
|
|
15002
|
-
var getData = !metaMap ?
|
|
15001
|
+
var getData = !metaMap ? noop2 : function(func) {
|
|
15003
15002
|
return metaMap.get(func);
|
|
15004
15003
|
};
|
|
15005
15004
|
function getFuncName(func) {
|
|
15006
|
-
var result2 = func.name + "", array = realNames[result2], length =
|
|
15005
|
+
var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty2.call(realNames, result2) ? array.length : 0;
|
|
15007
15006
|
while (length--) {
|
|
15008
15007
|
var data = array[length], otherFunc = data.func;
|
|
15009
15008
|
if (otherFunc == null || otherFunc == func) {
|
|
@@ -15013,7 +15012,7 @@ lodash.exports;
|
|
|
15013
15012
|
return result2;
|
|
15014
15013
|
}
|
|
15015
15014
|
function getHolder(func) {
|
|
15016
|
-
var object2 =
|
|
15015
|
+
var object2 = hasOwnProperty2.call(lodash2, "placeholder") ? lodash2 : func;
|
|
15017
15016
|
return object2.placeholder;
|
|
15018
15017
|
}
|
|
15019
15018
|
function getIteratee() {
|
|
@@ -15038,7 +15037,7 @@ lodash.exports;
|
|
|
15038
15037
|
return baseIsNative(value) ? value : undefined$1;
|
|
15039
15038
|
}
|
|
15040
15039
|
function getRawTag(value) {
|
|
15041
|
-
var isOwn =
|
|
15040
|
+
var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag];
|
|
15042
15041
|
try {
|
|
15043
15042
|
value[symToStringTag] = undefined$1;
|
|
15044
15043
|
var unmasked = true;
|
|
@@ -15135,7 +15134,7 @@ lodash.exports;
|
|
|
15135
15134
|
}
|
|
15136
15135
|
function initCloneArray(array) {
|
|
15137
15136
|
var length = array.length, result2 = new array.constructor(length);
|
|
15138
|
-
if (length && typeof array[0] == "string" &&
|
|
15137
|
+
if (length && typeof array[0] == "string" && hasOwnProperty2.call(array, "index")) {
|
|
15139
15138
|
result2.index = array.index;
|
|
15140
15139
|
result2.input = array.input;
|
|
15141
15140
|
}
|
|
@@ -15906,7 +15905,7 @@ lodash.exports;
|
|
|
15906
15905
|
return baseWrapperValue(this.__wrapped__, this.__actions__);
|
|
15907
15906
|
}
|
|
15908
15907
|
var countBy = createAggregator(function(result2, value, key) {
|
|
15909
|
-
if (
|
|
15908
|
+
if (hasOwnProperty2.call(result2, key)) {
|
|
15910
15909
|
++result2[key];
|
|
15911
15910
|
} else {
|
|
15912
15911
|
baseAssignValue(result2, key, 1);
|
|
@@ -15944,7 +15943,7 @@ lodash.exports;
|
|
|
15944
15943
|
return func(collection, getIteratee(iteratee2, 3));
|
|
15945
15944
|
}
|
|
15946
15945
|
var groupBy2 = createAggregator(function(result2, value, key) {
|
|
15947
|
-
if (
|
|
15946
|
+
if (hasOwnProperty2.call(result2, key)) {
|
|
15948
15947
|
result2[key].push(value);
|
|
15949
15948
|
} else {
|
|
15950
15949
|
baseAssignValue(result2, key, [value]);
|
|
@@ -16341,7 +16340,7 @@ lodash.exports;
|
|
|
16341
16340
|
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
16342
16341
|
return arguments;
|
|
16343
16342
|
}()) ? baseIsArguments : function(value) {
|
|
16344
|
-
return isObjectLike(value) &&
|
|
16343
|
+
return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
16345
16344
|
};
|
|
16346
16345
|
var isArray = Array2.isArray;
|
|
16347
16346
|
var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
|
|
@@ -16374,7 +16373,7 @@ lodash.exports;
|
|
|
16374
16373
|
return !baseKeys(value).length;
|
|
16375
16374
|
}
|
|
16376
16375
|
for (var key in value) {
|
|
16377
|
-
if (
|
|
16376
|
+
if (hasOwnProperty2.call(value, key)) {
|
|
16378
16377
|
return false;
|
|
16379
16378
|
}
|
|
16380
16379
|
}
|
|
@@ -16452,7 +16451,7 @@ lodash.exports;
|
|
|
16452
16451
|
if (proto === null) {
|
|
16453
16452
|
return true;
|
|
16454
16453
|
}
|
|
16455
|
-
var Ctor =
|
|
16454
|
+
var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
|
|
16456
16455
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
16457
16456
|
}
|
|
16458
16457
|
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
@@ -16544,7 +16543,7 @@ lodash.exports;
|
|
|
16544
16543
|
return;
|
|
16545
16544
|
}
|
|
16546
16545
|
for (var key in source) {
|
|
16547
|
-
if (
|
|
16546
|
+
if (hasOwnProperty2.call(source, key)) {
|
|
16548
16547
|
assignValue(object2, key, source[key]);
|
|
16549
16548
|
}
|
|
16550
16549
|
}
|
|
@@ -16579,7 +16578,7 @@ lodash.exports;
|
|
|
16579
16578
|
while (++propsIndex < propsLength) {
|
|
16580
16579
|
var key = props[propsIndex];
|
|
16581
16580
|
var value = object2[key];
|
|
16582
|
-
if (value === undefined$1 || eq(value, objectProto[key]) && !
|
|
16581
|
+
if (value === undefined$1 || eq(value, objectProto[key]) && !hasOwnProperty2.call(object2, key)) {
|
|
16583
16582
|
object2[key] = source[key];
|
|
16584
16583
|
}
|
|
16585
16584
|
}
|
|
@@ -16634,7 +16633,7 @@ lodash.exports;
|
|
|
16634
16633
|
if (value != null && typeof value.toString != "function") {
|
|
16635
16634
|
value = nativeObjectToString.call(value);
|
|
16636
16635
|
}
|
|
16637
|
-
if (
|
|
16636
|
+
if (hasOwnProperty2.call(result2, value)) {
|
|
16638
16637
|
result2[value].push(key);
|
|
16639
16638
|
} else {
|
|
16640
16639
|
result2[value] = [key];
|
|
@@ -16949,7 +16948,7 @@ lodash.exports;
|
|
|
16949
16948
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
16950
16949
|
"g"
|
|
16951
16950
|
);
|
|
16952
|
-
var sourceURL = "//# sourceURL=" + (
|
|
16951
|
+
var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
16953
16952
|
string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
16954
16953
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
16955
16954
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
|
@@ -16968,7 +16967,7 @@ lodash.exports;
|
|
|
16968
16967
|
return match;
|
|
16969
16968
|
});
|
|
16970
16969
|
source += "';\n";
|
|
16971
|
-
var variable =
|
|
16970
|
+
var variable = hasOwnProperty2.call(options, "variable") && options.variable;
|
|
16972
16971
|
if (!variable) {
|
|
16973
16972
|
source = "with (obj) {\n" + source + "\n}\n";
|
|
16974
16973
|
} else if (reForbiddenIdentifierChars.test(variable)) {
|
|
@@ -17187,7 +17186,7 @@ lodash.exports;
|
|
|
17187
17186
|
}
|
|
17188
17187
|
return this;
|
|
17189
17188
|
}
|
|
17190
|
-
function
|
|
17189
|
+
function noop2() {
|
|
17191
17190
|
}
|
|
17192
17191
|
function nthArg(n2) {
|
|
17193
17192
|
n2 = toInteger(n2);
|
|
@@ -17542,7 +17541,7 @@ lodash.exports;
|
|
|
17542
17541
|
lodash2.multiply = multiply;
|
|
17543
17542
|
lodash2.nth = nth;
|
|
17544
17543
|
lodash2.noConflict = noConflict;
|
|
17545
|
-
lodash2.noop =
|
|
17544
|
+
lodash2.noop = noop2;
|
|
17546
17545
|
lodash2.now = now;
|
|
17547
17546
|
lodash2.pad = pad;
|
|
17548
17547
|
lodash2.padEnd = padEnd;
|
|
@@ -17595,7 +17594,7 @@ lodash.exports;
|
|
|
17595
17594
|
mixin(lodash2, function() {
|
|
17596
17595
|
var source = {};
|
|
17597
17596
|
baseForOwn(lodash2, function(func, methodName) {
|
|
17598
|
-
if (!
|
|
17597
|
+
if (!hasOwnProperty2.call(lodash2.prototype, methodName)) {
|
|
17599
17598
|
source[methodName] = func;
|
|
17600
17599
|
}
|
|
17601
17600
|
});
|
|
@@ -17735,7 +17734,7 @@ lodash.exports;
|
|
|
17735
17734
|
var lodashFunc = lodash2[methodName];
|
|
17736
17735
|
if (lodashFunc) {
|
|
17737
17736
|
var key = lodashFunc.name + "";
|
|
17738
|
-
if (!
|
|
17737
|
+
if (!hasOwnProperty2.call(realNames, key)) {
|
|
17739
17738
|
realNames[key] = [];
|
|
17740
17739
|
}
|
|
17741
17740
|
realNames[key].push({ "name": methodName, "func": lodashFunc });
|
|
@@ -26537,7 +26536,7 @@ function validateInput(global2, document2, current) {
|
|
|
26537
26536
|
}
|
|
26538
26537
|
}
|
|
26539
26538
|
}
|
|
26540
|
-
function assign$
|
|
26539
|
+
function assign$2(target, s2, s1, s22, s3) {
|
|
26541
26540
|
if (target == null) {
|
|
26542
26541
|
throw new TypeError("Cannot convert undefined or null to object");
|
|
26543
26542
|
}
|
|
@@ -26559,7 +26558,7 @@ function parseInput(d2, current) {
|
|
|
26559
26558
|
var document2 = doc.getDocumentOptions();
|
|
26560
26559
|
var global2 = doc.getGlobalOptions();
|
|
26561
26560
|
validateInput(global2, document2, current);
|
|
26562
|
-
var options = assign$
|
|
26561
|
+
var options = assign$2({}, global2, document2, current);
|
|
26563
26562
|
var win;
|
|
26564
26563
|
if (typeof window !== "undefined") {
|
|
26565
26564
|
win = window;
|
|
@@ -26584,13 +26583,13 @@ function parseStyles(gInput, dInput, cInput) {
|
|
|
26584
26583
|
var global_1 = gInput[prop2];
|
|
26585
26584
|
var document_1 = dInput[prop2];
|
|
26586
26585
|
var current = cInput[prop2];
|
|
26587
|
-
styleOptions.columnStyles = assign$
|
|
26586
|
+
styleOptions.columnStyles = assign$2({}, global_1, document_1, current);
|
|
26588
26587
|
} else {
|
|
26589
26588
|
var allOptions = [gInput, dInput, cInput];
|
|
26590
26589
|
var styles = allOptions.map(function(opts) {
|
|
26591
26590
|
return opts[prop2] || {};
|
|
26592
26591
|
});
|
|
26593
|
-
styleOptions[prop2] = assign$
|
|
26592
|
+
styleOptions[prop2] = assign$2({}, styles[0], styles[1], styles[2]);
|
|
26594
26593
|
}
|
|
26595
26594
|
};
|
|
26596
26595
|
for (var _i = 0, _a2 = Object.keys(styleOptions); _i < _a2.length; _i++) {
|
|
@@ -27352,13 +27351,13 @@ function cellStyles(sectionName, column, rowIndex, themeName, styles, scaleFacto
|
|
|
27352
27351
|
} else if (sectionName === "foot") {
|
|
27353
27352
|
sectionStyles = styles.footStyles;
|
|
27354
27353
|
}
|
|
27355
|
-
var otherStyles = assign$
|
|
27354
|
+
var otherStyles = assign$2({}, theme.table, theme[sectionName], styles.styles, sectionStyles);
|
|
27356
27355
|
var columnStyles = styles.columnStyles[column.dataKey] || styles.columnStyles[column.index] || {};
|
|
27357
27356
|
var colStyles = sectionName === "body" ? columnStyles : {};
|
|
27358
|
-
var rowStyles = sectionName === "body" && rowIndex % 2 === 0 ? assign$
|
|
27357
|
+
var rowStyles = sectionName === "body" && rowIndex % 2 === 0 ? assign$2({}, theme.alternateRow, styles.alternateRowStyles) : {};
|
|
27359
27358
|
var defaultStyle = defaultStyles(scaleFactor);
|
|
27360
|
-
var themeStyles = assign$
|
|
27361
|
-
return assign$
|
|
27359
|
+
var themeStyles = assign$2({}, defaultStyle, otherStyles, rowStyles, colStyles);
|
|
27360
|
+
return assign$2(themeStyles, cellInputStyles);
|
|
27362
27361
|
}
|
|
27363
27362
|
function getColumnsCanFitInPage(doc, table, config) {
|
|
27364
27363
|
var _a2;
|
|
@@ -27437,7 +27436,7 @@ function drawTable(jsPDFDoc, table) {
|
|
|
27437
27436
|
cursor.y = margin.top;
|
|
27438
27437
|
}
|
|
27439
27438
|
table.callWillDrawPageHooks(doc, cursor);
|
|
27440
|
-
var startPos = assign$
|
|
27439
|
+
var startPos = assign$2({}, cursor);
|
|
27441
27440
|
table.startPageNumber = doc.pageNumber();
|
|
27442
27441
|
if (settings.horizontalPageBreak) {
|
|
27443
27442
|
printTableWithHorizontalPageBreak(doc, table, startPos, cursor);
|
|
@@ -27570,7 +27569,7 @@ function modifyRowToFit(row, remainingPageSpace, table, doc) {
|
|
|
27570
27569
|
cell.text = [cell.text];
|
|
27571
27570
|
}
|
|
27572
27571
|
var remainderCell = new Cell(cell.raw, cell.styles, cell.section);
|
|
27573
|
-
remainderCell = assign$
|
|
27572
|
+
remainderCell = assign$2(remainderCell, cell);
|
|
27574
27573
|
remainderCell.text = [];
|
|
27575
27574
|
var remainingLineCount = getRemainingLineCount(cell, remainingPageSpace, doc);
|
|
27576
27575
|
if (cell.text.length > remainingLineCount) {
|
|
@@ -28407,44 +28406,41 @@ const makeBarCode = (mainObject) => {
|
|
|
28407
28406
|
const variableManager = new VariableManager();
|
|
28408
28407
|
let bar = v2.originBarcode === "PERSONALIZADO" ? variableManager.processTemplate(v2.customBarcode, extendedData.variableProps) || "null" : variableManager.processTemplate(v2.originBarcode, extendedData.variableProps);
|
|
28409
28408
|
if (!bar.includes("null") && bar.length > 0) {
|
|
28410
|
-
const aspectRatio = vWidth / vHeight;
|
|
28411
28409
|
let canvas2 = document$2.createElement("canvas");
|
|
28412
|
-
|
|
28413
|
-
|
|
28414
|
-
|
|
28415
|
-
|
|
28416
|
-
|
|
28417
|
-
|
|
28418
|
-
|
|
28419
|
-
|
|
28420
|
-
|
|
28421
|
-
|
|
28422
|
-
|
|
28423
|
-
canvasWidth = Math.round(1e3 * aspectRatio);
|
|
28424
|
-
}
|
|
28410
|
+
const scaleFactor = 10;
|
|
28411
|
+
let canvasWidth = vWidth * scaleFactor;
|
|
28412
|
+
let canvasHeight = vHeight * scaleFactor;
|
|
28413
|
+
const maxDimension = 5e3;
|
|
28414
|
+
if (canvasWidth > maxDimension || canvasHeight > maxDimension) {
|
|
28415
|
+
const reductionFactor = Math.min(maxDimension / canvasWidth, maxDimension / canvasHeight);
|
|
28416
|
+
canvasWidth = Math.round(canvasWidth * reductionFactor);
|
|
28417
|
+
canvasHeight = Math.round(canvasHeight * reductionFactor);
|
|
28418
|
+
}
|
|
28419
|
+
canvasWidth = Math.max(canvasWidth, 300);
|
|
28420
|
+
canvasHeight = Math.max(canvasHeight, 100);
|
|
28425
28421
|
canvas2.width = canvasWidth;
|
|
28426
28422
|
canvas2.height = canvasHeight;
|
|
28427
28423
|
let px = width * y2 + (verticalSpace * y2 + marginLeft2) + vLeft;
|
|
28428
28424
|
let py = height * x2 + (horizontalSpace * x2 + marginTop2) + vTop;
|
|
28429
28425
|
try {
|
|
28430
|
-
const barWidth = Math.max(1, Math.min(
|
|
28426
|
+
const barWidth = Math.max(1, Math.min(5, canvasWidth / 150));
|
|
28431
28427
|
JsBarcode$1(canvas2, bar, {
|
|
28432
28428
|
format: v2.barcodeFormat || "CODE128",
|
|
28433
28429
|
width: barWidth,
|
|
28434
28430
|
// Largura adaptativa das barras
|
|
28435
|
-
height: canvasHeight
|
|
28436
|
-
//
|
|
28431
|
+
height: canvasHeight,
|
|
28432
|
+
// Usar 90% da altura do canvas para o código
|
|
28437
28433
|
displayValue: false,
|
|
28438
28434
|
// Não mostrar valor do código (texto escondido)
|
|
28439
|
-
margin:
|
|
28440
|
-
//
|
|
28435
|
+
margin: 0,
|
|
28436
|
+
// Sem margem para maximizar o uso do espaço
|
|
28441
28437
|
background: "#ffffff"
|
|
28442
28438
|
});
|
|
28443
28439
|
} catch (error) {
|
|
28444
28440
|
console.error("Erro ao gerar código de barras:", error);
|
|
28445
28441
|
canvas2 = document$2.createElement("canvas");
|
|
28446
|
-
canvas2.width =
|
|
28447
|
-
canvas2.height =
|
|
28442
|
+
canvas2.width = Math.max(300, vWidth * 2);
|
|
28443
|
+
canvas2.height = Math.max(100, vHeight * 2);
|
|
28448
28444
|
}
|
|
28449
28445
|
if (v2.angle === 90) {
|
|
28450
28446
|
px = width * y2 + (verticalSpace * y2 + marginLeft2) + vLeft - vHeight;
|
|
@@ -29252,11 +29248,11 @@ class LabelWorker {
|
|
|
29252
29248
|
return this.isGenerating;
|
|
29253
29249
|
}
|
|
29254
29250
|
}
|
|
29255
|
-
const createLabelWorker = () => {
|
|
29251
|
+
const createLabelWorker$1 = () => {
|
|
29256
29252
|
return new LabelWorker();
|
|
29257
29253
|
};
|
|
29258
29254
|
const generateLabelsFromHookData = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (labelData, additionalParams = {}, progressCallback = null) {
|
|
29259
|
-
const worker = createLabelWorker();
|
|
29255
|
+
const worker = createLabelWorker$1();
|
|
29260
29256
|
console.log("labelData =>>>>>", labelData);
|
|
29261
29257
|
const params = __spreadValues({
|
|
29262
29258
|
dataSource: labelData.data || [],
|
|
@@ -29266,6 +29262,12 @@ const generateLabelsFromHookData = (_0, ..._1) => __async(void 0, [_0, ..._1], f
|
|
|
29266
29262
|
}, additionalParams);
|
|
29267
29263
|
return yield worker.generateLabels(params, progressCallback);
|
|
29268
29264
|
});
|
|
29265
|
+
const labelWorker = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29266
|
+
__proto__: null,
|
|
29267
|
+
LabelWorker,
|
|
29268
|
+
createLabelWorker: createLabelWorker$1,
|
|
29269
|
+
generateLabelsFromHookData
|
|
29270
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
29269
29271
|
const labelTypeNames = {
|
|
29270
29272
|
parts: "Peças",
|
|
29271
29273
|
woodwork: "Tamponamentos",
|
|
@@ -29351,6 +29353,11 @@ const templateVariables = {
|
|
|
29351
29353
|
]
|
|
29352
29354
|
};
|
|
29353
29355
|
Object.values(templateVariables).flat();
|
|
29356
|
+
const constants = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29357
|
+
__proto__: null,
|
|
29358
|
+
labelTypeNames,
|
|
29359
|
+
templateVariables
|
|
29360
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
29354
29361
|
const useLabelData = (config = {}) => {
|
|
29355
29362
|
const defaultConfig = {
|
|
29356
29363
|
type: "parts",
|
|
@@ -29362,7 +29369,7 @@ const useLabelData = (config = {}) => {
|
|
|
29362
29369
|
};
|
|
29363
29370
|
const finalConfig = __spreadValues(__spreadValues({}, defaultConfig), config);
|
|
29364
29371
|
const generateLabels = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (data, labels, userPrefs = {}, additionalParams = {}) {
|
|
29365
|
-
const worker = createLabelWorker();
|
|
29372
|
+
const worker = createLabelWorker$1();
|
|
29366
29373
|
const params = __spreadValues({
|
|
29367
29374
|
dataSource: data || [],
|
|
29368
29375
|
labels: labels || [],
|
|
@@ -29451,7 +29458,446 @@ const createStoreImpl = (createState) => {
|
|
|
29451
29458
|
return api;
|
|
29452
29459
|
};
|
|
29453
29460
|
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
29454
|
-
|
|
29461
|
+
var react = { exports: {} };
|
|
29462
|
+
var react_production = {};
|
|
29463
|
+
/**
|
|
29464
|
+
* @license React
|
|
29465
|
+
* react.production.js
|
|
29466
|
+
*
|
|
29467
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
29468
|
+
*
|
|
29469
|
+
* This source code is licensed under the MIT license found in the
|
|
29470
|
+
* LICENSE file in the root directory of this source tree.
|
|
29471
|
+
*/
|
|
29472
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
29473
|
+
function getIteratorFn(maybeIterable) {
|
|
29474
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
29475
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
29476
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
29477
|
+
}
|
|
29478
|
+
var ReactNoopUpdateQueue = {
|
|
29479
|
+
isMounted: function() {
|
|
29480
|
+
return false;
|
|
29481
|
+
},
|
|
29482
|
+
enqueueForceUpdate: function() {
|
|
29483
|
+
},
|
|
29484
|
+
enqueueReplaceState: function() {
|
|
29485
|
+
},
|
|
29486
|
+
enqueueSetState: function() {
|
|
29487
|
+
}
|
|
29488
|
+
}, assign$1 = Object.assign, emptyObject = {};
|
|
29489
|
+
function Component(props, context, updater) {
|
|
29490
|
+
this.props = props;
|
|
29491
|
+
this.context = context;
|
|
29492
|
+
this.refs = emptyObject;
|
|
29493
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
29494
|
+
}
|
|
29495
|
+
Component.prototype.isReactComponent = {};
|
|
29496
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
29497
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
29498
|
+
throw Error(
|
|
29499
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
29500
|
+
);
|
|
29501
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
29502
|
+
};
|
|
29503
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
29504
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
29505
|
+
};
|
|
29506
|
+
function ComponentDummy() {
|
|
29507
|
+
}
|
|
29508
|
+
ComponentDummy.prototype = Component.prototype;
|
|
29509
|
+
function PureComponent(props, context, updater) {
|
|
29510
|
+
this.props = props;
|
|
29511
|
+
this.context = context;
|
|
29512
|
+
this.refs = emptyObject;
|
|
29513
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
29514
|
+
}
|
|
29515
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
29516
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
29517
|
+
assign$1(pureComponentPrototype, Component.prototype);
|
|
29518
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
29519
|
+
var isArrayImpl = Array.isArray, ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null }, hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
29520
|
+
function ReactElement(type, key, self2, source, owner, props) {
|
|
29521
|
+
self2 = props.ref;
|
|
29522
|
+
return {
|
|
29523
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
29524
|
+
type,
|
|
29525
|
+
key,
|
|
29526
|
+
ref: void 0 !== self2 ? self2 : null,
|
|
29527
|
+
props
|
|
29528
|
+
};
|
|
29529
|
+
}
|
|
29530
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
29531
|
+
return ReactElement(
|
|
29532
|
+
oldElement.type,
|
|
29533
|
+
newKey,
|
|
29534
|
+
void 0,
|
|
29535
|
+
void 0,
|
|
29536
|
+
void 0,
|
|
29537
|
+
oldElement.props
|
|
29538
|
+
);
|
|
29539
|
+
}
|
|
29540
|
+
function isValidElement(object2) {
|
|
29541
|
+
return "object" === typeof object2 && null !== object2 && object2.$$typeof === REACT_ELEMENT_TYPE;
|
|
29542
|
+
}
|
|
29543
|
+
function escape$1(key) {
|
|
29544
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
29545
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
29546
|
+
return escaperLookup[match];
|
|
29547
|
+
});
|
|
29548
|
+
}
|
|
29549
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
29550
|
+
function getElementKey(element, index) {
|
|
29551
|
+
return "object" === typeof element && null !== element && null != element.key ? escape$1("" + element.key) : index.toString(36);
|
|
29552
|
+
}
|
|
29553
|
+
function noop$1() {
|
|
29554
|
+
}
|
|
29555
|
+
function resolveThenable(thenable) {
|
|
29556
|
+
switch (thenable.status) {
|
|
29557
|
+
case "fulfilled":
|
|
29558
|
+
return thenable.value;
|
|
29559
|
+
case "rejected":
|
|
29560
|
+
throw thenable.reason;
|
|
29561
|
+
default:
|
|
29562
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
29563
|
+
function(fulfilledValue) {
|
|
29564
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
29565
|
+
},
|
|
29566
|
+
function(error) {
|
|
29567
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
29568
|
+
}
|
|
29569
|
+
)), thenable.status) {
|
|
29570
|
+
case "fulfilled":
|
|
29571
|
+
return thenable.value;
|
|
29572
|
+
case "rejected":
|
|
29573
|
+
throw thenable.reason;
|
|
29574
|
+
}
|
|
29575
|
+
}
|
|
29576
|
+
throw thenable;
|
|
29577
|
+
}
|
|
29578
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
29579
|
+
var type = typeof children;
|
|
29580
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
29581
|
+
var invokeCallback = false;
|
|
29582
|
+
if (null === children) invokeCallback = true;
|
|
29583
|
+
else
|
|
29584
|
+
switch (type) {
|
|
29585
|
+
case "bigint":
|
|
29586
|
+
case "string":
|
|
29587
|
+
case "number":
|
|
29588
|
+
invokeCallback = true;
|
|
29589
|
+
break;
|
|
29590
|
+
case "object":
|
|
29591
|
+
switch (children.$$typeof) {
|
|
29592
|
+
case REACT_ELEMENT_TYPE:
|
|
29593
|
+
case REACT_PORTAL_TYPE:
|
|
29594
|
+
invokeCallback = true;
|
|
29595
|
+
break;
|
|
29596
|
+
case REACT_LAZY_TYPE:
|
|
29597
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
29598
|
+
invokeCallback(children._payload),
|
|
29599
|
+
array,
|
|
29600
|
+
escapedPrefix,
|
|
29601
|
+
nameSoFar,
|
|
29602
|
+
callback
|
|
29603
|
+
);
|
|
29604
|
+
}
|
|
29605
|
+
}
|
|
29606
|
+
if (invokeCallback)
|
|
29607
|
+
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c2) {
|
|
29608
|
+
return c2;
|
|
29609
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
29610
|
+
callback,
|
|
29611
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
29612
|
+
userProvidedKeyEscapeRegex,
|
|
29613
|
+
"$&/"
|
|
29614
|
+
) + "/") + invokeCallback
|
|
29615
|
+
)), array.push(callback)), 1;
|
|
29616
|
+
invokeCallback = 0;
|
|
29617
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
29618
|
+
if (isArrayImpl(children))
|
|
29619
|
+
for (var i = 0; i < children.length; i++)
|
|
29620
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
29621
|
+
nameSoFar,
|
|
29622
|
+
array,
|
|
29623
|
+
escapedPrefix,
|
|
29624
|
+
type,
|
|
29625
|
+
callback
|
|
29626
|
+
);
|
|
29627
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
29628
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
29629
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
29630
|
+
nameSoFar,
|
|
29631
|
+
array,
|
|
29632
|
+
escapedPrefix,
|
|
29633
|
+
type,
|
|
29634
|
+
callback
|
|
29635
|
+
);
|
|
29636
|
+
else if ("object" === type) {
|
|
29637
|
+
if ("function" === typeof children.then)
|
|
29638
|
+
return mapIntoArray(
|
|
29639
|
+
resolveThenable(children),
|
|
29640
|
+
array,
|
|
29641
|
+
escapedPrefix,
|
|
29642
|
+
nameSoFar,
|
|
29643
|
+
callback
|
|
29644
|
+
);
|
|
29645
|
+
array = String(children);
|
|
29646
|
+
throw Error(
|
|
29647
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
29648
|
+
);
|
|
29649
|
+
}
|
|
29650
|
+
return invokeCallback;
|
|
29651
|
+
}
|
|
29652
|
+
function mapChildren(children, func, context) {
|
|
29653
|
+
if (null == children) return children;
|
|
29654
|
+
var result = [], count = 0;
|
|
29655
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
29656
|
+
return func.call(context, child, count++);
|
|
29657
|
+
});
|
|
29658
|
+
return result;
|
|
29659
|
+
}
|
|
29660
|
+
function lazyInitializer(payload) {
|
|
29661
|
+
if (-1 === payload._status) {
|
|
29662
|
+
var ctor = payload._result;
|
|
29663
|
+
ctor = ctor();
|
|
29664
|
+
ctor.then(
|
|
29665
|
+
function(moduleObject) {
|
|
29666
|
+
if (0 === payload._status || -1 === payload._status)
|
|
29667
|
+
payload._status = 1, payload._result = moduleObject;
|
|
29668
|
+
},
|
|
29669
|
+
function(error) {
|
|
29670
|
+
if (0 === payload._status || -1 === payload._status)
|
|
29671
|
+
payload._status = 2, payload._result = error;
|
|
29672
|
+
}
|
|
29673
|
+
);
|
|
29674
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
29675
|
+
}
|
|
29676
|
+
if (1 === payload._status) return payload._result.default;
|
|
29677
|
+
throw payload._result;
|
|
29678
|
+
}
|
|
29679
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
29680
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
29681
|
+
var event = new window.ErrorEvent("error", {
|
|
29682
|
+
bubbles: true,
|
|
29683
|
+
cancelable: true,
|
|
29684
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
29685
|
+
error
|
|
29686
|
+
});
|
|
29687
|
+
if (!window.dispatchEvent(event)) return;
|
|
29688
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
29689
|
+
process.emit("uncaughtException", error);
|
|
29690
|
+
return;
|
|
29691
|
+
}
|
|
29692
|
+
console.error(error);
|
|
29693
|
+
};
|
|
29694
|
+
function noop() {
|
|
29695
|
+
}
|
|
29696
|
+
react_production.Children = {
|
|
29697
|
+
map: mapChildren,
|
|
29698
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
29699
|
+
mapChildren(
|
|
29700
|
+
children,
|
|
29701
|
+
function() {
|
|
29702
|
+
forEachFunc.apply(this, arguments);
|
|
29703
|
+
},
|
|
29704
|
+
forEachContext
|
|
29705
|
+
);
|
|
29706
|
+
},
|
|
29707
|
+
count: function(children) {
|
|
29708
|
+
var n2 = 0;
|
|
29709
|
+
mapChildren(children, function() {
|
|
29710
|
+
n2++;
|
|
29711
|
+
});
|
|
29712
|
+
return n2;
|
|
29713
|
+
},
|
|
29714
|
+
toArray: function(children) {
|
|
29715
|
+
return mapChildren(children, function(child) {
|
|
29716
|
+
return child;
|
|
29717
|
+
}) || [];
|
|
29718
|
+
},
|
|
29719
|
+
only: function(children) {
|
|
29720
|
+
if (!isValidElement(children))
|
|
29721
|
+
throw Error(
|
|
29722
|
+
"React.Children.only expected to receive a single React element child."
|
|
29723
|
+
);
|
|
29724
|
+
return children;
|
|
29725
|
+
}
|
|
29726
|
+
};
|
|
29727
|
+
react_production.Component = Component;
|
|
29728
|
+
react_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
29729
|
+
react_production.Profiler = REACT_PROFILER_TYPE;
|
|
29730
|
+
react_production.PureComponent = PureComponent;
|
|
29731
|
+
react_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
29732
|
+
react_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
29733
|
+
react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
29734
|
+
react_production.__COMPILER_RUNTIME = {
|
|
29735
|
+
__proto__: null,
|
|
29736
|
+
c: function(size) {
|
|
29737
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
29738
|
+
}
|
|
29739
|
+
};
|
|
29740
|
+
react_production.cache = function(fn) {
|
|
29741
|
+
return function() {
|
|
29742
|
+
return fn.apply(null, arguments);
|
|
29743
|
+
};
|
|
29744
|
+
};
|
|
29745
|
+
react_production.cloneElement = function(element, config, children) {
|
|
29746
|
+
if (null === element || void 0 === element)
|
|
29747
|
+
throw Error(
|
|
29748
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
29749
|
+
);
|
|
29750
|
+
var props = assign$1({}, element.props), key = element.key, owner = void 0;
|
|
29751
|
+
if (null != config)
|
|
29752
|
+
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
29753
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
29754
|
+
var propName = arguments.length - 2;
|
|
29755
|
+
if (1 === propName) props.children = children;
|
|
29756
|
+
else if (1 < propName) {
|
|
29757
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
29758
|
+
childArray[i] = arguments[i + 2];
|
|
29759
|
+
props.children = childArray;
|
|
29760
|
+
}
|
|
29761
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
29762
|
+
};
|
|
29763
|
+
react_production.createContext = function(defaultValue) {
|
|
29764
|
+
defaultValue = {
|
|
29765
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
29766
|
+
_currentValue: defaultValue,
|
|
29767
|
+
_currentValue2: defaultValue,
|
|
29768
|
+
_threadCount: 0,
|
|
29769
|
+
Provider: null,
|
|
29770
|
+
Consumer: null
|
|
29771
|
+
};
|
|
29772
|
+
defaultValue.Provider = defaultValue;
|
|
29773
|
+
defaultValue.Consumer = {
|
|
29774
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
29775
|
+
_context: defaultValue
|
|
29776
|
+
};
|
|
29777
|
+
return defaultValue;
|
|
29778
|
+
};
|
|
29779
|
+
react_production.createElement = function(type, config, children) {
|
|
29780
|
+
var propName, props = {}, key = null;
|
|
29781
|
+
if (null != config)
|
|
29782
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
29783
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
29784
|
+
var childrenLength = arguments.length - 2;
|
|
29785
|
+
if (1 === childrenLength) props.children = children;
|
|
29786
|
+
else if (1 < childrenLength) {
|
|
29787
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
29788
|
+
childArray[i] = arguments[i + 2];
|
|
29789
|
+
props.children = childArray;
|
|
29790
|
+
}
|
|
29791
|
+
if (type && type.defaultProps)
|
|
29792
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
29793
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
29794
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
|
29795
|
+
};
|
|
29796
|
+
react_production.createRef = function() {
|
|
29797
|
+
return { current: null };
|
|
29798
|
+
};
|
|
29799
|
+
react_production.forwardRef = function(render2) {
|
|
29800
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render2 };
|
|
29801
|
+
};
|
|
29802
|
+
react_production.isValidElement = isValidElement;
|
|
29803
|
+
react_production.lazy = function(ctor) {
|
|
29804
|
+
return {
|
|
29805
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
29806
|
+
_payload: { _status: -1, _result: ctor },
|
|
29807
|
+
_init: lazyInitializer
|
|
29808
|
+
};
|
|
29809
|
+
};
|
|
29810
|
+
react_production.memo = function(type, compare) {
|
|
29811
|
+
return {
|
|
29812
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
29813
|
+
type,
|
|
29814
|
+
compare: void 0 === compare ? null : compare
|
|
29815
|
+
};
|
|
29816
|
+
};
|
|
29817
|
+
react_production.startTransition = function(scope) {
|
|
29818
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
29819
|
+
ReactSharedInternals.T = currentTransition;
|
|
29820
|
+
try {
|
|
29821
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
29822
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
29823
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
29824
|
+
} catch (error) {
|
|
29825
|
+
reportGlobalError(error);
|
|
29826
|
+
} finally {
|
|
29827
|
+
ReactSharedInternals.T = prevTransition;
|
|
29828
|
+
}
|
|
29829
|
+
};
|
|
29830
|
+
react_production.unstable_useCacheRefresh = function() {
|
|
29831
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
29832
|
+
};
|
|
29833
|
+
react_production.use = function(usable) {
|
|
29834
|
+
return ReactSharedInternals.H.use(usable);
|
|
29835
|
+
};
|
|
29836
|
+
react_production.useActionState = function(action, initialState2, permalink) {
|
|
29837
|
+
return ReactSharedInternals.H.useActionState(action, initialState2, permalink);
|
|
29838
|
+
};
|
|
29839
|
+
react_production.useCallback = function(callback, deps) {
|
|
29840
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
29841
|
+
};
|
|
29842
|
+
react_production.useContext = function(Context2) {
|
|
29843
|
+
return ReactSharedInternals.H.useContext(Context2);
|
|
29844
|
+
};
|
|
29845
|
+
react_production.useDebugValue = function() {
|
|
29846
|
+
};
|
|
29847
|
+
react_production.useDeferredValue = function(value, initialValue) {
|
|
29848
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
29849
|
+
};
|
|
29850
|
+
react_production.useEffect = function(create2, createDeps, update) {
|
|
29851
|
+
var dispatcher = ReactSharedInternals.H;
|
|
29852
|
+
if ("function" === typeof update)
|
|
29853
|
+
throw Error(
|
|
29854
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
29855
|
+
);
|
|
29856
|
+
return dispatcher.useEffect(create2, createDeps);
|
|
29857
|
+
};
|
|
29858
|
+
react_production.useId = function() {
|
|
29859
|
+
return ReactSharedInternals.H.useId();
|
|
29860
|
+
};
|
|
29861
|
+
react_production.useImperativeHandle = function(ref, create2, deps) {
|
|
29862
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create2, deps);
|
|
29863
|
+
};
|
|
29864
|
+
react_production.useInsertionEffect = function(create2, deps) {
|
|
29865
|
+
return ReactSharedInternals.H.useInsertionEffect(create2, deps);
|
|
29866
|
+
};
|
|
29867
|
+
react_production.useLayoutEffect = function(create2, deps) {
|
|
29868
|
+
return ReactSharedInternals.H.useLayoutEffect(create2, deps);
|
|
29869
|
+
};
|
|
29870
|
+
react_production.useMemo = function(create2, deps) {
|
|
29871
|
+
return ReactSharedInternals.H.useMemo(create2, deps);
|
|
29872
|
+
};
|
|
29873
|
+
react_production.useOptimistic = function(passthrough, reducer2) {
|
|
29874
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer2);
|
|
29875
|
+
};
|
|
29876
|
+
react_production.useReducer = function(reducer2, initialArg, init2) {
|
|
29877
|
+
return ReactSharedInternals.H.useReducer(reducer2, initialArg, init2);
|
|
29878
|
+
};
|
|
29879
|
+
react_production.useRef = function(initialValue) {
|
|
29880
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
29881
|
+
};
|
|
29882
|
+
react_production.useState = function(initialState2) {
|
|
29883
|
+
return ReactSharedInternals.H.useState(initialState2);
|
|
29884
|
+
};
|
|
29885
|
+
react_production.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
29886
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
29887
|
+
subscribe,
|
|
29888
|
+
getSnapshot,
|
|
29889
|
+
getServerSnapshot
|
|
29890
|
+
);
|
|
29891
|
+
};
|
|
29892
|
+
react_production.useTransition = function() {
|
|
29893
|
+
return ReactSharedInternals.H.useTransition();
|
|
29894
|
+
};
|
|
29895
|
+
react_production.version = "19.1.0";
|
|
29896
|
+
{
|
|
29897
|
+
react.exports = react_production;
|
|
29898
|
+
}
|
|
29899
|
+
var reactExports = react.exports;
|
|
29900
|
+
const ReactExports = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
29455
29901
|
var withSelector = { exports: {} };
|
|
29456
29902
|
var withSelector_production = {};
|
|
29457
29903
|
var shim$2 = { exports: {} };
|
|
@@ -29465,7 +29911,7 @@ var useSyncExternalStoreShim_production = {};
|
|
|
29465
29911
|
* This source code is licensed under the MIT license found in the
|
|
29466
29912
|
* LICENSE file in the root directory of this source tree.
|
|
29467
29913
|
*/
|
|
29468
|
-
var React$1 =
|
|
29914
|
+
var React$1 = reactExports;
|
|
29469
29915
|
function is$1(x2, y2) {
|
|
29470
29916
|
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
|
|
29471
29917
|
}
|
|
@@ -29520,7 +29966,7 @@ var shimExports = shim$2.exports;
|
|
|
29520
29966
|
* This source code is licensed under the MIT license found in the
|
|
29521
29967
|
* LICENSE file in the root directory of this source tree.
|
|
29522
29968
|
*/
|
|
29523
|
-
var React =
|
|
29969
|
+
var React = reactExports, shim = shimExports;
|
|
29524
29970
|
function is(x2, y2) {
|
|
29525
29971
|
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
|
|
29526
29972
|
}
|
|
@@ -58623,6 +59069,43 @@ const downloadPdfFallback = (pdfBuffer, filename = "etiqueta.pdf") => __async(vo
|
|
|
58623
59069
|
throw error;
|
|
58624
59070
|
}
|
|
58625
59071
|
});
|
|
59072
|
+
const convertPdfFileToArrayBuffer = (pdfFile) => __async(void 0, null, function* () {
|
|
59073
|
+
try {
|
|
59074
|
+
if (!(pdfFile instanceof File)) {
|
|
59075
|
+
throw new Error("O parâmetro deve ser um objeto File válido");
|
|
59076
|
+
}
|
|
59077
|
+
return new Promise((resolve, reject) => {
|
|
59078
|
+
const reader = new FileReader();
|
|
59079
|
+
reader.onload = (event) => {
|
|
59080
|
+
resolve(event.target.result);
|
|
59081
|
+
};
|
|
59082
|
+
reader.onerror = (error) => {
|
|
59083
|
+
console.error("❌ Erro ao ler arquivo PDF:", error);
|
|
59084
|
+
reject(new Error("Falha ao ler o arquivo PDF"));
|
|
59085
|
+
};
|
|
59086
|
+
reader.readAsArrayBuffer(pdfFile);
|
|
59087
|
+
});
|
|
59088
|
+
} catch (error) {
|
|
59089
|
+
console.error("❌ Erro ao converter arquivo PDF:", error);
|
|
59090
|
+
throw error;
|
|
59091
|
+
}
|
|
59092
|
+
});
|
|
59093
|
+
const sendPdfFileToPrinter = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (pdfFile, options = {}) {
|
|
59094
|
+
try {
|
|
59095
|
+
console.log("🖨️ Processando arquivo PDF para impressão...");
|
|
59096
|
+
const pdfArrayBuffer = yield convertPdfFileToArrayBuffer(pdfFile);
|
|
59097
|
+
return yield sendToPrinter$1(pdfArrayBuffer, __spreadProps(__spreadValues({}, options), {
|
|
59098
|
+
filename: options.filename || pdfFile.name || "etiqueta.pdf"
|
|
59099
|
+
}));
|
|
59100
|
+
} catch (error) {
|
|
59101
|
+
console.error("❌ Erro ao processar arquivo PDF:", error);
|
|
59102
|
+
return {
|
|
59103
|
+
success: false,
|
|
59104
|
+
error: error.message,
|
|
59105
|
+
message: "Falha ao processar arquivo PDF para impressão"
|
|
59106
|
+
};
|
|
59107
|
+
}
|
|
59108
|
+
});
|
|
58626
59109
|
const sendToPrinter$1 = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (pdfBuffer, options = {}) {
|
|
58627
59110
|
try {
|
|
58628
59111
|
const {
|
|
@@ -58692,6 +59175,17 @@ const processLabelForParts = (..._0) => __async(void 0, [..._0], function* (part
|
|
|
58692
59175
|
};
|
|
58693
59176
|
}
|
|
58694
59177
|
});
|
|
59178
|
+
const printerWorker = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
59179
|
+
__proto__: null,
|
|
59180
|
+
checkPrinterAvailability,
|
|
59181
|
+
convertPdfFileToArrayBuffer,
|
|
59182
|
+
convertPdfToImages,
|
|
59183
|
+
downloadPdfFallback,
|
|
59184
|
+
processLabelForParts,
|
|
59185
|
+
sendImagesToPrinter,
|
|
59186
|
+
sendPdfFileToPrinter,
|
|
59187
|
+
sendToPrinter: sendToPrinter$1
|
|
59188
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
58695
59189
|
let window$1, document$1, btoa$1;
|
|
58696
59190
|
const initializeBrowserEnvironment = () => {
|
|
58697
59191
|
if (!isBrowser) {
|
|
@@ -58900,114 +59394,6 @@ const makeLamination = (mainObject) => {
|
|
|
58900
59394
|
}
|
|
58901
59395
|
return pdf.output("datauristring");
|
|
58902
59396
|
};
|
|
58903
|
-
function getTemplateById(templateId) {
|
|
58904
|
-
return __async(this, null, function* () {
|
|
58905
|
-
try {
|
|
58906
|
-
const labelData = yield LabelsAPI.getLabel(templateId);
|
|
58907
|
-
if (!labelData) {
|
|
58908
|
-
throw new Error(`Template/etiqueta não encontrado com ID: ${templateId}`);
|
|
58909
|
-
}
|
|
58910
|
-
console.log("templateContent:", labelData);
|
|
58911
|
-
return JSON.parse(labelData.label_content);
|
|
58912
|
-
} catch (error) {
|
|
58913
|
-
console.error(`Erro ao buscar template: ${error.message}`);
|
|
58914
|
-
throw error;
|
|
58915
|
-
}
|
|
58916
|
-
});
|
|
58917
|
-
}
|
|
58918
|
-
const createPrinterSlice = (set, get3) => ({
|
|
58919
|
-
printerStatus: {
|
|
58920
|
-
name: "Aguardando...",
|
|
58921
|
-
connected: false,
|
|
58922
|
-
status: "disconnected",
|
|
58923
|
-
hasDefaultPrinter: false,
|
|
58924
|
-
message: "Conectando ao servidor...",
|
|
58925
|
-
printer: null
|
|
58926
|
-
},
|
|
58927
|
-
setPrinterStatus: (status) => set(() => ({ printerStatus: status })),
|
|
58928
|
-
updatePrinterStatus: (updates) => set((state) => ({
|
|
58929
|
-
printerStatus: __spreadValues(__spreadValues({}, state.printerStatus), updates)
|
|
58930
|
-
}))
|
|
58931
|
-
});
|
|
58932
|
-
const createSSESlice = (set, get3) => ({
|
|
58933
|
-
sseConnected: false,
|
|
58934
|
-
eventSource: null,
|
|
58935
|
-
setSseConnected: (connected) => set(() => ({ sseConnected: connected })),
|
|
58936
|
-
setEventSource: (eventSource) => set(() => ({ eventSource })),
|
|
58937
|
-
connectToSSE: () => {
|
|
58938
|
-
const { eventSource, setSseConnected, updatePrinterStatus, setEventSource } = get3();
|
|
58939
|
-
if (typeof EventSource === "undefined") {
|
|
58940
|
-
console.log("EventSource não disponível em ambiente Node.js");
|
|
58941
|
-
setSseConnected(false);
|
|
58942
|
-
updatePrinterStatus({ connected: false, status: "disconnected" });
|
|
58943
|
-
return;
|
|
58944
|
-
}
|
|
58945
|
-
if (eventSource) {
|
|
58946
|
-
eventSource.close();
|
|
58947
|
-
}
|
|
58948
|
-
try {
|
|
58949
|
-
const newEventSource = new EventSource("http://localhost:9999/printer/status/stream");
|
|
58950
|
-
setEventSource(newEventSource);
|
|
58951
|
-
newEventSource.onopen = () => {
|
|
58952
|
-
console.log("Conexão SSE estabelecida com a impressora");
|
|
58953
|
-
setSseConnected(true);
|
|
58954
|
-
updatePrinterStatus({ status: "connecting" });
|
|
58955
|
-
};
|
|
58956
|
-
newEventSource.addEventListener("printer-status", (event) => {
|
|
58957
|
-
var _a2;
|
|
58958
|
-
try {
|
|
58959
|
-
const data = JSON.parse(event.data);
|
|
58960
|
-
console.log("message =>>>>>>>>>", data);
|
|
58961
|
-
let status = "disconnected";
|
|
58962
|
-
let name = "Nenhuma impressora";
|
|
58963
|
-
if (!data.hasDefaultPrinter) {
|
|
58964
|
-
status = "no-printer";
|
|
58965
|
-
name = "Sem impressora configurada";
|
|
58966
|
-
} else if (data.isConnected && data.printer) {
|
|
58967
|
-
status = "connected";
|
|
58968
|
-
name = data.printer.name || "Impressora";
|
|
58969
|
-
} else {
|
|
58970
|
-
status = "disconnected";
|
|
58971
|
-
name = ((_a2 = data.printer) == null ? void 0 : _a2.name) || "Impressora";
|
|
58972
|
-
}
|
|
58973
|
-
updatePrinterStatus({
|
|
58974
|
-
name,
|
|
58975
|
-
connected: data.isConnected || false,
|
|
58976
|
-
status,
|
|
58977
|
-
hasDefaultPrinter: data.hasDefaultPrinter || false,
|
|
58978
|
-
message: data.message || "",
|
|
58979
|
-
printer: data.printer || null
|
|
58980
|
-
});
|
|
58981
|
-
} catch (error) {
|
|
58982
|
-
console.warn("Erro ao processar dados da impressora:", error);
|
|
58983
|
-
}
|
|
58984
|
-
});
|
|
58985
|
-
newEventSource.onerror = (error) => {
|
|
58986
|
-
console.error("Erro na conexão SSE:", error);
|
|
58987
|
-
setSseConnected(false);
|
|
58988
|
-
updatePrinterStatus({ connected: false, status: "disconnected" });
|
|
58989
|
-
newEventSource.close();
|
|
58990
|
-
setEventSource(null);
|
|
58991
|
-
setTimeout(() => {
|
|
58992
|
-
get3().connectToSSE();
|
|
58993
|
-
}, 5e3);
|
|
58994
|
-
};
|
|
58995
|
-
} catch (error) {
|
|
58996
|
-
console.error("Erro ao conectar SSE:", error);
|
|
58997
|
-
setSseConnected(false);
|
|
58998
|
-
updatePrinterStatus({ connected: false, status: "disconnected" });
|
|
58999
|
-
}
|
|
59000
|
-
},
|
|
59001
|
-
disconnectSSE: () => {
|
|
59002
|
-
const { eventSource, setSseConnected, setEventSource } = get3();
|
|
59003
|
-
if (eventSource) {
|
|
59004
|
-
eventSource.close();
|
|
59005
|
-
setEventSource(null);
|
|
59006
|
-
}
|
|
59007
|
-
setSseConnected(false);
|
|
59008
|
-
}
|
|
59009
|
-
});
|
|
59010
|
-
const usePrinterStore = create((set, get3) => __spreadValues(__spreadValues({}, createPrinterSlice(set)), createSSESlice(set, get3)));
|
|
59011
59397
|
const transformField = (data, fieldName, fieldMap) => {
|
|
59012
59398
|
const transformation = fieldMap[fieldName];
|
|
59013
59399
|
if (!transformation) {
|
|
@@ -59193,6 +59579,29 @@ const legacyFieldMap = {
|
|
|
59193
59579
|
const legacyTransformer = (data) => {
|
|
59194
59580
|
return applyTransformations(data, legacyFieldMap);
|
|
59195
59581
|
};
|
|
59582
|
+
const isModuleContext = typeof import.meta !== "undefined";
|
|
59583
|
+
let createLabelWorker, getTemplateById;
|
|
59584
|
+
let printerWorkerSendToPrinter, usePrinterStore;
|
|
59585
|
+
if (isModuleContext) {
|
|
59586
|
+
Promise.resolve().then(() => labelWorker).then((module) => {
|
|
59587
|
+
module.LabelWorker;
|
|
59588
|
+
createLabelWorker = module.createLabelWorker;
|
|
59589
|
+
});
|
|
59590
|
+
Promise.resolve().then(() => constants).then((module) => {
|
|
59591
|
+
module.labelTypeNames;
|
|
59592
|
+
});
|
|
59593
|
+
import("./templates-DB-LZbhi.js").then((module) => {
|
|
59594
|
+
getTemplateById = module.getTemplateById;
|
|
59595
|
+
});
|
|
59596
|
+
Promise.resolve().then(() => printerWorker).then((module) => {
|
|
59597
|
+
printerWorkerSendToPrinter = module.sendToPrinter;
|
|
59598
|
+
});
|
|
59599
|
+
import("./usePrinterStore-DjE7a9VN.js").then((module) => {
|
|
59600
|
+
usePrinterStore = module.default;
|
|
59601
|
+
});
|
|
59602
|
+
} else {
|
|
59603
|
+
console.warn("Etiquetas.js carregado via tag script - modo de compatibilidade ativado");
|
|
59604
|
+
}
|
|
59196
59605
|
new VariableManager();
|
|
59197
59606
|
let globalConfig = {
|
|
59198
59607
|
printerName: null,
|
|
@@ -59640,7 +60049,7 @@ const sendToPrinter = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (pdf
|
|
|
59640
60049
|
status: printerStatus.status,
|
|
59641
60050
|
hasDefaultPrinter: printerStatus.hasDefaultPrinter
|
|
59642
60051
|
});
|
|
59643
|
-
const result = yield
|
|
60052
|
+
const result = yield printerWorkerSendToPrinter(pdfBuffer, options);
|
|
59644
60053
|
if (result.success && result.printed) {
|
|
59645
60054
|
result.printerName = printerStatus.name;
|
|
59646
60055
|
result.printerConnected = printerStatus.connected;
|
|
@@ -59908,69 +60317,72 @@ const EtiquetasJS = __spreadProps(__spreadValues({}, etiquetasAPI), {
|
|
|
59908
60317
|
}
|
|
59909
60318
|
});
|
|
59910
60319
|
export {
|
|
59911
|
-
|
|
59912
|
-
|
|
59913
|
-
|
|
59914
|
-
|
|
59915
|
-
|
|
60320
|
+
getBorderColor as $,
|
|
60321
|
+
validateLabelData as A,
|
|
60322
|
+
etiquetasAPI as B,
|
|
60323
|
+
isBrowser as C,
|
|
60324
|
+
isNodeJS$1 as D,
|
|
59916
60325
|
EtiquetasJS as E,
|
|
59917
|
-
|
|
59918
|
-
|
|
59919
|
-
|
|
59920
|
-
|
|
59921
|
-
|
|
59922
|
-
|
|
59923
|
-
|
|
59924
|
-
|
|
59925
|
-
|
|
59926
|
-
|
|
59927
|
-
|
|
59928
|
-
|
|
59929
|
-
|
|
59930
|
-
|
|
59931
|
-
|
|
59932
|
-
|
|
59933
|
-
|
|
59934
|
-
|
|
59935
|
-
|
|
59936
|
-
|
|
59937
|
-
|
|
60326
|
+
createBrowserCanvas as F,
|
|
60327
|
+
loadImageBrowser as G,
|
|
60328
|
+
createBrowserDOM as H,
|
|
60329
|
+
downloadFile as I,
|
|
60330
|
+
serializeXML as J,
|
|
60331
|
+
createBuffer as K,
|
|
60332
|
+
LabelsAPI as L,
|
|
60333
|
+
base64Encode as M,
|
|
60334
|
+
base64Decode as N,
|
|
60335
|
+
sendPdfFileToPrinter as O,
|
|
60336
|
+
processLabelForParts as P,
|
|
60337
|
+
convertPdfToImages as Q,
|
|
60338
|
+
checkPrinterAvailability as R,
|
|
60339
|
+
sendImagesToPrinter as S,
|
|
60340
|
+
downloadPdfFallback as T,
|
|
60341
|
+
convertPdfFileToArrayBuffer as U,
|
|
60342
|
+
createMiniSheet as V,
|
|
60343
|
+
createImage as W,
|
|
60344
|
+
createImageFromPart as X,
|
|
60345
|
+
drawRect as Y,
|
|
60346
|
+
setBorder as Z,
|
|
59938
60347
|
_typeof as _,
|
|
59939
|
-
|
|
59940
|
-
|
|
59941
|
-
|
|
59942
|
-
|
|
59943
|
-
|
|
59944
|
-
|
|
59945
|
-
|
|
59946
|
-
|
|
59947
|
-
|
|
59948
|
-
|
|
59949
|
-
|
|
59950
|
-
|
|
59951
|
-
|
|
59952
|
-
|
|
59953
|
-
|
|
59954
|
-
|
|
60348
|
+
commonjsGlobal as a,
|
|
60349
|
+
makeLamination as a0,
|
|
60350
|
+
getNode as a1,
|
|
60351
|
+
getAspectRatio as a2,
|
|
60352
|
+
DEFAULT_LAMINATION_COLORS as a3,
|
|
60353
|
+
stopCreatingLabels as a4,
|
|
60354
|
+
initializeBrowserEnvironment as a5,
|
|
60355
|
+
getImagesFromUrl as a6,
|
|
60356
|
+
getImagesFromUrlToBase64 as a7,
|
|
60357
|
+
mmToPx as a8,
|
|
60358
|
+
convertSVGTableToAutoTableData as a9,
|
|
60359
|
+
generateTableSVG as aa,
|
|
60360
|
+
dataTypeList as ab,
|
|
60361
|
+
getInputsByCategory as ac,
|
|
60362
|
+
LABEL_TYPES as b,
|
|
60363
|
+
create as c,
|
|
60364
|
+
getPartLabels as d,
|
|
60365
|
+
getScrapLabels as e,
|
|
60366
|
+
getThickenedLabels as f,
|
|
59955
60367
|
getDefaultExportFromCjs as g,
|
|
59956
|
-
|
|
59957
|
-
|
|
59958
|
-
|
|
59959
|
-
|
|
59960
|
-
|
|
59961
|
-
|
|
59962
|
-
|
|
59963
|
-
|
|
59964
|
-
|
|
59965
|
-
|
|
59966
|
-
|
|
59967
|
-
|
|
59968
|
-
|
|
60368
|
+
getInputLabels as h,
|
|
60369
|
+
getVolumeLabels as i,
|
|
60370
|
+
LabelWorker as j,
|
|
60371
|
+
createLabelWorker$1 as k,
|
|
60372
|
+
generateLabelsFromHookData as l,
|
|
60373
|
+
useLabelStore as m,
|
|
60374
|
+
getPartsForLabels as n,
|
|
60375
|
+
getInputForLabels as o,
|
|
60376
|
+
getPartsFromProjectToLabels as p,
|
|
60377
|
+
labelTypeNames as q,
|
|
60378
|
+
initialState as r,
|
|
60379
|
+
reducer as s,
|
|
60380
|
+
init as t,
|
|
59969
60381
|
useLabelData as u,
|
|
59970
|
-
|
|
59971
|
-
|
|
59972
|
-
|
|
59973
|
-
|
|
59974
|
-
|
|
60382
|
+
getPrinterStatus as v,
|
|
60383
|
+
makeLabel as w,
|
|
60384
|
+
sendLabel as x,
|
|
60385
|
+
downloadPDF as y,
|
|
60386
|
+
sendToPrinter as z
|
|
59975
60387
|
};
|
|
59976
|
-
//# sourceMappingURL=index-
|
|
60388
|
+
//# sourceMappingURL=index-CrFIiiLi.js.map
|