@hubsync/esign-web-sdk 6.9.37 → 6.9.39
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/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog_8.cjs.entry.js +10 -10
- package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.css +21 -21
- package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.js +9 -9
- package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.js.map +1 -1
- package/dist/components/p-DVaiNky1.js +119 -0
- package/dist/components/p-DVaiNky1.js.map +1 -0
- package/dist/components/verdocs-sign.js +1 -1
- package/dist/components/verdocs-signing-progress.js +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog_8.entry.js +10 -10
- package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js.map +1 -1
- package/dist/verdocs-web-sdk/{p-e3ee210c.entry.js → p-059fd4b5.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e3ee210c.entry.js.map → p-059fd4b5.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-BGdNE0B2.system.js.map → p-BwRWY36P.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-7823a3a5.system.entry.js → p-e39c7d6b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7823a3a5.system.entry.js.map → p-e39c7d6b.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-BbBC_p0y.js +0 -119
- package/dist/components/p-BbBC_p0y.js.map +0 -1
|
@@ -4432,7 +4432,7 @@ const VerdocsPasscodeDialog = class {
|
|
|
4432
4432
|
};
|
|
4433
4433
|
VerdocsPasscodeDialog.style = verdocsPasscodeDialogCss;
|
|
4434
4434
|
|
|
4435
|
-
const verdocsSigningProgressCss = "verdocs-signing-progress{position:
|
|
4435
|
+
const verdocsSigningProgressCss = "verdocs-signing-progress{position:absolute;top:70px;left:20px;z-index:900;display:block;font-family:var(--verdocs-primary-font, \"Inter\", \"Barlow\", sans-serif)}@media (max-width: 600px){verdocs-signing-progress{display:none}}verdocs-signing-progress .vsp-card{background:white;padding:16px;border-radius:8px;-webkit-box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);width:240px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}verdocs-signing-progress .vsp-header{font-size:14px;color:#111827;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:6px}verdocs-signing-progress .vsp-header .vsp-progress-line.vsp-optional{color:#6b7280}verdocs-signing-progress .vsp-header-completed{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#111827}verdocs-signing-progress .vsp-description{font-size:12px;line-height:16px;color:#374151}verdocs-signing-progress .vsp-field-label{font-family:var(--verdocs-primary-font, var(--verdocs-primary-font, \"Inter\", \"Barlow\", sans-serif));font-size:0.75rem;line-height:1rem;font-weight:400;color:var(--verdocs-body-color, #242424)}verdocs-signing-progress .vsp-field-completed{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;font-size:0.75rem;line-height:1rem;font-weight:400;color:var(--verdocs-body-color, #242424)}verdocs-signing-progress .vsp-field-completed .vsp-text{position:relative;top:-2px}verdocs-signing-progress .vsp-separator{height:1px;background-color:#e5e7eb;width:100%}verdocs-signing-progress .vsp-btn{width:100%;height:32px;border-radius:4px;font-weight:600;font-size:0.75rem;line-height:1rem;cursor:pointer;border:1px solid transparent;-webkit-transition:all 0.2s;transition:all 0.2s;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-signing-progress .vsp-btn:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .vsp-btn.vsp-start,verdocs-signing-progress .vsp-btn.vsp-submit,verdocs-signing-progress .vsp-btn.vsp-next{background-color:var(--verdocs-primary-color, #55bc81);color:white}verdocs-signing-progress .vsp-btn.vsp-start:hover:not(:disabled),verdocs-signing-progress .vsp-btn.vsp-submit:hover:not(:disabled),verdocs-signing-progress .vsp-btn.vsp-next:hover:not(:disabled){background-color:var(--verdocs-primary-color-hover, #2b995b)}verdocs-signing-progress .vsp-btn.vsp-start:disabled,verdocs-signing-progress .vsp-btn.vsp-submit:disabled,verdocs-signing-progress .vsp-btn.vsp-next:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .vsp-btn.vsp-previous{background-color:#f3f4f6;color:#374151}verdocs-signing-progress .vsp-btn.vsp-previous:hover:not(:disabled){background-color:#e5e7eb}verdocs-signing-progress .vsp-btn.vsp-previous:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .vsp-nav-buttons{display:-ms-flexbox;display:flex;gap:12px;width:100%}verdocs-signing-progress .vsp-nav-buttons .vsp-btn{-ms-flex:1;flex:1}";
|
|
4436
4436
|
|
|
4437
4437
|
const VerdocsSigningProgress = class {
|
|
4438
4438
|
constructor(hostRef) {
|
|
@@ -4467,24 +4467,24 @@ const VerdocsSigningProgress = class {
|
|
|
4467
4467
|
}
|
|
4468
4468
|
renderContent(fieldLabel, fieldCompleted, readyToSubmit) {
|
|
4469
4469
|
if (this.mode === 'start') {
|
|
4470
|
-
return index.h("div", { class: "field-label" }, fieldLabel);
|
|
4470
|
+
return index.h("div", { class: "vsp-field-label" }, fieldLabel);
|
|
4471
4471
|
}
|
|
4472
4472
|
if (fieldCompleted && readyToSubmit) {
|
|
4473
|
-
return (index.h("div", { class: "field-completed" }, index.h("div", { class: "icon" }, this.renderSuccessIcon()), index.h("span", { class: "text" }, "Ready to submit.")));
|
|
4473
|
+
return (index.h("div", { class: "vsp-field-completed" }, index.h("div", { class: "vsp-icon" }, this.renderSuccessIcon()), index.h("span", { class: "vsp-text" }, "Ready to submit.")));
|
|
4474
4474
|
}
|
|
4475
|
-
return index.h("div", { class: "field-label" }, fieldLabel);
|
|
4475
|
+
return index.h("div", { class: "vsp-field-label" }, fieldLabel);
|
|
4476
4476
|
}
|
|
4477
4477
|
renderFooter(current, _total, requiredRemaining, optionalRemaining) {
|
|
4478
4478
|
if (this.mode === 'start') {
|
|
4479
|
-
return (index.h("button", { class: "btn start", onClick: () => this.started.emit() }, "Start Signing"));
|
|
4479
|
+
return (index.h("button", { class: "vsp-btn vsp-start", onClick: () => this.started.emit() }, "Start Signing"));
|
|
4480
4480
|
}
|
|
4481
|
-
return (index.h("div", { class: "nav-buttons" }, requiredRemaining === 0 && optionalRemaining === 0 ? (index.h("button", { class: "btn submit", onClick: () => this.exit.emit() }, "Submit")) : ([
|
|
4482
|
-
index.h("button", { class: "btn previous", disabled: current <= 1, onClick: () => this.previous.emit() }, "Previous"),
|
|
4483
|
-
index.h("button", { class: "btn next", onClick: () => this.next.emit() }, "Next"),
|
|
4481
|
+
return (index.h("div", { class: "vsp-nav-buttons" }, requiredRemaining === 0 && optionalRemaining === 0 ? (index.h("button", { class: "vsp-btn vsp-submit", onClick: () => this.exit.emit() }, "Submit")) : ([
|
|
4482
|
+
index.h("button", { class: "vsp-btn vsp-previous", disabled: current <= 1, onClick: () => this.previous.emit() }, "Previous"),
|
|
4483
|
+
index.h("button", { class: "vsp-btn vsp-next", onClick: () => this.next.emit() }, "Next"),
|
|
4484
4484
|
])));
|
|
4485
4485
|
}
|
|
4486
4486
|
renderCompleted() {
|
|
4487
|
-
return (index.h("div", { class: "card completed" }, index.h("div", { class: "header-completed" }, index.h("div", { class: "icon" }, this.renderSuccessIcon()), "Ready to Submit"), index.h("div", { class: "description" }, "You have entered all requested signatures. Select Submit to complete the signing process."), index.h("div", { class: "separator" }), index.h("button", { class: "btn submit", onClick: () => this.exit.emit() }, "Submit")));
|
|
4487
|
+
return (index.h("div", { class: "vsp-card vsp-completed" }, index.h("div", { class: "vsp-header-completed" }, index.h("div", { class: "vsp-icon" }, this.renderSuccessIcon()), "Ready to Submit"), index.h("div", { class: "vsp-description" }, "You have entered all requested signatures. Select Submit to complete the signing process."), index.h("div", { class: "vsp-separator" }), index.h("button", { class: "vsp-btn vsp-submit", onClick: () => this.exit.emit() }, "Submit")));
|
|
4488
4488
|
}
|
|
4489
4489
|
render() {
|
|
4490
4490
|
if (this.mode === 'completed') {
|
|
@@ -4510,7 +4510,7 @@ const VerdocsSigningProgress = class {
|
|
|
4510
4510
|
const focusedFieldObj = this.fields.find(f => f.name === this.focusedField);
|
|
4511
4511
|
const currentIndex = this.fields.findIndex(f => f.name === this.focusedField) + 1;
|
|
4512
4512
|
const totalFields = this.fields.length;
|
|
4513
|
-
return (index.h("div", { class: "card" }, index.h("div", { class: "header" }, index.h("div", { class: "progress-line" }, requiredRemaining, " of ", requiredFields.length, " required fields remaining"), optionalFields.length > 0 && (index.h("div", { class: "progress-line optional" }, optionalRemaining, " of ", optionalFields.length, " optional fields remaining"))), index.h("div", { class: "body" }, this.renderContent(utils.getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)), index.h("div", { class: "separator" }), this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)));
|
|
4513
|
+
return (index.h("div", { class: "vsp-card" }, index.h("div", { class: "vsp-header" }, index.h("div", { class: "vsp-progress-line" }, requiredRemaining, " of ", requiredFields.length, " required fields remaining"), optionalFields.length > 0 && (index.h("div", { class: "vsp-progress-line vsp-optional" }, optionalRemaining, " of ", optionalFields.length, " optional fields remaining"))), index.h("div", { class: "vsp-body" }, this.renderContent(utils.getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)), index.h("div", { class: "vsp-separator" }), this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)));
|
|
4514
4514
|
}
|
|
4515
4515
|
};
|
|
4516
4516
|
VerdocsSigningProgress.style = verdocsSigningProgressCss;
|
package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
verdocs-signing-progress {
|
|
2
|
-
position:
|
|
3
|
-
top:
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 70px;
|
|
4
4
|
left: 20px;
|
|
5
5
|
z-index: 900;
|
|
6
6
|
display: block;
|
|
@@ -11,7 +11,7 @@ verdocs-signing-progress {
|
|
|
11
11
|
display: none;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
verdocs-signing-progress .card {
|
|
14
|
+
verdocs-signing-progress .vsp-card {
|
|
15
15
|
background: white;
|
|
16
16
|
padding: 16px;
|
|
17
17
|
border-radius: 8px;
|
|
@@ -22,17 +22,17 @@ verdocs-signing-progress .card {
|
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
gap: 12px;
|
|
24
24
|
}
|
|
25
|
-
verdocs-signing-progress .header {
|
|
25
|
+
verdocs-signing-progress .vsp-header {
|
|
26
26
|
font-size: 14px;
|
|
27
27
|
color: #111827;
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
gap: 6px;
|
|
31
31
|
}
|
|
32
|
-
verdocs-signing-progress .header .progress-line.optional {
|
|
32
|
+
verdocs-signing-progress .vsp-header .vsp-progress-line.vsp-optional {
|
|
33
33
|
color: #6b7280;
|
|
34
34
|
}
|
|
35
|
-
verdocs-signing-progress .header-completed {
|
|
35
|
+
verdocs-signing-progress .vsp-header-completed {
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
gap: 8px;
|
|
@@ -40,19 +40,19 @@ verdocs-signing-progress .header-completed {
|
|
|
40
40
|
font-weight: 500;
|
|
41
41
|
color: #111827;
|
|
42
42
|
}
|
|
43
|
-
verdocs-signing-progress .description {
|
|
43
|
+
verdocs-signing-progress .vsp-description {
|
|
44
44
|
font-size: 12px;
|
|
45
45
|
line-height: 16px;
|
|
46
46
|
color: #374151;
|
|
47
47
|
}
|
|
48
|
-
verdocs-signing-progress .field-label {
|
|
48
|
+
verdocs-signing-progress .vsp-field-label {
|
|
49
49
|
font-family: var(--verdocs-primary-font, var(--verdocs-primary-font, "Inter", "Barlow", sans-serif));
|
|
50
50
|
font-size: 0.75rem;
|
|
51
51
|
line-height: 1rem;
|
|
52
52
|
font-weight: 400;
|
|
53
53
|
color: var(--verdocs-body-color, #242424);
|
|
54
54
|
}
|
|
55
|
-
verdocs-signing-progress .field-completed {
|
|
55
|
+
verdocs-signing-progress .vsp-field-completed {
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
58
|
gap: 8px;
|
|
@@ -61,16 +61,16 @@ verdocs-signing-progress .field-completed {
|
|
|
61
61
|
font-weight: 400;
|
|
62
62
|
color: var(--verdocs-body-color, #242424);
|
|
63
63
|
}
|
|
64
|
-
verdocs-signing-progress .field-completed .text {
|
|
64
|
+
verdocs-signing-progress .vsp-field-completed .vsp-text {
|
|
65
65
|
position: relative;
|
|
66
66
|
top: -2px;
|
|
67
67
|
}
|
|
68
|
-
verdocs-signing-progress .separator {
|
|
68
|
+
verdocs-signing-progress .vsp-separator {
|
|
69
69
|
height: 1px;
|
|
70
70
|
background-color: #e5e7eb;
|
|
71
71
|
width: 100%;
|
|
72
72
|
}
|
|
73
|
-
verdocs-signing-progress .btn {
|
|
73
|
+
verdocs-signing-progress .vsp-btn {
|
|
74
74
|
width: 100%;
|
|
75
75
|
height: 32px;
|
|
76
76
|
border-radius: 4px;
|
|
@@ -84,46 +84,46 @@ verdocs-signing-progress .btn {
|
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center;
|
|
86
86
|
}
|
|
87
|
-
verdocs-signing-progress .btn:disabled {
|
|
87
|
+
verdocs-signing-progress .vsp-btn:disabled {
|
|
88
88
|
background-color: #f0f0f0;
|
|
89
89
|
border: 1px solid #e0e0e0;
|
|
90
90
|
color: #bdbdbd;
|
|
91
91
|
cursor: not-allowed;
|
|
92
92
|
opacity: 1;
|
|
93
93
|
}
|
|
94
|
-
verdocs-signing-progress .btn.start, verdocs-signing-progress .btn.submit, verdocs-signing-progress .btn.next {
|
|
94
|
+
verdocs-signing-progress .vsp-btn.vsp-start, verdocs-signing-progress .vsp-btn.vsp-submit, verdocs-signing-progress .vsp-btn.vsp-next {
|
|
95
95
|
background-color: var(--verdocs-primary-color, #55bc81);
|
|
96
96
|
color: white;
|
|
97
97
|
}
|
|
98
|
-
verdocs-signing-progress .btn.start:hover:not(:disabled), verdocs-signing-progress .btn.submit:hover:not(:disabled), verdocs-signing-progress .btn.next:hover:not(:disabled) {
|
|
98
|
+
verdocs-signing-progress .vsp-btn.vsp-start:hover:not(:disabled), verdocs-signing-progress .vsp-btn.vsp-submit:hover:not(:disabled), verdocs-signing-progress .vsp-btn.vsp-next:hover:not(:disabled) {
|
|
99
99
|
background-color: var(--verdocs-primary-color-hover, #2b995b);
|
|
100
100
|
}
|
|
101
|
-
verdocs-signing-progress .btn.start:disabled, verdocs-signing-progress .btn.submit:disabled, verdocs-signing-progress .btn.next:disabled {
|
|
101
|
+
verdocs-signing-progress .vsp-btn.vsp-start:disabled, verdocs-signing-progress .vsp-btn.vsp-submit:disabled, verdocs-signing-progress .vsp-btn.vsp-next:disabled {
|
|
102
102
|
background-color: #f0f0f0;
|
|
103
103
|
border: 1px solid #e0e0e0;
|
|
104
104
|
color: #bdbdbd;
|
|
105
105
|
cursor: not-allowed;
|
|
106
106
|
opacity: 1;
|
|
107
107
|
}
|
|
108
|
-
verdocs-signing-progress .btn.
|
|
108
|
+
verdocs-signing-progress .vsp-btn.vsp-previous {
|
|
109
109
|
background-color: #f3f4f6;
|
|
110
110
|
color: #374151;
|
|
111
111
|
}
|
|
112
|
-
verdocs-signing-progress .btn.
|
|
112
|
+
verdocs-signing-progress .vsp-btn.vsp-previous:hover:not(:disabled) {
|
|
113
113
|
background-color: #e5e7eb;
|
|
114
114
|
}
|
|
115
|
-
verdocs-signing-progress .btn.
|
|
115
|
+
verdocs-signing-progress .vsp-btn.vsp-previous:disabled {
|
|
116
116
|
background-color: #f0f0f0;
|
|
117
117
|
border: 1px solid #e0e0e0;
|
|
118
118
|
color: #bdbdbd;
|
|
119
119
|
cursor: not-allowed;
|
|
120
120
|
opacity: 1;
|
|
121
121
|
}
|
|
122
|
-
verdocs-signing-progress .nav-buttons {
|
|
122
|
+
verdocs-signing-progress .vsp-nav-buttons {
|
|
123
123
|
display: flex;
|
|
124
124
|
gap: 12px;
|
|
125
125
|
width: 100%;
|
|
126
126
|
}
|
|
127
|
-
verdocs-signing-progress .nav-buttons .btn {
|
|
127
|
+
verdocs-signing-progress .vsp-nav-buttons .vsp-btn {
|
|
128
128
|
flex: 1;
|
|
129
129
|
}
|
package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.js
CHANGED
|
@@ -29,24 +29,24 @@ export class VerdocsSigningProgress {
|
|
|
29
29
|
}
|
|
30
30
|
renderContent(fieldLabel, fieldCompleted, readyToSubmit) {
|
|
31
31
|
if (this.mode === 'start') {
|
|
32
|
-
return h("div", { class: "field-label" }, fieldLabel);
|
|
32
|
+
return h("div", { class: "vsp-field-label" }, fieldLabel);
|
|
33
33
|
}
|
|
34
34
|
if (fieldCompleted && readyToSubmit) {
|
|
35
|
-
return (h("div", { class: "field-completed" }, h("div", { class: "icon" }, this.renderSuccessIcon()), h("span", { class: "text" }, "Ready to submit.")));
|
|
35
|
+
return (h("div", { class: "vsp-field-completed" }, h("div", { class: "vsp-icon" }, this.renderSuccessIcon()), h("span", { class: "vsp-text" }, "Ready to submit.")));
|
|
36
36
|
}
|
|
37
|
-
return h("div", { class: "field-label" }, fieldLabel);
|
|
37
|
+
return h("div", { class: "vsp-field-label" }, fieldLabel);
|
|
38
38
|
}
|
|
39
39
|
renderFooter(current, _total, requiredRemaining, optionalRemaining) {
|
|
40
40
|
if (this.mode === 'start') {
|
|
41
|
-
return (h("button", { class: "btn start", onClick: () => this.started.emit() }, "Start Signing"));
|
|
41
|
+
return (h("button", { class: "vsp-btn vsp-start", onClick: () => this.started.emit() }, "Start Signing"));
|
|
42
42
|
}
|
|
43
|
-
return (h("div", { class: "nav-buttons" }, requiredRemaining === 0 && optionalRemaining === 0 ? (h("button", { class: "btn submit", onClick: () => this.exit.emit() }, "Submit")) : ([
|
|
44
|
-
h("button", { class: "btn previous", disabled: current <= 1, onClick: () => this.previous.emit() }, "Previous"),
|
|
45
|
-
h("button", { class: "btn next", onClick: () => this.next.emit() }, "Next"),
|
|
43
|
+
return (h("div", { class: "vsp-nav-buttons" }, requiredRemaining === 0 && optionalRemaining === 0 ? (h("button", { class: "vsp-btn vsp-submit", onClick: () => this.exit.emit() }, "Submit")) : ([
|
|
44
|
+
h("button", { class: "vsp-btn vsp-previous", disabled: current <= 1, onClick: () => this.previous.emit() }, "Previous"),
|
|
45
|
+
h("button", { class: "vsp-btn vsp-next", onClick: () => this.next.emit() }, "Next"),
|
|
46
46
|
])));
|
|
47
47
|
}
|
|
48
48
|
renderCompleted() {
|
|
49
|
-
return (h("div", { class: "card completed" }, h("div", { class: "header-completed" }, h("div", { class: "icon" }, this.renderSuccessIcon()), "Ready to Submit"), h("div", { class: "description" }, "You have entered all requested signatures. Select Submit to complete the signing process."), h("div", { class: "separator" }), h("button", { class: "btn submit", onClick: () => this.exit.emit() }, "Submit")));
|
|
49
|
+
return (h("div", { class: "vsp-card vsp-completed" }, h("div", { class: "vsp-header-completed" }, h("div", { class: "vsp-icon" }, this.renderSuccessIcon()), "Ready to Submit"), h("div", { class: "vsp-description" }, "You have entered all requested signatures. Select Submit to complete the signing process."), h("div", { class: "vsp-separator" }), h("button", { class: "vsp-btn vsp-submit", onClick: () => this.exit.emit() }, "Submit")));
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
if (this.mode === 'completed') {
|
|
@@ -72,7 +72,7 @@ export class VerdocsSigningProgress {
|
|
|
72
72
|
const focusedFieldObj = this.fields.find(f => f.name === this.focusedField);
|
|
73
73
|
const currentIndex = this.fields.findIndex(f => f.name === this.focusedField) + 1;
|
|
74
74
|
const totalFields = this.fields.length;
|
|
75
|
-
return (h("div", { class: "card" }, h("div", { class: "header" }, h("div", { class: "progress-line" }, requiredRemaining, " of ", requiredFields.length, " required fields remaining"), optionalFields.length > 0 && (h("div", { class: "progress-line optional" }, optionalRemaining, " of ", optionalFields.length, " optional fields remaining"))), h("div", { class: "body" }, this.renderContent(getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)), h("div", { class: "separator" }), this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)));
|
|
75
|
+
return (h("div", { class: "vsp-card" }, h("div", { class: "vsp-header" }, h("div", { class: "vsp-progress-line" }, requiredRemaining, " of ", requiredFields.length, " required fields remaining"), optionalFields.length > 0 && (h("div", { class: "vsp-progress-line vsp-optional" }, optionalRemaining, " of ", optionalFields.length, " optional fields remaining"))), h("div", { class: "vsp-body" }, this.renderContent(getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)), h("div", { class: "vsp-separator" }), this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "verdocs-signing-progress"; }
|
|
78
78
|
static get originalStyleUrls() {
|
package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verdocs-signing-progress.js","sourceRoot":"","sources":["../../../../src/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAe,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAMnD,MAAM,OAAO,sBAAsB;IAJnC;QAKE;;WAEG;QACK,SAAI,GAAsC,OAAO,CAAC;QAE1D;;WAEG;QACK,iBAAY,GAAW,EAAE,CAAC;QAElC;;WAEG;QACK,WAAM,GAAqB,EAAE,CAAC;QAEtC;;WAEG;QACK,oBAAe,GAAqB,EAAE,CAAC;QAE/C;;WAEG;QACK,kBAAa,GAAa,EAAE,CAAC;KAmJtC;IA7HC,iBAAiB;QACf,OAAO,CACL,WAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,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,KAAK,EAAC,eAAe;oBACvB,iBAAiB;;oBAAM,cAAc,CAAC,MAAM;iDACzC;gBACL,cAAc,CAAC,MAAM,GAAG,CAAC,IAAI,CAC5B,WAAK,KAAK,EAAC,wBAAwB;oBAChC,iBAAiB;;oBAAM,cAAc,CAAC,MAAM;iDACzC,CACP,CACG;YAEN,WAAK,KAAK,EAAC,MAAM,IACd,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,iBAAiB,KAAK,CAAC,CAAC,CAC/H;YAEN,WAAK,KAAK,EAAC,WAAW,GAAG;YAExB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,CAC5F,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {IEnvelopeField, isFieldFilled} from '@verdocs/js-sdk';\nimport {Component, Prop, h, Event, EventEmitter} from '@stencil/core';\nimport {getFieldLabel} from '../../../utils/utils';\n\n@Component({\n tag: 'verdocs-signing-progress',\n styleUrl: 'verdocs-signing-progress.scss',\n})\nexport class VerdocsSigningProgress {\n /**\n * Display mode\n */\n @Prop() mode: 'start' | 'signing' | 'completed' = 'start';\n\n /**\n * The name of the currently focused field (to highlight it and show its label)\n */\n @Prop() focusedField: string = '';\n\n /**\n * All fillable fields for the current recipient\n */\n @Prop() fields: IEnvelopeField[] = [];\n\n /**\n * All fields for the recipient, used to check filled status (may include non-fillable)\n */\n @Prop() recipientFields: IEnvelopeField[] = [];\n\n /**\n * Names of optional fields the user has explicitly skipped\n */\n @Prop() skippedFields: string[] = [];\n\n /**\n * Emitted when user clicks Start\n */\n @Event({composed: true}) started: EventEmitter;\n\n /**\n * Emitted when user clicks Next\n */\n @Event({composed: true}) next: EventEmitter;\n\n /**\n * Emitted when user clicks Previous\n */\n @Event({composed: true}) previous: EventEmitter;\n\n /**\n * Emitted when user clicks Submit\n */\n @Event({composed: true}) exit: EventEmitter;\n\n renderSuccessIcon() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3ZM13.3584 7.64645C13.532 7.82001 13.5513 8.08944 13.4163 8.28431L13.3584 8.35355L9.35355 12.3584C9.17999 12.532 8.91056 12.5513 8.71569 12.4163L8.64645 12.3584L6.64645 10.3584C6.45118 10.1632 6.45118 9.84658 6.64645 9.65131C6.82001 9.47775 7.08944 9.45846 7.28431 9.59346L7.35355 9.65131L9 11.298L12.6513 7.64645C12.8466 7.45118 13.1632 7.45118 13.3584 7.64645Z\"\n fill=\"#107C10\"\n />\n </svg>\n );\n }\n\n renderContent(fieldLabel: string, fieldCompleted: boolean, readyToSubmit: boolean) {\n if (this.mode === 'start') {\n return <div class=\"field-label\">{fieldLabel}</div>;\n }\n\n if (fieldCompleted && readyToSubmit) {\n return (\n <div class=\"field-completed\">\n <div class=\"icon\">{this.renderSuccessIcon()}</div>\n <span class=\"text\">Ready to submit.</span>\n </div>\n );\n }\n\n return <div class=\"field-label\">{fieldLabel}</div>;\n }\n\n renderFooter(current: number, _total: number, requiredRemaining: number, optionalRemaining: number) {\n if (this.mode === 'start') {\n return (\n <button class=\"btn start\" onClick={() => this.started.emit()}>\n Start Signing\n </button>\n );\n }\n\n return (\n <div class=\"nav-buttons\">\n {requiredRemaining === 0 && optionalRemaining === 0 ? (\n <button class=\"btn submit\" onClick={() => this.exit.emit()}>\n Submit\n </button>\n ) : (\n [\n <button class=\"btn previous\" disabled={current <= 1} onClick={() => this.previous.emit()}>\n Previous\n </button>,\n <button class=\"btn next\" onClick={() => this.next.emit()}>\n Next\n </button>,\n ]\n )}\n </div>\n );\n }\n\n renderCompleted() {\n return (\n <div class=\"card completed\">\n <div class=\"header-completed\">\n <div class=\"icon\">{this.renderSuccessIcon()}</div>\n Ready to Submit\n </div>\n <div class=\"description\">You have entered all requested signatures. Select Submit to complete the signing process.</div>\n <div class=\"separator\" />\n <button class=\"btn submit\" onClick={() => this.exit.emit()}>\n Submit\n </button>\n </div>\n );\n }\n\n render() {\n if (this.mode === 'completed') {\n return this.renderCompleted();\n }\n\n const isFilled = (f: IEnvelopeField) => {\n // The server keeps value=\"signed\"/\"initialed\" even after a signature/initial is cleared, so\n // isFieldFilled (which looks at value) would still report it as filled. settings.signature_id\n // (signature) / settings.initial_id (initial) is the authoritative indicator and is nulled out\n // on clear. This must match the parent's isFieldActuallyFilled() in verdocs-sign so the progress\n // panel and submit gating agree.\n if (f.type === 'signature' || f.type === 'initial') {\n const key = f.type === 'initial' ? 'initial_id' : 'signature_id';\n return !!(f.settings as any)?.[key];\n }\n\n return isFieldFilled(f, this.recipientFields) && (f.type !== 'dropdown' || !!f.value) && (f.type !== 'radio' || f.value === 'true') && (f.type !== 'checkbox' || f.value === 'true');\n };\n\n const requiredFields = this.fields.filter(f => f.required);\n const requiredRemaining = requiredFields.filter(f => !isFilled(f)).length;\n\n const optionalFields = this.fields.filter(f => !f.required);\n const optionalRemaining = optionalFields.filter(f => !isFilled(f) && !this.skippedFields.includes(f.name)).length;\n\n const focusedFieldObj = this.fields.find(f => f.name === this.focusedField);\n const currentIndex = this.fields.findIndex(f => f.name === this.focusedField) + 1;\n const totalFields = this.fields.length;\n\n return (\n <div class=\"card\">\n <div class=\"header\">\n <div class=\"progress-line\">\n {requiredRemaining} of {requiredFields.length} required fields remaining\n </div>\n {optionalFields.length > 0 && (\n <div class=\"progress-line optional\">\n {optionalRemaining} of {optionalFields.length} optional fields remaining\n </div>\n )}\n </div>\n\n <div class=\"body\">\n {this.renderContent(getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)}\n </div>\n\n <div class=\"separator\" />\n\n {this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)}\n </div>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"verdocs-signing-progress.js","sourceRoot":"","sources":["../../../../src/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAe,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAMnD,MAAM,OAAO,sBAAsB;IAJnC;QAKE;;WAEG;QACK,SAAI,GAAsC,OAAO,CAAC;QAE1D;;WAEG;QACK,iBAAY,GAAW,EAAE,CAAC;QAElC;;WAEG;QACK,WAAM,GAAqB,EAAE,CAAC;QAEtC;;WAEG;QACK,oBAAe,GAAqB,EAAE,CAAC;QAE/C;;WAEG;QACK,kBAAa,GAAa,EAAE,CAAC;KAmJtC;IA7HC,iBAAiB;QACf,OAAO,CACL,WAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B;YAC5F,YACE,CAAC,EAAC,skBAAskB,EACxkB,IAAI,EAAC,SAAS,GACd,CACE,CACP,CAAC;IACJ,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C5B,WAAK,KAAK,EAAC,gCAAgC;oBACxC,iBAAiB;;oBAAM,cAAc,CAAC,MAAM;iDACzC,CACP,CACG;YAEN,WAAK,KAAK,EAAC,UAAU,IAClB,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,iBAAiB,KAAK,CAAC,CAAC,CAC/H;YAEN,WAAK,KAAK,EAAC,eAAe,GAAG;YAE5B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,CAC5F,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {IEnvelopeField, isFieldFilled} from '@verdocs/js-sdk';\nimport {Component, Prop, h, Event, EventEmitter} from '@stencil/core';\nimport {getFieldLabel} from '../../../utils/utils';\n\n@Component({\n tag: 'verdocs-signing-progress',\n styleUrl: 'verdocs-signing-progress.scss',\n})\nexport class VerdocsSigningProgress {\n /**\n * Display mode\n */\n @Prop() mode: 'start' | 'signing' | 'completed' = 'start';\n\n /**\n * The name of the currently focused field (to highlight it and show its label)\n */\n @Prop() focusedField: string = '';\n\n /**\n * All fillable fields for the current recipient\n */\n @Prop() fields: IEnvelopeField[] = [];\n\n /**\n * All fields for the recipient, used to check filled status (may include non-fillable)\n */\n @Prop() recipientFields: IEnvelopeField[] = [];\n\n /**\n * Names of optional fields the user has explicitly skipped\n */\n @Prop() skippedFields: string[] = [];\n\n /**\n * Emitted when user clicks Start\n */\n @Event({composed: true}) started: EventEmitter;\n\n /**\n * Emitted when user clicks Next\n */\n @Event({composed: true}) next: EventEmitter;\n\n /**\n * Emitted when user clicks Previous\n */\n @Event({composed: true}) previous: EventEmitter;\n\n /**\n * Emitted when user clicks Submit\n */\n @Event({composed: true}) exit: EventEmitter;\n\n renderSuccessIcon() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3ZM13.3584 7.64645C13.532 7.82001 13.5513 8.08944 13.4163 8.28431L13.3584 8.35355L9.35355 12.3584C9.17999 12.532 8.91056 12.5513 8.71569 12.4163L8.64645 12.3584L6.64645 10.3584C6.45118 10.1632 6.45118 9.84658 6.64645 9.65131C6.82001 9.47775 7.08944 9.45846 7.28431 9.59346L7.35355 9.65131L9 11.298L12.6513 7.64645C12.8466 7.45118 13.1632 7.45118 13.3584 7.64645Z\"\n fill=\"#107C10\"\n />\n </svg>\n );\n }\n\n renderContent(fieldLabel: string, fieldCompleted: boolean, readyToSubmit: boolean) {\n if (this.mode === 'start') {\n return <div class=\"vsp-field-label\">{fieldLabel}</div>;\n }\n\n if (fieldCompleted && readyToSubmit) {\n return (\n <div class=\"vsp-field-completed\">\n <div class=\"vsp-icon\">{this.renderSuccessIcon()}</div>\n <span class=\"vsp-text\">Ready to submit.</span>\n </div>\n );\n }\n\n return <div class=\"vsp-field-label\">{fieldLabel}</div>;\n }\n\n renderFooter(current: number, _total: number, requiredRemaining: number, optionalRemaining: number) {\n if (this.mode === 'start') {\n return (\n <button class=\"vsp-btn vsp-start\" onClick={() => this.started.emit()}>\n Start Signing\n </button>\n );\n }\n\n return (\n <div class=\"vsp-nav-buttons\">\n {requiredRemaining === 0 && optionalRemaining === 0 ? (\n <button class=\"vsp-btn vsp-submit\" onClick={() => this.exit.emit()}>\n Submit\n </button>\n ) : (\n [\n <button class=\"vsp-btn vsp-previous\" disabled={current <= 1} onClick={() => this.previous.emit()}>\n Previous\n </button>,\n <button class=\"vsp-btn vsp-next\" onClick={() => this.next.emit()}>\n Next\n </button>,\n ]\n )}\n </div>\n );\n }\n\n renderCompleted() {\n return (\n <div class=\"vsp-card vsp-completed\">\n <div class=\"vsp-header-completed\">\n <div class=\"vsp-icon\">{this.renderSuccessIcon()}</div>\n Ready to Submit\n </div>\n <div class=\"vsp-description\">You have entered all requested signatures. Select Submit to complete the signing process.</div>\n <div class=\"vsp-separator\" />\n <button class=\"vsp-btn vsp-submit\" onClick={() => this.exit.emit()}>\n Submit\n </button>\n </div>\n );\n }\n\n render() {\n if (this.mode === 'completed') {\n return this.renderCompleted();\n }\n\n const isFilled = (f: IEnvelopeField) => {\n // The server keeps value=\"signed\"/\"initialed\" even after a signature/initial is cleared, so\n // isFieldFilled (which looks at value) would still report it as filled. settings.signature_id\n // (signature) / settings.initial_id (initial) is the authoritative indicator and is nulled out\n // on clear. This must match the parent's isFieldActuallyFilled() in verdocs-sign so the progress\n // panel and submit gating agree.\n if (f.type === 'signature' || f.type === 'initial') {\n const key = f.type === 'initial' ? 'initial_id' : 'signature_id';\n return !!(f.settings as any)?.[key];\n }\n\n return isFieldFilled(f, this.recipientFields) && (f.type !== 'dropdown' || !!f.value) && (f.type !== 'radio' || f.value === 'true') && (f.type !== 'checkbox' || f.value === 'true');\n };\n\n const requiredFields = this.fields.filter(f => f.required);\n const requiredRemaining = requiredFields.filter(f => !isFilled(f)).length;\n\n const optionalFields = this.fields.filter(f => !f.required);\n const optionalRemaining = optionalFields.filter(f => !isFilled(f) && !this.skippedFields.includes(f.name)).length;\n\n const focusedFieldObj = this.fields.find(f => f.name === this.focusedField);\n const currentIndex = this.fields.findIndex(f => f.name === this.focusedField) + 1;\n const totalFields = this.fields.length;\n\n return (\n <div class=\"vsp-card\">\n <div class=\"vsp-header\">\n <div class=\"vsp-progress-line\">\n {requiredRemaining} of {requiredFields.length} required fields remaining\n </div>\n {optionalFields.length > 0 && (\n <div class=\"vsp-progress-line vsp-optional\">\n {optionalRemaining} of {optionalFields.length} optional fields remaining\n </div>\n )}\n </div>\n\n <div class=\"vsp-body\">\n {this.renderContent(getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)}\n </div>\n\n <div class=\"vsp-separator\" />\n\n {this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)}\n </div>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h } from './p-CUAGH_8P.js';
|
|
2
|
+
import { isFieldFilled } from '@verdocs/js-sdk';
|
|
3
|
+
import { e as getFieldLabel } from './p-oM7A1Gvt.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './p-BC5N3FIA.js';
|
|
5
|
+
|
|
6
|
+
const verdocsSigningProgressCss = "verdocs-signing-progress{position:absolute;top:70px;left:20px;z-index:900;display:block;font-family:var(--verdocs-primary-font, \"Inter\", \"Barlow\", sans-serif)}@media (max-width: 600px){verdocs-signing-progress{display:none}}verdocs-signing-progress .vsp-card{background:white;padding:16px;border-radius:8px;-webkit-box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);width:240px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}verdocs-signing-progress .vsp-header{font-size:14px;color:#111827;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:6px}verdocs-signing-progress .vsp-header .vsp-progress-line.vsp-optional{color:#6b7280}verdocs-signing-progress .vsp-header-completed{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#111827}verdocs-signing-progress .vsp-description{font-size:12px;line-height:16px;color:#374151}verdocs-signing-progress .vsp-field-label{font-family:var(--verdocs-primary-font, var(--verdocs-primary-font, \"Inter\", \"Barlow\", sans-serif));font-size:0.75rem;line-height:1rem;font-weight:400;color:var(--verdocs-body-color, #242424)}verdocs-signing-progress .vsp-field-completed{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;font-size:0.75rem;line-height:1rem;font-weight:400;color:var(--verdocs-body-color, #242424)}verdocs-signing-progress .vsp-field-completed .vsp-text{position:relative;top:-2px}verdocs-signing-progress .vsp-separator{height:1px;background-color:#e5e7eb;width:100%}verdocs-signing-progress .vsp-btn{width:100%;height:32px;border-radius:4px;font-weight:600;font-size:0.75rem;line-height:1rem;cursor:pointer;border:1px solid transparent;-webkit-transition:all 0.2s;transition:all 0.2s;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-signing-progress .vsp-btn:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .vsp-btn.vsp-start,verdocs-signing-progress .vsp-btn.vsp-submit,verdocs-signing-progress .vsp-btn.vsp-next{background-color:var(--verdocs-primary-color, #55bc81);color:white}verdocs-signing-progress .vsp-btn.vsp-start:hover:not(:disabled),verdocs-signing-progress .vsp-btn.vsp-submit:hover:not(:disabled),verdocs-signing-progress .vsp-btn.vsp-next:hover:not(:disabled){background-color:var(--verdocs-primary-color-hover, #2b995b)}verdocs-signing-progress .vsp-btn.vsp-start:disabled,verdocs-signing-progress .vsp-btn.vsp-submit:disabled,verdocs-signing-progress .vsp-btn.vsp-next:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .vsp-btn.vsp-previous{background-color:#f3f4f6;color:#374151}verdocs-signing-progress .vsp-btn.vsp-previous:hover:not(:disabled){background-color:#e5e7eb}verdocs-signing-progress .vsp-btn.vsp-previous:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .vsp-nav-buttons{display:-ms-flexbox;display:flex;gap:12px;width:100%}verdocs-signing-progress .vsp-nav-buttons .vsp-btn{-ms-flex:1;flex:1}";
|
|
7
|
+
|
|
8
|
+
const VerdocsSigningProgress = /*@__PURE__*/ proxyCustomElement(class VerdocsSigningProgress extends H {
|
|
9
|
+
constructor(registerHost) {
|
|
10
|
+
super();
|
|
11
|
+
if (registerHost !== false) {
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
}
|
|
14
|
+
this.started = createEvent(this, "started");
|
|
15
|
+
this.next = createEvent(this, "next");
|
|
16
|
+
this.previous = createEvent(this, "previous");
|
|
17
|
+
this.exit = createEvent(this, "exit");
|
|
18
|
+
/**
|
|
19
|
+
* Display mode
|
|
20
|
+
*/
|
|
21
|
+
this.mode = 'start';
|
|
22
|
+
/**
|
|
23
|
+
* The name of the currently focused field (to highlight it and show its label)
|
|
24
|
+
*/
|
|
25
|
+
this.focusedField = '';
|
|
26
|
+
/**
|
|
27
|
+
* All fillable fields for the current recipient
|
|
28
|
+
*/
|
|
29
|
+
this.fields = [];
|
|
30
|
+
/**
|
|
31
|
+
* All fields for the recipient, used to check filled status (may include non-fillable)
|
|
32
|
+
*/
|
|
33
|
+
this.recipientFields = [];
|
|
34
|
+
/**
|
|
35
|
+
* Names of optional fields the user has explicitly skipped
|
|
36
|
+
*/
|
|
37
|
+
this.skippedFields = [];
|
|
38
|
+
}
|
|
39
|
+
renderSuccessIcon() {
|
|
40
|
+
return (h("svg", { width: "24", height: "24", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3ZM13.3584 7.64645C13.532 7.82001 13.5513 8.08944 13.4163 8.28431L13.3584 8.35355L9.35355 12.3584C9.17999 12.532 8.91056 12.5513 8.71569 12.4163L8.64645 12.3584L6.64645 10.3584C6.45118 10.1632 6.45118 9.84658 6.64645 9.65131C6.82001 9.47775 7.08944 9.45846 7.28431 9.59346L7.35355 9.65131L9 11.298L12.6513 7.64645C12.8466 7.45118 13.1632 7.45118 13.3584 7.64645Z", fill: "#107C10" })));
|
|
41
|
+
}
|
|
42
|
+
renderContent(fieldLabel, fieldCompleted, readyToSubmit) {
|
|
43
|
+
if (this.mode === 'start') {
|
|
44
|
+
return h("div", { class: "vsp-field-label" }, fieldLabel);
|
|
45
|
+
}
|
|
46
|
+
if (fieldCompleted && readyToSubmit) {
|
|
47
|
+
return (h("div", { class: "vsp-field-completed" }, h("div", { class: "vsp-icon" }, this.renderSuccessIcon()), h("span", { class: "vsp-text" }, "Ready to submit.")));
|
|
48
|
+
}
|
|
49
|
+
return h("div", { class: "vsp-field-label" }, fieldLabel);
|
|
50
|
+
}
|
|
51
|
+
renderFooter(current, _total, requiredRemaining, optionalRemaining) {
|
|
52
|
+
if (this.mode === 'start') {
|
|
53
|
+
return (h("button", { class: "vsp-btn vsp-start", onClick: () => this.started.emit() }, "Start Signing"));
|
|
54
|
+
}
|
|
55
|
+
return (h("div", { class: "vsp-nav-buttons" }, requiredRemaining === 0 && optionalRemaining === 0 ? (h("button", { class: "vsp-btn vsp-submit", onClick: () => this.exit.emit() }, "Submit")) : ([
|
|
56
|
+
h("button", { class: "vsp-btn vsp-previous", disabled: current <= 1, onClick: () => this.previous.emit() }, "Previous"),
|
|
57
|
+
h("button", { class: "vsp-btn vsp-next", onClick: () => this.next.emit() }, "Next"),
|
|
58
|
+
])));
|
|
59
|
+
}
|
|
60
|
+
renderCompleted() {
|
|
61
|
+
return (h("div", { class: "vsp-card vsp-completed" }, h("div", { class: "vsp-header-completed" }, h("div", { class: "vsp-icon" }, this.renderSuccessIcon()), "Ready to Submit"), h("div", { class: "vsp-description" }, "You have entered all requested signatures. Select Submit to complete the signing process."), h("div", { class: "vsp-separator" }), h("button", { class: "vsp-btn vsp-submit", onClick: () => this.exit.emit() }, "Submit")));
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
if (this.mode === 'completed') {
|
|
65
|
+
return this.renderCompleted();
|
|
66
|
+
}
|
|
67
|
+
const isFilled = (f) => {
|
|
68
|
+
var _a;
|
|
69
|
+
// The server keeps value="signed"/"initialed" even after a signature/initial is cleared, so
|
|
70
|
+
// isFieldFilled (which looks at value) would still report it as filled. settings.signature_id
|
|
71
|
+
// (signature) / settings.initial_id (initial) is the authoritative indicator and is nulled out
|
|
72
|
+
// on clear. This must match the parent's isFieldActuallyFilled() in verdocs-sign so the progress
|
|
73
|
+
// panel and submit gating agree.
|
|
74
|
+
if (f.type === 'signature' || f.type === 'initial') {
|
|
75
|
+
const key = f.type === 'initial' ? 'initial_id' : 'signature_id';
|
|
76
|
+
return !!((_a = f.settings) === null || _a === void 0 ? void 0 : _a[key]);
|
|
77
|
+
}
|
|
78
|
+
return isFieldFilled(f, this.recipientFields) && (f.type !== 'dropdown' || !!f.value) && (f.type !== 'radio' || f.value === 'true') && (f.type !== 'checkbox' || f.value === 'true');
|
|
79
|
+
};
|
|
80
|
+
const requiredFields = this.fields.filter(f => f.required);
|
|
81
|
+
const requiredRemaining = requiredFields.filter(f => !isFilled(f)).length;
|
|
82
|
+
const optionalFields = this.fields.filter(f => !f.required);
|
|
83
|
+
const optionalRemaining = optionalFields.filter(f => !isFilled(f) && !this.skippedFields.includes(f.name)).length;
|
|
84
|
+
const focusedFieldObj = this.fields.find(f => f.name === this.focusedField);
|
|
85
|
+
const currentIndex = this.fields.findIndex(f => f.name === this.focusedField) + 1;
|
|
86
|
+
const totalFields = this.fields.length;
|
|
87
|
+
return (h("div", { class: "vsp-card" }, h("div", { class: "vsp-header" }, h("div", { class: "vsp-progress-line" }, requiredRemaining, " of ", requiredFields.length, " required fields remaining"), optionalFields.length > 0 && (h("div", { class: "vsp-progress-line vsp-optional" }, optionalRemaining, " of ", optionalFields.length, " optional fields remaining"))), h("div", { class: "vsp-body" }, this.renderContent(getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)), h("div", { class: "vsp-separator" }), this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)));
|
|
88
|
+
}
|
|
89
|
+
static get style() { return verdocsSigningProgressCss; }
|
|
90
|
+
}, [256, "verdocs-signing-progress", {
|
|
91
|
+
"mode": [1],
|
|
92
|
+
"focusedField": [1, "focused-field"],
|
|
93
|
+
"fields": [16],
|
|
94
|
+
"recipientFields": [16],
|
|
95
|
+
"skippedFields": [16]
|
|
96
|
+
}]);
|
|
97
|
+
function defineCustomElement() {
|
|
98
|
+
if (typeof customElements === "undefined") {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const components = ["verdocs-signing-progress", "verdocs-flag"];
|
|
102
|
+
components.forEach(tagName => { switch (tagName) {
|
|
103
|
+
case "verdocs-signing-progress":
|
|
104
|
+
if (!customElements.get(tagName)) {
|
|
105
|
+
customElements.define(tagName, VerdocsSigningProgress);
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
case "verdocs-flag":
|
|
109
|
+
if (!customElements.get(tagName)) {
|
|
110
|
+
defineCustomElement$1();
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
} });
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { VerdocsSigningProgress as V, defineCustomElement as d };
|
|
117
|
+
//# sourceMappingURL=p-DVaiNky1.js.map
|
|
118
|
+
|
|
119
|
+
//# sourceMapp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AAK,EAAC,UAAU,EAAA,EAClB,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,eAAe,GAAG,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,iBAAiB,KAAK,CAAC,CAAC,CAC/H,EAEN,CAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,eAAe,EAAG,CAAA,EAE5B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,CAC5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.scss?tag=verdocs-signing-progress","src/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-signing-progress {\n // Anchored to the verdocs-sign widget (which is position: relative), not the viewport, so the\n // panel sits correctly whether the SDK is used standalone (full page) or embedded below a host\n // app's nav/header. The widget's own scroll happens inside .document (overflow-y: scroll) while\n // verdocs-sign is overflow: hidden, so the panel stays put as the document scrolls.\n position: absolute;\n top: 70px; // Clears the SDK's ~54px toolbar\n left: 20px;\n z-index: 900;\n display: block;\n font-family: $verdocs-primary-font;\n\n @media (max-width: 600px) {\n display: none;\n }\n\n .vsp-card {\n background: white;\n padding: 16px;\n border-radius: 8px;\n box-shadow:\n 0 4px 6px -1px rgba(0, 0, 0, 0.1),\n 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n width: 240px;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n gap: 12px;\n }\n\n .vsp-header {\n font-size: 14px;\n color: #111827;\n display: flex;\n flex-direction: column;\n gap: 6px;\n\n .vsp-progress-line.vsp-optional {\n color: #6b7280;\n }\n }\n\n .vsp-header-completed {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 14px;\n font-weight: 500;\n color: #111827;\n }\n\n .vsp-description {\n font-size: 12px;\n line-height: 16px;\n color: #374151;\n }\n\n .vsp-field-label {\n font-family: var(--verdocs-primary-font, $verdocs-primary-font);\n font-size: 0.75rem;\n line-height: 1rem;\n font-weight: 400;\n color: var(--verdocs-body-color, #242424);\n }\n\n .vsp-field-completed {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 0.75rem;\n line-height: 1rem;\n font-weight: 400;\n color: var(--verdocs-body-color, #242424);\n\n .vsp-text {\n position: relative;\n top: -2px;\n }\n }\n\n .vsp-separator {\n height: 1px;\n background-color: #e5e7eb;\n width: 100%;\n }\n\n .vsp-btn {\n width: 100%;\n height: 32px;\n border-radius: 4px;\n font-weight: 600;\n font-size: 0.75rem;\n line-height: 1rem;\n cursor: pointer;\n border: 1px solid transparent; // Default border\n transition: all 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:disabled {\n background-color: #f0f0f0;\n border: 1px solid #e0e0e0;\n color: #bdbdbd;\n cursor: not-allowed;\n opacity: 1;\n }\n\n &.vsp-start,\n &.vsp-submit,\n &.vsp-next {\n background-color: var(--verdocs-primary-color, #55bc81);\n color: white;\n\n &:hover:not(:disabled) {\n background-color: var(--verdocs-primary-color-hover, #2b995b);\n }\n\n &:disabled {\n background-color: #f0f0f0;\n border: 1px solid #e0e0e0;\n color: #bdbdbd;\n cursor: not-allowed;\n opacity: 1;\n }\n }\n\n &.vsp-previous {\n background-color: #f3f4f6;\n color: #374151;\n\n &:hover:not(:disabled) {\n background-color: #e5e7eb;\n }\n\n &:disabled {\n background-color: #f0f0f0;\n border: 1px solid #e0e0e0;\n color: #bdbdbd;\n cursor: not-allowed;\n opacity: 1;\n }\n }\n }\n\n .vsp-nav-buttons {\n display: flex;\n gap: 12px;\n width: 100%;\n\n .vsp-btn {\n flex: 1;\n }\n }\n}\n","import {IEnvelopeField, isFieldFilled} from '@verdocs/js-sdk';\nimport {Component, Prop, h, Event, EventEmitter} from '@stencil/core';\nimport {getFieldLabel} from '../../../utils/utils';\n\n@Component({\n tag: 'verdocs-signing-progress',\n styleUrl: 'verdocs-signing-progress.scss',\n})\nexport class VerdocsSigningProgress {\n /**\n * Display mode\n */\n @Prop() mode: 'start' | 'signing' | 'completed' = 'start';\n\n /**\n * The name of the currently focused field (to highlight it and show its label)\n */\n @Prop() focusedField: string = '';\n\n /**\n * All fillable fields for the current recipient\n */\n @Prop() fields: IEnvelopeField[] = [];\n\n /**\n * All fields for the recipient, used to check filled status (may include non-fillable)\n */\n @Prop() recipientFields: IEnvelopeField[] = [];\n\n /**\n * Names of optional fields the user has explicitly skipped\n */\n @Prop() skippedFields: string[] = [];\n\n /**\n * Emitted when user clicks Start\n */\n @Event({composed: true}) started: EventEmitter;\n\n /**\n * Emitted when user clicks Next\n */\n @Event({composed: true}) next: EventEmitter;\n\n /**\n * Emitted when user clicks Previous\n */\n @Event({composed: true}) previous: EventEmitter;\n\n /**\n * Emitted when user clicks Submit\n */\n @Event({composed: true}) exit: EventEmitter;\n\n renderSuccessIcon() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3ZM13.3584 7.64645C13.532 7.82001 13.5513 8.08944 13.4163 8.28431L13.3584 8.35355L9.35355 12.3584C9.17999 12.532 8.91056 12.5513 8.71569 12.4163L8.64645 12.3584L6.64645 10.3584C6.45118 10.1632 6.45118 9.84658 6.64645 9.65131C6.82001 9.47775 7.08944 9.45846 7.28431 9.59346L7.35355 9.65131L9 11.298L12.6513 7.64645C12.8466 7.45118 13.1632 7.45118 13.3584 7.64645Z\"\n fill=\"#107C10\"\n />\n </svg>\n );\n }\n\n renderContent(fieldLabel: string, fieldCompleted: boolean, readyToSubmit: boolean) {\n if (this.mode === 'start') {\n return <div class=\"vsp-field-label\">{fieldLabel}</div>;\n }\n\n if (fieldCompleted && readyToSubmit) {\n return (\n <div class=\"vsp-field-completed\">\n <div class=\"vsp-icon\">{this.renderSuccessIcon()}</div>\n <span class=\"vsp-text\">Ready to submit.</span>\n </div>\n );\n }\n\n return <div class=\"vsp-field-label\">{fieldLabel}</div>;\n }\n\n renderFooter(current: number, _total: number, requiredRemaining: number, optionalRemaining: number) {\n if (this.mode === 'start') {\n return (\n <button class=\"vsp-btn vsp-start\" onClick={() => this.started.emit()}>\n Start Signing\n </button>\n );\n }\n\n return (\n <div class=\"vsp-nav-buttons\">\n {requiredRemaining === 0 && optionalRemaining === 0 ? (\n <button class=\"vsp-btn vsp-submit\" onClick={() => this.exit.emit()}>\n Submit\n </button>\n ) : (\n [\n <button class=\"vsp-btn vsp-previous\" disabled={current <= 1} onClick={() => this.previous.emit()}>\n Previous\n </button>,\n <button class=\"vsp-btn vsp-next\" onClick={() => this.next.emit()}>\n Next\n </button>,\n ]\n )}\n </div>\n );\n }\n\n renderCompleted() {\n return (\n <div class=\"vsp-card vsp-completed\">\n <div class=\"vsp-header-completed\">\n <div class=\"vsp-icon\">{this.renderSuccessIcon()}</div>\n Ready to Submit\n </div>\n <div class=\"vsp-description\">You have entered all requested signatures. Select Submit to complete the signing process.</div>\n <div class=\"vsp-separator\" />\n <button class=\"vsp-btn vsp-submit\" onClick={() => this.exit.emit()}>\n Submit\n </button>\n </div>\n );\n }\n\n render() {\n if (this.mode === 'completed') {\n return this.renderCompleted();\n }\n\n const isFilled = (f: IEnvelopeField) => {\n // The server keeps value=\"signed\"/\"initialed\" even after a signature/initial is cleared, so\n // isFieldFilled (which looks at value) would still report it as filled. settings.signature_id\n // (signature) / settings.initial_id (initial) is the authoritative indicator and is nulled out\n // on clear. This must match the parent's isFieldActuallyFilled() in verdocs-sign so the progress\n // panel and submit gating agree.\n if (f.type === 'signature' || f.type === 'initial') {\n const key = f.type === 'initial' ? 'initial_id' : 'signature_id';\n return !!(f.settings as any)?.[key];\n }\n\n return isFieldFilled(f, this.recipientFields) && (f.type !== 'dropdown' || !!f.value) && (f.type !== 'radio' || f.value === 'true') && (f.type !== 'checkbox' || f.value === 'true');\n };\n\n const requiredFields = this.fields.filter(f => f.required);\n const requiredRemaining = requiredFields.filter(f => !isFilled(f)).length;\n\n const optionalFields = this.fields.filter(f => !f.required);\n const optionalRemaining = optionalFields.filter(f => !isFilled(f) && !this.skippedFields.includes(f.name)).length;\n\n const focusedFieldObj = this.fields.find(f => f.name === this.focusedField);\n const currentIndex = this.fields.findIndex(f => f.name === this.focusedField) + 1;\n const totalFields = this.fields.length;\n\n return (\n <div class=\"vsp-card\">\n <div class=\"vsp-header\">\n <div class=\"vsp-progress-line\">\n {requiredRemaining} of {requiredFields.length} required fields remaining\n </div>\n {optionalFields.length > 0 && (\n <div class=\"vsp-progress-line vsp-optional\">\n {optionalRemaining} of {optionalFields.length} optional fields remaining\n </div>\n )}\n </div>\n\n <div class=\"vsp-body\">\n {this.renderContent(getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)}\n </div>\n\n <div class=\"vsp-separator\" />\n\n {this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -27,7 +27,7 @@ import { d as defineCustomElement$9 } from './p-CKYjre9I.js';
|
|
|
27
27
|
import { d as defineCustomElement$8 } from './p-ByFUP3AN.js';
|
|
28
28
|
import { d as defineCustomElement$7 } from './p-C1AtapGD.js';
|
|
29
29
|
import { d as defineCustomElement$6 } from './p-BWSl51Wt.js';
|
|
30
|
-
import { d as defineCustomElement$5 } from './p-
|
|
30
|
+
import { d as defineCustomElement$5 } from './p-DVaiNky1.js';
|
|
31
31
|
import { d as defineCustomElement$4 } from './p-lE3_dyeh.js';
|
|
32
32
|
import { d as defineCustomElement$3 } from './p-CcIN7yIE.js';
|
|
33
33
|
import { d as defineCustomElement$2 } from './p-3nN0Xai9.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerdocsSigningProgress$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { V as VerdocsSigningProgress$1, d as defineCustomElement$1 } from './p-DVaiNky1.js';
|
|
2
2
|
|
|
3
3
|
const VerdocsSigningProgress = VerdocsSigningProgress$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|