idmission-web-sdk 2.2.124 → 2.2.126

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.
@@ -1 +1 @@
1
- {"version":3,"file":"IdCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/id_capture/IdCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,YAAY,EAKb,MAAM,OAAO,CAAA;AASd,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAUxE,eAAO,MAAM,8BAA8B,uIAUxC,4BAA4B,KAAG,YAgMjC,CAAA"}
1
+ {"version":3,"file":"IdCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/id_capture/IdCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,YAAY,EAKb,MAAM,OAAO,CAAA;AASd,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAUxE,eAAO,MAAM,8BAA8B,uIAUxC,4BAA4B,KAAG,YAiMjC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelfieCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAmC,MAAM,OAAO,CAAA;AAW5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAA;AAWhF,eAAO,MAAM,kCAAkC,oIAS5C,gCAAgC,KAAG,YAsKrC,CAAA"}
1
+ {"version":3,"file":"SelfieCaptureLoadingOverlayDefault.d.ts","sourceRoot":"","sources":["../../../src/components/selfie_capture/SelfieCaptureLoadingOverlayDefault.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAmC,MAAM,OAAO,CAAA;AAW5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAA;AAqBhF,eAAO,MAAM,kCAAkC,oIAS5C,gCAAgC,KAAG,YAuKrC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,41 +1,20 @@
1
- import { IdValidation, IdValidationProps } from './components/customer_flows/IdValidation';
2
- import { FaceValidation, FaceValidationProps } from './components/customer_flows/FaceValidation';
3
- import { IdAndFaceValidation, IdAndFaceValidationProps } from './components/customer_flows/IdAndFaceValidation';
4
- import { CustomerEnrollmentProps, CustomerIdAndBiometricsEnrollment } from './components/customer_flows/CustomerIdAndBiometricsEnrollment';
5
- import { CustomerVerification, CustomerVerificationProps } from './components/customer_flows/CustomerVerification';
6
- import { CustomerIdentification, CustomerIdentificationProps } from './components/customer_flows/CustomerIdentification';
7
- import { SignatureKYC, SignatureKYCProps } from './components/customer_flows/SignatureKYC';
8
- import { VideoIdValidation, VideoIdValidationProps } from './components/customer_flows/VideoIdValidation';
1
+ import { IdValidation } from './components/customer_flows/IdValidation';
2
+ import { FaceValidation } from './components/customer_flows/FaceValidation';
3
+ import { IdAndFaceValidation } from './components/customer_flows/IdAndFaceValidation';
4
+ import { CustomerIdAndBiometricsEnrollment } from './components/customer_flows/CustomerIdAndBiometricsEnrollment';
5
+ import { CustomerVerification } from './components/customer_flows/CustomerVerification';
6
+ import { CustomerIdentification } from './components/customer_flows/CustomerIdentification';
7
+ import { SignatureKYC } from './components/customer_flows/SignatureKYC';
8
+ import { VideoIdValidation } from './components/customer_flows/VideoIdValidation';
9
9
  import { preloadModels } from './lib/models/preloadModels';
10
- import { CustomerBiometricsEnrollment, CustomerBiometricsEnrollmentProps } from './components/customer_flows/CustomerBiometricsEnrollment';
10
+ import { CustomerBiometricsEnrollment } from './components/customer_flows/CustomerBiometricsEnrollment';
11
11
  import { Theme, themes } from './themes';
12
- import { DocumentCapture, DocumentCaptureProps } from './components/customer_flows/DocumentCapture';
12
+ import { DocumentCapture } from './components/customer_flows/DocumentCapture';
13
13
  import { CapturedDocumentImg } from './components/common/CapturedDocumentImg';
14
14
  import { defaultSubmissionUrl, setServerUrl } from './components/submission/SubmissionProvider';
15
15
  import { allowedAuthUrls, defaultAuthUrl } from './contexts/AuthStateContext';
16
16
  import { SubmissionRequest, SubmissionResponse } from './components/submission/types';
17
- type TargetElement = Element | DocumentFragment | string | undefined;
18
- export declare const renderIdValidation: (optionsOrTargetElement: TargetElement | IdValidationProps, options?: IdValidationProps) => Element | DocumentFragment;
19
- export declare const renderFaceValidation: (optionsOrTargetElement: TargetElement | FaceValidationProps, options?: FaceValidationProps) => Element | DocumentFragment;
20
- export declare const renderIdAndFaceValidation: (optionsOrTargetElement: TargetElement | IdAndFaceValidationProps, options?: IdAndFaceValidationProps) => Element | DocumentFragment;
21
- export declare const renderCustomerIdAndBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerEnrollmentProps, options?: CustomerEnrollmentProps) => Element | DocumentFragment;
22
- export declare const renderCustomerBiometricsEnrollment: (optionsOrTargetElement: TargetElement | CustomerBiometricsEnrollmentProps, options?: CustomerBiometricsEnrollmentProps) => Element | DocumentFragment;
23
- export declare const renderCustomerVerification: (optionsOrTargetElement: TargetElement | CustomerVerificationProps, options?: CustomerVerificationProps) => Element | DocumentFragment;
24
- export declare const renderCustomerIdentification: (optionsOrTargetElement: TargetElement | CustomerIdentificationProps, options?: CustomerIdentificationProps) => Element | DocumentFragment;
25
- export declare const renderSignatureKYC: (optionsOrTargetElement: TargetElement | SignatureKYCProps, options?: SignatureKYCProps) => Element | DocumentFragment;
26
- export declare const renderVideoIdValidation: (optionsOrTargetElement: TargetElement | VideoIdValidationProps, options?: VideoIdValidationProps) => Element | DocumentFragment;
27
- export declare const renderDocumentCapture: (optionsOrTargetElement: TargetElement | DocumentCaptureProps, options?: DocumentCaptureProps) => Element | DocumentFragment;
28
17
  export type IDmissionSDK = {
29
- renderIdValidation: typeof renderIdValidation;
30
- renderFaceValidation: typeof renderFaceValidation;
31
- renderIdAndFaceValidation: typeof renderIdAndFaceValidation;
32
- renderCustomerIdAndBiometricsEnrollment: typeof renderCustomerIdAndBiometricsEnrollment;
33
- renderCustomerBiometricsEnrollment: typeof renderCustomerBiometricsEnrollment;
34
- renderCustomerVerification: typeof renderCustomerVerification;
35
- renderCustomerIdentification: typeof renderCustomerIdentification;
36
- renderSignatureKYC: typeof renderSignatureKYC;
37
- renderVideoIdValidation: typeof renderVideoIdValidation;
38
- renderDocumentCapture: typeof renderDocumentCapture;
39
18
  preloadModels: typeof preloadModels;
40
19
  themes: typeof themes;
41
20
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,iBAAiB,EAClB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,cAAc,EACd,mBAAmB,EACpB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,iDAAiD,CAAA;AACxD,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EAClC,MAAM,+DAA+D,CAAA;AACtE,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,kDAAkD,CAAA;AACzD,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,oDAAoD,CAAA;AAC3D,OAAO,EACL,YAAY,EACZ,iBAAiB,EAClB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,OAAO,EACL,4BAA4B,EAC5B,iCAAiC,EAClC,MAAM,0DAA0D,CAAA;AAGjE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EACL,eAAe,EACf,oBAAoB,EACrB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EACL,oBAAoB,EACpB,Y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EACN,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,YAAY,GACb,CAAA;AACD,YAAY,EAAE,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAA;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var ReactDOM = require('react-dom/client');
5
4
  var platform = require('platform');
6
5
  var styled = require('styled-components');
7
6
  var reactI18next = require('react-i18next');
@@ -38,7 +37,6 @@ function _interopNamespaceCompat(e) {
38
37
  }
39
38
 
40
39
  var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
41
- var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceCompat(ReactDOM);
42
40
  var platform__default = /*#__PURE__*/_interopDefaultCompat(platform);
43
41
  var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
44
42
  var SparkMD5__default = /*#__PURE__*/_interopDefaultCompat(SparkMD5);
@@ -233,7 +231,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
233
231
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
234
232
  };
235
233
 
236
- var webSdkVersion = '2.2.124';
234
+ var webSdkVersion = '2.2.126';
237
235
 
238
236
  function getPlatform() {
239
237
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -7217,6 +7215,7 @@ var IdCaptureLoadingOverlayDefault = function IdCaptureLoadingOverlayDefault(_a)
7217
7215
  }), modelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer$1, {
7218
7216
  className: classNames.continueBtnContainer
7219
7217
  }, modelsReady && cameraReady && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton$1, {
7218
+ autoFocus: true,
7220
7219
  finished: true,
7221
7220
  className: classNames.continueBtn,
7222
7221
  variant: "positive",
@@ -7272,12 +7271,15 @@ var ProgressIndicator$1 = styled__default.default.span(templateObject_15$1 || (t
7272
7271
  }, progressBarAnimation);
7273
7272
  var CustomLoadingGraphic$1 = styled__default.default.img(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n transform-style: preserve-3d;\n"], ["\n transform-style: preserve-3d;\n"])));
7274
7273
  var ContinueButtonContainer$1 = styled__default.default.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
7275
- var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n"])), function (props) {
7274
+ var ContinueButton$1 = styled__default.default(LoaderButton)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"])), function (props) {
7276
7275
  var _a, _b, _c, _d, _e, _f;
7277
7276
  return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
7278
7277
  }, function (props) {
7279
7278
  var _a, _b, _c, _d, _e, _f;
7280
7279
  return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
7280
+ }, function (props) {
7281
+ var _a, _b, _c, _d, _e, _f;
7282
+ return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.idCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.idCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
7281
7283
  });
