@checktiv/sdk-web 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +16 -1
  2. package/dist/agents/AGENTS.md +8 -0
  3. package/dist/agents/manifest.json +12 -0
  4. package/dist/capture-ui.d.ts +4 -4
  5. package/dist/capture-ui.js +6 -5
  6. package/dist/capture.d.ts +3 -3
  7. package/dist/capture.js +3 -2
  8. package/dist/challenge.js +2 -2
  9. package/dist/chunk-3KEVZCCZ.js +3 -0
  10. package/dist/chunk-CAI3JWWU.js +12 -0
  11. package/dist/chunk-EOTGVXW6.js +7 -0
  12. package/dist/{chunk-HV2QKVJX.js → chunk-FQSJUWRP.js} +1 -1
  13. package/dist/{chunk-YRM5SYRT.js → chunk-HWABVMID.js} +3 -3
  14. package/dist/chunk-MLQ2HMTS.js +3 -0
  15. package/dist/chunk-O3JECGW2.js +3 -0
  16. package/dist/chunk-PB2THQ3P.js +8 -0
  17. package/dist/chunk-TKK5CTVG.js +59 -0
  18. package/dist/chunk-VMWTID63.js +3 -0
  19. package/dist/{chunk-LRKS6JEP.js → chunk-YE2LWN74.js} +1 -1
  20. package/dist/collect-user-info.d.ts +3 -3
  21. package/dist/collect-user-info.js +2 -2
  22. package/dist/{controller-CO5r6vXD.d.ts → controller-Dh-rSrot.d.ts} +2 -1
  23. package/dist/{copy-D6Sd0BIe.d.ts → copy-Bsb1n1Wv.d.ts} +1 -1
  24. package/dist/credit-history.d.ts +4 -0
  25. package/dist/credit-history.js +12 -0
  26. package/dist/cross-device.js +2 -2
  27. package/dist/custom-form.css +1 -1
  28. package/dist/custom-form.d.ts +3 -3
  29. package/dist/custom-form.js +4 -4
  30. package/dist/esign/ceremony-runtime.js +1 -1
  31. package/dist/esign.d.ts +15 -3
  32. package/dist/esign.js +10 -5
  33. package/dist/fraud.d.ts +3 -3
  34. package/dist/fraud.js +2 -2
  35. package/dist/idv/cross-device.d.ts +7 -7
  36. package/dist/idv.d.ts +3 -3
  37. package/dist/idv.js +9 -9
  38. package/dist/{api-EY_fOZm-.d.ts → index-CGH7LlPH.d.ts} +266 -108
  39. package/dist/{index-iyKwn5_z.d.ts → index-CZt19Km4.d.ts} +5 -5
  40. package/dist/index.d.ts +6 -6
  41. package/dist/index.js +5 -4
  42. package/dist/{machine-DXxarDcC.d.ts → machine-EePe2ERe.d.ts} +13 -1
  43. package/dist/react.d.ts +4 -4
  44. package/dist/react.js +8 -7
  45. package/dist/workspace.d.ts +3 -3
  46. package/dist/workspace.js +1 -1
  47. package/package.json +29 -10
  48. package/dist/chunk-2SPZA3CQ.js +0 -3
  49. package/dist/chunk-GFHNOZVO.js +0 -3
  50. package/dist/chunk-NHNGQ5BB.js +0 -66
  51. package/dist/chunk-SU6RE6UR.js +0 -12
  52. package/dist/chunk-T6NMRTFB.js +0 -7
  53. package/dist/chunk-XOGHMNBX.js +0 -3
  54. package/dist/chunk-YK4WW4LX.js +0 -7
@@ -1,6 +1,6 @@
1
- import { S as SdkRegion } from './api-EY_fOZm-.js';
2
- import './machine-DXxarDcC.js';
3
- import './copy-D6Sd0BIe.js';
1
+ import { $ as SdkRegion } from './index-CGH7LlPH.js';
2
+ import './machine-EePe2ERe.js';
3
+ import './copy-Bsb1n1Wv.js';
4
4
  import './copy-DCeQ4JKx.js';
