1import{a as ke}from"./chunk-HCIVBWAH.js";import{c as de,e as j,g as pe,h as me,m as ue,n as ge,p as fe,s as ve,w as he,y as be}from"./chunk-2R4AZB5W.js";import{a as se}from"./chunk-HT2STO7B.js";import{b as ce}from"./chunk-MCQML6YT.js";import"./chunk-XNXLFDZX.js";import{a as le}from"./chunk-KELMSLCR.js";import{a as oe}from"./chunk-N6W3AF2G.js";import{a as ae}from"./chunk-IENL4UJA.js";import{b as re,d as N,e as T}from"./chunk-JLWCQ6UT.js";import{K as ie,V as ne}from"./chunk-P4C42LQP.js";import{d as te}from"./chunk-RZZCZ2VH.js";import{l as X,m as E,u as Z,v as ee,w as W}from"./chunk-Z7IUSDSQ.js";import{Bg as J,Cf as H,D as z,Fa as b,Je as a,Kd as C,Ke as o,Le as f,P as F,Pe as P,Ra as w,Vf as c,Wf as O,Xf as p,Yf as U,Zf as Q,fe as V,ff as _,hf as u,ic as I,ig as M,j as $,jc as K,kb as k,kf as Y,lb as x,ma as G,pe as d,re as L,s as S,t as B,vg as l,wg as s,zc as r}from"./chunk-SRTQBDBP.js";import{a as Se}from"./chunk-EJD3L6HM.js";import{a as q,b as D,g as Me}from"./chunk-T7NDVU76.js";var xe=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=w({type:i,selectors:[["app-mediation"]],standalone:!0,features:[M],decls:5,vars:0,consts:[[1,"mediation"],[1,"my-5"],[1,"container"],[1,"mt-4"]],template:function(n,t){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),f(4,"router-outlet"),o()()()())},dependencies:[ie],styles:[".mediation[_ngcontent-%COMP%]{min-height:80vh}"]})}}return i})();var _e=(()=>{class i{constructor(){this.url=ae.apiUrl,this.http=b(te)}getNationalityMediation(e){return this.http.get(this.url+`MediationRequest/GetNationalityMediation?CrmUserId=${e}`).pipe(S(n=>n.data))}getMediationEmployeesData(e){return this.http.get(this.url+`MediationRequest/GetMediationEmployeesData?NationalityId=${e}`).pipe(S(n=>(n.data||[]).map(t=>D(q({},t),{workerId:t.workerId||t.mediationEmpId||t.id||t.employeeId}))))}isMediationNationalityEmployeesExist(e){return this.http.get(this.url+`MediationRequest/IsMediationNationalityEmployeesExist?nationalityId=${e}`).pipe(S(n=>n.data))}getMediationEmployees(){return this.http.get(this.url+"MediationRequest/MediationEmployees").pipe(S(e=>e.data))}createLead(e){return this.http.post(this.url+"MediationRequest/CreateLead",e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=G({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Oe(i,v){i&1&&f(0,"img",33)}function Ee(i,v){i&1&&f(0,"img",34)}function We(i,v){if(i&1&&(a(0,"div",35),f(1,"img",36),o()),i&2){let e=u();V("data-bs-target","#cvModal-"+e.worker.workerId)}}function Ne(i,v){if(i&1&&(a(0,"div",37),f(1,"img",38),o()),i&2){let e=u();V("data-bs-target","#videoModal-"+e.worker.workerId)}}var Ce=(()=>{class i{constructor(){this.isSelected=!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=w({type:i,selectors:[["app-mediation-worker"]],hostAttrs:[1,"d-block","h-100"],inputs:{worker:"worker",isSelected:"isSelected"},standalone:!0,features:[M],decls:78,vars:63,consts:[[1,"worker-card","p-3","rounded-4","h-100","position-relative","cursor-pointer"],[1,"row","g-0","h-100"],[1,"col-12"],[1,"d-flex","justify-content-between","align-items-start","gap-4"],[1,"d-flex","flex-column","align-items-center","gap-3"],[1,"profile-image-container","rounded-3","overflow-hidden"],[3,"src","alt"],[1,"check-circle","rounded-circle","d-flex","justify-content-center","align-items-center"],["src","assets/images/mediation/card-checked.svg","alt","Selected",4,"ngIf"],["src","assets/images/mediation/card-unchecked.svg","alt","Unselected",4,"ngIf"],[1,"w-100","d-flex","gap-3","justify-content-between","flex-grow","flex-column"],[1,"fw-bold","fs-16","mb-1","text-end"],[1,"worker-details","fs-12","text-secondary","text-end"],[1,"mb-1"],[1,"fw-bold"],[1,"mt-2","text-B51A04","fw-bold","fs-14","d-flex","gap-2","justify-content-between"],[1,"salary"],[1,"actions","d-flex","flex-row","justify-content-start","align-items-start","gap-2"],["class","cursor-pointer action-button cv-button","data-bs-toggle","modal",4,"ngIf"],["class","cursor-pointer action-button video-button","data-bs-toggle","modal",4,"ngIf"],["data-bs-backdrop","static","data-bs-keyboard","false","tabindex","-1","aria-labelledby","cvModalLabel","aria-hidden","true",1,"modal","fade",3,"id"],[1,"modal-dialog","modal
1-dialog-centered","modal-xl",2,"max-width","90% !important","margin","auto"],[1,"modal-content",2,"height","614px !important","display","flex","flex-direction","column"],[1,"card-header","p-0","position-relative"],[1,"modal-header","fs-18","fw-bold","text-center","gap-4","border-0","p-3","mb-0"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close","position-absolute","d-none",2,"top","0.5rem","right","0.5rem","z-index","10"],[1,"modal-body","p-0","d-flex","flex-column","flex-grow-1",2,"overflow","hidden"],[1,"d-flex","justify-content-center","p-3","flex-grow-1",2,"min-height","0"],["title","Worker CV",1,"w-100","h-100",2,"border","none",3,"src"],[1,"mt-auto","p-3","d-flex","justify-content-end"],["type","button","data-bs-dismiss","modal",1,"modal-btn","secondary-button","fs-20","fw-regular"],["data-bs-backdrop","static","data-bs-keyboard","false","tabindex","-1","aria-labelledby","videoModalLabel","aria-hidden","true",1,"modal","fade",3,"id"],["controls","","title","Worker Video",1,"w-100","h-100",2,"object-fit","contain",3,"src"],["src","assets/images/mediation/card-checked.svg","alt","Selected"],["src","assets/images/mediation/card-unchecked.svg","alt","Unselected"],["data-bs-toggle","modal",1,"cursor-pointer","action-button","cv-button"],["src","assets/images/mediation/cv.svg","alt","CV"],["data-bs-toggle","modal",1,"cursor-pointer","action-button","video-button"],["src","assets/images/mediation/video.svg","alt","Video"]],template:function(n,t){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),f(6,"img",6),o(),a(7,"div",7),C(8,Oe,1,0,"img",8)(9,Ee,1,0,"img",9),o()(),a(10,"div",10)(11,"h5",11),c(12),o(),a(13,"div",12)(14,"div",13)(15,"span",14),c(16),l(17,"translate"),o(),c(18),o(),a(19,"div",13)(20,"span",14),c(21),l(22,"translate"),o(),c(23),o(),a(24,"div",13)(25,"span",14),c(26),l(27,"translate"),o(),c(28),l(29,"translate"),o(),a(30,"div",13)(31,"span",14),c(32),l(33,"translate"),o(),c(34),l(35,"translate"),o(),a(36,"div",15)(37,"div",16),c(38),l(39,"translate"),l(40,"number"),o(),a(41,"div",17),C(42,We,2,1,"div",18)(43,Ne,2,1,"div",19),o()()()()()()()(),a(44,"div",20)(45,"div",21)(46,"div",22)(47,"div",23)(48,"div",24),c(49),l(50,"translate"),o(),f(51,"button",25),o(),a(52,"div",26)(53,"div",27),f(54,"iframe",28),l(55,"safeUrl"),o(),a(56,"div",29)(57,"button",30),c(58),l(59,"translate"),o()()()()()(),a(60,"div",31)(61,"div",21)(62,"div",22)(63,"div",23)(64,"div",24),c(65),l(66,"translate"),o(),f(67,"button",25),o(),a(68,"div",26)(69,"div",27)(70,"video",32),l(71,"safeUrl"),c(72),l(73,"translate"),o()(),a(74,"div",29)(75,"button",30),c(76),l(77,"translate"),o()()()()()()),n&2&&(L("selected",t.isSelected),r(6),Y("alt",t.worker.name),d("src",t.worker.imagePath?t.worker.imagePath:t.isSelected?"assets/images/mediation/default-worker-selected.svg":"assets/images/mediation/default-worker.svg",I),r(),L("checked",t.isSelected),r(),d("ngIf",t.isSelected),r(),d("ngIf",!t.isSelected),r(3),O(t.worker.name),r(4),p("",s(17,33,"Mediation.Profession"),":"),r(2),p(" ",t.worker.job," "),r(3),p("",s(22,35,"Mediation.Religion"),":"),r(2),p(" ",t.worker.religion," "),r(3),p("",s(27,37,"Mediation.Age"),":"),r(2),U(" ",t.worker.age," ",s(29,39,"Shared.Years")," "),r(4),p("",s(33,41,"Mediation.Experience"),":"),r(2),U(" ",t.worker.experiencePeriod," ",s(35,43,"Shared.Years")," "),r(4),Q(" ",s(39,45,"Mediation.Salary"),": ",s(40,47,t.worker.salary)," ",t.worker.currency||"SAR"," "),r(4),d("ngIf",t.worker.cv),r(),d("ngIf",t.worker.video),r(),d("id","cvModal-"+t.worker.workerId),r(5),p(" ",s(50,49,"Mediation.WorkerCV")," "),r(5),d("src",s(55,51,t.worker.cv),K),r(4),p(" ",s(59,53,"Shared.close")," "),r(2),d("id","videoModal-"+t.worker.workerId),r(5),p(" ",s(66,55,"Mediation.WorkerVideo")," "),r(5),d("src",s(71,57,t.worker.video),I),r(2),p(" ",s(73,59,"Shared.browserNotSupportVideo")," "),r(4),p(" ",s(77,61,"Shared.close")," "))},dependencies:[W,E,Z,T,N,ke],styles:["[_nghost-%COMP%]{display:block;height:100%}.worker-card[_ngcontent-%COMP%]{background-color:#e1e1e1;border:1px solid transparent;transition:all .3s ease}.worker-card.selected[_ngcontent-%COMP%]{background-color:#960d13;color:#fff}.worker-card.selected[_ngcontent-%COMP%] .worker-details[_ngcontent-%COMP%]{color:#ffffffe6!important}.worker-card.selected[_ngcontent-%COMP%] .text-B51A04[_ngcontent-%COMP%]{color:#fff!important}.worker-card.selected[_ngcontent-%COMP%] .media-icon[_ngcontent-%COMP%]{background-color:#fff;opacity:.9}.worker-card.selected[_ngcontent-%COMP%] .media-icon.cv-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#960d13!important}.worker-card.selected[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%]{background-color:#960d13}.worker-card[_ngcontent-%COMP%] .media-icon[_ngcontent-%COMP%]{width:32px;height:32px;background-color:#fff;transition:transform .2s}.worker-card[_ngcontent-%COMP%] .media-icon[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.worker-card[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%]{width:80px;height:80px;border:1px solid #ffffff;border-radius:8px;background-color:#a44145;display:flex;justify-content:center;align-items:center;overflow:hidden}
1.worker-card[_ngcontent-%COMP%] .check-circle[_ngcontent-%COMP%]{width:24px;height:24px;border:2px solid #ccc;background-color:transparent;transition:all .2s}.worker-card[_ngcontent-%COMP%] .check-circle.checked[_ngcontent-%COMP%]{background-color:#fff;border-color:#fff}.worker-card[_ngcontent-%COMP%]:not(.selected) .check-circle[_ngcontent-%COMP%]{border-color:#fff;background-color:#ffffff80}.worker-card[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{cursor:pointer;transition:transform .2s ease,opacity .2s ease;display:inline-flex;align-items:center;justify-content:center}.worker-card[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transition:transform .2s ease}.worker-card[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]:hover{transform:scale(1.1);opacity:.8}.worker-card[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{transform:scale(1.05)}.worker-card[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]:active{transform:scale(.95)}.modal-btn.secondary-button[_ngcontent-%COMP%]{background-color:#cbcbcb!important}"]})}}return i})();var y=Me(Se());function Te(i,v){if(i&1){let e=P();a(0,"div",11)(1,"input",12),_("change",function(){let t=k(e).$implicit,m=u(2);return x(m.onChangeNationality(t.nationalityId))}),o(),a(2,"label",13),f(3,"img",14),a(4,"span",15),c(5),o(),a(6,"span",16),c(7),l(8,"currency"),o()()()}if(i&2){let e=v.$implicit;r(),d("id","nat_"+e.nationalityId)("value",e.nationalityId),r(),d("for","nat_"+e.nationalityId),r(),d("src",e.imageUrl||"assets/images/mediation/default-nationality.svg",I)("alt",e.nationalityName),r(2),O(e.nationalityName),r(2),O(s(8,7,e.totalMediationCost))}}function Be(i,v){if(i&1&&(a(0,"div",7)(1,"div",8),c(2),l(3,"translate"),o(),a(4,"div",9),C(5,Te,9,9,"div",10),o()()),i&2){let e=u();r(2),p(" ",s(3,2,"selectIndividualQuota.ChooseNationality")," "),r(3),d("ngForOf",e.nationalities)}}function Fe(i,v){if(i&1){let e=P();a(0,"div",20)(1,"app-mediation-worker",21),_("click",function(){let t=k(e).$implicit,m=u(2);return x(m.onWorkerSelected(t))}),o()()}if(i&2){let e,n=v.$implicit,t=u(2);r(),d("worker",n)("isSelected",((e=t.selectWorkerForm.get("workerId"))==null?null:e.value)&&((e=t.selectWorkerForm.get("workerId"))==null?null:e.value)==n.workerId)}}function Ve(i,v){if(i&1&&(a(0,"div",17)(1,"div",18),C(2,Fe,2,2,"div",19),o()()),i&2){let e=u();r(2),d("ngForOf",e.workers)}}function Le(i,v){if(i&1){let e=P();a(0,"div",22)(1,"div",23),c(2),l(3,"translate"),o(),a(4,"div",24)(5,"button",25),_("click",function(){k(e);let t=u();return x(t.navigateToServices())}),c(6),l(7,"translate"),o(),a(8,"button",26),_("click",function(){k(e);let t=u();return x(t.createLeadWithoutWorker())}),c(9),l(10,"translate"),o()()()}i&2&&(r(2),p(" ",s(3,3,"No_Workers_Found_For_Nationality")," "),r(4),p(" ",s(7,5,"Shared.Cancel")," "),r(3),p(" ",s(10,7,"Mediation.CreateRequestWithoutWorker")," "))}function Ue(i,v){i&1&&(a(0,"div",27)(1,"div",28),c(2),l(3,"translate"),o()()),i&2&&(r(2),p(" ",s(3,1,"No_Workers_Found_For_Nationality")," "))}function je(i,v){if(i&1){let e=P();a(0,"div",29)(1,"button",30),_("click",function(){k(e);let t=u();return x(t.navigateToServices())}),c(2),l(3,"translate"),o(),a(4,"button",31),_("click",function(){k(e);let t=u();return x(t.createLeadWithoutWorker())}),c(5),l(6,"translate"),o(),a(7,"button",32),_("click",function(){k(e);let t=u();return x(t.createLeadWithWorker())}),c(8),l(9,"translate"),o()()}if(i&2){let e,n,t=u();r(2),p(" ",s(3,5,"Shared.Cancel")," "),r(2),d("disabled",!!((e=t.selectWorkerForm.get("workerId"))!=null&&e.value)),r(),p(" ",s(6,7,"Mediation.CreateRequestWithoutWorker")," "),r(2),d("disabled",!((n=t.selectWorkerForm.get("workerId"))!=null&&n.value)),r(),p(" ",s(9,9,"Mediation.CreateRequestWithWorker")," ")}}var ye=(()=>{class i{constructor(){this.mediationService=b(_e),this.userService=b(ce),this.profileService=b(se),this.langService=b(oe),this.translateService=b(re),this.router=b(ne),this.fb=b(he),this.nationalities=[],this.workers=[],this.crmUserId="",this.selectWorkerForm=this.fb.group({nationalityId:["",[j.required]],workerId:["",[j.required]]}),this.subscriptions=[],this.crmUserId=this.userService.getCrmUserId(),this.crmUserId&&this.getNationalities()}
1ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}getNationalities(){this.subscriptions.push(this.mediationService.getNationalityMediation(this.crmUserId).pipe(z(e=>{if(e.status===300&&e.error?.message){let n=this.langService.getCurrentLang()==="ar";return y.default.fire({icon:"warning",title:e.error.message,confirmButtonText:n?"\u0645\u0648\u0627\u0641\u0642":"OK"}).then(()=>{this.navigateToServices()}),$}throw e})).subscribe({next:e=>{this.nationalities=e||[],this.nationalities.length>0},error:e=>{e.status}}))}getControl(e){return this.selectWorkerForm.get(e)}onChangeNationality(e){this.getControl("nationalityId")?.setValue(e),this.getControl("workerId")?.setValue(null),this.workers=[],this.mediationService.getMediationEmployeesData(e).subscribe(n=>{this.workers=n||[]})}onWorkerSelected(e){this.getControl("workerId")?.setValue(e.workerId)}goNext(){this.selectWorkerForm.valid}goBack(){}navigateToServices(){this.router.navigate(["/domestic-labor-sector"])}createLeadWithoutWorker(){let e=this.getControl("nationalityId")?.value;if(!e)return;let n=this.nationalities.find(t=>t.nationalityId===e);n&&this.subscriptions.push(B([this.userService.getUserData().pipe(F()),this.profileService.getContactDetailsById(this.crmUserId)]).subscribe({next:([t,m])=>{if(!t||!m){console.error("User data or contact details not available");return}let g={description:`\u0637\u0644\u0628 \u062E\u062F\u0645\u0629 \u062A\u0648\u0633\u0637 \u062C\u0646\u0633\u064A\u0629 ${n.nationalityNameAr||n.nationalityName}`,lastName:m.lastName||m.fName||t.name||"",mobilePhone:t.phoneNumber||m.mobilePhone||"",cityId:m.cityId||"",contactId:this.crmUserId,nationalityId:e,mediationEmpId:null,professionId:null,totalMediationCost:n.totalMediationCost.toString(),sector:5,identificationNo:m.identificationNo||m.idNumber||null};this.subscriptions.push(this.mediationService.createLead(g).subscribe({next:h=>{this.displaySuccessMessageAndNavigate()},error:h=>{console.error("Error creating lead:",h),y.default.fire({icon:"error",title:this.langService.getCurrentLang()==="ar"?"\u062E\u0637\u0623":"Error",text:this.langService.getCurrentLang()==="ar"?"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0637\u0644\u0628":"An error occurred while creating the request",confirmButtonText:this.langService.getCurrentLang()==="ar"?"\u0645\u0648\u0627\u0641\u0642":"OK"})}}))},error:t=>{console.error("Error fetching user or contact data:",t),y.default.fire({icon:"error",title:this.langService.getCurrentLang()==="ar"?"\u062E\u0637\u0623":"Error",text:this.langService.getCurrentLang()==="ar"?"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062C\u0644\u0628 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A":"An error occurred while fetching data",confirmButtonText:this.langService.getCurrentLang()==="ar"?"\u0645\u0648\u0627\u0641\u0642":"OK"})}}))}createLeadWithWorker(){let e=this.getControl("nationalityId")?.value,n=this.getControl("workerId")?.value;if(!e||!n)return;let t=this.nationalities.find(g=>g.nationalityId===e);if(!t)return;let m=this.workers.find(g=>g.workerId===n);m&&this.subscriptions.push(B([this.userService.getUserData().pipe(F()),this.profileService.getContactDetailsById(this.crmUserId)]).subscribe({next:([g,h])=>{if(!g||!h){console.error("User data or contact details not available");return}let we={description:`\u0637\u0644\u0628 \u062E\u062F\u0645\u0629 \u062A\u0648\u0633\u0637 \u062C\u0646\u0633\u064A\u0629 ${t.nationalityNameAr||t.nationalityName}`,lastName:h.lastName||h.fName||g.name||"",mobilePhone:g.phoneNumber||h.mobilePhone||"",cityId:h.cityId||"",contactId:this.crmUserId,nationalityId:e,mediationEmpId:n,professionId:m.professionId||null,totalMediationCost:t.totalMediationCost.toString(),sector:5,identificationNo:h.identificationNo||h.idNumber||null};this.subscriptions.push(this.mediationService.createLead(we).subscribe({next:R=>{this.displaySuccessMessageAndNavigate()},error:R=>{console.error("Error creating lead:",R),y.default.fire({icon:"error",title:this.langService.getCurrentLang()==="ar"?"\u062E\u0637\u0623":"Error",text:this.langService.getCurrentLang()==="ar"?"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0637\u0644\u0628":"An error occurred while creating the request",confirmButtonText:this.langService.getCurrentLang()==="ar"?"\u0645\u0648\u0627\u0641\u0642":"OK"})}}))},error:g=>{console.error("Error fetching user or contact data:",g),y.default.fire({icon:"error",title:this.langService.getCurrentLang()==="ar"?"\u062E\u0637\u0623":"Error",text:this.langService.getCurrentLang()==="ar"?"\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u062C\u0644\u0628 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A":"An error occurred while fetching data",confirmButtonText:this.langService.getCurrentLang()==="ar"?"\u0645\u0648\u0627\u0641\u0642":"OK"})}}))}displaySuccessMessageAndNavigate(){let e=this.langService.getCurrentLang()==="ar";this.subscriptions.push(this.translateService.get(["Mediation.ConfirmationMessage","Mediation.RequestSentSuccessfully"]).subscribe(n=>{y.default.fire({iconHtml:`<img src="${le}" alt="success" />`,title:n["Mediation.ConfirmationMessage"],text:n["Mediation.RequestSentSuccessfully"],confirmButtonText:e?"\u0645\u0648\u0627\u0641\u0642":"OK"}).then(()=>{this.navigateToServices()})}))}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=w({type:i,selectors:[["app-selecting-worker"]],standalone:!0,features:[M],decls:8,vars:6,consts:[["noData",""],[1,"select-worker","border","border-secondary","rounded-5","p-4","mb-4"],[3,"formGroup"],["class","d-flex flex-column gap-2",4,"ngIf","ngIfElse"],["class","mt-4",4,"ngIf"],["class","mt-5",4,"ngIf"],["class","mt-4 d-flex justify-content-end flex-wrap gap-3",4,"ngIf"],[1,"d-flex","flex-column","gap-2"],[1,"fs-18","f-w-bold","text-B51A04","mb-3"],[1,"d-flex","flex-row","flex-wrap","align-items-center","gap-3"],["class","form-check custom-check",4,"ngFor","ngForOf"],[1,"form-check","custom-check"],["type","radio","formControlName","nationalityId",1,"form-check-input",3,"change","id","value"],[1,"form-check-label","cursor-p","d-flex","flex-column","align-items-center","justify-content-center","p-3",2,"min-width","120px",3,"for"],[1,"mb-2",2,"width","60px","height","60px","object-fit","contain",3,"src","alt"],[1,"text-center","fs-14","textSecondary"],[1,"text-sm","fw-bold","mt-1","textSecondary"],[1,"mt-4"],[1,"row","row-cols-1","row-cols-md-2","row-cols-xl-3","g-3"],["class","col",4,"ngFor","ngForOf"],[1,"col"],[3,"click","worker","isSelected"],[1,"mt-5"],[1,"fs-16","text-secondary","text-center","mb-4"],[1,"d-flex","justify-content-center","gap-3","mt-4"],["type","button",1,"btn","secondary-button","fs-16","fw-bold","w-auto","px-5",3,"click"],["type","button",1,"btn","main-button","fs-16","fw-bold","w-auto","px-5",3,"click"],[1,"d-flex","flex-column","justify-content-center","align-items-center","mt-5"],[1,"fs-16","f-w-regular","text-center"],[1,"mt-4","d-flex","justify-content-end","flex-wrap","gap-3"],["type","button",1,"btn","secondary-button","fs-20","w-auto","px-5",3,"click"],["type","button",1,"btn","bg-DEDEDE","fs-20","w-auto","px-5",3,"click","disabled"],["type","button",1,"btn","main-button","fs-20","w-auto","px-5",3,"click","disabled"]],template:function(n,t){if(n&1&&(a(0,"div",1)(1,"form",2),C(2,Be,6,4,"div",3)(3,Ve,3,1,"div",4)(4,Le,11,9,"div",5)(5,Ue,4,3,"ng-template",null,0,J)(7,je,10,11,"div",6),o()()),n&2){let m,g,h=H(6);r(),d("formGroup",t.selectWorkerForm),r(),d("ngIf",t.nationalities.length>0)("ngIfElse",h),r(),d("ngIf",t.workers.length>0),r(),d("ngIf",((m=t.selectWorkerForm.get("nationalityId"))==null?null:m.value)&&t.workers.length===0),r(3),d("ngIf",((g=t.selectWorkerForm.get("nationalityId"))==null?null:g.value)&&t.workers.length>0)}},dependencies:[W,X,E,ee,be,ue,de,ge,pe,me,fe,ve,T,N,Ce],styles:[".btn[_ngcontent-%COMP%]{border-radius:14px!important}.btn.bg-DEDEDE[_ngcontent-%COMP%]:hover{background-color:#d1d5db!important}.btn.bg-DEDEDE[_ngcontent-%COMP%]:disabled{background-color:#d1d5db!important;color:#2a2a2a!important}.custom-check[_ngcontent-%COMP%]{position:relative}.custom-check[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{display:none}.custom-check[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%]{border:2px solid var(--color-secondary);border-radius:8px;transition:all .3s ease;cursor:pointer;background-color:#fff;min-height:120px;box-shadow:0 1px 3px #0000001a;padding-bottom:50px}.custom-check[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%]:hover{border-color:#d1d5db;box-shadow:0 4px 6px #0000001a}.custom-check[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:4px}.custom-check[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--color-secondary);font-size:14px;line-height:1.2;max-width:100%;word-wrap:break-word}.custom-check[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + .form-check-label[_ngcontent-%COMP%]{border-color:var(--color-secondary);border-width:2px;background-color:var(--color-secondary);box-shadow:0 4px 12px #1fa39726;margin-top:18px;clip-path:polygon(0 0,100% 0,100% calc(100% - 20px),60% calc(100% - 20px),50% 100%,40% calc(100% - 20px),0 calc(100% - 20px))}.custom-check[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + .form-check-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#fff;margin-bottom:20px;mix-blend-mode:difference}.border-secondary[_ngcontent-%COMP%]{border-color:var(--color-secondary)!important}label[_ngcontent-%COMP%]{margin-left:auto!important;margin-right:auto!important}.textSecondary[_ngcontent-%COMP%]{color:#545454}.secondary-button[_ngcontent-%COMP%]{background:#fff;border:1px solid #b51a04;color:#b51a04}.secondary-button[_ngcontent-%COMP%]:hover{background-color:#fceceb}"]})}}return i})();var ht=[{path:"",component:xe,children:[{path:"",redirectTo:"SelectWorker",pathMatch:"full"},{path:"SelectWorker",component:ye}]}];export{ht as routes};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.