@idsoftsource/initial-process 3.9.4 → 3.9.6
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.
|
@@ -1183,6 +1183,10 @@ class CredentialingStore {
|
|
|
1183
1183
|
setUploadedResumeFile(file) {
|
|
1184
1184
|
this.uploadedResumeFile.set({ name: file.name, size: file.size, lastModified: file.lastModified });
|
|
1185
1185
|
}
|
|
1186
|
+
resumeS3Key = signal(null, ...(ngDevMode ? [{ debugName: "resumeS3Key" }] : []));
|
|
1187
|
+
setResumeS3Key(s3Key) {
|
|
1188
|
+
this.resumeS3Key.set(s3Key);
|
|
1189
|
+
}
|
|
1186
1190
|
profileSignal = signal(null, ...(ngDevMode ? [{ debugName: "profileSignal" }] : []));
|
|
1187
1191
|
// Extra per-skill details for the resume-preview flow (indexed by skill position)
|
|
1188
1192
|
resumeSkillMeta = signal({}, ...(ngDevMode ? [{ debugName: "resumeSkillMeta" }] : []));
|
|
@@ -6442,6 +6446,7 @@ class PreviewComponent {
|
|
|
6442
6446
|
this.isSavingBasic = true;
|
|
6443
6447
|
try {
|
|
6444
6448
|
await firstValueFrom(this.userDetailService.initialSetUpCreateUserDetail(this.withTargetProviderIdFallback(payload)));
|
|
6449
|
+
await this.saveUserResume();
|
|
6445
6450
|
this.showDashboardConfirmPopup = false;
|
|
6446
6451
|
sessionStorage.removeItem(`ip_init_${this.payloadUserId}`);
|
|
6447
6452
|
this.store.resetAll();
|
|
@@ -6455,6 +6460,22 @@ class PreviewComponent {
|
|
|
6455
6460
|
this.isSavingBasic = false;
|
|
6456
6461
|
}
|
|
6457
6462
|
}
|
|
6463
|
+
async saveUserResume() {
|
|
6464
|
+
const s3Key = this.store.resumeS3Key();
|
|
6465
|
+
const parsedResume = this.store.profileSignal();
|
|
6466
|
+
if (!s3Key || !parsedResume)
|
|
6467
|
+
return;
|
|
6468
|
+
try {
|
|
6469
|
+
await firstValueFrom(this.userDetailService.createUserResumes([{
|
|
6470
|
+
targetUserId: this.payloadUserId,
|
|
6471
|
+
resumeUrl: s3Key,
|
|
6472
|
+
json: JSON.stringify(parsedResume),
|
|
6473
|
+
}]));
|
|
6474
|
+
}
|
|
6475
|
+
catch (err) {
|
|
6476
|
+
console.error('Failed to save user resume:', err);
|
|
6477
|
+
}
|
|
6478
|
+
}
|
|
6458
6479
|
proceedBack() {
|
|
6459
6480
|
this.showBackConfirmPopup = false;
|
|
6460
6481
|
this.backToParent.emit();
|
|
@@ -6495,9 +6516,8 @@ class PreviewComponent {
|
|
|
6495
6516
|
toggleEdit() {
|
|
6496
6517
|
const currentDetails = this.details();
|
|
6497
6518
|
if (currentDetails) {
|
|
6498
|
-
this.tempProfile = { ...currentDetails };
|
|
6519
|
+
this.tempProfile = { ...currentDetails, phone: this.formatPhone(currentDetails.phone || '') };
|
|
6499
6520
|
this.isEditMode.set(true);
|
|
6500
|
-
setTimeout(() => this.basicForm?.form.markAllAsTouched());
|
|
6501
6521
|
}
|
|
6502
6522
|
}
|
|
6503
6523
|
cancel() {
|
|
@@ -36193,7 +36213,6 @@ class FirstComponent {
|
|
|
36193
36213
|
tokenService;
|
|
36194
36214
|
resumedetail;
|
|
36195
36215
|
fileService;
|
|
36196
|
-
userDetailService;
|
|
36197
36216
|
isUploading = false;
|
|
36198
36217
|
resumeData = null;
|
|
36199
36218
|
awsFileUpdate = [];
|
|
@@ -36206,13 +36225,12 @@ class FirstComponent {
|
|
|
36206
36225
|
fileDataUser;
|
|
36207
36226
|
model = { fileId: null, fileUrl: null, fileName: null };
|
|
36208
36227
|
nextStep = new EventEmitter();
|
|
36209
|
-
constructor(store, roleContextService, tokenService, resumedetail, fileService
|
|
36228
|
+
constructor(store, roleContextService, tokenService, resumedetail, fileService) {
|
|
36210
36229
|
this.store = store;
|
|
36211
36230
|
this.roleContextService = roleContextService;
|
|
36212
36231
|
this.tokenService = tokenService;
|
|
36213
36232
|
this.resumedetail = resumedetail;
|
|
36214
36233
|
this.fileService = fileService;
|
|
36215
|
-
this.userDetailService = userDetailService;
|
|
36216
36234
|
}
|
|
36217
36235
|
async ngOnInit() {
|
|
36218
36236
|
this.userId = this.roleContextService?.tempUserContext()?.userId ?? await this.tokenService.getUserId();
|
|
@@ -36315,7 +36333,7 @@ class FirstComponent {
|
|
|
36315
36333
|
this.handleAutoNavigation();
|
|
36316
36334
|
this.resumeData = res;
|
|
36317
36335
|
this.store.setProfile(this.resumeData);
|
|
36318
|
-
this.
|
|
36336
|
+
this.store.setResumeS3Key(model.s3Key);
|
|
36319
36337
|
console.log('Resume Loaded Successfully:', this.resumeData);
|
|
36320
36338
|
console.log(`Working with ${this.resumeData.basicDetails.firstName}`);
|
|
36321
36339
|
this.isUploading = false;
|
|
@@ -36328,16 +36346,6 @@ class FirstComponent {
|
|
|
36328
36346
|
}
|
|
36329
36347
|
});
|
|
36330
36348
|
}
|
|
36331
|
-
async saveUserResume(s3Key, parsedResume) {
|
|
36332
|
-
const payload = [{
|
|
36333
|
-
targetUserId: this.roleContextService?.tempUserContext()?.userId ?? (await this.tokenService.getUserId()) ?? '',
|
|
36334
|
-
resumeUrl: s3Key,
|
|
36335
|
-
json: JSON.stringify(parsedResume),
|
|
36336
|
-
}];
|
|
36337
|
-
this.userDetailService.createUserResumes(payload).subscribe({
|
|
36338
|
-
error: (err) => console.error('Failed to save user resume:', err),
|
|
36339
|
-
});
|
|
36340
|
-
}
|
|
36341
36349
|
isAllowedResumeFile(file) {
|
|
36342
36350
|
const name = (file?.name ?? '').toLowerCase();
|
|
36343
36351
|
return name.endsWith('.pdf') || name.endsWith('.doc') || name.endsWith('.docx');
|
|
@@ -36392,13 +36400,13 @@ class FirstComponent {
|
|
|
36392
36400
|
onBackClick() {
|
|
36393
36401
|
this.backToParent.emit();
|
|
36394
36402
|
}
|
|
36395
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FirstComponent, deps: [{ token: CredentialingStore }, { token: i1$3.RoleContextService }, { token: i1$3.TokenService }, { token: ResumeDetailService }, { token: FileService }
|
|
36403
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FirstComponent, deps: [{ token: CredentialingStore }, { token: i1$3.RoleContextService }, { token: i1$3.TokenService }, { token: ResumeDetailService }, { token: FileService }], target: i0.ɵɵFactoryTarget.Component });
|
|
36396
36404
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: FirstComponent, isStandalone: false, selector: "app-first", outputs: { backToParent: "backToParent", nextStep: "nextStep" }, ngImport: i0, template: "<div class=\"wrapper position-relative\">\r\n\r\n <div class=\"step-card-header mb-4\" style=\"border-radius: 5px; margin: -28px -24px 24px;\">\r\n \r\n <div>\r\n <h3 class=\"step-card-title\">Resume & Profile</h3>\r\n <p class=\"step-card-subtitle\">Upload your resume to automatically populate your profile, including your work\r\n experience, education, skills, licenses, and certifications.</p>\r\n <p class=\"step-card-subtitle\">Don’t have a resume? Click Enter Manually to complete your profile\r\n yourself.</p>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"option-card\" [class.drag-over]=\"isDragOver\" (click)=\"openFile(fileInput, $event)\"\r\n (dragover)=\"onDragOver($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\">\r\n\r\n\r\n <input #fileInput type=\"file\" accept=\".pdf,.doc,.docx\" (change)=\"onFileSelected($event)\" hidden />\r\n\r\n\r\n <div class=\"card-content\" style=\"margin-left: 15px;gap: 18px;\">\r\n <div class=\"left\">\r\n <img src=\"assets/images/icons/upload-resume.png\" style=\"width: 55px;\" alt=\"Upload\" />\r\n </div>\r\n\r\n <div class=\"right\">\r\n <h3>Upload my resume</h3>\r\n <p>Drag & drop your resume here, or click to browse.</p>\r\n <small class=\"text-muted\" style=\"font-size: 12px;\">Allowed formats: PDF, DOC, DOCX</small>\r\n </div>\r\n </div>\r\n <div class=\"error-text\" *ngIf=\"uploadError\">{{ uploadError }}</div>\r\n </div>\r\n\r\n <label class=\"option-card\" (click)=\"manual()\">\r\n\r\n <div class=\"card-content\" (click)=\"manual()\" >\r\n <div class=\"left\">\r\n <img src=\"assets/images/icons/Edit Manually.svg\" alt=\"Manual\" />\r\n </div>\r\n\r\n <div class=\"right\" (click)=\"manual()\">\r\n <h3>Enter manually</h3>\r\n <p>You will enter all information manually.</p>\r\n </div>\r\n </div>\r\n </label>\r\n\r\n <div *ngIf=\"isUploading\" class=\"upload-overlay\">\r\n <div class=\"upload-overlay-card\">\r\n\r\n <div class=\"upload-overlay-ring\">\r\n <svg class=\"upload-ring-svg\" viewBox=\"0 0 64 64\">\r\n <circle class=\"upload-ring-track\" cx=\"32\" cy=\"32\" r=\"26\"/>\r\n <circle class=\"upload-ring-fill\" cx=\"32\" cy=\"32\" r=\"26\"/>\r\n </svg>\r\n <div class=\"upload-overlay-icon\">\r\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\"\r\n stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\r\n <path d=\"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z\"/>\r\n <polyline points=\"14 2 14 8 20 8\"/>\r\n <line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"/>\r\n <line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"/>\r\n </svg>\r\n </div>\r\n </div>\r\n\r\n <p class=\"upload-overlay-title\">Analyzing your resume</p>\r\n <p class=\"upload-overlay-sub\">Extracting experience & skills<span class=\"upload-dots\"></span></p>\r\n\r\n \r\n </div>\r\n </div>\r\n <div>\r\n <button class=\"back-btn\" (click)=\"onBackClick()\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19 12H5M12 5l-7 7 7 7\"/></svg>\r\n Back\r\n </button>\r\n </div>\r\n</div>", styles: [".wrapper{max-width:600px;margin:0 auto;padding:28px 24px;background:#fff;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.title{font-size:20px;font-weight:700;color:#1e293b;margin-bottom:4px}.subtitle{font-size:14px;color:#69707d;margin-bottom:24px}.option-card{display:block;border:1.5px solid #e2e8f0;border-radius:5px;padding:20px;margin-bottom:16px;cursor:pointer;transition:all .2s ease;position:relative;background:#fff;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a}.option-card:hover{border-color:#4077ad;box-shadow:0 4px 6px -1px #00000012,0 2px 4px -1px #0000000a;transform:translateY(-2px)}.option-card.drag-over{border-color:#4077ad;background:#ebf2f9;box-shadow:0 0 0 3px #4077ad26}.option-card:has(input:checked){border:2px solid #4077AD;background:#ebf2f9}.option-card input[type=radio]{position:absolute;left:15px;top:43px;accent-color:#4077AD}.card-content{display:flex;gap:16px;margin-left:30px;align-items:flex-start}.left img{width:37px;opacity:.75}.right h3{margin:0;font-size:16px;font-weight:600;color:#1e293b}.right p{margin:5px 0 10px;color:#69707d;font-size:14px}.file-display input{font-size:15px;cursor:pointer;height:42px;padding:10px 14px;border:1.5px solid #e2e8f0;border-radius:8px;background:#f9fafb;color:#1e293b;width:100%;transition:all .2s ease;box-sizing:border-box}.file-display input:focus{border-color:#4077ad;background:#fff;box-shadow:0 0 0 3px #4077ad1f;outline:none}.file-display input::placeholder{color:#69707d}.error-text{font-size:12px;color:#ef4444;margin-top:4px}.upload-overlay{position:absolute;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;border-radius:5px;background:#ffffffa6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.upload-overlay-card{display:flex;flex-direction:column;align-items:center;gap:14px;padding:32px 44px;border-radius:5px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 24px 64px #0000001c,0 4px 16px #0000000f;animation:overlay-card-in .32s cubic-bezier(.34,1.56,.64,1) both}@keyframes overlay-card-in{0%{opacity:0;transform:scale(.86) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.upload-overlay-ring{position:relative;width:64px;height:64px}.upload-ring-svg{width:64px;height:64px;transform:rotate(-90deg)}.upload-ring-track{fill:none;stroke:#e2e8f0;stroke-width:4}.upload-ring-fill{fill:none;stroke:#4077ad;stroke-width:4;stroke-linecap:round;stroke-dasharray:163.4;stroke-dashoffset:163.4;animation:ring-draw 1.5s cubic-bezier(.4,0,.2,1) infinite}@keyframes ring-draw{0%{stroke-dashoffset:163.4}50%{stroke-dashoffset:32}to{stroke-dashoffset:163.4}}.upload-overlay-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#4077ad}.upload-overlay-title{font-size:16px;font-weight:700;color:#69707d;margin:0;letter-spacing:-.01em;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.upload-overlay-sub{font-size:12px;color:#69707d;margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.upload-dots:after{content:\"\";animation:dots-cycle 1.5s steps(4,end) infinite}@keyframes dots-cycle{0%{content:\"\"}25%{content:\".\"}50%{content:\"..\"}75%{content:\"...\"}to{content:\"\"}}.upload-overlay-bars{display:flex;align-items:flex-end;gap:4px;height:20px}.upload-overlay-bars span{display:block;width:4px;border-radius:99px;background:#4077ad;animation:bar-wave 1s ease-in-out infinite}.upload-overlay-bars span:nth-child(1){animation-delay:0s}.upload-overlay-bars span:nth-child(2){animation-delay:.12s}.upload-overlay-bars span:nth-child(3){animation-delay:.24s}.upload-overlay-bars span:nth-child(4){animation-delay:.36s}.upload-overlay-bars span:nth-child(5){animation-delay:.48s}@keyframes bar-wave{0%,to{height:5px;opacity:.3}50%{height:20px;opacity:1}}.back-btn{height:42px;min-width:120px;background:#69707d;color:#fff;border:1.5px solid #69707D;border-radius:5px;padding:10px 22px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.back-btn:hover{border-color:#565c66;color:#fff;background:#565c66}.step-card{max-width:1000px;margin:0 auto;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f,0 4px 16px #4077ad14}.step-card-header{display:flex;align-items:center;gap:16px;padding:20px 28px;background:linear-gradient(135deg,#ebf2f9,#f0f6ff);border-bottom:1px solid #d5e8f5;border-radius:12px 12px 0 0}.step-card-header-icon{width:46px;height:46px;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px #4077ad2e;flex-shrink:0}.step-card-header-icon img{filter:brightness(0) saturate(100%) invert(37%) sepia(55%) saturate(500%) hue-rotate(190deg) brightness(95%) contrast(85%);width:22px;height:22px}.step-card-title{font-size:16px;font-weight:700;color:#1e293b;margin:0 0 3px;letter-spacing:-.01em}.step-card-subtitle{font-size:14px;color:#69707d;margin:0 0 8px;line-height:1.4}.step-card-subtitle:last-child{margin-bottom:0}.step-title-row{display:flex;align-items:center;gap:6px;margin:0 0 3px}.info-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:#4077ad;cursor:pointer;flex-shrink:0}.info-icon-btn:focus{outline:none}.info-icon-btn svg{width:15px;height:15px}::ng-deep .section-info-popover .tooltip-inner{max-width:320px;text-align:left;background-color:#fff;color:#69707d;padding:12px 14px;box-shadow:0 2px 10px #00000026;border:1px solid #e2e8f0}::ng-deep .section-info-popover.tooltip.bs-tooltip-right .tooltip-arrow:before,::ng-deep .section-info-popover.tooltip.bs-tooltip-left .tooltip-arrow:before,::ng-deep .section-info-popover.tooltip.bs-tooltip-top .tooltip-arrow:before,::ng-deep .section-info-popover.tooltip.bs-tooltip-bottom .tooltip-arrow:before{border-right-color:#fff}::ng-deep .section-info-popover .section-info-content{font-size:12px;line-height:1.5}::ng-deep .section-info-popover .section-info-content strong{font-size:13px}::ng-deep .section-info-popover .section-info-content p{margin-bottom:6px}::ng-deep .section-info-popover .section-info-content p:last-child{margin-bottom:0}.step-card-body{padding:24px 28px 8px}.field-section{margin-bottom:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px 18px 6px}.field-section-title{font-size:12px;font-weight:700;color:#4077ad;text-transform:uppercase;letter-spacing:.07em;margin-bottom:14px;display:flex;align-items:center;gap:7px}.field-section-title:before{content:\"\";display:inline-block;width:5px;height:5px;background:#4077ad;border-radius:50%;flex-shrink:0}.doc-type-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0 12px}.doc-type-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 14px;border-radius:5px;border:1.5px solid #e2e8f0;background:#fff;color:#69707d;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;-webkit-user-select:none;user-select:none;line-height:1.4}.doc-type-chip input[type=checkbox]{display:none}.doc-type-chip:hover{border-color:#4077ad;color:#4077ad;background:#ebf2f9}.doc-type-chip.selected{background:#4077ad;border-color:#4077ad;color:#fff;font-weight:600;box-shadow:0 2px 6px #4077ad4d}.detail-row{display:flex;flex-wrap:wrap;column-gap:22px;row-gap:6px;margin-bottom:8px}.detail-item{display:flex;align-items:baseline;gap:6px;white-space:nowrap}.detail-label{font-size:14px;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:#4077ad}.detail-value{font-size:12.5px;font-weight:600;color:#1e293b}button.primary,button.secondary,button.back-btn,button.continue-btn,button.save-btn,button.add-btn,button.upload-btn,.actions button,.action button,.navigation-buttons button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:5px;box-shadow:none}button.primary svg,button.secondary svg,button.back-btn svg,button.continue-btn svg,button.save-btn svg,button.add-btn svg,button.upload-btn svg,.actions button svg,.action button svg,.navigation-buttons button svg{flex-shrink:0;width:14px;height:14px}.step-toast{position:fixed;bottom:28px;right:28px;display:flex;align-items:flex-start;gap:14px;background:#fff;border-radius:12px;padding:16px 20px 20px;box-shadow:0 8px 32px #00000024;z-index:9999;min-width:290px;max-width:360px;animation:toastSlideIn .32s cubic-bezier(.34,1.56,.64,1);overflow:hidden}@keyframes toastSlideIn{0%{transform:translate(110%);opacity:0}to{transform:translate(0);opacity:1}}.step-toast-icon{width:34px;height:34px;background:#dcfce7;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;color:#16a34a}.step-toast-body{flex:1}.step-toast-title{font-size:14px;font-weight:700;color:#1e293b;margin-bottom:2px}.step-toast-msg{font-size:12px;color:#69707d;line-height:1.4}.step-toast-progress{position:absolute;bottom:0;left:0;height:3px;background:#22c55e;border-radius:0 2px 2px 0;animation:toastProgress 3.5s linear forwards}@keyframes toastProgress{0%{width:100%}to{width:0%}}@media screen and (max-width: 767px){.step-card-header{padding:14px 16px}.step-card-body{padding:16px 16px 8px}.step-toast{right:12px;bottom:16px;min-width:calc(100vw - 24px);max-width:calc(100vw - 24px)}}@media screen and (max-width: 767px){.wrapper{padding:16px;width:90%}.title{font-size:18px}.file-display input{font-size:16px}.back-btn{width:100%}}\n"], dependencies: [{ kind: "directive", type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
36397
36405
|
}
|
|
36398
36406
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FirstComponent, decorators: [{
|
|
36399
36407
|
type: Component,
|
|
36400
36408
|
args: [{ selector: 'app-first', standalone: false, template: "<div class=\"wrapper position-relative\">\r\n\r\n <div class=\"step-card-header mb-4\" style=\"border-radius: 5px; margin: -28px -24px 24px;\">\r\n \r\n <div>\r\n <h3 class=\"step-card-title\">Resume & Profile</h3>\r\n <p class=\"step-card-subtitle\">Upload your resume to automatically populate your profile, including your work\r\n experience, education, skills, licenses, and certifications.</p>\r\n <p class=\"step-card-subtitle\">Don’t have a resume? Click Enter Manually to complete your profile\r\n yourself.</p>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"option-card\" [class.drag-over]=\"isDragOver\" (click)=\"openFile(fileInput, $event)\"\r\n (dragover)=\"onDragOver($event)\" (dragleave)=\"onDragLeave($event)\" (drop)=\"onDrop($event)\">\r\n\r\n\r\n <input #fileInput type=\"file\" accept=\".pdf,.doc,.docx\" (change)=\"onFileSelected($event)\" hidden />\r\n\r\n\r\n <div class=\"card-content\" style=\"margin-left: 15px;gap: 18px;\">\r\n <div class=\"left\">\r\n <img src=\"assets/images/icons/upload-resume.png\" style=\"width: 55px;\" alt=\"Upload\" />\r\n </div>\r\n\r\n <div class=\"right\">\r\n <h3>Upload my resume</h3>\r\n <p>Drag & drop your resume here, or click to browse.</p>\r\n <small class=\"text-muted\" style=\"font-size: 12px;\">Allowed formats: PDF, DOC, DOCX</small>\r\n </div>\r\n </div>\r\n <div class=\"error-text\" *ngIf=\"uploadError\">{{ uploadError }}</div>\r\n </div>\r\n\r\n <label class=\"option-card\" (click)=\"manual()\">\r\n\r\n <div class=\"card-content\" (click)=\"manual()\" >\r\n <div class=\"left\">\r\n <img src=\"assets/images/icons/Edit Manually.svg\" alt=\"Manual\" />\r\n </div>\r\n\r\n <div class=\"right\" (click)=\"manual()\">\r\n <h3>Enter manually</h3>\r\n <p>You will enter all information manually.</p>\r\n </div>\r\n </div>\r\n </label>\r\n\r\n <div *ngIf=\"isUploading\" class=\"upload-overlay\">\r\n <div class=\"upload-overlay-card\">\r\n\r\n <div class=\"upload-overlay-ring\">\r\n <svg class=\"upload-ring-svg\" viewBox=\"0 0 64 64\">\r\n <circle class=\"upload-ring-track\" cx=\"32\" cy=\"32\" r=\"26\"/>\r\n <circle class=\"upload-ring-fill\" cx=\"32\" cy=\"32\" r=\"26\"/>\r\n </svg>\r\n <div class=\"upload-overlay-icon\">\r\n <svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\"\r\n stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\r\n <path d=\"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z\"/>\r\n <polyline points=\"14 2 14 8 20 8\"/>\r\n <line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"/>\r\n <line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"/>\r\n </svg>\r\n </div>\r\n </div>\r\n\r\n <p class=\"upload-overlay-title\">Analyzing your resume</p>\r\n <p class=\"upload-overlay-sub\">Extracting experience & skills<span class=\"upload-dots\"></span></p>\r\n\r\n \r\n </div>\r\n </div>\r\n <div>\r\n <button class=\"back-btn\" (click)=\"onBackClick()\">\r\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19 12H5M12 5l-7 7 7 7\"/></svg>\r\n Back\r\n </button>\r\n </div>\r\n</div>", styles: [".wrapper{max-width:600px;margin:0 auto;padding:28px 24px;background:#fff;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.title{font-size:20px;font-weight:700;color:#1e293b;margin-bottom:4px}.subtitle{font-size:14px;color:#69707d;margin-bottom:24px}.option-card{display:block;border:1.5px solid #e2e8f0;border-radius:5px;padding:20px;margin-bottom:16px;cursor:pointer;transition:all .2s ease;position:relative;background:#fff;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000a}.option-card:hover{border-color:#4077ad;box-shadow:0 4px 6px -1px #00000012,0 2px 4px -1px #0000000a;transform:translateY(-2px)}.option-card.drag-over{border-color:#4077ad;background:#ebf2f9;box-shadow:0 0 0 3px #4077ad26}.option-card:has(input:checked){border:2px solid #4077AD;background:#ebf2f9}.option-card input[type=radio]{position:absolute;left:15px;top:43px;accent-color:#4077AD}.card-content{display:flex;gap:16px;margin-left:30px;align-items:flex-start}.left img{width:37px;opacity:.75}.right h3{margin:0;font-size:16px;font-weight:600;color:#1e293b}.right p{margin:5px 0 10px;color:#69707d;font-size:14px}.file-display input{font-size:15px;cursor:pointer;height:42px;padding:10px 14px;border:1.5px solid #e2e8f0;border-radius:8px;background:#f9fafb;color:#1e293b;width:100%;transition:all .2s ease;box-sizing:border-box}.file-display input:focus{border-color:#4077ad;background:#fff;box-shadow:0 0 0 3px #4077ad1f;outline:none}.file-display input::placeholder{color:#69707d}.error-text{font-size:12px;color:#ef4444;margin-top:4px}.upload-overlay{position:absolute;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;border-radius:5px;background:#ffffffa6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.upload-overlay-card{display:flex;flex-direction:column;align-items:center;gap:14px;padding:32px 44px;border-radius:5px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 24px 64px #0000001c,0 4px 16px #0000000f;animation:overlay-card-in .32s cubic-bezier(.34,1.56,.64,1) both}@keyframes overlay-card-in{0%{opacity:0;transform:scale(.86) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.upload-overlay-ring{position:relative;width:64px;height:64px}.upload-ring-svg{width:64px;height:64px;transform:rotate(-90deg)}.upload-ring-track{fill:none;stroke:#e2e8f0;stroke-width:4}.upload-ring-fill{fill:none;stroke:#4077ad;stroke-width:4;stroke-linecap:round;stroke-dasharray:163.4;stroke-dashoffset:163.4;animation:ring-draw 1.5s cubic-bezier(.4,0,.2,1) infinite}@keyframes ring-draw{0%{stroke-dashoffset:163.4}50%{stroke-dashoffset:32}to{stroke-dashoffset:163.4}}.upload-overlay-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#4077ad}.upload-overlay-title{font-size:16px;font-weight:700;color:#69707d;margin:0;letter-spacing:-.01em;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.upload-overlay-sub{font-size:12px;color:#69707d;margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.upload-dots:after{content:\"\";animation:dots-cycle 1.5s steps(4,end) infinite}@keyframes dots-cycle{0%{content:\"\"}25%{content:\".\"}50%{content:\"..\"}75%{content:\"...\"}to{content:\"\"}}.upload-overlay-bars{display:flex;align-items:flex-end;gap:4px;height:20px}.upload-overlay-bars span{display:block;width:4px;border-radius:99px;background:#4077ad;animation:bar-wave 1s ease-in-out infinite}.upload-overlay-bars span:nth-child(1){animation-delay:0s}.upload-overlay-bars span:nth-child(2){animation-delay:.12s}.upload-overlay-bars span:nth-child(3){animation-delay:.24s}.upload-overlay-bars span:nth-child(4){animation-delay:.36s}.upload-overlay-bars span:nth-child(5){animation-delay:.48s}@keyframes bar-wave{0%,to{height:5px;opacity:.3}50%{height:20px;opacity:1}}.back-btn{height:42px;min-width:120px;background:#69707d;color:#fff;border:1.5px solid #69707D;border-radius:5px;padding:10px 22px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.back-btn:hover{border-color:#565c66;color:#fff;background:#565c66}.step-card{max-width:1000px;margin:0 auto;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000000f,0 4px 16px #4077ad14}.step-card-header{display:flex;align-items:center;gap:16px;padding:20px 28px;background:linear-gradient(135deg,#ebf2f9,#f0f6ff);border-bottom:1px solid #d5e8f5;border-radius:12px 12px 0 0}.step-card-header-icon{width:46px;height:46px;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px #4077ad2e;flex-shrink:0}.step-card-header-icon img{filter:brightness(0) saturate(100%) invert(37%) sepia(55%) saturate(500%) hue-rotate(190deg) brightness(95%) contrast(85%);width:22px;height:22px}.step-card-title{font-size:16px;font-weight:700;color:#1e293b;margin:0 0 3px;letter-spacing:-.01em}.step-card-subtitle{font-size:14px;color:#69707d;margin:0 0 8px;line-height:1.4}.step-card-subtitle:last-child{margin-bottom:0}.step-title-row{display:flex;align-items:center;gap:6px;margin:0 0 3px}.info-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:#4077ad;cursor:pointer;flex-shrink:0}.info-icon-btn:focus{outline:none}.info-icon-btn svg{width:15px;height:15px}::ng-deep .section-info-popover .tooltip-inner{max-width:320px;text-align:left;background-color:#fff;color:#69707d;padding:12px 14px;box-shadow:0 2px 10px #00000026;border:1px solid #e2e8f0}::ng-deep .section-info-popover.tooltip.bs-tooltip-right .tooltip-arrow:before,::ng-deep .section-info-popover.tooltip.bs-tooltip-left .tooltip-arrow:before,::ng-deep .section-info-popover.tooltip.bs-tooltip-top .tooltip-arrow:before,::ng-deep .section-info-popover.tooltip.bs-tooltip-bottom .tooltip-arrow:before{border-right-color:#fff}::ng-deep .section-info-popover .section-info-content{font-size:12px;line-height:1.5}::ng-deep .section-info-popover .section-info-content strong{font-size:13px}::ng-deep .section-info-popover .section-info-content p{margin-bottom:6px}::ng-deep .section-info-popover .section-info-content p:last-child{margin-bottom:0}.step-card-body{padding:24px 28px 8px}.field-section{margin-bottom:18px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px 18px 6px}.field-section-title{font-size:12px;font-weight:700;color:#4077ad;text-transform:uppercase;letter-spacing:.07em;margin-bottom:14px;display:flex;align-items:center;gap:7px}.field-section-title:before{content:\"\";display:inline-block;width:5px;height:5px;background:#4077ad;border-radius:50%;flex-shrink:0}.doc-type-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0 12px}.doc-type-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 14px;border-radius:5px;border:1.5px solid #e2e8f0;background:#fff;color:#69707d;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;-webkit-user-select:none;user-select:none;line-height:1.4}.doc-type-chip input[type=checkbox]{display:none}.doc-type-chip:hover{border-color:#4077ad;color:#4077ad;background:#ebf2f9}.doc-type-chip.selected{background:#4077ad;border-color:#4077ad;color:#fff;font-weight:600;box-shadow:0 2px 6px #4077ad4d}.detail-row{display:flex;flex-wrap:wrap;column-gap:22px;row-gap:6px;margin-bottom:8px}.detail-item{display:flex;align-items:baseline;gap:6px;white-space:nowrap}.detail-label{font-size:14px;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:#4077ad}.detail-value{font-size:12.5px;font-weight:600;color:#1e293b}button.primary,button.secondary,button.back-btn,button.continue-btn,button.save-btn,button.add-btn,button.upload-btn,.actions button,.action button,.navigation-buttons button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:5px;box-shadow:none}button.primary svg,button.secondary svg,button.back-btn svg,button.continue-btn svg,button.save-btn svg,button.add-btn svg,button.upload-btn svg,.actions button svg,.action button svg,.navigation-buttons button svg{flex-shrink:0;width:14px;height:14px}.step-toast{position:fixed;bottom:28px;right:28px;display:flex;align-items:flex-start;gap:14px;background:#fff;border-radius:12px;padding:16px 20px 20px;box-shadow:0 8px 32px #00000024;z-index:9999;min-width:290px;max-width:360px;animation:toastSlideIn .32s cubic-bezier(.34,1.56,.64,1);overflow:hidden}@keyframes toastSlideIn{0%{transform:translate(110%);opacity:0}to{transform:translate(0);opacity:1}}.step-toast-icon{width:34px;height:34px;background:#dcfce7;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;color:#16a34a}.step-toast-body{flex:1}.step-toast-title{font-size:14px;font-weight:700;color:#1e293b;margin-bottom:2px}.step-toast-msg{font-size:12px;color:#69707d;line-height:1.4}.step-toast-progress{position:absolute;bottom:0;left:0;height:3px;background:#22c55e;border-radius:0 2px 2px 0;animation:toastProgress 3.5s linear forwards}@keyframes toastProgress{0%{width:100%}to{width:0%}}@media screen and (max-width: 767px){.step-card-header{padding:14px 16px}.step-card-body{padding:16px 16px 8px}.step-toast{right:12px;bottom:16px;min-width:calc(100vw - 24px);max-width:calc(100vw - 24px)}}@media screen and (max-width: 767px){.wrapper{padding:16px;width:90%}.title{font-size:18px}.file-display input{font-size:16px}.back-btn{width:100%}}\n"] }]
|
|
36401
|
-
}], ctorParameters: () => [{ type: CredentialingStore }, { type: i1$3.RoleContextService }, { type: i1$3.TokenService }, { type: ResumeDetailService }, { type: FileService }
|
|
36409
|
+
}], ctorParameters: () => [{ type: CredentialingStore }, { type: i1$3.RoleContextService }, { type: i1$3.TokenService }, { type: ResumeDetailService }, { type: FileService }], propDecorators: { backToParent: [{
|
|
36402
36410
|
type: Output
|
|
36403
36411
|
}], nextStep: [{
|
|
36404
36412
|
type: Output
|