7282
7284
  var templateObject_1$z, templateObject_2$u, templateObject_3$m, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$6, templateObject_8$3, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18;
7283
7285
 
@@ -12069,6 +12071,13 @@ var StyledButtonsRow$6 = styled__default.default(ButtonsRow)(templateObject_2$c
12069
12071
  var templateObject_1$e, templateObject_2$c;
12070
12072
 
12071
12073
  var legacyInstructionImageUrl = "".concat(DEFAULT_CDN_URL, "/Selfie-Image-1.png");
12074
+ var OverlayInner = styled__default.default.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
12075
+ var _a, _b, _c, _d;
12076
+ return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
12077
+ }, function (props) {
12078
+ var _a, _b, _c, _d;
12079
+ return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.textColor) !== null && _d !== void 0 ? _d : 'black';
12080
+ });
12072
12081
  var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDefault(_a) {
12073
12082
  var onDismissed = _a.onDismissed,
12074
12083
  onUserCancel = _a.onUserCancel,
@@ -12187,6 +12196,7 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12187
12196
  }), allModelsReady ? verbiage.modelsReadyText : modelDownloadProgress >= 100 ? verbiage.modelsWarmingUpText : "".concat(verbiage.downloadingText, " (").concat(modelDownloadProgress, "%)")))), /*#__PURE__*/React__namespace.default.createElement(ContinueButtonContainer, {
12188
12197
  className: classNames.continueBtnContainer
12189
12198
  }, allModelsReady && cameraReady && ( /*#__PURE__*/React__namespace.default.createElement(ContinueButton, {
12199
+ autoFocus: true,
12190
12200
  finished: true,
12191
12201
  className: classNames.continueBtn,
12192
12202
  variant: "positive",
@@ -12197,13 +12207,6 @@ var SelfieCaptureLoadingOverlayDefault = function SelfieCaptureLoadingOverlayDef
12197
12207
  }
12198
12208
  }, verbiage.continueText))))));
