1import{a as gi}from"./chunk-L3SH27CF.js";import{a as vn}from"./chunk-JO3476MG.js";import{a as vi,b as on}from"./chunk-A2DTPX6K.js";import{a as Kn}from"./chunk-M2OCX7LT.js";import{a as fi,b as xi}from"./chunk-3XE6H6VX.js";import{a as rn}from"./chunk-KOOXWGDV.js";import{a as Jn}from"./chunk-QYB6S7WJ.js";import{a as Qn}from"./chunk-WVLKDWVO.js";import{a as ui}from"./chunk-KAD2JRRI.js";import{a as bt,b as Ct}from"./chunk-6INP4RRF.js";import"./chunk-Y4ECCS32.js";import{a as qe}from"./chunk-PRNE23UF.js";import{a as hi}from"./chunk-J45TRQFB.js";import"./chunk-MRJL67J5.js";import{a as oi}from"./chunk-ISG4QZ54.js";import{d as Wt}from"./chunk-NVUVE2OP.js";import{Y as st}from"./chunk-T7RXMGEX.js";import{a as Wn,c as Zn}from"./chunk-FDH7XV3Z.js";import{a as ii,b as ee}from"./chunk-76WE5NDP.js";import{A as pi,B as _i,D as vt,E as yt,I as Je,R as J,c as Zt,d as Jt,e as Qt,h as li,i as Xt,j as Yt,l as gt,m as ht,o as ft,p as xt}from"./chunk-A7RCACWV.js";import{A as nn,B as mi,D as ye,E as Ne,H as ke,K as te,L as si,N as ne,Q as an,S as ci,W as Ie,X as Fe,Y as Te,i as ct,s as Ze,t as di,u as en,v as pt,x as _t,y as ut,z as tn}from"./chunk-EXV7FKEW.js";import{Aa as ni,Ca as ot,la as Yn,ma as ei,na as ti,z as Xn}from"./chunk-VPLVNNCX.js";import{E as xe,G as ve,c as pe,e as S,h as _e,i as ue,l as ai,n as ge,o as lt,r as ri,s as dt,t as mt,u as he,v as fe}from"./chunk-WPKM7IVS.js";import{i as Kt,m as We,n as rt}from"./chunk-IXFPINUV.js";import{k as Ut,l as jt,m as He,p as Un,u as Ye,w as jn,x as Me}from"./chunk-FYTIWII5.js";import{$b as i,Ba as U,Bc as G,Bd as Ln,Da as it,Dc as ce,E as we,Eb as v,Ec as $n,Fc as Gn,Gc as r,Hc as y,I as nt,Ic as M,Jc as K,Kc as Y,M as Rn,Mc as fn,Oc as $t,Pc as Gt,Qc as Lt,Rb as Bn,Ub as f,Uc as L,Vb as x,Vc as Qe,Wb as je,Xb as at,Yb as re,Zb as oe,_b as m,_c as k,ac as t,ad as Be,bc as p,cb as j,cc as z,d as Ue,da as Ot,db as wt,dc as D,eb as On,ec as Ke,fc as H,fd as V,gc as q,hd as N,ia as O,ib as d,ic as b,id as xn,jc as Mt,k as Ee,kd as Xe,n as qn,oc as _,pa as u,pd as $e,qa as g,qc as kt,rc as c,sb as ae,td as ze,ud as ie,va as Bt,vc as Ve,wc as le,xa as Dn,xc as de,yb as W}from"./chunk-VKSHKACQ.js";import{a as Z,b as X,d as Rt,h as Dt,k as Se}from"./chunk-ZOCHBAGS.js";var Ti=Dt(Kn()),Cn=Dt(ui());var Ci=Dt(Kn());function qi(l,a){l&1&&(i(0,"mat-icon"),r(1,"check"),t())}function Ri(l,a){l&1&&r(0,"Datei hochladen")}function Di(l,a){if(l&1&&(i(0,"mat-option",99),r(1),t()),l&2){let e=a.$implicit;m("value",e),d(),y(e.name)}}function Oi(l,a){if(l&1){let e=b();i(0,"div",100)(1,"div",101),p(2,"img",102),r(3,"\xA0 "),i(4,"div",103)(5,"div")(6,"b",104),r(7),t()(),i(8,"div")(9,"b",104),r(10),t()(),i(11,"div")(12,"b",104),r(13),t()()(),r(14,"\xA0 "),i(15,"img",105),_("click",function(){u(e);let o=c();return g(o.remove_file())}),t()()()}if(l&2){let e=c();d(7),M("Dokumentenname: ",e.uploaded_file_details.name),d(3),M("Dateigr\xF6\xDFe: ",e.uploaded_file_details.size),d(3),M("Dateityp: ",e.uploaded_file_details.type)}}function Bi(l,a){l&1&&r(0,"Felder ausw\xE4hlen")}function $i(l,a){l&1&&(i(0,"mat-icon"),r(1,"check"),t())}function Gi(l,a){l&1&&r(0,"Pers\xF6nliche Daten")}function Li(l,a){l&1&&r(0,"Offizielle Daten")}function Ui(l,a){l&1&&r(0,"Daten anzeigen")}function ji(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td")(4,"p",35),r(5),t()(),i(6,"td",107),r(7),t(),i(8,"td",107),r(9),t(),i(10,"td",107),r(11),t(),i(12,"td"),p(13,"i",108),t(),i(14,"td")(15,"button",109),r(16,"\xD6ffnen"),t(),i(17,"button",110),_("click",function(){u(e);let o=c().index,s=c();return g(s.removeUser(o))}),r(18,"Entfernen"),t()()()}if(l&2){let e=c(),n=e.$implicit,o=e.index;d(2),y(o+1),d(3),y(n.title+" "+n.firstName+" "+n.lastName),d(),m("ngClass",n.email?"":"text-danger"),d(),y(n.email||"Nicht verf\xFCgbar"),d(),m("ngClass",n.contactno?"":"text-danger"),d(),y(n.contactno||"Nicht verf\xFCgbar"),d(),m("ngClass",n.country?"":"text-danger"),d(),y(n.country||"Nicht verf\xFCgbar")}}function Ki(l,a){if(l&1&&(H(0),v(1,ji,19,8,"tr",106),q()),l&2){let e=a.$implicit;d(),m("ngIf",!e.hide)}}var Wi={bytes:0,KB:0,MB:1,GB:1,TB:2,PB:2},ln=class l{constructor(a,e,n,o){this.fb=a;this.userService=e;this.sweetAlert=n;this.sanitizer=o;this.units=["bytes","KB","MB","GB","TB","PB"];this.excelUsers=[];this.uploaded_file_details={name:"",size:"",type:""};this.selectedDepartment=new ai("");this.companyData={};this.dataSaved=new Dn}ngOnInit(){console.log("check company data = ",this.companyData),this.excel_userFormGroup=this.fb.group({title:["ANREDE",S.required],firstName:["VORNAME",S.required],lastName:["NACHNAME",S.required],dob:["GEBURTSDATUM"],birthPlace:["GEBURTSORT"],nationality:[""],street:["STRASSE"],streetNumber:[""],postCode:["PLZ"],city:["ORT"],appartment_number:[""],countryOfResidence:[""],email:["EMAIL",S.required],contactno:["TELEFON1"]}),this.excel_officialFormGroup=this.fb.group({marital_status:["FAMILIENSTAND"],termination_date:["AUSTRITT"],joining_date:["EINTRITT"],operation_start_date:[""],work_saving_account:["Arbeitszeitkonto"],holidays_taken:["Urlaub"],social_security_no:["Sozialvers. Nr."],state_name:["Bundesland"],insurance_type:[""],insurance_name:["Krankenkasse"],insurance_number:[""],religion:[""],religion_name:[""],religion_church_tax:[""],tax_id:["Steuer-ID"],income_tax_class:[""],child_allowance:[""],work_allowance:[""],work_allowance_end_date:["AUFENTHALTSERLAUBNIS"]})}remove_file(){this.excelUsers=[],this.uploaded_file_details={name:"",size:"",type:""}}onFileChange(a){this.excelUsers=[],this.file=a.target.files[0],this.uploaded_file_details={name:this.file.name,size:this.dataconvert(this.file.size),type:this.file.type}}dataconvert(a=0,e=Wi){if(isNaN(parseFloat(String(a)))||!isFinite(a))return"?";let n=0;for(;a>=1024;)a/=1024,n++;let o=this.units[n];return typeof e=="number"?`${a.toFixed(+e)} ${o}`:`${a.toFixed(e[o])} ${o}`}readExcelData(){let a=new FileReader;a.onload=e=>{let n=e.target.result,o=vi(n,{type:"binary"}),s=o.SheetNames[0],h=o.Sheets[s];this.extractDataFromExcel(h)},a.readAsBinaryString(this.file)}parseDateString(a){if(a){let e=a,n=new Date(1900,0,1);return e>=60&&e--,n.setDate(n.getDate()+e),n}else return null}separateStreetAndNumber(a){let e=/^(.*?)(\d.*)?$/,n=a.match(e);return n?{street:n[1].trim(),number:n[2]?n[2].trim():""}
1:{street:a,number:""}}extractDataFromExcel(a){return Se(this,null,function*(){let e=[],n={},o=on.decode_range(a["!ref"]);this.excelUsers=[],$("#loaderouterid").css("display","flex");let s=0;for(let h=o.s.r;h<=o.e.r;++h){for(let w=o.s.c;w<=o.e.c;++w){let I={c:w,r:h},F=on.encode_cell(I),C=a[F];if(C){let A=C.v.toString();h===o.s.r&&(n[A]=w)}}if(h==0||!this.getCellContent(a,n[this.excel_userFormGroup.value.firstName],h))continue;let E={};Object.keys(this.excel_userFormGroup.controls).map(w=>{if(w.includes("streetNumber")||(E[w]=this.getCellContent(a,n[this.excel_userFormGroup.value[w]],h)),(w.includes("date")||w.includes("dob"))&&(E[w]=this.parseDateString(E[w])),w.includes("contactno")&&E[w]&&E[w]!=""&&(console.log("lets see which one throws error ",E[w]),E[w]=E[w].toString().replace(/\D/g,""),E[w].startsWith("49")?E[w]="+"+(E[w].startsWith("0")&&E[w].length>1?E[w].slice(1):E[w]):E[w]="+49"+(E[w].startsWith("0")&&E[w].length>1?E[w].slice(1):E[w])),w=="street"){let I=this.separateStreetAndNumber(E[w]);E[w]=I?.street,E.streetNumber=I?.number}}),Object.keys(this.excel_officialFormGroup.controls).map(w=>{E[w]=this.getCellContent(a,n[this.excel_officialFormGroup.value[w]],h),w.includes("date")&&(E[w]=this.parseDateString(E[w]))}),s+=1,$("#processed_rows").html(s+" Datens\xE4tze"),this.excelUsers.push(E)}return console.log("Excel users ",this.excelUsers),$("#loaderouterid").css("display","none"),$("#viewFetchedData").trigger("click"),e})}getCellContent(a,e,n){let o=a[on.encode_cell({c:e,r:n})];return o?o.v:""}searchExcelData(a){a.target.value?this.excelUsers.map(e=>{e.firstname.toLowerCase().includes(a.target.value.toLowerCase())||e.lastname.toLowerCase().includes(a.target.value.toLowerCase())||e.email.toLowerCase().includes(a.target.value.toLowerCase())?e.hide=!1:e.hide=!0}):this.excelUsers.map(e=>e.hide=!1)}removeUser(a){console.log(this.excelUsers[a].data);let e=` 2 M\xF6chten Sie die Mitarbeiter 3 <label class='button-primary m-1 p-1 rounded'> 4 ${this.excelUsers[a].data.company_name} 5 </label> 6 l\xF6schen? 7`,n=this.sanitizer.bypassSecurityTrustHtml(e);this.sweetAlert.custom({title:"",content:n,type:"info",isHtml:!0,showCancel:!0,confirmText:"Ja, L\xF6schen",cancelText:"Abbrechen",confirmButtonClass:"btn-cancel",cancelButtonClass:"btn-info",disableClose:!0}).subscribe(o=>{o&&this.excelUsers.splice(a,1)})}saveUsers(a,e){return Se(this,null,function*(){let n=0,o=` 8 <p class="text-center"> 9 <img style="width:100px;" src="/assets/loader.gif"><br> 10 <span class="button-primary rounded text-white p-2"> 11 <span id="addCount">0</span> / ${this.excelUsers.length} 12 </span> 13 <br><br> 14 Bitte schlie\xDFen oder aktualisieren Sie dieses Fenster nicht, 15 w\xE4hrend Mitarbeiter hinzugef\xFCgt werden. 16 </p> 17`,s=this.sanitizer.bypassSecurityTrustHtml(o);this.sweetAlert.custom({title:"",content:s,type:"info",isHtml:!0,showCancel:!1,confirmText:"",confirmButtonClass:"",disableClose:!0}).subscribe(()=>{});for(let h=0;h<this.excelUsers.length;h++){let E=0;this.excelUsers[h].holidays_taken&&(E=parseFloat(this.excelUsers[h].holidays_taken)%1>=.5?Math.ceil(parseFloat(this.excelUsers[h].holidays_taken)):Math.floor(parseFloat(this.excelUsers[h].holidays_taken)));let w={brand_id:this.companyData?.brand_id,email:this.excelUsers[h].email,firstName:this.excelUsers[h].firstName,lastName:this.excelUsers[h].lastName,title:this.excelUsers[h].title,contactno:this.excelUsers[h].contactno,dob:this.excelUsers[h].dob,birthPlace:this.excelUsers[h].birthPlace,nationality:this.excelUsers[h].nationality,street:this.excelUsers[h].street,streetNumber:this.excelUsers[h].streetNumber,postCode:this.excelUsers[h].postCode,city:this.excelUsers[h].city,countryOfResidence:this.excelUsers[h].countryOfResidence,frontend_home_page:[{id:this.companyData?.brand_id,url:"employee-dashboard/"+this.selectedDepartment?.value?._id}],employee_data:{department_id:this.selectedDepartment?.value?._id,hrtech_company_id:this.companyData?._id,hired_or_added:"0",qualifications:[],qualification_type:"0",skills:[],about:"",social_security_no:this.excelUsers[h].social_security_no,experience_type:"0",experiences:[],resume_type:"1",employement_data:[{department_id:this.selectedDepartment?.value?._id,hrtech_company_id:this.companyData?._id,c
17ontract_id:"",from_date:this.excelUsers[h].joining_date}],child_allowance:this.excelUsers[h].child_allowance||"",insurance_name:this.excelUsers[h].insurance_name,insurance_number:this.excelUsers[h].insurance_number||"",insurance_type:this.excelUsers[h].insurance_type||"",religion:this.excelUsers[h].religion||"",tax_id:this.excelUsers[h].tax_id||"",religion_name:this.excelUsers[h].religion_name||"",religion_church_tax:this.excelUsers[h].religion_church_tax||"",state_name:this.excelUsers[h].state_name||"",income_tax_class:this.excelUsers[h].income_tax_class||"",work_allowance:!!this.excelUsers[h].work_allowance_end_date,work_allowance_end_date:this.excelUsers[h].work_allowance_end_date,branch_id:[],marital_status:this.excelUsers[h].marital_status||"",termination_date:this.excelUsers[h].termination_date||"",operation_start_date:this.excelUsers[h].operation_start_date||"",work_saving_account:this.excelUsers[h].work_saving_account||"",holidays_taken:E,contract_created:"0"}};console.log("check payload before sending = ",w);let I=yield this.saveEmployee(w);if(console.log("check employee add response ",I),n+=1,$("#addCount").html(n),I.status=="500")break;if(h==this.excelUsers.length-1){Ci.default.close();let F=` 18 Alle Mitarbeiter wurden erfolgreich f\xFCr das Unternehmen 19 <label class='button-primary p-1 m-1'> 20 ${this.companyData?.company_name} 21 </label> 22 in der Abteilung 23 <label class='button-primary p-1 m-1'> 24 ${this.selectedDepartment?.value?.name} 25 </label> 26 zur Datenbank hinzugef\xFCgt. 27`,C=this.sanitizer.bypassSecurityTrustHtml(F);this.sweetAlert.custom({title:"",content:C,type:"success",isHtml:!0,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success",disableClose:!0}).subscribe(()=>{e.reset(),a.reset(),this.remove_file(),this.selectedDepartment.reset(),this.dataSaved.emit(!0)})}}})}saveEmployee(a){return Se(this,null,function*(){return new Promise(e=>{this.userService.addHrtechEmployeesByExcel(a).subscribe(n=>{e(n)})})})}static{this.\u0275fac=function(e){return new(e||l)(ae(xe),ae(st),ae(ee),ae(We))}}static{this.\u0275cmp=W({type:l,selectors:[["app-hrtech-company-users-onboarding"]],inputs:{companyData:"companyData"},outputs:{dataSaved:"dataSaved"},decls:346,vars:8,consts:[["stepper1",""],["divone",""],["stepper2",""],[1,"w-100"],[1,"row","m-0"],[1,"col-sm-12","p-0"],["linear","",1,"w-100"],["matStepperIcon","edit"],["matStepLabel",""],[1,"row"],[1,"col-sm-6","mb-3"],[1,"field-heading-parent"],[1,"field-heading"],[1,"p-2"],["appearance","outline",1,"w-100","bg-white"],["appearance","outline",1,"w-100","bg-white",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[1,"col-sm-12"],[1,"field-heading-parent","pb-2"],[1,"col-sm-6"],[1,"upload-file","bg-white","rounded","p-l-30","position-relative",2,"cursor","pointer"],["type","file","id","organization_image","name","organization_image","accept",".xlsx",1,"upload-files","w-100","position-absolute","h-100",3,"click","change"],[1,"mt-3",2,"text-align","center"],[1,"icons-img"],["src","assets/excel_icon2.svg",1,"w-75"],["src","assets/excel_icon1.svg",1,"w-75"],[2,"display","block","margin","0 auto"],[1,"up-file-wrap",2,"text-align","center"],[1,"istaff-gradient-font","font-18","m-b-0",2,"font-size","14px","font-weight","600","text-align","center"],["class","row m-0 border border-secondary border-radius position-relative bg-white",4,"ngIf"],[1,"col-sm-12","text-right","mt-3"],["matStepperNext","",1,"btn","button-primary","botton-hover",3,"disabled"],[1,"row","p-0","mt-2"],[1,"heading-div-bg","p-2","rounded","text-secondary","text-center"],["src","assets/infoIcon.svg"],[1,"mb-0"],[3,"formGroup"],[1,"col-sm-12","font-family-baloo-2"],[1,"container-fluid","p-0"],[1,"row","mt-1","mb-3"],[1,"w-100","field-heading-parent"],[1,"p-1"],[1,"col-sm-4"],["appearance","outline",1,"w-100","bg-white","mb-2"],["matInput","","formControlName","title","placeholder","Anrede"],["matInput","","formControlName","firstName","placeholder","Vorname"],["matInput","","formControlName","lastName","placeholder","Nachname"],["matInput","","placeholder","Geburtsdatum","formControlName","dob"],["matInput","","placeholder","Geburtsort","formControlName","birthPlace"],["type","text","placeholder","Nationalit\xE4t","aria-label","Number","matInput","","formControlName","nationality"],["matInput","","placeholder","Stra\xDFe","formControlName","street"],["matInput","","placeholder","Nr.","formControlName","streetNumber"],["matInput","","placeholder","PLZ","formControlName","postCode"],["matInput","","placeholder","Stadt","formControlName","city"],["matInput","","placeholder","C/O Appartmentnummer, T\xFCrcode, usw.","formControlName","appartment_number"],["matInput","","placeholder","Land des Wohnsitzes","formControlName","countryOfResidence"],[1,"w-100","h-100","field-heading-parent"],["matInput","","placeholder","E-Mail","formControlName","email"],[1,"col-md-6"],[1,"ph
27oneLabel"],["matInput","","name","contactno","formControlName","contactno","placeholder","Telefonnummer"],[1,"row","py-2"],[1,"col-6"],[1,"btn","button-primary","botton-hover",3,"click"],[1,"col-6","text-right"],[1,"fa","fa-arrow-right"],["matInput","","placeholder","Familienstand","formControlName","marital_status"],["matInput","","placeholder","Betriebseintrittsdatum","formControlName","joining_date"],["matInput","","placeholder","Betriebsaustritt","formControlName","termination_date"],["matInput","","placeholder","Einsatzbeginn","formControlName","operation_start_date"],["matInput","","placeholder","Urlaub","formControlName","holidays_taken"],["matInput","","placeholder","Arbeitszeitkonto","formControlName","work_saving_account"],["matInput","","placeholder","Bundesland","formControlName","state_name"],["matInput","","placeholder","Sozialversicherungsnummer","formControlName","social_security_no"],[1,"col-sm-12","mb-3"],[1,"row","pt-2","mx-0"],["matInput","","formControlName","work_allowance_end_date","placeholder","Aufenthaltserlaubnis"],[1,"col-sm-12","mb-2"],["matInput","","formControlName","insurance_type","placeholder","Art der Krankenkasse"],["matInput","","placeholder","Krankenkasse","formControlName","insurance_name"],["matInput","","placeholder","Krankenversicherungsnummer","formControlName","insurance_number"],["matInput","","placeholder","Lohnsteuerklasse","formControlName","income_tax_class"],["matInput","","placeholder","Kinderfreibetr\xE4ge","formControlName","child_allowance"],["matInput","","placeholder","Name der Religion/Konfession","formControlName","religion_name"],[1,"field-heading-parent","mb-3"],["matInput","","placeholder","Steuer-ID","formControlName","tax_id"],[1,"row","my-3"],["type","button","matStepperPrevious","",1,"btn","button-primary","links1"],["type","button",1,"btn","button-primary",3,"click"],["id","viewFetchedData","matStepperNext","",1,"d-none"],[1,"col-sm-4","p-0","mb-3"],["type","text","name","search","placeholder","z.B. Mitarbeiter, E-Mail","type","text",1,"search","myInput",3,"keyup"],[1,"table","table-border"],[1,"text-secondary"],[4,"ngFor","ngForOf"],[1,"m-0","border","border-secondary"],[1,"col-sm-6","p-0","mt-3"],["matStepperPrevious","",1,"btn","button-primary","botton-hover"],[1,"col-sm-6","p-0","text-right","mt-3"],[3,"value"],[1,"row","m-0","border","border-secondary","border-radius","position-relative","bg-white"],[1,"col-sm-12","d-flex","py-2"],["src","../assets/excel.png",1,"imageThumb",2,"width","50px","height","50px"],[2,"font-size","12px"],[1,"limitword"],["src","../assets/closeModel.svg","alt","Close","role","button",1,"text-danger","links","position-absolute","m-1",2,"width","20px","height","20px","display","block","cursor","pointer","right","0px","top","0px",3,"click"],[4,"ngIf"],[3,"ngClass"],[1,"fa","fa-circle","text-danger"],["type","button",1,"btn","btn-sm","button-primary","botton-hover"],["type","button",1,"btn","btn-sm","btn-soft-danger","ml-2",3,"click"]],template:function(e,n){if(e&1){let o=b();i(0,"div",3)(1,"div",4)(2,"div",5)(3,"mat-stepper",6,0),v(5,qi,2,0,"ng-template",7),i(6,"mat-step"),v(7,Ri,1,0,"ng-template",8),i(8,"div",9)(9,"div",10)(10,"div",11)(11,"h6",12),r(12,"Bitte w\xE4hlen Sie die Abteilung aus, in die Sie die Mitarbeiter importieren m\xF6chten:"),t(),i(13,"div",13)(14,"mat-form-field",14)(15,"mat-label"),r(16,"Abteilung"),t(),i(17,"mat-select",15),v(18,Di,2,2,"mat-option",16),t()()()()(),i(19,"div",17)(20,"div",18)(21,"h6",12),r(22,"Bitte laden Sie eine Excel-Datei hoch, um die Kunden zu exportieren:"),t(),i(23,"div",4)(24,"div",19)(25,"div",20)(26,"input",21,1),_("click",function(){u(o);let h=G(27);return g(h.value=null)})("change",function(h){return n.onFileChange(h)}),t(),i(28,"div",22)(29,"div",23),p(30,"img",24),t(),i(31,"div",23),p(32,"img",25),t()(),i(33,"div",26)(34,"div",27)(35,"p",28),r(36,"Medien f\xFCr Upload w\xE4hlen oder einfach hierhin ziehen."),t()()()()(),i(37,"div",19),v(38,Oi,16,3,"div",29),t()()()(),i(39,"div",30)(40,"button",31),r(41,"Weiter"),t()()()(),i(42,"mat-step"),v(43,Bi,1,0,"ng-template",8),i(44,"div",32)(45,"div",17)(46,"h6",33),p(47,"img",34),i(48,"p",35),r(49,'Bitte geben Sie die exakten Spalten\xFCberschriften aus Ihrer Excel-Datei ein, die den untenstehenden Formularfeldern entsprechen. Zum Beispiel, wenn die Namen in Ihrer Excel-Datei unter der Spalten\xFCberschrift "Name" stehen, geben Sie "Name" in das Feld "Vorname" ein.'),t()(),i(50,"mat-stepper",6,2),v(52,$
vendor: 4,448 bytes, line 27
27i,2,0,"ng-template",7),i(53,"mat-step"),v(54,Gi,1,0,"ng-template",8),i(55,"form",36)(56,"div",9)(57,"div",37)(58,"div",38)(59,"div",39)(60,"div",17)(61,"div",40)(62,"h6",12),r(63," Bitte geben Sie die Excel-Spalten\xFCberschriften f\xFCr Ihre pers\xF6nlichen Daten ein: "),t(),i(64,"div",41)(65,"div",9)(66,"div",42)(67,"mat-form-field",43)(68,"mat-label"),r(69,"Anrede"),t(),p(70,"input",44),t()(),i(71,"div",42)(72,"mat-form-field",43)(73,"mat-label"),r(74,"Vorname"),t(),p(75,"input",45),t()(),i(76,"div",42)(77,"mat-form-field",43)(78,"mat-label"),r(79,"Nachname"),t(),p(80,"input",46),t()(),i(81,"div",42)(82,"mat-form-field",43)(83,"mat-label"),r(84,"Geburtsdatum"),t(),p(85,"input",47),t()(),i(86,"div",42)(87,"mat-form-field",43)(88,"mat-label"),r(89,"Geburtsort"),t(),p(90,"input",48),t()(),i(91,"div",42)(92,"mat-form-field",43)(93,"mat-label"),r(94,"Nationalit\xE4t"),t(),p(95,"input",49),t()()()()()()(),i(96,"div",39)(97,"div",17)(98,"div",40)(99,"h6",12),r(100," Bitte geben Sie die Excel-Spalten\xFCberschriften f\xFCr Ihren Wohnort ein: "),t(),i(101,"div",41)(102,"div",9)(103,"div",42)(104,"mat-form-field",43)(105,"mat-label"),r(106,"Stra\xDFe"),t(),p(107,"input",50),t()(),i(108,"div",42)(109,"mat-form-field",43)(110,"mat-label"),r(111,"Haus Nr."),t(),p(112,"input",51),t()(),i(113,"div",42)(114,"mat-form-field",43)(115,"mat-label"),r(116,"PLZ"),t(),p(117,"input",52),t()(),i(118,"div",42)(119,"mat-form-field",43)(120,"mat-label"),r(121,"Stadt"),t(),p(122,"input",53),t()(),i(123,"div",42)(124,"mat-form-field",43)(125,"mat-label"),r(126,"C/O Appartmentnummer, T\xFCrcode, usw."),t(),p(127,"input",54),t()(),i(128,"div",42)(129,"mat-form-field",43)(130,"mat-label"),r(131,"Land des Wohnsitzes"),t(),p(132,"input",55),t()()()()()()(),i(133,"div",39)(134,"div",17)(135,"div",56)(136,"h6",12),r(137," Bitte geben Sie die Excel-Spalten\xFCberschriften f\xFCr Ihre Kommunikationsdaten ein: "),t(),i(138,"div",41)(139,"div",9)(140,"div",19)(141,"mat-form-field",43)(142,"mat-label"),r(143,"E-Mail"),t(),p(144,"input",57),t()(),i(145,"div",58)(146,"mat-form-field",43)(147,"mat-label",59),r(148,"Telefonnummer eingeben"),t(),p(149,"input",60),t()()()()()()(),i(150,"div",61)(151,"div",62)(152,"button",63),_("click",function(){u(o);let h=G(4);return g(h.previous())}),r(153,"Zur\xFCck"),t()(),i(154,"div",64)(155,"button",31),r(156,"Weiter\xA0\xA0"),p(157,"i",65),t()()()()()()()(),i(158,"mat-step"),v(159,Li,1,0,"ng-template",8),i(160,"form",36)(161,"div",9)(162,"div",10)(163,"div",11)(164,"h6",12),r(165,"Bitte f\xFCllen Sie die Excel-Spalten\xFCberschriften f\xFCr Familienstand aus:"),t(),i(166,"div",13)(167,"mat-form-field",14)(168,"mat-label"),r(169,"Familienstand"),t(),p(170,"input",66),t()()()(),i(171,"div",10)(172,"div",11)(173,"h6",12),r(174,"Bitte f\xFCllen Sie die Excel-Spalten\xFCberschriften f\xFCr Betriebseintrittsdatum aus:"),t(),i(175,"div",13)(176,"mat-form-field",14)(177,"mat-label"),r(178,"Betriebseintrittsdatum"),t(),p(179,"input",67),t()()()(),i(180,"div",10)(181,"div",11)(182,"h6",12),r(183,"Bitte f\xFCllen Sie die Excel-Spalten\xFCberschriften f\xFCr Betriebseintrittsdatum aus:"),t(),i(184,"div",13)(185,"mat-form-field",14)(186,"mat-label"),r(187,"Betriebsaustritt"),t(),p(188,"input",68),t()()()(),i(189,"div",10)(190,"div",11)(191,"h6",12),r(192,"Bitte f\xFCllen Sie die Excel-Spalten\xFCberschriften f\xFCr Einsatzbeginn aus:"),t(),i(193,"div",13)(194,"mat-form-field",14)(195,"mat-label"),r(196,"Einsatzbeginn"),t(),p(197,"input",69),t()()()(),i(198,"div",10)(199,"div",11)(200,"h6",12),r(201,"Bitte f\xFCllen Sie die Excel-Spalten\xFCberschriften f\xFCr Urlaub aus:"),t(),i(202,"div",13)(203,"mat-form-field",14)(204,"mat-label"),r(205,"Urlaub"),t(),p(206,"input",70),t()()()(),i(207,"div",10)(208,"div",11)(209,"h6",12),r(210,"Bitte f\xFCllen Sie die Excel-Spalten\xFCberschriften f\xFCr Arbeitszeitkonto aus:"),t(),i(211,"div",13)(212,"mat-form-field",14)(213,"mat-label"),r(214,"Arbeitszeitkonto"),t(),p(215,"input",71),t()()()(),i(216,"div",10)(217,"div",11)(218,"h6",12),r(219,"Bitte f\xFCllen Sie die Excel-Spalten\xFCberschriften f\xFCr Bundesland aus:"),t(),i(220,"div",13)(221,"mat-form-field",14)(222,"mat-label"),r(223,"Bundesland"),t(),p(224,"input",72),t()()()(),i(225,"div",10)(226,"div",11)(227,"h6",12),r(228,"Bitte tragen Sie die Excel-Spalten\xFCberschriften f\xFCr Ihre Sozialversicherungsnummer ein:"),t(),i(229,"div",13)(230,"mat-form-field",14)(231,"mat-label"),r(232,"S
27ozialversicherungsnummer"),t(),p(233,"input",73),t()()()(),i(234,"div",74)(235,"div",11)(236,"h6",12),r(237," Bitte geben Sie die Excel-Spalten\xFCberschriften f\xFCr Aufenthaltserlaubnis ein: "),t(),i(238,"div",13)(239,"div",75)(240,"div",17)(241,"mat-form-field",14)(242,"mat-label"),r(243,"Aufenthaltserlaubnis"),t(),p(244,"input",76),t()()()()()(),i(245,"div",74)(246,"div",11)(247,"h6",12),r(248,"Bitte f\xFCllen Sie die Excel-Spalten\xFCberschriften f\xFCr Krankenkassendetails aus:"),t(),i(249,"div",13)(250,"div",9)(251,"div",77)(252,"mat-form-field",14)(253,"mat-label"),r(254,"Art der Krankenkasse"),t(),p(255,"input",78),t()(),i(256,"div",19)(257,"mat-form-field",14)(258,"mat-label"),r(259,"Krankenkasse"),t(),p(260,"input",79),t()(),i(261,"div",19)(262,"mat-form-field",14)(263,"mat-label"),r(264,"Krankenversicherungsnummer"),t(),p(265,"input",80),t()()()()()(),i(266,"div",10)(267,"div",11)(268,"h6",12),r(269,"Bitte w\xE4hlen Sie die Excel-Spalten\xFCberschriften f\xFCr Einkommensteuerklasse aus:"),t(),i(270,"div",13)(271,"mat-form-field",14)(272,"mat-label"),r(273,"Lohnsteuerklasse"),t(),p(274,"input",81),t()()()(),i(275,"div",10)(276,"div",11)(277,"h6",12),r(278,"Bitte w\xE4hlen Sie die Excel-Spalten\xFCberschriften f\xFCr Kinderfreibetr\xE4ge aus:"),t(),i(279,"div",13)(280,"mat-form-field",14)(281,"mat-label"),r(282,"Kinderfreibetr\xE4ge"),t(),p(283,"input",82),t()()()(),i(284,"div",10)(285,"div",11)(286,"h6",12),r(287,"Bitte w\xE4hlen Sie die Excel-Spalten\xFCberschriften f\xFCr Einkommensteuerklasse aus:"),t(),i(288,"div",13)(289,"div",9)(290,"div",17)(291,"mat-form-field",14)(292,"mat-label"),r(293,"Name der Religion/Konfession"),t(),p(294,"input",83),t()()()()()(),i(295,"div",10)(296,"div",84)(297,"h6",12),r(298,"Bitte geben Sie die Excel-Spalten\xFCberschriften f\xFCr Ihre Steuer-ID ein:"),t(),i(299,"div",13)(300,"mat-form-field",14)(301,"mat-label"),r(302,"Steuer-ID"),t(),p(303,"input",85),t()()()()(),i(304,"div",86)(305,"div",62)(306,"button",87),r(307,"Zur\xFCck"),t()(),i(308,"div",64)(309,"button",88),_("click",function(){return n.readExcelData()}),r(310,"Excel-Daten extrahieren"),t()()()()()()()(),p(311,"button",89),t(),i(312,"mat-step"),v(313,Ui,1,0,"ng-template",8),i(314,"div",4)(315,"div",90)(316,"input",91),_("keyup",function(h){return n.searchExcelData(h)}),t()(),i(317,"div",17)(318,"table",92)(319,"thead")(320,"tr",93)(321,"td"),r(322,"#"),t(),i(323,"td"),r(324,"Mitarbeiter"),t(),i(325,"td"),r(326,"E-Mail"),t(),i(327,"td"),r(328,"Telefonnummer"),t(),i(329,"td"),r(330,"Land"),t(),i(331,"td"),r(332,"Status"),t(),i(333,"td"),r(334,"Interaktionen"),t()()(),i(335,"tbody"),v(336,Ki,2,1,"ng-container",94),t()()()(),i(337,"div",4)(338,"div",5),p(339,"hr",95),t(),i(340,"div",96)(341,"button",97),r(342,"Zur\xFCck"),t()(),i(343,"div",98)(344,"button",63),_("click",function(){u(o);let h=G(4),E=G(51);return g(n.saveUsers(h,E))}),r(345,"Hinzuf\xFCgen"),t()()()()()()()()}e&2&&(d(17),m("formControl",n.selectedDepartment),d(),m("ngForOf",n.companyData.departments_info),d(20),m("ngIf",n.uploaded_file_details.name!=""),d(2),m("disabled",!n.selectedDepartment.value||!(n.uploaded_file_details!=null&&n.uploaded_file_details.name)),d(15),m("formGroup",n.excel_userFormGroup),d(100),m("disabled",!n.excel_userFormGroup.controls.email.valid),d(5),m("formGroup",n.excel_officialFormGroup),d(176),m("ngForOf",n.excelUsers))},dependencies:[Me,Ut,jt,He,si,te,ye,ci,an,ct,mi,_t,en,ut,tn,nn,pt,ve,ge,pe,_e,ue,ri,fe,he,di,Ze,J,ne],encapsulation:2})}};function Zi(l,a){l&1&&(i(0,"mat-error"),r(1," Bitte geben Sie den Titel der Notiz ein. "),t())}function Ji(l,a){l&1&&(i(0,"mat-error"),r(1," Bitte geben Sie die Beschreibung der Notiz ein. "),t())}function Qi(l,a){l&1&&(i(0,"mat-error"),r(1," Bitte w\xE4hlen Sie ein Datum aus. "),t())}function Xi(l,a){if(l&1&&(i(0,"div",12)(1,"div",13)(2,"h6",14),r(3," Bitte w\xE4hlen Sie das Datum aus, an dem diese Notiz im Kalender angezeigt werden soll: "),t(),i(4,"div",15)(5,"div",11)(6,"div",25)(7,"mat-form-field",16)(8,"mat-label"),r(9,"Datum ausw\xE4hlen"),t(),p(10,"input",26)(11,"mat-datepicker-toggle",27)(12,"mat-datepicker",null,0),v(14,Qi,2,0,"mat-error",18),t()()()()()()),l&2){let e,n=G(13),o=c();d(10),m("matDatepicker",n),d(),m("for",n),d(3),m("ngIf",(e=o.addNoteForm.get("reminder_due_date"))==null?null:e.hasError("required"))}}var It=class l{constructor(){this.noteSubmit=ze();this.fb=O(xe);this.sweetAlertService=O(ee);this.customerCompanyId=ie("")}ngOnInit(){this.initializeForms()}initializeForms(){this.addNoteForm=this.fb.group({_id:[""],title:["",[S.required]],description:["",S.required],type:["0",S.required],reminder_due_date:[""]}),this.addNoteForm.get("type")?.valueChanges.subscribe(a=>{let e=this.addNoteForm.get("reminder_due_date");a==="1"?e?.setValidators([S.required]):e?.clearValidators(),e?.updateValueAndValidity()})}openModal(){let a=$("#AddNoteModal");a.length&&(a.appendTo("body"),a.modal({backdrop:!1,keyboard:!0,focus:!0,show:!1}),a.modal("show"))}closeAddNoteModal(){let a=$("#AddNoteModal");if(a.length){a.one("hidden.bs.modal",()=>{let n=$("#AddNoteModal_parent");n.length&&!n.find("#AddNoteModal").length&&n.append(a)}),a.modal("hide");return}
27let e=document.getElementById("AddNoteModal");e&&this.hideModalManually(e)}hideModalManually(a){a.classList.remove("show"),a.style.display="none",a.setAttribute("aria-hidden","true"),a.removeAttribute("aria-modal"),document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="",document.querySelectorAll(".modal-backdrop").forEach(e=>e.remove())}addNote(){if(this.addNoteForm.invalid){this.addNoteForm.markAllAsTouched(),this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus, bevor Sie fortfahren.","OK").subscribe();return}let a=this.addNoteForm.value,e={title:(a.title??"").trim(),description:(a.description??"").trim(),type:a.type??"0"};if(e.type==="1"){let n=a.reminder_due_date;n&&(e.reminder_due_date=n)}this.noteSubmit.emit(e)}resetAfterSuccessfulSubmit(){this.addNoteForm.reset({_id:"",title:"",description:"",type:"0",reminder_due_date:""}),this.addNoteForm.get("reminder_due_date")?.clearValidators(),this.addNoteForm.get("reminder_due_date")?.updateValueAndValidity(),this.closeAddNoteModal()}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-add-note"]],inputs:{customerCompanyId:[1,"customerCompanyId"]},outputs:{noteSubmit:"noteSubmit"},decls:46,vars:6,consts:[["picker",""],["id","AddNoteModal_parent"],["id","AddNoteModal","tabindex","-1","role","dialog","aria-hidden","true","data-backdrop","false","data-keyboard","true",1,"modal","fade"],["role","document",1,"modal-dialog","customer-mat-Modal","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["src","../assets/closeModel.svg","alt","Close",2,"width","20px","height","20px","display","block"],[1,"modal-body"],[3,"formGroup"],[1,"row"],[1,"col-12","mb-3"],[1,"field-heading-parent"],[1,"field-heading"],[1,"p-2"],["appearance","outline",1,"w-100","bg-white"],["matInput","","formControlName","title","placeholder","Titel der Notiz"],[4,"ngIf"],["matInput","","formControlName","description","rows","2","placeholder","Beschreibung der Notiz",1,"custom-textarea"],[3,"change","checked"],["class","col-12 mb-3",4,"ngIf"],[1,"col-12","mb-2"],[1,"d-flex","justify-content-end"],["type","button",1,"button-primary","btn",3,"click"],[1,"col-12","col-md-6"],["matInput","","formControlName","reminder_due_date","placeholder","Datum ausw\xE4hlen",3,"matDatepicker"],["matSuffix","",3,"for"]],template:function(e,n){if(e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h5",6),r(6,"Notiz hinzuf\xFCgen"),t(),i(7,"button",7),_("click",function(){return n.closeAddNoteModal()}),p(8,"img",8),t()(),i(9,"div",9)(10,"form",10)(11,"div",11)(12,"div",12)(13,"div",13)(14,"h6",14),r(15," Bitte geben Sie die Titel der Notiz ein: "),t(),i(16,"div",15)(17,"mat-form-field",16)(18,"mat-label"),r(19,"Titel"),t(),p(20,"input",17),v(21,Zi,2,0,"mat-error",18),t()()()(),i(22,"div",12)(23,"div",13)(24,"h6",14),r(25," Bitte geben Sie die Beschreibung der Notiz ein: "),t(),i(26,"div",15)(27,"mat-form-field",16)(28,"mat-label"),r(29,"Beschreibung"),t(),i(30,"textarea",19),r(31," "),t(),v(32,Ji,2,0,"mat-error",18),t()()()(),i(33,"div",12)(34,"div",13)(35,"h6",14),r(36," M\xF6chten Sie, dass diese Notiz im Kalender angezeigt wird? "),t(),i(37,"div",15)(38,"mat-slide-toggle",20),_("change",function(s){let h;return(h=n.addNoteForm.get("type"))==null?null:h.setValue(s.checked?"1":"0")}),r(39),t()()()(),v(40,Xi,15,3,"div",21),t(),i(41,"div",11)(42,"div",22)(43,"div",23)(44,"button",24),_("click",function(){return n.addNote()}),r(45," Hinzuf\xFCgen "),t()()()()()()()()()()),e&2){let o,s,h,E,w;d(10),m("formGroup",n.addNoteForm),d(11),m("ngIf",(o=n.addNoteForm.get("title"))==null?null:o.hasError("required")),d(11),m("ngIf",(s=n.addNoteForm.get("description"))==null?null:s.hasError("required")),d(6),m("checked",((h=n.addNoteForm.get("type"))==null?null:h.value)==="1"),d(),M(" ",((E=n.addNoteForm.get("type"))==null?null:E.value)==="1"?"Ja":"Nein"," "),d(),m("ngIf",((w=n.addNoteForm.get("type"))==null?null:w.value)==="1")}},dependencies:[ve,ge,pe,_e,ue,fe,he,J,te,ye,Ne,ke,ne,Je,Ie,Fe,Te,Me,He],styles:[".customer-mat-Modal[_ngcontent-%COMP%]{width:min(92vw,700px);max-width:800px;margin-left:auto;margin-right:auto;height:auto}#AddNoteModal[_ngcontent-%COMP%]{z-index:1060}
27#AddNoteModal[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%], #AddNoteModal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{pointer-events:auto}"]})}};function Yi(l,a){l&1&&(i(0,"mat-error"),r(1," Bitte geben Sie den Titel der Notiz ein. "),t())}function ea(l,a){l&1&&(i(0,"mat-error"),r(1," Bitte geben Sie die Beschreibung der Notiz ein. "),t())}function ta(l,a){l&1&&(i(0,"mat-error"),r(1," Bitte w\xE4hlen Sie ein Datum aus. "),t())}function na(l,a){if(l&1&&(i(0,"div",12)(1,"div",13)(2,"h6",14),r(3," Bitte w\xE4hlen Sie das Datum aus, an dem diese Notiz im Kalender angezeigt werden soll: "),t(),i(4,"div",15)(5,"div",11)(6,"div",25)(7,"mat-form-field",16)(8,"mat-label"),r(9,"Datum ausw\xE4hlen"),t(),p(10,"input",26)(11,"mat-datepicker-toggle",27)(12,"mat-datepicker",null,0),v(14,ta,2,0,"mat-error",18),t()()()()()()),l&2){let e,n=G(13),o=c();d(10),m("matDatepicker",n),d(),m("for",n),d(3),m("ngIf",(e=o.editNoteForm.get("reminder_due_date"))==null?null:e.hasError("required"))}}var Ft=class l{constructor(){this.fb=O(xe);this.customerCompanyId=ie("");this.editingOriginalNote=null;this.sweetAlertService=O(ee);this.noteUpdate=ze()}ngOnInit(){this.initializeForms()}initializeForms(){this.editNoteForm=this.fb.group({_id:[""],title:["",[S.required]],description:["",S.required],type:["0",S.required],reminder_due_date:[""]}),this.editNoteForm.get("type")?.valueChanges.subscribe(a=>{let e=this.editNoteForm.get("reminder_due_date");a==="1"?e?.setValidators([S.required]):e?.clearValidators(),e?.updateValueAndValidity()})}editNote(){this.editNoteForm.markAllAsTouched(),this.editNoteForm.invalid&&this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus, bevor Sie fortfahren.","OK").subscribe(()=>{});let a=this.editNoteForm.value,e=(a._id??"").toString().trim();if(!e){this.sweetAlertService.error("Fehler","Die Notiz konnte nicht zugeordnet werden.","OK").subscribe(()=>{});return}this.editingOriginalNote||this.sweetAlertService.error("Fehler","Keine Ausgangsnotiz geladen.","OK").subscribe(()=>{});let n=a.type??"0",o={_id:e,title:(a.title??"").trim(),description:(a.description??"").trim(),type:n};if(n==="1"&&a.reminder_due_date){let s=a.reminder_due_date;o.reminder_due_date=s instanceof Date?s.toISOString():String(s)}else o.reminder_due_date="";this.noteUpdate.emit({note:this.editingOriginalNote,payload:o})}closeAfterSuccessfulUpdate(){this.editingOriginalNote=null,this.closeEditNoteModal()}patchFormFromNote(a){let e=a?._id??a?.id??"",n=a?.title??"",o=a?.description??"",s=a?.type,h=s===1||s==="1"||s===!0?"1":"0",E="";if(h==="1"){let w=a?.reminder_due_date??a?.reminderDueDate??a?.due_date??a?.calendar_date;if(w){let I=new Date(w);Number.isNaN(I.getTime())||(E=I)}}this.editNoteForm.patchValue({_id:e,title:n,description:o,type:h,reminder_due_date:E},{emitEvent:!0}),this.editNoteForm.markAsUntouched(),this.editNoteForm.markAsPristine()}openModal(a){a?(this.editingOriginalNote=Z({},a),this.patchFormFromNote(a)):(this.editingOriginalNote=null,this.editNoteForm.reset({_id:"",title:"",description:"",type:"0",reminder_due_date:""}),this.editNoteForm.get("reminder_due_date")?.clearValidators(),this.editNoteForm.get("reminder_due_date")?.updateValueAndValidity());let e=$("#EditNoteModal");e.length&&(e.appendTo("body"),e.modal({backdrop:!1,keyboard:!0,focus:!0,show:!1}),e.modal("show"))}closeEditNoteModal(){let a=$("#EditNoteModal");if(a.length){a.one("hidden.bs.modal",()=>{let n=$("#EditNoteModal_parent");n.length&&!n.find("#EditNoteModal").length&&n.append(a)}),a.modal("hide");return}let e=document.getElementById("EditNoteModal");e&&this.hideModalManually(e)}hideModalManually(a){a.classList.remove("show"),a.style.display="none",a.setAttribute("aria-hidden","true"),a.removeAttribute("aria-modal"),document.body.classList.remove("modal-open"),document.body.style.overflow="",document.body.style.paddingRight="",document.querySelectorAll(".modal-backdrop").forEach(e=>e.remove())}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-edit-note"]],inputs:{customerCompanyId:[1,"customerCompanyId"]},outputs:{noteUpdate:"noteUpdate"},decls:46,vars:6,consts:[["picker",""],["id","EditNoteModal_parent"],["id","EditNoteModal","tabindex","-1","role","dialog","aria-hidden","true","data-backdrop","false","data-keyboard","true",1,"modal","fade"],["role","document",1,"modal-dialog","customer-mat-Modal","modal
27-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["src","../assets/closeModel.svg","alt","Close",2,"width","20px","height","20px","display","block"],[1,"modal-body"],[3,"formGroup"],[1,"row"],[1,"col-12","mb-3"],[1,"field-heading-parent"],[1,"field-heading"],[1,"p-2"],["appearance","outline",1,"w-100","bg-white"],["matInput","","formControlName","title","placeholder","Titel der Notiz"],[4,"ngIf"],["matInput","","formControlName","description","rows","2","placeholder","Beschreibung der Notiz",1,"custom-textarea"],[3,"change","checked"],["class","col-12 mb-3",4,"ngIf"],[1,"col-12","mb-2"],[1,"d-flex","justify-content-end"],["type","button",1,"button-primary","btn",3,"click"],[1,"col-12","col-md-6"],["matInput","","formControlName","reminder_due_date","placeholder","Datum ausw\xE4hlen",3,"matDatepicker"],["matSuffix","",3,"for"]],template:function(e,n){if(e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h5",6),r(6,"Notiz bearbeiten"),t(),i(7,"button",7),_("click",function(){return n.closeEditNoteModal()}),p(8,"img",8),t()(),i(9,"div",9)(10,"form",10)(11,"div",11)(12,"div",12)(13,"div",13)(14,"h6",14),r(15," Bitte geben Sie die Titel der Notiz ein: "),t(),i(16,"div",15)(17,"mat-form-field",16)(18,"mat-label"),r(19,"Titel"),t(),p(20,"input",17),v(21,Yi,2,0,"mat-error",18),t()()()(),i(22,"div",12)(23,"div",13)(24,"h6",14),r(25," Bitte geben Sie die Beschreibung der Notiz ein: "),t(),i(26,"div",15)(27,"mat-form-field",16)(28,"mat-label"),r(29,"Beschreibung"),t(),i(30,"textarea",19),r(31," "),t(),v(32,ea,2,0,"mat-error",18),t()()()(),i(33,"div",12)(34,"div",13)(35,"h6",14),r(36," M\xF6chten Sie, dass diese Notiz im Kalender angezeigt wird? "),t(),i(37,"div",15)(38,"mat-slide-toggle",20),_("change",function(s){let h;return(h=n.editNoteForm.get("type"))==null?null:h.setValue(s.checked?"1":"0")}),r(39),t()()()(),v(40,na,15,3,"div",21),t(),i(41,"div",11)(42,"div",22)(43,"div",23)(44,"button",24),_("click",function(){return n.editNote()}),r(45," Speichern "),t()()()()()()()()()()),e&2){let o,s,h,E,w;d(10),m("formGroup",n.editNoteForm),d(11),m("ngIf",(o=n.editNoteForm.get("title"))==null?null:o.hasError("required")),d(11),m("ngIf",(s=n.editNoteForm.get("description"))==null?null:s.hasError("required")),d(6),m("checked",((h=n.editNoteForm.get("type"))==null?null:h.value)==="1"),d(),M(" ",((E=n.editNoteForm.get("type"))==null?null:E.value)==="1"?"Ja":"Nein"," "),d(),m("ngIf",((w=n.editNoteForm.get("type"))==null?null:w.value)==="1")}},dependencies:[ve,ge,pe,_e,ue,fe,he,J,te,ye,Ne,ke,ne,Je,Ie,Fe,Te,Me,He],styles:[".customer-mat-Modal[_ngcontent-%COMP%]{width:min(92vw,700px);max-width:800px;margin-left:auto;margin-right:auto;height:auto}#EditNoteModal[_ngcontent-%COMP%]{z-index:1060}#EditNoteModal[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%], #EditNoteModal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{pointer-events:auto}"]})}};var dn=class l{constructor(){this.http=O(Kt);this.API_URL=rt.API_URL}getCompanyCustomerNotes(a,e){return this.http.post(`${this.API_URL}all_companies/getCompanyCustomerNotes`,{service_provider_company_id:a,customer_company_id:e}).pipe(we(n=>(console.error("Error getting company customer notes:",n),Ee(()=>n))))}addCompanyCustomerNote(a,e,n,o,s,h,E,w){return this.http.post(`${this.API_URL}all_companies/addCompanyCustomerNote`,{service_provider_company_id:a,customer_company_id:e,title:n,created_by:o,description:s,type:h,reminder_due_date:E,customer_company_reminder:w}).pipe(we(I=>(console.error("Error adding company customer note:",I),Ee(()=>I))))}updateCompanyCustomerNote(a,e,n,o,s,h){return this.http.post(`${this.API_URL}all_companies/updateCompanyCustomerNote`,{note_id:a,title:e,description:n,type:o,reminder_due_date:s,customer_company_reminder:h}).pipe(we(E=>(console.error("Error updating company customer note:",E),Ee(()=>E))))}deleteCompanyCustomerNote(a){return this.http.post(`${this.API_URL}all_companies/deleteCompanyCustomerNote`,{note_id:a}).pipe(we(e=>(console.error("Error deleting company customer note:",e),Ee(()=>e))))}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275prov=Ot({token:l,factory:l.\u0275fac,providedIn:"root"})}};var aa=(l,a)=>a._id??a.id??l;function ra(l,a){l&1&&(i(0,"span"),r(1,"..."),t())}function oa(l,a){l&1&&(i(0,"span"),r(1,"..."),t())}function la(l,a){if(l&1){let e=b();i(0,"tr",27)(1,"td",31),r(2),t(),i(3,"td",32),r(4),V(5,"slice"),v(6,ra,2,0,"span",33),t(),i(7,"td",34),r(8),V(9,"slice"),v(10,oa,2,0,"span",33),t(),i(11,"td",35),r(12),t(),i(13,"td",36)(14,"div",37)(15,"button",38),_("click",function(){let o=u(e).$implicit,s=c();return g(s.editNotice(o))}),r(16," \xD6ffnen "),t(),i(17,"button",39)(18,"mat-icon"),r(19,"menu"),t()(),i(20,"mat-menu",null,0)(22,"button",40),_("click",function(){let o=u(e).$implicit,s=c();return g(s.deleteNotice(o))}),r(23," L\xF6schen "),t()()()()()}if(l&2){let e=a.$implicit,n=a.$index,o=G(21),s=c();d(2),y(s.startRecord()+n),d(2),M(" ",xn(5,7,(e==null?null:e.title)||"
27-",0,20)," "),d(2),m("ngIf",(e==null||e.title==null?null:e.title.length)>20),d(2),M(" ",xn(9,11,(e==null?null:e.description)||"-",0,40)," "),d(2),m("ngIf",(e==null||e.description==null?null:e.description.length)>40),d(2),M(" ",s.formatNoteDateTime(e)," "),d(5),m("matMenuTriggerFor",o)}}function da(l,a){l&1&&(i(0,"tr")(1,"td",41),p(2,"app-no-data"),t()())}function ma(l,a){if(l&1){let e=b();i(0,"li",43)(1,"a",44),_("click",function(o){let s=u(e).$implicit;return c(2).goToPage(s),g(o.preventDefault())}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(2);ce("active",n.currentPage()===e),d(2),M(" ",e," ")}}function sa(l,a){if(l&1){let e=b();i(0,"div",28)(1,"ul",42)(2,"li",43)(3,"a",44),_("click",function(o){u(e);let s=c();return s.currentPage()>1&&s.goToPage(1),g(o.preventDefault())}),r(4," << "),t()(),i(5,"li",43)(6,"a",44),_("click",function(o){u(e);let s=c();return s.currentPage()>1&&s.goToPage(s.currentPage()-1),g(o.preventDefault())}),r(7," < "),t()(),re(8,ma,3,3,"li",45,at),i(10,"li",43)(11,"a",44),_("click",function(o){u(e);let s=c();return s.currentPage()<s.totalPages()&&s.goToPage(s.currentPage()+1),g(o.preventDefault())}),r(12," > "),t()(),i(13,"li",43)(14,"a",44),_("click",function(o){u(e);let s=c();return s.currentPage()<s.totalPages()&&s.goToPage(s.totalPages()),g(o.preventDefault())}),r(15," >> "),t()()()()}if(l&2){let e=c();d(2),ce("disabled",e.currentPage()===1),d(3),ce("disabled",e.currentPage()===1),d(3),oe(e.getPages()),d(2),ce("disabled",e.currentPage()===e.totalPages()),d(3),ce("disabled",e.currentPage()===e.totalPages())}}var mn=class l{constructor(){this.serviceProviderCompanyId=ie("");this.customerCompanyId=ie("");this.isHovering=!1;this.allCustomerNotes=U([]);this.currentPage=U(1);this.pageSize=U(10);this.search=U("");this.filteredNotes=$e(()=>{let a=this.search().trim().toLowerCase(),e=this.allCustomerNotes();return a?e.filter(n=>this.noteMatchesSearch(n,a)):e});this.totalItems=$e(()=>this.filteredNotes().length);this.startRecord=$e(()=>this.totalItems()===0?0:(this.currentPage()-1)*this.pageSize()+1);this.endRecord=$e(()=>{let a=this.totalItems();return a===0?0:Math.min(this.currentPage()*this.pageSize(),a)});this.totalPages=$e(()=>{let a=this.pageSize(),e=this.totalItems();return a>0&&Math.ceil(e/a)||1});this.pagedNotes=$e(()=>{let a=this.filteredNotes(),e=this.currentPage(),n=this.pageSize();if(n<=0)return a;let o=(Math.max(1,e)-1)*n;return a.slice(o,o+n)});this.searchSubject=new Ue;this.noteService=O(dn);this.destroyRef=O(Bt);this.sweetAlertService=O(ee);this.authService=O(Wt);it(()=>{let a=this.serviceProviderCompanyId(),e=this.customerCompanyId();if(!a||!e){this.allCustomerNotes.set([]);return}this.currentPage.set(1),this.refreshNoteList()})}ngOnInit(){this.searchSubject.pipe(nt(300),rn(this.destroyRef)).subscribe(a=>{this.search.set(a),this.currentPage.set(1)})}searchNote(a){let e=a.target?.value??"";this.searchSubject.next(e)}noteMatchesSearch(a,e){let n=String(a?.title??"").toLowerCase(),o=String(a?.description??a?.discription??"").toLowerCase();return n.includes(e)||o.includes(e)}clampCurrentPage(){let a=this.totalPages();a<1||this.currentPage()>a&&this.currentPage.set(a)}addNewNotice(){this.addNoteComponent?.openModal()}editNotice(a){this.editNoteComponent?.openModal(a)}deleteNotice(a){let e=this.serviceProviderCompanyId(),n=a?._id??a?.id;!e||!n||this.sweetAlertService.custom({title:"Notiz l\xF6schen?",content:"M\xF6chten Sie diese Notiz wirklich l\xF6schen?",type:"warning",showCancel:!0,confirmText:"L\xF6schen",cancelText:"Abbrechen"}).subscribe(o=>{o&&($("#loaderouterid").css("display","flex"),this.noteService.deleteCompanyCustomerNote(String(n)).subscribe({next:()=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.success("Gel\xF6scht","Die Notiz wurde entfernt.","OK").subscribe(()=>this.refreshNoteList())},error:s=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.error("Fehler!",s?.error?.message??"Die Notiz konnte nicht gel\xF6scht werden.","OK").subscribe(()=>this.refreshNoteList())}}))})}updateNotice(a){let{note:e,payload:n}=a;
27if(!this.serviceProviderCompanyId()||!n?._id)return;if(!this.hasNoteChanges(e,n)){this.sweetAlertService.info("Keine \xC4nderungen","Es wurden keine \xC4nderungen vorgenommen.","OK").subscribe(()=>this.refreshNoteList());return}let E=n,{_id:s}=E,h=Rt(E,["_id"]);$("#loaderouterid").css("display","flex"),this.noteService.updateCompanyCustomerNote(s,h.title,h.description,h.type,h.reminder_due_date,h.customer_company_reminder).subscribe({next:()=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.success("Erfolgreich!","Die Notiz wurde erfolgreich aktualisiert.","OK").subscribe(()=>{this.editNoteComponent?.closeAfterSuccessfulUpdate(),this.refreshNoteList()})},error:w=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.error("Fehler!",w?.error?.message??"Beim Aktualisieren der Notiz ist ein Fehler aufgetreten.","OK").subscribe(()=>this.refreshNoteList())}})}hasNoteChanges(a,e){let n=h=>h===1||h==="1"||h===!0?"1":"0",o=h=>h==null||h===""?"":h instanceof Date?h.toISOString():String(h),s=this.getNoteReminderForCompare(a);return(a?.title??"")!==(e?.title??"")||(a?.description??"")!==(e?.description??"")||n(a?.type)!==n(e?.type)||o(s)!==o(e?.reminder_due_date)}getNoteReminderForCompare(a){let e=a?.type;return e===1||e==="1"||e===!0?a?.reminder_due_date??a?.reminderDueDate??a?.due_date??a?.calendar_date??"":""}addNotice(a){let e=this.serviceProviderCompanyId(),n=this.authService.getUserData()?._id,o=this.customerCompanyId();if(!e||!o)return;let s=X(Z({},a),{customer_company_id:o});$("#loaderouterid").css("display","flex"),this.noteService.addCompanyCustomerNote(e,o,s.title,n,s.description,s.type,s.reminder_due_date,!0).subscribe({next:()=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.success("Erfolgreich!","Die Notiz wurde erfolgreich hinzugef\xFCgt.","OK").subscribe(()=>{this.addNoteComponent?.resetAfterSuccessfulSubmit(),this.refreshNoteList()})},error:h=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.error("Fehler!",h?.error?.message??"Beim Hinzuf\xFCgen der Notiz ist ein Fehler aufgetreten.","OK").subscribe(()=>{this.refreshNoteList()})}})}refreshNoteList(){let a=this.serviceProviderCompanyId(),e=this.customerCompanyId();if(!a||!e){this.allCustomerNotes.set([]);return}$("#loaderouterid").css("display","flex"),this.noteService.getCompanyCustomerNotes(a,e).subscribe({next:n=>{$("#loaderouterid").css("display","none");let o=n?.data,s=Array.isArray(o)?o:[];this.allCustomerNotes.set(s),queueMicrotask(()=>this.clampCurrentPage())},error:()=>{$("#loaderouterid").css("display","none"),this.allCustomerNotes.set([])}})}goToPage(a){let e=this.totalPages(),n=Math.max(1,Math.min(a,e));n!==this.currentPage()&&this.currentPage.set(n)}formatNoteDateTime(a){let e=a?.created_at??a?.createdAt??a?.created_date??a?.date;if(!e)return"-";let n=new Date(e);if(Number.isNaN(n.getTime()))return"-";let o=String(n.getDate()).padStart(2,"0"),s=String(n.getMonth()+1).padStart(2,"0"),h=n.getFullYear(),E=String(n.getHours()).padStart(2,"0"),w=String(n.getMinutes()).padStart(2,"0");return`${o}.${s}.${h} ${E}:${w}`}getPages(){return Array.from({length:this.totalPages()},(a,e)=>e+1)}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-note"]],viewQuery:function(e,n){if(e&1&&Ve(It,5)(Ft,5),e&2){let o;le(o=de())&&(n.addNoteComponent=o.first),le(o=de())&&(n.editNoteComponent=o.first)}},inputs:{serviceProviderCompanyId:[1,"serviceProviderCompanyId"],customerCompanyId:[1,"customerCompanyId"]},decls:40,vars:5,consts:[["menu","matMenu"],[1,"notice-container"],[1,"row"],[1,"col-12"],[1,"notice-table"],[1,"customTable-block"],[1,"table-header","d-block","mb-3"],[1,"col-12","col-md-6","col-xl-4"],["appearance","outline",1,"w-100"],["matInput","","type","search","autocomplete","off","placeholder","Titel oder Beschreibung suchen",1,"search",3,"input"],[1,"col-12","col-md-6","col-xl-4","mt-4","mt-md-0","d-flex","justify-content-end","align-items-center"],["type","button","mat-button","",1,"button-primary","d-inline-flex","align-items-center",3,"mouseover","mouseout","click"],["alt","",1,"menu-image",3,"src"],[1,"ml-2"],[1,"table-section","mt-2"],[1,"assigments-list"],["id","noteListTable",1,"customTable"],[1,"tableInnerScroll"],["id","noteAccordionTable",1,"accordion-main","w-100"],[1,"accordion-head","editing-something"],[1,"accordion-head-list","list-unstyled"],[1,"customer-id","font-weight-bold"],[1,"customer-name","font-weight-bold"],[1,"customer-email","font-weight-bold"],[1,"customer-numbernew","font-weight-bold"],[1,"customer-action","font-weight-bold",2,"width","140px"],[1,"accordion-list-item"],[1,"accordion-list-data","list-unstyled","editing-something"],[1,"d-flex","justify-content-end","pagination-main","mt-3","mb-3","px-3","editing-something"],[3,"noteSubmit","customerCompanyId"],[3,"noteUpdate","customerCompanyId"],[1,"customer-id"],[1,"customer-name"],[4,"ngIf"],[1,"customer-email"],[1,"customer-numbernew"],[1,"customer-action"],[1,"d-flex","align-items-center","gap-2"],["type","button",1,"btn","button-primary","button-small",3,"click"],["type","button","mat-icon-button","",3,"matMenuTriggerFor"],["mat-menu-item","",1,"text-danger","fw-semibold",3,"click"],["colspan","5",1,"text-center","py-4","note-table-empty"],[1,"pagination","m-0","pagerAction","note-pager"],[1,"page-item"],["href","javascript:void(0)",1,"page-link",3,"click"],[1,"page-item",3,"active"]],template:function(e,n){e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",2)(7,"div",7)(8,"mat-form-field",8)(9,"input",9),_("input",function(s){return n.searchNote(s)}),t()()(),p(10,"div",7),i(11,"div",10)(12,"button",11),_("mouseover",function(){return n.isHovering=!0})("mouseout",function(){return n.isHovering=!1})("click",function(){return n.addNewNotice()}),p(13,"img",12),i(14,"span",13),r(15,"Notiz hinzuf\xFCgen"),t()()()()(),i(16,"div",14)(17,"div",15)(18,"div",16)(19,"div",17)(20,"table",18)(21,"thead",19)(22,"tr",20)(23,"th",21),r(24,"#"),t(),i(25,"th",22),r(26,"Titel"),t(),i(27,"th",23),r(28,"Beschreibung"),t(),i(29,"th",24),r(30,"Erstellt"),t(),i(31,"th",25),r(32,"Aktionen"),t()()(),i(33,"tbody",26),re(34,la,24,15,"tr",27,aa,!1,da,3,0,"tr"),t()()(),f(37,sa,16,8,"div",28),t()()()()()()()(),i(38,"app-add-note",29),_("noteSubmit",function(s){return n.addNotice(s)}),t(),i(39,"app-edit-note",30),_("noteUpdate",function(s){return n.updateNotice(s)}),t()),e&2&&(d(13),m("src",n.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j
27),d(21),oe(n.pagedNotes()),d(3),x(n.totalItems()>0?37:-1),d(),m("customerCompanyId",n.customerCompanyId()),d(),m("customerCompanyId",n.customerCompanyId()))},dependencies:[Me,He,J,Jt,Zt,Qt,ot,ni,Ze,te,ne,It,Ft,qe,jn],styles:[".notice-container[_ngcontent-%COMP%]{background-color:#fff;padding:20px}.note-table-empty[_ngcontent-%COMP%]{color:#6c757d;font-size:.95rem}.note-pager.pagination[_ngcontent-%COMP%]{flex-wrap:nowrap}.note-pager[_ngcontent-%COMP%] .page-link[_ngcontent-%COMP%]{cursor:pointer;color:#4a4a4a;background-color:#fff;border-color:#e0e0e0;min-width:38px;text-align:center}.note-pager[_ngcontent-%COMP%] .page-item.active[_ngcontent-%COMP%] .page-link[_ngcontent-%COMP%]{background-color:var(--color-primary-accent)!important;color:#fff!important;font-weight:500;z-index:1}.note-pager[_ngcontent-%COMP%] .page-item.disabled[_ngcontent-%COMP%] .page-link[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.55}[_nghost-%COMP%] .table-section{padding:10px;background:#fff;box-shadow:5px 3px 20px 1px #262d3424;border-radius:10px;margin-top:23px;margin-bottom:10px;min-height:calc(90vh - 5px)!important;height:100%}.note-pager[_ngcontent-%COMP%] .page-link[_ngcontent-%COMP%]:focus{box-shadow:none!important}[_nghost-%COMP%] .button-primary{height:56px!important;padding:0 16px;display:inline-flex;align-items:center}[_nghost-%COMP%] .button-primary span{font-size:13px!important;font-weight:500!important}[_nghost-%COMP%] .button-small{height:36px!important;padding:0 12px}[_nghost-%COMP%] .button-small span{font-size:12px!important}"]})}};var Oe=class l{constructor(){this.http=O(Kt);this.API_URL=rt.API_URL;this.refreshSupplierList$=new Ue}addSupplier(a){return this.http.post(`${this.API_URL}company-supplier/create-supplier-main-company`,a,{withCredentials:!0}).pipe(we(e=>(console.log("Error Adding Supplier",e),Ee(()=>e))))}changeSupplierStatus(a,e){return this.http.patch(`${this.API_URL}company-supplier/change-supplier-status/${a}`,{status:e},{withCredentials:!0}).pipe(we(n=>(console.log("Error Changing Supplier Status",n),Ee(()=>n))))}getSupplierList(a,e=1,n=10,o){let s={page:e.toString(),limit:n.toString()};return o&&(s.search=o),this.http.get(`${this.API_URL}company-supplier/get-main-company-supplier-list/${a}`,{withCredentials:!0,params:s}).pipe(we(h=>(console.log("Error Getting Supplier List",h),Ee(()=>h))))}get refresh$(){return this.refreshSupplierList$.asObservable()}triggerRefresh(){this.refreshSupplierList$.next()}getSupplierDetails(a){return this.http.get(`${this.API_URL}company-supplier/get-supplier-details/${a}`,{withCredentials:!0}).pipe(we(e=>(console.log("Error Getting Supplier Details",e),Ee(()=>e))))}updateSupplierLegalRepresentatives(a,e){return this.http.put(`${this.API_URL}company-supplier/update-supplier-legal-representatives/${a}`,e,{withCredentials:!0}).pipe(we(n=>(console.log("Error Updating Supplier Legal Representatives",n),Ee(()=>n))))}addSupplierNote(a,e){return this.http.post(`${this.API_URL}company-supplier/add-supplier-note/${a}`,e,{withCredentials:!0}).pipe(we(n=>(console.log("Error Adding Supplier Note",n),Ee(()=>n))))}updateSupplierNote(a,e,n){return this.http.patch(`${this.API_URL}company-supplier/update-supplier-note/${a}/${e}`,n,{withCredentials:!0}).pipe(we(o=>(console.log("Error Updating Supplier Note",o),Ee(()=>o))))}getSupplierNotes(a,e=1,n=10,o){let s={page:e.toString(),limit:n.toString()};return o&&(s.search=o),this.http.get(`${this.API_URL}company-supplier/get-supplier-notes/${a}`,{withCredentials:!0,params:s}).pipe(we(h=>(console.log("Error Getting Supplier Notes",h),Ee(()=>h))))}getSuppliers(a){return this.http.get(`${this.API_URL}company-supplier/get-suppliers/${a}`,{withCredentials:!0}).pipe(we(e=>(console.log("Error Getting Suppliers",e),Ee(()=>e))))}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275prov=Ot({token:l,factory:l.\u0275fac,providedIn:"root"})}};function ca(l,a){if(l&1){let e=b();z(0,"img",8),kt("error",function(o){u(e);let s=c();return g(s.onImageError(o))}),D()}if(l&2){let e=c();Mt("src",e.companyDetails().company_logo,j)}}function pa(l,a){l&1&&Ke(0,"img",6)}var Tt=class l{constructor(){this.companyDetails=U({})}onImageError(a){let e=a.target;e.onerror=null,e.src="assets/no_logo_placeholder.png"}static{this.\u0275fac=function(e){return new(e||l)}}
27static{this.\u0275cmp=W({type:l,selectors:[["app-company-details"]],decls:74,vars:14,consts:[[1,"background-section"],[1,"row"],[1,"col-sm-12"],[1,"m-0","mt-2","companybackgrounddiv","rounded"],[1,"companybackgrounddiv-logo"],["alt","logo",3,"src"],["src","assets/no_logo_placeholder.png","alt","image"],[1,"m-0","mt-3","companybackgrounddiv","rounded"],["alt","logo",3,"error","src"]],template:function(e,n){e&1&&(z(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),f(5,ca,1,1,"img",5)(6,pa,1,0,"img",6),D(),z(7,"div")(8,"label"),r(9,"Unternehmensname"),D(),z(10,"strong"),r(11),D()(),z(12,"div")(13,"label"),r(14,"Unternehmensform"),D(),z(15,"strong"),r(16),D()()(),z(17,"div",7)(18,"div")(19,"label"),r(20,"Registerort"),D(),z(21,"strong"),r(22),D()(),z(23,"div")(24,"label"),r(25,"Registernummer"),D(),z(26,"strong"),r(27),D()(),z(28,"div")(29,"label"),r(30,"Finanzamt"),D(),z(31,"strong"),r(32),D()(),z(33,"div")(34,"label"),r(35,"Steuernummer"),D(),z(36,"strong"),r(37),D()(),z(38,"div")(39,"label"),r(40,"USt-IdNr"),D(),z(41,"strong"),r(42),D()()(),z(43,"div",7)(44,"div")(45,"label"),r(46,"Stra\xDFe:"),D(),z(47,"strong"),r(48),D()(),z(49,"div")(50,"label"),r(51,"Hausnummer:"),D(),z(52,"strong"),r(53),D()(),z(54,"div")(55,"label"),r(56,"PLZ:"),D(),z(57,"strong"),r(58),D()(),z(59,"div")(60,"label"),r(61,"Stadt:"),D(),z(62,"strong"),r(63),D()(),z(64,"div")(65,"label"),r(66,"Bundesland:"),D(),z(67,"strong"),r(68),D()(),z(69,"div")(70,"label"),r(71,"Land:"),D(),z(72,"strong"),r(73),D()()()()()()),e&2&&(d(5),x(n.companyDetails().company_logo?5:6),d(6),y(n.companyDetails().company_name??"-"),d(5),y(n.companyDetails().company_type??"-"),d(6),y(n.companyDetails().register_Place??"-"),d(5),y(n.companyDetails().register_number??"-"),d(5),y(n.companyDetails().tax_Office??"-"),d(5),y(n.companyDetails().tax_number??"-"),d(5),y(n.companyDetails().vat_id??"-"),d(6),y(n.companyDetails().street??"-"),d(5),y(n.companyDetails().streetNumber??"-"),d(5),y(n.companyDetails().postCode??"-"),d(5),y(n.companyDetails().city??"-"),d(5),y(n.companyDetails().state??"-"),d(5),y(n.companyDetails().country??"-"))},styles:[".background-section[_ngcontent-%COMP%]{background-color:#fff;padding:10px;overflow:hidden}.companybackgrounddiv[_ngcontent-%COMP%]{background:var(--color-primary);padding:14px;gap:16px;width:100%;display:flex;overflow:auto}.companybackgrounddiv[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;width:100%;background-color:#fff;border-radius:10px;padding:10px 20px}.companybackgrounddiv[_ngcontent-%COMP%] div[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}.companybackgrounddiv[_ngcontent-%COMP%] div[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:35px;border-radius:50%;background-color:#f2f2f2;padding:10px;display:flex;align-items:center;justify-content:center;aspect-ratio:1}.companybackgrounddiv[_ngcontent-%COMP%] .companybackgrounddiv-logo[_ngcontent-%COMP%]{background:transparent}.companybackgrounddiv[_ngcontent-%COMP%] .companybackgrounddiv-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:70px;object-fit:contain}"]})}};function _a(l,a){if(l&1&&r(0),l&2){let e=c().$index,n=c();M(" ",n.getCeoDisplayName(e)," ")}}function ua(l,a){l&1&&r(0," Gesetzliche Vertreter ")}function ga(l,a){l&1&&r(0," Bitte w\xE4hlen Sie eine Anrede. ")}function ha(l,a){if(l&1&&(i(0,"div",26),f(1,ga,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("title"))!=null&&e.hasError("required")?1:-1)}}function fa(l,a){l&1&&r(0," Bitte geben Sie den Vornamen ein. ")}function xa(l,a){if(l&1&&(i(0,"mat-error"),f(1,fa,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("firstname"))!=null&&e.hasError("required")?1:-1)}}function va(l,a){l&1&&r(0," Bitte geben Sie den Nachnamen ein. ")}function ya(l,a){if(l&1&&(i(0,"mat-error"),f(1,va,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("lastname"))!=null&&e.hasError("required")?1:-1)}}function ba(l,a){l&1&&r(0," Bitte geben Sie das Geburtsdatum an. ")}function Ca(l,a){if(l&1&&(i(0,"mat-error"),f(1,ba,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("birthdate"))!=null&&e.hasError("required")?1:-1)}}function Sa(l,a){l&1&&r(0," Bitte geben Sie die Stra\xDFe ein. ")}function Ea(l,a){if(l&1&&(i(0,"mat-error"),f(1,Sa,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("street"))!=null&&e.hasError("required")?1:-1)}}function wa(l,a){l&1&&r(0," Bitte geben Sie die Hausnummer ein. ")}function Ma(l,a){if(l&1&&(i(0,"mat-error"),f(1,wa,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("street_number"))!=null&&e.hasError("required")?1:-1)}}function ka(l,a){l&1&&r(0," Bitte geben Sie die PLZ ein. ")}function Ia(l,a){if(l&1&&(i(0,"mat-error"),f(1,ka,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("zip_code"))!=null&&e.hasError("required")?1:-1)}}function Fa(l,a){l&1&&r(0," Bitte geben Sie die Stadt ein. ")}function Ta(l,a){if(l&1&&(i(0,"mat-error"),f(1,Fa,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("city"))!=null&&e.hasError("required")?1:-1)}}function Pa(l,a){l&1&&r(0," Bitte geben Sie das Land ein. ")}function Aa(l,a){if(l&1&&(i(0,"mat-error"),f(1,Pa,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("country"))!=null&&e.hasError("required")?1:-1)}}function Va(l,a){if(l&1){let e=b();i(0,"button",40),_("click",function(){u(e);let o=c().$index,s=c();return g(s.removeCeo(o))}),r(1," Entfernen "),t()}}function Na(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",18),_("opened",function(){let o=u(e).$index,s=c();return g(s.onPanelOpened(o))}),i(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,_a,1,1)(4,ua,1,0),t()(),i(5,"div",19)(6,"div",5)(7,"div",20)(8,"h6",21),r(9,"Anrede:"),t(),i(10,"mat-radio-group",22)(11,"mat-radio-button",23),r(12,"Herr"),t(),i(13,"mat-radio-button",24),r(14,"Frau"),t(),i(15,"mat-radio-button",25),r(16,"Divers"),t()(),f(17,ha,2,1,"div",26),t(),i(18,"div",27)(19,"mat-form-field",28)(20,"mat-label"),r(21,"Vorname"),t(),p(22,"input",29),f(23,xa,2,1,"mat-error"),t()(),i(24,"div",27)(25,"mat-form-field",28)(26,"mat-label"),r(27,"Nachname"),t(),p(28,"input",30),f(29,ya,2,1,"mat-error"),t()(),i(30,"div",27)(31,"mat-form-field",28)(32,"mat-label"),r(33,"Geburtsdatum"),t(),p(34,"input",31)(35,"mat-datepicker-toggle",32)(36,"mat-datepicker",null,0),f(38,Ca,2,1,"mat-error"),t()(),i(39,"div",27)(40,"mat-form-field",28)(41,"mat-label"),r(42,"Stra\xDFe"),t(),i(43,"input",33,1),_("onAddressChange",function(o){let s=u(e).$index,h=c();return g(h.handleCeoAddressChange(s,o))}),t(),f(45,Ea,2,1,"mat-error"),t()(),i(46,"div",34)(47,"mat-form-field",28)(48,"mat-label"),r(49,"Haus Nr."),t(),p(50,"input",35),f(51,Ma,2,1,"mat-error"),t()(),i(52,"div",34)(53,"mat-form-field",28)(54,"mat-label"),r(55,"PLZ"),t(),p(56,"input",36),f(57,Ia,2,1,"mat-error"),t()(),i(58,"div",27)(59,"mat-form-field",28)(60,"mat-label"),r(61,"Stadt"),t(),p(62,"input",37),f(63,Ta,2,1,"mat-error"),t()(),i(64,"div",27)(65,"mat-form-field",28)(66,"mat-label"),r(67,"Land"),t(),p(68,"input",38),f(69,Aa,2,1,"mat-error"),t()(),i(70,"div",34),f(71,Va,2,0,"button",39),t()()()()}if(l&2){let e,n,o,s,h,E,w,I,F,C=a.$implicit,A=a.$index,T=G(37),Q=c();
27m("expanded",Q.expandedPanelIndex()===A),d(3),x(Q.getCeoDisplayName(A)?3:4),d(2),m("formGroupName",A),d(12),x((e=C.get("title"))!=null&&e.invalid&&((e=C.get("title"))!=null&&e.dirty||(e=C.get("title"))!=null&&e.touched)?17:-1),d(6),x((n=C.get("firstname"))!=null&&n.invalid&&((n=C.get("firstname"))!=null&&n.dirty||(n=C.get("firstname"))!=null&&n.touched)?23:-1),d(6),x((o=C.get("lastname"))!=null&&o.invalid&&((o=C.get("lastname"))!=null&&o.dirty||(o=C.get("lastname"))!=null&&o.touched)?29:-1),d(5),m("matDatepicker",T),d(),m("for",T),d(3),x((s=C.get("birthdate"))!=null&&s.invalid&&((s=C.get("birthdate"))!=null&&s.dirty||(s=C.get("birthdate"))!=null&&s.touched)?38:-1),d(5),m("options",Q.placesOptions),d(2),x((h=C.get("street"))!=null&&h.invalid&&((h=C.get("street"))!=null&&h.dirty||(h=C.get("street"))!=null&&h.touched)?45:-1),d(6),x((E=C.get("street_number"))!=null&&E.invalid&&((E=C.get("street_number"))!=null&&E.dirty||(E=C.get("street_number"))!=null&&E.touched)?51:-1),d(6),x((w=C.get("zip_code"))!=null&&w.invalid&&((w=C.get("zip_code"))!=null&&w.dirty||(w=C.get("zip_code"))!=null&&w.touched)?57:-1),d(6),x((I=C.get("city"))!=null&&I.invalid&&((I=C.get("city"))!=null&&I.dirty||(I=C.get("city"))!=null&&I.touched)?63:-1),d(6),x((F=C.get("country"))!=null&&F.invalid&&((F=C.get("country"))!=null&&F.dirty||(F=C.get("country"))!=null&&F.touched)?69:-1),d(2),x(A!==0?71:-1)}}function za(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",41)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),r(3,"Sonstige Bevollm\xE4chtigte"),t()()(),i(4,"div",42)(5,"button",13),_("click",function(){u(e);let o=c();return g(o.addAuthorizedPerson())}),p(6,"i",14),r(7,"\xA0 Hinzuf\xFCgen "),t()()}}function Ha(l,a){if(l&1&&r(0),l&2){let e=c().$index,n=c(2);M(" ",n.getAuthorizedDisplayName(e)," ")}}function qa(l,a){l&1&&r(0," Sonstige Bevollm\xE4chtigte ")}function Ra(l,a){l&1&&r(0," Bitte w\xE4hlen Sie eine Anrede. ")}function Da(l,a){if(l&1&&(i(0,"div",26),f(1,Ra,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("title"))!=null&&e.hasError("required")?1:-1)}}function Oa(l,a){l&1&&r(0," Bitte geben Sie den Vornamen ein. ")}function Ba(l,a){if(l&1&&(i(0,"mat-error"),f(1,Oa,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("firstname"))!=null&&e.hasError("required")?1:-1)}}function $a(l,a){l&1&&r(0," Bitte geben Sie den Nachnamen ein. ")}function Ga(l,a){if(l&1&&(i(0,"mat-error"),f(1,$a,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("lastname"))!=null&&e.hasError("required")?1:-1)}}function La(l,a){l&1&&r(0," Bitte geben Sie das Geburtsdatum an. ")}function Ua(l,a){if(l&1&&(i(0,"mat-error"),f(1,La,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("birthdate"))!=null&&e.hasError("required")?1:-1)}}function ja(l,a){l&1&&r(0," Bitte geben Sie die Stra\xDFe ein. ")}function Ka(l,a){if(l&1&&(i(0,"mat-error"),f(1,ja,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("street"))!=null&&e.hasError("required")?1:-1)}}function Wa(l,a){l&1&&r(0," Bitte geben Sie die Hausnummer ein. ")}function Za(l,a){if(l&1&&(i(0,"mat-error"),f(1,Wa,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("street_number"))!=null&&e.hasError("required")?1:-1)}}function Ja(l,a){l&1&&r(0," Bitte geben Sie die PLZ ein. ")}function Qa(l,a){if(l&1&&(i(0,"mat-error"),f(1,Ja,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("zip_code"))!=null&&e.hasError("required")?1:-1)}}function Xa(l,a){l&1&&r(0," Bitte geben Sie die Stadt ein. ")}function Ya(l,a){if(l&1&&(i(0,"mat-error"),f(1,Xa,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("city"))!=null&&e.hasError("required")?1:-1)}}function er(l,a){l&1&&r(0," Bitte geben Sie das Land ein. ")}function tr(l,a){if(l&1&&(i(0,"mat-error"),f(1,er,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("country"))!=null&&e.hasError("required")?1:-1)}}function nr(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",18),_("opened",function(){let o=u(e).$index,s=c(2);return g(s.onAuthorizedPanelOpened(o))}),i(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,Ha,1,1)(4,qa,1,0),t()(),i(5,"div",19)(6,"div",5)(7,"div",20)(8,"h6",21),r(9,"Anrede:"),t(),i(10,"mat-radio-group",22)(11,"mat-radio-button",23),r(12,"Herr"),t(),i(13,"mat-radio-button",24),r(14,"Frau"),t(),i(15,"mat-radio-button",25),r(16,"Divers"),t()(),f(17,Da,2,1,"div",26),t(),i(18,"div",27)(19,"mat-form-field",28)(20,"mat-label"),r(21,"Vorname"),t(),p(22,"input",29),f(23,Ba,2,1,"mat-error"),t()(),i(24,"div",27)(25,"mat-form-field",28)(26,"mat-label"),r(27,"Nachname"),t(),p(28,"input",30),f(29,Ga,2,1,"mat-error"),t()(),i(30,"div",27)(31,"mat-form-field",28)(32,"mat-label"),r(33,"Geburtsdatum"),t(),p(34,"input",31)(35,"mat-datepicker-toggle",32)(36,"mat-datepicker",null,2),f(38,Ua,2,1,"mat-error"),t()(),i(39,"div",27)(40,"mat-form-field",28)(41,"mat-label"),r(42,"Stra\xDFe"),t(),i(43,"input",43,1),_("onAddressChange",function(o){let s=u(e).$index,h=c(2);return g(h.handleAuthorizedAddressChange(s,o))}),t(),f(45,Ka,2,1,"mat-error"),t()(),i(46,"div",34)(47,"mat-form-field",28)(48,"mat-label"),r(49,"Haus Nr."),t(),p(50,"input",35),f(51,Za,2,1,"mat-error"),t()(),i(52,"div",34)(53,"mat-form-field",28)(54,"mat-label"),r(55,"PLZ"),t(),p(56,"input",36),f(57,Qa,2,1,"mat-error"),t()(),i(58,"div",27)(59,"mat-form-field",28)(60,"mat-label"),r(61,"Stadt"),t(),p(62,"input",37),f(63,Ya,2,1,"mat-error"),t()(),i(64,"div",27)(65,"mat-form-field",28)(66,"mat-label"),r(67,"Land"),t(),p(68,"input",38),f(69,tr,2,1,"mat-error"),t()(),i(70,"div",34)(71,"button",40),_("click",function(){let o=u(e).$index,s=c(2);return g(s.removeAuthorizedPerson(o))}),r(72," Entfernen "),t()()()()()}if(l&2){let e,n,o,s,h,E,w,I,F,C=a.$implicit,A=a.$index,T=G(37),Q=c(2);
27m("expanded",Q.expandedAuthorizedPanelIndex()===A),d(3),x(Q.getAuthorizedDisplayName(A)?3:4),d(2),m("formGroupName",A),d(12),x((e=C.get("title"))!=null&&e.invalid&&((e=C.get("title"))!=null&&e.dirty||(e=C.get("title"))!=null&&e.touched)?17:-1),d(6),x((n=C.get("firstname"))!=null&&n.invalid&&((n=C.get("firstname"))!=null&&n.dirty||(n=C.get("firstname"))!=null&&n.touched)?23:-1),d(6),x((o=C.get("lastname"))!=null&&o.invalid&&((o=C.get("lastname"))!=null&&o.dirty||(o=C.get("lastname"))!=null&&o.touched)?29:-1),d(5),m("matDatepicker",T),d(),m("for",T),d(3),x((s=C.get("birthdate"))!=null&&s.invalid&&((s=C.get("birthdate"))!=null&&s.dirty||(s=C.get("birthdate"))!=null&&s.touched)?38:-1),d(5),m("options",Q.placesOptions),d(2),x((h=C.get("street"))!=null&&h.invalid&&((h=C.get("street"))!=null&&h.dirty||(h=C.get("street"))!=null&&h.touched)?45:-1),d(6),x((E=C.get("street_number"))!=null&&E.invalid&&((E=C.get("street_number"))!=null&&E.dirty||(E=C.get("street_number"))!=null&&E.touched)?51:-1),d(6),x((w=C.get("zip_code"))!=null&&w.invalid&&((w=C.get("zip_code"))!=null&&w.dirty||(w=C.get("zip_code"))!=null&&w.touched)?57:-1),d(6),x((I=C.get("city"))!=null&&I.invalid&&((I=C.get("city"))!=null&&I.dirty||(I=C.get("city"))!=null&&I.touched)?63:-1),d(6),x((F=C.get("country"))!=null&&F.invalid&&((F=C.get("country"))!=null&&F.dirty||(F=C.get("country"))!=null&&F.touched)?69:-1)}}function ir(l,a){if(l&1&&(i(0,"div",15),re(1,nr,73,15,"mat-expansion-panel",11,je),t()),l&2){let e=c();d(),oe(e.company_other_authorized_persons.controls)}}function ar(l,a){if(l&1){let e=b();i(0,"div",12)(1,"button",13),_("click",function(){u(e);let o=c();return g(o.addAuthorizedPerson())}),p(2,"i",14),r(3,"\xA0 Hinzuf\xFCgen "),t()()}}function rr(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",41)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),r(3,"Wirtschaftlich Berechtigte"),t()()(),i(4,"div",42)(5,"button",13),_("click",function(){u(e);let o=c();return g(o.addShareholder())}),p(6,"i",14),r(7,"\xA0 Hinzuf\xFCgen "),t()()}}function or(l,a){if(l&1&&r(0),l&2){let e=c().$index,n=c(2);M(" ",n.getShareholderDisplayName(e)," ")}}function lr(l,a){l&1&&r(0," Wirtschaftlich Berechtigte ")}function dr(l,a){l&1&&r(0," Bitte w\xE4hlen Sie eine Anrede. ")}function mr(l,a){if(l&1&&(i(0,"div",26),f(1,dr,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("title"))!=null&&e.hasError("required")?1:-1)}}function sr(l,a){l&1&&r(0," Bitte geben Sie den Vornamen ein. ")}function cr(l,a){if(l&1&&(i(0,"mat-error"),f(1,sr,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("firstname"))!=null&&e.hasError("required")?1:-1)}}function pr(l,a){l&1&&r(0," Bitte geben Sie den Nachnamen ein. ")}function _r(l,a){if(l&1&&(i(0,"mat-error"),f(1,pr,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("lastname"))!=null&&e.hasError("required")?1:-1)}}function ur(l,a){l&1&&r(0," Bitte geben Sie das Geburtsdatum an. ")}function gr(l,a){if(l&1&&(i(0,"mat-error"),f(1,ur,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("birthdate"))!=null&&e.hasError("required")?1:-1)}}function hr(l,a){l&1&&r(0," Bitte geben Sie die Stra\xDFe ein. ")}function fr(l,a){if(l&1&&(i(0,"mat-error"),f(1,hr,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("street"))!=null&&e.hasError("required")?1:-1)}}function xr(l,a){l&1&&r(0," Bitte geben Sie die Hausnummer ein. ")}function vr(l,a){if(l&1&&(i(0,"mat-error"),f(1,xr,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("street_number"))!=null&&e.hasError("required")?1:-1)}}function yr(l,a){l&1&&r(0," Bitte geben Sie die PLZ ein. ")}function br(l,a){if(l&1&&(i(0,"mat-error"),f(1,yr,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("zip_code"))!=null&&e.hasError("required")?1:-1)}}function Cr(l,a){l&1&&r(0," Bitte geben Sie die Stadt ein. ")}function Sr(l,a){if(l&1&&(i(0,"mat-error"),f(1,Cr,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("city"))!=null&&e.hasError("required")?1:-1)}}function Er(l,a){l&1&&r(0," Bitte geben Sie das Land ein. ")}function wr(l,a){if(l&1&&(i(0,"mat-error"),f(1,Er,1,0),t()),l&2){let e,n=c().$implicit;d(),x((e=n.get("country"))!=null&&e.hasError("required")?1:-1)}}function Mr(l,a){l&1&&(i(0,"mat-error"),r(1," Der Unternehmensanteil ist erforderlich. "),t())}function kr(l,a){l&1&&(i(0,"mat-error"),r(1," Der Unternehmensanteil muss gr\xF6\xDFer als 0% sein. "),t())}function Ir(l,a){l&1&&(i(0,"mat-error"),r(1," Der Unternehmensanteil darf 100% nicht \xFCberschreiten. "),t())}function Fr(l,a){l&1&&(i(0,"mat-error"),r(1," Bitte geben Sie eine g\xFCltige Prozentzahl ein. "),t())}function Tr(l,a){l&1&&(i(0,"p",47),p(1,"i",48),r(2,' Sie m\xFCssen mindestens 95\u202F% aller wirtschaftlich Berechtigten angeben. Klicken Sie im unteren Verlauf auf "Mehr hinzuf\xFCgen", um weitere wirtschaftlich Berechtigte einzutragen. '),t())}function Pr(l,a){l&1&&(i(0,"p",47),p(1,"i",48),r(2," 100% Unternehmensanteil ist das Maximum. Bitte geben Sie einen korrekten Wert ein. "),t())}function Ar(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",18),_("opened",function(){let o=u(e).$index,s=c(2);return g(s.onShareholderPanelOpened(o))}),i(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,or,1,1)(4,lr,1,0),t()(),i(5,"div",19)(6,"div",5)(7,"div",20)(8,"h6",21),r(9,"Anrede:"),t(),i(10,"mat-radio-group",22)(11,"mat-radio-button",23),r(12,"Herr"),t(),i(13,"mat-radio-button",24),r(14,"Frau"),t(),i(15,"mat-radio-button",25),r(16,"Divers"),t()(),f(17,mr,2,1,"div",26),t(),i(18,"div",27)(19,"mat-form-field",28)(20,"mat-label"),r(21,"Vorname"),t(),p(22,"input",29),f(23,cr,2,1,"mat-error"),t()(),i(24,"div",27)(25,"mat-form-field",28)(26,"mat-label"),r(27,"Nachname"),t(),p(28,"input",30),f(29,_r,2,1,"mat-error"),t()(),i(30,"div",27)(31,"mat-form-field",28)(32,"mat-label"),r(33,"Geburtsdatum"),t(),p(34,"input",31)(35,"mat-datepicker-toggle",32)(36,"mat-datepicker",null,3),f(38,gr,2,1,"mat-error"),t()(),i(39,"div",27)(40,"mat-form-field",28)(41,"mat-label"),r(42,"Stra\xDFe"),t(),i(43,"input",43,1),_("onAddressChange",function(o){let s=u(e).$index,h=c(2);return g(h.handleShareholderAddressChange(s,o))}),t(),f(45,fr,2,1,"mat-error"),t()(),i(46,"div",34)(47,"mat-form-field",28)(48,"mat-label"),r(49,"Haus Nr."),t(),p(50,"input",35),f(51,vr,2,1,"mat-error"),t()(),i(52,"div",34)(53,"mat-form-field",28)(54,"mat-label"),r(55,"PLZ"),t(),p(56,"input",36),f(57,br,2,1,"mat-error"),t()(),i(58,"div",27)(59,"mat-form-field",28)(60,"mat-label"),r(61,"Stadt"),t(),p(62,"input",37),f(63,Sr,2,1,"mat-error"),t()(),i(64,"div",27)(65,"mat-form-field",28)(66,"mat-label"),r(67,"Land"),t(),p(68,"input",38),f(69,wr,2,1,"mat-error"),t()(),i(70,"div",27)(71,"span",44),r(72," Bitte geben Sie den prozentualen Unternehmensanteil an. "),t(),i(73,"mat-form-field",45)(74,"mat-label"),r(75,"Unternehmensanteil in Prozent"),t(),p(76,"input",46),f(77,Mr,2,0,"mat-error"),f(78,kr,2,0,"mat-error"),f(79,Ir,2,0,"mat-error"),f(80,Fr,2,0,"mat-error"),t(),f(81,Tr,3,0,"p",47),f(82,Pr,3,0,"p",47),t(),i(83,"div",34)(84,"button",40),_("click",function(){let o=u(e).$index,s=c(2);return g(s.removeShareholder(o))}),r(85," Entfernen "),t()()()()()}if(l&2){let e,n,o,s,h,E,w,I,F,C,A,T,Q,se,B=a.$implicit,me=a.$index,R=G(37),Ae=c(2);m("expanded",Ae.expandedShareholderPanelIndex()===me),d(3),x(Ae.getShareholderDisplayName(me)?3:4),d(2),m("formGroupName",me),d(12),x((e=B.get("title"))!=null&&e.invali
27d&&((e=B.get("title"))!=null&&e.dirty||(e=B.get("title"))!=null&&e.touched)?17:-1),d(6),x((n=B.get("firstname"))!=null&&n.invalid&&((n=B.get("firstname"))!=null&&n.dirty||(n=B.get("firstname"))!=null&&n.touched)?23:-1),d(6),x((o=B.get("lastname"))!=null&&o.invalid&&((o=B.get("lastname"))!=null&&o.dirty||(o=B.get("lastname"))!=null&&o.touched)?29:-1),d(5),m("matDatepicker",R),d(),m("for",R),d(3),x((s=B.get("birthdate"))!=null&&s.invalid&&((s=B.get("birthdate"))!=null&&s.dirty||(s=B.get("birthdate"))!=null&&s.touched)?38:-1),d(5),m("options",Ae.placesOptions),d(2),x((h=B.get("street"))!=null&&h.invalid&&((h=B.get("street"))!=null&&h.dirty||(h=B.get("street"))!=null&&h.touched)?45:-1),d(6),x((E=B.get("street_number"))!=null&&E.invalid&&((E=B.get("street_number"))!=null&&E.dirty||(E=B.get("street_number"))!=null&&E.touched)?51:-1),d(6),x((w=B.get("zip_code"))!=null&&w.invalid&&((w=B.get("zip_code"))!=null&&w.dirty||(w=B.get("zip_code"))!=null&&w.touched)?57:-1),d(6),x((I=B.get("city"))!=null&&I.invalid&&((I=B.get("city"))!=null&&I.dirty||(I=B.get("city"))!=null&&I.touched)?63:-1),d(6),x((F=B.get("country"))!=null&&F.invalid&&((F=B.get("country"))!=null&&F.dirty||(F=B.get("country"))!=null&&F.touched)?69:-1),d(8),x((C=B.get("shareholder_percentage"))!=null&&C.hasError("required")&&((C=B.get("shareholder_percentage"))!=null&&C.dirty||(C=B.get("shareholder_percentage"))!=null&&C.touched)?77:-1),d(),x((A=B.get("shareholder_percentage"))!=null&&A.hasError("min")?78:-1),d(),x((T=B.get("shareholder_percentage"))!=null&&T.hasError("max")?79:-1),d(),x((Q=B.get("shareholder_percentage"))!=null&&Q.hasError("pattern")?80:-1),d(),x(Ae.company_shareholders.controls.length-1===me&&((se=B.get("shareholder_percentage"))!=null&&se.dirty||(se=B.get("shareholder_percentage"))!=null&&se.touched)&&Ae.check_total_shareholding()<95?81:-1),d(),x(Ae.company_shareholders.controls.length-1===me&&Ae.check_total_shareholding()>100?82:-1)}}function Vr(l,a){if(l&1&&(i(0,"div",16),re(1,Ar,86,21,"mat-expansion-panel",11,je),t()),l&2){let e=c();d(),oe(e.company_shareholders.controls)}}function Nr(l,a){if(l&1){let e=b();i(0,"div",12)(1,"button",13),_("click",function(){u(e);let o=c();return g(o.addShareholder())}),p(2,"i",14),r(3,"\xA0 Hinzuf\xFCgen "),t()()}}function zr(l,a){if(l&1){let e=b();i(0,"div",17)(1,"div",49)(2,"button",13),_("click",function(){u(e);let o=c();return g(o.updateLegalRepresentative())}),p(3,"i",50),r(4,"\xA0 Speichern "),t()()()}}var Pt=class l{constructor(){this.fb=O(xe);this.saveRequested=ze();this.opened=U({ceo:[],authorized:[],shareholder:[]});this.expandedPanelIndex=U(0);this.expandedAuthorizedPanelIndex=U(0);this.expandedShareholderPanelIndex=U(0);this.initialFormValue=null;this.hasChanges=U(!1);this.sweetAlertService=O(ee)}loadData(a){a&&(this.valueChangesSub&&this.valueChangesSub.unsubscribe(),this.initializeForms(),this.patchFormFromLegalRepresentatives(a),this.storeInitialValue(),this.valueChangesSub=this.legalRepresentativesForm.valueChanges.subscribe(()=>this.checkForChanges()))}ngOnInit(){this.initializeForms(),this.addCeo(),this.storeInitialValue(),this.valueChangesSub=this.legalRepresentativesForm.valueChanges.subscribe(()=>this.checkForChanges())}ngOnDestroy(){this.valueChangesSub&&this.valueChangesSub.unsubscribe()}initializeForms(){this.legalRepresentativesForm=this.fb.group({company_ceos:this.fb.array([]),company_other_authorized_persons:this.fb.array([]),company_shareholders:this.fb.array([])})}get company_ceos(){return this.legalRepresentativesForm.get("company_ceos")}get company_other_authorized_persons(){return this.legalRepresentativesForm.get("company_other_authorized_persons")}
27get company_shareholders(){return this.legalRepresentativesForm.get("company_shareholders")}onPanelOpened(a){this.expandedPanelIndex.set(a)}ceoShareholderFormGroup(){return this.fb.group({title:["Herr",S.required],firstname:["",S.required],lastname:["",S.required],birthdate:["",S.required],street:["",S.required],street_number:["",S.required],zip_code:["",S.required],city:["",S.required],country:["",S.required]})}companyShareholderFormGroup(){return this.fb.group({title:["Herr",S.required],firstname:["",S.required],lastname:["",S.required],birthdate:["",S.required],street:["",S.required],street_number:["",S.required],zip_code:["",S.required],city:["",S.required],country:["",S.required],shareholder_percentage:["",[S.required,S.min(.01),S.max(100)]]})}getCeoDisplayName(a){let e=this.company_ceos.at(a);if(!e)return"";let n=e.get("firstname")?.value??"",o=e.get("lastname")?.value??"";return[n,o].filter(Boolean).join(" ")}handleCeoAddressChange(a,e){let n=this.company_ceos.at(a);n&&this.patchAddressToFormGroup(n,e)}patchAddressToFormGroup(a,e){let n=e?.address_components;n&&n.forEach(o=>{let s=o.types||[];if(s.includes("street_number")&&a.patchValue({street_number:o.short_name}),s.includes("postal_code")&&a.patchValue({zip_code:o.short_name}),s.includes("route")&&a.patchValue({street:o.short_name}),s.length>1)for(let h=0;h<s.length;h++)s[h]==="country"&&a.patchValue({country:o.long_name}),s[h]==="locality"&&a.patchValue({city:o.short_name})})}removeCeo(a){let e=this.expandedPanelIndex();this.company_ceos.removeAt(a),this.opened.update(o=>X(Z({},o),{ceo:o.ceo.filter((s,h)=>h!==a)}));let n=this.company_ceos.length;e===a?this.expandedPanelIndex.set(Math.min(a,Math.max(0,n-1))):e>a&&this.expandedPanelIndex.set(e-1)}toggleCeo(a){this.opened.update(e=>{let n=[...e.ceo];return n[a]=!n[a],X(Z({},e),{ceo:n})})}addCeo(){if(this.company_ceos.length>0&&!this.canAddMoreCeo()){this.legalRepresentativesForm.markAllAsTouched(),this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus...","OK").subscribe();return}let a=this.ceoShareholderFormGroup(),e=this.company_ceos.length;this.company_ceos.push(a),this.opened.update(n=>{let o=[...n.ceo,!1];return X(Z({},n),{ceo:o})}),this.expandedPanelIndex.set(e)}canAddMoreCeo(){return this.company_ceos.controls.length>0&&this.company_ceos.controls.every(a=>a.valid)}addAuthorizedPerson(){if(this.company_other_authorized_persons.length>0&&!this.canAddMoreAuthorizedPerson()){this.legalRepresentativesForm.markAllAsTouched(),this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus...","OK").subscribe();return}let a=this.company_other_authorized_persons.length;this.company_other_authorized_persons.push(this.ceoShareholderFormGroup()),this.opened.update(e=>X(Z({},e),{authorized:[...e.authorized,!1]})),this.expandedAuthorizedPanelIndex.set(a)}canAddMoreAuthorizedPerson(){return this.company_other_authorized_persons.controls.length>0&&this.company_other_authorized_persons.controls.every(a=>a.valid)}onAuthorizedPanelOpened(a){this.expandedAuthorizedPanelIndex.set(a)}removeAuthorizedPerson(a){let e=this.expandedAuthorizedPanelIndex();this.company_other_authorized_persons.removeAt(a),this.opened.update(o=>X(Z({},o),{authorized:o.authorized.filter((s,h)=>h!==a)}));let n=this.company_other_authorized_persons.length;e===a?this.expandedAuthorizedPanelIndex.set(Math.min(a,Math.max(0,n-1))):e>a&&this.expandedAuthorizedPanelIndex.set(e-1)}getAuthorizedDisplayName(a){let e=this.company_other_authorized_persons.at(a);if(!e)return"";let n=e.get("firstname")?.value??"",o=e.get("lastname")?.value??"";return[n,o].filter(Boolean).join(" ")}toggleEdit(a,e){this.opened.update(n=>{let o=[...n[a]];return o[e]=!o[e],X(Z({},n),{[a]:o})})}handleAuthorizedAddressChange(a,e){let n=this.company_other_authorized_persons.at(a);n&&this.patchAddressToFormGroup(n,e)}addShareholder(){if(this.company_shareholders.length>0&&!this.canAddMoreShareholder()){this.legalRepresentativesForm.markAllAsTouched(),this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus...","OK").subscribe();return}
27let a=this.company_shareholders.length;this.company_shareholders.push(this.companyShareholderFormGroup()),this.opened.update(e=>X(Z({},e),{shareholder:[...e.shareholder,!1]})),this.expandedShareholderPanelIndex.set(a)}onShareholderPanelOpened(a){this.expandedShareholderPanelIndex.set(a)}canAddMoreShareholder(){return this.company_shareholders.length>0&&this.company_shareholders.controls.every(a=>a.valid)}removeShareholder(a){let e=this.expandedShareholderPanelIndex();this.company_shareholders.removeAt(a),this.opened.update(o=>X(Z({},o),{shareholder:o.shareholder.filter((s,h)=>h!==a)}));let n=this.company_shareholders.length;e===a?this.expandedShareholderPanelIndex.set(Math.min(a,Math.max(0,n-1))):e>a&&this.expandedShareholderPanelIndex.set(e-1)}getShareholderDisplayName(a){let e=this.company_shareholders.at(a);if(!e)return"";let n=e.get("firstname")?.value??"",o=e.get("lastname")?.value??"";return[n,o].filter(Boolean).join(" ")}handleShareholderAddressChange(a,e){let n=this.company_shareholders.at(a);n&&this.patchAddressToFormGroup(n,e)}check_total_shareholding(){let a=0;return this.company_shareholders.controls.forEach(e=>{let n=e.get("shareholder_percentage")?.value;a+=parseFloat(n)||0}),a}isShareholdingValid(){if(this.company_shareholders.controls.length===0)return!0;let a=this.check_total_shareholding();return a>=95&&a<=100}storeInitialValue(){this.initialFormValue=JSON.parse(JSON.stringify(this.legalRepresentativesForm.value)),this.legalRepresentativesForm.markAsPristine()}checkForChanges(){this.initialFormValue&&this.hasChanges.set(JSON.stringify(this.legalRepresentativesForm.value)!==JSON.stringify(this.initialFormValue))}getChangedPayload(){if(!this.initialFormValue)return this.legalRepresentativesForm.value;let a=this.legalRepresentativesForm.value,e={},n=["company_ceos","company_other_authorized_persons","company_shareholders"];for(let o of n)JSON.stringify(a[o])!==JSON.stringify(this.initialFormValue[o])&&(e[o]=a[o]);return Object.keys(e).length>0?e:null}updateLegalRepresentative(){let a=this.getChangedPayload();if(a){if(this.legalRepresentativesForm.invalid){this.legalRepresentativesForm.markAllAsTouched();return}this.saveRequested.emit({payload:a})}}patchFormFromLegalRepresentatives(a){let e=a.company_ceos??[],n=a.company_other_authorized_persons??[],o=a.company_shareholders??[];e.forEach(s=>this.pushCeoFromData(s)),n.forEach(s=>this.pushAuthorizedFromData(s)),o.forEach(s=>this.pushShareholderFromData(s)),this.opened.set({ceo:e.map(()=>!1),authorized:n.map(()=>!1),shareholder:o.map(()=>!1)}),e.length>0&&this.expandedPanelIndex.set(0),n.length>0&&this.expandedAuthorizedPanelIndex.set(0),o.length>0&&this.expandedShareholderPanelIndex.set(0)}mapRepToFormValue(a){return{title:a.title??"Herr",firstname:a.firstname??"",lastname:a.lastname??"",birthdate:a.birthdate??"",street:a.street??"",street_number:a.street_number??"",zip_code:a.zip_code??"",city:a.city??"",country:a.country??""}}pushCeoFromData(a){let e=this.ceoShareholderFormGroup();e.patchValue(this.mapRepToFormValue(a)),this.company_ceos.push(e)}pushAuthorizedFromData(a){let e=this.ceoShareholderFormGroup();e.patchValue(this.mapRepToFormValue(a)),this.company_other_authorized_persons.push(e)}pushShareholderFromData(a){let e=this.companyShareholderFormGroup();e.patchValue(X(Z({},this.mapRepToFormValue(a)),{shareholder_percentage:a.shareholder_percentage??a.share_percentage??""})),this.company_shareholders.push(e)}onSaveSuccess(){this.storeInitialValue(),this.hasChanges.set(!1)}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-legal-representatives"]],outputs:{saveRequested:"saveRequested"},decls:31,vars:11,consts:[["picker",""],["placesRef","ngx-places"],["dpAuth",""],["dpShare",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12","col-md-6","col-xl-4"],[3,"formGroup"],[1,"col-12"],[3,"multi"],["formArrayName","company_ceos"],[1,"mb-3",3,"expanded"],[1,"col-12","d-flex","justify-content-end","mt-3","mb-2","mb-md-0"],["type","button",1,"btn","button-primary",3,"click"],[1,"fas","fa-user-plus"],["formArrayName","company_other_authorized_persons"],["formArrayName","company_
27shareholders"],[1,"col-12","mt-2"],[1,"mb-3",3,"opened","expanded"],[1,"p-2",3,"formGroupName"],[1,"col-sm-12","mb-2","d-flex","flex-wrap","align-items-center","gap-2"],[1,"mb-0"],["formControlName","title"],["value","Herr"],["value","Frau"],["value","Divers"],[1,"mat-mdc-form-field-error","small","text-danger","w-100"],[1,"col-sm-12"],["appearance","outline",1,"w-100"],["matInput","","formControlName","firstname","autocomplete","off"],["matInput","","formControlName","lastname","autocomplete","off"],["matInput","","formControlName","birthdate",3,"matDatepicker"],["matSuffix","",3,"for"],["matInput","","placeholder","Stra\xDFe","ngx-gp-autocomplete","","formControlName","street",3,"onAddressChange","options"],[1,"col-sm-6"],["matInput","","formControlName","street_number"],["matInput","","formControlName","zip_code"],["matInput","","formControlName","city"],["matInput","","formControlName","country"],["type","button",1,"btn","btn-danger"],["type","button",1,"btn","btn-danger",3,"click"],[1,"mb-3"],[1,"p-2","d-flex","justify-content-end"],["matInput","","formControlName","street","ngx-gp-autocomplete","",3,"onAddressChange","options"],[2,"font-size","12.5px"],["appearance","outline",1,"w-100","mat-form-field-remove-padding-bottom"],["matInput","","type","number","placeholder","Unternehmensanteil in Prozent","formControlName","shareholder_percentage"],[1,"custom-alert-danger","mt-2"],[1,"fa","fa-warning"],[1,"d-flex","justify-content-end"],[1,"fas","fa-save"]],template:function(e,n){e&1&&(i(0,"div",4)(1,"div",5)(2,"div",6)(3,"form",7)(4,"div",5)(5,"div",8)(6,"mat-accordion",9)(7,"div",10),re(8,Na,72,16,"mat-expansion-panel",11,je),t()(),i(10,"div",12)(11,"button",13),_("click",function(){return n.addCeo()}),p(12,"i",14),r(13,"\xA0 Hinzuf\xFCgen "),t()()()()()(),i(14,"div",6)(15,"form",7)(16,"div",5)(17,"div",8)(18,"mat-accordion",9),f(19,za,8,0)(20,ir,3,0,"div",15),t(),f(21,ar,4,0,"div",12),t()()()(),i(22,"div",6)(23,"form",7)(24,"div",5)(25,"div",8)(26,"mat-accordion",9),f(27,rr,8,0)(28,Vr,3,0,"div",16),t(),f(29,Nr,4,0,"div",12),t()()()(),f(30,zr,5,0,"div",17),t()()),e&2&&(d(3),m("formGroup",n.legalRepresentativesForm),d(3),m("multi",!1),d(2),oe(n.company_ceos.controls),d(7),m("formGroup",n.legalRepresentativesForm),d(3),m("multi",!1),d(),x(n.company_other_authorized_persons.length===0?19:20),d(2),x(n.company_other_authorized_persons.length>0?21:-1),d(2),m("formGroup",n.legalRepresentativesForm),d(3),m("multi",!1),d(),x(n.company_
27shareholders.length===0?27:28),d(2),x(n.company_shareholders.length>0?29:-1),d(),x(n.hasChanges()?30:-1))},dependencies:[J,xt,gt,ht,ft,te,ye,Ne,ke,ne,vt,yt,Ie,Fe,Te,ve,ge,pe,lt,_e,ue,fe,he,dt,mt,Ct,bt],styles:[".custom-alert-danger[_ngcontent-%COMP%]{background:#fff0f0;color:#eb3737;padding:10px;border-radius:10px;font-size:14px;font-weight:400;line-height:1.2;margin-bottom:10px}.custom-alert-danger[_ngcontent-%COMP%] .fa-warning[_ngcontent-%COMP%]{font-size:16px;margin-right:8px;vertical-align:middle}"]})}};var ki=l=>({height:l});function Hr(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel-header",6)(1,"mat-panel-title"),r(2," Liste "),p(3,"i",12),t(),i(4,"div",13),_("click",function(){u(e);let o=c();return g(o.opened_tab.documPdfSearch_data=!0)}),p(5,"i",14),t(),i(6,"button",15),r(7,"Dokument hochladen"),t()()}}function qr(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel-header",6)(1,"div",16)(2,"div",17)(3,"mat-form-field",18)(4,"input",19),_("input",function(o){u(e);let s=c();return g(s.SearchDocument(o))}),t()(),i(5,"img",20),_("click",function(){u(e);let o=c();return g(o.opened_tab.documPdfSearch_data=!1)}),t()()()()}}function Rr(l,a){l&1&&(i(0,"div",7),p(1,"app-no-data",21),t())}function Dr(l,a){if(l&1){let e=b();i(0,"div",8)(1,"mat-accordion",22)(2,"mat-expansion-panel",23),_("opened",function(){let o=u(e).$implicit,s=c();return g(s.onPanelOpen(o))}),i(3,"mat-expansion-panel-header")(4,"mat-panel-title",10),r(5),t()(),i(6,"ul",24)(7,"li",25),r(8," Vertrag-ID: "),i(9,"span",26),r(10),t()(),i(11,"li",25),r(12," Dateityp: "),i(13,"span",26),r(14),t()(),i(15,"li",25),r(16," Datum der Unterzeichnung: "),i(17,"span",26),r(18),V(19,"date"),t()(),i(20,"li",25),r(21," Vertragsbeginn: "),i(22,"span",26),r(23),V(24,"date"),t()(),i(25,"li",25),r(26," Vertragsstatus: "),i(27,"span",26),r(28),t()()()()()()}if(l&2){let e=a.$implicit,n=a.$index,o=c();d(2),m("expanded",n===0||o.selectedDocument._id===e._id),d(3),M(" ",e.document_type||e.document_name," "),d(5),y(e.ticket_no),d(4),y(e.document_sub_type),d(4),M(" ",N(19,7,e.createdAt,"dd.MM.yyyy HH:mm:ss")," "),d(5),M(" ",N(24,10,e.createdAt,"dd.MM.yyyy")," "),d(5),M(" ",e.verified==="1"?"Verifiziert":"Nicht Verifiziert"," ")}}function Or(l,a){l&1&&(i(0,"div",7),p(1,"app-no-data",21),t())}function Br(l,a){l&1&&(i(0,"div",7),p(1,"app-no-data",27),t())}function $r(l,a){if(l&1&&(i(0,"div",11),p(1,"iframe",28),t()),l&2){let e=c();d(),m("src",e.pdfDocumentUrl,wt)("ngStyle",k(2,ki,e.isLargeScreen?"900px":"80vh"))}}function Gr(l,a){if(l&1&&(i(0,"div",11),p(1,"iframe",28),t()),l&2){let e=c();d(),m("src",e.pdfDocumentUrl,wt)("ngStyle",k(2,ki,e.isLargeScreen?"900px":"80vh"))}}var sn=class l{constructor(){this.sanitizer=O(We);this.isLargeScreen=window.innerWidth>=1024;this.opened_tab={documPdfSearch_data:!1};this.filterDocuments=[{_id:"1",document_type:"Software-Nutzungsvertrag",document_name:"Software Vertrag",document_sub_type:"PDF",ticket_no:"DOC-1001",createdAt:new Date("2026-02-15T10:30:00"),verified:"1"},{_id:"2",document_type:"Lieferantenvertrag",document_name:"Supplier Contract",document_sub_type:"PDF",ticket_no:"DOC-1002",createdAt:new Date("2026-02-18T14:10:00"),verified:"0"},{_id:"3",document_type:"Service Agreement",document_name:"Service Vertrag",document_sub_type:"PDF",ticket_no:"DOC-1003",createdAt:new Date("2026-02-20T09:00:00"),verified:"1"}];this.selectedDocument=this.filterDocuments[0]}ngOnInit(){let a="https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf";this.pdfDocumentUrl=this.sanitizer.bypassSecurityTrustResourceUrl(a)}onPanelOpen(a){this.selectedDocument=a}SearchDocument(a){}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-documents"]],decls:22,vars:6,consts:[[1,"background-section"],[1,"row","g-3"],[1,"col-lg-5"],[1,"mb-3","mb-md-4","listeBlock"],[1,"listeBlock_inner"],["expanded","",3,"disabled"],[1,"hideArrow"],[1,"text-center"],[1,"mb-3","mb-md-4"],[1,"col-lg-7"],[1,"resumeHeader"],[1,"pdf-viewer-container"],[1,"fa","fa-solid","fa","fa-angles-down",2,"font-size","12px"],[2,"cursor","pointer",3,"click"],[1,"fa","fa-solid","fa","fa-search"],[1,"btn","button-primary",2,"margin-left","10px"],[1,"row",2,"flex","1"],[1,"col-12","searchBox","position-relative","d-flex"],[1,"w-100","mat-form-field-remove-padding-bottom"],["matInput","","placeholder","Dokumentname",3,"input"],["src","../assets/closeModel.svg","alt","Close","role","button",1,"position-absolute","links",2,"width","16px","height","16px","display","block","cursor","pointer","right","20px","top","20px",3,"click"],["message","Keine Dokumente gefunden."],[1,"softwareLicense-List"],[3,"opened","expanded"],[1,"licenseList"],[1,"text-sm","black-text-700","font-4"],[1,"font-7"],["message","Kein Dokument ausgew\xE4hlt"],["width","100%",3,"src","ngStyle"]],template:function(e,n){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-accordion",4)(5,"mat-expansion-panel",5),f(6,Hr,8,0,"mat-expansion-panel-header",6)(7,qr,6,0,"mat-expansion-panel-header",6),f(8,Rr,2,0,"div",7),re(9,Dr,29,13,"div",8,at),t()()()(),i(11,"div",9)(12,"mat-accordion")(13,"mat-expansion-panel",5)(14,"mat-expansion-panel-header",6)(15,"mat-panel-title",10),r(16),t()(),i(17,"div",8),f(18,Or,2,0,"div",7)(19,Br,2,0,"div",7)(20,$r,2,4,"div",11)(21,Gr,2,4,"div",11),t()()()()()()),e&2&&(d(5),m("disabled",!0),d(),x(n.opened_tab.documPdfSearch_data?7:6),d(2),x(n.filterDocuments.length===0?8:-1),d(),oe(n.filterDocuments),d(4),m("disabled",!0),d(3),M(" ",n.selectedDocument.document_type||"Dokument"," "),d(2),x(!n.filterDocuments||n.filterDocuments.length===0?18:n.selectedDocument?n.selectedDocument&&n.pdfDocumentUrl?20:21:19))},dependencies:[J,xt,gt,ht,ft,te,ne,Me,Un,qe,Ye],styles:[".listeBlock[_ngcontent-%COMP%]{height:100%}.listeBlock[_ngcontent-%COMP%] .listeBlock_inner[_ngcontent-%COMP%]{height:100%;display:grid}.listeBlock[_ngcontent-%COMP%] .listeBlock_inner[_ngcontent-%COMP%] .mat-expansion-panel-header-title{gap:5px}.listeBlock[_ngcontent-%COMP%] .listeBlock_inner[_ngcontent-%COMP%] .mat-expansion-panel-header-title img{height:18px;width:18px;object-fit:contain}.softwareLicense-List[_ngcontent-%COMP%] .licenseList[_ngcontent-%COMP%]{padding-left:10px;display:grid;gap:3px}.softwareLicense-List[_ngcontent-%COMP%] .licenseList[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:4px}.pdf-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;margin-bottom:30px;border-bottom:solid .5px #0D82FF;width:calc(100% + 32px);margin-left:-16px;padding:0 16px 30px;flex-wrap:wrap}.pdf-buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border:solid 1px #42A0FE;border-radius:50px;padding:5px 18px;text-decoration:none;font-size:14px;line-height:1.3;font-weight:400;color:#42a0fe;transition:all .3s;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;object-fit:contain;margin-right:5px;display:inline;margin-bottom:3px}.pdf-buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#d0e7ff;color:var(--drivehero-text-black-700);border-color:var(--drivehero-light-700)}.background-section[_ngcontent-%COMP%]{background-color:var(--drivehero-bg-white);padding:20px}.searchBox[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper{background:#fff;border:solid 1px #b1d5f8}.searchBox[_ngcontent-%COMP%] .mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:before, .searchBox[_ngcontent-%COMP%] .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple:after{border:none!important}.searchBox[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:0!important}.searchBox[_ngcontent-%COMP%] .mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{font-size:16px;font-weight:400}@media(max-width:991px){.listeBlock[_ngcontent-%COMP%] .listeBlock_inner[_ngcontent-%COMP%] .mat-expansion-panel-header-title img{height:16px;width:16px}}"]})}};function Lr(l,a){if(l&1&&(i(0,"mat-error"),r(1),t()),l&2){let e,n=c();d(),y(!((e=n.addNoteForm.get("title"))==null||e.errors==null)&&e.errors.required?"Bitte geben Sie den Titel der Notiz ein.":"")}}function Ur(l,a){if(l&1&&(i(0,"mat-error"),r(1),t()),l&2){let e,n=c();d(),y(!((e=n.addNoteForm.get("description"))==null||e.errors==null)&&e.errors.required?"Bitte geben Sie die Beschreibung der Notiz ein.":"")}}function jr(l,a){if(l&1&&(i(0,"mat-error"),r(1),t()),l&2){let e,n=c(2);d(),y(!((e=n.addNoteForm.get("reminder_due_date"))==null||e.errors==null)&&e.errors.required?"Bitte w\xE4hlen Sie ein Datum aus.":"")}}function Kr(l,a){if(l&1&&(i(0,"div",19)(1,"div",13)(2,"h6",14),r(3," Bitte w\xE4hlen Sie das Datum aus, an dem diese Notiz im Kalender angezeigt werden soll: "),t(),i(4,"div",15)(5,"div",11)(6,"div",25)(7,"mat-form-field",17)(8,"mat-label"),r(9,"Datum ausw\xE4hlen"),t(),p(10,"input",26)(11,"mat-datepicker-toggle",27)(12,"mat-datepicker",null,0),t(),f(14,jr,2,1,"mat-error"),t()()()()()),l&2){let e,n=G(13),o=c();d(10),m("matDatepicker",n),d(),m("for",n),d(3),x((e=o.addNoteForm.get("reminder_due_date"))!=null&&e.invali
27d&&((e=o.addNoteForm.get("reminder_due_date"))!=null&&e.dirty||(e=o.addNoteForm.get("reminder_due_date"))!=null&&e.touched)?14:-1)}}var At=class l{constructor(){this.companyId=ie("");this.fb=O(xe);this.sweetAlertService=O(ee);this.noteSubmit=ze()}ngOnInit(){this.initializeForms()}initializeForms(){this.addNoteForm=this.fb.group({_id:[""],title:["",[S.required]],description:["",S.required],type:["0",S.required],reminder_due_date:[""]}),this.addNoteForm.get("type")?.valueChanges.subscribe(a=>{let e=this.addNoteForm.get("reminder_due_date");a==="1"?e?.setValidators([S.required]):e?.clearValidators(),e?.updateValueAndValidity()})}open_modal(a){let e=$("#"+a);e.appendTo("body"),e.modal({backdrop:"static",keyboard:!1,show:!0})}openAddNoteModal(){this.open_modal("AddNoteModal")}closeAddNoteModal(){$("#AddNoteModal").modal("hide")}addNote(){if(this.addNoteForm.markAllAsTouched(),this.addNoteForm.invalid){this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus, bevor Sie fortfahren.","OK").subscribe();return}let a=this.addNoteForm.value,e={title:(a.title??"").trim(),description:(a.description??"").trim(),type:a.type??"0"};if(e.type==="1"){let n=a.reminder_due_date;n&&(e.reminder_due_date=n)}console.log("AddNotePayload",e),this.noteSubmit.emit(e)}resetAfterSuccessfulSubmit(){this.addNoteForm.reset({_id:"",title:"",description:"",type:"0",reminder_due_date:""}),this.addNoteForm.get("reminder_due_date")?.clearValidators(),this.addNoteForm.get("reminder_due_date")?.updateValueAndValidity(),this.closeAddNoteModal()}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-add-note"]],inputs:{companyId:[1,"companyId"]},outputs:{noteSubmit:"noteSubmit"},decls:47,vars:6,consts:[["picker",""],["id","AddNoteModal_parent"],["id","AddNoteModal","tabindex","-1","aria-hidden","true","data-bs-backdrop","static","data-bs-keyboard","false",1,"modal","fade"],["role","document",1,"modal-dialog","customer-mat-Modal","modal-dialog-centered","modal-dialog-scrollable",2,"width","75vw","max-width","100dvw"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close",3,"click"],["src","assets/closeModel.svg","alt","Close",2,"width","20px","height","20px","display","block"],[1,"modal-body"],[3,"formGroup"],[1,"row"],[1,"col-12","mb-2"],[1,"field-heading-parent"],[1,"field-heading"],[1,"p-3"],[1,"col-12"],["appearance","outline",1,"w-100","bg-white"],["matInput","","formControlName","title","placeholder","Titel der Notiz"],[1,"col-12","mb-3"],["matInput","","formControlName","description","rows","3","placeholder","Beschreibung der Notiz"],[1,"p-2"],[3,"change","checked"],[1,"d-flex","justify-content-end","gap-2"],["type","button",1,"btn","button-primary",3,"click"],[1,"col-12","col-md-6","col-xl-6"],["matInput","","formControlName","reminder_due_date","placeholder","Datum ausw\xE4hlen",3,"matDatepicker"],["matSuffix","",3,"for"]],template:function(e,n){if(e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h5",6),r(6,"Notiz hinzuf\xFCgen"),t(),i(7,"button",7),_("click",function(){return n.closeAddNoteModal()}),p(8,"img",8),t()(),i(9,"div",9)(10,"form",10)(11,"div",11)(12,"div",12)(13,"div",13)(14,"h6",14),r(15," Bitte geben Sie die Titel der Notiz ein: "),t(),i(16,"div",15)(17,"div",11)(18,"div",16)(19,"mat-form-field",17)(20,"mat-label"),r(21,"Titel"),t(),p(22,"input",18),t(),f(23,Lr,2,1,"mat-error"),t()()()()(),i(24,"div",19)(25,"div",13)(26,"h6",14),r(27," Bitte geben Sie die Titel der Notiz ein: "),t(),i(28,"div",15)(29,"div",11)(30,"div",16)(31,"mat-form-field",17),p(32,"textarea",20),t(),f(33,Ur,2,1,"mat-error"),t()()()()(),i(34,"div",19)(35,"div",13)(36,"h6",14),r(37," M\xF6chten Sie, dass diese Notiz im Kalender angezeigt wird? "),t(),i(38,"div",21)(39,"mat-slide-toggle",22),_("change",function(s){let h;return(h=n.addNoteForm.get("type"))==null?null:h.setValue(s.checked?"1":"0")}),r(40),t()()()(),f(41,Kr,15,3,"div",19),t(),i(42,"div",11)(43,"div",12)(44,"div",23)(45,"button",24),_("click",function(){return n.addNote()}),r(46,"Hinzuf\xFCgen"),t()()()()()()()()()()),e&2){let o,s,h,E,w;d(10),m("formGroup",n.addNoteForm),d(13),x((o=n.addNoteForm.get("title"))!=null&&o.invalid&&((o=n.addNoteForm.get("title"))!=null&&o.dirty||(o=n.addNoteForm.get("title"))!=null&&o.touched)?23:-1),d(10),x((s=n.addNoteForm.get("description"))!=null&&s.invalid&&((s=n.addNoteForm.get("description"))!=null&&s.dirty||(s=n.addNoteForm.get("description"))!=null&&s.touched)?33:-1),d(6),m("checked",((h=n.addNoteForm.get("type"))==null?null:h.value)==="1"),d(),M(" ",((E=n.addNoteForm.get("type"))==null?null:E.value)==="1"?"Ja":"Nein"," "),d(),x(((w=n.addNoteForm.get("type"))==null?null:w.value)==="1"?41:-1)}},dependencies:[ve,ge,pe,_e,ue,fe,he,J,te,ye,Ne,ke,ne,Je,Ie,Fe,Te],encapsulation:2})}};function Wr(l,a){if(l&1&&(i(0,"mat-error"),r(1),t()),l&2){let e,n=c();d(),M(" ",!((e=n.editNoteForm.get("title"))==null||e.errors==null)&&e.errors.required?"Bitte geben Sie den Titel der Notiz ein.":""," ")}}function Zr(l,a){if(l&1&&(i(0,"mat-error"),r(1),t()),l&2){let e,n=c();d(),y(!((e=n.editNoteForm.get("description"))==null||e.errors==null)&&e.errors.required?"Bitte geben Sie die Beschreibung der Notiz ein.":"")}}function Jr(l,a){if(l&1&&(i(0,"mat-error"),r(1),t()),l&2){let e,n=c(2);d(),y(!((e=n.editNoteForm.get("reminder_due_date"))==null||e.errors==null)&&e.errors.required?"Bitte w\xE4hlen Sie ein Datum aus.":"")}}function Qr(l,a){if(l&1&&(i(0,"div",19)(1,"div",13)(2,"h6",14),r(3," Bitte w\xE4hlen Sie das Datum aus, an dem die Notiz im Kalender angezeigt werden soll. "),t(),i(4,"div",15)(5,"div",11)(6,"div",25)(7,"mat-form-field",17)(8,"mat-label"),r(9,"Datum ausw\xE4hlen"),t(),p(10,"input",26)(11,"mat-datepicker-toggle",27)(12,"mat-datepicker",null,0),t(),f(14,Jr,2,1,"mat-error"),t()()()()()),l&2){let e,n=G(13),o=c();d(10),m("matDatepicker",n),d(),m("for",n),d(3),x((e=o.editNoteForm.get("reminder_due_date"))!=null&&e.invali
27d&&((e=o.editNoteForm.get("reminder_due_date"))!=null&&e.dirty||(e=o.editNoteForm.get("reminder_due_date"))!=null&&e.touched)?14:-1)}}var Vt=class l{constructor(){this.fb=O(xe);this.companyId=ie("");this.editingOriginalNote=null;this.sweetAlertService=O(ee);this.noteUpdate=ze()}ngOnInit(){this.initializeForms()}initializeForms(){this.editNoteForm=this.fb.group({_id:[""],title:["",[S.required]],description:["",S.required],type:["0",S.required],reminder_due_date:[""]}),this.editNoteForm.get("type")?.valueChanges.subscribe(a=>{let e=this.editNoteForm.get("reminder_due_date");a==="1"?e?.setValidators([S.required]):e?.clearValidators(),e?.updateValueAndValidity()})}editNote(){if(this.editNoteForm.markAllAsTouched(),this.editNoteForm.invalid){this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus, bevor Sie fortfahren.","OK").subscribe(()=>{});return}let a=this.editNoteForm.value,e=(a._id??"").toString().trim();if(!e){this.sweetAlertService.error("Fehler","Die Notiz konnte nicht zugeordnet werden.","OK").subscribe(()=>{});return}if(!this.editingOriginalNote){this.sweetAlertService.error("Fehler","Keine Ausgangsnotiz geladen.","OK").subscribe(()=>{});return}let n=a.type??"0",o={_id:e,title:(a.title??"").trim(),description:(a.description??"").trim(),type:n};if(n==="1"&&a.reminder_due_date){let s=a.reminder_due_date;o.reminder_due_date=s instanceof Date?s.toISOString():String(s)}else o.reminder_due_date="";this.noteUpdate.emit({note:this.editingOriginalNote,payload:o})}closeAfterSuccessfulUpdate(){this.editingOriginalNote=null,this.closeEditNoteModal()}patchFormFromNote(a){let e=a?._id??a?.id??"",n=a?.title??"",o=a?.description??"",s=a?.type,h=s===1||s==="1"||s===!0?"1":"0",E="";if(h==="1"){let w=a?.reminder_due_date??a?.reminderDueDate??a?.due_date??a?.calendar_date;if(w){let I=new Date(w);Number.isNaN(I.getTime())||(E=I)}}this.editNoteForm.patchValue({_id:e,title:n,description:o,type:h,reminder_due_date:E},{emitEvent:!0}),this.editNoteForm.markAsUntouched(),this.editNoteForm.markAsPristine()}open_modal(a){let e=$("#"+a);e.appendTo("body"),e.modal({backdrop:"static",keyboard:!1,show:!0})}openEditNoteModal(a){a?(this.editingOriginalNote=Z({},a),this.patchFormFromNote(a)):(this.editingOriginalNote=null,this.editNoteForm.reset({_id:"",title:"",description:"",type:"0",reminder_due_date:""}),this.editNoteForm.get("reminder_due_date")?.clearValidators(),this.editNoteForm.get("reminder_due_date")?.updateValueAndValidity()),this.open_modal("EditNoteModal")}closeEditNoteModal(){$("#EditNoteModal").modal("hide")}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-edit-note"]],inputs:{companyId:[1,"companyId"]},outputs:{noteUpdate:"noteUpdate"},decls:47,vars:6,consts:[["picker",""],["id","EditNoteModal_parent"],["id","EditNoteModal","tabindex","-1","aria-hidden","true","data-bs-backdrop","static","data-bs-keyboard","false",1,"modal","fade"],["role","document",1,"modal-dialog","customer-mat-Modal","modal-dialog-centered","modal-dialog-scrollable",2,"width","75vw","max-width","100dvw"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close",3,"click"],["src","assets/closeModel.svg","alt","Close",2,"width","20px","height","20px","display","block"],[1,"modal-body"],[3,"formGroup"],[1,"row"],[1,"col-12","mb-2"],[1,"field-heading-parent"],[1,"field-heading"],[1,"p-3"],[1,"col-12"],["appearance","outline",1,"w-100","bg-white"],["matInput","","formControlName","title","placeholder","Titel der Notiz"],[1,"col-12","mb-3"],["matInput","","formControlName","description","rows","3","placeholder","Beschreibung der Notiz"],[1,"p-2"],[3,"change","checked"],[1,"d-flex","justify-content-end","gap-2"],["type","button",1,"btn","button-primary",3,"click"],[1,"col-12","col-md-6","col-xl-6"],["matInput","","formControlName","reminder_due_date","placeholder","Datum ausw\xE4hlen",3,"matDatepicker"],["matSuffix","",3,"for"]],template:function(e,n){if(e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"h5",6),r(6,"Notiz bearbeiten"),t(),i(7,"button",7),_("click",function(){return n.closeEditNoteModal()}),p(8,"img",8),t()(),i(9,"div",9)(10,"form",10)(11,"div",11)(12,"div",12)(13,"div",13)(14,"h6",14),r(15," Bitte geben Sie den Titel der Notiz ein. "),t(),i(16,"div",15)(17,"div",11)(18,"div",16)(19,"mat-form-field",17)(20,"mat-label"),r(21,"Titel"),t(),p(22,"input",18),t(),f(23,Wr,2,1,"mat-error"),t()()()()(),i(24,"div",19)(25,"div",13)(26,"h6",14),r(27," Bitte geben Sie eine Beschreibung der Notiz ein. "),t(),i(28,"div",15)(29,"div",11)(30,"div",16)(31,"mat-form-field",17),p(32,"textarea",20),t(),f(33,Zr,2,1,"mat-error"),t()()()()(),i(34,"div",19)(35,"div",13)(36,"h6",14),r(37," Bitte legen Sie fest, ob die Notiz im Kalender angezeigt werden soll. "),t(),i(38,"div",21)(39,"mat-slide-toggle",22),_("change",function(s){let h;
27return(h=n.editNoteForm.get("type"))==null?null:h.setValue(s.checked?"1":"0")}),r(40),t()()()(),f(41,Qr,15,3,"div",19),t(),i(42,"div",11)(43,"div",12)(44,"div",23)(45,"button",24),_("click",function(){return n.editNote()}),r(46,"Speichern"),t()()()()()()()()()()),e&2){let o,s,h,E,w;d(10),m("formGroup",n.editNoteForm),d(13),x((o=n.editNoteForm.get("title"))!=null&&o.invalid&&((o=n.editNoteForm.get("title"))!=null&&o.dirty||(o=n.editNoteForm.get("title"))!=null&&o.touched)?23:-1),d(10),x((s=n.editNoteForm.get("description"))!=null&&s.invalid&&((s=n.editNoteForm.get("description"))!=null&&s.dirty||(s=n.editNoteForm.get("description"))!=null&&s.touched)?33:-1),d(6),m("checked",((h=n.editNoteForm.get("type"))==null?null:h.value)==="1"),d(),M(" ",((E=n.editNoteForm.get("type"))==null?null:E.value)==="1"?"Ja":"Nein"," "),d(),x(((w=n.editNoteForm.get("type"))==null?null:w.value)==="1"?41:-1)}},dependencies:[J,te,ye,Ne,ke,ne,Je,Ie,Fe,Te,ve,ge,pe,_e,ue,fe,he],encapsulation:2})}};var Xr=(l,a)=>a._id??a.id??l;function Yr(l,a){if(l&1){let e=b();i(0,"tr")(1,"td",25),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),r(6),t(),i(7,"td"),r(8),t(),i(9,"td",25)(10,"button",26),_("click",function(){let o=u(e).$implicit,s=c();return g(s.editNote(o))}),r(11,"\xF6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.$index,o=c();d(2),y((o.currentPage()-1)*o.pageSize()+n+1),d(2),y((e==null?null:e.title)??"-"),d(2),y((e==null?null:e.description)??"-"),d(2),y(o.formatNoteDate(e))}}function eo(l,a){l&1&&(i(0,"tr")(1,"td",27),p(2,"app-no-data",28),t()())}function to(l,a){if(l&1){let e=b();i(0,"div",22)(1,"ul",29)(2,"li",30)(3,"a",31),_("click",function(o){u(e);let s=c();return s.currentPage()>1&&s.goToPage(1),g(o.preventDefault())}),r(4,"<<"),t()(),i(5,"li",30)(6,"a",31),_("click",function(o){u(e);let s=c();return s.currentPage()>1&&s.goToPage(s.currentPage()-1),g(o.preventDefault())}),r(7,"<"),t()(),i(8,"li",32)(9,"span",33),r(10),t()(),i(11,"li",30)(12,"a",31),_("click",function(o){u(e);let s=c();return s.currentPage()<s.totalPages()&&s.goToPage(s.currentPage()+1),g(o.preventDefault())}),r(13,">"),t()(),i(14,"li",30)(15,"a",31),_("click",function(o){u(e);let s=c();return s.currentPage()<s.totalPages()&&s.goToPage(s.totalPages()),g(o.preventDefault())}),r(16,">>"),t()()()()}if(l&2){let e=c();d(2),ce("disabled",e.currentPage()===1),d(3),ce("disabled",e.currentPage()===1),d(5),y(e.currentPage()),d(),ce("disabled",e.currentPage()===e.totalPages()),d(3),ce("disabled",e.currentPage()===e.totalPages())}}var Nt=class l{constructor(){this.supplierId=ie("");this.companyId=ie("");this.isHovering=!1;this.noteList=U([]);this.totalItems=U(0);this.currentPage=U(1);this.pageSize=U(10);this.totalPages=$e(()=>{let a=this.pageSize(),e=this.totalItems();return a>0&&Math.ceil(e/a)||1});this.search=U("");this.searchSubject=new Ue;this.sweetAlertService=O(ee);this.supplierServices=O(Oe);this.destroyRef=O(Bt)}ngOnInit(){this.searchSubject.pipe(nt(300),rn(this.destroyRef)).subscribe(a=>{this.search.set(a),this.currentPage.set(1),this.refreshNoteList()}),this.refreshNoteList()}searchNote(a){this.searchSubject.next(a.target.value)}addNewNotice(){this.addNoteComponent.openAddNoteModal()}editNote(a){this.editNoteComponent.openEditNoteModal(a)}updateNotice(a){let{note:e,payload:n}=a,o=this.supplierId();if(!o||!n?._id)return;if(!this.hasNoteChanges(e,n)){this.sweetAlertService.info("Keine \xC4nderungen","Es wurden keine \xC4nderungen vorgenommen.","OK").subscribe(()=>{});return}let E=n,{_id:s}=E,h=Rt(E,["_id"]);$("#loaderouterid").css("display","flex"),this.supplierServices.updateSupplierNote(o,s,h).subscribe({next:()=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.success("Erfolgreich!","Die Notiz wurde erfolgreich aktualisiert.","OK").subscribe(()=>{this.editNoteComponent.closeAfterSuccessfulUpdate(),this.refreshNoteList()})},error:w=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.error("Fehler!",w?.error?.message??"Beim Aktualisieren der Notiz ist ein Fehler aufgetreten.","OK").subscribe(()=>{})}})}hasNoteChanges(a,e){let n=h=>h===1||h==="1"||h===!0?"1":"0",o=h=>h==null||h===""?"":h instanceof Date?h.toISOString():String(h),s=this.getNoteReminderForCompare(a);return(a?.title??"")!==(e?.title??"")||(a?.description??"")!==(e?.description??"")||n(a?.type)!==n(e?.type)||o(s)!==o(e?.reminder_due_date)}getNoteReminderForCompare(a){let e=a?.type;return e===1||e==="1"||e===!0?a?.reminder_due_date??a?.reminderDueDate??a?.due_date??a?.calendar_date??"":""}addNotice(a){let e=this.supplierId(),n=this.companyId();if(!e||!n)return;let o=X(Z({},a),{company_id:n});console.log("Add Notice Payload",o),$("#loaderouterid").css("display","flex"),this.supplierServices.addSupplierNote(e,o).subscribe({next:()=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.success("Erfolgreich!","Die Notiz wurde erfolgreich hinzugef\xFCgt.","OK").subscribe(()=>{this.addNoteComponent.resetAfterSuccessfulSubmit(),this.refreshNoteList()})},error:s=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.error("Fehler!",s?.error?.message??"Beim Hinzuf\xFCgen der Notiz ist ein Fehler aufgetreten.","O
27K").subscribe(()=>{})}})}refreshNoteList(){let a=this.supplierId(),e=this.companyId();if(console.log("Supplier ID",a),console.log("Company ID",e),!a||!e){this.noteList.set([]),this.totalItems.set(0);return}$("#loaderouterid").css("display","flex");let n=this.search().trim()||void 0;this.supplierServices.getSupplierNotes(a,this.currentPage(),this.pageSize(),n).subscribe({next:o=>{$("#loaderouterid").css("display","none");let s=o?.data,h=Array.isArray(s)?s:[];this.noteList.set(h),console.log("Note List",h);let E=o?.pagination?.total??o?.data?.total??o?.data?.total_count??o?.total??h.length;this.totalItems.set(typeof E=="number"?E:Number(E)||h.length),console.log("Total Items",this.totalItems())},error:()=>{$("#loaderouterid").css("display","none"),this.noteList.set([]),this.totalItems.set(0)}})}goToPage(a){let e=this.totalPages(),n=Math.max(1,Math.min(a,e));n!==this.currentPage()&&(this.currentPage.set(n),this.refreshNoteList())}formatNoteDate(a){let e=a?.created_at??a?.createdAt??a?.created_date??a?.date;if(!e)return"-";let n=new Date(e);if(Number.isNaN(n.getTime()))return"-";let o=String(n.getDate()).padStart(2,"0"),s=String(n.getMonth()+1).padStart(2,"0"),h=n.getFullYear();return`${o}.${s}.${h}`}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-note"]],viewQuery:function(e,n){if(e&1&&Ve(At,5)(Vt,5),e&2){let o;le(o=de())&&(n.addNoteComponent=o.first),le(o=de())&&(n.editNoteComponent=o.first)}},inputs:{supplierId:[1,"supplierId"],companyId:[1,"companyId"]},decls:39,vars:6,consts:[[1,"notice-container"],[1,"row"],[1,"col-12"],[1,"notice-table"],[1,"customTable-block"],[1,"table-header","d-block"],[1,"col-12","col-md-6","col-xl-4"],["appearance","outline",1,"w-100"],["matInput","","type","text",1,"search",3,"input","placeholder"],[1,"btn","button-primary","py-3",3,"mouseover","mouseout","click"],[1,"btn-content"],["alt","",3,"src"],[1,"btn-text"],[1,"col-12","col-md-6","mt-4","mt-md-0","offset-md-6","offset-xl-0","col-xl-4","text-end"],[1,"table-body"],[1,"customTable"],[1,"table"],[2,"width","5%","min-width","50px","text-align","center"],[2,"width","25%","min-width","200px"],[2,"width","30%","min-width","250px"],[2,"width","20%","min-width","150px"],[1,"text-center",2,"width","20%","min-width","160px"],[1,"d-flex","justify-content-end","pagination-main","mt-3","p-2","editing-something"],[3,"noteSubmit","companyId"],[3,"noteUpdate","companyId"],[1,"text-center"],["type","button",1,"btn","button-primary",3,"click"],["colspan","5",1,"text-center","py-4","text-muted"],["message"," Keine Notizen vorhanden."],[1,"pagination","m-0","pagerAction"],[1,"page-item"],["href","javascript:void(0)",1,"page-link",3,"click"],[1,"page-item","active"],[1,"page-link"]],template:function(e,n){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",1)(7,"div",6)(8,"mat-form-field",7)(9,"input",8),_("input",function(s){return n.searchNote(s)}),t()()(),i(10,"div",6)(11,"button",9),_("mouseover",function(){return n.isHovering=!0})("mouseout",function(){return n.isHovering=!1})("click",function(){return n.addNewNotice()}),i(12,"span",10),p(13,"img",11),i(14,"span",12),r(15," Notiz hinzuf\xFCgen "),t()()()(),p(16,"div",13),t()(),i(17,"div",14)(18,"div",15)(19,"table",16)(20,"thead")(21,"tr")(22,"th",17),r(23,"#"),t(),i(24,"th",18),r(25,"Titelname"),t(),i(26,"th",19),r(27,"Beschreibung"),t(),i(28,"th",20),r(29,"Erstellungsdatum"),t(),i(30,"th",21),r(31,"Interaktion"),t()()(),i(32,"tbody"),re(33,Yr,12,4,"tr",null,Xr,!1,eo,3,0,"tr"),t()(),f(36,to,17,9,"div",22),t()()()()()()(),i(37,"app-add-note",23),_("noteSubmit",function(s){return n.addNotice(s)}),t(),i(38,"app-edit-note",24),_("noteUpdate",function(s){return n.updateNotice(s)}),t()),e&2&&(d(9),m("placeholder","z.B. Titelname oder Beschreibung"),d(4),m("src",n.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j),d(20),oe(n.noteList()),d(3),x(n.totalItems()>0?36:-1),d(),m("companyId",n.companyId()),d(),m("companyId",n.companyId()))},dependencies:[J,te,ne,qe,At,Vt],styles:[".notice-container[_ngcontent-%COMP%], .notice-table[_ngcontent-%COMP%], .customTable-block[_ngcontent-%COMP%]{width:100%;max-width:100%;overflow-x:hidden}.table-body[_ngcontent-%COMP%]{width:100%;overflow-x:auto;overflow-y:hidden}.customTable[_ngcontent-%COMP%]{width:100%;min-width:100%}.table[_ngcontent-%COMP%]{width:100%;table-layout:auto;margin-bottom:0}.btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.btn-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:16px;width:16px}.btn-text[_ngcontent-%COMP%]{white-space:nowrap}"]})}};function io(l,a){l&1&&(i(0,"div",15)(1,"h6",16),r(2,"Unternehmendetails"),t()())}function ao(l,a){l&1&&(i(0,"div",15)(1,"h6",16),r(2,"Vertretung & Berechtigte"),t()())}function ro(l,a){l&1&&(i(0,"div",15)(1,"h6",16),r(2,"Dokumente"),t()())}function oo(l,a){l&1&&(i(0,"div",15)(1,"h6",16),r(2,"Notizen"),t()())}function lo(l,a){l&1&&(i(0,"div",15)(1,"h6",16),r(2,"Kommunikation"),t()())}var zt=class l{constructor(){this.supplierId=U("");this.companyId=ie("");this.supplierDetails=U({});this.supplierService=O(Oe);this.sweetAlertService=O(ee)}openSupplierEditModal(){let a=this.supplierId();console.log("Open Edit Supplier Modal",a),a&&a.trim()?($("#loaderouterid").css("display","flex"),this.supplierService.getSupplierDetails(a).subscribe({next:e=>{$("#loaderouterid").css("display","none");let n=e?.data?._doc??e?.data??e??{};console.log("Supplier Details",n),this.supplierDetails.set(n),this.companyDetails.companyDetails.set(e.data.company_details??{}),this.legalRepresentatives?.loadData(n.legal_representatives??{}),this.showModal()},error:e=>{$("#loaderouterid").css("display","none"),console.log("Error Getting Supplier Details",e),this.supplierDetails.set({}),this.showModal()}})):($("#loaderouterid").css("display","none"),this.showModal())}open_modal(a){let e=$("#"+a);e.appendTo("body"),e.modal({backdrop:"static",keyboard:!1,show:!0})}showModal(){this.open_modal("EditSupplierModal")}onEditSupplierTabChange(a){a.index===3&&setTimeout(()=>this.noteComponent.refreshNoteList(),0)}closeEditSupplierModal(){$("#EditSupplierModal").modal("hide")}onLegalRepresentativeSaveRequested(a){let e=this.supplierId();$("#loaderouterid").css("display","flex"),this.supplierService.updateSupplierLegalRepresentatives(e,a.payload).subscribe({next:()=>{$("#loaderouterid").css("display","none"),console.log("Legal Representative Save Success",a),this.sweetAlertService.success("Erfolgreich","Der gesetzliche Vertreter wurde erfolgreich aktualisiert.","OK").subscribe(()=>{this.legalRepresentatives?.onSaveSuccess()})},error:n=>{$("#loaderouterid").css("display","none"),console.log("Legal Representative Save Error",n),this.sweetAlertService.error("Fehler",n?.error?.message??"Beim Aktualisieren des gesetzlichen Vertreters ist ein Fehler aufgetreten.","O
27K").subscribe()}})}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-edit-supplier"]],viewQuery:function(e,n){if(e&1&&Ve(Tt,5)(Pt,5)(Nt,5),e&2){let o;le(o=de())&&(n.companyDetails=o.first),le(o=de())&&(n.legalRepresentatives=o.first),le(o=de())&&(n.noteComponent=o.first)}},inputs:{companyId:[1,"companyId"]},decls:26,vars:2,consts:[["id","EditSupplierModal","tabindex","-1",1,"modal","fade"],["role","document",1,"modal-dialog",2,"width","80dvw","max-width","95%"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button",1,"btn-close",3,"click"],["src","assets/closeModel.svg","alt","Close",2,"width","20px","height","20px","display","block"],[1,"modal-body"],[1,"table-min-height"],[1,"full-tabs"],["mat-stretch-tabs","false","mat-align-tabs","start",1,"tabs",3,"selectedTabChange"],[1,"new-item"],["matTabLabel",""],[3,"saveRequested"],[3,"companyId","supplierId"],[1,"d-flex","align-items-center","p-1"],[1,"mb-0"]],template:function(e,n){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),r(5,"Lieferant bearbeiten"),t(),i(6,"button",5),_("click",function(){return n.closeEditSupplierModal()}),p(7,"img",6),t()(),i(8,"div",7)(9,"div",8)(10,"div",9)(11,"mat-tab-group",10),_("selectedTabChange",function(s){return n.onEditSupplierTabChange(s)}),i(12,"mat-tab",11),v(13,io,3,0,"ng-template",12),p(14,"app-company-details"),t(),i(15,"mat-tab",11),v(16,ao,3,0,"ng-template",12),i(17,"app-legal-representatives",13),_("saveRequested",function(s){return n.onLegalRepresentativeSaveRequested(s)}),t()(),i(18,"mat-tab",11),v(19,ro,3,0,"ng-template",12),p(20,"app-documents"),t(),i(21,"mat-tab",11),v(22,oo,3,0,"ng-template",12),p(23,"app-note",14),t(),i(24,"mat-tab",11),v(25,lo,3,0,"ng-template",12),t()()()()()()()()),e&2&&(d(23),m("companyId",n.companyId())("supplierId",n.supplierId()))},dependencies:[J,li,Xt,Yt,Tt,Pt,sn,Nt],styles:[`.customer-mat-Modal{width:80dvw;height:auto}#EditSupplierModal .mat-mdc-tab-header{border-bottom:none!important}#EditSupplierModal .mat-mdc-tab-header:after{display:none!important}#EditSupplierModal .mat-mdc-tab .mdc-tab-indicator__content--underline,#EditSupplierModal .mat-mdc-ink-bar{display:none!important}#EditSupplierModal .mat-mdc-tab-body{min-height:auto!important}#EditSupplierModal .full-tabs .mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-label-container{display:flex;overflow:inherit;position:relative;flex-shrink:0;background:#e7f3fe!important;box-shadow:5px 3px 20px 1px #262d3424;border-radius:15px;padding:10px;margin-top:0;color:#fff}#EditSupplierModal .full-tabs .mat-mdc-tab-list .mat-mdc-tab-labels{display:flex!important;justify-content:space-around!important}#EditSupplierModal .full-tabs .mat-mdc-tab{border-radius:10px;transition:all .3s ease}#EditSupplierModal .full-tabs .mat-mdc-tab .mdc-tab__text-label{color:#000;display:inline-flex;align-items:center}#EditSupplierModal .full-tabs .mat-mdc-tab.mdc-tab--active{background:#fff;border-radius:10px}#EditSupplierModal .full-tabs .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:#000}#EditSupplierModal .full-tabs .mat-mdc-tab:hover .mdc-tab__text-label{color:#000000b3}#EditSupplierModal .full-tabs .mat-mdc-tab .mdc-tab__ripple:before{background-color:transparent!important}#EditSupplierModal .full-tabs .mat-mdc-tab img{filter:brightness(9);transition:.2s}#EditSupplierModal .full-tabs .mat-mdc-tab.mdc-tab--active img{filter:brightness(1)!important}#EditSupplierModal .full-tabs .mat-mdc-tab:hover img{filter:brightness(0)}#EditSupplierModal .full-tabs .mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;background:#fff;padding:10px;border-radius:10px}#EditSupplierModal .full-tabs .mat-mdc-tab-body-content{width:100%}#EditSupplierModal .mat-mdc-tab-labels{border-bottom:none!important}.mat-mdc-tab-group .mat-mdc-tab.mdc-tab--active{background-color:#fff;border-radius:8px!important}.table-min-height{height:100%;min-height:auto} 28`],encapsulation:2})}};var mo=(l,a)=>a._id??a.id??l;function so(l,a){if(l&1&&p(0,"img",15),l&2){let e=c().$implicit;m("src",(e==null?null:e.company_logo_url)??(e==null?null:e.logo_url)??(e==null||e.company_details==null?null:e.company_details.company_logo),j)}}function co(l,a){l&1&&p(0,"img",16)}function po(l,a){l&1&&p(0,"i",17)}function _o(l,a){l&1&&p(0,"i",18)}function uo(l,a){if(l&1){let e=b();i(0,"button",27),_("click",function(){u(e);let o=c().$implicit,s=c();return g(s.deactivateSupplier(o))}),r(1," Deaktivieren "),t()}}function go(l,a){if(l&1){let e=b();i(0,"button",28),_("click",function(){u(e);let o=c().$implicit,s=c();return g(s.activateSupplier(o))}),r(1," Aktivieren "),t()}}function ho(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td")(6,"div",14),f(7,so,1,1,"img",15)(8,co,1,0,"img",16),t()(),i(9,"td"),r(10),t(),i(11,"td"),r(12),t(),i(13,"td"),f(14,po,1,0,"i",17)(15,_o,1,0,"i",18),t(),i(16,"td",19)(17,"div",20)(18,"button",21),_("click",function(){let o=u(e).$implicit,s=c();return g(s.openEditSupplierModal(o))}),r(19," \xF6ffnen "),t(),i(20,"button",22),p(21,"i",23),t()(),i(22,"mat-menu",24,0),f(24,uo,2,0,"button",25),f(25,go,2,0,"button",26),t()()()}if(l&2){let e=a.$implicit,n=a.$index,o=G(23),s=c();d(2),M(" ",(s.currentPage-1)*s.pageSize+n+1),d(2),y((e==null?null:e.company_name)??(e==null||e.company_details==null?null:e.company_details.company_name)??"-"),d(3),x((e==null?null:e.company_logo_url)??(e==null?null:e.logo_url)??(e==null||e.company_details==null?null:e.company_details.company_logo)?7:8),d(3),y(s.getContactPerson(e)),d(2),y((e==null?null:e.phone)??(e==null||e.company_details==null?null:e.company_details.phone)??"-"),d(2),x(s.getSupplierStatus(e)=="1"?14:s.getSupplierStatus(e)=="0"?15:-1),d(6),m("matMenuTriggerFor",o),d(4),x(s.getSupplierStatus(e)=="1"?24:-1),d(),x(s.getSupplierStatus(e)=="0"?25:-1)}}function fo(l,a){l&1&&(i(0,"tr")(1,"td",29),p(2,"app-no-data",30),t()())}function xo(l,a){if(l&1){let e=b();i(0,"div",12)(1,"ul",31)(2,"li",32)(3,"a",33),_("click",function(o){u(e);let s=c();return s.currentPage>1&&s.goToPage(1),g(o.preventDefault())}),r(4,"<<"),t()(),i(5,"li",32)(6,"a",33),_("click",function(o){u(e);let s=c();return s.currentPage>1&&s.goToPage(s.currentPage-1),g(o.preventDefault())}),r(7,"<"),t()(),i(8,"li",34)(9,"span",35),r(10),t()(),i(11,"li",32)(12,"a",33),_("click",function(o){u(e);let s=c();return s.currentPage<s.totalPages&&s.goToPage(s.currentPage+1),g(o.preventDefault())}),r(13,">"),t()(),i(14,"li",32)(15,"a",33),_("click",function(o){u(e);let s=c();return s.currentPage<s.totalPages&&s.goToPage(s.totalPages),g(o.preventDefault())}),r(16,">>"),t()()()()}if(l&2){let e=c();d(2),ce("disabled",e.currentPage===1),d(3),ce("disabled",e.currentPage===1),d(5),y(e.currentPage),d(),ce("disabled",e.currentPage===e.totalPages),d(3),ce("disabled",e.currentPage===e.totalPages)}}var Ht=class l{constructor(){this.supplierList=U([]);this.mainCompanyId=ie(" ");this.searchTerm=ie(" ");this.supplierService=O(Oe);this.pageSize=10;this.currentPage=1;this.totalItems=0;this.startRecord=0;this.endRecord=0;it(()=>{let a=this.mainCompanyId();console.log("companyid came here",a),a&&(this.getSupplierList(),this.supplierService.refresh$.subscribe(()=>
28{this.getSupplierList()}))})}getSupplierStatus(a){return a?.company_details?.status??a?.status??"1"}getContactPerson(a){let e=a?.legal_representatives?.company_ceos;if(Array.isArray(e)&&e.length>0){let n=e[0];return[n.firstname,n.lastname].filter(Boolean).join(" ")||"-"}return a?.contact_person??a?.contact_name??"-"}activateSupplier(a){this.changeSupplierStatus(a)}deactivateSupplier(a){this.changeSupplierStatus(a)}changeSupplierStatus(a){let n=this.getSupplierStatus(a)==="1"?"0":"1";$("#loaderouterid").css("display","flex"),this.supplierService.changeSupplierStatus(a._id,n).subscribe({next:()=>{console.log("Supplier Status Changed Successfully"),$("#loaderouterid").css("display","none"),this.supplierService.triggerRefresh()},error:o=>{$("#loaderouterid").css("display","none"),console.log("Error Changing Supplier Status",o)}})}openEditSupplierModal(a){console.log("open Edit supplier Modal",a),a&&this.editSupplierComponent&&this.editSupplierComponent.supplierId.set(a._id??a.id??""),this.editSupplierComponent?.openSupplierEditModal()}getSupplierList(){let a=this.mainCompanyId(),e=this.searchTerm().trim();console.log("company id came here",a),$("#loaderouterid").css("display","flex"),this.supplierService.getSupplierList(a,this.currentPage,this.pageSize,e).subscribe({next:n=>{$("#loaderouterid").css("display","none"),this.supplierList.set(n.data),console.log("supplier list came here",n.data),this.totalItems=n.pagination?.total||0,this.pageSize=n.pagination?.limit||this.pageSize,this.currentPage=n.pagination?.page||this.currentPage},error:n=>{$("#loaderouterid").css("display","none"),console.log("Error Getting Supplier List",n)}})}get totalPages(){return this.pageSize>0&&Math.ceil(this.totalItems/this.pageSize)||1}goToPage(a){let e=Math.max(1,Math.min(a,this.totalPages));e!==this.currentPage&&(this.currentPage=e,this.getSupplierList())}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-supplier-managment"]],viewQuery:function(e,n){if(e&1&&Ve(zt,5),e&2){let o;le(o=de())&&(n.editSupplierComponent=o.first)}},inputs:{mainCompanyId:[1,"mainCompanyId"],searchTerm:[1,"searchTerm"]},decls:27,vars:3,consts:[["supplierMenu","matMenu"],[1,"row","m-0"],[1,"col-sm-12","p-0","mt-2"],[1,"card","assigments-list"],["id","cardbodyid",1,"card-body"],[1,"table","table-header-custom"],[2,"width","5%","min-width","40px"],[2,"width","20%","min-width","200px"],[2,"width","15%","min-width","120px"],[2,"width","15%","min-width","150px"],[2,"width","15%","min-width","130px"],[1,"text-center",2,"width","15%","min-width","160px"],[1,"d-flex","justify-content-end","pagination-main","mt-3","editing-something"],[3,"companyId"],[1,"logo"],["alt","logo",3,"src"],["src","assets/logo.png","width","50","height","50",2,"object-fit","contain"],["aria-hidden","true",1,"fa","fa-circle","text-success"],["aria-hidden","true",1,"fa","fa-circle","text-danger"],[1,"action-cell"],[1,"d-flex","align-items-center","gap-1"],[1,"btn","button-primary",3,"click"],["mat-button","",1,"menu-trigger-btn",3,"matMenuTriggerFor"],[1,"fa","fa-bars"],[1,"supplier-action-menu"],["mat-menu-item","",1,"btn-danger"],["mat-menu-item","",1,"btn-success"],["mat-menu-item","",1,"btn-danger",3,"click"],["mat-menu-item","",1,"btn-success",3,"click"],["colspan","6",1,"text-center","py-4","text-muted"],["message","Keine Lieferanten gefunden."],[1,"pagination","m-0","pagerAction"],[1,"page-item"],["href","javascript:void(0)",1,"page-link",3,"click"],[1,"page-item","active"],[1,"page-link"]],template:function(e,n){e&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"table",5)(5,"thead")(6,"tr")(7,"th",6),r(8,"#"),t(),i(9,"th",7),r(10,"Lieferantenname"),t(),i(11,"th",8),r(12,"
28Logo"),t(),i(13,"th",9),r(14,"Kontaktperson"),t(),i(15,"th",9),r(16,"Telefon"),t(),i(17,"th",10),r(18,"Status"),t(),i(19,"th",11),r(20,"Aktion"),t()()(),i(21,"tbody"),re(22,ho,26,9,"tr",null,mo,!1,fo,3,0,"tr"),t()(),f(25,xo,17,9,"div",12),t()()()(),p(26,"app-edit-supplier",13)),e&2&&(d(22),oe(n.supplierList()),d(3),x(n.totalItems>0?25:-1),d(),m("companyId",n.mainCompanyId()))},dependencies:[qe,J,Jt,Zt,Qt,ot,zt],styles:[".action-cell[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px}.menu-trigger-btn[_ngcontent-%COMP%]{min-width:auto!important;padding:4px 6px!important}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none!important;vertical-align:middle!important}.table-header-custom[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#75787d;padding:10px 8px;white-space:nowrap} .supplier-action-menu .mat-mdc-menu-content{padding:8px 12px!important}.supplier-action-menu[_ngcontent-%COMP%]{min-width:160px!important;max-width:280px!important}.supplier-action-menu[_ngcontent-%COMP%] .mat-mdc-menu-content[_ngcontent-%COMP%]{padding:4px 0}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:clamp(30px,5vw,50px);height:auto}"]})}};var Ii=Dt(ui());var vo=["stepper"];function yo(l,a){l&1&&(i(0,"mat-icon"),r(1,"check"),t())}function bo(l,a){l&1&&r(0," Firmenname ist erforderlich. ")}function Co(l,a){l&1&&r(0," Firmenname darf nicht nur aus Sonderzeichen bestehen. ")}function So(l,a){if(l&1&&(i(0,"mat-error"),f(1,bo,1,0)(2,Co,1,0),t()),l&2){let e,n=c();d(),x((e=n.supplierFormGroup.get("company_name"))!=null&&e.hasError("required")&&((e=n.supplierFormGroup.get("company_name"))!=null&&e.touched||(e=n.supplierFormGroup.get("company_name"))!=null&&e.dirty)?1:(e=n.supplierFormGroup.get("company_name"))!=null&&e.hasError("specialCharactersOnly")?2:-1)}}function Eo(l,a){l&1&&(i(0,"mat-option",32),r(1," Keine Unternehmensformen verf\xFCgbar. "),t())}function wo(l,a){if(l&1&&(i(0,"mat-option",33),r(1),t()),l&2){let e=a.$implicit;m("value",e.type_name),d(),M(" ",e.type_name," ")}}function Mo(l,a){l&1&&(i(0,"mat-error"),r(1," Unternehmensform ist erforderlich. "),t())}function ko(l,a){l&1&&(i(0,"mat-error"),r(1,"Registerort darf nicht nur aus Sonderzeichen bestehen."),t())}function Io(l,a){l&1&&(i(0,"mat-error"),r(1,"Registernummer darf nicht nur aus Sonderzeichen bestehen."),t())}function Fo(l,a){l&1&&(i(0,"mat-error"),r(1,"Finanzamt darf nicht nur aus Sonderzeichen bestehen."),t())}function To(l,a){l&1&&(i(0,"mat-error"),r(1,"USt-IdNr darf nicht nur aus Sonderzeichen bestehen."),t())}function Po(l,a){l&1&&(i(0,"mat-error"),r(1,"Steuernummer darf nicht nur aus Sonderzeichen bestehen."),t())}function Ao(l,a){l&1&&(i(0,"mat-error"),r(1,"Stra\xDFe ist erforderlich"),t())}function Vo(l,a){l&1&&(i(0,"mat-error"),r(1,"Haus Nr ist erforderlich"),t())}function No(l,a){l&1&&r(0," PLZ ist erforderlich. ")}function zo(l,a){l&1&&r(0," PLZ darf nur Ziffern enthalten. ")}function Ho(l,a){l&1&&r(0," PLZ darf maximal 10 Zeichen haben. ")}function qo(l,a){if(l&1&&(i(0,"mat-error"),f(1,No,1,0)(2,zo,1,0)(3,Ho,1,0),t()),l&2){let e,n=c();d(),x((e=n.supplierFormGroup.get("postCode"))!=null&&e.hasError("required")?1:(e=n.supplierFormGroup.get("postCode"))!=null&&e.hasError("pattern")?2:(e=n.supplierFormGroup.get("postCode"))!=null&&e.hasError("maxlength")?3:-1)}}function Ro(l,a){l&1&&(i(0,"mat-error"),r(1,"Stadt ist erforderlich."),t())}function Do(l,a){l&1&&(i(0,"mat-error"),r(1,"Bundesland ist erforderlich"),t())}function Oo(l,a){l&1&&(i(0,"mat-error"),r(1,"Land ist erforderlich"),t())}function Bo(l,a){l&1&&r(0," E-Mail ist erforderlich. ")}function $o(l,a){l&1&&r(0," Bitte geben Sie eine g\xFCltige E-Mail-Adresse ein. ")}function Go(l,a){if(l&1&&(i(0,"mat-error"),f(1,Bo,1,0)(2,$o,1,0),t()),l&2){let e,n=c();d(),x((e=n.supplierFormGroup.get("email"))!=null&&e.hasError("required")&&((e=n.supplierFormGroup.get("email"))!=null&&e.touched||(e=n.supplierFormGroup.get("email"))!=null&&e.dirty)?1:(e=n.supplierFormGroup.get("email"))!=null&&e.hasError("customEmail")?2:-1)}}function Lo(l,a){l&1&&r(0," Telefonnummer ist erforderlich. ")}function Uo(l,a){l&1&&r(0," Bitte geben Sie eine g\xFCltige Telefonnummer ein (z.B. +491234567890). ")}function jo(l,a){if(l&1&&(i(0,"mat-error"),f(1,Lo,1,0)(2,Uo,1,0),t()),l&2){let e,n=c();d(),x((e=n.supplierFormGroup.get("phone"))!=null&&e.hasError("required")&&((e=n.supplierFormGroup.get("phone"))!=null&&e.touched||(e=n.supplierFormGroup.get("phone"))!=null&&e.dirty)?1:(e=n.supplierFormGroup.get("phone"))!=null&&e.hasError("pattern")?2:-1)}}function Ko(l,a){if(l&1&&p(0,"img",119),l&2){let e=c(2);m("src",e.base64String()||e.companyLogoPreviewUrl()||"assets/no-photo.png",j)}}function Wo(l,a){l&1&&p(0,"img",119),l&2&&m("src","assets/no-photo.png",j)}function Zo(l,a){if(l&1&&(i(0,"div",121)(1,"div",124)(2,"div",125),r(3),t()()()),l&2){let e=c(2);d(2),$n("width:"+e.progress.company_logo+"%"),Bn("aria-valuenow",e.progress.company_logo),d(),M("",e.progress.company_logo,"%")}}function Jo(l,a){if(l&1){let e=b();i(0,"div",64)(1,"div",111)(2,"div",112)(3,"div",111)(4,"div",113)(5,"button",114),_("click",function(){u(e);let o=c();return g(o.handleImageDelete())}),p(6,"i",115),t(),i(7,"button",116),_("click",function(){u(e);let o=c();return g(o.openPreviewModal())}),p(8,"i",117),t()(),i(9,"div",118),f(10,Ko,1,1,"img",119)(11,Wo,1,1,"img",119),t(),i(12,"div",120),f(13,Zo,4,4,"div",121),t(),i(14,"div",122)(15,"span",123),r(16,"Unternehmenslogo"),t()()()()()()}if(l&2){let e=c();d(5),m("disabled",!e.base64String()&&!e.companyLogoId()),d(2),m("disabled",!e.base64String()&&!e.companyLogoId()),d(3),x(e.base64String()||e.companyLogoId()?10:!e.base64String()&&!e.companyLogoId()&&e.progress.company_logo>-1&&e.progress.company_logo<100?11:-1),d(3),x(e.progress.company_logo>-1&&e.progress.company_logo<100?13:-1)}}function Qo(l,a){if(l&1&&r(0),l&2){let e=c().$index,n=c();M(" ",n.getCeoDisplayName(e)," ")}}function Xo(l,a){l&1&&r(0," Gesetzliche Vertreter ")}function Yo(l,a){l&1&&r(0," Bitte w\xE4hlen Sie eine Anrede. ")}function el(l,a){if(l&1&&(i(0,"div",135),f(1,Yo,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("title"))!=null&&e.hasError("required")?1:-1)}}function tl(l,a){l&1&&r(0," Bitte geben Sie den Vornamen ein. ")}function nl(l,a){if(l&1&&(i(0,"mat-error"),f(1,tl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("firstname"))!=null&&e.hasError("required")?1:-1)}}function il(l,a){l&1&&r(0," Bitte geben Sie den Nachnamen ein. ")}function al(l,a){if(l&1&&(i(0,"mat-error"),f(1,il,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("lastname"))!=null&&e.hasError("required")?1:-1)}}function rl(l,a){l&1&&r(0," Bitte geben Sie das Geburtsdatum an. ")}function ol(l,a){if(l&1&&(i(0,"mat-error"),f(1,rl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("birthdate"))!=null&&e.hasError("required")?1:-1)}}function ll(l,a){l&1&&r(0," Bitte geben Sie die Stra\xDFe ein. ")}function dl(l,a){if(l&1&&(i(0,"mat-error"),f(1,ll,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("street"))!=null&&e.hasError("required")?1:-1)}}function ml(l,a){l&1&&r(0," Bitte geben Sie die Hausnummer ein. ")}function sl(l,a){if(l&1&&(i(0,"mat-error"),f(1,ml,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("street_number"))!=null&&e.hasError("required")?1:-1)}}function cl(l,a){l&1&&r(0," Bitte geben Sie die PLZ ein. ")}function pl(l,a){if(l&1&&(i(0,"mat-error"),f(1,cl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("zip_code"))!=null&&e.hasError("required")?1:-1)}}function _l(l,a){l&1&&r(0," Bitte geben Sie die Stadt ein. ")}function ul(l,a){if(l&1&&(i(0,"mat-error"),f(1,_l,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("city"))!=null&&e.hasError("required")?1:-1)}}function gl(l,a){l&1&&r(0," Bitte geben Sie das Land ein. ")}function hl(l,a){if(l&1&&(i(0,"mat-error"),f(1,gl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("country"))!=null&&e.hasError("required")?1:-1)}}function fl(l,a){if(l&1){let e=b();i(0,"button",149),_("click",function(){u(e);let o=c(2).$index,s=c();return g(s.removeCeo(o))}),r(1," Entfernen "),t()}}function xl(l,a){if(l&1){let e=b();i(0,"button",79),_("click",function(){u(e);let o=c(2).$index,s=c();return g(s.toggleCeo(o))}),p(1,"i",150),r(2,"\xA0"),p(3,"i",151),t()}}function vl(l,a){if(l&1){let e=b();i(0,"div",26)(1,"div",129)(2,"h6",130),r(3,"Anrede:"),t(),i(4,"mat-radio-group",131)(5,"mat-radio-button",132),r(6,"Herr"),t(),i(7,"mat-radio-button",133),r(8,"Frau"),t(),i(9,"mat-radio-button",134),r(10,"Divers"),t()(),f(11,el,2,1,"div",135),t(),i(12,"div",120)(13,"mat-form-field",136)(14,"mat-label"),r(15,"Vorname"),t(),p(16,"input",137),f(17,nl,2,1,"mat-error"),t()(),i(18,"div",120)(19,"mat-form-field",136)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",138),f(23,al,2,1,"mat-error"),t()(),i(24,"div",120)(25,"mat-form-field",136)(26,"mat-label"),r(27,"Geburtsdatum"),t(),p(28,"input",139)(29,"mat-datepicker-toggle",140)(30,"mat-datepicker",null,5),f(32,ol,2,1,"mat-error"),t()(),i(33,"div",120)(34,"mat-form-field",136)(35,"mat-label"),r(36,"Stra\xDFe"),t(),i(37,"input",141,2),_("onAddressChange",function(o){u(e);let s=c().$index,h=c();return g(h.handleCeoAddressChange(s,o))}),t(),f(39,dl,2,1,"mat-error"),t()(),i(40,"div",142)(41,"mat-form-field",136)(42,"mat-label"),r(43,"Haus Nr."),t(),p(44,"input",143),f(45,sl,2,1,"mat-error"),t()(),i(46,"div",142)(47,"mat-form-field",136)(48,"mat-label"),r(49,"PLZ"),t(),p(50,"input",144),f(51,pl,2,1,"mat-error"),t()(),i(52,"div",120)(53,"mat-form-field",136)(54,"mat-label"),r(55,"Stadt"),t(),p(56,"input",145),f(57,ul,2,1,"mat-error"),t()(),i(58,"div",120)(59,"mat-form-field",136)(60,"mat-label"),r(61,"Land"),t(),p(62,"input",146),f(63,hl,2,1,"mat-error"),t()(),i(64,"div",142),f(65,fl,2,0,"button",147),t(),i(66,"div"),f(67,xl,4,0,"button",148),t()()}if(l&2){let e,n,o,s,h,E,w,I,F,C=G(31),A=c(),T=A.$implicit,Q=A.$index,se=c();
28d(11),x((e=T.get("title"))!=null&&e.invalid&&((e=T.get("title"))!=null&&e.dirty||(e=T.get("title"))!=null&&e.touched)?11:-1),d(6),x((n=T.get("firstname"))!=null&&n.invalid&&((n=T.get("firstname"))!=null&&n.dirty||(n=T.get("firstname"))!=null&&n.touched)?17:-1),d(6),x((o=T.get("lastname"))!=null&&o.invalid&&((o=T.get("lastname"))!=null&&o.dirty||(o=T.get("lastname"))!=null&&o.touched)?23:-1),d(5),m("matDatepicker",C),d(),m("for",C),d(3),x((s=T.get("birthdate"))!=null&&s.invalid&&((s=T.get("birthdate"))!=null&&s.dirty||(s=T.get("birthdate"))!=null&&s.touched)?32:-1),d(5),m("options",se.placesOptions),d(2),x((h=T.get("street"))!=null&&h.invalid&&((h=T.get("street"))!=null&&h.dirty||(h=T.get("street"))!=null&&h.touched)?39:-1),d(6),x((E=T.get("street_number"))!=null&&E.invalid&&((E=T.get("street_number"))!=null&&E.dirty||(E=T.get("street_number"))!=null&&E.touched)?45:-1),d(6),x((w=T.get("zip_code"))!=null&&w.invalid&&((w=T.get("zip_code"))!=null&&w.dirty||(w=T.get("zip_code"))!=null&&w.touched)?51:-1),d(6),x((I=T.get("city"))!=null&&I.invalid&&((I=T.get("city"))!=null&&I.dirty||(I=T.get("city"))!=null&&I.touched)?57:-1),d(6),x((F=T.get("country"))!=null&&F.invalid&&((F=T.get("country"))!=null&&F.dirty||(F=T.get("country"))!=null&&F.touched)?63:-1),d(2),x(Q!==0?65:-1),d(),Gn(Q===0?"col-sm-12 text-right":"col-sm-6 text-right"),d(),x(T.valid?67:-1)}}function yl(l,a){if(l&1){let e=b();i(0,"div",128)(1,"span"),r(2),t(),i(3,"button",74),_("click",function(){u(e);let o=c().$index,s=c();return g(s.toggleCeo(o))}),p(4,"i",152),r(5," Bearbeiten "),t()()}if(l&2){let e=c().$index,n=c();d(2),y(n.getCeoDisplayName(e))}}function bl(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",126),_("opened",function(){let o=u(e).$index,s=c();return g(s.onPanelOpened(o))}),i(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,Qo,1,1)(4,Xo,1,0),t()(),i(5,"div",127),f(6,vl,68,16,"div",26)(7,yl,6,1,"div",128),t()()}if(l&2){let e=a.$index,n=c();m("expanded",n.expandedPanelIndex()===e),d(3),x(n.getCeoDisplayName(e)?3:4),d(2),m("formGroupName",e),d(),x(n.opened().ceo[e]?7:6)}}function Cl(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",153)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),r(3,"Sonstige Bevollm\xE4chtigte"),t()()(),i(4,"div",154)(5,"button",74),_("click",function(){u(e);let o=c();return g(o.addAuthorizedPerson())}),p(6,"i",75),r(7,"\xA0 Hinzuf\xFCgen "),t()()}}function Sl(l,a){if(l&1&&r(0),l&2){let e=c().$index,n=c(2);M(" ",n.getAuthorizedDisplayName(e)," ")}}function El(l,a){l&1&&r(0," Sonstige Bevollm\xE4chtigte ")}function wl(l,a){l&1&&r(0," Bitte w\xE4hlen Sie eine Anrede. ")}function Ml(l,a){if(l&1&&(i(0,"div",135),f(1,wl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("title"))!=null&&e.hasError("required")?1:-1)}}function kl(l,a){l&1&&r(0," Bitte geben Sie den Vornamen ein. ")}function Il(l,a){if(l&1&&(i(0,"mat-error"),f(1,kl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("firstname"))!=null&&e.hasError("required")?1:-1)}}function Fl(l,a){l&1&&r(0," Bitte geben Sie den Nachnamen ein. ")}function Tl(l,a){if(l&1&&(i(0,"mat-error"),f(1,Fl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("lastname"))!=null&&e.hasError("required")?1:-1)}}function Pl(l,a){l&1&&r(0," Bitte geben Sie das Geburtsdatum an. ")}function Al(l,a){if(l&1&&(i(0,"mat-error"),f(1,Pl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("birthdate"))!=null&&e.hasError("required")?1:-1)}}function Vl(l,a){l&1&&r(0," Bitte geben Sie die Stra\xDFe ein. ")}function Nl(l,a){if(l&1&&(i(0,"mat-error"),f(1,Vl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("street"))!=null&&e.hasError("required")?1:-1)}}function zl(l,a){l&1&&r(0," Bitte geben Sie die Hausnummer ein. ")}function Hl(l,a){if(l&1&&(i(0,"mat-error"),f(1,zl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("street_number"))!=null&&e.hasError("required")?1:-1)}}function ql(l,a){l&1&&r(0," Bitte geben Sie die PLZ ein. ")}function Rl(l,a){if(l&1&&(i(0,"mat-error"),f(1,ql,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("zip_code"))!=null&&e.hasError("required")?1:-1)}}function Dl(l,a){l&1&&r(0," Bitte geben Sie die Stadt ein. ")}function Ol(l,a){if(l&1&&(i(0,"mat-error"),f(1,Dl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("city"))!=null&&e.hasError("required")?1:-1)}}function Bl(l,a){l&1&&r(0," Bitte geben Sie das Land ein. ")}function $l(l,a){if(l&1&&(i(0,"mat-error"),f(1,Bl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("country"))!=null&&e.hasError("required")?1:-1)}}function Gl(l,a){if(l&1){let e=b();i(0,"button",79),_("click",function(){u(e);let o=c(2).$index,s=c(2);return g(s.toggleEdit("authorized",o))}),p(1,"i",150),r(2,"\xA0"),p(3,"i",151),t()}}function Ll(l,a){if(l&1){let e=b();i(0,"div",26)(1,"div",129)(2,"h6",130),r(3,"Anrede:"),t(),i(4,"mat-radio-group",131)(5,"mat-radio-button",132),r(6,"Herr"),t(),i(7,"mat-radio-button",133),r(8,"Frau"),t(),i(9,"mat-radio-button",134),r(10,"Divers"),t()(),f(11,Ml,2,1,"div",135),t(),i(12,"div",120)(13,"mat-form-field",136)(14,"mat-label"),r(15,"Vorname"),t(),p(16,"input",137),f(17,Il,2,1,"mat-error"),t()(),i(18,"div",120)(19,"mat-form-field",136)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",138),f(23,Tl,2,1,"mat-error"),t()(),i(24,"div",120)(25,"mat-form-field",136)(26,"mat-label"),r(27,"Geburtsdatum"),t(),p(28,"input",139)(29,"mat-datepicker-toggle",140)(30,"mat-datepicker",null,6),f(32,Al,2,1,"mat-error"),t()(),i(33,"div",120)(34,"mat-form-field",136)(35,"mat-label"),r(36,"Stra\xDFe"),t(),i(37,"input",155,2),_("onAddressChange",function(o){u(e);let s=c().$index,h=c(2);return g(h.handleAuthorizedAddressChange(s,o))}),t(),f(39,Nl,2,1,"mat-error"),t()(),i(40,"div",142)(41,"mat-form-field",136)(42,"mat-label"),r(43,"Haus Nr."),t(),p(44,"input",143),f(45,Hl,2,1,"mat-error"),t()(),i(46,"div",142)(47,"mat-form-field",136)(48,"mat-label"),r(49,"PLZ"),t(),p(50,"input",144),f(51,Rl,2,1,"mat-error"),t()(),i(52,"div",120)(53,"mat-form-field",136)(54,"mat-label"),r(55,"Stadt"),t(),p(56,"input",145),f(57,Ol,2,1,"mat-error"),t()(),i(58,"div",120)(59,"mat-form-field",136)(60,"mat-label"),r(61,"Land"),t(),p(62,"input",146),f(63,$l,2,1,"mat-error"),t()(),i(64,"div",142)(65,"button",149),_("click",function(){u(e);let o=c().$index,s=c(2);return g(s.removeAuthorizedPerson(o))}),r(66," Entfernen "),t()(),i(67,"div",156),f(68,Gl,4,0,"button",148),t()()}if(l&2){let e,n,o,s,h,E,w,I,F,C=G(31),A=c().$implicit,T=c(2);
28d(11),x((e=A.get("title"))!=null&&e.invalid&&((e=A.get("title"))!=null&&e.dirty||(e=A.get("title"))!=null&&e.touched)?11:-1),d(6),x((n=A.get("firstname"))!=null&&n.invalid&&((n=A.get("firstname"))!=null&&n.dirty||(n=A.get("firstname"))!=null&&n.touched)?17:-1),d(6),x((o=A.get("lastname"))!=null&&o.invalid&&((o=A.get("lastname"))!=null&&o.dirty||(o=A.get("lastname"))!=null&&o.touched)?23:-1),d(5),m("matDatepicker",C),d(),m("for",C),d(3),x((s=A.get("birthdate"))!=null&&s.invalid&&((s=A.get("birthdate"))!=null&&s.dirty||(s=A.get("birthdate"))!=null&&s.touched)?32:-1),d(5),m("options",T.placesOptions),d(2),x((h=A.get("street"))!=null&&h.invalid&&((h=A.get("street"))!=null&&h.dirty||(h=A.get("street"))!=null&&h.touched)?39:-1),d(6),x((E=A.get("street_number"))!=null&&E.invalid&&((E=A.get("street_number"))!=null&&E.dirty||(E=A.get("street_number"))!=null&&E.touched)?45:-1),d(6),x((w=A.get("zip_code"))!=null&&w.invalid&&((w=A.get("zip_code"))!=null&&w.dirty||(w=A.get("zip_code"))!=null&&w.touched)?51:-1),d(6),x((I=A.get("city"))!=null&&I.invalid&&((I=A.get("city"))!=null&&I.dirty||(I=A.get("city"))!=null&&I.touched)?57:-1),d(6),x((F=A.get("country"))!=null&&F.invalid&&((F=A.get("country"))!=null&&F.dirty||(F=A.get("country"))!=null&&F.touched)?63:-1),d(5),x(A.valid?68:-1)}}function Ul(l,a){if(l&1){let e=b();i(0,"div",128)(1,"span"),r(2),t(),i(3,"button",74),_("click",function(){u(e);let o=c().$index,s=c(2);return g(s.toggleEdit("authorized",o))}),p(4,"i",152),r(5," Bearbeiten "),t()()}if(l&2){let e=c().$index,n=c(2);d(2),y(n.getAuthorizedDisplayName(e))}}function jl(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",126),_("opened",function(){let o=u(e).$index,s=c(2);return g(s.onAuthorizedPanelOpened(o))}),i(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,Sl,1,1)(4,El,1,0),t()(),i(5,"div",127),f(6,Ll,69,13,"div",26)(7,Ul,6,1,"div",128),t()()}if(l&2){let e=a.$index,n=c(2);m("expanded",n.expandedAuthorizedPanelIndex()===e),d(3),x(n.getAuthorizedDisplayName(e)?3:4),d(2),m("formGroupName",e),d(),x(n.opened().authorized[e]?7:6)}}function Kl(l,a){if(l&1&&(i(0,"div",76),re(1,jl,8,4,"mat-expansion-panel",72,je),t()),l&2){let e=c();d(),oe(e.company_other_authorized_persons.controls)}}function Wl(l,a){if(l&1){let e=b();i(0,"div",73)(1,"button",74),_("click",function(){u(e);let o=c();return g(o.addAuthorizedPerson())}),p(2,"i",75),r(3,"\xA0 Hinzuf\xFCgen "),t()()}}function Zl(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",153)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),r(3,"Wirtschaftlich Berechtigte"),t()()(),i(4,"div",154)(5,"button",74),_("click",function(){u(e);let o=c();return g(o.addShareholder())}),p(6,"i",75),r(7,"\xA0 Hinzuf\xFCgen "),t()()}}function Jl(l,a){if(l&1&&r(0),l&2){let e=c().$index,n=c(2);M(" ",n.getShareholderDisplayName(e)," ")}}function Ql(l,a){l&1&&r(0," Wirtschaftlich Berechtigte ")}function Xl(l,a){l&1&&r(0," Bitte w\xE4hlen Sie eine Anrede. ")}function Yl(l,a){if(l&1&&(i(0,"div",135),f(1,Xl,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("title"))!=null&&e.hasError("required")?1:-1)}}function ed(l,a){l&1&&r(0," Bitte geben Sie den Vornamen ein. ")}function td(l,a){if(l&1&&(i(0,"mat-error"),f(1,ed,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("firstname"))!=null&&e.hasError("required")?1:-1)}}function nd(l,a){l&1&&r(0," Bitte geben Sie den Nachnamen ein. ")}function id(l,a){if(l&1&&(i(0,"mat-error"),f(1,nd,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("lastname"))!=null&&e.hasError("required")?1:-1)}}function ad(l,a){l&1&&r(0," Bitte geben Sie das Geburtsdatum an. ")}function rd(l,a){if(l&1&&(i(0,"mat-error"),f(1,ad,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("birthdate"))!=null&&e.hasError("required")?1:-1)}}function od(l,a){l&1&&r(0," Bitte geben Sie die Stra\xDFe ein. ")}function ld(l,a){if(l&1&&(i(0,"mat-error"),f(1,od,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("street"))!=null&&e.hasError("required")?1:-1)}}function dd(l,a){l&1&&r(0," Bitte geben Sie die Hausnummer ein. ")}function md(l,a){if(l&1&&(i(0,"mat-error"),f(1,dd,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("street_number"))!=null&&e.hasError("required")?1:-1)}}function sd(l,a){l&1&&r(0," Bitte geben Sie die PLZ ein. ")}function cd(l,a){if(l&1&&(i(0,"mat-error"),f(1,sd,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("zip_code"))!=null&&e.hasError("required")?1:-1)}}function pd(l,a){l&1&&r(0," Bitte geben Sie die Stadt ein. ")}function _d(l,a){if(l&1&&(i(0,"mat-error"),f(1,pd,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("city"))!=null&&e.hasError("required")?1:-1)}}function ud(l,a){l&1&&r(0," Bitte geben Sie das Land ein. ")}function gd(l,a){if(l&1&&(i(0,"mat-error"),f(1,ud,1,0),t()),l&2){let e,n=c(2).$implicit;d(),x((e=n.get("country"))!=null&&e.hasError("required")?1:-1)}}function hd(l,a){l&1&&(i(0,"mat-error"),r(1," Der Unternehmensanteil ist erforderlich. "),t())}function fd(l,a){l&1&&(i(0,"mat-error"),r(1," Der Unternehmensanteil muss gr\xF6\xDFer als 0% sein. "),t())}function xd(l,a){l&1&&(i(0,"mat-error"),r(1," Der Unternehmensanteil darf 100% nicht \xFCberschreiten. "),t())}function vd(l,a){l&1&&(i(0,"mat-error"),r(1," Bitte geben Sie eine g\xFCltige Prozentzahl ein. "),t())}function yd(l,a){l&1&&(i(0,"p",160),p(1,"i",161),r(2,' Sie m\xFCssen mindestens 95\u202F% aller wirtschaftlich Berechtigten angeben. Klicken Sie im unteren Verlauf auf "Mehr hinzuf\xFCgen", um weitere wirtschaftlich Berechtigte einzutragen. '),t())}function bd(l,a){l&1&&(i(0,"p",160),p(1,"i",161),r(2," 100% Unternehmensanteil ist das Maximum. Bitte geben Sie einen korrekten Wert ein. "),t())}function Cd(l,a){if(l&1){let e=b();i(0,"button",79),_("click",function(){u(e);let o=c(2).$index,s=c(2);return g(s.toggleEdit("shareholder",o))}),p(1,"i",150),t()}}function Sd(l,a){if(l&1){let e=b();i(0,"div",26)(1,"div",129)(2,"h6",130),r(3,"Anrede:"),t(),i(4,"mat-radio-group",131)(5,"mat-radio-button",132),r(6,"Herr"),t(),i(7,"mat-radio-button",133),r(8,"Frau"),t(),i(9,"mat-radio-button",134),r(10,"Divers"),t()(),f(11,Yl,2,1,"div",135),t(),i(12,"div",120)(13,"mat-form-field",136)(14,"mat-label"),r(15,"Vorname"),t(),p(16,"input",137),f(17,td,2,1,"mat-error"),t()(),i(18,"div",120)(19,"mat-form-field",136)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",138),f(23,id,2,1,"mat-error"),t()(),i(24,"div",120)(25,"mat-form-field",136)(26,"mat-label"),r(27,"Geburtsdatum"),t(),p(28,"input",139)(29,"mat-datepicker-toggle",140)(30,"mat-datepicker",null,7),f(32,rd,2,1,"mat-error"),t()(),i(33,"div",120)(34,"mat-form-field",136)(35,"mat-label"),r(36,"Stra\xDFe"),t(),i(37,"input",155,2),_("onAddressChange",function(o){u(e);let s=c().$index,h=c(2);return g(h.handleShareholderAddressChange(s,o))}),t(),f(39,ld,2,1,"mat-error"),t()(),i(40,"div",142)(41,"mat-form-field",136)(42,"mat-label"),r(43,"Haus Nr."),t(),p(44,"input",143),f(45,md,2,1,"mat-error"),t()(),i(46,"div",142)(47,"mat-form-field",136)(48,"mat-label"),r(49,"PLZ"),t(),p(50,"input",144),f(51,cd,2,1,"mat-error"),t()(),i(52,"div",120)(53,"mat-form-field",136)(54,"mat-label"),r(55,"Stadt"),t(),p(56,"input",145),f(57,_d,2,1,"mat-error"),t()(),i(58,"div",120)(59,"mat-form-field",136)(60,"mat-label"),r(61,"Land"),t(),p(62,"input",146),f(63,gd,2,1,"mat-error"),t()(),i(64,"div",120)(65,"span",157),r(66," Bitte geben Sie den prozentualen Unternehmensanteil an. "),t(),i(67,"mat-form-field",158)(68,"mat-label"),r(69,"Unternehmensanteil in Prozent"),t(),p(70,"input",159),f(71,hd,2,0,"mat-error"),f(72,fd,2,0,"mat-error"),f(73,xd,2,0,"mat-error"),f(74,vd,2,0,"mat-error"),t(),f(75,yd,3,0,"p",160),f(76,bd,3,0,"p",160),t(),i(77,"div",142)(78,"button",149),_("click",function(){u(e);let o=c().$index,s=c(2);return g(s.removeShareholder(o))}),r(79," Entfernen "),t()(),i(80,"div",156),f(81,Cd,2,0,"button",148),t()()}if(l&2){let e,n,o,s,h,E,w,I,F,C,A,T,Q,se,B=G(31),me=c(),R=me.$implicit,Ae=me.$index,Ge=c(2);
28d(11),x((e=R.get("title"))!=null&&e.invalid&&((e=R.get("title"))!=null&&e.dirty||(e=R.get("title"))!=null&&e.touched)?11:-1),d(6),x((n=R.get("firstname"))!=null&&n.invalid&&((n=R.get("firstname"))!=null&&n.dirty||(n=R.get("firstname"))!=null&&n.touched)?17:-1),d(6),x((o=R.get("lastname"))!=null&&o.invalid&&((o=R.get("lastname"))!=null&&o.dirty||(o=R.get("lastname"))!=null&&o.touched)?23:-1),d(5),m("matDatepicker",B),d(),m("for",B),d(3),x((s=R.get("birthdate"))!=null&&s.invalid&&((s=R.get("birthdate"))!=null&&s.dirty||(s=R.get("birthdate"))!=null&&s.touched)?32:-1),d(5),m("options",Ge.placesOptions),d(2),x((h=R.get("street"))!=null&&h.invalid&&((h=R.get("street"))!=null&&h.dirty||(h=R.get("street"))!=null&&h.touched)?39:-1),d(6),x((E=R.get("street_number"))!=null&&E.invalid&&((E=R.get("street_number"))!=null&&E.dirty||(E=R.get("street_number"))!=null&&E.touched)?45:-1),d(6),x((w=R.get("zip_code"))!=null&&w.invalid&&((w=R.get("zip_code"))!=null&&w.dirty||(w=R.get("zip_code"))!=null&&w.touched)?51:-1),d(6),x((I=R.get("city"))!=null&&I.invalid&&((I=R.get("city"))!=null&&I.dirty||(I=R.get("city"))!=null&&I.touched)?57:-1),d(6),x((F=R.get("country"))!=null&&F.invalid&&((F=R.get("country"))!=null&&F.dirty||(F=R.get("country"))!=null&&F.touched)?63:-1),d(8),x((C=R.get("shareholder_percentage"))!=null&&C.hasError("required")&&((C=R.get("shareholder_percentage"))!=null&&C.dirty||(C=R.get("shareholder_percentage"))!=null&&C.touched)?71:-1),d(),x((A=R.get("shareholder_percentage"))!=null&&A.hasError("min")?72:-1),d(),x((T=R.get("shareholder_percentage"))!=null&&T.hasError("max")?73:-1),d(),x((Q=R.get("shareholder_percentage"))!=null&&Q.hasError("pattern")?74:-1),d(),x(Ge.company_shareholders.controls.length-1===Ae&&((se=R.get("shareholder_percentage"))!=null&&se.dirty||(se=R.get("shareholder_percentage"))!=null&&se.touched)&&Ge.check_total_shareholding()<95?75:-1),d(),x(Ge.company_shareholders.controls.length-1===Ae&&Ge.check_total_shareholding()>100?76:-1),d(5),x(R.valid?81:-1)}}function Ed(l,a){if(l&1){let e=b();i(0,"div",128)(1,"span"),r(2),t(),i(3,"button",74),_("click",function(){u(e);let o=c().$index,s=c(2);return g(s.toggleEdit("shareholder",o))}),p(4,"i",152),r(5," Bearbeiten "),t()()}if(l&2){let e=c().$index,n=c(2);d(2),y(n.getShareholderDisplayName(e))}}function wd(l,a){if(l&1){let e=b();i(0,"mat-expansion-panel",126),_("opened",function(){let o=u(e).$index,s=c(2);return g(s.onShareholderPanelOpened(o))}),i(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3,Jl,1,1)(4,Ql,1,0),t()(),i(5,"div",127),f(6,Sd,82,19,"div",26)(7,Ed,6,1,"div",128),t()()}if(l&2){let e=a.$index,n=c(2);m("expanded",n.expandedShareholderPanelIndex()===e),d(3),x(n.getShareholderDisplayName(e)?3:4),d(2),m("formGroupName",e),d(),x(n.opened().shareholder[e]?7:6)}}function Md(l,a){if(l&1&&(i(0,"div",77),re(1,wd,8,4,"mat-expansion-panel",72,je),t()),l&2){let e=c();d(),oe(e.company_shareholders.controls)}}function kd(l,a){if(l&1){let e=b();i(0,"div",73)(1,"button",74),_("click",function(){u(e);let o=c();return g(o.addShareholder())}),p(2,"i",75),r(3,"\xA0 Hinzuf\xFCgen "),t()()}}function Id(l,a){if(l&1&&p(0,"img",102),l&2){let e,n=c();m("src",(e=n.supplierFormGroup.get("company_logo"))==null?null:e.value,j)}}function Fd(l,a){if(l&1&&r(0),l&2){let e,n=c();M(" ",((e=n.supplierFormGroup.get("company_name"))==null?null:e.value[0])||"-"," ")}}var qt=class l{constructor(){this.fb=O(xe);this.stepperOrientation="horizontal";this.companyType=U([]);this.temp_CompanyType=U([]);this.companyTypeOriginal=[];this.base64String=U("");this.companyLogoId=U("");this.progress={company_logo:-1};this.brandDetails=ie();this.userService=O(st);this.sweetAlertService=O(ee);this.selectedIndex=U(0);this.supplierService=O(Oe);this.supplierFormGroup=this.fb.group({company_name:["",S.required],company_type:["",[S.required]],register_Place:[""],register_number:[""],tax_Office:[""],tax_number:[""],vat_id:[""],street:["",S.required],streetNumber:["",S.required],postCode:["",[S.required,S.pattern(/^\d+$/),S.maxLength(10)]],apartment_number:[""],city:["",S.required],state:["",S.required],country:["",S.required],email:["",[S.required]],phone:["+49",[S.required,S.pattern(/^\+\d{7,15}$/)]],company_logo:[null]});this.expandedPanelIndex=U(0);this.expandedAuthorizedPanelIndex=U(0);this.expandedShareholderPanelIndex=U(0);this.opened=U({ceo:[],authorized:[],shareholder:[]});it(()=>{let a=this.brandDetails();console.log("brand details came here",a),a?.company_info?.[0]?.country&&(this.supplierFormGroup.patchValue({country:a.company_info[0].country}),this.getCompanyTypes(a.company_info[0].country))})}ngAfterViewInit(){setTimeout(()=>this.initPhoneInput(),0)}ngOnInit(){this.initializeForms(),this.addCeo()}initPhoneInput(){let a=document.getElementById("phoneNo");a&&(0,Ii.default)(a)}searchCompanyType(a){let e=a.target.value.toLowerCase().trim();if(!e){this.temp_CompanyType.set([...this.companyType()]);return}let n=this.companyType().filter(o=>o.type_name.toLowerCase().includes(e));this.temp_CompanyType.set(n)}onCompanyTypeSelected(a){let e=a.option.value;if(!e)return;let n=this.companyType().find(o=>o.type_name===e);this.supplierFormGroup.patchValue({company_type:n?n.type_name:e})}handleAllFields(a,e){let n=a?.address_components;n&&(e==="register_Place"||e==="tax_Office"?this.getAllFieldsForLocality(n,e):this.getAllFields(n))}getAllFields(a){a.forEach(n=>{let o=n.types||[];if(o.includes("street_number")&&this.supplierFormGroup.patchValue({streetNumber:n.short_name}),o.includes("postal_code")&&this.supplierFormGroup.patchValue({postCode:n.short_name}),o.includes("route")&&this.supplierFormGroup.patchValue({street:n.short_name}),o.length>1)for(let s=0;s<o.length;s++)o[s]==="country"&&this.supplierFormGroup.patchValue({country:n.long_name}),o[s]==="locality"&&this.supplierFormGroup.patchValue({city:n.short_name}),o[s]==="administrative_area_level_1"&&this.supplierFormGroup.patchValue({state:n.short_name})})}getAllFieldsForLocality(a,e){a.forEach(n=>{if(!(!n.types||!Array.isArray(n.types))&&n.types.includes("locality"))switch(e){case"register_Place":this.supplierFormGroup.patchValue({register_Place:n.long_name});break;
28case"tax_Office":this.supplierFormGroup.patchValue({tax_Office:n.long_name});break;default:this.supplierFormGroup.patchValue({register_Place:n.short_name})}})}onCompanyLogoSelected(a){let e=a?.target?.files?.[0];if(!e)return;let n=new FileReader;n.onload=()=>{let o=n.result;this.base64String.set(o),this.supplierFormGroup.patchValue({company_logo:o})},n.readAsDataURL(e)}open_modal(a){let e=$("#"+a);e.appendTo("body"),e.modal({backdrop:"static",keyboard:!1,show:!0})}openAddSupplierModal(){this.open_modal("AddSupplierModal")}closeAddSupplierModal(){$("#AddSupplierModal").modal("hide")}getCompanyTypes(a){this.userService.getCompanyTypesByCountry(a).subscribe({next:e=>{let n=e.data||[];this.companyType.set(n),this.temp_CompanyType.set(n)},error:e=>{console.log(e)}})}handleImageDelete(){this.base64String.set(""),this.companyLogoId.set(""),this.supplierFormGroup.patchValue({company_logo:null})}goToOfficialCompanyDetailsStep(){if(this.supplierFormGroup.markAllAsTouched(),this.supplierFormGroup.invalid){this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus...","OK").subscribe();return}else this.stepper&&this.stepper.next()}initializeForms(){this.legalRepresentativesForm=this.fb.group({company_ceos:this.fb.array([]),company_other_authorized_persons:this.fb.array([]),company_shareholders:this.fb.array([])})}get company_ceos(){return this.legalRepresentativesForm.get("company_ceos")}get company_other_authorized_persons(){return this.legalRepresentativesForm.get("company_other_authorized_persons")}
28get company_shareholders(){return this.legalRepresentativesForm.get("company_shareholders")}onPanelOpened(a){this.expandedPanelIndex.set(a)}ceoShareholderFormGroup(){return this.fb.group({title:["Herr",S.required],firstname:["",S.required],lastname:["",S.required],birthdate:["",S.required],street:["",S.required],street_number:["",S.required],zip_code:["",S.required],city:["",S.required],country:["",S.required]})}companyShareholderFormGroup(){return this.fb.group({title:["Herr",S.required],firstname:["",S.required],lastname:["",S.required],birthdate:["",S.required],street:["",S.required],street_number:["",S.required],zip_code:["",S.required],city:["",S.required],country:["",S.required],shareholder_percentage:["",[S.required,S.min(.01),S.max(100)]]})}getCeoDisplayName(a){let e=this.company_ceos.at(a);if(!e)return"";let n=e.get("firstname")?.value??"",o=e.get("lastname")?.value??"";return[n,o].filter(Boolean).join(" ")}handleCeoAddressChange(a,e){let n=this.company_ceos.at(a);n&&this.patchAddressToFormGroup(n,e)}patchAddressToFormGroup(a,e){let n=e?.address_components;n&&n.forEach(o=>{let s=o.types||[];if(s.includes("street_number")&&a.patchValue({street_number:o.short_name}),s.includes("postal_code")&&a.patchValue({zip_code:o.short_name}),s.includes("route")&&a.patchValue({street:o.short_name}),s.length>1)for(let h=0;h<s.length;h++)s[h]==="country"&&a.patchValue({country:o.long_name}),s[h]==="locality"&&a.patchValue({city:o.short_name})})}removeCeo(a){let e=this.expandedPanelIndex();this.company_ceos.removeAt(a),this.opened.update(o=>X(Z({},o),{ceo:o.ceo.filter((s,h)=>h!==a)}));let n=this.company_ceos.length;e===a?this.expandedPanelIndex.set(Math.min(a,Math.max(0,n-1))):e>a&&this.expandedPanelIndex.set(e-1)}toggleCeo(a){this.opened.update(e=>{let n=[...e.ceo];return n[a]=!n[a],X(Z({},e),{ceo:n})})}addCeo(){if(this.company_ceos.length>0&&!this.canAddMoreCeo()){this.legalRepresentativesForm.markAllAsTouched(),this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus...","OK").subscribe();return}let a=this.ceoShareholderFormGroup(),e=this.company_ceos.length;this.company_ceos.push(a),this.opened.update(n=>{let o=[...n.ceo,!1];return X(Z({},n),{ceo:o})}),this.expandedPanelIndex.set(e)}canAddMoreCeo(){return this.company_ceos.controls.length>0&&this.company_ceos.controls.every(a=>a.valid)}addAuthorizedPerson(){if(this.company_other_authorized_persons.length>0&&!this.canAddMoreAuthorizedPerson()){this.legalRepresentativesForm.markAllAsTouched(),this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus...","OK").subscribe();return}let a=this.company_other_authorized_persons.length;this.company_other_authorized_persons.push(this.ceoShareholderFormGroup()),this.opened.update(e=>X(Z({},e),{authorized:[...e.authorized,!1]})),this.expandedAuthorizedPanelIndex.set(a)}canAddMoreAuthorizedPerson(){return this.company_other_authorized_persons.controls.length>0&&this.company_other_authorized_persons.controls.every(a=>a.valid)}onAuthorizedPanelOpened(a){this.expandedAuthorizedPanelIndex.set(a)}removeAuthorizedPerson(a){let e=this.expandedAuthorizedPanelIndex();this.company_other_authorized_persons.removeAt(a),this.opened.update(o=>X(Z({},o),{authorized:o.authorized.filter((s,h)=>h!==a)}));let n=this.company_other_authorized_persons.length;e===a?this.expandedAuthorizedPanelIndex.set(Math.min(a,Math.max(0,n-1))):e>a&&this.expandedAuthorizedPanelIndex.set(e-1)}getAuthorizedDisplayName(a){let e=this.company_other_authorized_persons.at(a);if(!e)return"";let n=e.get("firstname")?.value??"",o=e.get("lastname")?.value??"";return[n,o].filter(Boolean).join(" ")}toggleEdit(a,e){this.opened.update(n=>{let o=[...n[a]];return o[e]=!o[e],X(Z({},n),{[a]:o})})}handleAuthorizedAddressChange(a,e){let n=this.company_other_authorized_persons.at(a);n&&this.patchAddressToFormGroup(n,e)}addShareholder(){if(this.company_shareholders.length>0&&!this.canAddMoreShareholder()){this.legalRepresentativesForm.markAllAsTouched(),this.sweetAlertService.info("Ung\xFCltiges Formular","Bitte f\xFCllen Sie alle erforderlichen Felder korrekt aus...","OK").subscribe();return}
28let a=this.company_shareholders.length;this.company_shareholders.push(this.companyShareholderFormGroup()),this.opened.update(e=>X(Z({},e),{shareholder:[...e.shareholder,!1]})),this.expandedShareholderPanelIndex.set(a)}onShareholderPanelOpened(a){this.expandedShareholderPanelIndex.set(a)}canAddMoreShareholder(){return this.company_shareholders.length>0&&this.company_shareholders.controls.every(a=>a.valid)}removeShareholder(a){let e=this.expandedShareholderPanelIndex();this.company_shareholders.removeAt(a),this.opened.update(o=>X(Z({},o),{shareholder:o.shareholder.filter((s,h)=>h!==a)}));let n=this.company_shareholders.length;e===a?this.expandedShareholderPanelIndex.set(Math.min(a,Math.max(0,n-1))):e>a&&this.expandedShareholderPanelIndex.set(e-1)}getShareholderDisplayName(a){let e=this.company_shareholders.at(a);if(!e)return"";let n=e.get("firstname")?.value??"",o=e.get("lastname")?.value??"";return[n,o].filter(Boolean).join(" ")}handleShareholderAddressChange(a,e){let n=this.company_shareholders.at(a);n&&this.patchAddressToFormGroup(n,e)}check_total_shareholding(){let a=0;return this.company_shareholders.controls.forEach(e=>{let n=e.get("shareholder_percentage")?.value;a+=parseFloat(n)||0}),a}isShareholdingValid(){if(this.company_shareholders.controls.length===0)return!0;let a=this.check_total_shareholding();return a>=95&&a<=100}goToPreviousStep(){this.stepper&&this.stepper.previous()}goToNextPreviewStep(){if(this.legalRepresentativesForm.markAllAsTouched(),!this.company_ceos.controls.every(e=>e.valid)){this.sweetAlertService.error("Validierungsfehler","Bitte f\xFCllen Sie alle erforderlichen Felder f\xFCr den Gesch\xE4ftsf\xFChrer aus.","OK").subscribe();return}if(this.company_other_authorized_persons.controls.length>0&&!this.company_other_authorized_persons.controls.every(n=>n.valid)){this.sweetAlertService.error("Validierungsfehler","Bitte f\xFCllen Sie alle erforderlichen Felder f\xFCr die bevollm\xE4chtigten Personen aus.","OK").subscribe();return}if(this.company_shareholders.controls.length>0){if(!this.company_shareholders.controls.every(n=>n.valid)){this.sweetAlertService.error("Validierungsfehler","Bitte f\xFCllen Sie alle erforderlichen Felder f\xFCr die wirtschaftlich Berechtigten aus.","OK").subscribe();return}if(!this.isShareholdingValid()){this.sweetAlertService.error("Validierungsfehler","Die Gesamtanteile der wirtschaftlich Berechtigten m\xFCssen zwischen 95% und 100% liegen.","OK").subscribe();return}}this.stepper&&this.stepper.next()}addSupplier(){let a=this.supplierFormGroup.value??{},e=this.legalRepresentativesForm.value??{};if(!this.brandDetails().company_info[0]._id){this.sweetAlertService.error("Fehlende Daten","Unternehmens-ID fehlt. Bitte laden Sie die Seite neu.","OK").subscribe();return}let n={main_company_id:this.brandDetails().company_info[0]._id,brand_id:this.brandDetails()._id??"",company_details:Z({},a),legal_representatives:Z({},e)};$("#loaderouterid").css("display","flex"),this.supplierService.addSupplier(n).subscribe({next:()=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.success("Erfolgreich","Der Lieferant wurde erfolgreich hinzugef\xFCgt.","OK").subscribe(()=>{this.supplierService.triggerRefresh(),this.closeAddSupplierModal()})},error:()=>{$("#loaderouterid").css("display","none"),this.sweetAlertService.error("Fehler","Ein Fehler ist aufgetreten.","OK").subscribe()}})}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-add-supplier"]],viewQuery:function(e,n){if(e&1&&Ve(vo,5),e&2){let o;le(o=de())&&(n.stepper=o.first)}},inputs:{brandDetails:[1,"brandDetails"]},decls:357,vars:66,consts:[["stepper",""],["auto","matAutocomplete"],["placesRef","ngx-places"],["phoneInput",""],["docInput",""],["picker",""],["dpAuth",""],["dpShare",""],["id","AddSupplierModal_parent"],["id","AddSupplierModal","tabindex","-1","aria-hidden","true","data-bs-backdrop","static","data-bs-keyboard","false",1,"modal","fade"],["role","document",1,"modal-dialog",2,"width","90vw","max-width","95%"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button",1,"close",3,"click"],["src","../assets/closeModel.svg","alt","Close",2,"width","20px","height","20px","display","block"],[1,"modal-body","p-0"],[3,"selectedIndexChange","linear","orientation"],["matStepperIcon","edit"],["label","Unternehmendetails"],[3,"formGroup"],[1,"row","mb-3"],[1,"col-6"],[1,"field-heading-parent"],[1,"field-heading"],[1,"p-2"],[1,"row"],[1,"col-12"],["appearance","outline",1,"w-100","bg-white"],["matInput","","placeholder","Name der Firma","formControlName","company_name"],["matInput","","placeholder","Gesellschaft mit beschr\xE4nkter Haftung (GmbH)","autocomplete","off","formControlName","company_type",3,"keyup","matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected"],["disabled",""],[3,"value"],[1,"col-12","col-md-6","col-xl-4"],["matInput","","placeholder","Registerort","ngx-gp-autocomplete","","formControlName","register_Place",3,"onAddressChange","options"],["matInput","","placeholder","Registernummer","formControlName","register_number"],["matInput","","placeholder","Finanzamt","ngx-gp-autocomplete","","formControlName","tax_Office",3,"onAddressChange","options"],["matInput","","placeholder","USt-I
28dNr","formControlName","vat_id"],["matInput","","placeholder","Steuernummer","formControlName","tax_number"],[1,"p-3"],[1,"col-12","col-md-6","col-lg-4"],["matInput","","formControlName","street","autocomplete","off","ngx-gp-autocomplete","",3,"onAddressChange","placeholder","options"],[1,"col-12","col-md-6","col-lg-2"],["matInput","","autocomplete","off","formControlName","streetNumber",3,"placeholder"],["matInput","","autocomplete","off","formControlName","postCode",3,"input","blur","placeholder"],["matInput","","autocomplete","off","formControlName","city",3,"placeholder"],[1,"col-12","col-md-6","col-lg-3"],["matInput","","autocomplete","off","formControlName","apartment_number",3,"placeholder"],["matInput","","formControlName","state","autocomplete","off",3,"placeholder"],["matInput","","autocomplete","off","formControlName","country",3,"placeholder"],["matInput","","placeholder","E-Mail","autocomplete","off","formControlName","email"],["matInput","","id","phoneNo","placeholder","Telefonnummer","autocomplete","off","formControlName","phone"],[1,"w-100","h-100","field-heading-parent"],[1,"col-md-4"],[1,"upload-file","bg-white","rounded","p-l-30","position-relative",2,"cursor","pointer","min-height","170px"],["type","file","name","company_logo","accept",".gif,.jpg,.jpeg,.png,.svg",1,"upload-files","w-100","position-absolute",2,"height","100%",3,"click","change"],[1,"mt-5",2,"text-align","center"],[1,"icons-img"],[1,"fa","fa-regular","fa","fa-image"],[2,"display","block","margin","0 auto"],[1,"my-2",2,"text-align","center"],[1,"text-bodycolor","font-18","mb-0",2,"font-size","20px","font-weight","600","text-align","center"],[1,"text-bodycolor","mb-0",2,"text-align","center"],[1,"col-sm-4"],[1,"row","mt-3","mt-md-4"],[1,"col-12","d-flex","justify-content-end"],["type","button",1,"btn","button-primary","button-hover",3,"click"],[1,"fa","fa-arrow-right","ms-1"],["label","Gesetzliche Vertreter"],[3,"multi"],["formArrayName","company_ceos"],[1,"mb-3",3,"expanded"],[1,"col-12","d-flex","justify-content-end","mt-3","mb-2","mb-md-0"],["type","button",1,"btn","button-primary",3,"click"],[1,"fas","fa-user-plus"],["formArrayName","company_other_authorized_persons"],["formArrayName","company_shareholders"],[1,"col-12","d-flex","justify-content-between"],[1,"btn","button-primary",3,"click"],[1,"fa","fa-arrow-left"],[1,"fa","fa-arrow-right"],["label","\xDCberpr\xFCfung"],[1,"row","mt-4","align-items-center"],[1,"col-12","col-md-6"],[1,"d-flex","justify-content-center"],[1,"card-center"],[1,"supplier-preview-card","mb-3"],[1,"supplier-preview-header"],[1,"supplier-preview-header-text","mb-0"],[1,"fa","fa-pencil","edit-icon",3,"click"],[1,"supplier-preview-hr","my-2"],[1,"supplier-preview-body"],[1,"supplier-preview-card"],[1,"d-none","d-md-block","col-md-1","text-center"],[1,"arrow_box"],["src","/assets/arrows.svg","alt","Arrows"],[1,"col-12","col-md-5"],[1,"d-flex","justify-content-center","justify-content-md-start"],[1,"summary-card"],[1,"d-flex","align-items-center","mb-3"],[1,"company-logo"],["alt","Company logo",3,"src"],[1,"mb-0","fw-bold"],[1,"text-muted"],[1,"card-border"],[1,"summary-details"],[1,"supplier-preview-hr"],[1,"d-flex","set-gap"],["src","/assets/verification.svg","alt","Verification"],[1,"btn","btn-sm","button-primary",3,"click"],[1,"row","m-0"],[1,"col-sm-5","border","border-secondary","p-1","rounded",2,"overflow","hidden"],[1,"col-sm-12","mb-1","p-0"],[1,"btn","btn-sm","btn-danger",2,"float","right",3,"click","disabled"],[1,"fa","fa-times"],[1,"btn","btn-sm","button-primary",2,"float","left",3,"click","disabled"],[1,"fa","fa-eye","links1"],[1,"col-sm-12","p-0","text-center","upload-file-box"],[1,"imageThumb",3,"src"],[1,"col-sm-12"],[1,"w-100","text-center","mt-1"],[1,"col-sm-12","text-center"],[1,"h6","d-block","text-wrap","mt-2"],[1,"progress"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-success"],[1,"mb-3",3,"opened","expanded"],[1,"p-2",3,"formGroupName"],[1,"d-flex","align-items-center","justify-content-between"],[1,"col-sm-12","mb-2","d-flex","flex-wrap","align-items-center","gap-2"],[1,"mb-0"],["formControlName","title"],["value","Herr"],["value","Frau"],["value","Divers"],[1,"mat-mdc-form-field-error","small","text-danger","w-100"],["appearance","outline",1,"w-100"],["matInput","","formControlName","firstname","autocomplete","off"],["matInput","","formControlName","lastname","autocomplete","off"],["matInput","","formControlName","birthdate",3,"matDatepicker"],["matSuffix","",3,"for"],["matInput","","placeholder","Stra\xDFe","ngx-gp-autocomplete","","formControlName","street",3,"onAddressChange","options"],[1,"col-sm-6"],["matInput","","formControlName","street_number"],["matInput","","formControlName","zip_code"],["matInput","","formControlName","city"],["matInput","","formControlName","country"],["type","button",1,"btn","btn-danger"],[1,"btn","button-primary"],["type","button",1,"btn","btn-danger",3,"click"],[1,"fas","fa-user-check"],[1,"fa","fa-arrow-up"],[1,"fas","fa-edit"],[1,"mb-3"],[1,"p-2","d-flex","justify-content-end"],["matInput","","formControlName","street","ngx-gp-autocomplete","",3,"onAddressChange","options"],[1,"col-sm-6","text-right"],[2,"font-size","12.5px"],["appearance","outline",1,"w-100","mat-form-field-remove-padding-bottom"],["matInput","","type","number","placeholder","Unternehmensanteil in Prozent","formControlName","shareholder_percentage"],[1,"custom-alert-danger","mt-2"],[1,"fa","fa-warning"]],template:function(e,n){if(e&1){let o=b();i(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11)(4,"div",12)(5,"h5",13),r(6,"Lieferant hinzuf\xFCgen"),t(),i(7,"button",14),_("click",function(){return n.closeAddSupplierModal()}),p(8,"img",15),t()(),i(9,"div",16)(10,"mat-stepper",17,0),_("selectedIndexChange",function(){return n.selectedIndex}),v(12,yo,2,0,"ng-template",18),i(13,"mat-step",19)(14,"form",20)(15,"div",21)(16,"div",22)(17,"div",23)(18,"h6",24),r(19," Firmennamen eingeben: "),t(),i(20,"div",25)(21,"div",26)(22,"div",27)(23,"mat-form-field",28)(24,"mat-label"),r(25,"Firmennamen eingeben:"),t(),p(26,"input",29),f(27,So,3,1,"mat-error"),t()()()()()(),i(28,"div",22)(29,"div",23)(30,"h6",24),r(31," Bitte Unternehmensform ausw\xE4hlen: "),t(),i(32,"div",25)(33,"div",26)(34,"div",27)(35,"mat-form-field",28)(36,"mat-label"),r(37,"Unternehmensform"),t(),i(38,"input",30),_("keyup",function(h){return n.searchCompanyType(h)}),t(),i(39,"mat-autocomplete",31,1),_("optionSelected",function(h){return n.onCompanyTypeSelected(h)}),f(41,Eo,2,0,"mat-option",32),re(42,wo,2,2,"mat-option",33,at),t(),f(44,Mo,2,0,"mat-error"),t()()()()()()(),i(45,"div",21)(46,"div",27)(47,"div",23)(48,"h6",24),r(49," Bitte geben Sie Ihre Registrierungsdetails ein: "),t(),i(50,"div",25)(51,"div",26)(52,"div",34)(53,"mat-form-field",28)(54,"mat-label"),r(55,"Registerort"),t(),i(56,"input",35,2),_("onAddressChange",function(h){return n.handleAllFields(h,"register_Place")}),t(),f(58,ko,2,0,"mat-error"),t()(),i(59,"div",34)(60,"mat-form-field",28)(61,"mat-label"),r(62,"Registernummer"),t(),p(63,"input",36),f(64,Io,2,0,"mat-error"),t()(),i(65,"div",34)(66,"mat-form-field",28)(67,"mat-label"),r(68,"Finanzamt"),t(),i(69,"input",37,2),_("onAddressChange",function(h){return n.handleAllFields(h,"tax_Office")}),t(),f(71,Fo,2,0,"mat-error"),t()(),i(72,"div",34)(73,"mat-form-field",28)(74,"mat-label"),r(75,"USt-IdNr"),t(),p(76,"input",38),f(77,To,2,0,"mat-error"),t()(),i(78,"div",34)(79,"mat-form-field",28)(80,"mat-label"),r(81,"Steuernummer"),t(),p(82,"input",39),f(83,Po,2,0,"mat-error"),t()()()()()()(),i(84,"div",21)(85,"div",27)(86,"div",23)(87,"h6",24),r(88," Bitte geben Sie Ihre Registrierungsdetails ein: "),t(),i(89,"div",40)(90,"div",26)(91,"div",41)(92,"mat-form-field",28)(93,"mat-label"),r(94,"Stra\xDFe"),t(),i(95,"input",42,2),_("onAddressChange",function(h){return n.handleAllFields(h)}),t(),f(97,Ao,2,0,"mat-error"),t()(),i(98,"div",43)(99,"mat-form-field",28)(100,"mat-label"),r(101,"Haus Nr."),t(),p(102,"input",44),f(103,Vo,2,0,"mat-error"),t()(),i(104,"div",43)(105,"mat-form-field",28)(106,"mat-label"),r(107,"PLZ"),t(),i(108,"input",45),_("input",function(){let h;return u(o),g((h=n.supplierFormGroup.get("postCode"))==null?null:h.markAsTouched())})("blur",function(){let h;return u(o),g((h=n.supplierFormGroup.get("postCode"))==null?null:h.markAsTouched())}),t(),f(109,qo,4,1,"mat-error"),t()(),i(110,"div",41)(111,"mat-form-field",28)(112,"mat-label"),r(113,"Stadt"),t(),p(114,"input",46),f(115,Ro,2,0,"mat-error"),t()(),i(116,"div",47)(117,"mat-form-field",28)(118,"mat-label"),r(119,"C/O Appartmentnummer, T\xFCrcode, Usw."),t(),p(120,"input",48),t()(),i(121,"div",47)(122,"mat-form-field",28)(123,"mat-label"),r(124,"Bundesland"),t(),p(125,"input",49),f(126,Do,2,0,"mat-error"),t()(),i(127,"div",47)(128,"mat-form-field",28)(129,"mat-label"),r(130,"Land"),t(),p(131,"input",50),f(132,Oo,2,0,"mat-error"),t()()()()()()(),i(133,"div",21)(134,"div",22)(135,"div",23)(136,"h6",24),r(137," Bitte geben sie Ihre E-mail ein: "),t(),i(138,"div",40)(139,"div",26)(140,"div",27)(141,"mat-form-field",28)(142,"mat-label"),r(143,"E-Mail"),t(),p(144,"input",51),f(145,Go,3,1,"mat-error"),t()()()()()(),i(146,"div",22)(147,"div",23)(148,"h6",24),r(149," Bitte geben sie Ihre Telefonnummer ein: "),t(),i(150,"div",40)(151,"div",26)(152,"div",27)(153,"mat-form-field",28)(154,"mat-label"),r(155,"Telefonnummer eingeben"),t(),p(156,"input",52,3),f(158,jo,3,1,"mat-error"),t()()()()()()(),i(159,"div",21)(160,"div",27)(161,"div",53)(162,"h6",24),r(163,"Unternehmenslogo Hochladen"),t(),i(164,"div",25)(165,"div",26)(166,"div",54)(167,"div",55)(168,"input",56,4),_("click",function(){u(o);let h=G(169);return g(h.value=null)})("change",function(h){return n.onCompanyLogoSelected(h)}),t(),i(170,"div",57)(171,"div",58),p(172,"i",59),t()(),i(173,"div",60)(174,"div",61)(175,"p",62),r(176," Laden Sie ein Unternehmenslogo hoch. "),t(),i(177,"p",63),r(178,"Akzeptierte Dateien sind jpg, jpeg, png, svg"),t()()()()(),f(179,Jo,17,4,"div",64),t()()()()(),i(180,"div",65)(181,"div",66)(182,"button",67),_("click",function(){return n.goToOfficialCompanyDetailsStep()}),r(183," Weiter "),p(184,"i",68),t()()()()(),i(185,"mat-step",69)(186,"div",26)(187,"div",34)(188,"form",20)(189,"div",26)(190,"div",27)(191,"mat-accordion",70)(192,"div",71),re(193,bl,8,4,"mat-expansion-panel",72,je),t()(),i(195,"div",73)(196,"button",74),_("click",function(){return n.addCeo()}),p(197,"i",75),r(198,"\xA0 Hinzuf\xFCgen "),t()()()()()(),i(199,"div",34)(200,"form",20)(201,"div",26)(202,"div",27)(203,"mat-accordion",70),f(204,Cl,8,0)(205,Kl,3,0,"div",76),t(),f(206,Wl,4,0,"div",73),t()()()(),i(207,"div",34)(208,"form",20)(209,"div",26)(210,"div",27)(211,"mat-accordion",70),f(212,Zl,8,0)(213,Md,3,0,"div",77),t(),f(214,kd,4,0,"div",73),t()()()()(),i(215,"div",65)(216,"div",78)(217,"button",79),_("click",function(){return n.goToPreviousStep()}),p(218,"i",80),r(219," Zur\xFCck "),t(),i(220,"button",79),_("click",function(){return n.goToNextPreviewStep()}),r(221," Weiter "),p(222,"i",81),t()()()(),i(223,"mat-step",82)(224,"div",83)(225,"div",27)(226,"div",23)(227,"h6",24),r(228," \xDCberpr\xFCfung: "),t(),i(229,"div",26)(230,"div",84)(231,"div",40)(232,"div",85)(233,"div",86)(234,"div",87)(235,"div",88)(236,"p",89),r(237," Unternehmensdetails "),t(),i(238,"i",90),_("click",function(){return n.goToPreviousStep()}),t()(),p(239,"hr",91),i(240,"div",92)(241,"p")(242,"strong"),r(243,"Firmenname:"),t(),r(244),t(),i(245,"p")(246,"strong"),r(247,"Rechtsform:"),t(),r(248),t(),i(249,"p")(250,"strong"),r(251,"USt-IdNr:"),t(),r(252),t(),i(253,"p")(254,"strong"),r(255,"Steuernummer:"),t(),r(256),t(),i(257,"p")(258,"strong"),r(259,"Registernummer:"),t(),r(260),t(),i(261,"p")(262,"strong"),r(263,"E-Mail:"),t(),r(264),t(),i(265,"p")(266,"strong"),r(267,"Telefonnummer:"),t(),r(268),t()()(),i(269,"div",93)(270,"div",88)(271,"p",89),r(272," Vertretung & Berechtigte "),t(),i(273,"i",90),_("click",function(){return n.goToPreviousStep()}),t()(),p(274,"hr",91),i(275,"div",92)(276,"p")(277,"strong"),r(278,"Vorname:"),t(),r(279),t(),i(280,"p")(281,"strong"),r(282,"Nachname:"),t(),r(283),t(),i(284,"p")(285,"strong"),r(286,"Stadt:"),t(),r(287),t(),i(288,"p")(289,"strong"),r(290,"PLZ:"),t(),r(291),t(),i(292,"p")(293,"strong"),r(294,"Land:"),t(),r(295),t()()()()()()(),i(296,"div",94)(297,"div",95),p(298,"img",96),t()(),i(299,"div",97)(300,"div",40)(301,"div",98)(302,"div",99)(303,"div",100)(304,"div",101),f(305,Id,1,1,"img",102)(306,Fd,1,1),t(),i(307,"div")(308,"h5",103),r(309),t(),i(310,"small",104),r(311),t()()(),i(312,"div",105)(313,"div",106)(314,"p")(315,"strong"),r(316,"Autorisiert von:"),t(),r(317),t(),i(318,"p")(319,"strong"),r(320,"Stra\xDFe: "),t(),r(321),t(),i(322,"p")(323,"strong"),r(324,"Hausnummer:"),t(),r(325),t(),i(326,"p")(327,"strong"),r(328,"PLZ:"),t(),r(329),t(),i(330,"p")(331,"strong"),r(332,"Stadt:"),t(),r(333),t(),i(334,"p")(335,"strong"),r(336,"Bundesland:"),t(),r(337),t(),i(338,"p")(339,"strong"),r(340,"Land:"),t(),r(341),t()(),p(342,"hr",107),i(343,"div",106)(344,"p",108),p(345,"img",109),r(346," Unternehmensdetails "),t(),i(347,"p",108),p(348,"img",109),r(349," Gesetzliche Vertrete "),t()()()()()()()()()()(),i(350,"div",65)(351,"div",78)(352,"button",110),_("click",function(){return n.goToPreviousStep()}),p(353,"i",80),r(354," Zur\xFCck "),t(),i(355,"button",110),_("click",function(){return n.addSupplier()}),r(356," Lieferant hinzuf\xFCgen "),t()()()()()()()()()()}if(e&2){let o,s,h,E,w,I,F,C,A,T,Q,se,B,me,R,Ae,Ge,En,wn,Mn,kn,In,pn,_n,un,gn,hn,Fn,Tn,Le,tt,Pn,An,Vn,Nn,zn,Hn,Vi=G(40);d(10),m("linear",!0)("orientation",n.stepperOrientation),d(4),m("formGroup",n.supplierFormGroup),d(13),x((o=n.supplierFormGroup.get("company_name"))!=null&&o.hasError("required")&&((o=n.supplierFormGroup.get("company_name"))!=null&&o.touched||(o=n.supplierFormGroup.get("company_name"))!=null&&o.dirty)||(o=n.supplierFormGroup.get("company_name"))!=null&&o.hasError("specialCharactersOnly")?27:-1),d(11),m("matAutocomplete",Vi),d(3),x(n.temp_CompanyType().length===0?41:-1),d(),oe(n.temp_CompanyType()),d(2),x((s=n.supplierFormGroup.get("company_type"))!=null&&s.hasError("required")&&((s=n.supplierFormGroup.get("company_type"))!=null&&s.touched||(s=n.supplierFormGroup.get("company_type"))!=null&&s.dirty)?44:-1),d(12),m("options",n.placesOptions),d(2),x((h=n.supplierFormGroup.get("register_Place"))!=null&&h.hasError("specialCharactersOnly")&&((h=n.supplierFormGroup.get("register_Place"))!=null&&h.touched||(h=n.supplierFormGroup.get("register_Place"))!=null&&h.dirty)?58:-1),d(6),x((E=n.supplierFormGroup.get("register_number"))!=null&&E.hasError("specialCharactersOnly")&&((E=n.supplierFormGroup.get("register_number"))!=null&&E.touched||(E=n.supplierFormGroup.get("register_number"))!=null&&E.dirty)?64:-1),d(5),m("options",n.placesOptions),d(2),x((w=n.supplierFormGroup.get("tax_Office"))!=null&&w.hasError("specialCharactersOnly")&&((w=n.supplierFormGroup.get("tax_Office"))!=null&&w.touched||(w=n.supplierFormGroup.get("tax_Office"))!=null&&w.dirty)?71:-1),d(6),x((I=n.supplierFormGroup.get("vat_id"))!=null&&I.hasError("specialCharactersOnly")&&((I=n.supplierFormGroup.get("vat_id"))!=null&&I.touched||(I=n.supplierFormGroup.get("vat_id"))!=null&&I.dirty)?77:-1),d(6),x((F=n.supplierFormGroup.get("tax_number"))!=null&&F.hasError("specialCharactersOnly")&&((F=n.supplierFormGroup.get("tax_number"))!=null&&F.touched||(F=n.supplierFormGroup.get("tax_number"))!=null&&F.dirty)?83:-1),d(12),m("placeholder","Stra\xDFe")("options",n.placesOptions),d(2),x((C=n.supplierFormGroup.get("street"))!=null&&C.touched&&((C=n.supplierFormGroup.get("street"))!=null&&C.hasError("required"))?97:-1),d(5),m("placeholder","Haus Nr."),d(),x((A=n.supplierFormGroup.get("streetNumber"))!=null&&A.hasError("required")?103:-1),d(5),m("placeholder","PLZ"),d(),x((T=n.supplierFormGroup.get("postCode"))!=null&&T.hasError("required")&&((T=n.supplierFormGroup.get("postCode"))!=null&&T.touched||(T=n.supplierFormGroup.get("postCode"))!=null&&T.dirty)||(T=n.supplierFormGroup.get("postCode"))!=null&&T.hasError("pattern")&&((T=n.supplierFormGroup.get("postCode"))!=null&&T.touched||(T=n.supplierFormGroup.get("postCode"))!=null&&T.dirty)||(T=n.supplierFormGroup.get("postCode"))!=null&&T.hasError("maxlength")&&((T=n.supplierFormGroup.get("postCode"))!=null&&T.touched||(T=n.supplierFormGroup
28.get("postCode"))!=null&&T.dirty)?109:-1),d(5),m("placeholder","Stadt"),d(),x((Q=n.supplierFormGroup.get("city"))!=null&&Q.hasError("required")&&((Q=n.supplierFormGroup.get("city"))!=null&&Q.touched||(Q=n.supplierFormGroup.get("city"))!=null&&Q.dirty)?115:-1),d(5),m("placeholder","C/O Appartmentnummer, T\xFCrcode, Usw."),d(5),m("placeholder","Bundesland"),d(),x((se=n.supplierFormGroup.get("state"))!=null&&se.touched&&((se=n.supplierFormGroup.get("state"))!=null&&se.hasError("required"))?126:-1),d(5),m("placeholder","Land"),d(),x((B=n.supplierFormGroup.get("country"))!=null&&B.hasError("required")?132:-1),d(13),x((me=n.supplierFormGroup.get("email"))!=null&&me.hasError("required")&&((me=n.supplierFormGroup.get("email"))!=null&&me.touched||(me=n.supplierFormGroup.get("email"))!=null&&me.dirty)||(me=n.supplierFormGroup.get("email"))!=null&&me.hasError("customEmail")?145:-1),d(13),x((R=n.supplierFormGroup.get("phone"))!=null&&R.hasError("required")&&((R=n.supplierFormGroup.get("phone"))!=null&&R.touched||(R=n.supplierFormGroup.get("phone"))!=null&&R.dirty)||(R=n.supplierFormGroup.get("phone"))!=null&&R.hasError("pattern")?158:-1),d(21),x(n.base64String()||n.companyLogoId()||n.progress.company_logo>-1&&n.progress.company_logo<100?179:-1),d(9),m("formGroup",n.legalRepresentativesForm),d(3),m("multi",!1),d(2),oe(n.company_ceos.controls),d(7),m("formGroup",n.legalRepresentativesForm),d(3),m("multi",!1),d(),x(n.company_other_authorized_persons.length===0?204:205),d(2),x(n.company_other_authorized_persons.length>0?206:-1),d(2),m("formGroup",n.legalRepresentativesForm),d(3),m("multi",!1),d(),x(n.company_
28shareholders.length===0?212:213),d(2),x(n.company_shareholders.length>0?214:-1),d(30),M(" ",((Ae=n.supplierFormGroup.get("company_name"))==null?null:Ae.value)||"-"),d(4),M(" ",((Ge=n.supplierFormGroup.get("company_type"))==null?null:Ge.value)||"-"),d(4),M(" ",((En=n.supplierFormGroup.get("vat_id"))==null?null:En.value)||"-"),d(4),M(" ",((wn=n.supplierFormGroup.get("tax_number"))==null?null:wn.value)||"-"),d(4),M(" ",((Mn=n.supplierFormGroup.get("register_number"))==null?null:Mn.value)||"-"),d(4),M(" ",((kn=n.supplierFormGroup.get("email"))==null?null:kn.value)||"-"),d(4),M(" ",((In=n.supplierFormGroup.get("phone"))==null?null:In.value)||"-"),d(11),M(" ",((pn=n.legalRepresentativesForm.get("company_ceos"))==null||pn.value[0]==null?null:pn.value[0].firstname)||"-"),d(4),M(" ",((_n=n.legalRepresentativesForm.get("company_ceos"))==null||_n.value[0]==null?null:_n.value[0].lastname)||"-"),d(4),M(" ",((un=n.legalRepresentativesForm.get("company_ceos"))==null||un.value[0]==null?null:un.value[0].city)||"-"),d(4),M(" ",((gn=n.legalRepresentativesForm.get("company_ceos"))==null||gn.value[0]==null?null:gn.value[0].zip_code)||"-"),d(4),M(" ",((hn=n.legalRepresentativesForm.get("company_ceos"))==null||hn.value[0]==null?null:hn.value[0].country)||"-"),d(10),x((Fn=n.supplierFormGroup.get("company_logo"))!=null&&Fn.value?305:306),d(4),y(((Tn=n.supplierFormGroup.get("company_name"))==null?null:Tn.value)||"-"),d(2),Y("",((Le=n.supplierFormGroup.get("city"))==null?null:Le.value)||"","",(Le=n.supplierFormGroup.get("city"))!=null&&Le.value&&((Le=n.supplierFormGroup.get("country"))!=null&&Le.value)?", ":"","",((Le=n.supplierFormGroup.get("country"))==null?null:Le.value)||""),d(6),K(" ",((tt=n.legalRepresentativesForm.get("company_ceos"))==null||tt.value[0]==null?null:tt.value[0].firstname)||"-"," ",((tt=n.legalRepresentativesForm.get("company_ceos"))==null||tt.value[0]==null?null:tt.value[0].lastname)||"-"),d(4),M(" ",((Pn=n.supplierFormGroup.get("street"))==null?null:Pn.value)||"-"),d(4),M(" ",((An=n.supplierFormGroup.get("streetNumber"))==null?null:An.value)||"-"),d(4),M(" ",((Vn=n.supplierFormGroup.get("postCode"))==null?null:Vn.value)||"-"),d(4),M(" ",((Nn=n.supplierFormGroup.get("city"))==null?null:Nn.value)||"-"),d(4),M(" ",((zn=n.supplierFormGroup.get("state"))==null?null:zn.value)||"-"),d(4),M(" ",((Hn=n.supplierFormGroup.get("country"))==null?null:Hn.value)||"-")}},dependencies:[J,_t,ut,pt,xt,gt,ht,ft,Ze,te,ye,Ne,ke,ne,ct,pi,_i,vt,yt,Ie,Fe,Te,ve,ge,pe,lt,_e,ue,fe,he,dt,mt,Ct,bt],styles:[".customer-mat-Modal[_ngcontent-%COMP%]{width:80dvw;height:auto}.upload-file-box[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:82px;width:100%;max-height:82px;object-fit:contain}.custom-alert-danger[_ngcontent-%COMP%]{background:#fff0f0;color:#eb3737;padding:10px;border-radius:10px;font-size:14px;font-weight:400;line-height:1.2;margin-bottom:10px}.custom-alert-danger[_ngcontent-%COMP%] .fa-warning[_ngcontent-%COMP%]{font-size:16px;margin-right:8px;vertical-align:middle}.supplier-preview-card[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:20px;box-shadow:9.6px 17.28px 46.08px #0000000a;border:1px solid var(--color-primary);min-width:78%}.supplier-preview-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.supplier-preview-header-text[_ngcontent-%COMP%]{font-weight:600;font-size:1.3rem}.supplier-preview-hr[_ngcontent-%COMP%]{border-top:2px solid var(--color-primary);opacity:1}.supplier-preview-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9rem;margin-bottom:5px;color:#232323}.edit-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:.9rem;color:#232323}.edit-icon[_ngcontent-%COMP%]:hover{color:var(--color-primary)}.middle-arrow-icon[_ngcontent-%COMP%]{font-size:28px;color:#d0d5dd}.summary-card[_ngcontent-%COMP%]{background:#fff;border:1px solid var(--color-primary);padding:25px;border-radius:20px;width:100%}@media(min-width:768px){.summary-card[_ngcontent-%COMP%]{width:80%}}.company-logo[_ngcontent-%COMP%]{width:50px;height:50px;background:var(--color-primary);border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:22px;color:var(--color-text);overflow:hidden;flex-shrink:0;margin-right:1rem}.set-gap[_ngcontent-%COMP%]{margin-right:1rem}
28.company-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.summary-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:6px;font-size:.9rem}.summary-details[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:clamp(16px,2vw,20px);height:clamp(16px,2vw,20px)}.set-gap[_ngcontent-%COMP%]{gap:.5rem}.arrow_box[_ngcontent-%COMP%]{width:20%}.arrow_box[_ngcontent-%COMP%]{align-items:center;justify-content:center;position:relative;display:flex;height:80%;width:100%}.arrow_box[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;transition:transform .3s ease;opacity:.7}.card-border[_ngcontent-%COMP%]{border:1px solid var(--color-primary);border-radius:20px;padding:10px;background-image:url(/assets/aurum\\ icon.svg)}.main-box-preview[_ngcontent-%COMP%]{border:1px solid var(--color-primary);padding:20px;border-radius:20px}.card-center[_ngcontent-%COMP%]{width:90%}"]})}};function Td(l,a){l&1&&r(0," Unbegrenzt ")}function Pd(l,a){if(l&1&&(r(0),V(1,"date")),l&2){let e=c(2);M(" ",N(1,1,e.subscriptionEndLabel,"dd.MM.yyyy")," ")}}function Ad(l,a){if(l&1&&(r(0," - "),f(1,Td,1,0)(2,Pd,2,4)),l&2){let e=c();d(),x(e.isUnlimited?1:2)}}function Vd(l,a){l&1&&(z(0,"li")(1,"p",13),Ke(2,"i",14),r(3," Elektronisch signiert "),D()())}var cn=class l{constructor(){this.data=O(ei);this.dialogRef=O(Yn);this.sanitizer=O(We);this.company=this.data.company;this.contract=this.data.contract;this.contracts=this.data.contracts;this.saveDisabled=this.contract?.verified=="1";this.safePdfUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.data.pdfSrc||"")}get subscriptionEndLabel(){return this.contracts?.subscription_ended_at?this.contracts.subscription_ended_at:this.contracts?.expiry_date?this.contracts.expiry_date:this.contracts?.duration=="Unbegrenzt"?"Unbegrenzt":""}get isUnlimited(){return!this.contracts?.subscription_ended_at&&!this.contracts?.expiry_date&&this.contracts?.duration=="Unbegrenzt"}closeModal(){this.dialogRef.close(null)}verify(){this.saveDisabled||this.dialogRef.close({action:"verify",contract:this.contract})}static{this.\u0275fac=function(e){return new(e||l)}}static{this.\u0275cmp=W({type:l,selectors:[["app-verify-contract-modal"]],decls:65,vars:18,consts:[[1,"customer-mat-Modal"],[1,"modal-content"],[1,"custom-mat-modal-header"],[1,"modal-title","mb-0"],["type","button",1,"btn-close",3,"click"],["src","assets/closeModel.svg","width","20","height","20","alt","Close"],[1,"custom-mat-modal-body"],[1,"row"],[1,"col-md-5"],[1,"companybackgrounddiv","flex-column","rounded","h-100"],[1,"bg-white","h-100","justify-content-start"],[1,"section-title"],[1,"arrow-left-dash"],["role","button",1,"small-fonts","text-start","d-flex","align-items-baseline","mb-0"],[1,"mb-0","h5","neoloop-gradient-font","fa","fa-check-square","fa-solid",2,"margin-right","5px"],[1,"col-md-7"],[1,"companybackgrounddiv","rounded","border","mb-2"],[1,"flex-row","align-items-center","documentcontract","button-primary"],["src","assets/images/pdf-icon.svg","alt","pdf",2,"max-height","20px"],[1,"companybackgrounddiv","rounded","pdf-preview-wrap"],["title","Contract PDF",1,"pdf-frame",3,"src"],[1,"modal-footer"],[1,"btn","btn-sm","button-primary","botton-hover","open_company","m-1",3,"click","disabled"]],template:function(e,n){e&1&&(z(0,"div",0)(1,"div",1)(2,"div",2)(3,"div")(4,"h5",3),r(5),z(6,"span"),r(7," Verifizierung / "),z(8,"strong"),r(9),D()()()(),z(10,"button",4),kt("click",function(){return n.closeModal()}),Ke(11,"img",5),D()(),z(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"div",10)(17,"h4",11),r(18,"Vertragdetails:"),D(),z(19,"ul",12)(20,"li"),r(21,"Vertragsname: "),z(22,"span"),r(23),D()(),z(24,"li"),r(25,"Vertrags-ID :"),z(26,"span"),r(27),D()(),z(28,"li"),r(29,"Dateityp :"),z(30,"span"),r(31,"application/pdf"),D()(),z(32,"li"),r(33," Datum der Unterzeichnung : "),z(34,"span"),r(35),V(36,"date"),D()(),z(37,"li"),r(38," Vertragsbeginn: "),z(39,"span"),r(40),V(41,"date"),f(42,Ad,3,1),D()(),z(43,"li"),r(44," Vertragsstatus : "),z(45,"span"),r(46),D()()(),z(47,"h4",11),r(48,"\xDCberpr\xFCfte Vereinbarungsberechtigung:"),D(),z(49,"ul",12)(50,"li")(51,"p",13),Ke(52,"i",14),r(53," Datenschutzbestimmungen und Nutzungsbedingungen "),D()(),f(54,Vd,4,0,"li"),D()()()(),z(55,"div",15)(56,"div",16)(57,"div",17),Ke(58,"img",18),r(59),D()(),z(60,"div",19),Ke(61,"iframe",20),D()()()(),z(62,"div",21)(63,"button",22),kt("click",function(){return n.verify()}),r(64," Verifizieren "),D()()()()),e&2&&(d(5),M("",n.company==null?null:n.company.company_name," "),d(4),y(n.contract==null?null:n.contract.document_name),d(14),y(n.contract==null?null:n.contract.document_name),d(4),y(n.contract==null?null:n.contract.t
28icket_no),d(8),y(N(36,12,n.contract==null?null:n.contract.createdAt,"dd.MM.yyyy HH:mm:ss")),d(5),M(" ",N(41,15,n.company==null?null:n.company.createdAt,"dd.MM.yyyy")," "),d(2),x(n.subscriptionEndLabel?42:-1),d(4),y((n.contract==null?null:n.contract.verified)=="1"?"verifiziert":"nicht verifiziert"),d(8),x((n.contract==null?null:n.contract.document_name)!="Service Level Agreement (SLA)"?54:-1),d(5),M(" ",n.contract==null?null:n.contract.document_name," "),d(2),Mt("src",n.safePdfUrl,wt),d(2),Mt("disabled",n.saveDisabled))},dependencies:[Me,Ye],styles:['.customer-mat-Modal[_ngcontent-%COMP%]{width:100%}.customer-mat-Modal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{border:none;box-shadow:none;background:#fff}.header-subtitle[_ngcontent-%COMP%]{color:#515966;font-size:14px;margin-top:4px}.section-title[_ngcontent-%COMP%]{color:#515966;font-size:18px}.companybackgrounddiv[_ngcontent-%COMP%]{background-color:#e7f3fe;padding:8px;gap:10px;width:100%;display:flex;overflow:auto}.companybackgrounddiv[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;width:100%;background-color:#fff;border-radius:10px;padding:10px 20px}.arrow-left-dash[_ngcontent-%COMP%]{position:relative;list-style:none;padding-left:30px;display:flex;flex-direction:column;gap:20px}.arrow-left-dash[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:2px dashed #34A3DE;height:calc(100% - 10px);width:2px;left:0;bottom:11px}.arrow-left-dash[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative}.arrow-left-dash[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"--->";color:#34a3de;position:absolute;left:-30px;top:2px;font-size:12px;font-weight:500}.arrow-left-dash[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#34a3de;margin-left:4px}.documentcontract[_ngcontent-%COMP%]{width:fit-content!important;padding:6px 10px!important;border-radius:6px!important;gap:5px;box-shadow:#11111a1a 0 9px 10px 3px;cursor:pointer;display:flex;align-items:center}.pdf-preview-wrap[_ngcontent-%COMP%]{padding:0;background:#fff}.pdf-frame[_ngcontent-%COMP%]{width:100%;height:70vh;min-height:500px;border:none;border-radius:10px;display:block}.btn-close[_ngcontent-%COMP%]{border:none;background:transparent;cursor:pointer;padding:0;opacity:1}.modal-footer[_ngcontent-%COMP%]{padding:16px 24px;display:flex;justify-content:flex-end;border-top:solid 1px #bebebe}']})}};var Nd=(l,a,e)=>({"text-success":l,"text-danger":a,"text-warning":e}),Pi=(l,a,e)=>({"btn-secondary":l,"btn-soft-danger":a,"btn-soft-success":e}),P=l=>({disabled:l}),Ce=l=>({active:l}),Ai=(l,a,e)=>({"text-danger":l,"text-warning":a,"text-success":e}),Sn=(l,a,e)=>({"text-success":l,"text-warning":a,"text-danger":e});function zd(l,a){if(l&1){let e=b();i(0,"img",130),_("error",function(o){u(e);let s=c(2);return g(s.onImageError(o))}),t()}if(l&2){let e=c().$implicit;m("src",e.logo_url,j)}}function Hd(l,a){l&1&&p(0,"img",124)}function qd(l,a){if(l&1){let e=b();i(0,"button",131),_("click",function(){u(e);let o=c().$implicit,s=c();return g(s.opencontractpagedirect(o))}),r(1," Vertragspr\xFCfung "),t()}}function Rd(l,a){}function Dd(l,a){if(l&1){let e=b();i(0,"div",198)(1,"img",199),_("error",function(){u(e);let o=c(3);return g(o.logoAvailable=!1)}),t()()}if(l&2){let e=c(3);d(),m("src",L(e.opened_company_data.logo_url),j)}}function Od(l,a){l&1&&(i(0,"span"),r(1,"Monat"),t())}function Bd(l,a){l&1&&(i(0,"span"),r(1,"Monate"),t())}function $d(l,a){if(l&1){let e=b();i(0,"button",211),_("click",function(){u(e);let o=c().$implicit,s=c(3);return g(s.openTermination(o))}),r(1," K\xFCndigen "),t()}}function Gd(l,a){l&1&&(i(0,"button",212),r(1," K\xFCndigung vorgemerkt "),t())}function Ld(l,a){if(l&1&&(i(0,"button",213),r(1),V(2,"date"),t()),l&2){let e=c().$implicit;d(),M(" K\xFCndigungsfrist aktiv (endet am ",N(2,1,e.notice_period_end_date,"dd.MM.yyyy"),") ")}}function Ud(l,a){if(l&1){let e=b();H(0),i(1,"tr",200)(2,"td",120),r(3),t(),i(4,"td",201),r(5),t(),i(6,"td",202),r(7),t(),i(8,"td",203),r(9),v(10,Od,2,0,"span",161)(11,Bd,2,0,"span",161),t(),i(12,"td",203),r(13),V(14,"date"),t(),i(15,"td",204),p(16,"i",125),t(),i(17,"td",205)(18,"div",206)(19,"button",207),_("click",function(){let o=u(e).$implicit,s=c(3);return g(s.open_subscription(o))}
28),r(20),t(),v(21,$d,2,0,"button",208)(22,Gd,2,0,"button",209)(23,Ld,3,4,"button",210),t()()(),q()}if(l&2){let e=a.$implicit,n=c(3);d(),m("id",Qe("removeBlur",e._id)),d(2),y(n.startRecord),d(2),M(" ",e.available_subscription_info[0].subscription_name," "),d(2),M(" \u20AC ",n.userService.convert_currency(e.gross_price)," "),d(2),M(" ",e.duration," "),d(),m("ngIf",e.duration<=1),d(),m("ngIf",e.duration>1),d(2),M(" ",N(14,14,e.createdAt,"dd.MM.yyyy")," "),d(3),m("ngClass",e.active==1?"text-success":"text-danger"),d(4),M(" ",(n.opened_subscription_data==null?null:n.opened_subscription_data._id)===e._id?"Schlie\xDFen":"\xD6ffnen"," "),d(),m("ngIf",e.active==1&&e.subscription_status!=="notice_period_active"&&e.subscription_status!=="terminated"),d(),m("ngIf",e.active==1&&e.subscription_status==="cancellation_requested"),d(),m("ngIf",e.active==1&&e.subscription_status==="notice_period_active")}}function jd(l,a){l&1&&(i(0,"tr")(1,"td",214),p(2,"app-no-data"),t()())}function Kd(l,a){if(l&1&&(i(0,"p",221),r(1),t()),l&2){let e=c().$implicit;d(),M("",e.ticket_no,".pdf")}}function Wd(l,a){l&1&&(i(0,"td"),p(1,"i",240),r(2," verifiziert "),t())}function Zd(l,a){l&1&&p(0,"td")}function Jd(l,a){l&1&&(i(0,"td"),p(1,"i",241),r(2," nicht verifiziert "),t())}function Qd(l,a){if(l&1&&(i(0,"td")(1,"button",222)(2,"a",242),r(3,"\xD6ffnen"),t()()()),l&2){let e=c().$implicit;d(2),m("href",L(e==null?null:e.url),j)}}function Xd(l,a){if(l&1){let e=b();i(0,"td")(1,"button",243),_("click",function(){u(e);let o=c().$implicit,s=c(6);return g(s.viewCompanySubscriptionnew(s.opened_company_data,o))}),r(2,"\xD6ffnen"),t()()}}function Yd(l,a){if(l&1){let e=b();i(0,"td")(1,"button",244),_("click",function(){u(e);let o=c().$implicit,s=c(6);return g(s.viewCompanySubscriptionnew(s.opened_company_data,o))}),r(2,"Vertragspr\xFCfung"),t()()}}function em(l,a){if(l&1&&(H(0),i(1,"tr")(2,"td")(3,"p",221),r(4),t()(),i(5,"td")(6,"p",221),r(7),t()(),i(8,"td"),v(9,Kd,2,1,"p",238),t(),i(10,"td")(11,"p",221),p(12,"i",239),r(13),t()(),i(14,"td"),r(15),V(16,"date"),V(17,"date"),V(18,"date"),t(),i(19,"td")(20,"p",221),r(21),V(22,"date"),t()(),v(23,Wd,3,0,"td",161)(24,Zd,1,0,"td",161)(25,Jd,3,0,"td",161)(26,Qd,4,2,"td",161)(27,Xd,3,0,"td",161)(28,Yd,3,0,"td",161),t(),q()),l&2){let e=a.$implicit,n=a.index,o=c(6);d(4),y(n+1),d(3),y(e.document_name),d(2),m("ngIf",e.ticket_no!=""),d(4),K(" ",n===1||n==0?"Vereinbart von":"Elektronisch signiert von"," - ",e.upload_by," "),d(2),K(" ",N(16,14,o.opened_subscription_data==null?null:o.opened_subscription_data.createdAt,"dd.MM.yyyy")," - ",o.opened_subscription_data!=null&&o.opened_subscription_data.subscription_ended_at?N(17,17,o.opened_subscription_data==null?null:o.opened_subscription_data.subscription_ended_at,"dd.MM.yyyy"):o.opened_subscription_data!=null&&o.opened_subscription_data.expiry_date?N(18,20,o.opened_subscription_data==null?null:o.opened_subscription_data.expiry_date,"dd.MM.yyyy"):(o.opened_subscription_data==null?null:o.opened_subscription_data.duration)=="Unbegrenzt"?"Unbegrenzt":""," "),d(6),y(N(22,23,o.opened_subscription_data==null?null:o.opened_subscription_data.createdAt,"dd.MM.yyyy HH:mm:ss")),d(2),m("ngIf",e.verified=="1"),d(),m("ngIf",e.verified==""),d(),m("ngIf",e.verified=="0"),d(),m("ngIf",e.nodocument==!0),d(),m("ngIf",e.verified=="1"&&(e==null?null:e.nodocument)!=!0),d(),m("ngIf",e.verified=="0")}}function tm(l,a){if(l&1&&(H(0),v(1,em,29,26,"ng-container",35),q()),l&2){let e=c(5);d(),m("ngForOf",e.contracts.contracts_documents_info_new)}}function nm(l,a){l&1&&(i(0,"td"),p(1,"i",240),r(2," verifiziert "),t())}function im(l,a){l&1&&(i(0,"td"),p(1,"i",241),r(2," nicht verifiziert "),t())}function am(l,a){if(l&1){let e=b();i(0,"td")(1,"button",243),_("click",function(){u(e);let o=c(6);return g(o.viewCompanySubscriptionnew(o.opened_company_data,o.opened_subscription_data.contract_document))}),r(2,"\xD6ffnen"),t()()}}function rm(l,a){if(l&1){let e=b();i(0,"td")(1,"button",244),_("click",function(){u(e);let o=c(6);return g(o.viewCompanySubscriptionnew(o.opened_company_data,o.opened_subscription_data.contract_document))}),r(2,"Vertragspr\xFCfung"),t()()}}function om(l,a){if(l&1&&(H(0),i(1,"tr")(2,"td")(3,"p",221),r(4),t()(),i(5,"td")(6,"p",221),r(7),t()(),i(8,"td")(9,"p",221),r(10),t()(),i(11,"td")(12,"p",221),p(13,"i",239),r(14),t()(),i(15,"td"),r(16),V(17,"date"),V(18,"date"),V(19,"date"),t(),i(20,"td")(21,"p",221),r(22),V(23,"date"),t()(),v(24,nm,3,0,"td",161)(25,im,3,0,"td",161)(26,am,3,0,"td",161)(27,rm,3,0,"td",161),t(),q()),l&2){let e=c(4).index,n=c();d(4),y(1),d(3),y(n.opened_subscription_data.contract_document.document_name),d(3),M("",n.opened_subscription_data.contract_document.ticket_no,".pdf"),d(4),M(" ",e===1?"Vereinbart":"Elektronisch signiert"," "),d(2),K(" ",N(17,11,n.companysubscriptiondetails[0]==null?null:n.companysubscriptiondetails[0].createdAt,"dd.MM.yyyy")," - ",n.contracts!=null&&n.contracts.subscription_ended_at?N(18,14,n.contracts==null?null:n.contracts.subscription_ended_at,"dd.MM.yyyy"):n.contracts!=null&&n.contracts.expiry_date?N(19,17,n.contracts==null?null:n.contracts.expiry_date,"dd.MM.yyyy"):(n.contracts==null?null:n.contracts.duration)=="Unbegrenzt"?"Unbegrenzt":""," "),d(6),y(N(23,20,n.opened_subscription_data.contract_document.createdAt,"dd.MM.yyyy HH:mm:ss")),d(2),m("ngIf",n.opened_subscription_data.contract_document.verified=="1"),d(),m("ngIf",n.opened_subscription_data.contract_document.verified=="0"),d(),m("ngIf",n.opened_subscription_data.contract_document.verified=="1"),d(),m("ngIf",n.opened_subscription_data.contract_document.verified=="0")}}function lm(l,a){if(l&1){let e=b();i(0,"button",245),_("click",function(){u(e);let o=c(5);return g(o.changeCompanyStatus(o.opened_company_data))}),r(1),t()}if(l&2){let e=c(5);m("ngClass",Be(3,Pi,e.verifiedcontract<2,e.verifiedcontract>=2&&e.opened_company_data.active==1,e.verifiedcontract>=2&&e.opened_company_data.active==0))("disabled",e.verifiedcontract<2),d(),M(" ",e.opened_company_data.active==0?"Aktivieren":"Deaktivieren"," ")}}function dm(l,a){if(l&1&&(i(0,"div",216)(1,"div",217)(2,"div",218)(3,"div",219)(4,"div",220)(5,"h5",221),r(6,"Limits:"),t(),i(7,"button",222),p(8,"i",223),t()(),i(9,"div",224)(10,"div",225)(11,"div",226),p(12,"circle-progress",227),i(13,"span",228),r(14,"Arbeitspl\xE4tze"),t()()(),i(15,"div",225)(16,"div",226),p(17,"circle-progress",227),i(18,"span",228),r(19,"Benutzer"),t()()(),i(20,"div",225)(21,"div",226),p(22,"circle-progress",227),i(23,"span",228),r(24,"Mitarbeiter"),t()()(),i(25,"div",225)(26,"div",226),p(27,"circle-progress",227),i(28,"span",228),r(29,"Abteilungen"),t()()(),i(30,"div",225)(31,"div",226),p(32,"circle-progress",227),V(33,"storageUnit"),V(34,"storageUnit"),i(35,"span",228),r(36,"Daten speicherung"),t()()()()()(),i(37,"div",229)(38,"div",230)(39,"h5",221),r(40,"Vertrag"),t(),i(41,"p"),r(42,"verifizierter Vertrag : "),i(43,"span",186),r(44),t(),p(45,"i",231),t()(),i(46,"table",232)(47,"thead")(48,"tr",186)(49,"td"),r(50,"#"),t(),i(51,"td"),r(52,"Vertrag"),t(),i(53,"td",233),r(54,"Vertrag ID"),t(),i(55,"td"),r(56,"\xDCberpr\xFCfte Vereinbarungsberechtigung"),t(),i(57,"td"),r(58,"Vertragsbeginn"),t(),i(59,"td"),r(60,"Datum der Unterzeichnung"),t(),i(61,"td"),r(62,"Vertragsstatus"),t(),i(63,"td"),r(64,"Interaktionen"),t()()(),i(65,"tbody"),v(66,tm,2,1,"ng-container",190)(67,om,28,23,"ng-template",null,2,Xe),t()()(),i(69,"div",234)(70,"div")(71,"h5",235),r(72,"M\xF6chten Sie den Account aktivieren ? "),p(73,"
28i",236),t(),i(74,"p",221),r(75,"Der Nutzer wird per E-Mail benachrichtigt "),t()(),v(76,lm,2,7,"button",237),t()()()),l&2){let e=G(68),n=c(4);d(12),m("percent",n.getPercentage("job_limit"))("title",(n.opened_subscription_data==null?null:n.opened_subscription_data.used_job_limit)+"/"+(n.opened_subscription_data==null?null:n.opened_subscription_data.job_limit))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!0)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(5),m("percent",n.getPercentage("user_limit"))("title",(n.opened_subscription_data==null?null:n.opened_subscription_data.used_user_limit)+"/"+(n.opened_subscription_data==null?null:n.opened_subscription_data.user_limit))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!1)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(5),m("percent",n.getPercentage("employee_limit"))("title",(n.opened_subscription_data==null?null:n.opened_subscription_data.used_employee_limit)+"/"+(n.opened_subscription_data==null?null:n.opened_subscription_data.employee_limit))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!0)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(5),m("percent",n.getPercentage("department_limit"))("title",(n.opened_subscription_data==null?null:n.opened_subscription_data.used_department_limit)+"/"+(n.opened_subscription_data==null?null:n.opened_subscription_data.department_limit))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!0)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(5),m("percent",n.getPercentage("data_storage_capacity"))("title",N(33,100,n.opened_subscription_data==null?null:n.opened_subscription_data.used_data_storage_capacity,"GB")+"/"+N(34,103,n.opened_subscription_data==null?null:n.opened_subscription_data.data_storage_capacity,"GB"))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!0)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(12),K("",n.verifiedcontract,"/",n.contracts.contracts_documents_info_new==null?null:n.contracts.contracts_documents_info_new.length),d(22),m("ngIf",n.contracts.contracts_documents_info_new)("ngIfElse",e),d(10),m("ngIf",n.opened_company_data.registration_completed==1&&(n.getCompanyStatus(n.opened_company_data)!="1"||!n.opened_company_data.manual_activation_required||n.opened_company_data.manual_activation_required&&n.opened_company_data.manual_activation_status==1))}}function mm(l,a){if(l&1&&(H(0),v(1,dm,77,106,"div",215),q()),l&2){let e=a.$implicit,n=c(3);d(),m("ngIf",(n.opened_subscription_data==null?null:n.opened_subscription_data._id)==e._id)}}function sm(l,a){l&1&&p(0,"i",253)}function cm(l,a){l&1&&p(0,"i",254)}function pm(l,a){if(l&1){let e=b();i(0,"div",248),_("click",function(){u(e);let o=c().index,s=c(3);return g(s.opened.ceo[o]=!s.opened.ceo[o])}),i(1,"h5",249),p(2,"i",250),r(3),v(4,sm,1,0,"i",251)(5,cm,1,0,"i",252),t()()}if(l&2){let e=c().index,n=c(3);d(3),K("\xA0\xA0 ",n.company_ceos.controls[e].controls.firstname.value," ",n.company_ceos.controls[e].controls.lastname.value," "),d(),m("ngIf",!n.opened.
28ceo[e]),d(),m("ngIf",n.opened.ceo[e])}}function _m(l,a){if(l&1){let e=b();i(0,"div",263)(1,"button",269),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.company_ceos.removeAt(o))}),r(2,"Entfernen"),t()()}}function um(l,a){if(l&1){let e=b();i(0,"div",270)(1,"button",271),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.opened.ceo[o]=!s.opened.ceo[o])}),p(2,"i",272),r(3,"\xA0"),p(4,"i",273),t()()}if(l&2){let e=c(2).index;m("ngClass",e==0?"col-sm-12":"col-sm-6")}}function gm(l,a){if(l&1){let e=b();i(0,"div",255)(1,"div",79)(2,"h6"),r(3,"Anrede:"),t(),i(4,"mat-radio-group",88)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",79)(14,"mat-form-field",256)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",257),t()(),i(18,"div",79)(19,"mat-form-field",256)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",258),t()(),i(23,"div",79)(24,"mat-form-field",256)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",259)(28,"mat-datepicker-toggle",260)(29,"mat-datepicker",261,3),t()(),i(31,"div",79)(32,"mat-form-field",256)(33,"mat-label"),r(34,"Stra\xDFe"),t(),i(35,"input",262,4),_("onAddressChange",function(o){u(e);let s=c().index,h=c(3);return g(h.handleAllFieldsfirst(o,s,"company_ceos"))}),t()()(),i(37,"div",263)(38,"mat-form-field",256)(39,"mat-label"),r(40,"Haus Nr."),t(),p(41,"input",264),t()(),i(42,"div",263)(43,"mat-form-field",256)(44,"mat-label"),r(45,"PLZ"),t(),p(46,"input",265),t()(),i(47,"div",79)(48,"mat-form-field",256)(49,"mat-label"),r(50,"Stadt"),t(),p(51,"input",104),t()(),i(52,"div",79)(53,"mat-form-field",256)(54,"mat-label"),r(55,"Land"),t(),p(56,"input",266),t()(),v(57,_m,3,0,"div",267)(58,um,5,1,"div",268),i(59,"div",79),p(60,"hr"),t()()}if(l&2){let e=G(30),n=c().index,o=c(3);m("formGroupName",n),d(27),m("matDatepicker",e)("min",o.minDate)("max",o.maxDate),d(),m("for",e),d(7),m("options",o.options),d(22),m("ngIf",n!=0),d(),m("ngIf",o.company_ceos.controls[n].valid)}}function hm(l,a){if(l&1&&(H(0),v(1,pm,6,4,"div",246)(2,gm,61,8,"div",247),q()),l&2){let e=a.index,n=c(3);d(),m("ngIf",n.company_ceos.controls[e].valid),d(),m("ngIf",!n.opened.ceo[e])}}function fm(l,a){l&1&&p(0,"i",253)}function xm(l,a){l&1&&p(0,"i",254)}function vm(l,a){if(l&1){let e=b();i(0,"div",248),_("click",function(){u(e);let o=c().index,s=c(3);return g(s.opened.authorized[o]=!s.opened.authorized[o])}),i(1,"h5",249),p(2,"i",250),r(3),v(4,fm,1,0,"i",251)(5,xm,1,0,"i",252),t()()}if(l&2){let e=c().index,n=c(3);d(3),K("\xA0\xA0 ",n.company_other_authorized_persons.controls[e].controls.firstname.value," ",n.company_other_authorized_persons.controls[e].controls.lastname.value," "),d(),m("ngIf",!n.opened.authorized[e]),d(),m("ngIf",n.opened.authorized[e])}}function ym(l,a){if(l&1){let e=b();i(0,"div",276)(1,"button",271),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.opened.authorized[o]=!s.opened.authorized[o])}),p(2,"i",272),r(3,"\xA0"),p(4,"i",273),t()()}}function bm(l,a){if(l&1){let e=b();i(0,"div",255)(1,"div",79)(2,"h6"),r(3,"Anrede:"),t(),i(4,"mat-radio-group",88)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",79)(14,"mat-form-field",256)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",257),t()(),i(18,"div",79)(19,"mat-form-field",256)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",258),t()(),i(23,"div",79)(24,"mat-form-field",256)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",259)(28,"mat-datepicker-toggle",260)(29,"mat-datepicker",261,3),t()(),i(31,"div",79)(32,"mat-form-field",256)(33,"mat-label"),r(34,"Stra\xDFe"),t(),i(35,"input",262,4),_("onAddressChange",function(o){u(e);let s=c().index,h=c(3);return g(h.handleAllFieldsfirst(o,s,"company_other_authorized_persons"))}),t()()(),i(37,"div",263)(38,"mat-form-field",256)(39,"mat-label"),r(40,"Haus Nr."),t(),p(41,"input",264),t()(),i(42,"div",263)(43,"mat-form-field",256)(44,"mat-label"),r(45,"PLZ"),t(),p(46,"input",265),t()(),i(47,"div",79)(48,"mat-form-field",256)(49,"mat-label"),r(50,"Stadt"),t(),p(51,"input",104),t()(),i(52,"div",79)(53,"mat-form-field",256)(54,"mat-label"),r(55,"Land"),t(),p(56,"input",266),t()(),i(57,"div",263)(58,"button",274),_("click",function(){u(e);let o=c().index,s=c(3);return g(s.removeAuthorizedPerson(o))}),r(59,"Entfernen"),t()(),v(60,ym,5,0,"div",275),i(61,"div",79),p(62,"hr"),t()()}if(l&2){let e=G(30),n=c().index,o=c(3);m("formGroupName",n),d(27),m("matDatepicker",e)("min",o.minDate)("max",o.maxDate),d(),m("for",e),d(7),m("options",o.options),d(25),m("ngIf",o.company_other_authorized_persons.
28controls[n].valid)}}function Cm(l,a){if(l&1&&(H(0),v(1,vm,6,4,"div",246)(2,bm,63,7,"div",247),q()),l&2){let e=a.index,n=c(3);d(),m("ngIf",n.company_other_authorized_persons.controls[e].valid),d(),m("ngIf",!n.opened.authorized[e])}}function Sm(l,a){l&1&&p(0,"i",253)}function Em(l,a){l&1&&p(0,"i",254)}function wm(l,a){if(l&1){let e=b();i(0,"div",248),_("click",function(){u(e);let o=c().index,s=c(3);return g(s.opened.shareholder[o]=!s.opened.shareholder[o])}),i(1,"h5",249),p(2,"i",250),r(3),v(4,Sm,1,0,"i",251)(5,Em,1,0,"i",252),t()()}if(l&2){let e=c().index,n=c(3);d(3),K("\xA0\xA0 ",n.company_shareholders.controls[e].controls.firstname.value," ",n.company_shareholders.controls[e].controls.lastname.value," "),d(),m("ngIf",n.opened.shareholder[e]),d(),m("ngIf",!n.opened.shareholder[e])}}function Mm(l,a){l&1&&(i(0,"label",280),p(1,"i",281),r(2,'Sie m\xFCssen mindestens 95% aller wirtschaftlich Berechtigten angeben. Klicken Sie im unteren Verlauf auf "Mehr hinzuf\xFCgen" um weitere wirtschaftlich Berechtigte hinzuzuf\xFCgen.'),t())}function km(l,a){l&1&&(i(0,"label",280),p(1,"i",281),r(2,"100% Unternehmensanteile ist das Maximum. Bitte geben Sie einen korrekten Wert an."),t())}function Im(l,a){if(l&1){let e=b();i(0,"div",263)(1,"button",269),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.company_shareholders.removeAt(o))}),r(2,"Entfernen"),t()()}}function Fm(l,a){if(l&1){let e=b();i(0,"div",270)(1,"button",271),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.opened.shareholder[o]=!s.opened.shareholder[o])}),p(2,"i",272),r(3,"\xA0"),p(4,"i",273),t()()}if(l&2){let e=c(2).index;m("ngClass",e==0?"col-sm-12":"col-sm-6")}}function Tm(l,a){if(l&1){let e=b();i(0,"div",255)(1,"div",79)(2,"h6"),r(3,"Anrede:"),t(),i(4,"mat-radio-group",88)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",79)(14,"mat-form-field",256)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",257),t()(),i(18,"div",79)(19,"mat-form-field",256)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",258),t()(),i(23,"div",79)(24,"mat-form-field",256)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",259)(28,"mat-datepicker-toggle",260)(29,"mat-datepicker",261,3),t()(),i(31,"div",79)(32,"mat-form-field",256)(33,"mat-label"),r(34,"Stra\xDFe"),t(),i(35,"input",262,4),_("onAddressChange",function(o){u(e);let s=c().index,h=c(3);return g(h.handleAllFieldsfirst(o,s,"company_shareholders"))}),t()()(),i(37,"div",263)(38,"mat-form-field",256)(39,"mat-label"),r(40,"Haus Nr."),t(),p(41,"input",264),t()(),i(42,"div",263)(43,"mat-form-field",256)(44,"mat-label"),r(45,"PLZ"),t(),p(46,"input",265),t()(),i(47,"div",79)(48,"mat-form-field",256)(49,"mat-label"),r(50,"Stadt"),t(),p(51,"input",104),t()(),i(52,"div",79)(53,"mat-form-field",256)(54,"mat-label"),r(55,"Land"),t(),p(56,"input",266),t()(),i(57,"div",79)(58,"span",277),r(59,"Bitte geben Sie den prozentualen Unternehmensanteil an."),t(),i(60,"mat-form-field",278)(61,"mat-label"),r(62,"Unternehmensanteil in Prozent"),t(),p(63,"input",279),t(),v(64,Mm,3,0,"label",174)(65,km,3,0,"label",174),t(),v(66,Im,3,0,"div",267)(67,Fm,5,1,"div",268),i(68,"div",79),p(69,"hr"),t()()}if(l&2){let e=G(30),n=c().index,o=c(3);m("formGroupName",n),d(27),m("matDatepicker",e)("min",o.minDate)("max",o.maxDate),d(),m("for",e),d(7),m("options",o.options),d(29),m("ngIf",o.company_
28shareholders.controls.length-1==n&&o.company_shareholders.controls[o.company_shareholders.controls.length-1].valid&&o.check_total_shareholding()<95),d(),m("ngIf",o.company_shareholders.controls.length-1==n&&o.check_total_shareholding()>100),d(),m("ngIf",n!=0),d(),m("ngIf",o.company_shareholders.controls[n].valid)}}function Pm(l,a){if(l&1&&(H(0),v(1,wm,6,4,"div",246)(2,Tm,70,10,"div",247),q()),l&2){let e=a.index,n=c(3);d(),m("ngIf",n.company_shareholders.controls[e].valid),d(),m("ngIf",n.opened.shareholder[e])}}function Am(l,a){l&1&&(i(0,"label",280),p(1,"i",281),r(2,'Sie m\xFCssen mindestens 95% aller wirtschaftlich Berechtigten angeben. Klicken Sie im unteren Verlauf auf "Mehr hinzuf\xFCgen" um weitere wirtschaftlich Berechtigte hinzuzuf\xFCgen.'),t())}function Vm(l,a){l&1&&(i(0,"label",280),p(1,"i",281),r(2,"100% Unternehmensanteile ist das Maximum. Bitte geben Sie einen korrekten Wert an."),t())}function Nm(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function zm(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),r(6),t(),i(7,"td"),r(8),t(),i(9,"td")(10,"button",271),_("click",function(){let o=u(e).$implicit,s=c(3);return g(s.openUser(o))}),r(11,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index,o=c(3);d(2),y(o.startRecord_users+n),d(2),y(e.title+" "+e.firstname+" "+e.lastname),d(2),y(e.email),d(2),y(e.user_role_name)}}function Hm(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.setPage_users(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(4);m("ngClass",k(2,Ce,n.pager_users.currentPage===e)),d(2),y(e)}}function qm(l,a){if(l&1){let e=b();i(0,"tfoot")(1,"tr")(2,"td",283)(3,"div",284)(4,"ul",285)(5,"li",286)(6,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_users(1))}),r(7,"<<"),t()(),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_users(o.pager_users.currentPage-1))}),r(10,"<"),t()(),v(11,Hm,3,4,"li",288),i(12,"li",286)(13,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_users(o.pager_users.currentPage+1))}),r(14,">"),t()(),i(15,"li",286)(16,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_users(o.pager_users.totalPages))}),r(17,">>"),t()()()()()()()}if(l&2){let e=c(3);d(5),m("ngClass",k(5,P,e.pager_users.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_users.currentPage===1)),d(3),m("ngForOf",e.pager_users.pages),d(),m("ngClass",k(9,P,e.pager_users.currentPage===e.pager_users.totalPages)),d(3),m("ngClass",k(11,P,e.pager_users.currentPage===e.pager_users.totalPages))}}function Rm(l,a){if(l&1&&(i(0,"p",290),r(1),t()),l&2){let e=c().$implicit;d(),y(e==null||e.user_info==null?null:e.user_info.email)}}function Dm(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),v(5,Rm,2,1,"p",289),t(),i(6,"td"),p(7,"i",125),t(),i(8,"td"),r(9),V(10,"date"),t(),i(11,"td")(12,"button",271),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.openUser(o.user_info))}),r(13,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index;d(2),y(n+1),d(2),M(" ",(e==null||e.user_info==null?null:e.user_info.title)+" "+(e==null||e.user_info==null?null:e.user_info.firstname)+" "+(e==null||e.user_info==null?null:e.user_info.lastname)," "),d(),m("ngIf",e==null||e.user_info==null?null:e.user_info.email),d(2),m("ngClass",Be(8,Ai,(e==null?null:e.contract_created)=="0",(e==null?null:e.contract_created)!="0"&&e.last_job_contract&&(!(!(e==null||e.last_job_contract[0]==null)&&e.last_job_contract[0].signatures)||(e==null||e.last_job_contract[0]==null?null:e.last_job_contract[0].signatures)==""),e.last_job_contract&&(e==null||e.last_job_contract[0]==null?null:e.last_job_contract[0].signatures)&&(e==null||e.last_job_contract[0]==null?null:e.last_job_contract[0].signatures)!="")),d(2),M(" ",e!=null&&e.employement_data&&(e!=null&&e.employement_data[0])?N(10,5,e==null||e.employement_data==null?null:e.employement_data.at(-1).from_date,"dd.MM.yyyy"):""," ")}}function Om(l,a){if(l&1&&(i(0,"tbody"),v(1,Dm,14,12,"tr",35),t()),l&2){let e=c(3);d(),m("ngForOf",e.pagedItems_employees)}}function Bm(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function $m(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.setPage_employee(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(4);m("ngClass",k(2,Ce,n.pager_employees.currentPage===e)),d(2),y(e)}}function Gm(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_employee(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_employee(o.pager_employees.currentPage-1))}),r(6," < "),t()(),v(7,$m,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_employee(o.pager_employees.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_employee(o.pager_employees.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(3);d(),m("ngClass",k(5,P,e.pager_employees.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_employees.currentPage===1)),d(3),m("ngForOf",e.pager_employees.pages),d(),m("ngClass",k(9,P,e.pager_employees.currentPage===e.pager_employees.totalPages)),d(3),m("ngClass",k(11,P,e.pager_employees.currentPage===e.pager_employees.totalPages))}}function Lm(l,a){if(l&1&&(i(0,"tr")(1,"td",291)(2,"div",292)(3,"div",293)(4,"mat-form-field",256)(5,"mat-label"),r(6,"Abteilungsname"),t(),p(7,"input",294),t()(),i(8,"div",79)(9,"h6"),r(10,"Details des Benutzers, der diese Abteilung hinzugef\xFCgt hat:"),t()(),i(11,"div",263)(12,"mat-form-field",256)(13,"mat-label"),r(14,"Nutzername"),t(),p(15,"input",295),t()(),i(16,"div",263)(17,"mat-form-field",256)(18,"mat-label"),r(19,"E-Mail"),t(),p(20,"input",296
28),t()(),i(21,"div",79)(22,"h6"),r(23,"Offizielle Gesch\xE4ftsadresse:"),t()(),i(24,"div",297)(25,"div",13)(26,"div",164)(27,"mat-form-field",256)(28,"mat-label"),r(29,"Stra\xDFe"),t(),p(30,"input",298),t()(),i(31,"div",299)(32,"mat-form-field",256)(33,"mat-label"),r(34,"Haus Nr."),t(),p(35,"input",300),t()(),i(36,"div",299)(37,"mat-form-field",256)(38,"mat-label"),r(39,"PLZ"),t(),p(40,"input",301),t()(),i(41,"div",164)(42,"mat-form-field",256)(43,"mat-label"),r(44,"Stadt"),t(),p(45,"input",302),t()(),i(46,"div",263)(47,"mat-form-field",256)(48,"mat-label"),r(49,"C/O Appartmentnummer, T\xFCrcode, usw."),t(),p(50,"input",303),t()(),i(51,"div",263)(52,"mat-form-field",256)(53,"mat-label"),r(54,"Land"),t(),p(55,"input",304),t()()()()()()()),l&2){let e=c(5);d(7),m("value",e.opened_department_details.name),d(8),m("value",(e.opened_department_details.added_by_info[0]==null?null:e.opened_department_details.added_by_info[0].title)+" "+(e.opened_department_details.added_by_info[0]==null?null:e.opened_department_details.added_by_info[0].firstname)+" "+(e.opened_department_details.added_by_info[0]==null?null:e.opened_department_details.added_by_info[0].lastname)),d(5),m("value",e.opened_department_details.added_by_info[0]==null?null:e.opened_department_details.added_by_info[0].email),d(10),m("value",e.opened_department_details==null?null:e.opened_department_details.street),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.streetNumber),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.postCode),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.city),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.appartment_number),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.country)}}function Um(l,a){if(l&1){let e=b();H(0),i(1,"tr")(2,"td"),r(3),t(),i(4,"td"),r(5),t(),i(6,"td"),r(7),V(8,"date"),t(),i(9,"td")(10,"button",243),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.open_department(o))}),r(11),t()()(),v(12,Lm,56,9,"tr",161),q()}if(l&2){let e=a.$implicit,n=a.index,o=c(4);d(3),y(o.startRecord_departments+n),d(2),y(e.name),d(2),y(N(8,5,e.createdAt,"dd.MM.yyyy")),d(4),M(" ",(o.opened_department_details==null?null:o.opened_department_details._id)===e._id?"Schlie\xDFen":"\xD6ffnen"," "),d(),m("ngIf",(o.opened_department_details==null?null:o.opened_department_details._id)===e._id)}}function jm(l,a){if(l&1&&(H(0),v(1,Um,13,8,"ng-container",35),q()),l&2){let e=c(3);d(),m("ngForOf",e.pagedItems_departments)}}function Km(l,a){l&1&&(i(0,"tr")(1,"td",305),p(2,"app-no-data"),t()())}function Wm(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),p(6,"img",317),t(),i(7,"td"),r(8),t(),i(9,"td"),r(10),V(11,"date"),t(),i(12,"td")(13,"button",271),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.openCustomer(o))}),r(14,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index,o=c(4);d(2),y(o.startRecord_HrCustomers+n),d(2),y(e.customer_company_info.company_name),d(2),m("src",L(e.customer_company_info.logo_url),j),d(2),y(e.department_count),d(2),y(N(11,6,e.createdAt,"dd.MM.yyyy"))}}function Zm(l,a){l&1&&(i(0,"tr")(1,"td",318),p(2,"app-no-data"),t()())}function Jm(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(5);return g(s.setPage_HrCustomers(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(5);m("ngClass",k(2,Ce,n.pager_HrCustomers.currentPage===e)),d(2),y(e)}}function Qm(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_HrCustomers(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_HrCustomers(o.pager_HrCustomers.currentPage-1))}),r(6," < "),t()(),v(7,Jm,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_HrCustomers(o.pager_HrCustomers.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_HrCustomers(o.pager_HrCustomers.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(4);d(),m("ngClass",k(5,P,e.pager_HrCustomers.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_HrCustomers.currentPage===1)),d(3),m("ngForOf",e.pager_HrCustomers.pages),d(),m("ngClass",k(9,P,e.pager_HrCustomers.currentPage===e.pager_HrCustomers.totalPages)),d(3),m("ngClass",k(11,P,e.pager_HrCustomers.currentPage===e.pager_HrCustomers.totalPages))}}function Xm(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function Ym(l,a){if(l&1&&(i(0,"p",322),r(1),V(2,"date"),t()),l&2){let e=c().$implicit;d(),M("Angebot gesendet am ",N(2,1,e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent_at,"dd.MM.yyyy"))}}function es(l,a){if(l&1){let e=b();i(0,"button",323),_("click",function(){u(e);let o=c().$implicit,s=c(4);return g(s.send_interested_customer_offer(o==null?null:o.Requested_to[0]))}),r(1,"Angebot senden "),p(2,"i",324),t()}}function ts(l,a){if(l&1&&(i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),v(5,Ym,3,4,"p",319),t(),i(6,"td",122),p(7,"i",125),t(),i(8,"td",122),r(9),V(10,"date"),t(),i(11,"td",126)(12,"button",320),r(13,"\xD6ffnen"),t(),v(14,es,3,0,"button",321),t()()),l&2){let e=a.$implicit,n=a.index,o=c(4);d(2),y(o.startRecord_requests+n),d(2),M(" ",e==null||e.Requested_to[0]==null?null:e.Requested_to[0].company_name," "),d(),m("ngIf",e==null||e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent_at),d(2),m("ngClass",Be(9,Sn,(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent)=="1",(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].interested_data_status)=="1"&&(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent)!="1",(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].interested_data_status)=="0")),d(2),y(N(10,6,e.createdAt,"dd.MM.yyyy")),d(5),m("ngIf",(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].interested_data_status)=="1"&&(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent)!="1")}}function ns(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(5);return g(s.setPage_requests(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(5);m("ngClass",k(2,Ce,n.pager_requests.currentPage===e)),d(2),y(e)}}function is(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_requests(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_requests(o.pager_requests.currentPage-1))}),r(6," < "),t()(),v(7,ns,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_requests(o.pager_requests.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_requests(o.pager_requests.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(4);d(),m("ngClass",k(5,P,e.pager_requests.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_requests.currentPage===1)),d(3),m("ngForOf",e.pager_requests.pages),d(),m("ngClass",k(9,P,e.pager_requests.currentPage===e.pager_requests.totalPages)),d(3),m("ngClass",k(11,P,e.pager_requests.currentPage===e.pager_requests.totalPages))}}function as(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function rs(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),p(6,"i",125),t(),i(7,"td"),r(8),V(9,"date"),t(),i(10,"td")(11,"button",325),_("click",function(){let o=u(e).$implicit,s=c(4);return s.opened_request=o,g(s.open_modal("viewCustomerRequestModal"))}),r(12,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index,o=c(4);d(2),y(o.startRecord_Receivedrequests+n),d(2),y(e==null||e.Requested_from==null||e.Requested_from[0]==null?null:e.Requested_from[0].company_name),d(2),m("ngClass",e.status.at(-1).status==1?"text-success":"text-danger"),d(2),y(N(9,4,e.createdAt,"dd.MM.yyyy"))}}function os(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(5);return g(s.setPage_Receivedrequests(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(5);m("ngClass",k(2,Ce,n.pager_Receivedrequests.currentPage===e)),d(2),y(e)}}function ls(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_Receivedrequests(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.currentPage-1))}),r(6," < "),t()(),v(7,os,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(4);d(),m("ngClass",k(5,P,e.pager_Receivedrequests.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_Receivedrequests.currentPage===1)),d(3),m("ngForOf",e.pager_Receivedrequests.pages),d(),m("ngClass",k(9,P,e.pager_Receivedrequests.currentPage===e.pager_Receivedrequests.totalPages)),d(3),m("ngClass",k(11,P,e.pager_Receivedrequests.currentPage===e.pager_Receivedrequests.totalPages))}}function ds(l,a){if(l&1){let e=b();i(0,"mat-tab",306)(1,"mat-tab-group",307),_("selectedTabChange",function(o){u(e);let s=c(3);return g(s.customerTabChanged(o.index))}),i(2,"mat-tab",23)(3,"div",176)(4,"div",79)(5,"h6",308),p(6,"img",309),r(7,"\xA0 Dies sind Ihre Kundenunternehmen, denen Sie Mitarbeiter zur Arbeitnehmer\xFCberlassung:"),t(),i(8,"div",310)(9,"div",180)(10,"div",13)(11,"div",14)(12,"input",311),_("keyup.enter",function(o){u(e);let s=c(3);return g(s.searchHrCustomers(o))}),t()(),i(13,"div",16)(14,"button",312),_("click",function(){u(e);let o=c(3);return o.open_modal("selectCustomerTypeModal"),g(o.resetOnboardingModal())})("mouseover",function(){u(e);let o=c(3);return g(o.isHovering=!0)})("mouseout",function(){u(e);let o=c(3);return g(o.isHovering=!1)}),p(15,"img",313),i(16,"span",19),r(17,"Kunden hinzuf\xFCgen"),t()()(),i(18,"div",20)(19,"span",21),r(20),t()()()()()(),i(21,"div",79)(22,"table",185)(23,"thead")(24,"tr",186)(25,"td"),r(26,"#"),t(),i(27,"td"),r(28,"Kundenunternehmen"),t(),i(29,"td"),r(30,"Logo"),t(),i(31,"td"),r(32,"Anzahl der Abteilungen"),t(),i(33,"td"),r(34,"Vertragsbeginn"),t(),i(35,"td"),r(36,"Interaktionen"),t()()(),i(37,"tbody"),v(38,Wm,15,9,"tr",35)(39,Zm,3,0,"tr",161),t()(),i(40,"div",36),v(41,Qm,14,13,"ul",37),t()()()(),i(42,"mat-tab",38)(43,"div",176)(44,"div",79)(45,"h6",308),p(46,"img",309),r(47,"\xA0 Versendete Anfragen: Die folgenden Anfragen wurden an Unternehmen geschickt, um Ihre Kunden zu werden: "),t(),i(48,"div",310)(49,"div",180)(50,"div",13)(51,"div",14)(52,"input",314),_("keyup.enter",function(o){u(e);let s=c(3);return g(s.searchSentCustomerRequests(o))}),t()(),i(53,"div",16)(54,"button",312),_("click",function(){u(e);let o=c(3);return o.open_modal("selectCustomerTypeModal"),g(o.resetOnboardingModal())})("mouseover",function(){u(e);let o=c(3);return g(o.isHovering=!0)})("mouseout",function(){u(e);let o=c(3);return g(o.isHovering=!1)}),p(55,"img",313),i(56,"span",19),r(57,"Interessenten hinzuf\xFCgen"),t()()(),i(58,"div",20)(59,"span",21),r(60),t()()()()()(),i(61,"div",79)(62,"table",185)(63,"thead")(64,"tr")(65,"td"),r(66,"#"),t(),i(67,"td"),r(68,"Kunden"),t(),i(69,"td"),r(70,"Status"),t(),i(71,"td"),r(72,"Anforderungsdatum"),t(),i(73,"td"),r(74,"Interaktion"),t()()(),i(75,"tbody"),v(76,Xm,3,0,"tr",161)(77,ts,15,13,"tr",35),t()(),i(78,"div",36),v(79,is,14,13,"ul",37),t()()()(),i(80,"mat-tab",315)(81,"div",176)(82,"div",79)(83,"h6",308),p(84,"img",309),r(85,"\xA0 Erhaltene Anfragen: HR-Unternehmen baten Sie um Kundenwerdung, um Ihnen Mitarbeiter zu vermieten: "),t(),i(86,"div",310)(87,"div",180)(88,"div",13)(89,"div",14)(90,"input",316),_("keyup.enter",function(o){u(e);let s=c(3);return g(s.searchReceivedCustomerRequests(o))}),t()(),p(91,"div",16),i(92,"div",20)(93,"span",21),r(94),t()()()()()(),i(95,"div",79)(96,"table",185)(97,"thead")(98,"tr")(99,"td"),r(100,"#"),t(),i(101,"td"),r(102,"Personalberatungsunternehmen"),t(),i(103,"td"),r(104,"Status"),t(),i(105,"td"),r(106,"Anforderungsdatum"),t(),i(107,"td"),r(108,"Interaktion"),t()()(),i(109,"tbody"),v(110,as,3,0,"tr",161)(111,rs,13,7,"tr",35),t()(),i(112,"div",36),v(113,ls,14,13,"ul",37),t()()()()()()}if(l&2){let e=c(3);d(),m("selectedIndex",e.selectedCustomerTab),d(14),m("src",e.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j
28),d(5),Y("Anzahl der Ergebnisse: ",e.startRecord_HrCustomers," - ",e.endRecord_HrCustomers," / ",e.total_HrCustomers_count),d(18),m("ngForOf",e.pagedItems_HrCustomers),d(),m("ngIf",!(e.opened_company_data!=null&&e.opened_company_data.HrCustomers)||(e.opened_company_data==null||e.opened_company_data.HrCustomers==null?null:e.opened_company_data.HrCustomers.length)==0),d(2),m("ngIf",e.total_HrCustomers_count),d(14),m("src",e.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j),d(5),Y("Anzahl der Ergebnisse: ",e.startRecord_requests," - ",e.endRecord_requests," / ",e.opened_company_data==null||e.opened_company_data.sentCustomerRequests==null?null:e.opened_company_data.sentCustomerRequests.length),d(16),m("ngIf",!(e.pagedItems_requests!=null&&e.pagedItems_requests.length)),d(),m("ngForOf",e.pagedItems_requests),d(2),m("ngIf",(e.opened_company_data==null||e.opened_company_data.sentCustomerRequests==null?null:e.opened_company_data.sentCustomerRequests.length)>0),d(15),Y("Anzahl der Ergebnisse: ",e.startRecord_Receivedrequests," - ",e.endRecord_Receivedrequests," / ",e.opened_company_data==null||e.opened_company_data.receivedCustomerRequests==null?null:e.opened_company_data.receivedCustomerRequests.length),d(16),m("ngIf",!(e.pagedItems_Receivedrequests!=null&&e.pagedItems_Receivedrequests.length)),d(),m("ngForOf",e.pagedItems_Receivedrequests),d(2),m("ngIf",(e.opened_company_data==null||e.opened_company_data.receivedCustomerRequests==null?null:e.opened_company_data.receivedCustomerRequests.length)>0)}}function ms(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),p(6,"i",125),t(),i(7,"td"),r(8),V(9,"date"),t(),i(10,"td")(11,"button",325),_("click",function(){let o=u(e).$implicit,s=c(5);return s.opened_request=o,g(s.open_modal("viewCustomerRequestModal"))}),r(12,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index,o=c(5);d(2),M("",o.startRecord_Receivedrequests+n," "),d(2),y(e.Requested_from==null||e.Requested_from[0]==null?null:e.Requested_from[0].company_name),d(2),m("ngClass",e.status.at(-1).status==1?"text-success":"text-danger"),d(2),y(N(9,4,e.createdAt,"dd.MM.yyyy"))}}function ss(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function cs(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(6);return g(s.setPage_Receivedrequests(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(6);m("ngClass",k(2,Ce,n.pager_Receivedrequests.currentPage===e)),d(2),M(" ",e," ")}}function ps(l,a){if(l&1){let e=b();i(0,"tfoot")(1,"tr")(2,"td",331)(3,"div",332)(4,"ul",285)(5,"li",286)(6,"a",287),_("click",function(){u(e);let o=c(5);return g(o.setPage_Receivedrequests(1))}),r(7,"<<"),t()(),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(5);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.currentPage-1))}),r(10,"<"),t()(),v(11,cs,3,4,"li",288),i(12,"li",286)(13,"a",287),_("click",function(){u(e);let o=c(5);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.currentPage+1))}),r(14,">"),t()(),i(15,"li",286)(16,"a",287),_("click",function(){u(e);let o=c(5);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.totalPages))}),r(17,">>"),t()()()()()()()}if(l&2){let e=c(5);d(5),m("ngClass",k(5,P,e.pager_Receivedrequests.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_Receivedrequests.currentPage===1)),d(3),m("ngForOf",e.pager_Receivedrequests.pages),d(),m("ngClass",k(9,P,e.pager_Receivedrequests.currentPage===e.pager_Receivedrequests.totalPages)),d(3),m("ngClass",k(11,P,e.pager_Receivedrequests.currentPage===e.pager_Receivedrequests.totalPages))}}function _s(l,a){if(l&1){let e=b();i(0,"mat-tab",330)(1,"div",176)(2,"div",79)(3,"h6",308),p(4,"img",309),r(5,"\xA0 Erhaltene Anfragen: HR-Unternehmen baten Sie um Kundenwerdung, um Ihnen Mitarbeiter zu vermieten: "),t(),i(6,"div",310)(7,"div",180)(8,"div",13)(9,"div",14)(10,"input",316),_("keyup.enter",function(o){u(e);let s=c(4);return g(s.searchReceivedCustomerRequests(o))}),t()(),p(11,"div",16),i(12,"div",20)(13,"span",21),r(14),t()()()()()(),i(15,"div",79)(16,"table",185)(17,"thead")(18,"tr")(19,"td"),r(20,"#"),t(),i(21,"td"),r(22,"Personalberatungsunternehmen"),t(),i(23,"td"),r(24,"Status"),t(),i(25,"td"),r(26,"Anforderungsdatum"),t(),i(27,"td"),r(28,"Interaktion"),t()()(),i(29,"tbody"),v(30,ms,13,7,"tr",35)(31,ss,3,0,"tr",161),t(),v(32,ps,18,13,"tfoot",161),t()()()()}if(l&2){let e=c(4);d(14),Y("Anzahl der Ergebnisse: ",e.startRecord_Receivedrequests," - ",e.endRecord_Receivedrequests," / ",e.opened_company_data==null||e.opened_company_data.receivedCustomerRequests==null?null:e.opened_company_data.receivedCustomerRequests.length),d(16),m("ngForOf",e.pagedItems_Receivedrequests),d(),m("ngIf",!(e.pagedItems_Receivedrequests!=null&&e.pagedItems_Receivedrequests.length)),d(),m("ngIf",(e.opened_company_data==null||e.opened_company_data.receivedCustomerRequests==null?null:e.opened_company_data.receivedCustomerRequests.length)>0)}}function us(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function gs(l,a){if(l&1&&(i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),p(4,"img",317),t(),i(5,"td"),r(6),t(),i(7,"td"),r(8),V(9,"date"),t(),i(10,"td")(11,"button",333),r(12,"\xD6ffnen"),t()()()),l&2){let e=a.$implicit,n=a.index,o=c(4);d(2),y(o.startRecord_partners+n),d(2),m("src",L(e.service_provider_company_info.logo_url),j),d(2),y(e.service_provider_company_info.company_name),d(2),y(N(9,5,e.createdAt,"dd.MM.yyyy"))}}function hs(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(5);return g(s.setPage_partners(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(5);m("ngClass",k(2,Ce,n.pager_partners.currentPage===e)),d(2),y(e)}}function fs(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_partners(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_partners(o.pager_partners.currentPage-1))}),r(6," < "),t()(),v(7,hs,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_partners(o.pager_partners.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_partners(o.pager_partners.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(4);d(),m("ngClass",k(5,P,e.pager_partners.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_partners.currentPage===1)),d(3),m("ngForOf",e.pager_partners.pages),d(),m("ngClass",k(9,P,e.pager_partners.currentPage===e.pager_partners.totalPages)),d(3),m("ngClass",k(11,P,e.pager_partners.currentPage===e.pager_partners.totalPages))}}function xs(l,a){if(l&1){let e=b();i(0,"mat-tab",326)(1,"mat-tab-group",307),_("selectedTabChange",function(o){u(e);let s=c(3);return g(o.index==1?s.fetchPartners():"")}),v(2,_s,33,6,"mat-tab",327),i(3,"mat-tab",328)(4,"div",176)(5,"div",79)(6,"h6",308),p(7,"img",309),r(8,"\xA0 Dies sind Ihre kooperierenden Personaldienstleister, bei denen Sie Mitarbeiter anfragen k\xF6nnen: "),t(),i(9,"div",310)(10,"div",180)(11,"div",13)(12,"div",14)(13,"input",329),_("keyup.enter",function(o){u(e);let s=c(3);return g(s.searchPartners(o))}),t()(),p(14,"div",16),i(15,"div",20)(16,"span",21),r(17),t()()()()()(),i(18,"div",79)(19,"table",185)(20,"thead")(21,"tr")(22,"td"),r(23,"#"),t(),i(24,"td"),r(25,"Logo"),t(),i(26,"td"),r(27,"Personaldienstleister"),t(),i(28,"td"),r(29,"Vertragsbeginn"),t(),i(30,"td"),r(31,"Interaktion"),t()()(),i(32,"tbody"),v(33,us,3,0,"tr",161)(34,gs,13,8,"tr",35),t()(),i(35,"div",36),v(36,fs,14,13,"ul",37),t()()()()()()}if(l&2){let e=c(3);d(),m("selectedIndex",0),d(),m("ngIf",e.opened_company_data==null?null:e.opened_company_data.receivedCustomerRequests),d(15),Y("Anzahl der Ergebnisse: ",e.startRecord_partners," - ",e.endRecord_partners," / ",e.opened_company_data==null||e.opened_company_data.partners==null?null:e.opened_company_data.partners.length),d(16),m("ngIf",!(e.pagedItems_partners!=null&&e.pagedItems_partners.length)),d(),m("ngForOf",e.pagedItems_partners),d(2),m("ngIf",(e.opened_company_data==null||e.opened_company_data.partners==null?null:e.opened_company_data.partners.length)>0)}}function vs(l,a){if(l&1){let e=b();i(0,"div",132)(1,"div",133)(2,"div",134),p(3,"h3",135),i(4,"img",136),_("click",function(){u(e);let o=c(2);return g(o.close_company())}),t()(),i(5,"div",137)(6,"div",138)(7,"mat-tab-group",139),_("selectedTabChange",function(o){u(e);let s=c(2);return g(s.companyTabChanged(o.index))}),Lt("selectedIndexChange",function(o){u(e);let s=c(2);return Gt(s.selectedTabIndex,o)||(s.selectedTabIndex=o),g(o)}),i(8,"mat-tab",140),v(9,Rd,0,0,"ng-template",141),i(10,"form",81)(11,"div",142),v(12,Dd,2,2,"div",143),i(13,"div")(14,"label"),r(15,"Unternehmensname"),t(),i(16,"strong"),r(17),t()(),i(18,"div")(19,"label"),r(20,"Unternehmensform"),t(),i(21,"strong"),r(22),t()()(),i(23,"div",142)(24,"div")(25,"label"),r(26,"Registerort"),t(),i(27,"strong"),r(28),t()(),i(29,"div")(30,"label"),r(31,"Registernummer"),t(),i(32,"strong"),r(33),t()(),i(34,"div")(35,"label"),r(36,"Finanzamt"),t(),i(37,"strong"),r(38),t()(),i(39,"div")(40,"label"),r(41,"Steuernummer"),t(),i(42,"strong"),r(43),t()(),i(44,"div")(45,"label"),r(46,"USt-IdNr"),t(),i(47,"strong"),r(48),t()()(),i(49,"div",142)(50,"div",144),p(51,"i",145),i(52,"div")(53,"label",146),r(54,"Offizielle Gesch\xE4ftsadresse"),t(),i(55,"strong"),r(56),t()()()()()(),i(57,"mat-tab",147)(58,"div",148)(59,"div",149)(60,"div",43)(61,"div",34)(62,"div",150)(63,"table",151)(64,"thead")(65,"tr")(66,"th",46),r(67,"#"),t(),i(68,"th",152),r(69," Produkt/Abo "),t(),i(70,"th",153),r(71," Preis "),p(72,"i",154),t(),i(73,"th",155),r(74," Duration "),p(75,"i",156),t(),i(76,"th",155),r(77," Begann am "),p(78,"i",157),t(),i(79,"th",158),r(80," Status "),p(81,"i",159),t(),i(82,"th",160),r(83," Interaktionen "),t()()(),i(84,"tbody"),v(85,Ud,24,17,"ng-container",35)(86,jd,3,0,"tr",161),t()()(),v(87,mm,2,1,"ng-container",35),t()()()()(),i(88,"mat-tab",162)(89,"form",81)(90,"div",163)(91,"div",164)(92,"div",13)(93,"div",165)(94,"h6"),r(95,"Gesch\xE4ftsf\xFChrer"),t()(),i(96,"div",166)(97,"button",167),_("click",function(){u(e);let o=c(2);return g(o.addCeo("manual"))}),p(98,"i",168),r(99,"\xA0Hinzuf\xFCgen"),t()(),i(100,"div",79),p(101,"hr",169),t()(),H(102,170),v(103,hm,3,2,"ng-container",35),q(),t(),i(104,"div",164)(105,"div",13)(106,"div",165)(107,"h6"),r(108,"Sonstige Bevollm\xE4chtigte"),t()(),i(109,"div",166)(110,"button",171),_("click",function(){u(e);let o=c(2);return g(o.addAuthorizedPerson("manual"))}),p(111,"i",168),r(112,"\xA0Hinzuf\xFCgen"),t()(),i(113,"div",79),p(114,"hr",169),t()(),H(115,172),v(116,Cm,3,2,"ng-container",35),q(),t(),i(117,"div",164)(118,"div",13)(119,"div",165)(120,"h6"),r(121,"Wirtschaftlich Berechtigte"),t()(),i(122,"div",166)(123,"button",171),_("click",function(){u(e);let o=c(2);return g(o.addShareholders("manual"))}),p(124,"i",168),r(125,"\xA0Hinzuf\xFCgen"),t()(),i(126,"div",79),p(127,"hr",169),t()(),H(128,173),v(129,Pm,3,2,"ng-container",35),q(),v(130,Am,3,0,"label",174)(131,Vm,3,0,"label",174),t()()()(),i(132,"mat-tab",175)(133,"div",176)(134,"div",79),p(135,"app-note",177),t()()(),i(136,"mat-tab",178)(137,"div",82)(138,"div",79)(139,"div",179)(140,"div",180)(141,"div",13)(142,"div",181)(143,"input",182),_("keyup.enter",function(o){u(e);let s=c(2);return g(s.searchUsers(o))}),t()(),p(144,"div",183),i(145,"div",184)(146,"span",21),r(147),t()()()()(),i(148,"table",185)(149,"thead")(150,"tr",186)(151,"td"),r(152,"#"),t(),i(153,"td"),r(154,"Nutzername"),t(),i(155,"td"),r(156,"E-Mail"),t(),i(157,"td"),r(158,"Rolle"),t(),i(159,"td"),r(160,"Interaktionen"),t()()(),i(161,"tbody"),v(162,Nm,3,0,"tr",161)(163,zm,12,4,"tr",35),t(),v(164,qm,18,13,"tfoot",161),t()()()(),i(165,"mat-tab",187)(166,"div",82)(167,"div",79)(168,"div",179)(169,"div",180)(170,"div",13)(171,"div",181)(172,"input",188),_("keyup.enter",function(o){u(e);let s=c(2);return g(s.searchEmployee(o))}),t()(),i(173,"div",183)(174,"button",189),_("click",function(){u(e);let o=c(2);
28return g(o.open_modal("addEmployeeModal"))})("mouseover",function(){u(e);let o=c(2);return g(o.isHovering=!0)})("mouseout",function(){u(e);let o=c(2);return g(o.isHovering=!1)}),p(175,"img",18),i(176,"span",19),r(177,"Mitarbeiter hinzuf\xFCgen"),t()()(),i(178,"div",184)(179,"span",21),r(180),t()()()()(),i(181,"table",185)(182,"thead")(183,"tr",186)(184,"td"),r(185,"#"),t(),i(186,"td"),r(187,"Mitarbeiter"),t(),i(188,"td"),r(189,"Status"),t(),i(190,"td"),r(191,"Beitrittsdatum"),t(),i(192,"td"),r(193,"Interaktionen"),t()()(),v(194,Om,2,1,"tbody",190)(195,Bm,3,0,"ng-template",null,0,Xe),t(),i(197,"div",36),v(198,Gm,14,13,"ul",37),t()()()(),i(199,"mat-tab",191)(200,"div",192)(201,"table",185)(202,"thead")(203,"tr")(204,"th"),r(205,"#"),t(),i(206,"th",193),r(207," Name der Abteilung "),p(208,"i",194),t(),i(209,"th"),r(210," Erstellungsdatum "),p(211,"i",195),t(),i(212,"th"),r(213,"Interaktionen"),t()()(),i(214,"tbody"),v(215,jm,2,1,"ng-container",190)(216,Km,3,0,"ng-template",null,1,Xe),t()()()(),v(218,ds,114,21,"mat-tab",196)(219,xs,37,8,"mat-tab",197),t()()()()()}if(l&2){let e=G(196),n=G(217),o=c(2);d(7),$t("selectedIndex",o.selectedTabIndex),d(3),m("formGroup",o.editCompanyFormGroup),d(2),m("ngIf",o.logoAvailable),d(5),y(o.opened_company_data.company_name),d(5),y(o.opened_company_data.company_type),d(6),y(o.opened_company_data==null?null:o.opened_company_data.register_location),d(5),y(o.opened_company_data==null?null:o.opened_company_data.register_number),d(5),y(o.opened_company_data==null?null:o.opened_company_data.tax_office),d(5),y(o.opened_company_data==null?null:o.opened_company_data.tax_number),d(5),y(o.opened_company_data==null?null:o.opened_company_data.vat_id_number),d(8),fn("",o.opened_company_data.street," ",o.opened_company_data.streetNumber," ",o.opened_company_data.postCode," ",o.opened_company_data.city," ",o.opened_company_data.country),d(16),m("appSort",o.pagedItems),d(3),m("appSort",o.pagedItems),d(3),m("appSort",o.pagedItems),d(3),m("appSort",o.pagedItems),d(4),m("ngForOf",o.opened_company_data.subscriptions),d(),m("ngIf",!(o.opened_company_data!=null&&o.opened_company_data.subscriptions)||(o.opened_company_data==null||o.opened_company_data.subscriptions==null?null:o.opened_company_data.subscriptions.length)===0),d(),m("ngForOf",o.opened_company_data.subscriptions),d(2),m("formGroup",o.editCompanyDynamicFormGroup),d(14),m("ngForOf",o.company_ceos.controls),d(7),m("disabled",o.company_other_authorized_persons.controls[o.company_other_authorized_persons.controls.length-1]&&!o.company_other_authorized_persons.controls[o.company_other_authorized_persons.controls.length-1].valid),d(6),m("ngForOf",o.company_other_authorized_persons.controls),d(7),m("disabled",o.company_shareholders.controls[o.company_shareholders.controls.length-1]&&(!o.company_shareholders.controls[o.company_shareholders.controls.length-1].valid||o.check_total_shareholding()>
28=100)),d(6),m("ngForOf",o.company_shareholders.controls),d(),m("ngIf",o.company_shareholders.controls[o.company_shareholders.controls.length-1]&&!o.opened.shareholder[o.company_shareholders.controls.length-1]&&o.company_shareholders.controls[o.company_shareholders.controls.length-1].valid&&o.check_total_shareholding()<95),d(),m("ngIf",o.company_shareholders.controls[o.company_shareholders.controls.length-1]&&!o.opened.shareholder[o.company_shareholders.controls.length-1]&&o.check_total_shareholding()>100),d(4),m("serviceProviderCompanyId",o.brand_id)("customerCompanyId",o.opened_company_data==null?null:o.opened_company_data._id),d(12),Y("Anzahl der Ergebnisse: ",o.startRecord_users," - ",o.endRecord_users," / ",o.all_company_users==null?null:o.all_company_users.length),d(15),m("ngIf",!(o.pagedItems_users!=null&&o.pagedItems_users.length)),d(),m("ngForOf",o.pagedItems_users),d(),m("ngIf",(o.all_company_users==null?null:o.all_company_users.length)>0),d(11),m("src",o.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j),d(5),Y(" Anzahl der Ergebnisse: ",o.startRecord_employees," - ",o.endRecord_employees," / ",o.count," "),d(14),m("ngIf",o.isDataAvailable)("ngIfElse",e),d(4),m("ngIf",(o.pagedItems_employees==null?null:o.pagedItems_employees.length)>0),d(10),m("appSort",o.pagedItems_departments),d(3),m("appSort",o.pagedItems_departments),d(4),m("ngIf",(o.departmentsList==null?null:o.departmentsList.length)>0)("ngIfElse",n),d(3),m("ngIf",o.opened_company_data.hr_company),d(),m("ngIf",!o.opened_company_data.hr_company)}}function ys(l,a){if(l&1){let e=b();H(0),i(1,"tr",119)(2,"td",120),r(3),t(),i(4,"td",121),r(5),t(),i(6,"td",122),f(7,zd,1,1,"img",123)(8,Hd,1,0,"img",124),t(),i(9,"td",122),r(10),t(),i(11,"td",122),r(12),V(13,"date"),t(),i(14,"td",122),p(15,"i",125),t(),i(16,"td",126)(17,"button",127),_("click",function(){let o=u(e).$implicit,s=c();return g(s.open_company(o))}),r(18),t(),v(19,qd,2,0,"button",128),t()(),v(20,vs,220,51,"div",129),q()}if(l&2){let e=a.$implicit,n=a.index,o=c();d(),m("id",Qe("removeBlur",e._id)),d(2),y(o.startRecord+n),d(2),y(e.company_name),d(2),x(e.registration_completed=="1"?7:8),d(3),y(e.departments_info.length),d(2),y(N(13,13,e.createdAt,"dd.MM.yyyy")),d(3),m("ngClass",Be(16,Nd,e.registration_completed==1&&e.status==1,e.registration_completed==0&&e.status==0,e.registration_completed==1&&e.status==0)),d(2),m("id",Qe("open_company",e._id)),d(),y((o.opened_company_data==null?null:o.opened_company_data._id)===e._id?"Schlie\xDFen":"\xD6ffnen"),d(),m("ngIf",e.registration_completed==1&&e.manual_activation_required&&e.manual_activation_status==0),d(),m("ngIf",o.opened_company_data._id==e._id)}}function bs(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(2);return g(s.setPage(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(2);m("ngClass",k(2,Ce,n.pager.currentPage===e)),d(2),y(e)}}function Cs(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c();return g(o.setPage(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c();return g(o.setPage(o.pager.currentPage-1))}),r(6," < "),t()(),v(7,bs,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c();return g(o.setPage(o.pager.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c();return g(o.setPage(o.pager.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c();d(),m("ngClass",k(5,P,e.pager.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager.currentPage===1)),d(3),m("ngForOf",e.pager.pages),d(),m("ngClass",k(9,P,e.pager.currentPage===e.pager.totalPages)),d(3),m("ngClass",k(11,P,e.pager.currentPage===e.pager.totalPages))}}function Ss(l,a){if(l&1&&(i(0,"p",322),r(1),V(2,"date"),t()),l&2){let e=c().$implicit;d(),M("Angebot gesendet am ",N(2,1,e==null?null:e.offer_email_sent_at,"dd.MM.yyyy"))}}function Es(l,a){if(l&1){let e=b();i(0,"button",323),_("click",function(){u(e);let o=c().$implicit,s=c();return g(s.send_interested_customer_offer(o))}),r(1,"Angebot senden "),p(2,"i",324),t()}}function ws(l,a){}function Ms(l,a){if(l&1){let e=b();i(0,"div",198)(1,"img",199),_("error",function(){u(e);let o=c(3);return g(o.logoAvailable=!1)}),t()()}if(l&2){let e=c(3);d(),m("src",L(e.opened_company_data.logo_url),j)}}function ks(l,a){l&1&&(i(0,"span"),r(1,"Monat"),t())}function Is(l,a){l&1&&(i(0,"span"),r(1,"Monate"),t())}function Fs(l,a){if(l&1){let e=b();i(0,"button",211),_("click",function(){u(e);let o=c().$implicit,s=c(3);return g(s.openTermination(o))}),r(1," K\xFCndigen "),t()}}function Ts(l,a){l&1&&(i(0,"button",212),r(1," K\xFCndigung vorgemerkt "),t())}function Ps(l,a){if(l&1&&(i(0,"button",213),r(1),V(2,"date"),t()),l&2){let e=c().$implicit;d(),M(" K\xFCndigungsfrist aktiv (endet am ",N(2,1,e.notice_period_end_date,"dd.MM.yyyy"),") ")}}function As(l,a){if(l&1){let e=b();H(0),i(1,"tr",200)(2,"td",120),r(3),t(),i(4,"td",201),r(5),t(),i(6,"td",202),r(7),t(),i(8,"td",203),r(9),v(10,ks,2,0,"span",161)(11,Is,2,0,"span",161),t(),i(12,"td",203),r(13),V(14,"date"),t(),i(15,"td",204),p(16,"i",125),t(),i(17,"td",205)(18,"div",206)(19,"button",207),_("click",function(){let o=u(e).$implicit,s=c(3);return g(s.open_subscription(o))}
28),r(20),t(),v(21,Fs,2,0,"button",208)(22,Ts,2,0,"button",209)(23,Ps,3,4,"button",210),t()()(),q()}if(l&2){let e=a.$implicit,n=c(3);d(),m("id",Qe("removeBlur",e._id)),d(2),y(n.startRecord),d(2),M(" ",e.available_subscription_info[0].subscription_name," "),d(2),M(" \u20AC ",n.userService.convert_currency(e.gross_price)," "),d(2),M(" ",e.duration," "),d(),m("ngIf",e.duration<=1),d(),m("ngIf",e.duration>1),d(2),M(" ",N(14,14,e.createdAt,"dd.MM.yyyy")," "),d(3),m("ngClass",e.active==1?"text-success":"text-danger"),d(4),M(" ",(n.opened_subscription_data==null?null:n.opened_subscription_data._id)===e._id?"Schlie\xDFen":"\xD6ffnen"," "),d(),m("ngIf",e.active==1&&e.subscription_status!=="notice_period_active"&&e.subscription_status!=="terminated"),d(),m("ngIf",e.active==1&&e.subscription_status==="cancellation_requested"),d(),m("ngIf",e.active==1&&e.subscription_status==="notice_period_active")}}function Vs(l,a){l&1&&(i(0,"tr")(1,"td",214),p(2,"app-no-data"),t()())}function Ns(l,a){if(l&1&&(i(0,"p",221),r(1),t()),l&2){let e=c().$implicit;d(),M("",e.ticket_no,".pdf")}}function zs(l,a){l&1&&(i(0,"td"),p(1,"i",240),r(2," verifiziert "),t())}function Hs(l,a){l&1&&p(0,"td")}function qs(l,a){l&1&&(i(0,"td"),p(1,"i",241),r(2," nicht verifiziert "),t())}function Rs(l,a){if(l&1&&(i(0,"td")(1,"button",222)(2,"a",242),r(3,"\xD6ffnen"),t()()()),l&2){let e=c().$implicit;d(2),m("href",L(e==null?null:e.url),j)}}function Ds(l,a){if(l&1){let e=b();i(0,"td")(1,"button",243),_("click",function(){u(e);let o=c().$implicit,s=c(6);return g(s.viewCompanySubscriptionnew(s.opened_company_data,o))}),r(2,"\xD6ffnen"),t()()}}function Os(l,a){if(l&1){let e=b();i(0,"td")(1,"button",244),_("click",function(){u(e);let o=c().$implicit,s=c(6);return g(s.viewCompanySubscriptionnew(s.opened_company_data,o))}),r(2,"Vertragspr\xFCfung"),t()()}}function Bs(l,a){if(l&1&&(H(0),i(1,"tr")(2,"td")(3,"p",221),r(4),t()(),i(5,"td")(6,"p",221),r(7),t()(),i(8,"td"),v(9,Ns,2,1,"p",238),t(),i(10,"td")(11,"p",221),p(12,"i",239),r(13),t()(),i(14,"td"),r(15),V(16,"date"),V(17,"date"),V(18,"date"),t(),i(19,"td")(20,"p",221),r(21),V(22,"date"),t()(),v(23,zs,3,0,"td",161)(24,Hs,1,0,"td",161)(25,qs,3,0,"td",161)(26,Rs,4,2,"td",161)(27,Ds,3,0,"td",161)(28,Os,3,0,"td",161),t(),q()),l&2){let e=a.$implicit,n=a.index,o=c(6);d(4),y(n+1),d(3),y(e.document_name),d(2),m("ngIf",e.ticket_no!=""),d(4),K(" ",n===1||n==0?"Vereinbart von":"Elektronisch signiert von"," - ",e.upload_by," "),d(2),K(" ",N(16,14,o.opened_subscription_data==null?null:o.opened_subscription_data.createdAt,"dd.MM.yyyy")," - ",o.opened_subscription_data!=null&&o.opened_subscription_data.subscription_ended_at?N(17,17,o.opened_subscription_data==null?null:o.opened_subscription_data.subscription_ended_at,"dd.MM.yyyy"):o.opened_subscription_data!=null&&o.opened_subscription_data.expiry_date?N(18,20,o.opened_subscription_data==null?null:o.opened_subscription_data.expiry_date,"dd.MM.yyyy"):(o.opened_subscription_data==null?null:o.opened_subscription_data.duration)=="Unbegrenzt"?"Unbegrenzt":""," "),d(6),y(N(22,23,o.opened_subscription_data==null?null:o.opened_subscription_data.createdAt,"dd.MM.yyyy HH:mm:ss")),d(2),m("ngIf",e.verified=="1"),d(),m("ngIf",e.verified==""),d(),m("ngIf",e.verified=="0"),d(),m("ngIf",e.nodocument==!0),d(),m("ngIf",e.verified=="1"&&(e==null?null:e.nodocument)!=!0),d(),m("ngIf",e.verified=="0")}}function $s(l,a){if(l&1&&(H(0),v(1,Bs,29,26,"ng-container",35),q()),l&2){let e=c(5);d(),m("ngForOf",e.contracts.contracts_documents_info_new)}}function Gs(l,a){l&1&&(i(0,"td"),p(1,"i",240),r(2," verifiziert "),t())}function Ls(l,a){l&1&&(i(0,"td"),p(1,"i",241),r(2," nicht verifiziert "),t())}function Us(l,a){if(l&1){let e=b();i(0,"td")(1,"button",243),_("click",function(){u(e);let o=c(6);return g(o.viewCompanySubscriptionnew(o.opened_company_data,o.opened_subscription_data.contract_document))}),r(2,"\xD6ffnen"),t()()}}function js(l,a){if(l&1){let e=b();i(0,"td")(1,"button",244),_("click",function(){u(e);let o=c(6);return g(o.viewCompanySubscriptionnew(o.opened_company_data,o.opened_subscription_data.contract_document))}),r(2,"Vertragspr\xFCfung"),t()()}}function Ks(l,a){if(l&1&&(H(0),i(1,"tr")(2,"td")(3,"p",221),r(4),t()(),i(5,"td")(6,"p",221),r(7),t()(),i(8,"td")(9,"p",221),r(10),t()(),i(11,"td")(12,"p",221),p(13,"i",239),r(14),t()(),i(15,"td"),r(16),V(17,"date"),V(18,"date"),V(19,"date"),t(),i(20,"td")(21,"p",221),r(22),V(23,"date"),t()(),v(24,Gs,3,0,"td",161)(25,Ls,3,0,"td",161)(26,Us,3,0,"td",161)(27,js,3,0,"td",161),t(),q()),l&2){let e=c(4).index,n=c();d(4),y(1),d(3),y(n.opened_subscription_data.contract_document.document_name),d(3),M("",n.opened_subscription_data.contract_document.ticket_no,".pdf"),d(4),M(" ",e===1?"Vereinbart":"Elektronisch signiert"," "),d(2),K(" ",N(17,11,n.companysubscriptiondetails[0]==null?null:n.companysubscriptiondetails[0].createdAt,"dd.MM.yyyy")," - ",n.contracts!=null&&n.contracts.subscription_ended_at?N(18,14,n.contracts==null?null:n.contracts.subscription_ended_at,"dd.MM.yyyy"):n.contracts!=null&&n.contracts.expiry_date?N(19,17,n.contracts==null?null:n.contracts.expiry_date,"dd.MM.yyyy"):(n.contracts==null?null:n.contracts.duration)=="Unbegrenzt"?"Unbegrenzt":""," "),d(6),y(N(23,20,n.opened_subscription_data.contract_document.createdAt,"dd.MM.yyyy HH:mm:ss")),d(2),m("ngIf",n.opened_subscription_data.contract_document.verified=="1"),d(),m("ngIf",n.opened_subscription_data.contract_document.verified=="0"),d(),m("ngIf",n.opened_subscription_data.contract_document.verified=="1"),d(),m("ngIf",n.opened_subscription_data.contract_document.verified=="0")}}function Ws(l,a){if(l&1){let e=b();i(0,"button",245),_("click",function(){u(e);let o=c(5);return g(o.changeCompanyStatus(o.opened_company_data))}),r(1),t()}if(l&2){let e=c(5);m("ngClass",Be(3,Pi,e.verifiedcontract<2,e.verifiedcontract>=2&&e.opened_company_data.active==1,e.verifiedcontract>=2&&e.opened_company_data.active==0))("disabled",e.verifiedcontract<2),d(),M(" ",e.opened_company_data.active==0?"Aktivieren":"Deaktivieren"," ")}}function Zs(l,a){if(l&1&&(i(0,"div",216)(1,"div",217)(2,"div",218)(3,"div",219)(4,"div",220)(5,"h5",221),r(6,"Limits:"),t(),i(7,"button",222),p(8,"i",223),t()(),i(9,"div",224)(10,"div",225)(11,"div",226),p(12,"circle-progress",227),i(13,"span",228),r(14,"Arbeitspl\xE4tze"),t()()(),i(15,"div",225)(16,"div",226),p(17,"circle-progress",227),i(18,"span",228),r(19,"Benutzer"),t()()(),i(20,"div",225)(21,"div",226),p(22,"circle-progress",227),i(23,"span",228),r(24,"Mitarbeiter"),t()()(),i(25,"div",225)(26,"div",226),p(27,"circle-progress",227),i(28,"span",228),r(29,"Abteilungen"),t()()(),i(30,"div",225)(31,"div",226),p(32,"circle-progress",227),V(33,"storageUnit"),V(34,"storageUnit"),i(35,"span",228),r(36,"Daten speicherung"),t()()()()()(),i(37,"div",229)(38,"div",230)(39,"h5",221),r(40,"Vertrag"),t(),i(41,"p"),r(42,"verifizierter Vertrag : "),i(43,"span",186),r(44),t(),p(45,"i",231),t()(),i(46,"table",232)(47,"thead")(48,"tr",186)(49,"td"),r(50,"#"),t(),i(51,"td"),r(52,"Vertrag"),t(),i(53,"td",233),r(54,"Vertrag ID"),t(),i(55,"td"),r(56,"\xDCberpr\xFCfte Vereinbarungsberechtigung"),t(),i(57,"td"),r(58,"Vertragsbeginn"),t(),i(59,"td"),r(60,"Datum der Unterzeichnung"),t(),i(61,"td"),r(62,"Vertragsstatus"),t(),i(63,"td"),r(64,"Interaktionen"),t()()(),i(65,"tbody"),v(66,$s,2,1,"ng-container",190)(67,Ks,28,23,"ng-template",null,2,Xe),t()()(),i(69,"div",234)(70,"div")(71,"h5",235),r(72,"M\xF6chten Sie den Account aktivieren ? "),p(73,"
28i",236),t(),i(74,"p",221),r(75,"Der Nutzer wird per E-Mail benachrichtigt "),t()(),v(76,Ws,2,7,"button",237),t()()()),l&2){let e=G(68),n=c(4);d(12),m("percent",n.getPercentage("job_limit"))("title",(n.opened_subscription_data==null?null:n.opened_subscription_data.used_job_limit)+"/"+(n.opened_subscription_data==null?null:n.opened_subscription_data.job_limit))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!0)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(5),m("percent",n.getPercentage("user_limit"))("title",(n.opened_subscription_data==null?null:n.opened_subscription_data.used_user_limit)+"/"+(n.opened_subscription_data==null?null:n.opened_subscription_data.user_limit))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!1)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(5),m("percent",n.getPercentage("employee_limit"))("title",(n.opened_subscription_data==null?null:n.opened_subscription_data.used_employee_limit)+"/"+(n.opened_subscription_data==null?null:n.opened_subscription_data.employee_limit))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!0)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(5),m("percent",n.getPercentage("department_limit"))("title",(n.opened_subscription_data==null?null:n.opened_subscription_data.used_department_limit)+"/"+(n.opened_subscription_data==null?null:n.opened_subscription_data.department_limit))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!0)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(5),m("percent",n.getPercentage("data_storage_capacity"))("title",N(33,100,n.opened_subscription_data==null?null:n.opened_subscription_data.used_data_storage_capacity,"GB")+"/"+N(34,103,n.opened_subscription_data==null?null:n.opened_subscription_data.data_storage_capacity,"GB"))("titleFontSize","12")("radius",50)("space",-10)("outerStrokeGradient",!0)("outerStrokeWidth",10)("outerStrokeColor","#1388FE")("outerStrokeGradientStopColor","#1388FE")("innerStrokeColor","#e7e8ea")("innerStrokeWidth",10)("animateTitle",!0)("animationDuration",1e3)("showSubtitle",!1)("showUnits",!1)("showBackground",!1)("clockwise",!1)("startFromZero",!1)("lazy",!1),d(12),K("",n.verifiedcontract,"/",n.contracts.contracts_documents_info_new==null?null:n.contracts.contracts_documents_info_new.length),d(22),m("ngIf",n.contracts.contracts_documents_info_new)("ngIfElse",e),d(10),m("ngIf",n.opened_company_data.registration_completed==1&&(n.getCompanyStatus(n.opened_company_data)!="1"||!n.opened_company_data.manual_activation_required||n.opened_company_data.manual_activation_required&&n.opened_company_data.manual_activation_status==1))}}function Js(l,a){if(l&1&&(H(0),v(1,Zs,77,106,"div",215),q()),l&2){let e=a.$implicit,n=c(3);d(),m("ngIf",(n.opened_subscription_data==null?null:n.opened_subscription_data._id)==e._id)}}function Qs(l,a){l&1&&p(0,"i",253)}function Xs(l,a){l&1&&p(0,"i",254)}function Ys(l,a){if(l&1){let e=b();i(0,"div",248),_("click",function(){u(e);let o=c().index,s=c(3);return g(s.opened.ceo[o]=!s.opened.ceo[o])}),i(1,"h5",249),p(2,"i",250),r(3),v(4,Qs,1,0,"i",251)(5,Xs,1,0,"i",252),t()()}if(l&2){let e=c().index,n=c(3);d(3),K("\xA0\xA0 ",n.company_ceos.controls[e].controls.firstname.value," ",n.company_ceos.controls[e].controls.lastname.value," "),d(),m("ngIf",!n.opened.
28ceo[e]),d(),m("ngIf",n.opened.ceo[e])}}function e0(l,a){if(l&1){let e=b();i(0,"div",263)(1,"button",269),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.company_ceos.removeAt(o))}),r(2,"Entfernen"),t()()}}function t0(l,a){if(l&1){let e=b();i(0,"div",270)(1,"button",271),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.opened.ceo[o]=!s.opened.ceo[o])}),p(2,"i",272),r(3,"\xA0"),p(4,"i",273),t()()}if(l&2){let e=c(2).index;m("ngClass",e==0?"col-sm-12":"col-sm-6")}}function n0(l,a){if(l&1){let e=b();i(0,"div",255)(1,"div",79)(2,"h6"),r(3,"Anrede:"),t(),i(4,"mat-radio-group",88)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",79)(14,"mat-form-field",256)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",257),t()(),i(18,"div",79)(19,"mat-form-field",256)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",258),t()(),i(23,"div",79)(24,"mat-form-field",256)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",259)(28,"mat-datepicker-toggle",260)(29,"mat-datepicker",261,3),t()(),i(31,"div",79)(32,"mat-form-field",256)(33,"mat-label"),r(34,"Stra\xDFe"),t(),i(35,"input",262,4),_("onAddressChange",function(o){u(e);let s=c().index,h=c(3);return g(h.handleAllFieldsfirst(o,s,"company_ceos"))}),t()()(),i(37,"div",263)(38,"mat-form-field",256)(39,"mat-label"),r(40,"Haus Nr."),t(),p(41,"input",264),t()(),i(42,"div",263)(43,"mat-form-field",256)(44,"mat-label"),r(45,"PLZ"),t(),p(46,"input",265),t()(),i(47,"div",79)(48,"mat-form-field",256)(49,"mat-label"),r(50,"Stadt"),t(),p(51,"input",104),t()(),i(52,"div",79)(53,"mat-form-field",256)(54,"mat-label"),r(55,"Land"),t(),p(56,"input",266),t()(),v(57,e0,3,0,"div",267)(58,t0,5,1,"div",268),i(59,"div",79),p(60,"hr"),t()()}if(l&2){let e=G(30),n=c().index,o=c(3);m("formGroupName",n),d(27),m("matDatepicker",e)("min",o.minDate)("max",o.maxDate),d(),m("for",e),d(7),m("options",o.options),d(22),m("ngIf",n!=0),d(),m("ngIf",o.company_ceos.controls[n].valid)}}function i0(l,a){if(l&1&&(H(0),v(1,Ys,6,4,"div",246)(2,n0,61,8,"div",247),q()),l&2){let e=a.index,n=c(3);d(),m("ngIf",n.company_ceos.controls[e].valid),d(),m("ngIf",!n.opened.ceo[e])}}function a0(l,a){l&1&&p(0,"i",253)}function r0(l,a){l&1&&p(0,"i",254)}function o0(l,a){if(l&1){let e=b();i(0,"div",248),_("click",function(){u(e);let o=c().index,s=c(3);return g(s.opened.authorized[o]=!s.opened.authorized[o])}),i(1,"h5",249),p(2,"i",250),r(3),v(4,a0,1,0,"i",251)(5,r0,1,0,"i",252),t()()}if(l&2){let e=c().index,n=c(3);d(3),K("\xA0\xA0 ",n.company_other_authorized_persons.controls[e].controls.firstname.value," ",n.company_other_authorized_persons.controls[e].controls.lastname.value," "),d(),m("ngIf",!n.opened.authorized[e]),d(),m("ngIf",n.opened.authorized[e])}}function l0(l,a){if(l&1){let e=b();i(0,"div",276)(1,"button",271),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.opened.authorized[o]=!s.opened.authorized[o])}),p(2,"i",272),r(3,"\xA0"),p(4,"i",273),t()()}}function d0(l,a){if(l&1){let e=b();i(0,"div",255)(1,"div",79)(2,"h6"),r(3,"Anrede:"),t(),i(4,"mat-radio-group",88)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",79)(14,"mat-form-field",256)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",257),t()(),i(18,"div",79)(19,"mat-form-field",256)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",258),t()(),i(23,"div",79)(24,"mat-form-field",256)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",259)(28,"mat-datepicker-toggle",260)(29,"mat-datepicker",261,3),t()(),i(31,"div",79)(32,"mat-form-field",256)(33,"mat-label"),r(34,"Stra\xDFe"),t(),i(35,"input",262,4),_("onAddressChange",function(o){u(e);let s=c().index,h=c(3);return g(h.handleAllFieldsfirst(o,s,"company_other_authorized_persons"))}),t()()(),i(37,"div",263)(38,"mat-form-field",256)(39,"mat-label"),r(40,"Haus Nr."),t(),p(41,"input",264),t()(),i(42,"div",263)(43,"mat-form-field",256)(44,"mat-label"),r(45,"PLZ"),t(),p(46,"input",265),t()(),i(47,"div",79)(48,"mat-form-field",256)(49,"mat-label"),r(50,"Stadt"),t(),p(51,"input",104),t()(),i(52,"div",79)(53,"mat-form-field",256)(54,"mat-label"),r(55,"Land"),t(),p(56,"input",266),t()(),i(57,"div",263)(58,"button",274),_("click",function(){u(e);let o=c().index,s=c(3);return g(s.removeAuthorizedPerson(o))}),r(59,"Entfernen"),t()(),v(60,l0,5,0,"div",275),i(61,"div",79),p(62,"hr"),t()()}if(l&2){let e=G(30),n=c().index,o=c(3);m("formGroupName",n),d(27),m("matDatepicker",e)("min",o.minDate)("max",o.maxDate),d(),m("for",e),d(7),m("options",o.options),d(25),m("ngIf",o.company_other_authorized_persons.
28controls[n].valid)}}function m0(l,a){if(l&1&&(H(0),v(1,o0,6,4,"div",246)(2,d0,63,7,"div",247),q()),l&2){let e=a.index,n=c(3);d(),m("ngIf",n.company_other_authorized_persons.controls[e].valid),d(),m("ngIf",!n.opened.authorized[e])}}function s0(l,a){l&1&&p(0,"i",253)}function c0(l,a){l&1&&p(0,"i",254)}function p0(l,a){if(l&1){let e=b();i(0,"div",248),_("click",function(){u(e);let o=c().index,s=c(3);return g(s.opened.shareholder[o]=!s.opened.shareholder[o])}),i(1,"h5",249),p(2,"i",250),r(3),v(4,s0,1,0,"i",251)(5,c0,1,0,"i",252),t()()}if(l&2){let e=c().index,n=c(3);d(3),K("\xA0\xA0 ",n.company_shareholders.controls[e].controls.firstname.value," ",n.company_shareholders.controls[e].controls.lastname.value," "),d(),m("ngIf",n.opened.shareholder[e]),d(),m("ngIf",!n.opened.shareholder[e])}}function _0(l,a){l&1&&(i(0,"label",280),p(1,"i",281),r(2,'Sie m\xFCssen mindestens 95% aller wirtschaftlich Berechtigten angeben. Klicken Sie im unteren Verlauf auf "Mehr hinzuf\xFCgen" um weitere wirtschaftlich Berechtigte hinzuzuf\xFCgen.'),t())}function u0(l,a){l&1&&(i(0,"label",280),p(1,"i",281),r(2,"100% Unternehmensanteile ist das Maximum. Bitte geben Sie einen korrekten Wert an."),t())}function g0(l,a){if(l&1){let e=b();i(0,"div",263)(1,"button",269),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.company_shareholders.removeAt(o))}),r(2,"Entfernen"),t()()}}function h0(l,a){if(l&1){let e=b();i(0,"div",270)(1,"button",271),_("click",function(){u(e);let o=c(2).index,s=c(3);return g(s.opened.shareholder[o]=!s.opened.shareholder[o])}),p(2,"i",272),r(3,"\xA0"),p(4,"i",273),t()()}if(l&2){let e=c(2).index;m("ngClass",e==0?"col-sm-12":"col-sm-6")}}function f0(l,a){if(l&1){let e=b();i(0,"div",255)(1,"div",79)(2,"h6"),r(3,"Anrede:"),t(),i(4,"mat-radio-group",88)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",79)(14,"mat-form-field",256)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",257),t()(),i(18,"div",79)(19,"mat-form-field",256)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",258),t()(),i(23,"div",79)(24,"mat-form-field",256)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",259)(28,"mat-datepicker-toggle",260)(29,"mat-datepicker",261,3),t()(),i(31,"div",79)(32,"mat-form-field",256)(33,"mat-label"),r(34,"Stra\xDFe"),t(),i(35,"input",262,4),_("onAddressChange",function(o){u(e);let s=c().index,h=c(3);return g(h.handleAllFieldsfirst(o,s,"company_shareholders"))}),t()()(),i(37,"div",263)(38,"mat-form-field",256)(39,"mat-label"),r(40,"Haus Nr."),t(),p(41,"input",264),t()(),i(42,"div",263)(43,"mat-form-field",256)(44,"mat-label"),r(45,"PLZ"),t(),p(46,"input",265),t()(),i(47,"div",79)(48,"mat-form-field",256)(49,"mat-label"),r(50,"Stadt"),t(),p(51,"input",104),t()(),i(52,"div",79)(53,"mat-form-field",256)(54,"mat-label"),r(55,"Land"),t(),p(56,"input",266),t()(),i(57,"div",79)(58,"span",277),r(59,"Bitte geben Sie den prozentualen Unternehmensanteil an."),t(),i(60,"mat-form-field",278)(61,"mat-label"),r(62,"Unternehmensanteil in Prozent"),t(),p(63,"input",279),t(),v(64,_0,3,0,"label",174)(65,u0,3,0,"label",174),t(),v(66,g0,3,0,"div",267)(67,h0,5,1,"div",268),i(68,"div",79),p(69,"hr"),t()()}if(l&2){let e=G(30),n=c().index,o=c(3);m("formGroupName",n),d(27),m("matDatepicker",e)("min",o.minDate)("max",o.maxDate),d(),m("for",e),d(7),m("options",o.options),d(29),m("ngIf",o.company_
28shareholders.controls.length-1==n&&o.company_shareholders.controls[o.company_shareholders.controls.length-1].valid&&o.check_total_shareholding()<95),d(),m("ngIf",o.company_shareholders.controls.length-1==n&&o.check_total_shareholding()>100),d(),m("ngIf",n!=0),d(),m("ngIf",o.company_shareholders.controls[n].valid)}}function x0(l,a){if(l&1&&(H(0),v(1,p0,6,4,"div",246)(2,f0,70,10,"div",247),q()),l&2){let e=a.index,n=c(3);d(),m("ngIf",n.company_shareholders.controls[e].valid),d(),m("ngIf",n.opened.shareholder[e])}}function v0(l,a){l&1&&(i(0,"label",280),p(1,"i",281),r(2,'Sie m\xFCssen mindestens 95% aller wirtschaftlich Berechtigten angeben. Klicken Sie im unteren Verlauf auf "Mehr hinzuf\xFCgen" um weitere wirtschaftlich Berechtigte hinzuzuf\xFCgen.'),t())}function y0(l,a){l&1&&(i(0,"label",280),p(1,"i",281),r(2,"100% Unternehmensanteile ist das Maximum. Bitte geben Sie einen korrekten Wert an."),t())}function b0(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function C0(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),r(6),t(),i(7,"td"),r(8),t(),i(9,"td")(10,"button",271),_("click",function(){let o=u(e).$implicit,s=c(3);return g(s.openUser(o))}),r(11,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index,o=c(3);d(2),y(o.startRecord_users+n),d(2),y(e.title+" "+e.firstname+" "+e.lastname),d(2),y(e.email),d(2),y(e.user_role_name)}}function S0(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.setPage_users(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(4);m("ngClass",k(2,Ce,n.pager_users.currentPage===e)),d(2),y(e)}}function E0(l,a){if(l&1){let e=b();i(0,"tfoot")(1,"tr")(2,"td",283)(3,"div",284)(4,"ul",285)(5,"li",286)(6,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_users(1))}),r(7,"<<"),t()(),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_users(o.pager_users.currentPage-1))}),r(10,"<"),t()(),v(11,S0,3,4,"li",288),i(12,"li",286)(13,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_users(o.pager_users.currentPage+1))}),r(14,">"),t()(),i(15,"li",286)(16,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_users(o.pager_users.totalPages))}),r(17,">>"),t()()()()()()()}if(l&2){let e=c(3);d(5),m("ngClass",k(5,P,e.pager_users.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_users.currentPage===1)),d(3),m("ngForOf",e.pager_users.pages),d(),m("ngClass",k(9,P,e.pager_users.currentPage===e.pager_users.totalPages)),d(3),m("ngClass",k(11,P,e.pager_users.currentPage===e.pager_users.totalPages))}}function w0(l,a){if(l&1&&(i(0,"p",290),r(1),t()),l&2){let e=c().$implicit;d(),y(e==null||e.user_info==null?null:e.user_info.email)}}function M0(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),v(5,w0,2,1,"p",289),t(),i(6,"td"),p(7,"i",125),t(),i(8,"td"),r(9),V(10,"date"),t(),i(11,"td")(12,"button",271),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.openUser(o.user_info))}),r(13,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index;d(2),y(n+1),d(2),M(" ",(e==null||e.user_info==null?null:e.user_info.title)+" "+(e==null||e.user_info==null?null:e.user_info.firstname)+" "+(e==null||e.user_info==null?null:e.user_info.lastname)," "),d(),m("ngIf",e==null||e.user_info==null?null:e.user_info.email),d(2),m("ngClass",Be(8,Ai,(e==null?null:e.contract_created)=="0",(e==null?null:e.contract_created)!="0"&&e.last_job_contract&&(!(!(e==null||e.last_job_contract[0]==null)&&e.last_job_contract[0].signatures)||(e==null||e.last_job_contract[0]==null?null:e.last_job_contract[0].signatures)==""),e.last_job_contract&&(e==null||e.last_job_contract[0]==null?null:e.last_job_contract[0].signatures)&&(e==null||e.last_job_contract[0]==null?null:e.last_job_contract[0].signatures)!="")),d(2),M(" ",e!=null&&e.employement_data&&(e!=null&&e.employement_data[0])?N(10,5,e==null||e.employement_data==null?null:e.employement_data.at(-1).from_date,"dd.MM.yyyy"):""," ")}}function k0(l,a){if(l&1&&(i(0,"tbody"),v(1,M0,14,12,"tr",35),t()),l&2){let e=c(3);d(),m("ngForOf",e.pagedItems_employees)}}function I0(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function F0(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.setPage_employee(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(4);m("ngClass",k(2,Ce,n.pager_employees.currentPage===e)),d(2),y(e)}}function T0(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_employee(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_employee(o.pager_employees.currentPage-1))}),r(6," < "),t()(),v(7,F0,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_employee(o.pager_employees.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(3);return g(o.setPage_employee(o.pager_employees.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(3);d(),m("ngClass",k(5,P,e.pager_employees.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_employees.currentPage===1)),d(3),m("ngForOf",e.pager_employees.pages),d(),m("ngClass",k(9,P,e.pager_employees.currentPage===e.pager_employees.totalPages)),d(3),m("ngClass",k(11,P,e.pager_employees.currentPage===e.pager_employees.totalPages))}}function P0(l,a){if(l&1&&(i(0,"tr")(1,"td",291)(2,"div",292)(3,"div",293)(4,"mat-form-field",256)(5,"mat-label"),r(6,"Abteilungsname"),t(),p(7,"input",294),t()(),i(8,"div",79)(9,"h6"),r(10,"Details des Benutzers, der diese Abteilung hinzugef\xFCgt hat:"),t()(),i(11,"div",263)(12,"mat-form-field",256)(13,"mat-label"),r(14,"Nutzername"),t(),p(15,"input",295),t()(),i(16,"div",263)(17,"mat-form-field",256)(18,"mat-label"),r(19,"E-Mail"),t(),p(20,"input",296
28),t()(),i(21,"div",79)(22,"h6"),r(23,"Offizielle Gesch\xE4ftsadresse:"),t()(),i(24,"div",297)(25,"div",13)(26,"div",164)(27,"mat-form-field",256)(28,"mat-label"),r(29,"Stra\xDFe"),t(),p(30,"input",298),t()(),i(31,"div",299)(32,"mat-form-field",256)(33,"mat-label"),r(34,"Haus Nr."),t(),p(35,"input",300),t()(),i(36,"div",299)(37,"mat-form-field",256)(38,"mat-label"),r(39,"PLZ"),t(),p(40,"input",301),t()(),i(41,"div",164)(42,"mat-form-field",256)(43,"mat-label"),r(44,"Stadt"),t(),p(45,"input",302),t()(),i(46,"div",263)(47,"mat-form-field",256)(48,"mat-label"),r(49,"C/O Appartmentnummer, T\xFCrcode, usw."),t(),p(50,"input",303),t()(),i(51,"div",263)(52,"mat-form-field",256)(53,"mat-label"),r(54,"Land"),t(),p(55,"input",304),t()()()()()()()),l&2){let e=c(5);d(7),m("value",e.opened_department_details.name),d(8),m("value",(e.opened_department_details.added_by_info[0]==null?null:e.opened_department_details.added_by_info[0].title)+" "+(e.opened_department_details.added_by_info[0]==null?null:e.opened_department_details.added_by_info[0].firstname)+" "+(e.opened_department_details.added_by_info[0]==null?null:e.opened_department_details.added_by_info[0].lastname)),d(5),m("value",e.opened_department_details.added_by_info[0]==null?null:e.opened_department_details.added_by_info[0].email),d(10),m("value",e.opened_department_details==null?null:e.opened_department_details.street),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.streetNumber),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.postCode),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.city),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.appartment_number),d(5),m("value",e.opened_department_details==null?null:e.opened_department_details.country)}}function A0(l,a){if(l&1){let e=b();H(0),i(1,"tr")(2,"td"),r(3),t(),i(4,"td"),r(5),t(),i(6,"td"),r(7),V(8,"date"),t(),i(9,"td")(10,"button",243),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.open_department(o))}),r(11),t()()(),v(12,P0,56,9,"tr",161),q()}if(l&2){let e=a.$implicit,n=a.index,o=c(4);d(3),y(o.startRecord_departments+n),d(2),y(e.name),d(2),y(N(8,5,e.createdAt,"dd.MM.yyyy")),d(4),M(" ",(o.opened_department_details==null?null:o.opened_department_details._id)===e._id?"Schlie\xDFen":"\xD6ffnen"," "),d(),m("ngIf",(o.opened_department_details==null?null:o.opened_department_details._id)===e._id)}}function V0(l,a){if(l&1&&(H(0),v(1,A0,13,8,"ng-container",35),q()),l&2){let e=c(3);d(),m("ngForOf",e.pagedItems_departments)}}function N0(l,a){l&1&&(i(0,"tr")(1,"td",305),p(2,"app-no-data"),t()())}function z0(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),p(6,"img",317),t(),i(7,"td"),r(8),t(),i(9,"td"),r(10),V(11,"date"),t(),i(12,"td")(13,"button",271),_("click",function(){let o=u(e).$implicit,s=c(4);return g(s.openCustomer(o))}),r(14,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index,o=c(4);d(2),y(o.startRecord_HrCustomers+n),d(2),y(e.customer_company_info.company_name),d(2),m("src",L(e.customer_company_info.logo_url),j),d(2),y(e.department_count),d(2),y(N(11,6,e.createdAt,"dd.MM.yyyy"))}}function H0(l,a){l&1&&(i(0,"tr")(1,"td",318),p(2,"app-no-data"),t()())}function q0(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(5);return g(s.setPage_HrCustomers(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(5);m("ngClass",k(2,Ce,n.pager_HrCustomers.currentPage===e)),d(2),y(e)}}function R0(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_HrCustomers(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_HrCustomers(o.pager_HrCustomers.currentPage-1))}),r(6," < "),t()(),v(7,q0,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_HrCustomers(o.pager_HrCustomers.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_HrCustomers(o.pager_HrCustomers.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(4);d(),m("ngClass",k(5,P,e.pager_HrCustomers.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_HrCustomers.currentPage===1)),d(3),m("ngForOf",e.pager_HrCustomers.pages),d(),m("ngClass",k(9,P,e.pager_HrCustomers.currentPage===e.pager_HrCustomers.totalPages)),d(3),m("ngClass",k(11,P,e.pager_HrCustomers.currentPage===e.pager_HrCustomers.totalPages))}}function D0(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function O0(l,a){if(l&1&&(i(0,"p",322),r(1),V(2,"date"),t()),l&2){let e=c().$implicit;d(),M("Angebot gesendet am ",N(2,1,e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent_at,"dd.MM.yyyy"))}}function B0(l,a){if(l&1){let e=b();i(0,"button",323),_("click",function(){u(e);let o=c().$implicit,s=c(4);return g(s.send_interested_customer_offer(o==null?null:o.Requested_to[0]))}),r(1,"Angebot senden "),p(2,"i",324),t()}}function $0(l,a){if(l&1&&(i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),v(5,O0,3,4,"p",319),t(),i(6,"td",122),p(7,"i",125),t(),i(8,"td",122),r(9),V(10,"date"),t(),i(11,"td",126)(12,"button",320),r(13,"\xD6ffnen"),t(),v(14,B0,3,0,"button",321),t()()),l&2){let e=a.$implicit,n=a.index,o=c(4);d(2),y(o.startRecord_requests+n),d(2),M(" ",e==null||e.Requested_to[0]==null?null:e.Requested_to[0].company_name," "),d(),m("ngIf",e==null||e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent_at),d(2),m("ngClass",Be(9,Sn,(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent)=="1",(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].interested_data_status)=="1"&&(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent)!="1",(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].interested_data_status)=="0")),d(2),y(N(10,6,e.createdAt,"dd.MM.yyyy")),d(5),m("ngIf",(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].interested_data_status)=="1"&&(e==null||e.Requested_to[0]==null?null:e.Requested_to[0].offer_email_sent)!="1")}}function G0(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(5);return g(s.setPage_requests(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(5);m("ngClass",k(2,Ce,n.pager_requests.currentPage===e)),d(2),y(e)}}function L0(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_requests(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_requests(o.pager_requests.currentPage-1))}),r(6," < "),t()(),v(7,G0,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_requests(o.pager_requests.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_requests(o.pager_requests.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(4);d(),m("ngClass",k(5,P,e.pager_requests.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_requests.currentPage===1)),d(3),m("ngForOf",e.pager_requests.pages),d(),m("ngClass",k(9,P,e.pager_requests.currentPage===e.pager_requests.totalPages)),d(3),m("ngClass",k(11,P,e.pager_requests.currentPage===e.pager_requests.totalPages))}}function U0(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function j0(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),p(6,"i",125),t(),i(7,"td"),r(8),V(9,"date"),t(),i(10,"td")(11,"button",325),_("click",function(){let o=u(e).$implicit,s=c(4);return s.opened_request=o,g(s.open_modal("viewCustomerRequestModal"))}),r(12,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index,o=c(4);d(2),y(o.startRecord_Receivedrequests+n),d(2),y(e==null||e.Requested_from==null||e.Requested_from[0]==null?null:e.Requested_from[0].company_name),d(2),m("ngClass",e.status.at(-1).status==1?"text-success":"text-danger"),d(2),y(N(9,4,e.createdAt,"dd.MM.yyyy"))}}function K0(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(5);return g(s.setPage_Receivedrequests(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(5);m("ngClass",k(2,Ce,n.pager_Receivedrequests.currentPage===e)),d(2),y(e)}}function W0(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_Receivedrequests(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.currentPage-1))}),r(6," < "),t()(),v(7,K0,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(4);d(),m("ngClass",k(5,P,e.pager_Receivedrequests.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_Receivedrequests.currentPage===1)),d(3),m("ngForOf",e.pager_Receivedrequests.pages),d(),m("ngClass",k(9,P,e.pager_Receivedrequests.currentPage===e.pager_Receivedrequests.totalPages)),d(3),m("ngClass",k(11,P,e.pager_Receivedrequests.currentPage===e.pager_Receivedrequests.totalPages))}}function Z0(l,a){if(l&1){let e=b();i(0,"mat-tab",306)(1,"mat-tab-group",307),_("selectedTabChange",function(o){u(e);let s=c(3);return g(s.customerTabChanged(o.index))}),i(2,"mat-tab",23)(3,"div",176)(4,"div",79)(5,"h6",308),p(6,"img",309),r(7,"\xA0 Dies sind Ihre Kundenunternehmen, denen Sie Mitarbeiter zur Arbeitnehmer\xFCberlassung:"),t(),i(8,"div",310)(9,"div",180)(10,"div",13)(11,"div",14)(12,"input",311),_("keyup.enter",function(o){u(e);let s=c(3);return g(s.searchHrCustomers(o))}),t()(),i(13,"div",16)(14,"button",312),_("click",function(){u(e);let o=c(3);return o.open_modal("selectCustomerTypeModal"),g(o.resetOnboardingModal())})("mouseover",function(){u(e);let o=c(3);return g(o.isHovering=!0)})("mouseout",function(){u(e);let o=c(3);return g(o.isHovering=!1)}),p(15,"img",313),i(16,"span",19),r(17,"Kunden hinzuf\xFCgen"),t()()(),i(18,"div",20)(19,"span",21),r(20),t()()()()()(),i(21,"div",79)(22,"table",185)(23,"thead")(24,"tr",186)(25,"td"),r(26,"#"),t(),i(27,"td"),r(28,"Kundenunternehmen"),t(),i(29,"td"),r(30,"Logo"),t(),i(31,"td"),r(32,"Anzahl der Abteilungen"),t(),i(33,"td"),r(34,"Vertragsbeginn"),t(),i(35,"td"),r(36,"Interaktionen"),t()()(),i(37,"tbody"),v(38,z0,15,9,"tr",35)(39,H0,3,0,"tr",161),t()(),i(40,"div",36),v(41,R0,14,13,"ul",37),t()()()(),i(42,"mat-tab",38)(43,"div",176)(44,"div",79)(45,"h6",308),p(46,"img",309),r(47,"\xA0 Versendete Anfragen: Die folgenden Anfragen wurden an Unternehmen geschickt, um Ihre Kunden zu werden: "),t(),i(48,"div",310)(49,"div",180)(50,"div",13)(51,"div",14)(52,"input",314),_("keyup.enter",function(o){u(e);let s=c(3);return g(s.searchSentCustomerRequests(o))}),t()(),i(53,"div",16)(54,"button",312),_("click",function(){u(e);let o=c(3);return o.open_modal("selectCustomerTypeModal"),g(o.resetOnboardingModal())})("mouseover",function(){u(e);let o=c(3);return g(o.isHovering=!0)})("mouseout",function(){u(e);let o=c(3);return g(o.isHovering=!1)}),p(55,"img",313),i(56,"span",19),r(57,"Interessenten hinzuf\xFCgen"),t()()(),i(58,"div",20)(59,"span",21),r(60),t()()()()()(),i(61,"div",79)(62,"table",185)(63,"thead")(64,"tr")(65,"td"),r(66,"#"),t(),i(67,"td"),r(68,"Kunden"),t(),i(69,"td"),r(70,"Status"),t(),i(71,"td"),r(72,"Anforderungsdatum"),t(),i(73,"td"),r(74,"Interaktion"),t()()(),i(75,"tbody"),v(76,D0,3,0,"tr",161)(77,$0,15,13,"tr",35),t()(),i(78,"div",36),v(79,L0,14,13,"ul",37),t()()()(),i(80,"mat-tab",315)(81,"div",176)(82,"div",79)(83,"h6",308),p(84,"img",309),r(85,"\xA0 Erhaltene Anfragen: HR-Unternehmen baten Sie um Kundenwerdung, um Ihnen Mitarbeiter zu vermieten: "),t(),i(86,"div",310)(87,"div",180)(88,"div",13)(89,"div",14)(90,"input",316),_("keyup.enter",function(o){u(e);let s=c(3);return g(s.searchReceivedCustomerRequests(o))}),t()(),p(91,"div",16),i(92,"div",20)(93,"span",21),r(94),t()()()()()(),i(95,"div",79)(96,"table",185)(97,"thead")(98,"tr")(99,"td"),r(100,"#"),t(),i(101,"td"),r(102,"Personalberatungsunternehmen"),t(),i(103,"td"),r(104,"Status"),t(),i(105,"td"),r(106,"Anforderungsdatum"),t(),i(107,"td"),r(108,"Interaktion"),t()()(),i(109,"tbody"),v(110,U0,3,0,"tr",161)(111,j0,13,7,"tr",35),t()(),i(112,"div",36),v(113,W0,14,13,"ul",37),t()()()()()()}if(l&2){let e=c(3);d(),m("selectedIndex",e.selectedCustomerTab),d(14),m("src",e.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j
28),d(5),Y("Anzahl der Ergebnisse: ",e.startRecord_HrCustomers," - ",e.endRecord_HrCustomers," / ",e.total_HrCustomers_count),d(18),m("ngForOf",e.pagedItems_HrCustomers),d(),m("ngIf",!(e.opened_company_data!=null&&e.opened_company_data.HrCustomers)||(e.opened_company_data==null||e.opened_company_data.HrCustomers==null?null:e.opened_company_data.HrCustomers.length)==0),d(2),m("ngIf",e.total_HrCustomers_count),d(14),m("src",e.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j),d(5),Y("Anzahl der Ergebnisse: ",e.startRecord_requests," - ",e.endRecord_requests," / ",e.opened_company_data==null||e.opened_company_data.sentCustomerRequests==null?null:e.opened_company_data.sentCustomerRequests.length),d(16),m("ngIf",!(e.pagedItems_requests!=null&&e.pagedItems_requests.length)),d(),m("ngForOf",e.pagedItems_requests),d(2),m("ngIf",(e.opened_company_data==null||e.opened_company_data.sentCustomerRequests==null?null:e.opened_company_data.sentCustomerRequests.length)>0),d(15),Y("Anzahl der Ergebnisse: ",e.startRecord_Receivedrequests," - ",e.endRecord_Receivedrequests," / ",e.opened_company_data==null||e.opened_company_data.receivedCustomerRequests==null?null:e.opened_company_data.receivedCustomerRequests.length),d(16),m("ngIf",!(e.pagedItems_Receivedrequests!=null&&e.pagedItems_Receivedrequests.length)),d(),m("ngForOf",e.pagedItems_Receivedrequests),d(2),m("ngIf",(e.opened_company_data==null||e.opened_company_data.receivedCustomerRequests==null?null:e.opened_company_data.receivedCustomerRequests.length)>0)}}function J0(l,a){if(l&1){let e=b();i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),r(4),t(),i(5,"td"),p(6,"i",125),t(),i(7,"td"),r(8),V(9,"date"),t(),i(10,"td")(11,"button",325),_("click",function(){let o=u(e).$implicit,s=c(5);return s.opened_request=o,g(s.open_modal("viewCustomerRequestModal"))}),r(12,"\xD6ffnen"),t()()()}if(l&2){let e=a.$implicit,n=a.index,o=c(5);d(2),M("",o.startRecord_Receivedrequests+n," "),d(2),y(e.Requested_from==null||e.Requested_from[0]==null?null:e.Requested_from[0].company_name),d(2),m("ngClass",e.status.at(-1).status==1?"text-success":"text-danger"),d(2),y(N(9,4,e.createdAt,"dd.MM.yyyy"))}}function Q0(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function X0(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(6);return g(s.setPage_Receivedrequests(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(6);m("ngClass",k(2,Ce,n.pager_Receivedrequests.currentPage===e)),d(2),M(" ",e," ")}}function Y0(l,a){if(l&1){let e=b();i(0,"tfoot")(1,"tr")(2,"td",331)(3,"div",332)(4,"ul",285)(5,"li",286)(6,"a",287),_("click",function(){u(e);let o=c(5);return g(o.setPage_Receivedrequests(1))}),r(7,"<<"),t()(),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(5);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.currentPage-1))}),r(10,"<"),t()(),v(11,X0,3,4,"li",288),i(12,"li",286)(13,"a",287),_("click",function(){u(e);let o=c(5);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.currentPage+1))}),r(14,">"),t()(),i(15,"li",286)(16,"a",287),_("click",function(){u(e);let o=c(5);return g(o.setPage_Receivedrequests(o.pager_Receivedrequests.totalPages))}),r(17,">>"),t()()()()()()()}if(l&2){let e=c(5);d(5),m("ngClass",k(5,P,e.pager_Receivedrequests.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_Receivedrequests.currentPage===1)),d(3),m("ngForOf",e.pager_Receivedrequests.pages),d(),m("ngClass",k(9,P,e.pager_Receivedrequests.currentPage===e.pager_Receivedrequests.totalPages)),d(3),m("ngClass",k(11,P,e.pager_Receivedrequests.currentPage===e.pager_Receivedrequests.totalPages))}}function ec(l,a){if(l&1){let e=b();i(0,"mat-tab",330)(1,"div",176)(2,"div",79)(3,"h6",308),p(4,"img",309),r(5,"\xA0 Erhaltene Anfragen: HR-Unternehmen baten Sie um Kundenwerdung, um Ihnen Mitarbeiter zu vermieten: "),t(),i(6,"div",310)(7,"div",180)(8,"div",13)(9,"div",14)(10,"input",316),_("keyup.enter",function(o){u(e);let s=c(4);return g(s.searchReceivedCustomerRequests(o))}),t()(),p(11,"div",16),i(12,"div",20)(13,"span",21),r(14),t()()()()()(),i(15,"div",79)(16,"table",185)(17,"thead")(18,"tr")(19,"td"),r(20,"#"),t(),i(21,"td"),r(22,"Personalberatungsunternehmen"),t(),i(23,"td"),r(24,"Status"),t(),i(25,"td"),r(26,"Anforderungsdatum"),t(),i(27,"td"),r(28,"Interaktion"),t()()(),i(29,"tbody"),v(30,J0,13,7,"tr",35)(31,Q0,3,0,"tr",161),t(),v(32,Y0,18,13,"tfoot",161),t()()()()}if(l&2){let e=c(4);d(14),Y("Anzahl der Ergebnisse: ",e.startRecord_Receivedrequests," - ",e.endRecord_Receivedrequests," / ",e.opened_company_data==null||e.opened_company_data.receivedCustomerRequests==null?null:e.opened_company_data.receivedCustomerRequests.length),d(16),m("ngForOf",e.pagedItems_Receivedrequests),d(),m("ngIf",!(e.pagedItems_Receivedrequests!=null&&e.pagedItems_Receivedrequests.length)),d(),m("ngIf",(e.opened_company_data==null||e.opened_company_data.receivedCustomerRequests==null?null:e.opened_company_data.receivedCustomerRequests.length)>0)}}function tc(l,a){l&1&&(i(0,"tr")(1,"td",282),p(2,"app-no-data"),t()())}function nc(l,a){if(l&1&&(i(0,"tr")(1,"td"),r(2),t(),i(3,"td"),p(4,"img",317),t(),i(5,"td"),r(6),t(),i(7,"td"),r(8),V(9,"date"),t(),i(10,"td")(11,"button",333),r(12,"\xD6ffnen"),t()()()),l&2){let e=a.$implicit,n=a.index,o=c(4);d(2),y(o.startRecord_partners+n),d(2),m("src",L(e.service_provider_company_info.logo_url),j),d(2),y(e.service_provider_company_info.company_name),d(2),y(N(9,5,e.createdAt,"dd.MM.yyyy"))}}function ic(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(5);return g(s.setPage_partners(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(5);m("ngClass",k(2,Ce,n.pager_partners.currentPage===e)),d(2),y(e)}}function ac(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_partners(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_partners(o.pager_partners.currentPage-1))}),r(6," < "),t()(),v(7,ic,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_partners(o.pager_partners.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c(4);return g(o.setPage_partners(o.pager_partners.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c(4);d(),m("ngClass",k(5,P,e.pager_partners.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_partners.currentPage===1)),d(3),m("ngForOf",e.pager_partners.pages),d(),m("ngClass",k(9,P,e.pager_partners.currentPage===e.pager_partners.totalPages)),d(3),m("ngClass",k(11,P,e.pager_partners.currentPage===e.pager_partners.totalPages))}}function rc(l,a){if(l&1){let e=b();i(0,"mat-tab",326)(1,"mat-tab-group",307),_("selectedTabChange",function(o){u(e);let s=c(3);return g(o.index==1?s.fetchPartners():"")}),v(2,ec,33,6,"mat-tab",327),i(3,"mat-tab",328)(4,"div",176)(5,"div",79)(6,"h6",308),p(7,"img",309),r(8,"\xA0 Dies sind Ihre kooperierenden Personaldienstleister, bei denen Sie Mitarbeiter anfragen k\xF6nnen: "),t(),i(9,"div",310)(10,"div",180)(11,"div",13)(12,"div",14)(13,"input",329),_("keyup.enter",function(o){u(e);let s=c(3);return g(s.searchPartners(o))}),t()(),p(14,"div",16),i(15,"div",20)(16,"span",21),r(17),t()()()()()(),i(18,"div",79)(19,"table",185)(20,"thead")(21,"tr")(22,"td"),r(23,"#"),t(),i(24,"td"),r(25,"Logo"),t(),i(26,"td"),r(27,"Personaldienstleister"),t(),i(28,"td"),r(29,"Vertragsbeginn"),t(),i(30,"td"),r(31,"Interaktion"),t()()(),i(32,"tbody"),v(33,tc,3,0,"tr",161)(34,nc,13,8,"tr",35),t()(),i(35,"div",36),v(36,ac,14,13,"ul",37),t()()()()()()}if(l&2){let e=c(3);d(),m("selectedIndex",0),d(),m("ngIf",e.opened_company_data==null?null:e.opened_company_data.receivedCustomerRequests),d(15),Y("Anzahl der Ergebnisse: ",e.startRecord_partners," - ",e.endRecord_partners," / ",e.opened_company_data==null||e.opened_company_data.partners==null?null:e.opened_company_data.partners.length),d(16),m("ngIf",!(e.pagedItems_partners!=null&&e.pagedItems_partners.length)),d(),m("ngForOf",e.pagedItems_partners),d(2),m("ngIf",(e.opened_company_data==null||e.opened_company_data.partners==null?null:e.opened_company_data.partners.length)>0)}}function oc(l,a){if(l&1){let e=b();i(0,"div",132)(1,"div",336)(2,"img",337),_("click",function(){u(e);let o=c(2);return g(o.close_company())}),t(),i(3,"div",338)(4,"div",339)(5,"mat-tab-group",139),_("selectedTabChange",function(o){u(e);let s=c(2);return g(s.companyTabChanged(o.index))}),Lt("selectedIndexChange",function(o){u(e);let s=c(2);return Gt(s.selectedTabIndex,o)||(s.selectedTabIndex=o),g(o)}),i(6,"mat-tab",140),v(7,ws,0,0,"ng-template",141),i(8,"form",81)(9,"div",142),v(10,Ms,2,2,"div",143),i(11,"div")(12,"label"),r(13,"Unternehmensname"),t(),i(14,"strong"),r(15),t()(),i(16,"div")(17,"label"),r(18,"Unternehmensform"),t(),i(19,"strong"),r(20),t()()(),i(21,"div",142)(22,"div")(23,"label"),r(24,"Registerort"),t(),i(25,"strong"),r(26),t()(),i(27,"div")(28,"label"),r(29,"Registernummer"),t(),i(30,"strong"),r(31),t()(),i(32,"div")(33,"label"),r(34,"Finanzamt"),t(),i(35,"strong"),r(36),t()(),i(37,"div")(38,"label"),r(39,"Steuernummer"),t(),i(40,"strong"),r(41),t()(),i(42,"div")(43,"label"),r(44,"USt-I
28dNr"),t(),i(45,"strong"),r(46),t()()(),i(47,"div",142)(48,"div",144),p(49,"i",145),i(50,"div")(51,"label",146),r(52,"Offizielle Gesch\xE4ftsadresse"),t(),i(53,"strong"),r(54),t()()()()()(),i(55,"mat-tab",147)(56,"div",176)(57,"div",79)(58,"div",340)(59,"div",341)(60,"div",43)(61,"div",34)(62,"div",150)(63,"table",151)(64,"thead")(65,"tr")(66,"th",46),r(67,"#"),t(),i(68,"th",152),r(69," Produkt/Abo "),t(),i(70,"th",153),r(71," Preis "),p(72,"i",154),t(),i(73,"th",155),r(74," Duration "),p(75,"i",156),t(),i(76,"th",155),r(77," Begann am "),p(78,"i",157),t(),i(79,"th",158),r(80," Status "),p(81,"i",159),t(),i(82,"th",160),r(83," Interaktionen "),t()()(),i(84,"tbody"),v(85,As,24,17,"ng-container",35)(86,Vs,3,0,"tr",161),t()()(),v(87,Js,2,1,"ng-container",35),t()()()()()()(),i(88,"mat-tab",162)(89,"form",81)(90,"div",163)(91,"div",164)(92,"div",13)(93,"div",165)(94,"h6"),r(95,"Gesch\xE4ftsf\xFChrer"),t()(),i(96,"div",166)(97,"button",167),_("click",function(){u(e);let o=c(2);return g(o.addCeo("manual"))}),p(98,"i",168),r(99,"\xA0Hinzuf\xFCgen"),t()(),i(100,"div",79),p(101,"hr",169),t()(),H(102,170),v(103,i0,3,2,"ng-container",35),q(),t(),i(104,"div",164)(105,"div",13)(106,"div",165)(107,"h6"),r(108,"Sonstige Bevollm\xE4chtigte"),t()(),i(109,"div",166)(110,"button",171),_("click",function(){u(e);let o=c(2);return g(o.addAuthorizedPerson("manual"))}),p(111,"i",168),r(112,"\xA0Hinzuf\xFCgen"),t()(),i(113,"div",79),p(114,"hr",169),t()(),H(115,172),v(116,m0,3,2,"ng-container",35),q(),t(),i(117,"div",164)(118,"div",13)(119,"div",165)(120,"h6"),r(121,"Wirtschaftlich Berechtigte"),t()(),i(122,"div",166)(123,"button",171),_("click",function(){u(e);let o=c(2);return g(o.addShareholders("manual"))}),p(124,"i",168),r(125,"\xA0Hinzuf\xFCgen"),t()(),i(126,"div",79),p(127,"hr",169),t()(),H(128,173),v(129,x0,3,2,"ng-container",35),q(),v(130,v0,3,0,"label",174)(131,y0,3,0,"label",174),t()()()(),i(132,"mat-tab",175)(133,"div",176)(134,"div",79),p(135,"app-note",177),t()()(),i(136,"mat-tab",178)(137,"div",82)(138,"div",79)(139,"div",179)(140,"div",180)(141,"div",13)(142,"div",181)(143,"input",182),_("keyup.enter",function(o){u(e);let s=c(2);return g(s.searchUsers(o))}),t()(),p(144,"div",183),i(145,"div",184)(146,"span",21),r(147),t()()()()(),i(148,"table",185)(149,"thead")(150,"tr",186)(151,"td"),r(152,"#"),t(),i(153,"td"),r(154,"Nutzername"),t(),i(155,"td"),r(156,"E-Mail"),t(),i(157,"td"),r(158,"Rolle"),t(),i(159,"td"),r(160,"Interaktionen"),t()()(),i(161,"tbody"),v(162,b0,3,0,"tr",161)(163,C0,12,4,"tr",35),t(),v(164,E0,18,13,"tfoot",161),t()()()(),i(165,"mat-tab",187)(166,"div",82)(167,"div",79)(168,"div",179)(169,"div",180)(170,"div",13)(171,"div",181)(172,"input",188),_("keyup.enter",function(o){u(e);let s=c(2);return g(s.searchEmployee(o))}),t()(),i(173,"div",183)(174,"button",189),_("click",function(){u(e);let o=c(2);return g(o.open_modal("addEmployeeModal"))})("mouseover",function(){u(e);let o=c(2);return g(o.isHovering=!0)})("mouseout",function(){u(e);let o=c(2);return g(o.isHovering=!1)}),p(175,"img",18),i(176,"span",19),r(177,"Mitarbeiter hinzuf\xFCgen"),t()()(),i(178,"div",184)(179,"span",21),r(180),t()()()()(),i(181,"table",185)(182,"thead")(183,"tr",186)(184,"td"),r(185,"#"),t(),i(186,"td"),r(187,"Mitarbeiter"),t(),i(188,"td"),r(189,"Status"),t(),i(190,"td"),r(191,"Beitrittsdatum"),t(),i(192,"td"),r(193,"Interaktionen"),t()()(),v(194,k0,2,1,"tbody",190)(195,I0,3,0,"ng-template",null,0,Xe),t(),i(197,"div",36),v(198,T0,14,13,"ul",37),t()()()(),i(199,"mat-tab",191)(200,"div",192)(201,"table",185)(202,"thead")(203,"tr")(204,"th"),r(205,"#"),t(),i(206,"th",193),r(207," Name der Abteilung "),p(208,"i",194),t(),i(209,"th"),r(210," Erstellungsdatum "),p(211,"i",195),t(),i(212,"th"),r(213,"Interaktionen"),t()()(),i(214,"tbody"),v(215,V0,2,1,"ng-container",190)(216,N0,3,0,"ng-template",null,1,Xe),t()()()(),v(218,Z0,114,21,"mat-tab",196)(219,rc,37,8,"mat-tab",197),t()()()()()}if(l&2){let e=G(196),n=G(217),o=c(2);d(5),$t("selectedIndex",o.selectedTabIndex),d(3),m("formGroup",o.editCompanyFormGroup),d(2),m("ngIf",o.logoAvailable),d(5),y(o.opened_company_data.company_name),d(5),y(o.opened_company_data.company_type),d(6),y(o.opened_company_data==null?null:o.opened_company_data.register_location),d(5),y(o.opened_company_data==null?null:o.opened_company_data.register_number),d(5),y(o.opened_company_data==null?null:o.opened_company_data.tax_office),d(5),y(o.opened_company_data==null?null:o.opened_company_data.tax_number),d(5),y(o.opened_company_data==null?null:o.opened_company_data.vat_id_number),d(8),fn("",o.opened_company_data.street," ",o.opened_company_data.streetNumber," ",o.opened_company_data.postCode," ",o.opened_company_data.city," ",o.opened_company_data.country),d(18),m("appSort",o.pagedItems),d(3),m("appSort",o.pagedItems),d(3),m("appSort",o.pagedItems),d(3),m("appSort",o.pagedItems),d(4),m("ngForOf",o.opened_company_data.subscriptions),d(),m("ngIf",!(o.opened_company_data!=null&&o.opened_company_data.subscriptions)||(o.opened_company_data==null||o.opened_company_data.subscriptions==null?null:o.opened_company_data.subscriptions.length)===0),d(),m("ngForOf",o.opened_company_data.subscriptions),d(2),m("formGroup",o.editCompanyDynamicFormGroup),d(14),m("ngForOf",o.company_ceos.controls),d(7),m("disabled",o.company_other_authorized_persons.
28controls[o.company_other_authorized_persons.controls.length-1]&&!o.company_other_authorized_persons.controls[o.company_other_authorized_persons.controls.length-1].valid),d(6),m("ngForOf",o.company_other_authorized_persons.controls),d(7),m("disabled",o.company_shareholders.controls[o.company_shareholders.controls.length-1]&&(!o.company_shareholders.controls[o.company_shareholders.controls.length-1].valid||o.check_total_shareholding()>=100)),d(6),m("ngForOf",o.company_shareholders.controls),d(),m("ngIf",o.company_shareholders.controls[o.company_shareholders.controls.length-1]&&!o.opened.shareholder[o.company_shareholders.controls.length-1]&&o.company_shareholders.controls[o.company_shareholders.controls.length-1].valid&&o.check_total_shareholding()<95),d(),m("ngIf",o.company_shareholders.controls[o.company_shareholders.controls.length-1]&&!o.opened.shareholder[o.company_shareholders.controls.length-1]&&o.check_total_shareholding()>100),d(4),m("serviceProviderCompanyId",o.brand_id)("customerCompanyId",o.opened_company_data==null?null:o.opened_company_data._id),d(12),Y("Anzahl der Ergebnisse: ",o.startRecord_users," - ",o.endRecord_users," / ",o.all_company_users==null?null:o.all_company_users.length),d(15),m("ngIf",!(o.pagedItems_users!=null&&o.pagedItems_users.length)),d(),m("ngForOf",o.pagedItems_users),d(),m("ngIf",(o.all_company_users==null?null:o.all_company_users.length)>0),d(11),m("src",o.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j),d(5),Y(" Anzahl der Ergebnisse: ",o.startRecord_employees," - ",o.endRecord_employees," / ",o.count," "),d(14),m("ngIf",o.isDataAvailable)("ngIfElse",e),d(4),m("ngIf",(o.pagedItems_employees==null?null:o.pagedItems_employees.length)>0),d(10),m("appSort",o.pagedItems_departments),d(3),m("appSort",o.pagedItems_departments),d(4),m("ngIf",(o.departmentsList==null?null:o.departmentsList.length)>0)("ngIfElse",n),d(3),m("ngIf",o.opened_company_data.hr_company),d(),m("ngIf",!o.opened_company_data.hr_company)}}function lc(l,a){if(l&1){let e=b();H(0),i(1,"div",119)(2,"ul",334)(3,"li",120),r(4),t(),i(5,"li",122),r(6),v(7,Ss,3,4,"p",319),t(),i(8,"li",122),r(9),t(),i(10,"li",122),r(11),V(12,"date"),t(),i(13,"li",122),p(14,"i",125),t(),i(15,"li",126)(16,"button",335),_("click",function(){let o=u(e).$implicit,s=c();return g(s.open_company(o))}),r(17),t(),v(18,Es,3,0,"button",321),t()()(),v(19,oc,220,51,"div",129),q()}if(l&2){let e=a.$implicit,n=a.index,o=c();d(),m("id",Qe("removeBlur",e._id)),d(3),y(o.startRecord_interested+n),d(2),M(" ",e.company_name," "),d(),m("ngIf",e==null?null:e.offer_email_sent_at),d(2),M(" ",e!=null&&e.ceos&&(e!=null&&e.ceos[0])?(e==null||e.ceos[0]==null?null:e.ceos[0].title)+" "+(e==null||e.ceos[0]==null?null:e.ceos[0].firstname)+" "+(e==null||e.ceos[0]==null?null:e.ceos[0].lastname):""," "),d(2),M("",N(12,13,e.createdAt,"dd.MM.yyyy")," "),d(3),m("ngClass",Be(16,Sn,(e==null?null:e.offer_email_sent)=="1",e.interested_data_status=="1"&&(e==null?null:e.offer_email_sent)!="1",e.interested_data_status=="0")),d(2),m("id",Qe("open_company",e._id)),d(),y((o.opened_company_data==null?null:o.opened_company_data._id)===e._id?"Schlie\xDFen":"\xD6ffnen"),d(),m("ngIf",e.interested_data_status=="1"&&(e==null?null:e.offer_email_sent)!="1"),d(),m("ngIf",o.opened_company_data._id==e._id)}}function dc(l,a){if(l&1){let e=b();i(0,"li",286)(1,"a",287),_("click",function(){let o=u(e).$implicit,s=c(2);return g(s.setPage_interested(o))}),r(2),t()()}if(l&2){let e=a.$implicit,n=c(2);m("ngClass",k(2,Ce,n.pager_interested.currentPage===e)),d(2),y(e)}}function mc(l,a){if(l&1){let e=b();i(0,"ul",285)(1,"li",286)(2,"a",287),_("click",function(){u(e);let o=c();return g(o.setPage_interested(1))}),r(3," << "),t()(),i(4,"li",286)(5,"a",287),_("click",function(){u(e);let o=c();return g(o.setPage_interested(o.pager_interested.currentPage-1))}),r(6," < "),t()(),v(7,dc,3,4,"li",288),i(8,"li",286)(9,"a",287),_("click",function(){u(e);let o=c();return g(o.setPage_interested(o.pager_interested.currentPage+1))}),r(10,"> "),t()(),i(11,"li",286)(12,"a",287),_("click",function(){u(e);let o=c();return g(o.setPage_interested(o.pager_interested.totalPages))}),r(13,">>"),t()()()}if(l&2){let e=c();d(),m("ngClass",k(5,P,e.pager_interested.currentPage===1)),d(3),m("ngClass",k(7,P,e.pager_interested.currentPage===1)),d(3),m("ngForOf",e.pager_interested.pages),d(),m("ngClass",k(9,P,e.pager_interested.currentPage===e.pager_interested.totalPages)),d(3),m("ngClass",k(11,P,e.pager_interested.currentPage===e.pager_interested.totalPages))}}function sc(l,a){l&1&&(i(0,"mat-icon"),r(1,"check"),t())}function cc(l,a){l&1&&r(0,"Add-Ons Ausw\xE4hlen")}function pc(l,a){if(l&1){let e=b();i(0,"button",379),_("click",function(){u(e);let o=c(2);return g(o.add_to_cart("user"))}),r(1,"In den Warenkorb"),t()}}function _c(l,a){if(l&1){let e=b();
28i(0,"div",380)(1,"div",381)(2,"span",382)(3,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("user","-"))}),p(4,"i",384),t()(),i(5,"input",385),_("change",function(o){u(e);let s=c(2);return g(s.adjust_cart_quantity("user",o.target.value))}),t(),i(6,"span",382)(7,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("user","+"))}),p(8,"i",386),t()()()()}if(l&2){let e=c(2);d(5),m("value",L(e.check_cart_quantity("user")))}}function uc(l,a){l&1&&(H(0),r(1,"Nicht verf\xFCgbar"),q())}function gc(l,a){if(l&1){let e=b();i(0,"button",379),_("click",function(){u(e);let o=c(2);return g(o.add_to_cart("storage"))}),r(1,"In den Warenkorb"),t()}}function hc(l,a){if(l&1){let e=b();i(0,"div",380)(1,"div",381)(2,"span",382)(3,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("storage","-"))}),p(4,"i",384),t()(),i(5,"input",385),_("change",function(o){u(e);let s=c(2);return g(s.adjust_cart_quantity("storage",o.target.value))}),t(),i(6,"span",382)(7,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("storage","+"))}),p(8,"i",386),t()()()()}if(l&2){let e=c(2);d(5),m("value",L(e.check_cart_quantity("storage")))}}function fc(l,a){l&1&&(H(0),r(1,"Nicht verf\xFCgbar"),q())}function xc(l,a){if(l&1){let e=b();i(0,"button",379),_("click",function(){u(e);let o=c(2);return g(o.add_to_cart("department"))}),r(1,"In den Warenkorb"),t()}}function vc(l,a){if(l&1){let e=b();i(0,"div",380)(1,"div",381)(2,"span",382)(3,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("department","-"))}),p(4,"i",384),t()(),i(5,"input",385),_("change",function(o){u(e);let s=c(2);return g(s.adjust_cart_quantity("department",o.target.value))}),t(),i(6,"span",382)(7,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("department","+"))}),p(8,"i",386),t()()()()}if(l&2){let e=c(2);d(5),m("value",L(e.check_cart_quantity("department")))}}function yc(l,a){l&1&&(H(0),r(1,"Nicht verf\xFCgbar"),q())}function bc(l,a){if(l&1){let e=b();i(0,"button",379),_("click",function(){u(e);let o=c(2);return g(o.add_to_cart("job"))}),r(1,"In den Warenkorb"),t()}}function Cc(l,a){if(l&1){let e=b();i(0,"div",380)(1,"div",381)(2,"span",382)(3,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("job","-"))}),p(4,"i",384),t()(),i(5,"input",385),_("change",function(o){u(e);let s=c(2);return g(s.adjust_cart_quantity("job",o.target.value))}),t(),i(6,"span",382)(7,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("job","+"))}),p(8,"i",386),t()()()()}if(l&2){let e=c(2);d(5),m("value",L(e.check_cart_quantity("job")))}}function Sc(l,a){l&1&&(H(0),r(1,"Nicht verf\xFCgbar"),q())}function Ec(l,a){if(l&1){let e=b();i(0,"button",379),_("click",function(){u(e);let o=c(2);return g(o.add_to_cart("employee"))}),r(1,"In den Warenkorb"),t()}}function wc(l,a){if(l&1){let e=b();i(0,"div",380)(1,"div",381)(2,"span",382)(3,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("employee","-"))}),p(4,"i",384),t()(),i(5,"input",385),_("change",function(o){u(e);let s=c(2);return g(s.adjust_cart_quantity("employee",o.target.value))}),t(),i(6,"span",382)(7,"button",383),_("click",function(){u(e);let o=c(2);return g(o.adjust_cart_quantity("employee","+"))}),p(8,"i",386),t()()()()}if(l&2){let e=c(2);d(5),m("value",L(e.check_cart_quantity("employee")))}}function Mc(l,a){l&1&&(H(0),r(1,"Nicht verf\xFCgbar"),q())}function kc(l,a){l&1&&r(0,"Speichern")}
28function Ic(l,a){l&1&&(H(0),r(1,"Benutzerlimit"),q())}function Fc(l,a){l&1&&(H(0),r(1,"Datenspeicherkapazit\xE4t"),q())}function Tc(l,a){l&1&&(H(0),r(1,"Abteilung"),q())}function Pc(l,a){l&1&&(H(0),r(1,"Joblimit"),q())}function Ac(l,a){l&1&&(H(0),r(1,"Mitarbeiterlimit"),q())}function Vc(l,a){if(l&1&&(H(0),r(1),p(2,"img",347),q()),l&2){let e=c(4);d(),M("",e.opened_subscription_data.user_limit-e.opened_subscription_data.used_user_limit+e.check_cart_quantity("user")," ")}}function Nc(l,a){if(l&1&&(H(0),r(1),q()),l&2){let e=c(4);d(),M("",e.opened_subscription_data.data_storage_capacity-e.opened_subscription_data.used_data_storage_capacity+e.check_cart_quantity("storage")," GB")}}function zc(l,a){if(l&1&&(H(0),r(1),p(2,"img",351),q()),l&2){let e=c(4);d(),M("",e.opened_subscription_data.department_limit-e.opened_subscription_data.used_department_limit+e.check_cart_quantity("department")," ")}}function Hc(l,a){if(l&1&&(H(0),r(1),p(2,"img",352),q()),l&2){let e=c(4);d(),M("",e.opened_subscription_data.job_limit-e.opened_subscription_data.used_job_limit+e.check_cart_quantity("job")," ")}}function qc(l,a){if(l&1&&(H(0),r(1),p(2,"img",353),q()),l&2){let e=c(4);d(),M("",e.opened_subscription_data.employee_limit-e.opened_subscription_data.used_employee_limit+e.check_cart_quantity("employee")," ")}}function Rc(l,a){if(l&1&&(i(0,"div",346)(1,"ul",334)(2,"li",120),r(3),t(),i(4,"li",389),v(5,Ic,2,0,"ng-container",161)(6,Fc,2,0,"ng-container",161)(7,Tc,2,0,"ng-container",161)(8,Pc,2,0,"ng-container",161)(9,Ac,2,0,"ng-container",161),t(),i(10,"li",389),v(11,Vc,3,1,"ng-container",161)(12,Nc,2,1,"ng-container",161)(13,zc,3,1,"ng-container",161)(14,Hc,3,1,"ng-container",161)(15,qc,3,1,"ng-container",161),t()()()),l&2){let e=a.$implicit,n=a.index,o=c(3);d(3),M("",n+1,"."),d(2),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="user"),d(),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="storage"),d(),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="department"),d(),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="job"),d(),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="employee"),d(2),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="user"),d(),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="storage"),d(),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="department"),d(),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="job"),d(),m("ngIf",o.getAddOnById(e.addon_id).addOnFor=="employee")}}function Dc(l,a){if(l&1&&(i(0,"div",344)(1,"div",345)(2,"div",44)(3,"ul",45)(4,"li",46),r(5,"#"),t(),i(6,"li",387),r(7,"Limittyp"),t(),i(8,"li",387),r(9,"Neue Restlimits"),t()()(),p(10,"hr"),i(11,"div",34),v(12,Rc,16,11,"div",388),t()()()),l&2){let e=c(2);d(12),m("ngForOf",e.addons_cart)}}function Oc(l,a){if(l&1&&(i(0,"tr",390)(1,"td",391),r(2),t(),i(3,"td",392),r(4),t(),i(5,"td",392),r(6),t(),i(7,"td",392),r(8),t()()),l&2){let e=a.$implicit,n=a.index,o=c(2);d(2),M(" ",n+1),d(2),M(" ",o.getAddOnById(e.addon_id).name),d(2),M(" ",o.userService.convert_currency(o.getAddOnById(e.addon_id).net_price.replace(".","").replace(",",".").trim()*e.quantity)," "),d(2),M(" ",e.quantity)}}function Bc(l,a){l&1&&(i(0,"div",372)(1,"p",146),r(2," Sitz\xA0der\xA0Gesellschaft:\xA0H\xFCnfeld"),p(3,"br"),r(4,"Handelsregister:\xA0Fulda\xA0HRB\xA08380"),p(5,"br"),r(6,"Finanzamt:\xA0Fulda"),p(7,"br"),r(8,"USt-IdNr.:\xA0DE356359779 "),t()())}function $c(l,a){l&1&&(i(0,"div",372)(1,"p",146),r(2," Anschrift:"),p(3,"br"),r(4,"Josefstra\xDFe\xA022"),p(5,"br"),r(6,"36088\xA0H\xFCnfeld"),p(7,"br"),r(8,"Tel.:\xA0+49\xA06652/9824-688 "),t()())}function Gc(l,a){if(l&1&&(i(0,"div",372)(1,"p",146),r(2),p(3,"br"),r(4),p(5,"br"),r(6),p(7,"br"),r(8),t()()),l&2){let e=c(2);d(2),M(" Sitz\xA0der\xA0Gesellschaft:\xA0",e.brand_details.company_info[0].city),d(2),K("Handelsregister:\xA0",e.brand_details.company_info[0].register_location,"\xA0",e.brand_details.company_info[0].register_number),d(2),M("Finanzamt:\xA0",e.brand_details.company_info[0].tax_office),d(2),M("USt-IdNr.:\xA0",e.brand_details.company_info[0].vat_id_number," ")}}function Lc(l,a){if(l&1&&(i(0,"div",372)(1,"p",146),r(2," Anschrift:"),p(3,"br"),r(4),p(5,"br"),r(6),p(7,"br"),r(8),t()()),l&2){let e=c(2);d(4),K("",e.brand_details.company_info[0].street,"\xA0",e.brand_details.company_info[0].streetNumber),d(2),K("",e.brand_details.company_info[0].postCode,"\xA0",e.brand_details.company_info[0].city),d(2),M("Tel.:\xA0",e.brand_details.mobile_number," ")}}function Uc(l,a){if(l&1&&(i(0,"p",146),r(1),p(2,"br"),r(3),p(4,"br"),r(5),t()),l&2){let e=c(2);d(),M(" Bankverbindung:\xA0",e.brand_details.company_info[0].main_bank_details.bank_name),d(2),M("IBAN:\xA0",e.brand_details.company_info[0].main_bank_details.iban),d(2),M("BIC:\xA0",e.brand_details.company_info[0].main_bank_details.bic," ")}}function jc(l,a){if(l&1&&(i(0,"mat-stepper",342,5),v(2,sc,2,0,"ng-template",343),i(3,"mat-step"),v(4,cc,1,0,"ng-template",141),i(5,"div",82)(6,"div",344)(7,"div",345)(8,"div",44)(9,"ul",45)(10,"li",46),r(11,"#"),t(),i(12,"li",47),r(13,"Limittyp"),t(),i(14,"li",47),r(15,"Verbleibendes Limit"),t(),i(16,"li",47),r(17,"Add-On"),t(),i(18,"li",47),r(19,"Add-On Nettopreis"),t(),i(20,"li",47),r(21,"Interaktionen"),t()()(),p(22,"hr"),i(23,"div",34)(24,"div",346)(25,"ul",334)(26,"li",120),r(27,"1."),t(),i(28,"li",122),r(29,"Benutzerlimit"),t(),i(30,"li",122),r(31),p(32,"img",347),t(),i(33,"li",122),r(34),t(),i(35,"li",122),r(36),t(),i(37,"li",122),v(38,pc,2,0,"button",348)(39,_c,9,2,"div",349)(40,uc,2,0,"ng-container",161),t()()(),i(41,"div",346)(42,"ul",334)(43,"li",120),r(44,"2."),t(),i(45,"li",122),r(46,"Datenspeicherkapazit\xE4t"),t(),i(47,"li",122),r(48),t(),i(49,"li",122),r(50),t(),i(51,"li",122),r(52),t(),i(53,"li",122),v(54,gc,2,0,"button",348)(55,hc,9,2,"div",349)(56,fc,2,0,"ng-container",161),t()()(),i(57,"div",346)(58,"ul",334)(59,"li",120),r(60,"3."),t(),i(61,"li",122),r(62,"Abteilung"),t(),i(63,"li",122)(64,"span",350),r(65),t(),p(66,"img",351),t(),i(67,"li",122),r(68),t(),i(69,"li",122),r(70),t(),i(71,"li",122),v(72,xc,2,0,"button",348)(73,vc,9,2,"div",349)(74,yc,2,0,"ng-container",161),t()()(),i(75,"div",346)(76,"ul",334)(77,"li",120),r(78,"4."),t(),i(79,"li",122),r(80,"Joblimit"),t(),i(81,"li",122)(82,"span",350),r(83),t(),p(84,"img",352),t(),i(85,"li",122),r(86),t(),i(87,"li",122),r(88),t(),i(89,"li",122),v(90,bc,2,0,"button",348)(91,Cc,9,2,"div",349)(92,Sc,2,0,"ng-container",161),t()()(),i(93,"div",346)(94,"ul",334)(95,"li",120),r(96,"5."),t(),i(97,"li",122),r(98,"Mitarbeiterlimit"),t(),i(99,"li",122)(100,"span",350),r(101),t(),p(102,"img",353),t(),i(103,"li",122),r(104),t(),i(105,"li",122),r(106),t(),i(107,"li",122),v(108,Ec,2,0,"button",348)(109,wc,9,2,"div",349)(110,Mc,2,0,"ng-container",161),t()()()()()(),i(111,"div",354)(112,"button",355),r(113,"Weiter"),t()()()(),i(114,"mat-step"),v(115,kc,1,0,"ng-template",141),i(116,"div",82)(117,"div",356),v(118,Dc,13,1,"div",357),t(),i(119,"div",358)(120,"div",359)(121,"div",82)(122,"div",360),p(123,"img",361),t(),i(124,"div",362)(125,"p",221),r(126),t(),i(127,"p",221),r(128),t(),i(129,"p",221),r(130),t()(),i(131,"div",363)(132,"p",221),r(133),t(),i(134,"p",221),r(135),t(),i(136,"p",221),r(137),t(),i(138,"p",221),r(139),t()(),i(140,"div",364)(141,"h2"),r(142,"Rechnung"),t()(),i(143,"div",365)(144,"p",221),r(145),t(),i(146,"p",221),r(147),V(148,"date"),t()(),i(149,"div",365)(150,"table",366)(151,"thead",367)(152,"tr")(153,"th",368),r(154,"Pos"),t(),i(155,"th"),r(156,"Abonnement Add-on"),t(),i(157,"th"),r(158,"Nettopreis"),t(),i(159,"th"),r(160,"Menge"),t()()(),i(161,"tbody",369),v(162,Oc,9,4,"tr",370),t()()(),i(163,"div",371)(164,"div",372)(165,"p",146),r(166),p(167,"br"),r(168),p(169,"br"),r(170),p(171,"br"),r(172),t()(),v(173,Bc,9,0,"div",373)(174,$c,9,0,"div",373)(175,Gc,9,5,"div",373)(176,Lc,9,5,"div",373),i(177,"div",372),v(1
2878,Uc,6,3,"p",374),t()()()()(),i(179,"div",375)(180,"button",376),r(181,"Zur\xFCck"),t()(),i(182,"div",377)(183,"button",378),r(184,"Speichern"),t()()()()()),l&2){let e=c();d(31),M("",e.opened_subscription_data.user_limit-e.opened_subscription_data.used_user_limit," "),d(3),y(e.checkAddOnExist("user","name")),d(2),y(e.checkAddOnExist("user","net_price")),d(2),m("ngIf",e.checkAddOnExist("user","exists")!=-1&&e.check_cart("user")==-1),d(),m("ngIf",e.checkAddOnExist("user","exists")!=-1&&e.check_cart("user")!=-1),d(),m("ngIf",e.checkAddOnExist("user","exists")==-1),d(8),M("",e.opened_subscription_data.data_storage_capacity-e.opened_subscription_data.used_data_storage_capacity," GB"),d(2),y(e.checkAddOnExist("storage","name")),d(2),y(e.checkAddOnExist("storage","net_price")),d(2),m("ngIf",e.checkAddOnExist("storage","exists")!=-1&&e.check_cart("storage")==-1),d(),m("ngIf",e.checkAddOnExist("storage","exists")!=-1&&e.check_cart("storage")!=-1),d(),m("ngIf",e.checkAddOnExist("storage","exists")==-1),d(9),y(e.opened_subscription_data.department_limit-e.opened_subscription_data.used_department_limit),d(3),y(e.checkAddOnExist("department","name")),d(2),y(e.checkAddOnExist("department","net_price")),d(2),m("ngIf",e.checkAddOnExist("department","exists")!=-1&&e.check_cart("department")==-1),d(),m("ngIf",e.checkAddOnExist("department","exists")!=-1&&e.check_cart("department")!=-1),d(),m("ngIf",e.checkAddOnExist("department","exists")==-1),d(9),y(e.opened_subscription_data.job_limit-e.opened_subscription_data.used_job_limit),d(3),y(e.checkAddOnExist("job","name")),d(2),y(e.checkAddOnExist("job","net_price")),d(2),m("ngIf",e.checkAddOnExist("job","exists")!=-1&&e.check_cart("job")==-1),d(),m("ngIf",e.checkAddOnExist("job","exists")!=-1&&e.check_cart("job")!=-1),d(),m("ngIf",e.checkAddOnExist("job","exists")==-1),d(9),y(e.opened_subscription_data.employee_limit-e.opened_subscription_data.used_employee_limit),d(3),y(e.checkAddOnExist("employee","name")),d(2),y(e.checkAddOnExist("employee","net_price")),d(2),m("ngIf",e.checkAddOnExist("employee","exists")!=-1&&e.check_cart("employee")==-1),d(),m("ngIf",e.checkAddOnExist("employee","exists")!=-1&&e.check_cart("employee")!=-1),d(),m("ngIf",e.checkAddOnExist("employee","exists")==-1),d(2),m("disabled",e.addons_cart.length<=0),d(6),m("ngIf",e.opened_subscription_data==null?null:e.opened_subscription_data._id),d(5),m("src",L(e.brand_details==null?null:e.brand_details.logo_url),j),d(3),y(e.opened_company_data.company_name),d(2),K("",e.opened_company_data.street,", ",e.opened_company_data.streetNumber),d(2),Y("",e.opened_company_data.postCode,", ",e.opened_company_data.city,", ",e.opened_company_data.country),d(3),y(e.brand_details==null||e.brand_details.company_info[0]==null?null:e.brand_details.company_info[0].name),d(2),K("",e.brand_details==null||e.brand_details.company_info[0]==null?null:e.brand_details.company_info[0].street,", ",e.brand_details==null||e.brand_details.company_info[0]==null?null:e.brand_details.company_info[0].streetNumber),d(2),Y("",e.brand_details==null||e.brand_details.company_info[0]==null?null:e.brand_details.company_info[0].postCode,", ",e.brand_details==null||e.brand_details.company_info[0]==null?null:e.brand_details.company_info[0].city,", ",e.brand_details==null||e.brand_details.company_info[0]==null?null:e.brand_details.company_info[0].country),d(2),y(e.brand_details==null?null:e.brand_details.email),d(6),Y("Rechnung: ",e.brand_details.transaction_number_string.toUpperCase(),"/",e.invoice_no,"/",e.year),d(2),M("Datum: ",N(148,62,e.today_date,"dd.MM.yyyy")),d(15),m("ngForOf",e.addons_cart),d(4),M(" ",e.brand_details.company_info[0].name),d(2),K("Gesch\xE4ftsf\xFChrer:\xA0",e.brand_details.company_info[0].ceos[0].firstname,"\xA0",e.brand_details.company_info[0].ceos[0].lastname),d(2),y(e.brand_details.urls.main_url),d(2),M("",e.brand_details.email," "),d(),m("ngIf",e.brand_id=="649980716b2c37490c12e432"),d(),m("ngIf",e.brand_id=="649980716b2c37490c12e432"),d(),m("ngIf",e.brand_id!="649980716b2c37490c12e432"),d(),m("ngIf",e.brand_id!="649980716b2c37490c12e432"),d(2),m("ngIf",e.brand_details.company_info[0].main_bank_details)}}function Kc(l,a){if(l&1){let e=b();i(0,"div",59)(1,"div",13)(2,"div",79)(3,"div",393)(4,"h6",394),r(5,"Bitte w\xE4hlen Sie die Art der Kundenerstellung aus:"),t(),i(6,"div",395)(7,"div",263)(8,"div",396),_("click",function(){u(e);let o=c();return o.resetOnboardingModal(),g(o.selectCustomerCreationType(0))}),p(9,"img",397)(10,"br"),i(11,"h6",186),r(12,"Einzeln"),p(13,"br"),r(14,"Kundenunternehmen"),t(),i(15,"p",186),r(16,"(Einzeln Kundenunternehmen Erstellen)"),t()()(),i(17,"div",263)(18,"div",396),_("click",function(){u(e);let o=c();return o.resetOnboardingModal(),g(o.selectCustomerCreationType(1))}),p(19,"img",398)(20,"br"),i(21,"h6",186),r(22,"Excel"),p(23,"br"),r(24,"hochladen"),t(),i(25,"p",186),r(26,"(Mehrere Kundenunternehmen Erstellen)"),t()()()()()()()()}}function Wc(l,a){if(l&1){let e=b();i(0,"div",59)(1,"app-hrtech-customer-onboarding",399),_("clearOpenedCompany",function(o){u(e);let s=c();return o=="refresh_interested"&&s.get_hrtech_companies(),g(s.opened_company_data={})})("showRequests",function(){u(e);let o=c();return o.selectedCustomerTab=0,o.closeAddHrCustomerModals(),o.opened_company_data.sentCustomerRequests=[],g(o.fetchSentCustomerRequests())}),t()()}if(l&2){let e=c();d(),m("hrCompany",e.opened_company_data)}}function Zc(l,a){if(l&1){let e=b();i(0,"div",59)(1,"app-hrtech-company-users-onboarding",400),_("dataSaved",function(){u(e);let o=c();return g(o.closeEmployeeAddModal())}),t()()}if(l&2){let e=c();d(),m("companyData",e.opened_company_data)}}
28function Jc(l,a){if(l&1&&(i(0,"div",393)(1,"h6",394),r(2,"Kundendetails:"),t(),i(3,"div",82)(4,"div",402)(5,"h6",403),r(6,"Unternehmensname: "),i(7,"span",404),r(8),t()()(),i(9,"div",402)(10,"h6",403),r(11,"Unternehmensform: "),i(12,"span",404),r(13),t()()(),i(14,"div",402)(15,"h6",403),r(16,"Anforderungsdatum: "),i(17,"span",404),r(18),V(19,"date"),t()()(),i(20,"div",402)(21,"h6",405),r(22,"Status: "),i(23,"span",404),p(24,"span",125),r(25),V(26,"date"),t()()()()()),l&2){let e,n,o=c(2);d(8),y(o.opened_request==null||o.opened_request.Requested_to[0]==null?null:o.opened_request.Requested_to[0].company_name),d(5),y(o.opened_request==null||o.opened_request.Requested_to[0]==null?null:o.opened_request.Requested_to[0].company_type),d(5),y(N(19,6,o.opened_request==null?null:o.opened_request.createdAt,"dd.MM.yyyy")),d(6),m("ngClass",(o.opened_request==null||(e=o.opened_request.status.at(-1))==null?null:e.status)=="0"?"text-danger":"text-success"),d(),K(" ",(o.opened_request==null||(n=o.opened_request.status.at(-1))==null?null:n.status)=="1"?"Akzeptiert":"Angefordert"," (",N(26,9,o.opened_request==null||(n=o.opened_request.status.at(-1))==null?null:n.date,"dd.MM.yyyy"),") ")}}function Qc(l,a){if(l&1&&(i(0,"div",393)(1,"h6",394),r(2,"Dienstleisterdetails:"),t(),i(3,"div",82)(4,"div",402)(5,"h6",403),r(6,"Dienstleister: "),i(7,"span",404),r(8),t()()(),i(9,"div",402)(10,"h6",403),r(11,"Dienstleisterform: "),i(12,"span",404),r(13),t()()(),i(14,"div",402)(15,"h6",403),r(16,"Anforderungsdatum: "),i(17,"span",404),r(18),V(19,"date"),t()()(),i(20,"div",402)(21,"h6",405),r(22,"Status: "),i(23,"span",404),p(24,"span",125),r(25),V(26,"date"),t()()()()()),l&2){let e,n,o=c(2);d(8),y(o.opened_request==null||o.opened_request.Requested_from==null||o.opened_request.Requested_from[0]==null?null:o.opened_request.Requested_from[0].company_name),d(5),y(o.opened_request==null||o.opened_request.Requested_from==null||o.opened_request.Requested_from[0]==null?null:o.opened_request.Requested_from[0].company_type),d(5),y(N(19,6,o.opened_request==null?null:o.opened_request.createdAt,"dd.MM.yyyy")),d(6),m("ngClass",(o.opened_request==null||(e=o.opened_request.status.at(-1))==null?null:e.status)=="0"?"text-danger":"text-success"),d(),K(" ",(o.opened_request==null||(n=o.opened_request.status.at(-1))==null?null:n.status)=="1"?"Akzeptiert":"Angefordert"," (",N(26,9,o.opened_request==null||(n=o.opened_request.status.at(-1))==null?null:n.date,"dd.MM.yyyy"),") ")}}function Xc(l,a){if(l&1&&(i(0,"div",59)(1,"div",13)(2,"div",79),v(3,Jc,27,12,"div",401)(4,Qc,27,12,"div",401),t()()()),l&2){let e=c();d(3),m("ngIf",e.opened_request==null?null:e.opened_request.Requested_to),d(),m("ngIf",e.opened_request==null?null:e.opened_request.Requested_from)}}function Yc(l,a){l&1&&(i(0,"q"),r(1,"Gesch\xE4ftsf\xFChrer"),t())}function ep(l,a){l&1&&(i(0,"span",442),r(1," (Sie als vertretungsberechtigte Person)"),t())}function tp(l,a){l&1&&p(0,"i",443)}function np(l,a){l&1&&p(0,"i",444)}function ip(l,a){if(l&1&&(i(0,"div",445)(1,"div",402)(2,"p",446),r(3,"Anrede:"),t(),i(4,"mat-radio-group",447)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",418)(14,"mat-form-field",410)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",448),t()(),i(18,"div",418)(19,"mat-form-field",410)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",449),t()(),i(23,"div",418)(24,"mat-form-field",410)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",449),V(28,"date"),t()(),i(29,"div",418)(30,"mat-form-field",410)(31,"mat-label"),r(32,"Stra\xDFe"),t(),p(33,"input",422),t()(),i(34,"div",418)(35,"mat-form-field",410)(36,"mat-label"),r(37,"Haus Nr."),t(),p(38,"input",424),t()(),i(39,"div",418)(40,"mat-form-field",410)(41,"mat-label"),r(42,"PLZ"),t(),p(43,"input",425),t()(),i(44,"div",415)(45,"mat-form-field",410)(46,"mat-label"),r(47,"Stadt"),t(),p(48,"input",426),t()(),i(49,"div",415)(50,"mat-form-field",410)(51,"mat-label"),r(52,"Land"),t(),p(53,"input",450),t()()()),l&2){let e=c().$implicit;d(4),m("value",e.title)("disabled",!0),d(13),m("value",e.firstname),d(5),m("value",e.lastname),d(5),m("value",L(N(28,16,e.birthdate,"dd.MM.yyyy"))),d(6),m("value",L(e.street)),d(5),m("value",L(e.street_number)),d(5),m("value",L(e.zip_code)),d(5),m("value",L(e.city)),d(5),m("value",L(e.country))}}function ap(l,a){if(l&1){let e=b();H(0),i(1,"div",436)(2,"h5",437),_("click",function(){let o=u(e).$implicit;return g(o.opened=!o.opened)}),p(3,"i",250),r(4,"\xA0\xA0 "),v(5,Yc,2,0,"q",161),r(6),v(7,ep,2,0,"span",438)(8,tp,1,0,"i",439)(9,np,1,0,"i",440),t(),v(10,ip,54,19,"div",441),t(),q()}if(l&2){let e=a.$implicit,n=a.index;d(),m("ngClass",e.opened?"field-heading-parent":"rounded neoloop-div-bg p-2"),d(),m("ngClass",e.opened?"field-heading":""),d(3),m("ngIf",!e.firstname&&!e.lastname),d(),K(" ",e.firstname," ",e.lastname," "),d(),m("ngIf",n==0),d(),m("ngIf",e.opened),d(),m("ngIf",!e.opened),d(),m("ngIf",e.opened)}}function rp(l,a){l&1&&(i(0,"q"),r(1,"Sonstige Bevollm\xE4chtigte"),t())}function op(l,a){if(l&1&&(H(0),r(1),q()),l&2){let e=c().$implicit;d(),K(" ",e.firstname," ",e.lastname," ")}}function lp(l,a){l&1&&p(0,"i",443)}function dp(l,a){l&1&&p(0,"i",444)}function mp(l,a){if(l&1&&(i(0,"div",445)(1,"div",402)(2,"p",446),r(3,"Anrede:"),t(),i(4,"mat-radio-group",447)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",418)(14,"mat-form-field",410)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",448),t()(),i(18,"div",418)(19,"mat-form-field",410)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",449),t()(),i(23,"div",418)(24,"mat-form-field",410)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",449),V(28,"date"),t()(),i(29,"div",418)(30,"mat-form-field",410)(31,"mat-label"),r(32,"Stra\xDFe"),t(),p(33,"input",422),t()(),i(34,"div",418)(35,"mat-form-field",410)(36,"mat-label"),r(37,"Haus Nr."),t(),p(38,"input",424),t()(),i(39,"div",418)(40,"mat-form-field",410)(41,"mat-label"),r(42,"PLZ"),t(),p(43,"input",425),t()(),i(44,"div",415)(45,"mat-form-field",410)(46,"mat-label"),r(47,"Stadt"),t(),p(48,"input",426),t()(),i(49,"div",415)(50,"mat-form-field",410)(51,"mat-label"),r(52,"Land"),t(),p(53,"input",450),t()()()),l&2){let e=c().$implicit;d(4),m("value",e.title)("disabled",!0),d(13),m("value",e.firstname),d(5),m("value",e.lastname),d(5),m("value",L(N(28,16,e.birthdate,"dd.MM.yyyy"))),d(6),m("value",L(e.street)),d(5),m("value",L(e.street_number)),d(5),m("value",L(e.zip_code)),d(5),m("value",L(e.city)),d(5),m("value",L(e.country))}}function sp(l,a){if(l&1){let e=b();H(0),i(1,"div",436)(2,"h5",437),_("click",function(){let o=u(e).$implicit;return g(o.opened=!o.opened)}),p(3,"i",250),r(4,"\xA0\xA0 "),v(5,rp,2,0,"q",161)(6,op,2,2,"ng-container",161)(7,lp,1,0,"i",439)(8,dp,1,0,"i",440),t(),v(9,mp,54,19,"div",441),t(),q()}if(l&2){let e=a.$implicit;d(),m("ngClass",e.opened?"field-heading-parent":"rounded neoloop-div-bg p-2"),d(),m("ngClass",e.opened?"":"field-heading"),d(3),m("ngIf",!e.firstname&&!e.lastname),d(),m("ngIf",e.firstname||e.lastname),d(),m("ngIf",!e.opened),d(),m("ngIf",e.opened),d(),m("ngIf",e.opened)}}function cp(l,a){l&1&&(i(0,"q"),r(1,"Wirtschaftlich Berechtigte"),t())}function pp(l,a){if(l&1&&(H(0),r(1),q()),l&2){let e=c().$implicit;d(),K(" ",e.firstname," ",e.lastname," ")}}function _p(l,a){l&1&&p(0,"i",443)}function up(l,a){l&1&&p(0,"i",444)}function gp(l,a){if(l&1&&(i(0,"div",452)(1,"div",402)(2,"p",446),r(3,"Anrede:"),t(),i(4,"mat-radio-group",447)(5,"mat-radio-button",90),r(6,"Frau"),t(),r(7,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(8,"mat-radio-button",89),r(9,"Herr"),t(),r(10,"\xA0\xA0\xA0\xA0\xA0\xA0 "),i(11,"mat-radio-button",91),r(12,"Divers"),t()()(),i(13,"div",418)(14,"mat-form-field",410)(15,"mat-label"),r(16,"Vorname"),t(),p(17,"input",448),t()(),i(18,"div",418)(19,"mat-form-field",410)(20,"mat-label"),r(21,"Nachname"),t(),p(22,"input",449),t()(),i(23,"div",418)(24,"mat-form-field",410)(25,"mat-label"),r(26,"Geburtsdatum"),t(),p(27,"input",449),V(28,"date"),t()(),i(29,"div",418)(30,"mat-form-field",410)(31,"mat-label"),r(32,"Stra\xDFe"),t(),p(33,"input",422),t()(),i(34,"div",418)(35,"mat-form-field",410)(36,"mat-label"),r(37,"Haus Nr."),t(),p(38,"input",424),t()(),i(39,"div",418)(40,"mat-form-field",410)(41,"mat-label"),r(42,"PLZ"),t(),p(43,"input",425),t()(),i(44,"div",415)(45,"mat-form-field",410)(46,"mat-label"),r(47,"Stadt"),t(),p(48,"input",426),t()(),i(49,"div",415)(50,"mat-form-field",410)(51,"mat-label"),r(52,"Land"),t(),p(53,"input",450),t()(),i(54,"div",453)(55,"mat-form-field",454)(56,"mat-label"),r(57,"Unternehmensanteil in Prozent"),t(),p(58,"input",455),t()()()),l&2){let e=c(),n=e.$implicit,o=e.index;m("formGroupName",o),d(4),m("value",n.title)("disabled",!0),d(13),m("value",n.firstname),d(5),m("value",n.lastname),d(5),m("value",L(N(28,19,n.birthdate,"dd.MM.yyyy"))),d(6),m("value",L(n.street)),d(5),m("value",L(n.street_number)),d(5),m("value",L(n.zip_code)),d(5),m("value",L(n.city)),d(5),m("value",L(n.country)),d(5),m("value",L(n.share_percentage))}}function hp(l,a){if(l&1){let e=b();H(0),i(1,"div",436)(2,"h5",437),_("click",function(){let o=u(e).$implicit;return g(o.opened=!o.opened)}),p(3,"i",250),r(4,"\xA0\xA0 "),v(5,cp,2,0,"q",161)(6,pp,2,2,"ng-container",161)(7,_p,1,0,"i",439)(8,up,1,0,"i",440),t(),v(9,gp,59,22,"div",451),t(),q()}if(l&2){let e=a.$implicit;d(),m("ngClass",e.opened?"field-heading-parent":"rounded neoloop-div-bg p-2"),d(),m("ngClass",e.opened?"field-heading":""),d(3),m("ngIf",!e.firstname&&!e.lastname),d(),m("ngIf",e.firstname||e.lastname),d(),m("ngIf",e.opened),d(),m("ngIf",!e.opened),d(),m("ngIf",e.opened)}}function fp(l,a){if(l&1){let e=b();i(0,"div",59)(1,"div",82)(2,"div",79)(3,"mat-tab-group",406),_("selectedTabChange",function(o){u(e);let s=c();return g(o.index==2?s.showContract():"")}),i(4,"mat-tab",407)(5,"div",408)(6,"div",263)(7,"div",393)(8,"h6",394),r(9,"Unternehmensname:"),t(),i(10,"div",409)(11,"mat-form-field",410)(12,"mat-label"),r(13,"Unternehmensname"),t(),p(14,"input",411),t()()()(),i(15,"div",263)(16,"div",393)(17,"h6",394),r(18,"Unternehmensform:"),t(),i(19,"div",409)(20,"mat-form-field",410)(21,"mat-label"),r(22,"Unternehmensform"),t(),p(23,"input",412),t()()()(),i(24,"div",413)(25,"div",393)(26,"h6",394),r(27,"Offiziellen Daten des Unternehmens:"),t(),i(28,"div",414)(29,"div",415)(30,"mat-form-field",410)(31,"mat-label"),r(32,"Registerort "),t(),p(33,"input",416),t()(),i(34,"div",415)(35,"mat-form-field",410)(36,"mat-label"),r(37,"Registernummer "),t(),p(38,"input",417),t()(),i(39,"div",418)(40,"mat-form-field",410)(41,"mat-label"),r(42,"Finanzamt"),t(),p(43,"input",419),t()(),i(44,"div",418)(45,"mat-form-field",410)(46,"mat-label"),r(47,"Steuernummer "),t(),p(48,"input",420),t()(),i(49,"div",418)(50,"mat-form-field",410)(51,"mat-label"),r(52,"USt-IdNr"),t(),p(53,"input",421),t()()()()(),i(54,"div",413)(55,"div",393)(56,"h6",394),r(57,"Offizielle Gesch\xE4ftsadresse:"),t(),i(58,"div",414)(59,"div",418)(60,"mat-form-field",410)(61,"mat-label"),r(62,"Stra\xDFe"),t(),p(63,"input",422),t()(),i(64,"div",423)(65,"mat-form-field",410)(66,"mat-label"),r(67,"Haus Nr."),t(),p(68,"input",424),t()(),i(69,"div",423)(70,"mat-form-field",410)(71,"mat-label"),r(72,"PLZ"),t(),p(73,"input",425),t()(),i(74,"div",418)(75,"mat-form-field",410)(76,"mat-label"),r(77,"Stadt"),t(),p(78,"input",426),t()(),i(79,"div",415)(80,"mat-form-field",410)(81,"mat-label"),r(82,"C/O Appartmentnummer, T\xFCrcode, usw."),t(),p(83,"input",427),t()(),i(84,"div",415)(85,"mat-form-field",410)(86,"mat-label"),r(87,"L
28and des Wohnsitzes"),t(),p(88,"input",428),t()()()()()()(),i(89,"mat-tab",429)(90,"div",163)(91,"div",79)(92,"div",430)(93,"div",431)(94,"h4",432),r(95,"Gesch\xE4ftsf\xFChrer:"),t()()(),v(96,ap,11,9,"ng-container",35),t(),i(97,"div",79)(98,"div",430)(99,"div",431)(100,"h4",432),r(101,"Sonstige Bevollm\xE4chtigte:"),t()()(),v(102,sp,10,7,"ng-container",35),t(),i(103,"div",79)(104,"div",430)(105,"div",431)(106,"h4",432),r(107,"Wirtschaftlich Berechtigte:"),t()()(),v(108,hp,10,7,"ng-container",35),t()()(),i(109,"mat-tab",433)(110,"div",408)(111,"div",79)(112,"div",434),p(113,"embed",435),t()()()()()()()()}if(l&2){let e=c();d(14),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.company_name),d(9),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.company_type),d(10),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.register_location),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.register_number),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.tax_office),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.tax_number),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.vat_id_number),d(10),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.street),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.streetNumber),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.postCode),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.city),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.appartment_number),d(5),m("value",e.opened_company_data==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.country),d(8),m("ngForOf",e.opened_company_data==null||e.opened_company_data.opened_customer_company==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.ceos),d(6),m("ngForOf",e.opened_company_data==null||e.opened_company_data.opened_customer_company==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.other_authorized_persons),d(6),m("ngForOf",e.opened_company_data==null||e.opened_company_data.opened_customer_company==null||e.opened_company_data.opened_customer_company.customer_company_info==null?null:e.opened_company_data.opened_customer_company.customer_company_info.shareholders)}}function xp(l,a){if(l&1&&(i(0,"div",59)(1,"h6",456),r(2,"Vertragsvorschau:"),t(),i(3,"div",457)(4,"div",82)(5,"div",458),p(6,"img",459),t(),i(7,"div",360)(8,"p")(9,"b"),r(10,"VERTRAG \xDCBER ARBEITNEHMERDIENSTLEISTUNGEN"),t()()(),i(11,"div",460)(12,"span",369)(13,"b"),r(14,"DIENSTLEISTER"),t()(),i(15,"p",221),r(16),t(),i(17,"p",221),r(18),t(),i(19,"p",221),r(20),t(),i(21,"p",221),r(22),t()(),i(23,"div",461)(24,"span",369)(25,"b"),r(26,"KUNDE"),t()(),i(27,"p",221),r(28),t(),i(29,"p",221),r(30),t(),i(31,"p",221),r(32),t(),i(33,"p",221),r(34),t()(),i(35,"div",462)(36,"section")(37,"h6"),r(38,"1.Dienstleistungsumfang"),t(),i(39,"p",463),r(40,"1.1 Der Dienstleister verpflichtet sich, dem Kunden qualifizierte Mitarbeiter f\xFCr eine befristete Besch\xE4ftigung in ver
28schiedenen Positionen gem\xE4\xDF den Spezifikationen des Kunden zur Verf\xFCgung zu stellen."),t()(),i(41,"section")(42,"h6"),r(43,"2.Verpflichtungen des Dienstleisters"),t(),i(44,"p",463),r(45,"2.1 Rekrutierung und Auswahl: Der Dienstleister ist verantwortlich f\xFCr die Rekrutierung, Auswahl und Auswahl der Mitarbeiter gem\xE4\xDF den Spezifikationen des Kunden."),t(),i(46,"p",463),r(47,"2.2 Mitarbeitermanagement: Der Dienstleister stellt die notwendige Aufsicht und Leitung der Mitarbeiter w\xE4hrend der Besch\xE4ftigungszeit sicher."),t()(),i(48,"section")(49,"h6"),r(50,"3.Verpflichtungen des Kunden"),t(),i(51,"p",463),r(52,"3.1 Einrichtungen und Ressourcen: Der Kunde stellt die notwendigen Einrichtungen, Ressourcen und Arbeitsumgebung f\xFCr die Mitarbeiter bereit."),t(),i(53,"p",463),r(54,"3.2 Zahlung: Der Kunde verpflichtet sich, dem Dienstleister eine Geb\xFChr gem\xE4\xDF Anhang A zu zahlen, der diesem Vertrag beigef\xFCgt und durch Verweis aufgenommen wird."),t()(),i(55,"section")(56,"h6"),r(57,"4.Mitarbeiterdetails"),t(),i(58,"p",463),r(59,"4.1 Der Dienstleister stellt Mitarbeiter mit Qualifikationen und F\xE4higkeiten bereit, die f\xFCr die vereinbarten Positionen beider Parteien geeignet sind."),t()(),i(60,"section")(61,"h6"),r(62,"5.Bedingungen und Konditionen"),t(),i(63,"p",463),r(64,"5.1 Dieser Vertrag tritt am [Startdatum] in Kraft und bleibt g\xFCltig, sofern nicht gem\xE4\xDF die
28ser Vereinbarung fr\xFCher beendet."),t()(),i(65,"section")(66,"h6"),r(67,"6.Vertraulichkeit"),t(),i(68,"p",463),r(69,"6.1 Beide Parteien verpflichten sich zur Wahrung der Vertraulichkeit aller w\xE4hrend der Laufzeit dieses Vertrags geteilten propriet\xE4ren Informationen."),t()(),i(70,"section")(71,"h6"),r(72,"7.Beendigung"),t(),i(73,"p",463),r(74,"7.1 Jede Partei kann diesen Vertrag mit einer [K\xFCndigungsfrist]-fristigen schriftlichen K\xFCndigung beenden."),t()(),i(75,"section")(76,"h6"),r(77,"8.Haftungsausschluss"),t(),i(78,"p",463),r(79,"8.1 Beide Parteien entbinden sich gegenseitig von jeglichen Anspr\xFCchen, die sich aus der Erf\xFCllung dieses Vertrags ergeben."),t()(),i(80,"section")(81,"h6"),r(82,"9.Schiedsverfahren"),t(),i(83,"p",463),r(84,"9.1 Alle aus oder im Zusammenhang mit diesem Vertrag entstehenden Streitigkeiten werden durch Mediation gel\xF6st, bevor rechtliche Schritte unternommen werden."),t()()(),i(85,"div",464),p(86,"hr",465),i(87,"p",466),r(88,"Kunde"),t(),i(89,"p",466),r(90),t(),i(91,"p",466),r(92),t()(),p(93,"div",363),i(94,"div",467),p(95,"img",468)(96,"hr",469),i(97,"p",466),r(98),t(),i(99,"p",466),r(100,"vertr.d.d. Gesch\xE4ftsf\xFChrer"),t(),i(101,"p",466),r(102),t()()()()()),l&2){let e=c();d(6),m("src",L(e.brand_details.logo_url),j),d(10),y(e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null?null:e.opened_request.Requested_from[0].company_name),d(2),K(" ",e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null?null:e.opened_request.Requested_from[0].street,"\xA0\xA0",e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null?null:e.opened_request.Requested_from[0].streetNumber," "),d(2),K(" ",e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null?null:e.opened_request.Requested_from[0].postCode,"\xA0",e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null?null:e.opened_request.Requested_from[0].city),d(2),y(e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null?null:e.opened_request.Requested_from[0].country),d(6),y(e.opened_company_data==null?null:e.opened_company_data.company_name),d(2),K("",e.opened_company_data==null?null:e.opened_company_data.street,"\xA0\xA0",e.opened_company_data.streetNumber),d(2),K("",e.opened_company_data.postCode,"\xA0",e.opened_company_data.city),d(2),y(e.opened_company_data.country),d(56),Y("",e.opened_company_data==null?null:e.opened_company_data.ceos[0].title," ",e.opened_company_data==null?null:e.opened_company_data.ceos[0].firstname," ",e.opened_company_data==null?null:e.opened_company_data.ceos[0].lastname),d(2),y(e.opened_company_data==null?null:e.opened_company_data.company_name),d(3),m("src",L(e.api_url+"document/downloaddocument/"+(e.opened_request==null||e.opened_request.registered_by_info==null?null:e.opened_request.registered_by_info.user.brokeresign)),j),d(3),y(e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null?null:e.opened_request.Requested_from[0].company_name),d(4),Y(" ",e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null||e.opened_request.Requested_from[0].ceos==null||e.opened_request.Requested_from[0].ceos[0]==null?null:e.opened_request.Requested_from[0].ceos[0].title,"\xA0",e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null||e.opened_request.Requested_from[0].ceos==null||e.opened_request.Requested_from[0].ceos[0]==null?null:e.opened_request.Requested_from[0].ceos[0].firstname,"\xA0",e.opened_request==null||e.opened_request.Requested_from==null||e.opened_request.Requested_from[0]==null||e.opened_request.Requested_from[0].ceos==null||e.opened_request.Requested_from[0].ceos[0]==null?null:e.opened_request.Requested_from[0].ceos[0].lastname," ")}}function vp(l,a){l&1&&p(0,"img",470)}function yp(l,a){l&1&&p(0,"img",471)}var Fi=class l{constructor(a,e,n,o,s,h,E,w,I,F,C,A,T,Q){this.router=a;this.userService=e;this.route=n;this.pagerService=o;this._formBuilder=s;this.socketAlertService=h;this.socket=E;this.datePipe=w;this.sweetAlert=I;this.sanitizer=F;this.authService=C;this.dialog=A;this.scrollStrategyOptions=T;this.cdr=Q;this.brand_id="";this.brand_details={};this.companiesList=[];this.interestedCompanies=[];this.opened_company_data={};this.pager={};this.total_count=0;this.currentPage=1;this.pager_interested={};this.total_interested_count=0;this.currentPage_interested=1;this.departmentsList=[];this.opened_department_details={};this.pager_departments={};this.pager_requests={};this.total_requests_count=0;this.currentPage_requests=1;this.pager_Receivedrequests={};this.pager_partners={};this.pager_HrCustomers={};this.total_HrCustomers_count=0;this.currentPage_HrCustomers=1;this.pager_users={};this.pager_employees={};this.all_company_users=[];this.opened_user={};this.all_company_employees=[];this.CompanyType=["Einzelunternehmen","Eingetragener Kaufmann (e.K.)","Gesellschaft mit beschr\xE4nkter Haftung (GmbH)","Gesellschaft b\xFCrgerlichen Rechts (GbR)","Offene Handelsgesellschaft (OHG)","Kommanditgesellschaft (KG)","GmbH & Co KG","UG & Co. KG","Kommanditgesellschaft auf Aktien (KGaA)","Unternehmergesellschaft (haftungsbeschr\xE4nkt)","Aktiengesellschaft (AG)","eingetragene Genossenschaft (eG)"];this.temp_CompanyType=["Einzelunternehmen","Eingetragener Kaufmann (e.K.)","Gesellschaft mit beschr\xE4nkter Haftung (GmbH)","Gesellschaft b\xFCrgerlichen Rechts (GbR)","Offene Handelsgesellschaft (OHG)","Kommanditgesellschaft (KG)","GmbH & Co KG","UG & Co. KG","Kommanditgesellschaft auf Aktien (KGaA)","Unternehmergesellschaft (haftungsbeschr\xE4nkt)","Aktiengesellschaft (AG)","eingetragene Genossenschaft (eG)"];this.opened={bank:[],ceo:[],authorized:[],shareholder:[]};this.opened_departments=[];this.tax_details={};this.isFormDirty=!1;this.opened_subscription_data={};this.minDate=new Date(1900,0,1);this.maxDate=new Date(2020,0,1);this.addons=[];this.addons_cart=[];this.invoice_no="";this.year=new Date().getFullYear();this.today_date=new Date;this.opened_request={};this.selectedCustomerTab=0;this.selectedParentTabIndex=0;this.api_url=rt.API_URL;this.verifyCompany={};this.main_tab=0;this.imgpath=this.api_url+"document/downloaddocument/";this.isHovering=!1;this.logoAvailable=!1;
28this.searchSubject=new Ue;this.supplierSearchTerm="";this.employeeData=[];this.filteredEmployeeData=[];this.currentPageItems=1;this.isDataAvailable=!0;this.savedocumentchnage=!1;this.selectedTabIndex=0}ngOnInit(){this.userSubscription=this.authService.user$.subscribe(a=>{this.currentUser=a}),this.route.paramMap.subscribe(a=>{this.brand_id=a.get("brand_id"),$("#loaderouterid").css("display","flex"),this.userService.get_brand_details_by_id({brand_id:this.brand_id}).subscribe(e=>{if(console.log("brand details came here"),console.log(e),this.brand_details=e[0],this.brand_details.company_info[0].bank_details)if(this.brand_details.company_info[0].bank_details.length>1){for(let n=0;n<this.brand_details.company_info[0].bank_details.length;n++)if(this.brand_details.company_info[0].bank_details[n].main_bank=="1"){this.brand_details.company_info[0].main_bank_details=this.brand_details.company_info[0].bank_details[n];break}}else this.brand_details.company_info[0].main_bank_details=this.brand_details.company_info[0].bank_details[0];this.userService.get_last_ecoshark_invoice_no(this.brand_id).subscribe(n=>{console.log("Brought last invoice data"),console.log(n),this.invoice_no=n}),this.setPage(1),this.setPage_interested(1),this.get_available_addons()})}),this.editCompanyFormGroup=this._formBuilder.group({company_id:["",S.required],company_name:["",S.required],company_type:["",S.required],company_logo:["",S.required],street:["",S.required],streetNumber:["",S.required],postCode:["",S.required],city:["",S.required],appartment_number:[""],country:["",S.required],vat_id_number:["",S.required],bank_details:this._formBuilder.array([]),register_location:[""],register_number:[""],tax_office:[""],tax_number:[""]}),this.editUserFormGroup=this._formBuilder.group({user_designation:["Benutzer",S.required],user_id:["",S.required],title:["",S.required],firstName:["",S.required],lastName:["",S.required],email:["",[S.required,S.email]],phone_number:["",S.required],dob:["",S.required],nationality:["",S.required],birthPlace:["",S.required],street:["",S.required],streetNumber:["",S.required],postCode:["",S.required],city:["",S.required],additionalReference:[""],countryOfResidence:["",S.required],customerno:["",S.required]}),this.editCompanyDynamicFormGroup=this._formBuilder.group({company_ceos:this._formBuilder.array([]),company_other_authorized_persons:this._formBuilder.array([]),company_shareholders:this._formBuilder.array([])}),this.editDepartmentFormGroup=this._formBuilder.group({departments:this._formBuilder.array([])}),this.searchSubject.pipe(nt(400),Rn()).subscribe(a=>{this.supplierSearchTerm=a.trim()})}add_company(){this.authService.getEditPermission()&&this.router.navigate(["/neoloop/hrtech-add-company/"+this.brand_id])}checkTab(a){console.log("check event = ",a)}getAllcompanyUsers(){$("#loaderouterid").css("display","flex");let a=[this.opened_company_data];this.companiesList.map(e=>a.push(e._id)),this.brand_details.module_info[0].ecommerce_producttype_types.includes("Digital (EdTech)")?this.userService.getUsersByCompanyBrandAccess({company_ids:[this.opened_company_data._id],brand_id:this.brand_details._id}).subscribe(e=>{this.all_company_users=e.data.length>0?e.data:[],this.setPage_users(1)}):this.userService.getUsersByCompany({company_ids:[this.opened_company_data._id],brand_name:this.brand_details.name}).subscribe(e=>{this.all_company_users=e.data.length>0?e.data:[],this.setPage_users(1)})}setPage_users(a){this.pager_users=this.pagerService.getPager(this.all_company_users.length,a),this.pagedItems_users=this.all_company_users.slice(this.pager_users.startIndex,this.pager_users.endIndex+1),this.all_company_users.length>0?(this.startRecord_users=this.pager_users.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_users=this.pager_users.currentPage*this.pagerService.getDefaultPageSize()>this.all_company_users.length?this.all_company_users.length:this.pager_users.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_users=0,this.endRecord_users=0),$("#loaderouterid").css("display","none")}getAllcompanyemployee(a=""){return Se(this,null,function*(){let e=[this.opened_company_data];this.companiesList.map(o=>e.push(o._id));let n={page:this.currentPageItems,limit:30,brand_id:this.brand_details._id,hrtech_company_id:this.opened_company_data._id,signed:"1",keyword:a,type:"all"};return new Promise(o=>{this.userService.get_hetech_Employees(n).subscribe(s=>{if(console.log(s.data[0].employee_data,"check2"),s.data[0]){this.count=s.data[0].count[0]?.total_employees,console.log("count",this.count);let h=s.data[0].employee_data;this.count>0?this.employeeData=h:this.employeeData=[],this.filteredEmployeeData=this.employeeData,console.log("Filtered Employees:",this.filteredEmployeeData)}o(!0)})})})}setPage_employee(a){return Se(this,null,function*(){$("#loaderouterid").css("display","flex"),this.currentPageItems=a,yield this.getAllcompanyemployee(this.searchKeyword),this.pagedItems_employees=this.filteredEmployeeData,console.log("pagedItems_employees",this.pagedItems_employees),this.isDataAvailable=this.pagedItems_employees.length>0,this.pager_employees=this.pagerService.getPager(this.count,a),this.filteredEmployeeData.length>0?(this.startRecord_employees=this.pager_employees.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_employees=this.pager_employees.currentPage*this.pagerService.getDefaultPageSize()>this.filteredEmployeeData.length?this.filteredEmployeeData.length:this.pager_employees.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_employees=0,this.endRecord_employees=0),$("#loaderouterid").css("display","none")})}searchEmployee(a){this.searchKeyword=a.target.value.trim(),this.setPage_employee(1)}openUser(a){this.editUserFormGroup=this._formBuilder.group({user_designation:a.user_role_name,user_id:a._id,title:a.title,firstName:a.firstname,lastName:a.lastname,email:a.email,phone_number:a.contactno,dob:a?.dateofbirth?this.datePipe.transform(new Date(a?.dateofbirth),"dd.MM.yyyy"):"",nationality:a.nationality,birthPlace:a.birth_place,street:
28a.strassa,streetNumber:a.strno,postCode:a.plz,city:a.city,additionalReference:a.additionalReference,countryOfResidence:a.current_country,customerno:a.customerno}),this.opened_user=a,this.editUserFormGroup.disable(),$("#viewUserModal").modal("show"),setTimeout(()=>{let e=document.querySelector("#phone");(0,Cn.default)(e,{})},500),this.open_modal("viewUserModal")}searchUsers(a){if(a.target.value){let e=[];this.all_company_users.map(n=>{["title","firstname","lastname","email"].map(o=>{n[o].toLowerCase().includes(a.target.value.toLowerCase())&&e.push(n)})}),this.pager_users=this.pagerService.getPager(e.length,1),this.pagedItems_users=e.slice(this.pager_users.startIndex,this.pager_users.endIndex+1),e.length>0?(this.startRecord_users=this.pager_users.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_users=this.pager_users.currentPage*this.pagerService.getDefaultPageSize()>e.length?e.length:this.pager_users.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_users=0,this.endRecord_users=0)}else this.setPage_users(1)}companyTabChanged(a){!this.opened_company_data.hr_company&&a==7?this.fetchReceivedCustomerRequests():this.opened_company_data.hr_company&&a==7?this.setPage_HrCustomers(1):this.opened_company_data?._id&&a==4&&this.all_company_users.length==0?this.getAllcompanyUsers():this.opened_company_data?._id&&a==5&&this.setPage_employee(1)}get_available_addons(){this.addons=[],this.userService.get_hrtech_subscription_addons(this.brand_id).subscribe(a=>{console.log("Addons came"),console.log(a),this.addons=a})}bankDetailsFormGroup(){let a=0;return this.bank_details.controls.length==0&&(a=1),this._formBuilder.group({iban:["",S.required],bic:["",S.required],bank_name:["",S.required],main_bank:[a],bank_owner_type:["individual",S.required],bank_owner_company_name:[""],bank_owner_first_name:["",S.required],bank_owner_last_name:["",S.required]})}get bank_details(){return this.editCompanyFormGroup.controls.bank_details}addBankDetails(a){this.bank_details.push(this.bankDetailsFormGroup()),a=="auto"?this.opened.bank.push(!1):this.opened.bank.push(!0)}ceoShareholderFormGroup(){return this._formBuilder.group({title:["",S.required],firstname:["",S.required],lastname:["",S.required],birthdate:["",S.required],street:["",S.required],street_number:["",S.required],zip_code:["",S.required],city:["",S.required],country:["",S.required]})}get company_ceos(){return this.editCompanyDynamicFormGroup.controls.company_ceos}addCeo(a){this.company_ceos.push(this.ceoShareholderFormGroup()),a=="manual"&&(this.opened.ceo[this.opened.ceo.length-1]=!1,this.opened.ceo.push(!0))}get company_other_authorized_persons(){return this.editCompanyDynamicFormGroup.controls.company_other_authorized_persons}addAuthorizedPerson(a){this.company_other_authorized_persons.push(this.ceoShareholderFormGroup()),a=="manual"&&(this.opened.authorized[this.opened.authorized.length-1]=!0,this.opened.authorized.push(!1))}removeAuthorizedPerson(a){this.company_other_authorized_persons.removeAt(a),this.opened.authorized.splice(a,1)}companyShareholderFormGroup(){return this._formBuilder.group({title:["",S.required],firstname:["",S.required],lastname:["",S.required],birthdate:["",S.required],street:["",S.required],street_number:["",S.required],zip_code:["",S.required],city:["",S.required],country:["",S.required],share_percentage:["",S.required]})}
28get company_shareholders(){return this.editCompanyDynamicFormGroup.controls.company_shareholders}addShareholders(a){this.company_shareholders.push(this.companyShareholderFormGroup()),a=="manual"&&(this.opened.shareholder[this.opened.shareholder.length-1]=!1,this.opened.shareholder.push(!0))}departmentFormGroup(){return this._formBuilder.group({name:["",S.required],mobile_number:["+49"],no_reply_email:["",S.required],no_reply_email_host:["",S.required],no_reply_email_password:["",S.required],no_reply_smtp_port:["465",S.required],email:["",S.required],email_password:["",S.required],sending_email_host:["",S.required],smtp_port:["465",S.required],receiving_email_host:["",S.required],imap_port:["993",S.required]})}get departments(){return this.editDepartmentFormGroup.controls.departments}addDepartment(a){this.departments.push(this.departmentFormGroup());for(let e=0;e<this.opened_departments.length;e++)this.opened_departments[e]=!1;this.opened_departments.push(!0),setTimeout(()=>{let e=document.querySelector("#phone"+(this.departments.controls.length-1));(0,Cn.default)(e,{})},200)}get_hrtech_companies(a,e=""){return Se(this,null,function*(){$("#loaderouterid").css("display","flex"),a=a.toString(),this.companiesList=[],this.interestedCompanies=[];let n={brand_id:this.brand_id,interested:a,page:this.currentPage,limit:30,keyword:e};return console.log("check the data to search = ",n),new Promise(o=>{this.userService.fetchHrtechCompanies(n).subscribe(s=>{console.log("check the fetched hr companies ",s),$("#loaderouterid").css("display","none"),s.status=="200"&&(a=="1"?(this.interestedCompanies=s.data&&s.data[0]?s.data[0]?.data:[],this.total_interested_count=s.data&&s.data[0]&&s?.data[0]?.count[0]?s.data[0].count[0].total:0):(this.companiesList=s.data&&s.data[0]?s.data[0]?.data:[],this.total_count=s.data&&s.data[0]&&s?.data[0]?.count[0]?s.data[0].count[0].total:0,console.log("heyyy",this.companiesList),this.companiesList=[...this.companiesList])),o(!0)})})})}setPage(a,e=""){return Se(this,null,function*(){console.log("setpage called",a),this.currentPage=a,yield this.get_hrtech_companies("0",e),this.pager=this.pagerService.getPager(this.total_count,a);let n=this.pagerService.getDefaultPageSize();console.log("COMPANY LENGTH",this.companiesList.length),this.pagedItems=this.companiesList,this.pagedItems=[...this.pagedItems],console.log("PAGED ITEMS",this.pagedItems),this.companiesList.length>0?(this.startRecord=(this.pager.currentPage-1)*n+1,this.endRecord=Math.min(this.pager.currentPage*n,this.companiesList.length)):(this.startRecord=0,this.endRecord=0),$("#loaderouterid").hide()})}setPage_interested(a,e=""){return Se(this,null,function*(){this.currentPage_interested=a,yield this.get_hrtech_companies("1",e),this.pager_interested=this.pagerService.getPager(this.total_interested_count,a),this.pagedItems_interested=this.interestedCompanies,this.interestedCompanies.length>0?(this.startRecord_interested=this.pager_interested.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_interested=this.pager_interested.currentPage*this.pagerService.getDefaultPageSize()>this.interestedCompanies.length?this.interestedCompanies.length:this.pager_interested.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_interested=0,this.endRecord_interested=0),$("#loaderouterid").css("display","none")})}searchCompanies(a){a.target.value?this.main_tab==0?this.setPage(1,a.target.value):this.setPage_interested(1,a.target.value):(this.setPage(this.currentPage),this.setPage_interested(this.currentPage_interested))}setPage_departments(a){this.pager_departments=this.pagerService.getPager(this.departmentsList.length,a),this.pagedItems_departments=this.departmentsList.slice(this.pager_departments.startIndex,this.pager_departments.endIndex+1),this.departmentsList.length>0?(this.startRecord_departments=this.pager_departments.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_departments=this.pager_departments.currentPage*this.pagerService.getDefaultPageSize()>this.departmentsList.length?this.departmentsList.length:this.pager_departments.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_departments=0,this.endRecord_departments=0),$("#loaderouterid").css("display","none")}preview_old_image(a,e){this.open_modal("exampleModalpreview"),$("#openpreviewmodel").trigger("click"),$("#showpreviewtitle").html("<b>Dokumentenname: </b>"+e),$("#showpreviewdownload").attr("href",a),a.indexOf("data:video")!=-1?($("#showpreviewimg").attr("src",""),$("#showpreviewimg").css("display","none"),$("#showpreviewpdf").attr("src",""),$("#showpreviewpdf").css("display","block"),$("#showpreviewvideo").attr("src",a),$("#showpreviewpdf").attr("src",a)):($("#showpreviewpdf").attr("src",""),$("#showpreviewpdf").css("display","none"),$("#showpreviewimg").attr("src",""),$("#showpreviewimg").css("display","block"),$("#showpreviewimg").attr("src",a))}change_bank_owner_validators(a,e){e.value=="company"?(this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_company_name.setValidators([S.required]),this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_first_name.clearValidators(),this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_last_name.clearValidators()):(this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_company_name.clearValidators(),this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_first_name.setValidators([S.required]),this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_last_name.setValidators([S.required])),this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_company_name.updateValueAndValidity(),this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_first_name.updateValueAndValidity(),this.editCompanyFormGroup.controls.bank_details.controls[a].controls.bank_owner_last_name.updateValueAndValidity()}main_bank_selected(a){this.editCompanyFormGroup.controls.bank_details.controls.map(e=>{e.patchValue({main_bank:0})}),this.bank_details.controls[a].patchValue({main_bank:1})}check_main_bank(a){this.bank_details.controls[a].controls.main_bank.value==1&&this.bank_details.controls[0].patchValue({main_bank:1})}handleAllFields(a){let e=a.address_components;this.getAllFields(e)}getAllFields(a){let e=this,n=a,o="";
28n.forEach(function(s,h){let E=s.types,w=E.find(I=>I="street_number");if(w==="street_number"?e.editCompanyFormGroup.patchValue({streetNumber:s.short_name}):w==="postal_code"?e.editCompanyFormGroup.patchValue({postCode:s.short_name}):w==="route"&&(o=s.short_name),E.length>1){let I=E;for(let F=0;F<E.length;F++)I[F]==="country"&&e.editCompanyFormGroup.patchValue({country:s.long_name}),I[F]==="locality"&&e.editCompanyFormGroup.patchValue({city:s.short_name})}}),o.length>0?e.editCompanyFormGroup.patchValue({street:o}):e.editCompanyFormGroup.patchValue({street:""})}search_company_type(a){if(this.temp_CompanyType=[],a.target.value!=""&&a.target.value!=" ")for(let e=0;e<this.CompanyType.length;e++)this.CompanyType[e].toLowerCase().indexOf(a.target.value.toLowerCase())!=-1&&this.temp_CompanyType.push(this.CompanyType[e]);else this.temp_CompanyType=this.CompanyType}open_company(a){let e=document.querySelector(".arrow");if(e&&(e.style.display="none"),console.log("open_company called",a),this.opened_company_data?._id===a._id)this.close_company();else{$("body").addClass("modal-open"),this.opened={bank:[],ceo:[],authorized:[],shareholder:[]};let o=s=>{for(;this.company_ceos.length!=0;)this.company_ceos.removeAt(0);for(;this.company_other_authorized_persons.length!=0;)this.company_other_authorized_persons.removeAt(0);for(;this.company_shareholders.length!=0;)this.company_shareholders.removeAt(0);for(;this.departments.length!=0;)this.departments.removeAt(0);for(;this.bank_details.length!=0;)this.bank_details.removeAt(0);this.opened_departments=[],this.all_company_users=[],this.selectedTabIndex=0,$("#loaderouterid").css("display","flex"),this.opened_company_data={_id:a._id},this.getFreshCompanyData(a._id).then(h=>{h?(console.log("Fresh company data came here"),this.opened_company_data=JSON.parse(JSON.stringify(h)),this.opened_company_data.departments_info=a.departments_info):this.opened_company_data=JSON.parse(JSON.stringify(a)),console.log("opened_company_data",this.opened_company_data._id,"company_details",a._id),this.logoAvailable=!!(this.opened_company_data.logo_url&&this.opened_company_data.logo_url!==""&&this.opened_company_data.logo_url!==null&&this.opened_company_data.logo_url!==void 0),this.userService.get_ecoshark_tax_by_country({country:this.opened_company_data.country,brand_id:this.brand_id}).subscribe(E=>{console.log("here are the tax details according to the country"),console.log(E),E.length>0?this.tax_details=E[0]:this.tax_details={},this.userService.get_hrtech_company_subscriptions(this.opened_company_data._id).subscribe(w=>{console.log("Subscriptions of this company came here"),this.contracts=w?.data[0],console.log("opened_company_data.ceos1",this.opened_company_data.ceos),console.log(this.verifiedcontract,"for test"),this.companysubscriptiondetails=w.data;let I=`${this.brand_details?.urls?.main_url}/data-policy?id=1`||"https://istaff.ai/data-policy?id=1",F={document_name:"Datenschutzbestimmungen und den Nutzungsbedingungen",ticket_no:"",createdAt:this.companysubscriptiondetails[0]?.createdAt,verified:"1",upload_by:this.contracts?.contracts_documents_info_new?.[1]?.upload_by,nodocument:!0,url:I};if(this.contracts?.contracts_documents_info_new?.length&&(this.contracts.contracts_documents_info_new.unshift(F),console.log(this.contracts,"hdsiufg")),this.verifiedcontract=this.contracts?.contracts_documents_info_new?.filter(C=>C.verified=="1").length,console.log("opened_company_data.ceos1",this.opened_company_data.ceos),console.log(w),w.data?this.opened_company_data.subscriptions=JSON.parse(JSON.stringify(w.data)):this.opened_company_data.subscriptions=[],this.opened_company_data.hr_company=!1,this.opened_company_data.subscriptions.map(C=>{if(console.log("check the sub -- ",C),this.opened_company_data.company_subscription_id==C._id)for(let A=0;A<C.branches_info.length;A++)C?.branches_info[A]?.functionalities_info?.length>0&&C?.branches_info[A]?.functionalities_info.findIndex(T=>T.functionality.english=="customer_management")!=-1&&(this.opened_company_data.hr_company=!0);C.tax_price=0,C.gross_price=this.userService.convert_currency(C.net_price)}),this.editCompanyFormGroup.patchValue({company_id:this.opened_company_data._id,company_name:this.opened_company_data.company_name,company_code:this.opened_company_data.company_code,company_type:this.opened_company_data.company_type,company_logo:this.opened_company_data.logo,street:this.opened_company_data.street,streetNumber:this.opened_company_data.streetNumber,postCode:this.opened_company_data.postCode,city:this.opened_company_data.city,appartment_number:this.opened_company_data.appartment_number,country:this.opened_company_data.country,vat_id_number:this.opened_company_data?.vat_id_number,iban:this.opened_company_data?.iban,bic:this.opened_company_data?.bic,bank_details:this.opened_company_data?.bank_details,register_location:this.opened_company_data?.register_location,register_number:this.opened_company_data?.register_number,tax_office:this.opened_company_data?.tax_office,tax_number:this.opened_company_data?.tax_number}),this.opened_company_data.bank_details&&this.opened_company_data.bank_details.length>0)for(let C=0;C<this.opened_company_data.bank_details.length;
28C++)this.addBankDetails("auto"),this.bank_details.controls[C].patchValue({iban:this.opened_company_data.bank_details[C].iban,bic:this.opened_company_data.bank_details[C].bic,bank_name:this.opened_company_data.bank_details[C].bank_name,main_bank:this.opened_company_data.bank_details[C].main_bank,bank_owner_type:this.opened_company_data.bank_details[C].bank_owner_type,bank_owner_company_name:this.opened_company_data.bank_details[C].bank_owner_company_name,bank_owner_first_name:this.opened_company_data.bank_details[C].bank_owner_first_name,bank_owner_last_name:this.opened_company_data.bank_details[C].bank_owner_last_name}),this.bank_details.controls[C].controls.bank_owner_type.value=="company"?(this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_company_name.setValidators([S.required]),this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_first_name.clearValidators(),this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_last_name.clearValidators()):(this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_company_name.clearValidators(),this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_first_name.setValidators([S.required]),this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_last_name.setValidators([S.required])),this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_company_name.updateValueAndValidity(),this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_first_name.updateValueAndValidity(),this.editCompanyFormGroup.controls.bank_details.controls[C].controls.bank_owner_last_name.updateValueAndValidity();else this.addBankDetails("manual");for(let C=0;C<this.opened_company_data.ceos.length;C++)this.addCeo("auto"),this.company_ceos.controls[C].patchValue({birthdate:this.opened_company_data.ceos[C].birthdate,city:this.opened_company_data.ceos[C].city,country:this.opened_company_data.ceos[C].country,title:this.opened_company_data.ceos[C].title,firstname:this.opened_company_data.ceos[C].firstname,lastname:this.opened_company_data.ceos[C].lastname,street:this.opened_company_data.ceos[C].street,street_number:this.opened_company_data.ceos[C].street_number,zip_code:this.opened_company_data.ceos[C].zip_code}),this.opened.ceo.push(!1);for(let C=0;C<this.opened_company_data.other_authorized_persons.length;C++)this.addAuthorizedPerson("auto"),this.company_other_authorized_persons.controls[C].patchValue({birthdate:this.opened_company_data.other_authorized_persons[C].birthdate,city:this.opened_company_data.other_authorized_persons[C].city,country:this.opened_company_data.other_authorized_persons[C].country,title:this.opened_company_data.other_authorized_persons[C].title,firstname:this.opened_company_data.other_authorized_persons[C].firstname,lastname:this.opened_company_data.other_authorized_persons[C].lastname,street:this.opened_company_data.other_authorized_persons[C].street,street_number:this.opened_company_data.other_authorized_persons[C].street_number,zip_code:this.opened_company_data.other_authorized_persons[C].zip_code}),this.opened.authorized.push(!1);for(let C=0;C<this.opened_company_data.shareholders.length;C++)this.addShareholders("auto"),this.company_shareholders.controls[C].patchValue({birthdate:this.opened_company_data.shareholders[C].birthdate,city:this.opened_company_data.shareholders[C].city,country:this.opened_company_data.shareholders[C].country,title:this.opened_company_data.shareholders[C].title,firstname:this.opened_company_data.shareholders[C].firstname,lastname:this.opened_company_data.shareholders[C].lastname,street:this.opened_company_data.shareholders[C].street,street_number:this.opened_company_data.shareholders[C].street_number,zip_code:this.opened_company_data.shareholders[C].zip_code,share_percentage:this.opened_company_data.shareholders[C].share_percentage}),this.opened.shareholder.push(!1);this.departmentsList=this.opened_company_data.departments_info?JSON.parse(JSON.stringify(this.opened_company_data.departments_info)):[],this.setPage_departments(1),this.setPage_requests(1),$("#loaderouterid").css("display","none"),this.isFormDirty=!1,this.editCompanyFormGroup.valueChanges.subscribe(()=>{this.isFormDirty=!0}),this.editCompanyDynamicFormGroup.valueChanges.subscribe(()=>{this.isFormDirty=!0}),this.editDepartmentFormGroup.valueChanges.subscribe(()=>{this.isFormDirty=!0})})})}).catch(h=>{console.error("Error in getFreshCompanyData:",h),$("#loaderouterid").css("display","none"),this.sweetAlert.custom({t
28itle:"Fehler",content:"Firmendaten konnten nicht geladen werden.",type:"error",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-danger"})})};this.opened_company_data&&this.isFormDirty&&this.editCompanyFormGroup.valid&&this.editCompanyDynamicFormGroup.valid&&this.editDepartmentFormGroup.valid?this.sweetAlert.custom({title:"\xC4nderungen speichern ?",content:"",type:"warning",isHtml:!1,showCancel:!0,confirmText:"Ja",cancelText:"Nein",confirmButtonClass:"btn-warning",cancelButtonClass:"btn-cancel"}).subscribe(s=>{s||this.close_company()}):o(a)}this.setPage_HrCustomers(1),this.getAllcompanyUsers(),this.fetchReceivedCustomerRequests(),this.setPage_employee(1)}open_interested_company(a,e){console.log("check interested company",a),$("#loaderouterid").css("display","flex"),e==0&&(this.opened_company_data=JSON.parse(JSON.stringify(a))),setTimeout(()=>{$("#loaderouterid").css("display","none"),this.onboardingComponent.hrCompanyCustomerCreation=0,this.onboardingComponent.editingInterestedCustomer=!0,this.onboardingComponent.CustomerCreationType(0)},1e3)}customerTabChanged(a){this.selectedCustomerTab=a,console.log("called it"),a==1?this.setPage_requests(1):a==1&&this.fetchReceivedCustomerRequests()}fetchSentCustomerRequests(){return new Promise(a=>{$("#loaderouterid").css("display","flex"),this.opened_company_data.sentCustomerRequests=[];let e={from_company_id:this.opened_company_data._id,brand_id:this.brand_id,page:this.currentPage_requests,limit:30};this.userService.viewHrRequests(e).subscribe(n=>{$("#loaderouterid").css("display","none"),n.status=="200"&&(this.opened_company_data.sentCustomerRequests=n?.data[0]&&n?.data[0]?.data?n?.data[0]?.data:[],this.total_requests_count=n?.data[0]&&n?.data[0]?.count&&n?.data[0]?.count[0]?n?.data[0]?.count[0].total:0,console.log("resolving")),a(!0)})})}searchSentCustomerRequests(a){if(a.target.value){let e=[];this.opened_company_data.sentCustomerRequests.forEach(n=>{if(Array.isArray(n.Requested_to)&&n.Requested_to.length>0){let o=n.Requested_to[0]?.company_name;o&&o.toLowerCase().includes(a.target.value.toLowerCase())&&e.push(n)}}),this.pager_requests=this.pagerService.getPager(e.length,1),this.pagedItems_requests=e.slice(this.pager_requests.startIndex,this.pager_requests.endIndex+1),e.length>0?(this.startRecord_requests=this.pager_requests.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_requests=this.pager_requests.currentPage*this.pagerService.getDefaultPageSize()>e.length?e.length:this.pager_requests.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_requests=0,this.endRecord_requests=0)}else this.setPage_requests(1)}setPage_requests(a){return Se(this,null,function*(){this.currentPage_requests=a,yield this.fetchSentCustomerRequests(),console.log("came down"),this.pager_requests=this.pagerService.getPager(this.total_requests_count,a),this.pagedItems_requests=this.opened_company_data.sentCustomerRequests,this.opened_company_data.sentCustomerRequests.length>0?(this.startRecord_requests=this.pager_requests.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_requests=this.pager_requests.currentPage*this.pagerService.getDefaultPageSize()>this.opened_company_data.sentCustomerRequests.length?this.opened_company_data.sentCustomerRequests.length:this.pager_requests.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_requests=0,this.endRecord_requests=0)})}fetchReceivedCustomerRequests(){if(!this.opened_company_data?.receivedCustomerRequests||this.opened_company_data?.receivedCustomerRequests.length==0){$("#loaderouterid").css("display","flex"),this.opened_company_data.receivedCustomerRequests=[];let a={to_company_id:this.opened_company_data._id,brand_id:this.brand_id};this.userService.viewHrRequests(a).subscribe(e=>{$("#loaderouterid").css("display","none"),e.status=="200"&&e.data?.length>0&&(this.opened_company_data.receivedCustomerRequests=e.data,console.log("received customer requests",this.opened_company_data.receivedCustomerRequests),this.setPage_Receivedrequests(1))})}}searchReceivedCustomerRequests(a){if(a.target.value){let e=[];this.opened_company_data.receivedCustomerRequests.map(n=>{n.Requested_from[0].company_name.toLowerCase().includes(a.target.value.toLowerCase())&&e.push(n)}),this.pager_Receivedrequests=this.pagerService.getPager(e.length,1),this.pagedItems_Receivedrequests=e.slice(this.pager_Receivedrequests.startIndex,this.pager_Receivedrequests.endIndex+1),console.log(this.pagedItems_Receivedrequests,"comment by rahul"),e.length>0?(this.startRecord_Receivedrequests=this.pager_Receivedrequests.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_Receivedrequests=this.pager_Receivedrequests.currentPage*this.pagerService.getDefaultPageSize()>e.length?e.length:this.pager_Receivedrequests.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_Receivedrequests=0,this.endRecord_Receivedrequests=0)}else this.setPage_Receivedrequests(1)}setPage_Receivedrequests(a){this.pager_Receivedrequests=this.pagerService.getPager(this.opened_company_data.receivedCustomerRequests.length,a);var e=this.opened_company_data.receivedCustomerRequests.slice(this.pager_Receivedrequests.startIndex,this.pager_Receivedrequests.endIndex+1);console.log(e,"pagedItems_Receivedrequestsrahul"),this.pagedItems_Receivedrequests=e[0].data,console.log(this.pagedItems_Receivedrequests,"rahul"),this.opened_company_data.receivedCustomerRequests.length>0?(this.startRecord_Receivedrequests=this.pager_Receivedrequests.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_Receivedrequests=this.pager_Receivedrequests.currentPage*this.pagerService.getDefaultPageSize()>this.opened_company_data.receivedCustomerRequests.length?this.opened_company_data.receivedCustomerRequests.length:this.pager_Receivedrequests.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_Receivedrequests=0,this.endRecord_Receivedrequests=0)}fetchPartners(){if(!this.opened_company_data?.partners||this.opened_company_data?.partners.length==0){$("#loaderouterid").css("display","flex"),this.opened_company_data.partners=[];let a={customer_company_id:this.opened_company_data._id,brand_id:this.brand_id};this.userService.fetchServiceProviders(a).subscribe(e=>{$("#loaderouterid").css("display","none"),e.status=="200"&&e.data?.length>0&&(this.opened_company_data.partners=e.data,this.setPage_partners(1))})}}searchPartners(a){if(a.target.value){let e=[];this.opened_company_data.partners.map(n=>{n.service_provider_company_info.company_name.toLowerCase().includes(a.target.value.toLowerCase())&&e.push(n)}),this.pager_partners=this.pagerService.getPager(e.length,1),this.pagedItems_partners=e.slice(this.pager_partners.startIndex,this.pager_partners.endIndex+1),e.length>0?(this.startRecord_partners=this.pager_partners.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_partners=this.pager_partners.currentPage*this.pagerService.getDefaultPageSize()>e.length?e.length:this.pager_partners.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_partners=0,this.endRecord_partners=0)}else this.setPage_partners(1)}setPage_partners(a){this.pager_partners=this.pagerService.getPager(this.opened_company_data.partners.length,a),this.pagedItems_partners=this.opened_company_data.partners.slice(this.pager_partners.startIndex,this.pager_partners.endIndex+1),this.opened_company_data.partners.length>0?(this.startRecord_partners=this.pager_partners.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_partners=this.pager_partners.currentPage*this.pagerService.getDefaultPageSize()>this.opened_company_data.partners.length?this.opened_company_data.partners.length:this.pager_partners.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_partners=0,this.endRecord_partners=0)}fetchHrCustomers(){return Se(this,null,function*(){if(!this.opened_company_data?.HrCustomers||this.opened_company_data?.HrCustomers.length==0){$("#loaderouterid").css("display","flex"),this.opened_company_data.HrCustomers=[];let a={service_provider_company_id:this.opened_company_data._id,brand_id:this.brand_id,page:this.currentPage_HrCustomers,limit:30};return new Promise(e=>{this.userService.fetchHrCustomers(a).subscribe(n=>{$("#loaderouterid").css("display","none"),n.status=="200"&&(this.opened_company_data.HrCustomers=n?.data[0]&&n?.data[0]?.data?n?.data[0]?.data:[],this.total_HrCustomers_count=n?.data[0]&&n?.data[0]?.count?n?.data[0]?.count[0].total:0),e(!0)})})}})}searchHrCustomers(a){if(a.target.value){let e=[];this.opened_company_data.HrCustomers.map(n=>{n.customer_company_info.company_name.toLowerCase().includes(a.target.value.toLowerCase())&&e.push(n)}),this.pager_HrCustomers=this.pagerService.getPager(e.length,1),this.pagedItems_HrCustomers=e.slice(this.pager_HrCustomers.startIndex,this.pager_HrCustomers.endIndex+1),e.length>0?(this.startRecord_HrCustomers=this.pager_HrCustomers.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_HrCustomers=this.pager_HrCustomers.currentPage*this.pagerService.getDefaultPageSize()>e.length?e.length:this.pager_HrCustomers.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_HrCustomers=0,this.endRecord_HrCustomers=0)}else this.setPage_HrCustomers(1)}setPage_HrCustomers(a){return Se(this,null,function*(){this.currentPage_HrCustomers=a,yield this.fetchHrCustomers(),this.pager_HrCustomers=this.pagerService.getPager(this.total_HrCustomers_count,a),this.pagedItems_HrCustomers=this.opened_company_data.HrCustomers,this.opened_company_data.HrCustomers.length>0?(this.startRecord_HrCustomers=this.pager_HrCustomers.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord_HrCustomers=this.pager_HrCustomers.currentPage*this.pagerService.getDefaultPageSize()>this.opened_company_data.HrCustomers.length?this.opened_company_data.HrCustomers.length:this.pager_HrCustomers.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord_HrCustomers=0,this.endRecord_HrCustomers=0)})}openCustomer(a){console.log(a,"customer_details.contract_id"),this.userService.get_customer_contract_by_contract_id({id:a.contract_id}).subscribe(e=>{this.opened_company_data.opened_customer_company=JSON.parse(JSON.stringify(a)),this.opened_company_data.opened_customer_company.contract_url=e.data.contract_unique_id,$("#viewCompanyCustomerModal").modal("show"),this.open_modal("viewCompanyCustomerModal")})}showContract(){setTimeout(()=>{$("#showContract").attr("src",`${this.imgpath}${this.opened_company_data.opened_customer_company.contract_url}`)},1e3)}acceptHrCompanyRequest(a){this.userService.get_user_by_id({id:a.Requested_from[0].registered_by}).subscribe(e=>{this.opened_request=JSON.parse(JSON.stringify(a)),this.opened_request.registered_by_info=e,$("#acceptRequestModal").modal("show"),this.open_modal("acceptRequestModal")})}closeAddHrCustomerModals(){$("#addCustomerModal").modal("hide"),this.close_modal("addCustomerModal","addCustomerModal_parent"),$("#selectCustomerTypeModal").modal("hide"),this.close_modal("selectCustomerTypeModal","selectCustomerTypeModal_parent")}close_company(){let a=document.querySelector(".arrow");a&&(a.style.display="block"),$("body").removeClass("modal-open"),this.editCompanyFormGroup.reset(),this.opened_company_data={},this.all_company_users=[],this.selectedTabIndex=0,this.isFormDirty=!1}
28open_subscription(a){if(this.opened_subscription_data?._id===a._id)this.opened_subscription_data=null,this.cdr.detectChanges();else{this.opened_subscription_data=JSON.parse(JSON.stringify(a)),this.cdr.detectChanges();let n;Array.isArray(a.Contracts)&&a.Contracts.length>0?n=a.Contracts.map(o=>o.contract_id):n=[a.contract_unique_id],this.userService.getdocumentsbydocument_unique_id({document_unique_id:n}).subscribe(o=>{console.log("Contract data came here"),console.log(o),this.opened_subscription_data.contract_document=o[0]?.element,console.log(this.opened_subscription_data.contract_document,"rjhsdfuj"),setTimeout(()=>{$("#subscription_contract").css("display","block"),$("#subscription_contract").attr("src",this.opened_subscription_data.contract_document.document_url)},1e3)})}}check_total_shareholding(){let a=0;return this.company_shareholders.controls.map(e=>{a+=parseFloat(e.controls.share_percentage.value)}),a}handleAllFieldsfirst(a,e,n){let o=a.address_components;this.getAllFieldsfirst(o,e,n)}getAllFieldsfirst(a,e,n){let o=this,s=a,h="";s.forEach(function(E,w){let I=E.types,F=I.find(C=>C="street_number");if(F==="street_number"?n=="company_ceos"?o.company_ceos.controls[e].patchValue({street_number:E.short_name}):n=="company_other_authorized_persons"?o.company_other_authorized_persons.controls[e].patchValue({street_number:E.short_name}):n=="company_shareholders"&&o.company_shareholders.controls[e].patchValue({street_number:E.short_name}):F==="postal_code"?n=="company_ceos"?o.company_ceos.controls[e].patchValue({zip_code:E.short_name}):n=="company_other_authorized_persons"?o.company_other_authorized_persons.controls[e].patchValue({zip_code:E.short_name}):n=="company_shareholders"&&o.company_shareholders.controls[e].patchValue({zip_code:E.short_name}):F==="route"&&(h=E.short_name),I.length>1){let C=I;for(let A=0;A<I.length;A++)C[A]==="country"&&(n=="company_ceos"?o.company_ceos.controls[e].patchValue({country:E.long_name}):n=="company_other_authorized_persons"?o.company_other_authorized_persons.controls[e].patchValue({country:E.long_name}):n=="company_shareholders"&&o.company_shareholders.controls[e].patchValue({country:E.long_name})),C[A]==="locality"&&(n=="company_ceos"?o.company_ceos.controls[e].patchValue({city:E.short_name}):n=="company_other_authorized_persons"?o.company_other_authorized_persons.controls[e].patchValue({city:E.short_name}):n=="company_shareholders"&&o.company_shareholders.controls[e].patchValue({city:E.short_name}))}}),h.length>0?n=="company_ceos"?o.company_ceos.controls[e].patchValue({street:h}):n=="company_other_authorized_persons"?o.company_other_authorized_persons.controls[e].patchValue({street:h}):n=="company_shareholders"&&o.company_shareholders.controls[e].patchValue({street:h}):n=="company_ceos"?o.company_ceos.controls[e].patchValue({street:""}):n=="company_other_authorized_persons"?o.company_other_authorized_persons.controls[e].patchValue({street:""}):n=="company_shareholders"&&o.company_shareholders.controls[e].patchValue({street:""})}get_used_duration(a){let e=new Date,n=new Date(a);return((e-n)/(1e3*60*60*24)/30.44).toFixed(2)}checkAddOnExist(a,e){let n=this.addons.findIndex(o=>o.addOnFor==a);if(e=="name")return n==-1?"Nicht verf\xFCgbar":this.addons[n].name;if(e=="net_price")return n==-1?"Nicht verf\xFCgbar":"\u20AC "+this.userService.convert_currency(this.addons[n].net_price);if(e=="exists")return n}add_to_cart(a){let e=this.addons[this.addons.findIndex(n=>n.addOnFor==a)]._id;this.addons_cart.push({addon_id:e,quantity:1})}adjust_cart_quantity(a,e){let n=this.addons[this.addons.findIndex(o=>o.addOnFor==a)]._id;e=="-"?this.addons_cart[this.addons_cart.findIndex(o=>o.addon_id==n)].quantity==1?this.addons_cart.splice(this.addons_cart.findIndex(o=>o.addon_id==n),1):this.addons_cart[this.addons_cart.findIndex(o=>o.addon_id==n)].quantity-=1:e=="+"?this.addons_cart[this.addons_cart.findIndex(o=>o.addon_id==n)].quantity+=1:this.addons_cart[this.addons_cart.findIndex(o=>o.addon_id==n)].quantity=parseInt(e)}check_cart(a){let e=this.addons[this.addons.findIndex(n=>n.addOnFor==a)]?._id;return this.addons_cart.findIndex(n=>n.addon_id==e)}check_cart_quantity(a){let e=this.addons[this.addons.findIndex(n=>n.addOnFor==a)]._id;return this.addons_cart[this.addons_cart.findIndex(n=>n.addon_id==e)]?.quantity}getAddOnById(a){return this.addons.find(e=>e._id==a)}open_department(a){if(this.opened_department_details?._id===a?._id){this.opened_department_details={};return}$("#loaderouterid").css("display","flex"),this.userService.get_department_details_by_id(a._id).subscribe(e=>{this.opened_department_details=e?.data?e.data:JSON.parse(JSON.stringify(a)),$("#loaderouterid").css("display","none")},()=>{this.opened_department_details=JSON.parse(JSON.stringify(a)),$("#loaderouterid").css("display","none")})}open_modal(a){$("#"+a).appendTo("body")}close_modal(a,e){$("#"+a).appendTo("#"+e)}resetOnboardingModal(){this.onboardingComponent.resetMainStepper()}selectCustomerCreationType(a){this.onboardingComponent.CustomerCreationType(a),a==0||a==1&&($("#addCustomerModal").modal("show"),this.open_modal("addCustomerModal"))}changeCompanyStatus(a){if(!this.authService.getEditPermission())return;$("#loaderouterid").css("display","flex");let e={brand_id:this.brand_id,hrtech_company_id:a._id,status:a.active==1?0:1,activated_by:this.currentUser?._id};this.userService.changeHrCompanyStatus(e).subscribe(n=>Se(this,null,function*(){if($("#loaderouterid").css("display","none"),this.verifyCompany?._id&&(this.verifyCompany={}),n.status=="200"){let o=a.active==1?"Deaktivierung":"Aktivierung",s=a.active==1?"<strong style='color:red;'>Deaktiviert</strong>":"<strong style='color:green;'>Aktiviert</strong>";a.active==0?(this.pagedItems.find(w=>w._id==a._id).status=1,this.companiesList.find(w=>w._id==a._id).status=1,this.companiesList.find(w=>w._id==a._id).active=1,a.manual_activation_required&&(this.pagedItems.find(w=>w._id==a._id).manual_activation_status=1,this.companiesList.find(w=>w._id==a._id).manual_activation_status=1),this.opened_company_data?._id==a._id&&(this.opened_company_data.status=1,this.opened_company_data.active=1,a.manual_activation_required&&(this.opened_company_data.manual_activation_status=1))):(this.pagedItems.find(w=>w._id==a._id).status=0,this.companiesList.find(w=>w._id==a._id).status=0,this.companiesList.find(w=>w._id==a._id).active=0,this.opened_company_data?._id==a._id&&(this.opened_company_data.status=0,this.opened_company_data.active=0)),e.status==0&&(yield this.logAllUsersOut(a._id)),this.brand_id=="64b6245d27f5bf2eead2bbad"&&(yield this.logAllUsersOut(a._id));let h=` 29 <label class='button-primary p-1 rounded'> 30 ${a.company_name} 31 </label> 32 Unternehmen erfolgreich ${s} 33`,E=this.sanitizer.bypassSecurityTrustHtml(h);
33this.sweetAlert.custom({title:`${o} erfolgreich`,content:E,type:"success",isHtml:!0,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success",disableClose:!0}).subscribe(()=>{})}else console.log(n)}))}logAllUsersOut(a){return new Promise(e=>{this.userService.getActiveUserTokensByCompanyIds({brand_name:this.brand_details.name,company_ids:[a],log_all_users_out:1}).subscribe(n=>{if(console.log("check all the tokens here"),console.log(n.data),n.data&&n.data.length>0){let o=[];n.data.map((s,h)=>{o.push({user_id:s._id,tokens_to_remove:[]}),s.user_login_info.map(E=>{o[h].tokens_to_remove.push(E.jwt_token)})}),o.map(s=>{this.socket.emit("remove-session",{user_id:s.user_id,tokens_to_remove:s.tokens_to_remove})})}e(!0)})})}viewCompanySubscription(a){$("#loaderouterid").css("display","flex"),this.verifyCompany={},this.userService.get_hrtech_company_subscription_by_id(a.company_subscription_id).subscribe(e=>{if(e.status=="200"){this.verifyCompany=a;let n=Array.isArray(e.data)?e.data[0]:e.data;this.verifyCompany.contract_details=n,console.log("check the verify company data"),console.log(this.verifyCompany),$("#loaderouterid").css("display","none"),this.openVerifyContractModal(a,n,n?.contract_url||this.imgpath+(n?.document_unique_id||""))}else $("#loaderouterid").css("display","none"),console.log(e)})}viewCompanySubscriptionnew(a,e){console.log(e,"kjhsd"),this.verifyCompany=a,this.verifyCompany.contract_details=e,this.verifyCompany.contract_details.verified=="1"?this.savedocumentchnage=!0:this.savedocumentchnage=!1,console.log("check the verify company data"),console.log(this.verifyCompany),this.openVerifyContractModal(a,e,this.imgpath+e.document_unique_id)}openVerifyContractModal(a,e,n){this.dialog.open(cn,{width:"100%",maxWidth:"1100px",maxHeight:"100vh",panelClass:"custom-mat-modal-container",disableClose:!0,data:{company:a,contract:e,contracts:this.contracts,pdfSrc:n}}).afterClosed().subscribe(s=>{s?.action==="verify"&&s.contract&&this.chnagedocumentstatus(s.contract)})}getVerifyButtonText(){return"Verifizieren"}send_interested_customer_offer(a){if(!this.authService.getEditPermission())return;$("#loaderouterid").css("display","flex");let e={email:a.ceos[0].email,brand_id:a?.brand_id,ceo_title:a.ceos[0].title,ceo_firstname:a.ceos[0].firstname,ceo_lastname:a.ceos[0].lastname,company_id:a._id,company_name:a.company_name};console.log(e,"check that"),this.userService.resend_hrtech_company_registration_email(e).subscribe(n=>{if(n.status=="200"){let o={company_id:a?._id,offer_email_sent:"1",offer_email_sent_at:new Date};this.userService.update_hrtech_company(o).subscribe(s=>{if($("#loaderouterid").css("display","none"),s.status=="200"){let h=` 34 Das Angebots-E-Mail wurde an das Unternehmen 35 <label class='button-primary p-1 m-1'> 36 ${a?.company_name} 37 </label> 38 an die E-Mail-Adresse 39 <label class='button-primary p-1 m-1'> 40 ${a?.ceos[0]?.email} 41 </label> 42 gesendet. 43`,E=this.sanitizer.bypassSecurityTrustHtml(h);this.sweetAlert.custom({title:"Angebot gesendet",content:E,type:"success",isHtml:!0,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success",disableClose:!0}).subscribe(()=>{this.setPage(this.currentPage),this.setPage_interested(this.currentPage_interested)})}})}else $("#loaderouterid").css("display","none"),this.sweetAlert.custom({title:"Etwas ist schiefgelaufen, bitte versuchen Sie es erneut.",content:"",type:"error",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-error",width:"480px"}).subscribe(()=>{})})}closeEmployeeAddModal(){$("#addEmployeeModal").modal("hide"),this.close_modal("addEmployeeModal","addEmployeeModal_parent"),this.userService.addBodyClass("modal-open",500)}getPercentage(a){let e=parseFloat(this.opened_subscription_data?.[a]),n=parseFloat(this.opened_subscription_data?.["used_"+a]);return e===0?0:n/e*100}openPdf(a,e){$("#loaderouterid").css("display","flex"),$("#viewInvoiceContractPdf").modal("show"),$("#viewInvoiceContractPdfLabel").text(a),$("#pdfEmbed").attr("src",""),setTimeout(()=>{$("#pdfEmbed").attr("src",e),$("#loaderouterid").css("display","none")},500)}chnagedocumentstatus(a){$("#loaderouterid").css("display","flex"),console.log(a),this.userService.chnagecontractstatus(a).subscribe(e=>{console.log(e),e.status=="200"&&(this.userService.get_hrtech_company_
43subscriptions(this.opened_company_data._id).subscribe(n=>{console.log(this.contracts,"iuohdsf"),this.verifiedcontract=this.contracts?.contracts_documents_info_new?.filter(h=>h.verified=="1").length,this.userService.get_hrtech_company_subscriptions(this.opened_company_data._id).subscribe(h=>{console.log("Subscriptions of this company came here"),this.contracts=h?.data[0],this.verifiedcontract=this.contracts?.contracts_documents_info_new?.filter(I=>I.verified=="1").length,this.companysubscriptiondetails=h.data;let E=`${this.brand_details?.urls?.main_url}/data-policy?id=1`||"https://istaff.ai/data-policy?id=1",w={document_name:"Datenschutzbestimmungen und den Nutzungsbedingungen",ticket_no:"",createdAt:this.companysubscriptiondetails[0]?.createdAt,verified:"1",upload_by:this.contracts?.contracts_documents_info_new?.[1].upload_by,nodocument:!0,url:E};this.contracts.contracts_documents_info_new&&(this.contracts.contracts_documents_info_new.unshift(w),console.log(this.contracts,"hdsiufg"))}),$("#loaderouterid").css("display","none");let o=` 44 <label class='button-primary p-1 rounded'> 45 ${a.document_name} 46 </label> 47 erfolgreich verifiziert 48`,s=this.sanitizer.bypassSecurityTrustHtml(o);this.sweetAlert.custom({title:"",content:s,type:"success",isHtml:!0,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success",disableClose:!0}).subscribe(h=>{})}),this.savedocumentchnage=!0)})}opencontractpagedirect(a){this.open_company(a),this.selectedTabIndex=1}getCompanyStatus(a){return a.hasOwnProperty("preverifystatus")?a.preverifystatus:a.status}openTermination(a){let e=a.subscription_status!=="notice_period_active",n=a.notice_period_end_date?this.datePipe.transform(new Date(a.notice_period_end_date),"dd.MM.yyyy"):"",o="";e&&(o=` 49 <button id="terminateWithNotice" 50 style="flex:1;padding:8px 12px;border-radius:6px;border:0; 51 background:#1388FE;color:#fff;cursor:pointer;"> 52 K\xFCndigung gem\xE4\xDF K\xFCndigungsfrist 53 </button> 54 `),a.subscription_status==="notice_period_active"&&(o=` 55 <button id="noticePeriodActive" 56 style="flex:1;padding:8px 12px;border-radius:6px;border:0; 57 background:#1388FE;color:#fff;cursor:pointer;"> 58 K\xFCndigungsfrist aktiv (endet am ${n}) 59 </button> 60 `),a.subscription_status==="cancellation_requested"&&(o=` 61 <button id="cancellationRequested" 62 style="flex:1;padding:8px 12px;border-radius:6px;border:0; 63 background:#1388FE;color:#fff;cursor:pointer;"> 64 K\xFCndigung vorgemerkt 65 </button> 66 `);let s=` 67 <div style="text-align:center;"> 68 <p style="margin:8px 0 14px;"> 69 Bitte w\xE4hlen Sie eine der folgenden Optionen: 70 </p> 71 72 <div style="display:flex;gap:10px;padding:0 20px;"> 73 <button id="terminateImmediate" 74 style="flex:1;padding:8px 12px;border-radius:6px;border:0; 75 background:#1388FE;color:#fff;cursor:pointer;"> 76 Sofortige K\xFCndigung 77 </button> 78 ${o} 79 </div> 80 </div> 81 `;this.currentDialogRef=this.openCustomAlert({title:"Abonnement beenden",content:this.sanitizer.bypassSecurityTrustHtml(s),type:"info",isHtml:!0,showConfirm:!1,showCancel:!0,disableClose:!0}),setTimeout(()=>{document.getElementById("terminateImmediate")?.addEventListener("click",()=>{this.currentDialogRef.close(),this.confirmTermination(a,"immediate")}),e&&document.getElementById("terminateWithNotice")?.addEventListener("click",()=>{this.currentDialogRef.close(),this.confirmTermination(a,"with_notice")}),a.subscription_status==="notice_period_active"&&document.getElementById("noticePeriodActive")?.addEventListener("click",()=>{this.currentDialogRef.close()}),a.subscription_status==="cancellation_requested"&&document.getElementById("cancellationRequested")?.addEventListener("click",()=>{this.currentDialogRef.close()})},50)}openCustomAlert(a){let e={type:a.type||"info",title:a.title,content:a.content,isHtml:a.isHtml||!1,showCancel:a.showCancel||!1,showConfirm:a.showConfirm??!0,confirmText:a.confirmText,cancelText:a.cancelText,confirmButtonClass:a.confirmButtonClass,cancelButtonClass:a.cancelButtonClass};return this.dialog.open(ii,{width:a.width||"650px",maxWidth:"90vw",disableClose:a.disableClose||!1,data:e,panelClass:["sweet-alert-dialog"],hasBackdrop:!0,backdropClass:["sweet-alert-backdrop"],scrollStrategy:this.scrollStrategyOptions.block()})}confirmTermination(a,e){let n=e==="immediate"?`M\xF6chten Sie das Abonnement von 82 <strong>${this.opened_company_data.company_name}</strong> 83 wirklich <span style="color:red;">sofort</span> beenden? 84 Der Zugriff wird unmittelbar deaktiviert.`:`M\xF6chten Sie das Abonnement von 85 <strong>${this.opened_company_data.company_name}</strong>
86 gem\xE4\xDF der K\xFCndigungsfrist beenden? 87 Das Abonnement bleibt bis zum Ende der Frist aktiv und abrechnungspflichtig.`;this.sweetAlert.custom({title:"Sind Sie sicher?",content:this.sanitizer.bypassSecurityTrustHtml(n),type:"warning",isHtml:!0,showCancel:!0,confirmText:"Ja, k\xFCndigen",cancelText:"Abbrechen",confirmButtonClass:"btn-error",disableClose:!0}).subscribe(o=>{o&&this.terminateSubscription(a,e)})}terminateSubscription(a,e){$("#loaderouterid").css("display","flex");let n={brand_id:this.opened_company_data.brand_id,company_id:this.opened_company_data._id,termination_type:e,subscription_id:a._id};this.userService.terminateSubscription(n).subscribe({next:o=>{$("#loaderouterid").css("display","none"),Ti.default.close(),o.status=="200"&&(e=="immediate"?this.opened_company_data.subscriptions.find(h=>h._id==a._id).active=0:(this.opened_company_data.subscriptions.find(h=>h._id==a._id).subscription_status=o.subscription_status,this.opened_company_data.subscriptions.find(h=>h._id==a._id).notice_period_end_date=o?.notice_period_end_date));let s=e==="immediate"?`Wirksamkeitsdatum der K\xFCndigung: ${this.datePipe.transform(new Date,"dd.MM.yyyy")}`:`Wirksamkeitsdatum der K\xFCndigung: ${this.datePipe.transform(o.effective_termination_date,"dd.MM.yyyy")}`;this.sweetAlert.custom({title:"Abonnement gek\xFCndigt",content:this.sanitizer.bypassSecurityTrustHtml(e==="immediate"?` 88 <p>Das Abonnement wurde sofort beendet.</p> 89 <strong>${s}</strong> 90 `:` 91 <p>Die K\xFCndigung wurde erfasst.</p> 92 <p>Das Abonnement endet nach Ablauf der K\xFCndigungsfrist.</p> 93 <strong>${s}</strong> 94 `),type:"success",isHtml:!0,confirmText:"OK",confirmButtonClass:"btn-success",disableClose:!0})},error:()=>{$("#loaderouterid").css("display","none")}})}terminateAccordingToContract(a){console.log("Terminate according to contract duration:",a)}checkdata(a){console.log(a,"check data by rahul")}ngOnDestroy(){this.userSubscription&&this.userSubscription.unsubscribe()}getFreshCompanyData(a){return Se(this,null,function*(){try{let e=yield qn(this.userService.get_hrtech_company_by_id(a));return e&&e.data?e.data:null}catch(e){return console.error("Error fetching fresh company data:",e),null}})}searchSuppliers(a){let e=a.target.value;this.searchSubject.next(e)}openSupplierModal(){this.addSupplierComponent.openAddSupplierModal()}onImageError(a){let e=a.target;e.onerror=null,e.src="assets/no_logo_placeholder.png"}static{this.\u0275fac=function(e){return new(e||l)(ae(Zn),ae(st),ae(Wn),ae(oi),ae(xe),ae(Jn),ae(Qn),ae(Ye),ae(ee),ae(We),ae(Wt),ae(ti),ae(Xn),ae(Ln))}}static{this.\u0275cmp=W({type:l,selectors:[["app-hrtech-companies-management"]],viewQuery:function(e,n){if(e&1&&Ve(vn,5)(Ht,5)(qt,5),e&2){let o;le(o=de())&&(n.onboardingComponent=o.first),le(o=de())&&(n.supplierManagementRef=o.first),le(o=de())&&(n.addSupplierComponent=o.first)}},decls:283,vars:26,consts:[["noDataTemplate",""],["noData",""],["fallbackTemplate",""],["picker",""],["placesRef","ngx-places"],["stepper",""],["fxLayout","column",1,"app-background"],["fxFlex","","fxLayout","column"],["fxFlex",""],["fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px"],[1,"dashboard-inner"],[1,""],[1,"container-fluid","mb
94-4","px-0","py-2"],[1,"row"],[1,"col-sm-4","pr-1"],["type","text",1,"search","myInput",3,"input","placeholder"],[1,"col-sm-3","pl-1"],["mat-button","",1,"button-primary","botton-hover",3,"mouseover","mouseout","click"],[1,"menu-image",3,"src"],[1,"ml-2"],[1,"col-sm-5"],[1,"table-count"],[1,"main-tab-group",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["label","Kunden"],[1,"customTable","mt-3"],[1,"tableInnerScroll"],[1,"table"],[1,"customer-id","font-weight-bold",2,"width","5%","min-width","50px"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","15%","min-width","150px"],["data-order","asc","data-name","company_name",1,"fa","fa-sort-desc",3,"appSort"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","10%","min-width","100px"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","20%","min-width","150px"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","10%","min-width","50px"],[1,"customer-action","font-weight-bold",2,"width","10%","min-width","230px"],[1,"accordion-list-main"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end","pagination-main","mt-3","editing-something"],["class","pagination m-0 pagerAction",4,"ngIf"],["label","Interessenten"],[1,"row","mx-0","mt-2"],[1,"col-sm-12","p-0"],[1,"card","assigments-list"],["id","cardbodyid",1,"card-body"],["id","accordion",1,"accordion-main"],[1,"accordion-head","editing-something"],[1,"accordion-head-list","list-unstyled","d-flex"],[1,"customer-id","font-weight-bold"],[1,"customer-Unternehmensname","font-weight-bold"],[1,"customer-action","font-weight-bold"],["label","Lieferanten"],[3,"mainCompanyId","searchTerm"],["id","addOnModal_parent"],["data-backdrop","static","data-keyboard","false","id","addOnModal","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog",2,"max-width","90%"],[1,"modal-content"],[1,"modal-header"],[2,"font-size","15px"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["src","../assets/closeModel.svg","alt","Close",2,"width","20px","height","20px","display","block"],[1,"modal-body"],["linear","","style","overflow: auto!important;","class","w-100",4,"ngIf"],["id","selectCustomerTypeModal_parent"],["data-backdrop","static","data-keyboard","false","id","selectCustomerTypeModal","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog",2,"max-width","45%"],["class","modal-body",4,"ngIf"],["id","addCustomerModal_parent"],["data-backdrop","static","data-keyboard","false","id","addCustomerModal","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["id","addEmployeeModal_parent"],["data-backdrop","static","data-keyboard","false","id","addEmployeeModal","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["id","viewCustomerRequestModal_parent"],["data-backdrop","static","data-keyboard","false","id","viewCustomerRequestModal","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["id","viewCompanyCustomerModal_parent"],["data-backdrop","static","data-keyboard","false","id","viewCompanyCustomerModal","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["id","acceptRequestModal_parent"],["data-backdrop","static","data-keyboard","false","id","acceptRequestModal","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog",2,"max-width","fit-content"],["id","viewUserModal_parent"],["data-backdrop","static","data-keyboard","false","id","viewUserModal","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog",2,"max-width","85%"],[1,"col-sm-12"],["label","Stammdaten"],[3,"formGroup"],[1,"row","m-0"],[1,"heading-div-bg","mb-3","rounded"],[1,"font-family-baloo-2","my-2","p-1","d-flex","align-items-center"],[1,"section-icon"],[1,"form-group","col-md-3"],["appearance","outline","floatLabel","always",1,"w-100"],["formControlName","title"],["value","Herr"],["value","Frau"],["value","Divers"],["matInput","","formControlName","firstName","placeholder","Vorname"],["matInput","","formControlName","lastName","placeholder","Nachname"],["appearance","outline","floatLabel","always",1,"w-100","bottom-padding-remove"],["matInput","","formControlName","user_designation","placeholder","Bezeichnung Benutzer"],[1,"form-group","col-md-4"],["matInput","","placeholder","Geburtsdatum","formControlName","dob"],["matInput","","placeholder","Geburtsort","formControlName","birthPlace"],["appearance","outline","floatLabel","always",1,"example-full-width","w-100"],["type","text","placeholder","Nationalit\xE4t","aria-label","Number","matInput","","formControlName","nationality"],["matInput","","placeholder","Stra\xDFe","formControlName","street"],["matInput","","placeholder","Nr.","formControlName","streetNumber"],["matInput","","placeholder","PLZ","formControlName","postCode"],["matInput","","placeholder","Stadt","formControlName","city"],["matInput","","placeholder","C/O Appartmentnummer, T\xFCrcode, usw.","formControlName","additionalReference"],["matInput","","placeholder","Land des Wohnsitzes","formControlName","countryOfResidence"],["matInput","","id","phone","name","phone_number","formControlName","phone_number","placeholder","Telefonnummer","type","tel","oninput","this.value=this.value.replace(/[^0-9/+]/g,'')",1,"test"],["src","./assets/phone_verified_120x120.png","class","mr-2 ml-2 editPhoneVLogo",4,"ngIf"],["type","email","matInput","","placeholder","E-Mail","formControlName","email"],["src","./assets/email_120x120.png","class","mr-2 editEmailVLogo",4,"ngIf"],["type","text","name","customerno","formControlName","customerno","matInput","","placeholder","CustomerNo","readonly","readonly"],["id","openpreviewmodel","type","button","data-toggle","modal","data-target","#exampleModalpreview",2,"display","none"],["id","exampleModalpreview_parent"],["data-backdrop","static","data-keyboard","false","id","exampleModalpreview","tabindex","-1","role","dialog","aria-labelledby","exampleModalpreviewTitle","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog",2,"max-width","1000px"],["id","showpreviewtitle",2,"font-size","15px"],["id","showpreviewimg","src","",2,"width","100%","height","100%","display","none"],[3,"brandDetails"],[1,"accordion-list-item","editing-something",3,"id"],[1,"customer-id"],[1,"customer-Unternehmensname",2,"width","25%"],[1,"customer-Unternehmensname"],["alt","Company logo",2,"width","50px","min-height","50px","max-height","50px","object-fit","contain",3,"src"],["src","assets/no_logo_placeholder.png",2,"width","80px"],[1,"fa","fa-circle",3,"ngClass"],[1,"customer-action","mb-2"],[1,"openclass","offnen-btn","click","m-2","open_company",3,"click","id"],["class","btn btn-sm btn-warning",3,"click",4,"ngIf"],["class","w-100 opened-list-item-collapse p-2 mb-3",4,"ngIf"],["alt","Company logo",2,"width","50px","min-height","50px","max-height","50px","object-fit","contain",3,"error","src"],[1,"btn","btn-sm","btn-warning",3,"click"],[1,"w-100","opened-list-item-collapse","p-2","mb-3"],[1,"collapse-modal"],[1,"collapse-modalHeader"],[1,"title"],["src","../assets/closeModel.svg","alt","Close","role","button",1,"close-btn","links",3,"click"],[1,"collapse-modalBody"],[1,"full-tabs"],["mat-align-tabs","start",1,"tabs","newdeisgnfortabs",3,"selectedTabChange","selectedIndexChange","selectedIndex"],["label","Unternehmen",1,"new-item"],["matStepLabel",""],[1,"m-0","mt-2","companybackgrounddiv","rounded"],["class","companybackgrounddiv-logo",4,"ngIf"],[1,"flex-row","justify-content-start","align-items-center"],["aria-hidden","true",1,"fa","fa-map-marker",2,"border-radius","50%","background-color","#f2f2f2","padding","10px","display","flex","align-items","center","justify-content","center","aspect-ratio","1"],[1,"m-0"],["label","Vertrag",1,"new-item"],[1,"card","assigments-list",2,"border","0","margin-bottom","0px","background","#f2f2f2"],["id","cardbodyid",1,"card-body",2,"background","#fff","padding","10px"],[1,"table-responsive"],[1,"table","table-hover","align-middle","neoloop-data-table","mb-0"],[1,"customer-Unternehmensname","font-weight-bold","w-25"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","10%"],["data-order","asc","data-name","gross_price",1,"fa","fa-sort-desc",3,"appSort"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","15%"],["data-order","asc","data-name","duration",1,"fa","fa-sort-desc",3,"appSort"],["data-order","asc","data-name","createdAt",1,"fa","fa-sort-desc",3,"appSort"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","12%"],["data-order","asc","data-name","active",1,"fa","fa-sort-desc",3,"appSort"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","32%"],[4,"ngIf"],["label","Vertretung & Berechtigte",1,"new-item"],[1,"row","mt-3","m-0"],[1,"col-sm-4"],[1,"col-sm-7","pr-0","py-2"],[1,"col-sm-5","text-right","pb-2"],["type","button",1,"float-right","btn","btn-sm","button-primary","botton-hover",3,"click"],[1,"fas","fa-user-plus"],[1,"mt-0","border"],["formArrayName","company_ceos"],["type","button",1,"float-right","btn","btn-sm","button-primary","botton-hover",3,"click","disabled"],["formArrayName","company_other_authorized_persons"],["formArrayName","company_
94shareholders"],["class","text-white p-2 border-radius","style","font-size:14px;background:#ff000082;",4,"ngIf"],["label","Notizen",1,"new-item"],[1,"row","m-0","mt-2"],[3,"serviceProviderCompanyId","customerCompanyId"],["label","Benutzer",1,"new-item"],[1,"second-section","shadow-none","mt-1"],[1,"container-fluid"],[1,"col-sm-4","p-0"],["type","text","placeholder","z.B. Nutzername, E-Mail","type","text",1,"search","myInput",3,"keyup.enter"],[1,"col-sm-3"],[1,"col-sm-5","p-0"],[1,"table","table-hover","align-middle","neoloop-data-table"],[1,"text-secondary"],["label","Mitarbeiter",1,"new-item"],["type","text","placeholder","z.B. Mitarbeiter, E-Mail",1,"search","myInput",3,"keyup.enter"],["mat-button","","data-target","#addEmployeeModal","data-toggle","modal",1,"button-primary","botton-hover",3,"click","mouseover","mouseout"],[4,"ngIf","ngIfElse"],["label","Abteilungen",1,"new-item"],[1,"table-responsive","mt-2"],[2,"width","25%"],["data-order","asc","data-name","name",1,"fa","fa-sort-desc","cursor-pointer",3,"appSort"],["data-order","asc","data-name","createdAt",1,"fa","fa-sort-desc","cursor-pointer",3,"appSort"],["class","new-item","label","Kunden",4,"ngIf"],["class","new-item","label","Personaldienstleistern",4,"ngIf"],[1,"companybackgrounddiv-logo"],[3,"error","src"],[1,"editing-something",3,"id"],[1,"customer-Unternehmensname","w-25"],[1,"customer-Unternehmensname",2,"width","10%"],[1,"customer-Unternehmensname",2,"width","15%"],[1,"customer-Unternehmensname",2,"width","12%"],[1,"customer-Unternehmensname","mb-2",2,"width","32%"],[1,"d-flex","align-items-center",2,"gap","10px","flex-wrap","wrap"],["type","button",1,"btn","btn-sm","button-primary","botton-hover","opened_subscription",3,"click"],["type","button","class","btn btn-sm btn-soft-danger",3,"click",4,"ngIf"],["type","button","class","btn btn-sm button-primary botton-hover","style","cursor: default;",4,"ngIf"],["type","button","class","btn btn-sm button-primary","style","cursor: default;",4,"ngIf"],["type","button",1,"btn","btn-sm","btn-soft-danger",3,"click"],["type","button",1,"btn","btn-sm","button-primary","botton-hover",2,"cursor","default"],["type","button",1,"btn","btn-sm","button-primary",2,"cursor","default"],["colspan","7",1,"neoloop-table-empty"],["class","row m-0 p-1 border-radius my-3","style","background-color: #f1f1f1;",4,"ngIf"],[1,"row","m-0","p-1","border-radius","my-3",2,"background-color","#f1f1f1"],[1,"col-md-12","bg-white","p-3"],[1,"mt-2","companybackgrounddiv","rounded","assigments-list",2,"padding","5px"],[1,"p-0","d-flex","flex-column","bg-white","rounded","h-100"],[1,"d-flex","flex-row","align-items-center","justify-content-between","border-bottom","p-1"],[1,"mb-0"],[1,"btn","btn-sm","button-primary"],["aria-hidden","true",1,"fa","fa-eye","p-0",2,"height","20px","background-color","transparent"],[1,"row","m-0","flex-row"],[1,"col"],[1,"d-flex","flex-column","align-items-center","p-1"],[3,"percent","title","titleFontSize","radius","space","outerStrokeGradient","outerStrokeWidth","outerStrokeColor","outerStrokeGradientStopColor","innerStrokeColor","innerStrokeWidth","animateTitle","animationDuration","showSubtitle","showUnits","showBackground","clockwise","startFromZero","lazy"],[1,"font-size-small","hyphens-auto"],[1,"companybackgrounddiv","flex-column","rounded",2,"padding","5px"],[1,"verifycontractcount"],["aria-hidden","true",1,"fa","fa-check-circle"],[1,"table","bg-white","mb-0"],[2,"white-space","nowrap"],[1,"mt-2","d-flex","justify-content-between","align-items-center",2,"margin","0 auto"],[1,"mb-0","neoloop-gradient-font"],["aria-hidden","true",1,"fa","fa-long-arrow-right"],["class","btn m-1",3,"ngClass","disabled","click",4,"ngIf"],["class","mb-0",4,"ngIf"],[1,"mb-0","h5","neoloop-gradient-font","fa","fa-check-square","fa-solid"],[1,"fa","fa-circle","text-success"],[1,"fa","fa-circle","text-warning"],["target","_blank",1,"text-white",2,"list-style","none",3,"href"],[1,"btn","btn-sm","button-primary",3,"click"],[1,"btn","btn-sm","m-1","btn-warning",3,"click"],[1,"btn","m-1",3,"click","ngClass","disabled"],["class","w-100 border-radius neoloop-div-bg p-2 mb-3","style","cursor:pointer;",3,"click",4,"ngIf"],["class","row",3,"formGroupName",4,"ngIf"],[1,"w-100","border-radius","neoloop-div-bg","p-2","mb-3",2,"cursor","pointer",3,"click"],[1,"text-white","mb-0"],["aria-hidden","true",1,"fa","fa-check-square","text-white","h5","mb-0"],["class","fa fa-angle-down float-right font-weight-bold h5","aria-hidden","true",4,"ngIf"],["class","fa fa-angle-right float-right font-weight-bold h5","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"fa","fa-angle-down","float-right","font-weight-bold","h5"],["aria-hidden","true",1,"fa","fa-angle-right","float-right","font-weight-bold","h5"],[1,"row",3,"formGroupName"],["appearance","outline",1,"w-100"],["matInput","","placeholder","Vorname","formControlName","firstname","autocomplete","off"],["matInput","","placeholder","Nachname","formControlName","lastname","autocomplete","off"],["matInput","","placeholder","Geburtsdatum","formControlName","birthdate",3,"matDatepicker","min","max"],["matSuffix","",3,"for"],["format","dd\\MM\\yyyy"],["matInput","","placeholder","Stra\xDFe","formControlName","street","ngx-gp-autocomplete","",3,"onAddressChange","options"],[1,"col-sm-6"],["matInput","","placeholder","Haus Nr.","formControlName","street_number"],["matInput","","placeholder","PLZ","formControlName","zip_code"],["matInput","","placeholder","Land","formControlName","country"],["class","col-sm-6",4,"ngIf"],["class","col-sm-6 text-right",3,"ngClass",4,"ngIf"],["type","button","color","warn",1,"btn",3,"click"],[1,"col-sm-6","text-right",3,"ngClass"],[1,"btn","button-primary","botton-hover",3,"click"],[1,"fas","fa-user-check"],[1,"fa","fa-arrow-up"],["type","button",1,"btn","btn-soft-danger",3,"click"],["class","col-sm-6 text-right",4,"ngIf"],[1,"col-sm-6","text-right"],[2,"font-size","12.5px"],["appearance","outline",1,"w-100","mat-form-field-remove-padding-bottom"],["matInput","","type","number","placeholder","Unternehmensanteil in Prozent","formControlName","share_percentage"],[1,"text-white","p-2","border-radius",2,"font-size","14px","background","#ff000082"],[1,"fa","fa-warning",2,"font-size","20px","display","block","text-align","center"],["colspan","5",1,"neoloop-table-empty"],["colspan","5"],[1,"d-flex","justify-content-end","mt-2"],[1,"pagination","m-0","pagerAction"],[1,"page-item",3,"ngClass"],[1,"page-link",3,"click"],["class","page-item",3,"ngClass",4,"ngFor","ngForOf"],["class","neoloop-font-color mb-0",4,"ngIf"],[1,"neoloop-font-color","mb-0"],["colspan","4",1,"p-3","bg-light"],[1,"row","m-0","bg-white","p-2","border-radius"],[1,"col-sm-6","mt-2"],["type","text","matInput","","placeholder","Abteilungsname",3,"value"],["type","text","matInput","","placeholder","Nutzername",3,"value"],["type","text","matInput","","placeholder","E-Mail",3,"value"],[1,"col-md-12","mt-3"],["matInput","","placeholder","Stra\xDFe",3,"value"],[1,"col-sm-2"],["matInput","","placeholder","Haus Nr.",3,"value"],["matInput","","placeholder","PLZ",3,"value"],["matInput","","placeholder","Stadt",3,"value"],["matInput","","placeholder","C/O Appartmentnummer, T\xFCrcode, usw.",3,"value"],["matInput","","placeholder","Land",3,"value"],["colspan","4",1,"neoloop-table-empty"],["label","Kunden",1,"new-item"],[3,"selectedTabChange","selectedIndex"],[1,"heading-div-bg","rounded","p-2","text-secondary","d-flex","align-items-center"],["src","assets/infoIcon.svg"],[1,"second-section","editing-something","shadow-none","mt-0"],["type","text","placeholder","z.B. Kundenunternehmen","type","text",1,"search","myInput",3,"keyup.enter"],["type","button","mat-button","","data-target","#selectCustomerTypeModal","data-toggle","modal","aria-haspopup","dialog","title","Kunden hinzuf\xFCgen",1,"button-primary","botton-hover",3,"click","mouseover","mouseout"],["alt","Plus Icon",1,"menu-image","rounded-0",3,"src"],["type","text","placeholder","z.B. Kunde","type","text",1,"search","myInput",3,"keyup.enter"],["label","Erhaltene Anfragen"],["type","text","placeholder","z.B. Personalberatungsunternehmen","type","text",1,"search","myInput",3,"keyup.enter"],[1,"px-100",3,"src"],["colspan","6",1,"neoloop-table-empty"],["class","neoloop-font-color f-size-x-small mb-0",4,"ngIf"],[1,"btn","btn-sm","button-primary","botton-hover","open_company","m-1"],["class","m-1 btn btn-sm button-primary botton-hover",3,"click",4,"ngIf"],[1,"neoloop-font-color","f-size-x-small","mb-0"],[1,"m-1","btn","btn-sm","button-primary","botton-hover",3,"click"],["aria-hidden","true",1,"fa","fa-paper-plane-o"],["data-toggle","modal","data-target","#viewCustomerRequestModal",1,"btn","btn-sm","button-primary","botton-hover",3,"click"],["label","Personaldienstleistern",1,"new-item"],["label","Anfragen von Personaldienstleistern",4,"ngIf"],["label","Kooperierende Personaldienstleistern"],["type","text","placeholder","z.B. Personaldienstleister","type","text",1,"search","myInput",3,"keyup.enter"],["label","Anfragen von Personaldienstleistern"],["colspan","100%"],[1,"d-flex","justify-content-end","pagination-main","mt-2"],[1,"btn","btn-sm","button-primary","botton-hover"],[1,"accordion-list-data","list-unstyled","d-flex","align-items-center"],[1,"btn","btn-sm","button-primary","botton-hover","open_company","m-1",3,"click","id"],[1,"w-100","bg-white","p-4"],["src","../assets/closeModel.svg","alt","Close","role","button",1,"text-danger","h3","position-absolute","links",2,"width","20px","height","20px","display","block","cursor","pointer","right","15px","top","10px",3,"click"],[1,"table-min-height"],[1,"full-tabs","mt-4"],[1,"card","assigments-list",2,"border","0","background","#f2f2f2"],["id","cardbodyid",1,"card-body",2,"background","#fff"],["linear","",1,"w-100",2,"overflow","auto!important"],["matStepperIcon","edit"],[1,"col-sm-12","px-1"],["id","accordion",1,"accordion-main","border-bottom"],[1,"accordion-list-item"],["src","assets/user limit.svg",2,"width","20px"],["class","btn btn-sm button-primary botton-hover",3,"click",4,"ngIf"],["class","col-md-7 p-0 text-center",4,"ngIf"],[1,"float-left"],["src","assets/department.svg",2,"width","20px"],["src","assets/job_list.svg",2,"width","20px"],["src","assets/employee.svg",2,"width","20px"],[1,"col-sm-12","px-1","text-right","mt-2"],["matStepperNext","",1,"btn","button-primary","botton-hover",3,"disabled"],[1,"col-md-5"],["class","col-sm-12 px-1",4,"ngIf"],[1,"col-md-7"],[1,"w-100","p-2","border","border-secondary","border-radius",2,"min-height","840px"],[1,"col-md-12","text-center","mt-2"],[2,"width","150px",3,"src"],[1,"col-md-8"],[1,"col-md-4"],[1,"col-md-12","text-center"],[1,"col-md-12"],[1,"border-bottom","border-secondary",2,"margin-top","15px","width","100%","border-collapse","separate !important","text-align","center"],[2,"background","gray","color","white"],[1,"p-1"],[1,"border-bottom"],["style","border-bottom:1px solid gray;",4,"ngFor","ngForOf"],[1,"row",2,"padding-left","15px","width","100%","position","absolute","bottom","0","font-size","9px"],[1,"col-md-3"],["class","col-md-3",4,"ngIf"],["class","m-0",4,"ngIf"],[1,"col-md-6","mt-3"],["matStepperPrevious","",1,"btn","button-primary","botton-hover"],[1,"col-md-6","text-right","mt-3"],[1,"btn","button-primary","botton-hover"],[1,"btn","btn-sm","button-primary","botton-hover",3,"click"],[1,"col-md-7","p-0","text-center"],[1,"input-group","mt-2"],[1,"input-group-btn"],["type","button",1,"btn","button-primary","botton-hover","btn-number",3,"click"],["aria-hidden","true",1,"fa","fa-minus"],["type","number",1,"form-control","input-number","text-center",3,"change","value"],["aria-hidden","true",1,"fa","fa-plus"],[1,"customer-Unternehmensname","font-weight-bold",2,"width","45%"],["class","accordion-list-item",4,"ngFor","ngForOf"],[1,"customer-Unternehmensname",2,"width","45%"],[2,"border-bottom","1px solid gray"],[2,"padding","5px 0px","text-align","center","font-size","unset !important","font-weight","unset !important","line-height","unset !important","letter-spacing","unset !important","color","#000 !important"],[2,"text-align","center","font-size","unset !important","font-weight","unset !important","line-height","unset !important","letter-spacing","unset !important","color","#000 !important"],[1,"field-heading-parent"],[1,"field-heading"],[1,"row","m-0","pb-2"],["role","button",1,"w-75","shadow","rounded","text-center","bg-white","m-auto","p-3","links1",3,"click"],["src","assets/addCompany.svg",1,"px-100"],["src","assets/Excel.svg",1,"px-100"],[3,"clearOpenedCompany","showRequests","hrCompany"],[3,"dataSaved","companyData"],["class","field-heading-parent",4,"ngIf"],[1,"col-sm-12","mb-2"],[1,"w-100","m-0"],[1,"small-text"],[1,"w-100","m-0","mb-1"],[3,"selectedTabChange"],["label","Offizielle Unternehmensdaten"],[1,"row","m-0","mt-3"],[1,"px-2","py-3"],["appearance","outline",1,"w-100","bg-white"],["matInput","","placeholder","Unternehmensname","readonly","","autocomplete","off",3,"value"],["type","text","matInput","","readonly","",3,"value"],[1,"col-sm-12","mt-3"],[1,"row","mx-0","pt-3"],[1,"col-sm-6","mb-3"],["matInput","","placeholder","Registerort","readonly","","autocomplete","off",3,"value"],["matInput","","placeholder","Registernummer","readonly","","autocomplete","off",3,"value"],[1,"col-sm-4","mb-3"],["matInput","","placeholder","Finanzamt","readonly","","autocomplete","off",3,"value"],["matInput","","placeholder","Steuernummer","readonly","","autocomplete","off",3,"value"],["matInput","","placeholder","USt-I
94dNr","readonly","","autocomplete","off",3,"value"],["matInput","","placeholder","Stra\xDFe","readonly","",3,"value"],[1,"col-sm-2","mb-3"],["matInput","","placeholder","Haus Nr.","readonly","",3,"value"],["matInput","","placeholder","PLZ","readonly","",3,"value"],["matInput","","placeholder","Stadt","readonly","",3,"value"],["matInput","","placeholder","C/O Appartmentnummer, T\xFCrcode, usw.","readonly","",3,"value"],["matInput","","placeholder","Land des Wohnsitzes","readonly","",3,"value"],["label","Vertretung & Berechtigte"],[1,"row","m-0","mb-3"],[1,"col-sm-12","py-2","heading-div-bg","rounded"],[1,"font-family-baloo-2","text-secondary","m-0"],["label","Arbeitnehmerdienstleistungsvertrag"],[1,"A4-Size-paper","overflow-hidden","w-100"],["id","showContract","src",On``,"type","application/pdf",1,"w-100","h-100","border-radius"],[1,"w-100","mb-3",3,"ngClass"],["role","button",1,"text-white","mb-0",3,"click","ngClass"],["class","h6",4,"ngIf"],["class","fa fa-angle-down float-right font-weight-bold h4","aria-hidden","true",4,"ngIf"],["class","fa fa-angle-right float-right font-weight-bold h4","aria-hidden","true",4,"ngIf"],["class","row m-0 py-2 w-100",4,"ngIf"],[1,"h6"],["aria-hidden","true",1,"fa","fa-angle-down","float-right","font-weight-bold","h4"],["aria-hidden","true",1,"fa","fa-angle-right","float-right","font-weight-bold","h4"],[1,"row","m-0","py-2","w-100"],[1,"text-secondary","mb-1"],[3,"value","disabled"],["matInput","","placeholder","Vorname","readonly","",3,"value"],["matInput","","placeholder","Nachname","readonly","",3,"value"],["matInput","","placeholder","Land","readonly","",3,"value"],["class","row m-0 py-2 w-100",3,"formGroupName",4,"ngIf"],[1,"row","m-0","py-2","w-100",3,"formGroupName"],[1,"col-sm-12","mb-3"],["appearance","outline",1,"w-100","mat-form-field-remove-padding-bottom","bg-white"],["matInput","","type","number","readonly","","placeholder","Unternehmensanteil in Prozent",3,"value"],[1,"heading-div-bg","rounded","p-2"],[1,"A4-Size-paper","bg-white","border-radius","border"],[1,"col-md-12","text-center","mt-3"],[2,"width","200px",3,"src"],[1,"col-md-7","my-3"],[1,"col-md-5","my-3"],[1,"col-md-12","my-3"],[1,"font-12-px"],[1,"col-md-4","pe-0",2,"font-size","13px"],[1,"my-1","border-secondary"],[1,"mb-1"],[1,"col-md-4","ps-0",2,"font-size","13px"],[1,"w-100",3,"src"],[1,"mb-1","mt-0","border-secondary"],["src","./assets/phone_verified_120x120.png",1,"mr-2","ml-2","editPhoneVLogo"],["src","./assets/email_120x120.png",1,"mr-2","editEmailVLogo"]],template:function(e,n){e&1&&(i(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"div")(6,"div",11)(7,"div",11)(8,"div",12)(9,"div",13)(10,"div",14)(11,"input",15),_("input",function(s){return n.selectedParentTabIndex===2?n.searchSuppliers(s):n.searchCompanies(s)}),t()(),i(12,"div",16)(13,"button",17),_("mouseover",function(){return n.isHovering=!0})("mouseout",function(){return n.isHovering=!1})("click",function(){return n.selectedParentTabIndex===2?n.openSupplierModal():n.add_company()}),p(14,"img",18),i(15,"span",19),r(16),t()()(),i(17,"div",20)(18,"span",21),r(19),t()()()()(),i(20,"mat-tab-group",22),Lt("selectedIndexChange",function(s){return Gt(n.selectedParentTabIndex,s)||(n.selectedParentTabIndex=s),s}),_("selectedTabChange",function(s){return n.main_tab=s.index}),i(21,"mat-tab",23)(22,"div",24)(23,"div",25)(24,"table",26)(25,"thead")(26,"tr",11)(27,"th",27),r(28,"#"),t(),i(29,"th",28),r(30,"Unternehmensname "),p(31,"i",29),t(),i(32,"th",30),r(33,"Logo"),t(),i(34,"th",30),r(35,"Abteilung"),t(),i(36,"th",31),r(37,"Erstellungsdatum"),t(),i(38,"th",32),r(39,"Status"),t(),i(40,"th",33),r(41,"Interaktionen"),t()()(),i(42,"tbody",34),v(43,ys,21,20,"ng-container",35),t()()()(),i(44,"div",36),v(45,Cs,14,13,"ul",37),t()(),i(46,"mat-tab",38)(47,"div",39)(48,"div",40)(49,"div",41)(50,"div",42)(51,"div",43)(52,"div",44)(53,"ul",45)(54,"li",46),r(55,"#"),t(),i(56,"li",47),r(57,"Unternehmensname "),p(58,"i",29),t(),i(59,"li",47),r(60,"Gesch\xE4ftsf\xFChrer"),t(),i(61,"li",47),r(62,"Erstellungsdatum"),t(),i(63,"li",47),r(64,"Status"),t(),i(65,"li",48),r(66,"Interaktionen"),t()()(),p(67,"hr"),i(68,"div",34),v(69,lc,20,20,"ng-container",35),t()(),i(70,"div",36),v(71,mc,14,13,"ul",37),t()()()()()(),i(72,"mat-tab",49),p(73,"app-supplier-managment",50),t()()()()()()()()(),i(74,"div",51)(75,"div",52)(76,"div",53)(77,"div",54)(78,"div",55)(79,"span",56),r(80,"Abonnement Add-ons"),t(),i(81,"button",57),_("click",function(){return n.close_modal("addOnModal","addOnModal_parent"),n.addons_cart=[]}),p(82,"img",58),t()(),i(83,"div",59),v(84,jc,185,65,"mat-stepper",60),t()()()()(),i(85,"div",61)(86,"div",62)(87,"div",63)(88,"div",54)(89,"div",55)(90,"span",56),r(91,"Art der Erstellung ausw\xE4hlen"),t(),i(92,"button",57),_("click",function(){return n.close_modal("selectCustomerTypeModal","selectCustomerTypeModal_parent"),n.userService.addBodyClass("modal-open",500)}),p(93,"img",58),t()(),v(94,Kc,27,0,"div",64),t()()()(),i(95,"div",65)(96,"div",66)(97,"div",53)(98,"div",54)(99,"div",55)(100,"span",56),r(101,"Kunde hinzuf\xFCgen"),t(),i(102,"button",57),_("click",function(){return n.close_modal("addCustomerModal","addCustomerModal_parent"),n.userService.addBodyClass("modal-open",500),n.resetOnboardingModal()}),p(103,"img",58),t()(),v(104,Wc,2,1,"div",64),t()()()(),i(105,"div",67)(106,"div",68)(107,"div",53)(108,"div",54)(109,"div",55)(110,"span",56),r(111,"Mitarbeiter hinzuf\xFCgen"),t(),i(112,"button",57),_("click",function(){return n.close_modal("addEmployeeMod
94al","addEmployeeModal_parent"),n.userService.addBodyClass("modal-open",500)}),p(113,"img",58),t()(),v(114,Zc,2,1,"div",64),t()()()(),i(115,"div",69)(116,"div",70)(117,"div",63)(118,"div",54)(119,"div",55)(120,"span",56),r(121,"Anfragedetails"),t(),i(122,"button",57),_("click",function(){return n.opened_request={},n.close_modal("viewCustomerRequestModal","viewCustomerRequestModal_parent"),n.userService.addBodyClass("modal-open",500)}),p(123,"img",58),t()(),v(124,Xc,5,2,"div",64),t()()()(),i(125,"div",71)(126,"div",72)(127,"div",53)(128,"div",54)(129,"div",55)(130,"span",56),r(131,"Kundendetails"),t(),i(132,"button",57),_("click",function(){return n.opened_company_data.opened_customer_company={},n.close_modal("viewCompanyCustomerModal","viewCompanyCustomerModal_parent"),n.userService.addBodyClass("modal-open",500)}),p(133,"img",58),t()(),v(134,fp,114,16,"div",64),t()()()(),i(135,"div",73)(136,"div",74)(137,"div",75)(138,"div",54)(139,"div",55)(140,"span",56),r(141,"Anfrage zur Kundenakzeptanz des Personalberatungsunternehmens annehmen:"),t(),i(142,"button",57),_("click",function(){return n.close_modal("acceptRequestModal","acceptRequestModal_parent"),n.userService.addBodyClass("modal-open",500)}),p(143,"img",58),t()(),v(144,xp,103,24,"div",64),t()()()(),i(145,"div",76)(146,"div",77)(147,"div",78)(148,"div",54)(149,"div",55)(150,"span",56),r(151,"Benutzerdetails"),t(),i(152,"button",57),_("click",function(){return n.close_modal("viewUserModal","viewUserModal_parent"),n.userService.addBodyClass("modal-open",500),n.opened_user={}}),p(153,"img",58),t()(),i(154,"div",59)(155,"div",13)(156,"div",79)(157,"mat-tab-group")(158,"mat-tab",80)(159,"form",81)(160,"div",82)(161,"div",79)(162,"div",83)(163,"h6",84)(164,"mat-icon",85),r(165,"chevron_right"),t(),r(166," \xA0Pers\xF6nliche Daten "),t()(),i(167,"div",13)(168,"div",86)(169,"mat-form-field",87)(170,"mat-label"),r(171,"Anrede"),t(),i(172,"mat-select",88)(173,"mat-option",89),r(174,"Herr"),t(),i(175,"mat-option",90),r(176,"Frau"),t(),i(177,"mat-option",91),r(178,"Divers"),t()()()(),i(179,"div",86)(180,"mat-form-field",87)(181,"mat-label"),r(182,"Vorname"),t(),p(183,"input",92),t()(),i(184,"div",86)(185,"mat-form-field",87)(186,"mat-label"),r(187,"Nachname"),t(),p(188,"input",93),t()(),i(189,"div",86)(190,"mat-form-field",94)(191,"mat-label"),r(192,"Bezeichnung Benutzer"),t(),p(193,"input",95),t()(),i(194,"div",96)(195,"mat-form-field",87)(196,"mat-label"),r(197,"Geburtsdatum"),t(),p(198,"input",97),t()(),i(199,"div",96)(200,"mat-form-field",87)(201,"mat-label"),r(202,"Geburtsort"),t(),p(203,"input",98),t()(),i(204,"div",96)(205,"mat-form-field",99)(206,"mat-label"),r(207,"Nationalit\xE4t"),t(),p(208,"input",100),t()()(),i(209,"div",83)(210,"h6",84)(211,"span")(212,"mat-icon",85),r(213,"chevron_right"),t()(),r(214,"\xA0Wohnsitz"),t()(),i(215,"div",13)(216,"div",96)(217,"mat-form-field",87)(218,"mat-label"),r(219,"Stra\xDFe"),t(),p(220,"input",101),t()(),i(221,"div",96)(222,"mat-form-field",87)(223,"mat-label"),r(224,"Nr."),t(),p(225,"input",102),t()(),i(226,"div",96)(227,"mat-form-field",87)(228,"mat-label"),r(229,"PLZ"),t(),p(230,"input",103),t()(),i(231,"div",96)(232,"mat-form-field",87)(233,"mat-label"),r(234,"Stadt"),t(),p(235,"input",104),t()(),i(236,"div",96)(237,"mat-form-field",87)(238,"mat-label"),r(239,"C/O Appartmentnummer, T\xFCrcode, usw."),t(),p(240,"input",105),t()(),i(241,"div",96)(242,"mat-form-field",87)(243,"mat-label"),r(244,"Land des Wohnsitzes"),t(),p(245,"input",106),t()()(),i(246,"div",83)(247,"h6",84)(248,"span")(249,"mat-icon",85),r(250,"chevron_right"),t()(),r(251,"\xA0Kommunikation / Verkn\xFCpfung "),t()(),i(252,"div",13)(253,"div",96)(254,"mat-form-field",87)(255,"mat-label"),r(256,"Telefonnummer"),t(),p(257,"input",107),t(),v(258,vp,1,0,"img",108),t(),i(259,"div",96)(260,"mat-form-field",87)(261,"mat-label"),r(262,"E-Mail"),t(),p(263,"input",109),t(),v(264,yp,1,0,"img",110),t(),i(265,"div",96)(266,"mat-form-field",87)(267,"mat-label"),r(268,"Benutzer Nr."),t(),p(269,"input",111),t()()()()()()()()()()()()()()(),i(270,"button",112),r(271,` ddd 95`),t(),i(272,"div",113)(273,"div",114)(274,"div",115)(275,"div",54)(276,"div",55),p(277,"span",116),i(278,"button",57),_("click",function(){return n.close_modal("exampleModalpreview","exampleModalpreview_parent")}),p(279,"img",58),t()(),i(280,"div",59),p(281,"img",117),t()()()()(),p(282,"app-add-supplier",118)),e&2&&(d(11),m("placeholder",n.selectedParentTabIndex===2?"z. B. Lieferantenname":"z. B. Nutzername, E-Mail"),d(3),m("src",n.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",j
95),d(2),M(" ",n.selectedParentTabIndex===2?"Lieferant hinzuf\xFCgen":"Kunden hinzuf\xFCgen"," "),d(3),Y(" Anzahl der Ergebnisse: ",n.main_tab==0?n.startRecord:n.startRecord_interested," - ",n.main_tab==0?n.endRecord:n.endRecord_interested," / ",n.main_tab==0?n.total_count:n.total_interested_count," "),d(),$t("selectedIndex",n.selectedParentTabIndex),d(11),m("appSort",n.pagedItems),d(12),m("ngForOf",n.pagedItems),d(2),m("ngIf",n.total_count),d(13),m("appSort",n.pagedItems),d(11),m("ngForOf",n.pagedItems_interested),d(2),m("ngIf",n.total_interested_count),d(2),m("mainCompanyId",n.brand_details.company_info[0]._id)("searchTerm",n.supplierSearchTerm),d(11),m("ngIf",n.opened_subscription_data==null?null:n.opened_subscription_data._id),d(10),m("ngIf",n.opened_company_data._id&&n.opened_company_data.hr_company),d(10),m("ngIf",n.opened_company_data==null?null:n.opened_company_data._id),d(10),m("ngIf",n.opened_company_data==null?null:n.opened_company_data._id),d(10),m("ngIf",n.opened_request==null?null:n.opened_request._id),d(10),m("ngIf",n.opened_company_data==null||n.opened_company_data.opened_customer_company==null||n.opened_company_data.opened_customer_company.customer_company_info==null?null:n.opened_company_data.opened_customer_company.customer_company_info._id),d(10),m("ngIf",(n.opened_company_data==null?null:n.opened_company_data._id)&&(n.opened_request==null?null:n.opened_request._id)),d(15),m("formGroup",n.editUserFormGroup),d(99),m("ngIf",(n.opened_user==null?null:n.opened_user.mobile_verify)=="1"),d(6),m("ngIf",(n.opened_user==null?null:n.opened_user.email_verify)=="1"),d(18),m("brandDetails",n.brand_details))},dependencies:[Me,Ut,jt,He,ve,ge,pe,lt,_e,ue,fe,he,dt,mt,vn,ln,Ct,bt,xi,fi,J,Xt,Yt,_t,en,ut,tn,nn,pt,ot,Ze,te,ye,ke,ne,an,ct,vt,yt,Ie,Fe,Te,hi,mn,qe,Ht,qt,Ye,gi],styles:['[_ngcontent-%COMP%]:root{--neoloop-table-header-bg: #f8f9fa;--neoloop-table-border: #e9ecef;--neoloop-table-row-hover: #f5f7fa;--neoloop-table-cell-py: .65rem;--neoloop-table-cell-px: .75rem}.table.neoloop-data-table[_ngcontent-%COMP%]{margin-bottom:0;font-size:14px;color:var(--color-text);border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--neoloop-table-border);border-radius:8px;overflow:hidden}.table.neoloop-data-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table.neoloop-data-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#555;vertical-align:middle;border-bottom:1px solid var(--neoloop-table-border);padding:var(--neoloop-table-cell-py) var(--neoloop-table-cell-px)}.table.neoloop-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;vertical-align:middle;border-bottom:1px solid #eee;padding:var(--neoloop-table-cell-py) var(--neoloop-table-cell-px)}.table.neoloop-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}.table.neoloop-data-table[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:not(.btn-link){font-size:13px;padding:.35rem .75rem;line-height:1.4}.table.neoloop-data-table[_ngcontent-%COMP%] .btn.btn-sm[_ngcontent-%COMP%]:not(.btn-link){font-size:13px;padding:.3rem .65rem}td.neoloop-table-empty[_ngcontent-%COMP%]{text-align:center!important;font-size:14px;color:var(--color-text);padding:1rem;border-bottom:none;background:transparent}.neoloop-table-empty--standalone[_ngcontent-%COMP%]{text-align:center;padding:1.25rem 1rem;font-size:14px;color:var(--color-text)}.cart[_ngcontent-%COMP%]{position:relative;display:block;width:45px;height:45px;overflow:hidden;padding:10px;border-radius:50%}.cart-icon[_ngcontent-%COMP%]{position:relative;top:3px;z-index:1;font-size:24px;color:#fff}.count[_ngcontent-%COMP%]{position:absolute;top:6px;right:5px;z-index:2;font-size:11px;border-radius:50%;background:#d60b28;width:16px;height:16px;line-height:16px;display:block;text-align:center;color:#fff;font-family:Roboto,sans-serif;font-weight:700}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{display:none}.small-text[_ngcontent-%COMP%]{font-weight:400;font-size:12px}.px-100[_ngcontent-%COMP%]{width:100px;height:50px;object-fit:contain}.font-12-px[_ngcontent-%COMP%]{font-size:12px}.text-warning[_ngcontent-%COMP%]{color:orange}[_nghost-%COMP%] .newdeisgnfortabs .mat-mdc-tab-body.mat-tab-body-active{overflow-y:clip}[_nghost-%COMP%] .newdeisgnfortabs .button-arrow .mat-mdc-tab-body{min-height:0vh!important}[_nghost-%COMP%] .newdeisgnfortabs .button-arrow .mat-ink-bar:before{width:100%;background:#4196d2!important;left:0!important;height:3px!important;border-width:0px 0px 0px 0px!important;top:50px!important}[_nghost-%COMP%] .newdeisgnfortabs.mat-mdc-tab-group .button-arrow .mat-mdc-tab-header .mat-tab-label-container{border-radius:0;padding:0 0 5px;margin-top:0;background:none;box-shadow:none;border-bottom:1px solid silver}[_nghost-%COMP%] .newdeisgnfortabs .button-arrow .mat-tab-body-wrapper{box-shadow:none;margin:0;padding:0 0 15px;border-radius:0}[_nghost-%COMP%] .newdeisgnfortabs .button-arrow .mat-tab-label .mat-tab-label-content{font-size:14px;font-weight:500;line-height:30px;letter-spacing:0em;text-align:center;color:#000}[_nghost-%COMP%] .newdeisgnfortabs.mat-mdc-tab-group .mat-mdc-tab-header .mat-tab-label-container{background:#e7f3fe!important;box-shadow:5px 3px 20px 1px #262d3424;border-radius:10px;padding:10px;margin-top:0}[_nghost-%COMP%] .newdeisgnfortabs .mat-ripple:not(:empty){transform:translateZ(0);color:#fff;opacity:inherit}[_nghost-%COMP%] .newdeisgnfortabs .mat-tab-body-content{overflow:unset!important;width:100%}[_nghost-%COMP%] .mat-mdc-tab-group.newdeisgnfortabs .mat-mdc-tab-body-wrapper, [_nghost-%COMP%] .newdeisgnfortabs .mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1);box-shadow:5px 3px 20px 1px #262d3424;background:#fff;margin-top:30px;padding:10px;border-radius:10px}[_nghost-%COMP%] .newdeisgnfortabs .mat-mdc-tab-group.mat-primary .mat-ink-bar{background-color:#fff!important}[_nghost-%COMP%] .newdeisgnfortabs .mat-ink-bar{position:absolute;bottom:0;height:48px;transition:.5s cubic-bezier(.35,0,.25,1);background:#fff!important;border-radius:10px;color:#000!important;z-index:-99}[_nghost-%COMP%] .newdeisgnfortabs .mat-tab-label-active .mat-tab-label-content{color:#000!important}[_nghost-%COMP%] .newdeisgnfortabs .mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;font-family:Open Sans;font-size:17px;font-weight:600;line-height:30px;letter-spacing:0em;text-align:left;color:#fff}[_nghost-%COMP%] .newdeisgnfortabs .mat-ripple:not(:empty){color:#000}[_nghost-%COMP%] .newdeisgnfortabs .mat-tab-label-container .mat-ink-bar:before{content:"";position:absolute;top:58px;border-bottom:0px solid #4d88c5;border-top:0px solid #6182C4;border-right:11px solid #0000;border-left:10px solid #0000;left:38%;border-width:26px 15px 0px 15px}[_nghost-%COMP%] .newdeisgnfortabs .mat-mdc-tab-header{display:flex;overflow:inherit;position:relative;flex-shrink:0;background:#e7f3fe!important;box-shadow:5px 3px 20px 1px #262d3424;border-radius:10px;padding:10px;margin-top:0;color:#fff}[_nghost-%COMP%] .newdeisgnfortabs .mat-tab-label-container{display:flex;flex-grow:1;overflow:initial;z-index:1}.companybackgrounddiv[_ngcontent-%COMP%]{background-color:#e7f3fe;padding:8px;gap:10px;width:100%;display:flex;overflow:auto}.companybackgrounddiv[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;width:100%;background-color:#fff;border-radius:10px;padding:10px 20px}.companybackgrounddiv[_ngcontent-%COMP%] div[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}.companybackgrounddiv[_ngcontent-%COMP%] div[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:35px;border-radius:50%;background-color:#f2f2f2;padding:10px;display:flex;align-items:center;justify-content:center;aspect-ratio:1}.companybackgrounddiv[_ngcontent-%COMP%] .companybackgrounddiv-logo[_ngcontent-%COMP%]{background:transparent}.companybackgrounddiv[_ngcontent-%COMP%] .companybackgrounddiv-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:70px;object-fit:contain}[_nghost-%COMP%] circle-progress svg{width:100%;height:auto;max-width:100px}.background-color[_ngcontent-%COMP%]{background:#e7f3ff}.text-white[_ngcontent-%COMP%]{color:#515966!important}.arrow-left-dash[_ngcontent-%COMP%]{position:relative;list-style:none;padding-left:30px;display:flex;flex-direction:column;gap:20px}.arrow-left-dash[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:2px dashed #34A3DE;
95height:calc(100% - 10px);width:2px;left:0;bottom:11px}.arrow-left-dash[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative}.arrow-left-dash[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"--->";color:#34a3de;position:absolute;left:-30px;top:2px;font-size:12px;font-weight:500}.arrow-left-dash[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#34a3de;margin-left:4px}.arrow-left-dash[_ngcontent-%COMP%] li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:25px;padding:0!important}.verifycontractcount[_ngcontent-%COMP%]{flex-direction:row!important;background-color:transparent!important;padding:6px 10px!important;justify-content:space-between!important;align-items:center!important}.verifycontractcount[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{background-color:#fff;border-radius:8px;padding:6px 10px;display:flex;gap:10px;color:green;margin-bottom:0;align-items:center}.documentcontract[_ngcontent-%COMP%]{width:fit-content!important;padding:6px 10px!important;border-radius:6px!important;gap:5px;box-shadow:#11111a1a 0 9px 10px 3px;cursor:pointer}[_nghost-%COMP%] .newdeisgnfortabs .mat-tab-label{flex-basis:auto!important;width:100%!important;min-width:fit-content!important;padding:10px 20px!important}[_nghost-%COMP%] .newdeisgnfortabs .mat-tab-label-container{width:100%;overflow:hidden!important}[_nghost-%COMP%] .ng-circle-progress .circle-progress-path{stroke:#1388fe!important}[_nghost-%COMP%] .ng-circle-progress .circle-progress-track{stroke:#e7e8ea!important}.editEmailVLogo[_ngcontent-%COMP%], .editPhoneVLogo[_ngcontent-%COMP%]{position:absolute;width:30px;right:12px;top:13px}[_nghost-%COMP%] .mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:0!important}[_nghost-%COMP%] .mat-mdc-tab-group .mat-mdc-tab.mdc-tab--active{background:#fff!important;border-radius:10px!important}[_nghost-%COMP%] .main-tab-group>.mat-mdc-tab-header .mat-mdc-tab.mdc-tab--active{border-radius:0!important;border-bottom:2px solid #1388FE!important;position:relative}[_nghost-%COMP%] .mat-mdc-tab-group>.mat-mdc-tab-header .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{font:600 18px / 20px;font-weight:600!important}[_nghost-%COMP%] .mat-mdc-tab-group>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--color-text)!important;font:400 18px / 20px}[_nghost-%COMP%] .mat-mdc-tab-group>.mat-mdc-tab-header .mat-mdc-tab, [_nghost-%COMP%] .mat-mdc-tab-group>.mat-mdc-tab-header .mat-mdc-tab:hover::not(.main-tab-group), [_nghost-%COMP%] .mat-mdc-tab-group>.mat-mdc-tab-header .mat-mdc-tab--active::not(.main-tab-group){border-radius:12px!important;overflow:hidden!important}[_nghost-%COMP%] .mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-labels{border-bottom:none!important}[_nghost-%COMP%] .mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs:not(.main-tab-group)>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1!important}.table-min-height[_ngcontent-%COMP%]{min-height:auto!important}[_nghost-%COMP%]{--neoloop-table-header-bg: #f8f9fa;--neoloop-table-border: #e9ecef;--neoloop-table-row-hover: #f5f7fa;--neoloop-table-cell-py: .65rem;--neoloop-table-cell-px: .75rem}[_nghost-%COMP%] .table.neoloop-data-table[_ngcontent-%COMP%]{margin-bottom:0;font-size:14px;color:var(--color-text);border-collapse:separate;border-spacing:0;background:#fff;border-radius:8px;overflow:hidden}[_nghost-%COMP%] .table.neoloop-data-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], [_nghost-%COMP%] .table.neoloop-data-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:#555;vertical-align:middle;border-bottom:1px solid var(--neoloop-table-border);padding:var(--neoloop-table-cell-py) var(--neoloop-table-cell-px)}[_nghost-%COMP%] .table.neoloop-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;vertical-align:middle;border-bottom:1px solid #eee;padding:var(--neoloop-table-cell-py) var(--neoloop-table-cell-px)}[_nghost-%COMP%] .table.neoloop-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom-color:transparent}[_nghost-%COMP%] .table.neoloop-data-table.table-hover[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background-color:var(--neoloop-table-row-hover)}[_nghost-%COMP%] .table.neoloop-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td.neoloop-table-empty[_ngcontent-%COMP%]{background-color:transparent!important}[_nghost-%COMP%] .table.neoloop-data-table[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:not(.btn-link){font-size:13px;padding:.35rem .75rem;line-height:1.4}[_nghost-%COMP%] .table.neoloop-data-table[_ngcontent-%COMP%] .btn.btn-sm[_ngcontent-%COMP%]:not(.btn-link){font-size:13px;padding:.3rem .65rem;line-height:1.4}[_nghost-%COMP%] .neoloop-table-empty[_ngcontent-%COMP%], [_nghost-%COMP%] td.neoloop-table-empty[_ngcontent-%COMP%]{text-align:center!important;color:var(--color-text)!important;font-size:14px;background:transparent!important;border-bottom:none!important}[_nghost-%COMP%] .neoloop-table-empty--standalone[_ngcontent-%COMP%]{text-align:center;padding:1.25rem 1rem;color:var(--color-text);font-size:14px;background:transparent}[_nghost-%COMP%] .neoloop-accordion-table[_ngcontent-%COMP%] .accordion-head[_ngcontent-%COMP%]{padding:.35rem .5rem;border-radius:8px 8px 0 0;background:var(--neoloop-table-header-bg, #f8f9fa)}[_nghost-%COMP%] .neoloop-accordion-table[_ngcontent-%COMP%] .accordion-head-list[_ngcontent-%COMP%]{align-items:center;margin-bottom:0;padding:.5rem .65rem;width:100%}[_nghost-%COMP%] .neoloop-accordion-table[_ngcontent-%COMP%] .accordion-head-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#555}[_nghost-%COMP%] .neoloop-accordion-table[_ngcontent-%COMP%] .accordion-list-item[_ngcontent-%COMP%]{border-bottom:1px solid #eee;transition:background-color .15s ease}[_nghost-%COMP%] .neoloop-accordion-table[_ngcontent-%COMP%] .accordion-list-item[_ngcontent-%COMP%]:hover{background-color:var(--neoloop-table-row-hover, #f5f7fa)}[_nghost-%COMP%] .neoloop-accordion-table[_ngcontent-%COMP%] .accordion-list-data[_ngcontent-%COMP%]{width:100%;padding:.5rem .65rem;min-height:48px}[_nghost-%COMP%] .neoloop-accordion-table[_ngcontent-%COMP%] .accordion-list-data[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:not(.btn-link){font-size:13px;padding:.3rem .65rem;line-height:1.4}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer;margin-left:5px}.table.neoloop-data-table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none!important}.neoloop-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background:none!important}.table.neoloop-data-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:none!important}.heading-div-bg[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{display:flex;align-items:center}.section-icon[_ngcontent-%COMP%]{font-size:25px;width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:var(--color-text)!important;margin-right:4px;line-height:1}.btn-warning[_ngcontent-%COMP%]{border-radius:5px;padding:4px 8px;font-size:14px;line-height:1.3;font-weight:500;border:none}']})}};export{Fi as HrtechCompaniesManagementComponent};
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.