@idsoftsource/initial-process 2.2.3 → 2.2.4

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.
@@ -1212,10 +1212,15 @@ class TermsConditionsComponent {
1212
1212
  type: s.type,
1213
1213
  }));
1214
1214
  }
1215
- /** Replaces {{fieldName}} tokens in HTML content with values from PrivacyAndTerms */
1215
+ /**
1216
+ * Replaces both {{PrivacyAndTerms?.fieldName}} (stored format) and
1217
+ * plain {{fieldName}} tokens with live values from PrivacyAndTerms.
1218
+ */
1216
1219
  interpolate(template) {
1217
1220
  const vars = (this.PrivacyAndTerms ?? {});
1218
- return template.replace(/\{\{(\w+)\}\}/g, (_, key) => vars[key] ?? '');
1221
+ return template
1222
+ .replace(/\{\{PrivacyAndTerms\?\.(\w+)\}\}/g, (_, key) => vars[key] ?? '')
1223
+ .replace(/\{\{(\w+)\}\}/g, (_, key) => vars[key] ?? '');
1219
1224
  }
1220
1225
  isFilteredBrand() {
1221
1226
  return ['ID Claims', 'Mold Depot', 'Termite Depot'].includes(this.branding?.displayName);