12199
12209
  };
12200
- var OverlayInner = styled__default.default.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"], ["\n height: 100dvh;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n"])), function (props) {
12201
- var _a, _b, _c, _d;
12202
- return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.backgroundColor) !== null && _d !== void 0 ? _d : '#ecedf3';
12203
- }, function (props) {
12204
- var _a, _b, _c, _d;
12205
- return (_d = (_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.textColor) !== null && _d !== void 0 ? _d : 'black';
12206
- });
12207
12210
  var OverlayHeader = styled__default.default.div(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"], ["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n ", "\n padding-bottom: 0;\n"])), function (props) {
12208
12211
  var _a;
12209
12212
  return (_a = props.theme.textAlign) !== null && _a !== void 0 ? _a : 'center';
@@ -12239,12 +12242,15 @@ var ProgressIndicator = styled__default.default.span(templateObject_12 || (templ
12239
12242
  }, progressBarAnimation);
12240
12243
  var CustomLoadingGraphic = styled__default.default.img(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
12241
12244
  var ContinueButtonContainer = styled__default.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
12242
- var ContinueButton = styled__default.default(LoaderButton)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n"])), function (props) {
12245
+ var ContinueButton = styled__default.default(LoaderButton)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"], ["\n margin: auto;\n white-space: nowrap;\n ", "\n ", "\n \n &:focus-visible {\n ", "\n box-shadow: none;\n }\n"])), function (props) {
12243
12246
  var _a, _b, _c, _d, _e, _f;
12244
12247
  return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.progressBarFontSize) ? "font-size: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.selfieCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.progressBarFontSize, ";") : '';
12245
12248
  }, function (props) {
12246
12249
  var _a, _b, _c, _d, _e, _f;
12247
12250
  return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.selfieCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
12251
+ }, function (props) {
12252
+ var _a, _b, _c, _d, _e, _f;
12253
+ return ((_c = (_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.selfieCapture) === null || _b === void 0 ? void 0 : _b.loadingOverlay) === null || _c === void 0 ? void 0 : _c.continueBtnBorder) ? "border: ".concat((_f = (_e = (_d = props.theme) === null || _d === void 0 ? void 0 : _d.selfieCapture) === null || _e === void 0 ? void 0 : _e.loadingOverlay) === null || _f === void 0 ? void 0 : _f.continueBtnBorder, ";") : '';
12248
12254
  });
