idmission-web-sdk 2.3.203 → 2.3.204
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/components/submission/SubmissionErrorOverlay.d.ts.map +1 -1
- package/dist/components/submission/SubmissionSuccess.d.ts.map +1 -1
- package/dist/components/submission/jsonHighlight.d.ts +12 -0
- package/dist/components/submission/jsonHighlight.d.ts.map +1 -0
- package/dist/sdk2.cjs.development.js +236 -48
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +236 -48
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +236 -48
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmissionErrorOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/submission/SubmissionErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAyB,MAAM,OAAO,CAAA;AAElE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"SubmissionErrorOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/submission/SubmissionErrorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAyB,MAAM,OAAO,CAAA;AAElE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAMxD,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,eAAe,GAAG,YAAY,CAAA;IACrC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,sBAAsB,wBAGhC,2BAA2B,KAAG,YAkBhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmissionSuccess.d.ts","sourceRoot":"","sources":["../../../src/components/submission/SubmissionSuccess.tsx"],"names":[],"mappings":"AAAA,OAAc,
|
|
1
|
+
{"version":3,"file":"SubmissionSuccess.d.ts","sourceRoot":"","sources":["../../../src/components/submission/SubmissionSuccess.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,YAAY,EAKb,MAAM,OAAO,CAAA;AAgEd,eAAO,MAAM,iBAAiB,QAAO,YA+apC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const deepParseJsonStrings: (value: unknown) => unknown;
|
|
3
|
+
export declare const syntaxColors: {
|
|
4
|
+
key: string;
|
|
5
|
+
string: string;
|
|
6
|
+
number: string;
|
|
7
|
+
boolean: string;
|
|
8
|
+
null: string;
|
|
9
|
+
punctuation: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const highlightJson: (str: string) => React.ReactNode;
|
|
12
|
+
//# sourceMappingURL=jsonHighlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonHighlight.d.ts","sourceRoot":"","sources":["../../../src/components/submission/jsonHighlight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,eAAO,MAAM,oBAAoB,UAAW,OAAO,KAAG,OAoBrD,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;CAOxB,CAAA;AAED,eAAO,MAAM,aAAa,QAAS,MAAM,KAAG,KAAK,CAAC,SA6EjD,CAAA"}
|
|
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
235
235
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
236
236
|
};
|
|
237
237
|
|
|
238
|
-
var webSdkVersion = '2.3.
|
|
238
|
+
var webSdkVersion = '2.3.204';
|
|
239
239
|
|
|
240
240
|
function getPlatform() {
|
|
241
241
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -661,22 +661,32 @@ var SessionValidationFailedError = /** @class */function (_super) {
|
|
|
661
661
|
return SessionValidationFailedError;
|
|
662
662
|
}(Error);
|
|
663
663
|
|
|
664
|
-
var
|
|
665
|
-
var
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
664
|
+
var looksLikeJson = function looksLikeJson(value) {
|
|
665
|
+
var trimmed = value.trim();
|
|
666
|
+
if (trimmed.length < 2) return false;
|
|
667
|
+
var first = trimmed[0];
|
|
668
|
+
var last = trimmed[trimmed.length - 1];
|
|
669
|
+
return first === '{' && last === '}' || first === '[' && last === ']';
|
|
670
|
+
};
|
|
671
|
+
var _deepParseJsonStrings = function deepParseJsonStrings(value) {
|
|
672
|
+
if (typeof value === 'string' && looksLikeJson(value)) {
|
|
673
|
+
try {
|
|
674
|
+
return _deepParseJsonStrings(JSON.parse(value));
|
|
675
|
+
} catch (_a) {
|
|
676
|
+
return value;
|
|
672
677
|
}
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
678
|
+
}
|
|
679
|
+
if (Array.isArray(value)) {
|
|
680
|
+
return value.map(_deepParseJsonStrings);
|
|
681
|
+
}
|
|
682
|
+
if (value && typeof value === 'object') {
|
|
683
|
+
return Object.fromEntries(Object.entries(value).map(function (_a) {
|
|
684
|
+
var k = _a[0],
|
|
685
|
+
v = _a[1];
|
|
686
|
+
return [k, _deepParseJsonStrings(v)];
|
|
687
|
+
}));
|
|
688
|
+
}
|
|
689
|
+
return value;
|
|
680
690
|
};
|
|
681
691
|
var syntaxColors = {
|
|
682
692
|
key: '#7dd3fc',
|
|
@@ -701,12 +711,10 @@ var highlightJson = function highlightJson(str) {
|
|
|
701
711
|
}
|
|
702
712
|
var elements = [];
|
|
703
713
|
var i = 0;
|
|
704
|
-
// Regex to match JSON tokens
|
|
705
714
|
var tokenRegex = /("(?:[^"\\]|\\.)*")\s*:|("(?:[^"\\]|\\.)*")|(-?\d+\.?\d*(?:[eE][+-]?\d+)?)|(\btrue\b|\bfalse\b)|(\bnull\b)|([{}[\],:])/g;
|
|
706
715
|
var lastIndex = 0;
|
|
707
|
-
var match;
|
|
708
|
-
while (
|
|
709
|
-
// Add any whitespace/text before this match
|
|
716
|
+
var match = tokenRegex.exec(json);
|
|
717
|
+
while (match !== null) {
|
|
710
718
|
if (match.index > lastIndex) {
|
|
711
719
|
elements.push(json.slice(lastIndex, match.index));
|
|
712
720
|
}
|
|
@@ -717,7 +725,6 @@ var highlightJson = function highlightJson(str) {
|
|
|
717
725
|
nullVal = match[5],
|
|
718
726
|
punctuation = match[6];
|
|
719
727
|
if (key) {
|
|
720
|
-
// It's a key (string followed by colon) - key includes quotes but not the colon
|
|
721
728
|
elements.push(/*#__PURE__*/React__namespace.default.createElement("span", {
|
|
722
729
|
key: i++,
|
|
723
730
|
style: {
|
|
@@ -767,13 +774,31 @@ var highlightJson = function highlightJson(str) {
|
|
|
767
774
|
}, punctuation));
|
|
768
775
|
}
|
|
769
776
|
lastIndex = tokenRegex.lastIndex;
|
|
777
|
+
match = tokenRegex.exec(json);
|
|
770
778
|
}
|
|
771
|
-
// Add any remaining text
|
|
772
779
|
if (lastIndex < json.length) {
|
|
773
780
|
elements.push(json.slice(lastIndex));
|
|
774
781
|
}
|
|
775
782
|
return elements;
|
|
776
783
|
};
|
|
784
|
+
|
|
785
|
+
var SubmissionErrorOverlay = function SubmissionErrorOverlay(_a) {
|
|
786
|
+
var error = _a.error,
|
|
787
|
+
onRetry = _a.onRetry;
|
|
788
|
+
return /*#__PURE__*/React__namespace.default.createElement(OverlayContainer, null, /*#__PURE__*/React__namespace.default.createElement(OverlayInner$2, {
|
|
789
|
+
style: {
|
|
790
|
+
justifyContent: 'center',
|
|
791
|
+
alignItems: 'center',
|
|
792
|
+
display: 'flex'
|
|
793
|
+
}
|
|
794
|
+
}, error instanceof NetworkError ? (/*#__PURE__*/React__namespace.default.createElement(NetworkErrorContent, {
|
|
795
|
+
error: error,
|
|
796
|
+
onRetry: onRetry
|
|
797
|
+
})) : (/*#__PURE__*/React__namespace.default.createElement(SubmissionErrorContent, {
|
|
798
|
+
error: error,
|
|
799
|
+
onRetry: onRetry
|
|
800
|
+
}))));
|
|
801
|
+
};
|
|
777
802
|
var SubmissionErrorContent = function SubmissionErrorContent(_a) {
|
|
778
803
|
var error = _a.error,
|
|
779
804
|
onRetry = _a.onRetry;
|
|
@@ -798,7 +823,7 @@ var SubmissionErrorContent = function SubmissionErrorContent(_a) {
|
|
|
798
823
|
}, 2000);
|
|
799
824
|
});
|
|
800
825
|
}, [error.status.statusCode, error.message, error.status.errorData]);
|
|
801
|
-
return /*#__PURE__*/React__namespace.default.createElement(ErrorContainer, null, /*#__PURE__*/React__namespace.default.createElement(ErrorIcon, null, "!"), /*#__PURE__*/React__namespace.default.createElement(Heading$b, null, headingText), error.status.statusCode && (/*#__PURE__*/React__namespace.default.createElement(StatusBadge$1, null, /*#__PURE__*/React__namespace.default.createElement(StatusLabel, null, "Status"), /*#__PURE__*/React__namespace.default.createElement(StatusValue, null, error.status.statusCode))), /*#__PURE__*/React__namespace.default.createElement(DetailsSection, null, /*#__PURE__*/React__namespace.default.createElement(DetailsHeader, null, /*#__PURE__*/React__namespace.default.createElement(DetailsLabel, null, "Error Details"), /*#__PURE__*/React__namespace.default.createElement(CopyButton, {
|
|
826
|
+
return /*#__PURE__*/React__namespace.default.createElement(ErrorContainer, null, /*#__PURE__*/React__namespace.default.createElement(ErrorIcon, null, "!"), /*#__PURE__*/React__namespace.default.createElement(Heading$b, null, headingText), error.status.statusCode && (/*#__PURE__*/React__namespace.default.createElement(StatusBadge$1, null, /*#__PURE__*/React__namespace.default.createElement(StatusLabel, null, "Status"), /*#__PURE__*/React__namespace.default.createElement(StatusValue, null, error.status.statusCode))), /*#__PURE__*/React__namespace.default.createElement(DetailsSection, null, /*#__PURE__*/React__namespace.default.createElement(DetailsHeader, null, /*#__PURE__*/React__namespace.default.createElement(DetailsLabel, null, "Error Details"), /*#__PURE__*/React__namespace.default.createElement(CopyButton$1, {
|
|
802
827
|
onClick: copyToClipboard,
|
|
803
828
|
type: "button"
|
|
804
829
|
}, copied ? 'Copied!' : 'Copy')), /*#__PURE__*/React__namespace.default.createElement(CodeBlock, null, /*#__PURE__*/React__namespace.default.createElement("code", null, highlightJson(error.message)))), error.status.errorData && (/*#__PURE__*/React__namespace.default.createElement(DetailsSection, null, /*#__PURE__*/React__namespace.default.createElement(DetailsLabel, null, "Additional Data"), /*#__PURE__*/React__namespace.default.createElement(CodeBlock, null, /*#__PURE__*/React__namespace.default.createElement("code", null, highlightJson(error.status.errorData))))), onRetry && (/*#__PURE__*/React__namespace.default.createElement(RetryContainer, null, /*#__PURE__*/React__namespace.default.createElement(LoaderButton, {
|
|
@@ -829,7 +854,7 @@ var StatusValue = styled__default.default.span(templateObject_7$8 || (templateOb
|
|
|
829
854
|
var DetailsSection = styled__default.default.div(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject(["\n width: 100%;\n margin-bottom: 16px;\n"], ["\n width: 100%;\n margin-bottom: 16px;\n"])));
|
|
830
855
|
var DetailsHeader = styled__default.default.div(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 8px;\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 8px;\n"])));
|
|
831
856
|
var DetailsLabel = styled__default.default.span(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["\n font-size: 0.75rem;\n font-weight: 500;\n color: #6b7280;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n"], ["\n font-size: 0.75rem;\n font-weight: 500;\n color: #6b7280;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n"])));
|
|
832
|
-
var CopyButton = styled__default.default.button(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n background-color: #f3f4f6;\n border: 1px solid #d1d5db;\n border-radius: 4px;\n padding: 4px 10px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #e5e7eb;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #d1d5db;\n }\n"], ["\n background-color: #f3f4f6;\n border: 1px solid #d1d5db;\n border-radius: 4px;\n padding: 4px 10px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #e5e7eb;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #d1d5db;\n }\n"])));
|
|
857
|
+
var CopyButton$1 = styled__default.default.button(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n background-color: #f3f4f6;\n border: 1px solid #d1d5db;\n border-radius: 4px;\n padding: 4px 10px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #e5e7eb;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #d1d5db;\n }\n"], ["\n background-color: #f3f4f6;\n border: 1px solid #d1d5db;\n border-radius: 4px;\n padding: 4px 10px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #e5e7eb;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #d1d5db;\n }\n"])));
|
|
833
858
|
var CodeBlock = styled__default.default.pre(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n background-color: #1f2937;\n border-radius: 8px;\n padding: 16px;\n margin: 0;\n overflow-x: auto;\n max-height: 300px;\n overflow-y: auto;\n text-align: left;\n\n code {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: #e5e7eb;\n white-space: pre-wrap;\n word-break: break-word;\n display: block;\n text-align: left;\n }\n"], ["\n background-color: #1f2937;\n border-radius: 8px;\n padding: 16px;\n margin: 0;\n overflow-x: auto;\n max-height: 300px;\n overflow-y: auto;\n text-align: left;\n\n code {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.8125rem;\n line-height: 1.6;\n color: #e5e7eb;\n white-space: pre-wrap;\n word-break: break-word;\n display: block;\n text-align: left;\n }\n"])));
|
|
834
859
|
var RetryContainer = styled__default.default.div(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n margin-top: 24px;\n"], ["\n margin-top: 24px;\n"])));
|
|
835
860
|
var templateObject_1$Q, templateObject_2$L, templateObject_3$y, templateObject_4$r, templateObject_5$k, templateObject_6$c, templateObject_7$8, templateObject_8$7, templateObject_9$4, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$3;
|
|
@@ -11348,13 +11373,13 @@ var BarcodeComparisonScoreLabel = styled__default.default.span(templateObject_23
|
|
|
11348
11373
|
});
|
|
11349
11374
|
// Native barcode result styles
|
|
11350
11375
|
var NativeBarcodeResultCard = styled__default.default.div(templateObject_24$1 || (templateObject_24$1 = __makeTemplateObject(["\n margin-top: 0.75rem;\n margin-bottom: 1rem;\n padding: 0.75rem;\n background: #cce5ff;\n border-radius: 8px;\n border: 1px solid #b8daff;\n text-align: left;\n"], ["\n margin-top: 0.75rem;\n margin-bottom: 1rem;\n padding: 0.75rem;\n background: #cce5ff;\n border-radius: 8px;\n border: 1px solid #b8daff;\n text-align: left;\n"])));
|
|
11351
|
-
var NativeBarcodeHeader = styled__default.default.div(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n font-size: 0.875rem;\n font-weight: 700;\n margin-bottom: 0.5rem;\n color: #004085;\n"], ["\n font-size: 0.875rem;\n font-weight: 700;\n margin-bottom: 0.5rem;\n color: #004085;\n"])));
|
|
11352
|
-
var NativeBarcodeRow = styled__default.default.div(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin-bottom: 0.375rem;\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n flex-direction: column;\n margin-bottom: 0.375rem;\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
|
|
11353
|
-
var NativeBarcodeLabel = styled__default.default.span(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n font-size: 0.75rem;\n font-weight: 600;\n color: #004085;\n margin-bottom: 0.125rem;\n"], ["\n font-size: 0.75rem;\n font-weight: 600;\n color: #004085;\n margin-bottom: 0.125rem;\n"])));
|
|
11354
|
-
var NativeBarcodeData = styled__default.default.pre(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n font-size: 0.6875rem;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n color: #004085;\n background: rgba(255, 255, 255, 0.5);\n padding: 0.5rem;\n border-radius: 4px;\n margin: 0;\n white-space: pre-wrap;\n word-break: break-all;\n max-height: 150px;\n overflow-y: auto;\n"], ["\n font-size: 0.6875rem;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n color: #004085;\n background: rgba(255, 255, 255, 0.5);\n padding: 0.5rem;\n border-radius: 4px;\n margin: 0;\n white-space: pre-wrap;\n word-break: break-all;\n max-height: 150px;\n overflow-y: auto;\n"])));
|
|
11355
|
-
var NativeBarcodeFieldsTable = styled__default.default.table(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n width: 100%;\n max-height: 300px;\n overflow-y: auto;\n display: block;\n background: rgba(255, 255, 255, 0.5);\n padding: 0.5rem;\n border-radius: 4px;\n border-collapse: collapse;\n\n tbody {\n display: table;\n width: 100%;\n }\n"], ["\n width: 100%;\n max-height: 300px;\n overflow-y: auto;\n display: block;\n background: rgba(255, 255, 255, 0.5);\n padding: 0.5rem;\n border-radius: 4px;\n border-collapse: collapse;\n\n tbody {\n display: table;\n width: 100%;\n }\n"])));
|
|
11356
|
-
var NativeBarcodeFieldTableRow = styled__default.default.tr(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n border-bottom: 1px solid rgba(0, 64, 133, 0.1);\n\n &:last-child {\n border-bottom: none;\n }\n\n @media (max-width: 480px) {\n display: flex;\n flex-direction: column;\n padding: 0.375rem 0;\n }\n"], ["\n border-bottom: 1px solid rgba(0, 64, 133, 0.1);\n\n &:last-child {\n border-bottom: none;\n }\n\n @media (max-width: 480px) {\n display: flex;\n flex-direction: column;\n padding: 0.375rem 0;\n }\n"])));
|
|
11357
|
-
var NativeBarcodeFieldLabelCell = styled__default.default.td(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n font-size: 0.75rem;\n font-weight: 600;\n color: #004085;\n padding: 0.375rem 0.75rem 0.375rem 0;\n white-space: nowrap;\n vertical-align: top;\n\n @media (max-width: 480px) {\n padding: 0 0 0.125rem 0;\n white-space: normal;\n }\n"], ["\n font-size: 0.75rem;\n font-weight: 600;\n color: #004085;\n padding: 0.375rem 0.75rem 0.375rem 0;\n white-space: nowrap;\n vertical-align: top;\n\n @media (max-width: 480px) {\n padding: 0 0 0.125rem 0;\n white-space: normal;\n }\n"])));
|
|
11376
|
+
var NativeBarcodeHeader = styled__default.default.div(templateObject_25$1 || (templateObject_25$1 = __makeTemplateObject(["\n font-size: 0.875rem;\n font-weight: 700;\n margin-bottom: 0.5rem;\n color: #004085;\n"], ["\n font-size: 0.875rem;\n font-weight: 700;\n margin-bottom: 0.5rem;\n color: #004085;\n"])));
|
|
11377
|
+
var NativeBarcodeRow = styled__default.default.div(templateObject_26$1 || (templateObject_26$1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin-bottom: 0.375rem;\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n flex-direction: column;\n margin-bottom: 0.375rem;\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
|
|
11378
|
+
var NativeBarcodeLabel = styled__default.default.span(templateObject_27$1 || (templateObject_27$1 = __makeTemplateObject(["\n font-size: 0.75rem;\n font-weight: 600;\n color: #004085;\n margin-bottom: 0.125rem;\n"], ["\n font-size: 0.75rem;\n font-weight: 600;\n color: #004085;\n margin-bottom: 0.125rem;\n"])));
|
|
11379
|
+
var NativeBarcodeData = styled__default.default.pre(templateObject_28$1 || (templateObject_28$1 = __makeTemplateObject(["\n font-size: 0.6875rem;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n color: #004085;\n background: rgba(255, 255, 255, 0.5);\n padding: 0.5rem;\n border-radius: 4px;\n margin: 0;\n white-space: pre-wrap;\n word-break: break-all;\n max-height: 150px;\n overflow-y: auto;\n"], ["\n font-size: 0.6875rem;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n color: #004085;\n background: rgba(255, 255, 255, 0.5);\n padding: 0.5rem;\n border-radius: 4px;\n margin: 0;\n white-space: pre-wrap;\n word-break: break-all;\n max-height: 150px;\n overflow-y: auto;\n"])));
|
|
11380
|
+
var NativeBarcodeFieldsTable = styled__default.default.table(templateObject_29$1 || (templateObject_29$1 = __makeTemplateObject(["\n width: 100%;\n max-height: 300px;\n overflow-y: auto;\n display: block;\n background: rgba(255, 255, 255, 0.5);\n padding: 0.5rem;\n border-radius: 4px;\n border-collapse: collapse;\n\n tbody {\n display: table;\n width: 100%;\n }\n"], ["\n width: 100%;\n max-height: 300px;\n overflow-y: auto;\n display: block;\n background: rgba(255, 255, 255, 0.5);\n padding: 0.5rem;\n border-radius: 4px;\n border-collapse: collapse;\n\n tbody {\n display: table;\n width: 100%;\n }\n"])));
|
|
11381
|
+
var NativeBarcodeFieldTableRow = styled__default.default.tr(templateObject_30$1 || (templateObject_30$1 = __makeTemplateObject(["\n border-bottom: 1px solid rgba(0, 64, 133, 0.1);\n\n &:last-child {\n border-bottom: none;\n }\n\n @media (max-width: 480px) {\n display: flex;\n flex-direction: column;\n padding: 0.375rem 0;\n }\n"], ["\n border-bottom: 1px solid rgba(0, 64, 133, 0.1);\n\n &:last-child {\n border-bottom: none;\n }\n\n @media (max-width: 480px) {\n display: flex;\n flex-direction: column;\n padding: 0.375rem 0;\n }\n"])));
|
|
11382
|
+
var NativeBarcodeFieldLabelCell = styled__default.default.td(templateObject_31$1 || (templateObject_31$1 = __makeTemplateObject(["\n font-size: 0.75rem;\n font-weight: 600;\n color: #004085;\n padding: 0.375rem 0.75rem 0.375rem 0;\n white-space: nowrap;\n vertical-align: top;\n\n @media (max-width: 480px) {\n padding: 0 0 0.125rem 0;\n white-space: normal;\n }\n"], ["\n font-size: 0.75rem;\n font-weight: 600;\n color: #004085;\n padding: 0.375rem 0.75rem 0.375rem 0;\n white-space: nowrap;\n vertical-align: top;\n\n @media (max-width: 480px) {\n padding: 0 0 0.125rem 0;\n white-space: normal;\n }\n"])));
|
|
11358
11383
|
var NativeBarcodeFieldValueCell = styled__default.default.td(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n font-size: 0.75rem;\n color: #004085;\n padding: 0.375rem 0;\n word-break: break-word;\n\n @media (max-width: 480px) {\n padding: 0;\n }\n"], ["\n font-size: 0.75rem;\n color: #004085;\n padding: 0.375rem 0;\n word-break: break-word;\n\n @media (max-width: 480px) {\n padding: 0;\n }\n"
|
|
11359
11384
|
// Container for barcode decode results section
|
|
11360
11385
|
])));
|
|
@@ -11402,7 +11427,7 @@ var DiagnosticsBadge = styled__default.default.span(templateObject_51 || (templa
|
|
|
11402
11427
|
$highlight = _a.$highlight;
|
|
11403
11428
|
return $highlight ? '#b8daff' : $ok ? '#c3e6cb' : '#f5c6cb';
|
|
11404
11429
|
});
|
|
11405
|
-
var templateObject_1$F, templateObject_2$B, templateObject_3$r, templateObject_4$l, templateObject_5$g, templateObject_6$a, templateObject_7$6, templateObject_8$5, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24$1, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51;
|
|
11430
|
+
var templateObject_1$F, templateObject_2$B, templateObject_3$r, templateObject_4$l, templateObject_5$g, templateObject_6$a, templateObject_7$6, templateObject_8$5, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24$1, templateObject_25$1, templateObject_26$1, templateObject_27$1, templateObject_28$1, templateObject_29$1, templateObject_30$1, templateObject_31$1, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51;
|
|
11406
11431
|
|
|
11407
11432
|
function useShowSuccessScreen(skipSuccessScreen, successScreenReady, onDoneCallback) {
|
|
11408
11433
|
var _this = this;
|
|
@@ -17922,6 +17947,19 @@ function FaceLivenessWizardWithProviders(_a) {
|
|
|
17922
17947
|
}, /*#__PURE__*/React__namespace.default.createElement(FaceLivenessWizard, _assign({}, faceLivenessProps))));
|
|
17923
17948
|
}
|
|
17924
17949
|
|
|
17950
|
+
var toDataUrl = function toDataUrl(value) {
|
|
17951
|
+
return value.startsWith('data:') ? value : "data:image/jpeg;base64,".concat(value);
|
|
17952
|
+
};
|
|
17953
|
+
var readDocumentId = function readDocumentId(submissionRequest, path) {
|
|
17954
|
+
var node = submissionRequest;
|
|
17955
|
+
for (var _i = 0, path_1 = path; _i < path_1.length; _i++) {
|
|
17956
|
+
var segment = path_1[_i];
|
|
17957
|
+
if (!node || typeof node !== 'object') return null;
|
|
17958
|
+
node = node[segment];
|
|
17959
|
+
}
|
|
17960
|
+
if (typeof node !== 'string') return null;
|
|
17961
|
+
return node.startsWith('urn:documentsv1:') ? node : null;
|
|
17962
|
+
};
|
|
17925
17963
|
var quickFactConfig = [{
|
|
17926
17964
|
key: 'uniqueRequestId',
|
|
17927
17965
|
label: 'Unique Request ID'
|
|
@@ -17961,7 +17999,18 @@ var SubmissionSuccess = function SubmissionSuccess() {
|
|
|
17961
17999
|
var _a;
|
|
17962
18000
|
var _b = React.useContext(SubmissionContext),
|
|
17963
18001
|
submissionRequest = _b.submissionRequest,
|
|
17964
|
-
submissionResponse = _b.submissionResponse
|
|
18002
|
+
submissionResponse = _b.submissionResponse,
|
|
18003
|
+
idFrontImage = _b.idFrontImage,
|
|
18004
|
+
idBackImage = _b.idBackImage,
|
|
18005
|
+
passportImage = _b.passportImage,
|
|
18006
|
+
idBarcodeImage = _b.idBarcodeImage,
|
|
18007
|
+
idFrontIrImage = _b.idFrontIrImage,
|
|
18008
|
+
idBackIrImage = _b.idBackIrImage,
|
|
18009
|
+
idFrontUvImage = _b.idFrontUvImage,
|
|
18010
|
+
idBackUvImage = _b.idBackUvImage,
|
|
18011
|
+
idCaptureVideoIdFrontImage = _b.idCaptureVideoIdFrontImage,
|
|
18012
|
+
idCaptureVideoIdBackImage = _b.idCaptureVideoIdBackImage,
|
|
18013
|
+
selfieImage = _b.selfieImage;
|
|
17965
18014
|
var _c = React.useState(false),
|
|
17966
18015
|
showRequestBody = _c[0],
|
|
17967
18016
|
setShowRequestBody = _c[1];
|
|
@@ -17971,6 +18020,36 @@ var SubmissionSuccess = function SubmissionSuccess() {
|
|
|
17971
18020
|
var _e = React.useState(true),
|
|
17972
18021
|
truncateImages = _e[0],
|
|
17973
18022
|
setTruncateImages = _e[1];
|
|
18023
|
+
var _f = React.useState(false),
|
|
18024
|
+
requestCopied = _f[0],
|
|
18025
|
+
setRequestCopied = _f[1];
|
|
18026
|
+
var _g = React.useState(false),
|
|
18027
|
+
responseCopied = _g[0],
|
|
18028
|
+
setResponseCopied = _g[1];
|
|
18029
|
+
var _h = React.useState(true),
|
|
18030
|
+
expandEmbeddedJson = _h[0],
|
|
18031
|
+
setExpandEmbeddedJson = _h[1];
|
|
18032
|
+
var _j = React.useState(null),
|
|
18033
|
+
copiedAssetKey = _j[0],
|
|
18034
|
+
setCopiedAssetKey = _j[1];
|
|
18035
|
+
var copyText = React.useCallback(function (text, setCopied) {
|
|
18036
|
+
navigator.clipboard.writeText(text).then(function () {
|
|
18037
|
+
setCopied(true);
|
|
18038
|
+
setTimeout(function () {
|
|
18039
|
+
return setCopied(false);
|
|
18040
|
+
}, 2000);
|
|
18041
|
+
});
|
|
18042
|
+
}, []);
|
|
18043
|
+
var copyAssetId = React.useCallback(function (assetKey, documentId) {
|
|
18044
|
+
navigator.clipboard.writeText(documentId).then(function () {
|
|
18045
|
+
setCopiedAssetKey(assetKey);
|
|
18046
|
+
setTimeout(function () {
|
|
18047
|
+
return setCopiedAssetKey(function (current) {
|
|
18048
|
+
return current === assetKey ? null : current;
|
|
18049
|
+
});
|
|
18050
|
+
}, 2000);
|
|
18051
|
+
});
|
|
18052
|
+
}, []);
|
|
17974
18053
|
var status = submissionResponse === null || submissionResponse === void 0 ? void 0 : submissionResponse.status;
|
|
17975
18054
|
var resultData = React.useMemo(function () {
|
|
17976
18055
|
var _a;
|
|
@@ -17985,12 +18064,84 @@ var SubmissionSuccess = function SubmissionSuccess() {
|
|
|
17985
18064
|
if ((_d = (_c = body === null || body === void 0 ? void 0 : body.customerData) === null || _c === void 0 ? void 0 : _c.idData) === null || _d === void 0 ? void 0 : _d.idImageBack) body.customerData.idData.idImageBack = truncate(body.customerData.idData.idImageBack, 200);
|
|
17986
18065
|
if ((_f = (_e = body === null || body === void 0 ? void 0 : body.customerData) === null || _e === void 0 ? void 0 : _e.biometricData) === null || _f === void 0 ? void 0 : _f.selfie) body.customerData.biometricData.selfie = truncate(body.customerData.biometricData.selfie, 200);
|
|
17987
18066
|
}
|
|
17988
|
-
return JSON.stringify(body, null, 2);
|
|
17989
|
-
}, [submissionRequest, truncateImages]);
|
|
18067
|
+
return JSON.stringify(expandEmbeddedJson ? _deepParseJsonStrings(body) : body, null, 2);
|
|
18068
|
+
}, [submissionRequest, truncateImages, expandEmbeddedJson]);
|
|
17990
18069
|
var responseBodyDisplay = React.useMemo(function () {
|
|
17991
18070
|
if (!submissionResponse) return 'No response payload yet.';
|
|
17992
|
-
return JSON.stringify(submissionResponse, null, 2);
|
|
17993
|
-
}, [submissionResponse]);
|
|
18071
|
+
return JSON.stringify(expandEmbeddedJson ? _deepParseJsonStrings(submissionResponse) : submissionResponse, null, 2);
|
|
18072
|
+
}, [submissionResponse, expandEmbeddedJson]);
|
|
18073
|
+
var capturedAssets = React.useMemo(function () {
|
|
18074
|
+
var entries = [{
|
|
18075
|
+
key: 'idFrontImage',
|
|
18076
|
+
label: 'ID Front',
|
|
18077
|
+
value: idFrontImage,
|
|
18078
|
+
requestPath: ['customerData', 'idData', 'idImageFront']
|
|
18079
|
+
}, {
|
|
18080
|
+
key: 'idBackImage',
|
|
18081
|
+
label: 'ID Back',
|
|
18082
|
+
value: idBackImage,
|
|
18083
|
+
requestPath: ['customerData', 'idData', 'idImageBack']
|
|
18084
|
+
}, {
|
|
18085
|
+
key: 'passportImage',
|
|
18086
|
+
label: 'Passport',
|
|
18087
|
+
value: passportImage,
|
|
18088
|
+
requestPath: ['customerData', 'idData', 'idImageFront']
|
|
18089
|
+
}, {
|
|
18090
|
+
key: 'idCaptureVideoIdFrontImage',
|
|
18091
|
+
label: 'Video ID Front',
|
|
18092
|
+
value: idCaptureVideoIdFrontImage,
|
|
18093
|
+
requestPath: ['customerData', 'idData', 'videoIdImageFront']
|
|
18094
|
+
}, {
|
|
18095
|
+
key: 'idCaptureVideoIdBackImage',
|
|
18096
|
+
label: 'Video ID Back',
|
|
18097
|
+
value: idCaptureVideoIdBackImage,
|
|
18098
|
+
requestPath: ['customerData', 'idData', 'videoIdImageBack']
|
|
18099
|
+
}, {
|
|
18100
|
+
key: 'idBarcodeImage',
|
|
18101
|
+
label: 'Barcode',
|
|
18102
|
+
value: idBarcodeImage,
|
|
18103
|
+
requestPath: ['customerData', 'idData', 'idBarcodeImage']
|
|
18104
|
+
}, {
|
|
18105
|
+
key: 'idFrontIrImage',
|
|
18106
|
+
label: 'IR Front',
|
|
18107
|
+
value: idFrontIrImage,
|
|
18108
|
+
requestPath: ['customerData', 'idData', 'idFrontIrImage']
|
|
18109
|
+
}, {
|
|
18110
|
+
key: 'idBackIrImage',
|
|
18111
|
+
label: 'IR Back',
|
|
18112
|
+
value: idBackIrImage,
|
|
18113
|
+
requestPath: ['customerData', 'idData', 'idBackIrImage']
|
|
18114
|
+
}, {
|
|
18115
|
+
key: 'idFrontUvImage',
|
|
18116
|
+
label: 'UV Front',
|
|
18117
|
+
value: idFrontUvImage,
|
|
18118
|
+
requestPath: ['customerData', 'idData', 'idFrontUvImage']
|
|
18119
|
+
}, {
|
|
18120
|
+
key: 'idBackUvImage',
|
|
18121
|
+
label: 'UV Back',
|
|
18122
|
+
value: idBackUvImage,
|
|
18123
|
+
requestPath: ['customerData', 'idData', 'idBackUvImage']
|
|
18124
|
+
}, {
|
|
18125
|
+
key: 'selfieImage',
|
|
18126
|
+
label: 'Selfie',
|
|
18127
|
+
value: selfieImage,
|
|
18128
|
+
requestPath: ['customerData', 'biometricData', 'selfie']
|
|
18129
|
+
}];
|
|
18130
|
+
return entries.filter(function (entry) {
|
|
18131
|
+
return Boolean(entry.value);
|
|
18132
|
+
}).map(function (_a) {
|
|
18133
|
+
var key = _a.key,
|
|
18134
|
+
label = _a.label,
|
|
18135
|
+
value = _a.value,
|
|
18136
|
+
requestPath = _a.requestPath;
|
|
18137
|
+
return {
|
|
18138
|
+
key: key,
|
|
18139
|
+
label: label,
|
|
18140
|
+
src: toDataUrl(value),
|
|
18141
|
+
documentId: readDocumentId(submissionRequest, requestPath)
|
|
18142
|
+
};
|
|
18143
|
+
});
|
|
18144
|
+
}, [submissionRequest, idFrontImage, idBackImage, passportImage, idBarcodeImage, idFrontIrImage, idBackIrImage, idFrontUvImage, idBackUvImage, idCaptureVideoIdFrontImage, idCaptureVideoIdBackImage, selfieImage]);
|
|
17994
18145
|
var quickFacts = React.useMemo(function () {
|
|
17995
18146
|
return quickFactConfig.map(function (field) {
|
|
17996
18147
|
var value = resultData[field.key];
|
|
@@ -18056,28 +18207,58 @@ var SubmissionSuccess = function SubmissionSuccess() {
|
|
|
18056
18207
|
return /*#__PURE__*/React__namespace.default.createElement(DetailItem, {
|
|
18057
18208
|
key: detail.label
|
|
18058
18209
|
}, /*#__PURE__*/React__namespace.default.createElement(SummaryLabel, null, detail.label), /*#__PURE__*/React__namespace.default.createElement(SummaryValue, null, detail.value));
|
|
18059
|
-
})))), /*#__PURE__*/React__namespace.default.createElement(Section, null, /*#__PURE__*/React__namespace.default.createElement(SectionTitle, null, "
|
|
18210
|
+
})))), capturedAssets.length > 0 && (/*#__PURE__*/React__namespace.default.createElement(Section, null, /*#__PURE__*/React__namespace.default.createElement(SectionTitle, null, "Captured assets"), /*#__PURE__*/React__namespace.default.createElement(SectionDescription, null, "Images that were uploaded with this submission."), /*#__PURE__*/React__namespace.default.createElement(AssetGrid, null, capturedAssets.map(function (asset) {
|
|
18211
|
+
return /*#__PURE__*/React__namespace.default.createElement(AssetCard, {
|
|
18212
|
+
key: asset.key
|
|
18213
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AssetThumb, null, /*#__PURE__*/React__namespace.default.createElement("img", {
|
|
18214
|
+
src: asset.src,
|
|
18215
|
+
alt: asset.label
|
|
18216
|
+
})), /*#__PURE__*/React__namespace.default.createElement(SummaryLabel, null, asset.label), asset.documentId && (/*#__PURE__*/React__namespace.default.createElement(AssetIdButton, {
|
|
18217
|
+
type: "button",
|
|
18218
|
+
onClick: function onClick() {
|
|
18219
|
+
return copyAssetId(asset.key, asset.documentId);
|
|
18220
|
+
},
|
|
18221
|
+
title: asset.documentId
|
|
18222
|
+
}, copiedAssetKey === asset.key ? 'Copied!' : 'Copy ID')));
|
|
18223
|
+
})))), /*#__PURE__*/React__namespace.default.createElement(Section, null, /*#__PURE__*/React__namespace.default.createElement(SectionTitle, null, "Raw payloads"), /*#__PURE__*/React__namespace.default.createElement(SectionDescription, null, "Need to dig deeper? Expand the payloads below to inspect the full JSON."), /*#__PURE__*/React__namespace.default.createElement(JsonControls, null, /*#__PURE__*/React__namespace.default.createElement(ToggleButton, {
|
|
18224
|
+
type: "button",
|
|
18060
18225
|
onClick: function onClick() {
|
|
18061
18226
|
return setShowRequestBody(function (prev) {
|
|
18062
18227
|
return !prev;
|
|
18063
18228
|
});
|
|
18064
18229
|
}
|
|
18065
|
-
}, showRequestBody ? 'Hide request JSON' : 'Show request JSON'), /*#__PURE__*/React__namespace.default.createElement(
|
|
18230
|
+
}, showRequestBody ? 'Hide request JSON' : 'Show request JSON'), /*#__PURE__*/React__namespace.default.createElement(ToggleButton, {
|
|
18231
|
+
type: "button",
|
|
18066
18232
|
onClick: function onClick() {
|
|
18067
18233
|
return setShowResponseBody(function (prev) {
|
|
18068
18234
|
return !prev;
|
|
18069
18235
|
});
|
|
18070
18236
|
}
|
|
18071
|
-
}, showResponseBody ? 'Hide response JSON' : 'Show response JSON')
|
|
18072
|
-
|
|
18073
|
-
|
|
18074
|
-
|
|
18237
|
+
}, showResponseBody ? 'Hide response JSON' : 'Show response JSON'), (showRequestBody || showResponseBody) && (/*#__PURE__*/React__namespace.default.createElement(ToggleButton, {
|
|
18238
|
+
type: "button",
|
|
18239
|
+
onClick: function onClick() {
|
|
18240
|
+
return setExpandEmbeddedJson(function (prev) {
|
|
18241
|
+
return !prev;
|
|
18242
|
+
});
|
|
18243
|
+
}
|
|
18244
|
+
}, expandEmbeddedJson ? 'Show embedded JSON as strings' : 'Expand embedded JSON'))), showRequestBody && (/*#__PURE__*/React__namespace.default.createElement(JsonBlock, null, /*#__PURE__*/React__namespace.default.createElement(JsonBlockHeader, null, /*#__PURE__*/React__namespace.default.createElement(JsonBlockTitle, null, "Request Body"), /*#__PURE__*/React__namespace.default.createElement(JsonBlockActions, null, /*#__PURE__*/React__namespace.default.createElement(CopyButton, {
|
|
18245
|
+
type: "button",
|
|
18075
18246
|
onClick: function onClick() {
|
|
18076
18247
|
return setTruncateImages(function (prev) {
|
|
18077
18248
|
return !prev;
|
|
18078
18249
|
});
|
|
18079
18250
|
}
|
|
18080
|
-
}, truncateImages ? 'Display full images' : 'Truncate images')
|
|
18251
|
+
}, truncateImages ? 'Display full images' : 'Truncate images'), /*#__PURE__*/React__namespace.default.createElement(CopyButton, {
|
|
18252
|
+
type: "button",
|
|
18253
|
+
onClick: function onClick() {
|
|
18254
|
+
return copyText(requestBodyDisplay, setRequestCopied);
|
|
18255
|
+
}
|
|
18256
|
+
}, requestCopied ? 'Copied!' : 'Copy'))), /*#__PURE__*/React__namespace.default.createElement("pre", null, /*#__PURE__*/React__namespace.default.createElement("code", null, highlightJson(requestBodyDisplay))))), showResponseBody && (/*#__PURE__*/React__namespace.default.createElement(JsonBlock, null, /*#__PURE__*/React__namespace.default.createElement(JsonBlockHeader, null, /*#__PURE__*/React__namespace.default.createElement(JsonBlockTitle, null, "Response Body"), /*#__PURE__*/React__namespace.default.createElement(JsonBlockActions, null, /*#__PURE__*/React__namespace.default.createElement(CopyButton, {
|
|
18257
|
+
type: "button",
|
|
18258
|
+
onClick: function onClick() {
|
|
18259
|
+
return copyText(responseBodyDisplay, setResponseCopied);
|
|
18260
|
+
}
|
|
18261
|
+
}, responseCopied ? 'Copied!' : 'Copy'))), /*#__PURE__*/React__namespace.default.createElement("pre", null, /*#__PURE__*/React__namespace.default.createElement("code", null, highlightJson(responseBodyDisplay)))))));
|
|
18081
18262
|
};
|
|
18082
18263
|
var Container$5 = styled__default.default.div(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n padding: 24px;\n overflow: auto;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n background: #f6f7fb;\n"], ["\n padding: 24px;\n overflow: auto;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n background: #f6f7fb;\n"])));
|
|
18083
18264
|
var Hero = styled__default.default.div(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n gap: 16px;\n margin-bottom: 24px;\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n gap: 16px;\n margin-bottom: 24px;\n"])));
|
|
@@ -18100,15 +18281,22 @@ var DecisionCode = styled__default.default.span(templateObject_18 || (templateOb
|
|
|
18100
18281
|
var DetailGrid = styled__default.default.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 16px;\n"], ["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 16px;\n"])));
|
|
18101
18282
|
var DetailItem = styled__default.default(SummaryCard)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n min-height: 110px;\n"], ["\n min-height: 110px;\n"])));
|
|
18102
18283
|
var JsonControls = styled__default.default.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-bottom: 16px;\n"], ["\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-bottom: 16px;\n"])));
|
|
18103
|
-
var
|
|
18104
|
-
var
|
|
18105
|
-
var
|
|
18284
|
+
var ToggleButton = styled__default.default.button(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n background-color: #fff;\n border: 1px solid #d1d5db;\n border-radius: 6px;\n padding: 6px 12px;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #f3f4f6;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #e5e7eb;\n }\n"], ["\n background-color: #fff;\n border: 1px solid #d1d5db;\n border-radius: 6px;\n padding: 6px 12px;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #f3f4f6;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #e5e7eb;\n }\n"])));
|
|
18285
|
+
var JsonBlock = styled__default.default.div(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n background: #0f172a;\n color: #e2e8f0;\n border-radius: 12px;\n padding: 16px;\n margin-bottom: 16px;\n box-shadow: 0 8px 30px rgba(3, 7, 18, 0.4);\n\n pre {\n margin: 0;\n max-height: 300px;\n overflow: auto;\n font-size: 12px;\n line-height: 1.4;\n }\n"], ["\n background: #0f172a;\n color: #e2e8f0;\n border-radius: 12px;\n padding: 16px;\n margin-bottom: 16px;\n box-shadow: 0 8px 30px rgba(3, 7, 18, 0.4);\n\n pre {\n margin: 0;\n max-height: 300px;\n overflow: auto;\n font-size: 12px;\n line-height: 1.4;\n }\n"])));
|
|
18286
|
+
var JsonBlockHeader = styled__default.default.div(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n"], ["\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n"])));
|
|
18287
|
+
var JsonBlockActions = styled__default.default.div(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n margin-left: auto;\n display: flex;\n align-items: center;\n gap: 8px;\n"], ["\n margin-left: auto;\n display: flex;\n align-items: center;\n gap: 8px;\n"])));
|
|
18288
|
+
var CopyButton = styled__default.default.button(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n background-color: rgba(255, 255, 255, 0.08);\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 4px;\n padding: 6px 12px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #e2e8f0;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: rgba(255, 255, 255, 0.15);\n border-color: rgba(255, 255, 255, 0.35);\n }\n\n &:active {\n background-color: rgba(255, 255, 255, 0.22);\n }\n"], ["\n background-color: rgba(255, 255, 255, 0.08);\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 4px;\n padding: 6px 12px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #e2e8f0;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: rgba(255, 255, 255, 0.15);\n border-color: rgba(255, 255, 255, 0.35);\n }\n\n &:active {\n background-color: rgba(255, 255, 255, 0.22);\n }\n"])));
|
|
18289
|
+
var AssetGrid = styled__default.default.div(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));\n gap: 16px;\n"], ["\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));\n gap: 16px;\n"])));
|
|
18290
|
+
var AssetCard = styled__default.default.div(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n background: #fff;\n border-radius: 12px;\n padding: 12px;\n box-shadow: 0 4px 24px rgba(16, 24, 64, 0.08);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n"], ["\n background: #fff;\n border-radius: 12px;\n padding: 12px;\n box-shadow: 0 4px 24px rgba(16, 24, 64, 0.08);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n"])));
|
|
18291
|
+
var AssetIdButton = styled__default.default.button(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n background-color: #f3f4f6;\n border: 1px solid #d1d5db;\n border-radius: 6px;\n padding: 4px 10px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #e5e7eb;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #d1d5db;\n }\n"], ["\n background-color: #f3f4f6;\n border: 1px solid #d1d5db;\n border-radius: 6px;\n padding: 4px 10px;\n font-size: 0.75rem;\n font-weight: 500;\n color: #374151;\n cursor: pointer;\n transition: all 0.15s ease;\n\n &:hover {\n background-color: #e5e7eb;\n border-color: #9ca3af;\n }\n\n &:active {\n background-color: #d1d5db;\n }\n"])));
|
|
18292
|
+
var AssetThumb = styled__default.default.div(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n width: 100%;\n aspect-ratio: 4 / 3;\n background: #0f172a;\n border-radius: 8px;\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: center;\n\n img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n display: block;\n }\n"], ["\n width: 100%;\n aspect-ratio: 4 / 3;\n background: #0f172a;\n border-radius: 8px;\n overflow: hidden;\n display: flex;\n align-items: center;\n justify-content: center;\n\n img {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n display: block;\n }\n"])));
|
|
18293
|
+
var JsonBlockTitle = styled__default.default.h6(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: #fff;\n"], ["\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: #fff;\n"])));
|
|
18106
18294
|
function truncate(str, maxChars) {
|
|
18107
18295
|
var truncated = str.split('').splice(0, maxChars).join('');
|
|
18108
18296
|
if (truncated.length < str.length) truncated += '...';
|
|
18109
18297
|
return truncated;
|
|
18110
18298
|
}
|
|
18111
|
-
var templateObject_1$g, templateObject_2$f, templateObject_3$d, templateObject_4$9, templateObject_5$6, templateObject_6$3, templateObject_7$2, templateObject_8$2, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24;
|
|
18299
|
+
var templateObject_1$g, templateObject_2$f, templateObject_3$d, templateObject_4$9, templateObject_5$6, templateObject_6$3, templateObject_7$2, templateObject_8$2, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31;
|
|
18112
18300
|
|
|
18113
18301
|
var AdditionalDocumentCapture = function AdditionalDocumentCapture(_a) {
|
|
18114
18302
|
var document = _a.document,
|