@idsoftsource/initial-process 3.2.4 → 3.2.5
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.
|
@@ -36314,6 +36314,14 @@ A B2B Corporate Client may use the platform for its own business operations or t
|
|
|
36314
36314
|
get STORAGE_KEY() {
|
|
36315
36315
|
return `ip_init_${this.userId ?? 'anon'}`;
|
|
36316
36316
|
}
|
|
36317
|
+
resolveAssetUrl(path) {
|
|
36318
|
+
if (!path)
|
|
36319
|
+
return null;
|
|
36320
|
+
if (/^https?:\/\//i.test(path))
|
|
36321
|
+
return path;
|
|
36322
|
+
const base = (this.libConfig?.cloudfrontUrl ?? '').toString().replace(/\/+$/, '');
|
|
36323
|
+
return `${base}/${path.replace(/^\/+/, '')}`;
|
|
36324
|
+
}
|
|
36317
36325
|
saveState() {
|
|
36318
36326
|
try {
|
|
36319
36327
|
sessionStorage.setItem(this.STORAGE_KEY, JSON.stringify({
|
|
@@ -36346,7 +36354,7 @@ A B2B Corporate Client may use the platform for its own business operations or t
|
|
|
36346
36354
|
if (s.signatureFileId) {
|
|
36347
36355
|
this.signatureFileId = s.signatureFileId;
|
|
36348
36356
|
this.signatureUrl = s.signatureUrl;
|
|
36349
|
-
this.signaturePadData.publicUrl = s.signatureUrl
|
|
36357
|
+
this.signaturePadData.publicUrl = this.resolveAssetUrl(s.signatureUrl);
|
|
36350
36358
|
this.signatureDirty = false;
|
|
36351
36359
|
}
|
|
36352
36360
|
if (s.selectedRoleValue)
|