12249
12255
  var templateObject_1$d, templateObject_2$b, templateObject_3$b, templateObject_4$6, templateObject_5$3, templateObject_6$3, templateObject_7$2, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
12250
12256
 
@@ -17692,78 +17698,7 @@ var DocumentCapture = function DocumentCapture(_a) {
17692
17698
  };
17693
17699
 
17694
17700
  initializeI18n();
17695
- function renderElement(component, targetElement) {
17696
- if (typeof targetElement === 'string') {
17697
- var result = document.querySelector(targetElement);
17698
- if (!result) throw new Error("targetElement ".concat(targetElement, " not found"));
17699
- targetElement = result;
17700
- } else if (!targetElement) {
17701
- targetElement = document.createElement('div');
17702
- document.body.append(targetElement);
17703
- }
17704
- var root = ReactDOM__namespace.createRoot(targetElement);
17705
- root.render( /*#__PURE__*/React__namespace.default.createElement(OverlayContainer, null, component));
17706
- if ('remove' in targetElement) {
17707
- var originalRemove_1 = targetElement.remove;
17708
- targetElement.remove = function () {
17709
- try {
17710
- root.unmount();
17711
- originalRemove_1();
17712
- } catch (e) {
17713
- debug('failed to unmount', e);
17714
- }
17715
- };
17716
- }
17717
- return targetElement;
17718
- }
17719
- function renderComponent(Component, targetElement, options) {
17720
- if (!options) {
17721
- options = targetElement;
17722
- targetElement = undefined;
17723
- }
17724
- return renderElement( /*#__PURE__*/React__namespace.default.createElement(Component, _assign({}, options)), targetElement);
17725
- }
17726
- var renderIdValidation = function renderIdValidation(optionsOrTargetElement, options) {
17727
- return renderComponent(IdValidation, optionsOrTargetElement, options);
17728
- };
17729
- var renderFaceValidation = function renderFaceValidation(optionsOrTargetElement, options) {
17730
- return renderComponent(FaceValidation, optionsOrTargetElement, options);
17731
- };
17732
- var renderIdAndFaceValidation = function renderIdAndFaceValidation(optionsOrTargetElement, options) {
17733
- return renderComponent(IdAndFaceValidation, optionsOrTargetElement, options);
17734
- };
17735
- var renderCustomerIdAndBiometricsEnrollment = function renderCustomerIdAndBiometricsEnrollment(optionsOrTargetElement, options) {
17736
- return renderComponent(CustomerIdAndBiometricsEnrollment, optionsOrTargetElement, options);
17737
- };
17738
- var renderCustomerBiometricsEnrollment = function renderCustomerBiometricsEnrollment(optionsOrTargetElement, options) {
17739
- return renderComponent(CustomerBiometricsEnrollment, optionsOrTargetElement, options);
17740
- };
17741
- var renderCustomerVerification = function renderCustomerVerification(optionsOrTargetElement, options) {
17742
- return renderComponent(CustomerVerification, optionsOrTargetElement, options);
17743
- };
17744
- var renderCustomerIdentification = function renderCustomerIdentification(optionsOrTargetElement, options) {
17745
- return renderComponent(CustomerIdentification, optionsOrTargetElement, options);
17746
- };
17747
- var renderSignatureKYC = function renderSignatureKYC(optionsOrTargetElement, options) {
17748
- return renderComponent(SignatureKYC, optionsOrTargetElement, options);
17749
- };
17750
- var renderVideoIdValidation = function renderVideoIdValidation(optionsOrTargetElement, options) {
17751
- return renderComponent(VideoIdValidation, optionsOrTargetElement, options);
17752
- };
17753
- var renderDocumentCapture = function renderDocumentCapture(optionsOrTargetElement, options) {
17754
- return renderComponent(DocumentCapture, optionsOrTargetElement, options);
17755
- };
17756
17701
  globalThis.IDmissionSDK = {
17757
- renderIdValidation: renderIdValidation,
17758
- renderFaceValidation: renderFaceValidation,
17759
- renderIdAndFaceValidation: renderIdAndFaceValidation,
17760
- renderCustomerIdAndBiometricsEnrollment: renderCustomerIdAndBiometricsEnrollment,
17761
- renderCustomerBiometricsEnrollment: renderCustomerBiometricsEnrollment,
17762
- renderCustomerVerification: renderCustomerVerification,
17763
- renderCustomerIdentification: renderCustomerIdentification,
17764
- renderSignatureKYC: renderSignatureKYC,
17765
- renderVideoIdValidation: renderVideoIdValidation,
17766
- renderDocumentCapture: renderDocumentCapture,
17767
17702
  preloadModels: preloadModels,
17768
17703
  themes: themes,
17769
17704
  version: webSdkVersion,
@@ -17789,16 +17724,6 @@ exports.VideoIdValidation = VideoIdValidation;
17789
17724
  exports.allowedAuthUrls = allowedAuthUrls;
17790
17725
  exports.isObject = isObject;
17791
17726
  exports.preloadModels = preloadModels;
17792
- exports.renderCustomerBiometricsEnrollment = renderCustomerBiometricsEnrollment;
17793
- exports.renderCustomerIdAndBiometricsEnrollment = renderCustomerIdAndBiometricsEnrollment;
17794
- exports.renderCustomerIdentification = renderCustomerIdentification;
17795
- exports.renderCustomerVerification = renderCustomerVerification;
17796
- exports.renderDocumentCapture = renderDocumentCapture;
17797
- exports.renderFaceValidation = renderFaceValidation;
17798
- exports.renderIdAndFaceValidation = renderIdAndFaceValidation;
17799
- exports.renderIdValidation = renderIdValidation;
17800
- exports.renderSignatureKYC = renderSignatureKYC;
17801
- exports.renderVideoIdValidation = renderVideoIdValidation;
17802
17727
  exports.setServerUrl = setServerUrl;
17803
17728
  exports.themes = themes;
17804
17729
  //# sourceMappingURL=sdk2.cjs.development.js.map