5
5
 
6
6
  interface WorkspaceTokenBundle {
package/dist/workspace.js CHANGED
@@ -1,6 +1,6 @@
1
- import { initTransport } from './chunk-UVTAPUGQ.js';
2
1
  import { isCanonicalOrigin, sdkPublicSettings } from './chunk-HFQJYEGZ.js';
3
2
  import { getServiceOrigin } from './chunk-QFA3K5ZV.js';
3
+ import { initTransport } from './chunk-UVTAPUGQ.js';
4
4
  import './chunk-AIK7CDV6.js';
5
5
 
6
6
  var REVIEWER_COMPONENT="reviewer";var LOADER_PROTOCOL_VERSION=1;var NAVIGATION_EVENTS=new Set(["session_complete","navigate_away"]);function parseWorkspaceInbound(data){if(typeof data!=="object"||data===null)return null;const record=data;const type=record.type;if(type==="wk:ready"){if(record.component!==REVIEWER_COMPONENT)return null;if(typeof record.sessionId!=="string"||record.sessionId.length===0)return null;if(typeof record.nonce!=="string"||record.nonce.length===0)return null;return {type:"wk:ready",component:REVIEWER_COMPONENT,sessionId:record.sessionId,nonce:record.nonce,...typeof record.protocolVersion==="number"?{protocolVersion:record.protocolVersion}:{}}}if(type==="wk:token_refresh"){return {type:"wk:token_refresh",...typeof record.protocolVersion==="number"?{protocolVersion:record.protocolVersion}:{}}}if(type==="wk:event"){if(record.component!==REVIEWER_COMPONENT)return null;const event=record.event;if(typeof event!=="string"||!NAVIGATION_EVENTS.has(event)){return null}return {type:"wk:event",component:REVIEWER_COMPONENT,event,...typeof record.protocolVersion==="number"?{protocolVersion:record.protocolVersion}:{}}}if(type==="wk:error"){const code=record.code;if(code!=="session_expired"&&code!=="protocol_mismatch"&&code!=="origin_rejected"&&code!=="nonce_mismatch"){return null}return {type:"wk:error",code,...typeof record.protocolVersion==="number"?{protocolVersion:record.protocolVersion}:{}}}return null}function makeNonce(){const c=globalThis.crypto;if(c&&typeof c.randomUUID==="function")return c.randomUUID();return `wkn_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`}function buildInitMessage(dataToken,nonce){return {type:"wk:init",component:REVIEWER_COMPONENT,dataToken,nonce,protocolVersion:LOADER_PROTOCOL_VERSION}}function buildErrorMessage(code){return {type:"wk:error",code,protocolVersion:LOADER_PROTOCOL_VERSION}}function wireWorkspaceTransport(options){const{win,workspaceOrigin,currentNonce,handlers}=options;return initTransport({win,allowedOrigins:[workspaceOrigin],parse:parseWorkspaceInbound,accept:message=>{if(message.type!=="wk:ready")return true;const current=currentNonce();if(current===null)return true;return message.nonce===current},onMessage:(message,post,origin)=>{switch(message.type){case "wk:ready":handlers.onReady(message,post,origin);return;case "wk:token_refresh":handlers.onTokenRefresh(post,origin);return;case "wk:event":handlers.onNavigation(message.event,origin);return;case "wk:error":handlers.onError(message,origin);return;default:return assertNeverInbound(message)}}})}function assertNeverInbound(message){throw new Error(`Unhandled workspace inbound message: ${JSON.stringify(message)}`)}function createWorkspaceTokenPair(getToken,sessionId){let cached=null;let pending=null;let liveDataToken=null;const mint=reason=>{const p=getToken({sessionId:sessionId(),reason});void p.then(bundle=>{liveDataToken=bundle.dataToken;},()=>{});return p};const initialBundle=()=>{if(cached!==null)return cached;const p=mint("initial");cached=p;void p.catch(()=>{if(cached===p)cached=null;});return p};return {framingToken(){return initialBundle().then(b=>b.framingToken)},currentDataToken(){return liveDataToken},dataToken(){return initialBundle().then(b=>b.dataToken)},refreshDataToken(){if(pending!==null)return pending.then(b=>b.dataToken);const p=mint("refresh");pending=p;cached=p;void p.then(()=>{if(pending===p)pending=null;},()=>{if(pending===p)pending=null;if(cached===p)cached=null;});return p.then(b=>b.dataToken)}}}function resolveWorkspaceOrigin(region){return getServiceOrigin(sdkPublicSettings.apps["workspace-embed"].subdomain,"prod",region,sdkPublicSettings)}function resolveWorkspaceBaseOrigin(workspaceBaseUrl,region){if(isCanonicalOrigin(workspaceBaseUrl))return workspaceBaseUrl;return resolveWorkspaceOrigin(region)}var REVIEWER_PATH_PREFIX="/reviewer";function buildReviewerSrc(origin,sessionId,framingToken,theme){const path=`${REVIEWER_PATH_PREFIX}/${encodeURIComponent(sessionId)}`;const url=new URL(path,`${origin}/`);url.searchParams.set("ctx",framingToken);if(theme?.primaryColor!==void 0&&theme.primaryColor.length>0){url.searchParams.set("primary",theme.primaryColor);}if(theme?.colorMode!==void 0){url.searchParams.set("mode",theme.colorMode);}if(theme?.logoUrl!==void 0&&theme.logoUrl.length>0){url.searchParams.set("logo",theme.logoUrl);}if(theme?.brandName!==void 0&&theme.brandName.length>0){url.searchParams.set("brand",theme.brandName);}return url.toString()}var IFRAME_SANDBOX="allow-scripts allow-same-origin allow-downloads";function createReviewerController(deps){return {mount(options){return mountReviewer(deps,options)}}}function mountReviewer(deps,options){const doc=deps.doc??deps.win.document;const{sessionId,target,onEvent}=options;const tokens=createWorkspaceTokenPair(deps.getToken,()=>sessionId);const workspaceOrigin=resolveWorkspaceBaseOrigin(deps.workspaceBaseUrl,deps.region);let currentNonce=null;let consecutiveRefreshRejects=0;const container=doc.createElement("div");container.style.width="100%";container.style.height="100%";target.appendChild(container);const iframe=doc.createElement("iframe");iframe.setAttribute("title","Identity review");iframe.setAttribute("sandbox",IFRAME_SANDBOX);iframe.setAttribute("referrerpolicy","no-referrer");Object.assign(iframe.style,{width:"100%",height:"100%",border:"0",display:"block"});container.appendChild(iframe);let destroyed=false;let transport=null;const emit=event=>{if(destroyed)return;try{onEvent?.(event);}catch{}};const deliverInit=(dataToken,post)=>{if(destroyed)return;currentNonce=makeNonce();post(buildInitMessage(dataToken,currentNonce));};transport=wireWorkspaceTransport({win:deps.win,workspaceOrigin,currentNonce:()=>currentNonce,handlers:{onReady:(_message,post)=>{consecutiveRefreshRejects=0;if(currentNonce!==null)return;void tokens.dataToken().then(dataToken=>{if(destroyed)return;deliverInit(dataToken,post);}).catch(()=>{emit({type:"checktiv.workspace.error",code:"session_expired",recoverable:true,recovery:"retry_review"});});},onTokenRefresh:post=>{void tokens.refreshDataToken().then(fresh=>{consecutiveRefreshRejects=0;deliverInit(fresh,post);}).catch(()=>{if(destroyed)return;consecutiveRefreshRejects+=1;if(consecutiveRefreshRejects>=2){post(buildErrorMessage("session_expired"));emit({type:"checktiv.workspace.error",code:"session_expired",recoverable:true,recovery:"retry_review"});}});},onNavigation:intent=>{emit({type:"checktiv.workspace.navigate",intent});},onError:message=>{const recoverable=message.code==="session_expired";emit({type:"checktiv.workspace.error",code:message.code,recoverable,recovery:recoverable?"retry_review":"reload_host"});}}});void tokens.framingToken().then(framingToken=>{if(destroyed)return;iframe.src=buildReviewerSrc(workspaceOrigin,sessionId,framingToken,deps.theme);}).catch(()=>{emit({type:"checktiv.workspace.error",code:"session_expired",recoverable:true,recovery:"retry_review"});});return {destroy(){if(destroyed)return;destroyed=true;transport?.teardown();transport=null;container.remove();}}}function workspace(config){const controller=createReviewerController({getToken:config.getToken,region:config.region,workspaceBaseUrl:config.workspaceBaseUrl,theme:config.theme,win:window});return {mount(_component,options){return controller.mount(options)}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checktiv/sdk-web",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -34,6 +34,10 @@
34
34
  "types": "./dist/esign.d.ts",
35
35
  "import": "./dist/esign.js"
36
36
  },
37
+ "./credit-history": {
38
+ "types": "./dist/credit-history.d.ts",
39
+ "import": "./dist/credit-history.js"
40
+ },
37
41
  "./react": {
38
42
  "types": "./dist/react.d.ts",
39
43
  "import": "./dist/react.js"
@@ -63,18 +67,26 @@
63
67
  "./package.json": "./package.json"
64
68
  },
65
69
  "sideEffects": [
66
- "./src/idv/index.ts",
70
+ "./src/idv/register.ts",
71
+ "./src/idv/chunk-entry.ts",
72
+ "./src/idv/cdn.ts",
67
73
  "./src/idv/cross-device.ts",
68
74
  "./src/idv/cross-device-cdn.ts",
69
- "./src/fraud/index.ts",
70
- "./src/custom-form/index.ts",
71
- "./src/esign/index.ts",
75
+ "./src/fraud/register.ts",
76
+ "./src/fraud/cdn.ts",
77
+ "./src/custom-form/register.ts",
78
+ "./src/custom-form/cdn.ts",
79
+ "./src/esign/register.ts",
80
+ "./src/esign/cdn.ts",
81
+ "./src/credit-history/index.ts",
82
+ "./src/credit-history/cdn.ts",
72
83
  "./src/cdn.ts",
73
84
  "./dist/idv.js",
74
85
  "./dist/idv/cross-device.js",
75
86
  "./dist/fraud.js",
76
87
  "./dist/custom-form.js",
77
88
  "./dist/esign.js",
89
+ "./dist/credit-history.js",
78
90
  "*.css"
79
91
  ],
80
92
  "files": [
@@ -84,8 +96,8 @@
84
96
  "qrcode-generator": "2.0.4"
85
97
  },
86
98
  "peerDependencies": {
87
- "react": "^19.2.7",
88
- "react-dom": "^19.2.7"
99
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
100
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
89
101
  },
90
102
  "peerDependenciesMeta": {
91
103
  "react": {
@@ -96,19 +108,26 @@
96
108
  }
97
109
  },
98
110
  "scripts": {
99
- "build": "NODE_OPTIONS=--max-old-space-size=4096 tsup && node scripts/generate-agent-steering.mjs && pnpm run build:embed-capture && pnpm run build:embed-challenge && pnpm run build:embed-esign && pnpm run build:host-capture && pnpm run build:cross-device",
111
+ "build": "NODE_OPTIONS=--max-old-space-size=6144 tsup && node scripts/generate-agent-steering.mjs && pnpm run build:embed-capture && pnpm run build:embed-challenge && pnpm run build:embed-esign && pnpm run build:embed-credit && pnpm run build:host-capture && pnpm run build:chunks",
100
112
  "build:embed-capture": "node scripts/build-embed-capture.mjs",
101
113
  "build:embed-challenge": "node scripts/build-embed-challenge.mjs",
102
114
  "build:embed-esign": "node scripts/build-embed-esign.mjs",
115
+ "build:embed-credit": "node scripts/build-embed-credit.mjs",
103
116
  "build:host-capture": "node scripts/build-host-capture.mjs",
104
- "build:cross-device": "node scripts/build-cross-device.mjs",
117
+ "build:chunks": "node scripts/build-module-chunk.mjs",
105
118
  "test": "vitest run",
106
119
  "typecheck": "tsc --noEmit",
107
120
  "lint": "echo 'lint via tsc'",
108
- "size": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/sdk.js 119808",
121
+ "size": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/sdk.js 17408",
109
122
  "size:host-capture": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/capture.js 82944",
110
123
  "size:host-capture-ui": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/capture-ui.js 89088",
111
124
  "size:cross-device": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/cross-device.js 20480",
125
+ "size:credit-host": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/credit-history.js 6144",
126
+ "size:fraud": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/fraud.js 6144",
127
+ "size:custom-form": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/custom-form.js 11264",
128
+ "size:esign": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/esign.js 14336",
129
+ "size:idv": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/idv.js 94208",
130
+ "size:embed-credit": "node ../../scripts/audit-bundle-size.mjs ../../services/sdk-cdn/public/v1/embed/credit-entry.js 21504",
112
131
  "size:npm": "node ../../scripts/audit-sdk-entry-size.mjs",
113
132
  "validate:publint": "publint --strict",
114
133
  "validate:attw": "node ../../scripts/validate-sdk-attw.mjs",
@@ -1,3 +0,0 @@
1
- var ESIGN_STATES=["preparing","consent","read","scroll_incomplete","adopt","age_gate","explain","sign","decline","withdraw","obscured","frame_blocked","age_blocked","conflict","token_expired","protocol_mismatch","error","submit_error","terminal_signed","terminal_declined","terminal_voided","terminal_expired","terminal_withdrawn"];var ESIGN_FRAME_FATAL_STATES=["conflict","protocol_mismatch","error"];function isEsignFrameFatalState(state){return ESIGN_FRAME_FATAL_STATES.includes(state)}var TERMINAL_STATUS_TO_STATE={signed:"terminal_signed",declined:"terminal_declined",voided:"terminal_voided",expired:"terminal_expired"};function isTerminalEnvelopeStatus(status){return Object.prototype.hasOwnProperty.call(TERMINAL_STATUS_TO_STATE,status)}var ESIGN_CONSENT_ACTIONS=["withdraw_consent","request_paper_copy"];var ESIGN_DOCUMENT_ACTIONS=["download"];var ESIGN_STATE_RIGHTS={preparing:"none",consent:"both",read:"both",scroll_incomplete:"both",adopt:"both",age_gate:"both",explain:"both",sign:"both",decline:"both",withdraw:"both",obscured:"both",age_blocked:"none",frame_blocked:"none",conflict:"none",token_expired:"none",protocol_mismatch:"none",error:"none",submit_error:"none",terminal_signed:"none",terminal_declined:"none",terminal_voided:"none",terminal_expired:"none",terminal_withdrawn:"none"};function esignStateOffersRights(state){return ESIGN_STATE_RIGHTS[state]!=="none"}var ESIGN_PREPARING_MAX_INTERVAL_MS=5e3;var ESIGN_PREPARING_MAX_ATTEMPTS=12;var ESIGN_PREPARING_STALL_MS=2e4;var ESIGN_FRAME_ANNOUNCE_TIMEOUT_MS=2e4;var ESIGN_PREPARING_DEFAULT_INTERVAL_MS=1500;function esignPreparingDelayMs(retryAfterMs){const floor=typeof retryAfterMs==="number"&&Number.isFinite(retryAfterMs)&&retryAfterMs>0?retryAfterMs:ESIGN_PREPARING_DEFAULT_INTERVAL_MS;return Math.min(floor,ESIGN_PREPARING_MAX_INTERVAL_MS)}var ESIGN_SCROLL_TARGET_MARGIN_PX=24;var ESIGN_COPY_FALLBACKS={preparing:"Your documents are being prepared. This page will update on its own in a moment.",consent:"Select the signature line in the document to add your signature. Confirming it also records your agreement to use electronic records.",read:"Read the full document below. Scroll to the end to continue.",scroll_incomplete:"You have not reached the end of the document yet. Scroll to the bottom and the Finish button turns on.",adopt:"Select the signature line in the document. Adding your signature also records your agreement to use electronic records.",age_gate:"Confirm that you meet the minimum age for this document, then continue.",explain:"Selecting Finish applies the signature you adopted to the document above and records the date and time. Read the document once more if you want to, then select Finish.",sign:"Select Finish to apply your signature to the document above.",decline:"Tell us why you do not want to sign, then select Send my decline. You can close this window afterward.",withdraw:"You can stop using electronic records for this document. Confirm below to stop here, and nothing will be signed. Asking for a mailed paper copy is a separate control, and it stays available afterward.",obscured:"The Finish button is covered by something else on this page, so it is turned off for now. Open your signing link directly in a new window to continue.",frame_blocked:"The signing window did not open. Reload the page to try again. If it still does not open, try a different browser, or ask the company that sent you this link for help.",conflict:"This document changed while you had it open. Reload the page to get the current version before you sign.",token_expired:"This signing page needs a fresh connection. Reload the page to pick up where you left off.",protocol_mismatch:"This page is out of date and cannot show the document safely. Reload the page. If it keeps happening, contact the company that sent you this link.",error:"Something went wrong loading your document. Reload the page to try again. If it keeps happening, contact the company that sent you this link.",submit_error:"We could not confirm that your signature was recorded. Reload the page to see whether it went through, and sign again if it did not.",terminal_signed:"This document is signed. Nothing else is needed here, so you can close this window.",terminal_declined:"You declined to sign this document. If that was a mistake, contact the company that sent you this link.",terminal_voided:"This document was canceled and can no longer be signed. Contact the company that sent you this link if you still need to sign it.",terminal_expired:"The time to sign this document has passed. Contact the company that sent you this link to ask for a new one.",terminal_withdrawn:"You withdrew your agreement to sign electronically, so nothing was signed. The company that sent you this link has been told. Contact them to ask for this document on paper, or for a new signing link if you change your mind.",age_blocked:"This document can only be signed by someone above a minimum age, so it cannot be signed here. Nothing was signed. You can decline to sign from More actions, or contact the company that sent you this link if you think this is wrong.",frameTitle:"Document signing"};var ESIGN_LABELS=["finish","adopt","cancel","change","tryAgain","reload","reloadToCheck","getHelp","moreActions","jumpToEnd","readNotice","signatureBlock","signatureBlockDone","finishLater","printAndSign","decline","declineSubmit","declineCancel","signatureName","signatureStyle","declineReason","ageConfirm","documentHeading","signatureHeading"];var ESIGN_LABEL_FALLBACKS={finish:"Finish",adopt:"Use this signature",cancel:"Cancel",change:"Change",tryAgain:"Try again",reload:"Reload the page",reloadToCheck:"Reload to check",getHelp:"Get help",moreActions:"More actions",readNotice:"Notice and your rights",jumpToEnd:"Jump to the end",signatureBlock:"Add your signature here. Required.",signatureBlockDone:"Your signature. Select to change it.",finishLater:"Finish later",printAndSign:"Print and sign",decline:"Decline to sign",declineSubmit:"Send my decline",declineCancel:"Go back",signatureName:"Your full legal name",signatureStyle:"Signature style",declineReason:"Why are you declining?",ageConfirm:"I meet the minimum age",documentHeading:"Document",signatureHeading:"Your signature"};var ESIGN_RIGHTS_KEYS=["heading","intro","withdraw","paperCopy","working","error","confirmTitle","confirmBody","confirmSubmit","confirmCancel","withdrawnBeforeSigning","withdrawnAfterSigning","paperCopyRequested","paperCopyAlreadyOutstanding"];var ESIGN_RIGHTS_FALLBACKS={heading:"Your rights",intro:"You do not have to use electronic records. You can stop using them for this document, or ask for a paper copy in the mail. Neither costs anything.",withdraw:"Stop using electronic records",paperCopy:"Ask for a mailed paper copy",working:"Working on your request.",error:"Your request did not go through. Select it again. If it keeps failing, contact the company that sent you this link.",confirmTitle:"Withdraw your consent?",confirmBody:"This ends the signing session and no electronic signature is recorded for you. The company that sent you this link is told that you withdrew. This costs nothing and no penalty applies, and you can still ask for a mailed paper copy afterward.",confirmSubmit:"Yes, withdraw consent",confirmCancel:"Go back",withdrawnBeforeSigning:"You withdrew your consent to use electronic records, and nothing was signed. The company that sent you this link has been told. If you want this document on paper, ask for a copy below. You can close this window.",withdrawnAfterSigning:"You withdrew your consent to use electronic records. The document you already signed still stands, because a signature cannot be taken back after the fact. The company that sent you this link has been told. If you want this document on paper, ask them to send you a copy.",paperCopyRequested:"We asked the company that sent you this link to send you a paper copy. There is no fee.",paperCopyAlreadyOutstanding:"A paper copy is already on its way to you, so there was nothing new to request."};var ESIGN_OUTCOME_RIGHTS_KEY={consent_withdrawn_before_signing:"withdrawnBeforeSigning",consent_withdrawn_after_signing:"withdrawnAfterSigning",paper_copy_requested:"paperCopyRequested",paper_copy_already_outstanding:"paperCopyAlreadyOutstanding"};function isEsignConsentOutcome(value){return Object.prototype.hasOwnProperty.call(ESIGN_OUTCOME_RIGHTS_KEY,value)}var ESIGN_DOCUMENT_KEYS=["download","printAndSignStarted","downloadFailed","downloadRemoved"];var ESIGN_DOCUMENT_FALLBACKS={download:"Download a copy",printAndSignStarted:"Print your copy, sign it by hand, and send it to the company that sent you this link. You cannot return a printed page through this page.",downloadFailed:"We could not download that document. Select it again. If it keeps failing, contact the company that sent you this link.",downloadRemoved:"This copy is no longer stored. Ask the company that sent you this link to send you a new copy or a printed record."};var ESIGN_COUNT_TOKEN="{count}";var ESIGN_SHELL_KEYS=["stepsBlocked","gateRead","gateSignature","gateAge","consentTermsLink","consentTermsNewWindow","consentAgeAttest","consentError","adoptTitle","adoptConsent","adoptFinePrint","declineTitle","declineBody","finishLaterTitle","finishLaterBody","disclosureTitle","disclosureVersionLabel","disclosurePublicCopy","disclosureBack","statusSigned","statusDeclined","statusVoided","statusExpired","statusWithdrawn"];var ESIGN_SHELL_FALLBACKS={stepsBlocked:"Not finished yet. Taking you to what is left.",gateRead:"Please read to the end",gateSignature:"Please sign above",gateAge:"Please confirm your age",consentTermsLink:"See terms.",consentTermsNewWindow:"Opens in a new window.",consentAgeAttest:"I am {count} or older.",consentError:"We could not record your agreement, so your signature was not added. Select the signature line in the document to try again.",adoptTitle:"Add your signature",adoptConsent:"Selecting Use this signature also records your agreement to sign and to get records for this document electronically.",adoptFinePrint:"Use this signature adopts what you see above as your signature. Selecting Finish signs the document.",declineTitle:"Decline to sign?",declineBody:"This ends your signing session and tells the company that sent you this link. No penalty applies. You can ask them for a new link later.",finishLaterTitle:"Finish later?",finishLaterBody:"Come back to this same link any time before the deadline. What you have done is kept.",disclosureTitle:"Using electronic records",disclosureVersionLabel:"Notice version",disclosurePublicCopy:"Open this notice in a new window",disclosureBack:"Back to the document",statusSigned:"Signed",statusDeclined:"Declined",statusVoided:"Canceled",statusExpired:"Expired",statusWithdrawn:"Withdrawn"};var ESIGN_TERMINAL_STATUS_KEY={terminal_signed:"statusSigned",terminal_declined:"statusDeclined",terminal_voided:"statusVoided",terminal_expired:"statusExpired",terminal_withdrawn:"statusWithdrawn"};function resolveEsignDocumentCopy(copy,key){const injected=copy?.documents?.[key];if(typeof injected==="string"&&injected.length>0)return injected;return ESIGN_DOCUMENT_FALLBACKS[key]}function resolveEsignShellCopy(copy,key){const injected=copy?.shell?.[key];if(typeof injected==="string"&&injected.length>0)return injected;return ESIGN_SHELL_FALLBACKS[key]}function resolveEsignTerminalStatus(copy,state){return resolveEsignShellCopy(copy,ESIGN_TERMINAL_STATUS_KEY[state])}function resolveEsignRightsCopy(copy,key){const injected=copy?.rights?.[key];if(typeof injected==="string"&&injected.length>0)return injected;return ESIGN_RIGHTS_FALLBACKS[key]}function resolveEsignOutcomeCopy(copy,outcome){return resolveEsignRightsCopy(copy,ESIGN_OUTCOME_RIGHTS_KEY[outcome])}function resolveEsignLabel(copy,label){const injected=copy?.labels?.[label];if(typeof injected==="string"&&injected.length>0)return injected;return ESIGN_LABEL_FALLBACKS[label]}function resolveEsignCopy(copy,state){const injected=copy?.[state];if(typeof injected==="string"&&injected.length>0)return injected;return ESIGN_COPY_FALLBACKS[state]}function resolveEsignFrameTitle(copy){const injected=copy?.frameTitle;if(typeof injected==="string"&&injected.length>0)return injected;return ESIGN_COPY_FALLBACKS.frameTitle}var ESIGN_COPY_STATE_KEYS=ESIGN_STATES;
2
-
3
- export { ESIGN_CONSENT_ACTIONS, ESIGN_COPY_FALLBACKS, ESIGN_COPY_STATE_KEYS, ESIGN_COUNT_TOKEN, ESIGN_DOCUMENT_ACTIONS, ESIGN_DOCUMENT_FALLBACKS, ESIGN_DOCUMENT_KEYS, ESIGN_FRAME_ANNOUNCE_TIMEOUT_MS, ESIGN_LABELS, ESIGN_LABEL_FALLBACKS, ESIGN_OUTCOME_RIGHTS_KEY, ESIGN_PREPARING_MAX_ATTEMPTS, ESIGN_PREPARING_STALL_MS, ESIGN_RIGHTS_FALLBACKS, ESIGN_RIGHTS_KEYS, ESIGN_SCROLL_TARGET_MARGIN_PX, ESIGN_SHELL_FALLBACKS, ESIGN_SHELL_KEYS, ESIGN_STATES, ESIGN_STATE_RIGHTS, ESIGN_TERMINAL_STATUS_KEY, TERMINAL_STATUS_TO_STATE, esignPreparingDelayMs, esignStateOffersRights, isEsignConsentOutcome, isEsignFrameFatalState, isTerminalEnvelopeStatus, resolveEsignCopy, resolveEsignDocumentCopy, resolveEsignFrameTitle, resolveEsignLabel, resolveEsignOutcomeCopy, resolveEsignRightsCopy, resolveEsignShellCopy, resolveEsignTerminalStatus };
@@ -1,3 +0,0 @@
1
- var registry={};function registerModule(name,factory){registry[name]=factory;}function getModule(name){return registry[name]}
2
-
3
- export { getModule, registerModule };