@idsoftsource/initial-process 2.2.5 → 2.2.7
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.
|
@@ -1213,25 +1213,29 @@ class TermsConditionsComponent {
|
|
|
1213
1213
|
}));
|
|
1214
1214
|
}
|
|
1215
1215
|
/**
|
|
1216
|
-
*
|
|
1217
|
-
*
|
|
1216
|
+
* 1. Unescape backslash-escaped quotes left over from JSON string storage (\" → ")
|
|
1217
|
+
* 2. Replace {{PrivacyAndTerms?.field}} and {{field}} tokens with live values
|
|
1218
|
+
* 3. Convert literal \n sequences to <br> for HTML line breaks
|
|
1218
1219
|
*/
|
|
1219
1220
|
interpolate(template) {
|
|
1220
1221
|
const vars = (this.PrivacyAndTerms ?? {});
|
|
1221
1222
|
return template
|
|
1223
|
+
.replace(/\\"/g, '"')
|
|
1224
|
+
.replace(/\\'/g, "'")
|
|
1222
1225
|
.replace(/\{\{PrivacyAndTerms\?\.(\w+)\}\}/g, (_, key) => vars[key] ?? '')
|
|
1223
1226
|
.replace(/\{\{(\w+)\}\}/g, (_, key) => vars[key] ?? '')
|
|
1224
|
-
.replace(/\\n/g, '
|
|
1227
|
+
.replace(/\\n/g, '')
|
|
1228
|
+
.replace(/(<br\s*\/?>\s*){2,}/gi, '<br>');
|
|
1225
1229
|
}
|
|
1226
1230
|
isFilteredBrand() {
|
|
1227
1231
|
return ['ID Claims', 'Mold Depot', 'Termite Depot'].includes(this.branding?.displayName);
|
|
1228
1232
|
}
|
|
1229
1233
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TermsConditionsComponent, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
1230
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TermsConditionsComponent, isStandalone: false, selector: "app-terms-conditions", inputs: { title: "title", branding: "branding", PrivacyAndTerms: "PrivacyAndTerms", sections: "sections" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"tc-wrapper\">\n <span class=\"tc-meta\"></span>\n\n <ng-container *ngFor=\"let section of parsedSections\">\n <div class=\"section-title\">Last Modified: {{section.versionName}}. {{section?.createdDate}}</div>\n <div [innerHTML]=\"section.content\"></div>\n
|
|
1234
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TermsConditionsComponent, isStandalone: false, selector: "app-terms-conditions", inputs: { title: "title", branding: "branding", PrivacyAndTerms: "PrivacyAndTerms", sections: "sections" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"tc-wrapper\">\r\n <span class=\"tc-meta\"></span>\r\n\r\n <ng-container *ngFor=\"let section of parsedSections\">\r\n <div class=\"section-title\">Last Modified: {{section.versionName}}. {{section?.createdDate}}</div>\r\n <div [innerHTML]=\"section.content\"></div>\r\n <br><br>\r\n </ng-container>\r\n\r\n <div class=\"logo-section mt-5 text-center\">\r\n <img [src]=\"branding?.logo\" [alt]=\"branding?.displayName\" [class.filter]=\"isFilteredBrand()\" />\r\n </div>\r\n <div class=\"content\">\r\n <p>\r\n ©{{PrivacyAndTerms?.currentYear}} {{PrivacyAndTerms?.companyName}}.<br>\r\n Proprietary and Confidential Information. Strictly for use by {{PrivacyAndTerms?.companyName}} approved customers only.<br>\r\n Duplication or alteration is strictly prohibited without prior written consent.\r\n </p>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.tc-wrapper{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:14px;line-height:1.72;color:#374151;letter-spacing:.01em;padding:0 6px;word-spacing:.03em}.tc-meta{display:inline-block;font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e2e8f0;width:100%}.section-title{display:block;font-size:14.5px;font-weight:700;color:#0f172a;letter-spacing:-.01em;line-height:1.35;margin-top:2px;margin-bottom:8px;padding-bottom:6px;border-bottom:2px solid #e2e8f0;text-decoration:none}.h{display:inline;color:#0f172a;font-weight:600;letter-spacing:.015em;line-height:1.9}.tc-list{list-style:none;padding-left:0;margin:12px 0 12px 4px}.tc-list li{position:relative;padding-left:20px;margin-bottom:8px;line-height:1.75}.tc-list li:before{content:\"\\203a\";position:absolute;left:0;top:0;color:#1e40af;font-weight:700;font-size:15px}.logo-section{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:48px;margin-bottom:0;overflow:visible;min-height:42px}.logo-section img{display:block;max-width:160px;height:auto;margin-bottom:16px;position:relative;z-index:2}.logo-section .filter{filter:brightness(.5)}.content{font-size:11.5px;line-height:1.7;text-align:center;color:#6b7280;letter-spacing:.01em;margin-top:10px;margin-bottom:32px}.privacy-policy-modal{background:#fff;padding:0 20px;max-width:650px;margin:auto;display:flex;flex-direction:column;align-items:center}.privacy-policy-modal .modal-footer{width:100%;display:flex;justify-content:center}.privacy-policy-modal .modal-footer .btn{padding:8px 25px;font-size:12px}\n"], dependencies: [{ kind: "directive", type: i11.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1231
1235
|
}
|
|
1232
1236
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TermsConditionsComponent, decorators: [{
|
|
1233
1237
|
type: Component,
|
|
1234
|
-
args: [{ standalone: false, selector: 'app-terms-conditions', template: "<div class=\"tc-wrapper\">\n <span class=\"tc-meta\"></span>\n\n <ng-container *ngFor=\"let section of parsedSections\">\n <div class=\"section-title\">Last Modified: {{section.versionName}}. {{section?.createdDate}}</div>\n <div [innerHTML]=\"section.content\"></div>\n
|
|
1238
|
+
args: [{ standalone: false, selector: 'app-terms-conditions', template: "<div class=\"tc-wrapper\">\r\n <span class=\"tc-meta\"></span>\r\n\r\n <ng-container *ngFor=\"let section of parsedSections\">\r\n <div class=\"section-title\">Last Modified: {{section.versionName}}. {{section?.createdDate}}</div>\r\n <div [innerHTML]=\"section.content\"></div>\r\n <br><br>\r\n </ng-container>\r\n\r\n <div class=\"logo-section mt-5 text-center\">\r\n <img [src]=\"branding?.logo\" [alt]=\"branding?.displayName\" [class.filter]=\"isFilteredBrand()\" />\r\n </div>\r\n <div class=\"content\">\r\n <p>\r\n ©{{PrivacyAndTerms?.currentYear}} {{PrivacyAndTerms?.companyName}}.<br>\r\n Proprietary and Confidential Information. Strictly for use by {{PrivacyAndTerms?.companyName}} approved customers only.<br>\r\n Duplication or alteration is strictly prohibited without prior written consent.\r\n </p>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.tc-wrapper{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:14px;line-height:1.72;color:#374151;letter-spacing:.01em;padding:0 6px;word-spacing:.03em}.tc-meta{display:inline-block;font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e2e8f0;width:100%}.section-title{display:block;font-size:14.5px;font-weight:700;color:#0f172a;letter-spacing:-.01em;line-height:1.35;margin-top:2px;margin-bottom:8px;padding-bottom:6px;border-bottom:2px solid #e2e8f0;text-decoration:none}.h{display:inline;color:#0f172a;font-weight:600;letter-spacing:.015em;line-height:1.9}.tc-list{list-style:none;padding-left:0;margin:12px 0 12px 4px}.tc-list li{position:relative;padding-left:20px;margin-bottom:8px;line-height:1.75}.tc-list li:before{content:\"\\203a\";position:absolute;left:0;top:0;color:#1e40af;font-weight:700;font-size:15px}.logo-section{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:48px;margin-bottom:0;overflow:visible;min-height:42px}.logo-section img{display:block;max-width:160px;height:auto;margin-bottom:16px;position:relative;z-index:2}.logo-section .filter{filter:brightness(.5)}.content{font-size:11.5px;line-height:1.7;text-align:center;color:#6b7280;letter-spacing:.01em;margin-top:10px;margin-bottom:32px}.privacy-policy-modal{background:#fff;padding:0 20px;max-width:650px;margin:auto;display:flex;flex-direction:column;align-items:center}.privacy-policy-modal .modal-footer{width:100%;display:flex;justify-content:center}.privacy-policy-modal .modal-footer .btn{padding:8px 25px;font-size:12px}\n"] }]
|
|
1235
1239
|
}], ctorParameters: () => [{ type: i1$1.DomSanitizer }], propDecorators: { title: [{
|
|
1236
1240
|
type: Input
|
|
1237
1241
|
}], branding: [{
|