1import{b as di,c as pi,d as ui,e as gi}from"./chunk-ZYT2SYZG.js";import{a as Ci}from"./chunk-VMHF3SQB.js";import{d as ai,e as ri,f as li,g as _i}from"./chunk-WZYOLWIW.js";import"./chunk-W6OJCBYK.js";import{a as si}from"./chunk-PRNE23UF.js";import{a as ci}from"./chunk-5B6TE7WL.js";import{a as mi}from"./chunk-J45TRQFB.js";import"./chunk-MRJL67J5.js";import{a as Re}from"./chunk-ISG4QZ54.js";import{d as In}from"./chunk-NVUVE2OP.js";import{A as fn,B as Ee,C as Te,D as ot,E as hn,F as xn,G as Fe,H as vn,I as yn,J as bn,K as wn,L as Mn,M as Sn,N as En,O as at,P as ze,Q as ie,R as Le,S as Tn,T as Fn,U as rt,V as kn,W as Pn,X as Vn,Y as Ne,a as Qe,b as on,c as de,d as an,e as et,f as rn,g as pe,h as ln,i as be,j as we,k as _n,l as mn,m as Me,n as sn,o as cn,p as dn,q as pn,r as un,s as tt,t as Ue,u as gn,v as q,w as Se,x as nt,y as Cn,z as it}from"./chunk-T7RXMGEX.js";import{a as Bt}from"./chunk-FDH7XV3Z.js";import{b as Be}from"./chunk-76WE5NDP.js";import{D as Jn,E as Xn,I as Qn,R as oi,h as An,i as Dn,j as Gn}from"./chunk-A7RCACWV.js";import{A as Nn,D as Rn,E as $n,G as Hn,H as qn,K as Kn,N as Zn,P as Yn,Q as jn,T as Wn,V as ei,W as ti,X as ni,Y as ii,i as On,s as Bn,v as Un,x as zn,y as Ln}from"./chunk-EXV7FKEW.js";import{Ca as zt,Fa as Lt,S as Ut}from"./chunk-VPLVNNCX.js";import{A as Xt,C as Qt,E as en,F as tn,G as nn,c as Nt,e as M,h as Rt,i as $t,m as Ht,n as qt,o as Kt,s as Zt,t as Yt,u as jt,v as Wt,z as Jt}from"./chunk-WPKM7IVS.js";import{n as ne}from"./chunk-IXFPINUV.js";import{k as De,l as Dt,m as Ge,q as Gt,u as se,x as ce}from"./chunk-FYTIWII5.js";import{$b as l,$c as R,A as yt,Ba as he,Bc as P,Bd as At,Cc as We,Dc as O,Eb as I,Fc as Tt,Ga as St,Gc as _,Hc as y,Ic as T,Jc as k,Kc as L,Lc as Je,M as bt,Nc as Xe,Oc as Ft,Pc as kt,Qc as Pt,Rc as Vt,Sc as It,Tc as ve,Ub as c,Vb as d,Wb as oe,Xb as A,Yb as S,Yc as Ot,Zb as E,Zc as D,_b as g,_c as me,a as xt,ac as a,ad as Ae,bb as Et,bc as v,cb as ee,cc as f,d as Ye,da as wt,dc as h,ec as F,fc as le,fd as B,gc as _e,gd as W,hc as G,hd as te,ia as Mt,ib as r,ic as b,jc as xe,kd as ye,oc as C,p as vt,pa as p,pd as H,qa as u,qc as je,rc as m,sb as N,vc as Ve,wc as Ie,xa as fe,xc as Oe,yb as re}from"./chunk-VKSHKACQ.js";import{a as j,b as Q}from"./chunk-ZOCHBAGS.js";var $e=class n{constructor(){this.openSubject=new Ye;this.closeSubject=new Ye;this.open$=this.openSubject.asObservable();this.close$=this.closeSubject.asObservable()}open(t){this.openSubject.next(t?{existingSignature:t}:void 0)}close(){this.closeSubject.next()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=wt({token:n,factory:n.\u0275fac,providedIn:"root"})}};var J=()=>[],ki=()=>[0,1];function Pi(n,t){return this.sectionTrackKey(t,n)}var Vi=(n,t)=>t.party_name,Ii=(n,t)=>t.payment_group_name,Oi=(n,t)=>t.german,Ai=(n,t)=>t.class_code,Di=(n,t)=>t._id??t.name,xi=(n,t)=>t.name,Gi=(n,t)=>t.rate,Bi=(n,t)=>t.label;function Ui(n,t){if(n&1&&(f(0,"div",22),_(1),F(2,"br"),_(3),F(4,"br"),_(5),h()),n&2){let e=t;r(),L(" ",e.title," ",e.firstname," ",e.lastname),r(2),k(" ",e.plz," ",e.city),r(2),k(" ",e.strassa," ",e.strno," ")}}function zi(n,t){if(n&1&&(f(0,"div",9)(1,"div",21)(2,"strong"),_(3),h()(),c(4,Ui,6,7,"div",22),h()),n&2){let e,i=t.$implicit,o=t.$index,s=m(2);O("party--right",o===1),r(3),y(i.party_name),r(),d((e=o===1&&s.user_info)?4:-1,e)}}function Li(n,t){if(n&1&&S(0,zi,5,4,"div",20,Vi),n&2){let e=m(2);E(e.headerContractParties())}}function Ni(n,t){if(n&1&&(f(0,"strong"),_(1),h(),F(2,"br"),_(3),F(4,"br"),_(5),F(6,"br"),_(7)),n&2){let e=m(2);r(),y(e.companyDetails.company_name),r(2),k(" ",e.companyDetails.street," ",e.companyDetails.streetNumber),r(2),k(" ",e.companyDetails.postCode," ",e.companyDetails.city),r(2),T(" ",e.companyDetails.country," ")}}function Ri(n,t){if(n&1&&(f(0,"strong"),_(1),h()),n&2){let e=m(3);r(),y(e.employerPartyLabel)}}function $i(n,t){if(n&1&&(_(0),F(1,"br"),_(2),F(3,"br"),_(4)),n&2){let e=t;L(" ",e.title," ",e.firstname," ",e.lastname),r(2),L(" ",e.plz," ",e.city,", ",e.current_country),r(2),k(" ",e.strassa," ",e.strno," ")}}function Hi(n,t){if(n&1&&(f(0,"strong"),_(1),h()),n&2){let e=m(3);r(),y(e.signatoryRoleLabel())}}function qi(n,t){if(n&1&&(f(0,"div",9)(1,"div",21),_(2,"Arbeitgeber"),h(),f(3,"div",22),c(4,Ni,8,6)(5,Ri,2,1,"strong"),h()(),f(6,"div",23)(7,"div",21),_(8,"Arbeitnehmer"),h(),f(9,"div",22),c(10,$i,5,8)(11,Hi,2,1,"strong"),h()()),n&2){let e,i=m();r(4),d(i.companyDetails?4:5),r(6),d((e=i.user_info)?10:11,e)}}function Ki(n,t){if(n&1&&(f(0,"div",9)(1,"div",21),_(2),h()()),n&2){let e=m();r(2),k("",e.prefix,"-",e.version)}}function Zi(n,t){if(n&1&&F(0,"div",14),n&2){let e=m();xe("innerHTML",e.template_sections_html,Et)}}function Yi(n,t){if(n&1&&(f(0,"div",24),F(1,"div",29),f(2,"h2",30),_(3),h()()),n&2){let e=m().$implicit;r(3),y(e.heading)}}function ji(n,t){if(n&1&&(f(0,"div",27),_(1),h()),n&2){let e=m().$implicit;O("info-row-multiline",e.sectionType==="selected_package"||e.content&&e.content.includes(` 2`)),r(),y(e.content)}}function Wi(n,t){if(n&1&&(f(0,"div",27)(1,"span",31),_(2,"iGZ Zulage:"),h(),_(3),h()),n&2){let e=m().$implicit,i=m(4);r(3),L(" ",i.currencySymbol()," ",e.payment_group_allowance," ",e.payment_group_salary_type==null?null:e.payment_group_salary_type.german," ")}}function Ji(n,t){if(n&1&&(f(0,"div",27)(1,"span",31),_(2,"Entgeltgruppe:"),h(),_(3),h(),f(4,"div",27)(5,"span",31),_(6,"Gehalt:"),h(),_(7),h(),c(8,Wi,4,3,"div",27)),n&2){let e=t.$implicit,i=m(4);r(3),T(" ",e.payment_group_name),r(4),L(" ",i.currencySymbol()," ",e.payment_group_salary," ",e.payment_group_salary_type==null?null:e.payment_group_salary_type.german," "),r(),d(e.payment_group_allowance?8:-1)}}
2function Xi(n,t){if(n&1&&S(0,Ji,9,5,null,null,Ii),n&2){let e=m(2);E((e.payment_groups==null?null:e.payment_groups.payment_group_sections)??D(0,J))}}function Qi(n,t){if(n&1&&(f(0,"div",27)(1,"span",31),_(2),h(),_(3),h()),n&2){let e=m().$implicit,i=m();r(2),T("",e.content,":"),r(),T(" ",i.employment_type)}}function eo(n,t){if(n&1&&_(0),n&2){let e=m(3),i=m();k(" ",e.working_hours==null?null:e.working_hours.working_minutes," ",i.Number((e.working_hours==null?null:e.working_hours.working_minutes)||0)>1?"Minuten":"Minute"," ")}}function to(n,t){if(n&1&&(f(0,"div",27),_(1),c(2,eo,1,2),_(3),h()),n&2){let e=m(2),i=m();r(),k(" ",e.working_hours==null?null:e.working_hours.working_hours," ",e.working_hours!=null&&e.working_hours.working_hours&&i.Number((e.working_hours==null?null:e.working_hours.working_hours)||0)>1?"Stunden":"Stunde"," "),r(),d(e.working_hours!=null&&e.working_hours.working_minutes&&i.Number((e.working_hours==null?null:e.working_hours.working_minutes)||0)>0?2:-1),r(),T(" ",e.working_hours==null||e.working_hours.working_hours_type==null?null:e.working_hours.working_hours_type.german," ")}}function no(n,t){if(n&1&&(f(0,"div",27),_(1),B(2,"date"),h()),n&2){let e=m(2);r(),T("K\xFCndigungsdatum ",te(2,1,e.termination_date,"dd.MM.yyyy"))}}function io(n,t){if(n&1&&(f(0,"tr")(1,"td"),_(2),h(),f(3,"td"),_(4),h(),f(5,"td"),_(6),h(),f(7,"td"),_(8),B(9,"convertCurrency"),h()()),n&2){let e=m().$implicit,i=m(4);r(2),y(e.overtime_bonus_name),r(2),y(i.overtimeHoursTypeGerman(e.overtime_bonus_hours_type)),r(2),y(i.overtimeHoursTypeEnglish(e.overtime_bonus_hours_type)==="After Specific Hours"?(e.overtime_bonus_after_hours||0)+" Stunde(n)":(e.overtime_bonus_hours_from||"")+" - "+(e.overtime_bonus_hours_to||"")),r(2),y(e.overtime_bonus_type==="Betrag"?i.currencySymbol()+" "+W(9,4,e.overtime_bonus):e.overtime_bonus+" %")}}function oo(n,t){if(n&1&&c(0,io,10,6,"tr"),n&2){let e=t.$implicit;d(e?0:-1)}}function ao(n,t){if(n&1&&(f(0,"div",28)(1,"table")(2,"thead")(3,"tr")(4,"th"),_(5,"\xDCberstundenbonusname"),h(),f(6,"th"),_(7,"\xDCberstunden-Bonusarten"),h(),f(8,"th"),_(9,"Bonuszeitraum"),h(),f(10,"th"),_(11,"\xDCberstundenbonus"),h()()(),f(12,"tbody"),S(13,oo,1,1,null,null,oe),h()()()),n&2){let e=m(2);r(13),E((e.overtime_bonus==null?null:e.overtime_bonus.overtime_bonus_sections)??D(0,J))}}function ro(n,t){if(n&1&&(f(0,"tr")(1,"td"),_(2),h(),f(3,"td"),_(4),B(5,"convertCurrency"),h()()),n&2){let e=t.$implicit,i=m(4);r(2),k("",e.completion_bonus_duration," ",e.completion_bonus_duration_type==null?null:e.completion_bonus_duration_type.german),r(2),y(e.completion_bonus_type==="Prozent"?e.completion_bonus+" %":i.currencySymbol()+W(5,3,e.completion_bonus))}}function lo(n,t){if(n&1&&(f(0,"div",28)(1,"table")(2,"thead")(3,"tr")(4,"th"),_(5,"Dauer des Sonderzahlungen"),h(),f(6,"th"),_(7,"Sonderzahlungen"),h()()(),f(8,"tbody"),S(9,ro,6,5,"tr",null,oe),h()()()),n&2){let e=m(2);r(9),E((e.duration_completion_bonus==null?null:e.duration_completion_bonus.completion_bonus_sections)??D(0,J))}}function _o(n,t){if(n&1&&(f(0,"span",31),_(1),h()),n&2){let e=t.$implicit;r(),y(e.german)}}function mo(n,t){if(n&1&&(f(0,"div",27),S(1,_o,2,1,"span",31,Oi),h()),n&2){let e=m(2);r(),E((e.week_day_off==null?null:e.week_day_off.week_day_off)??D(0,J))}}function so(n,t){if(n&1&&(f(0,"tr")(1,"td"),_(2),h(),f(3,"td"),_(4),h(),f(5,"td"),_(6,"-"),h(),f(7,"td"),_(8),B(9,"convertCurrency"),h()()),n&2){let e=t.$implicit,i=m().$implicit;r(2),k("",e.week_day_bonus_child_name," (",(i.week_day==null?null:i.week_day.german)||"",")"),r(2),y((e.week_day_distribution==null?null:e.week_day_distribution.english)==="Specific hours"?e.week_day_distribution_time==null?null:e.week_day_distribution_time.german:e.week_day_distribution==null?null:e.week_day_distribution.german),r(4),y(e.week_day_bonus_type==="Prozent"?e.week_day_bonus+" %":W(9,4,e.week_day_bonus))}}function co(n,t){if(n&1&&S(0,so,10,6,"tr",null,oe),n&2){let e=t.$implicit;E(e.week_day_bonus_section_childs??D(0,J))}}function po(n,t){if(n&1&&(f(0,"div",28)(1,"table")(2,"thead")(3,"tr")(4,"th"),_(5,"Wochentagsarbeitsbonus"),h(),f(6,"th"),_(7,"Zeitart"),h(),f(8,"th"),_(9,"Zeitpunkt"),h(),f(10,"th"),_(11,"Arbeitszeitzuschlag"),h()()(),f(12,"tbody"),S(13,co,2,1,null,null,oe),h()()()),n&2){let e=m(2);r(13),E((e.weekday_bonus==null?null:e.weekday_bonus.week_day_bonus_sections)??D(0,J))}}function uo(n,t){if(n&1&&(f(0,"div",27),_(1),h()),n&2){let e=m(2);r(),T("",e.notice_period," Tage")}}function go(n,t){if(n&1&&(f(0,"div",27),_(1),F(2,"br"),_(3),h()),n&2){let e=m(2);r(),L(" Mindestzeitkontingent: ",e.saving_account==null?null:e.saving_account.saving_account_minimum_hours,":",e.
2saving_account==null?null:e.saving_account.saving_account_minimum_minutes,":",(e.saving_account==null?null:e.saving_account.saving_account_minimum_seconds)??"00"),r(2),L(" Maximalzeitkontingent: ",e.saving_account==null?null:e.saving_account.saving_account_maximum_hours,":",e.saving_account==null?null:e.saving_account.saving_account_maximum_minutes,":",(e.saving_account==null?null:e.saving_account.saving_account_maximum_seconds)??"00"," ")}}function Co(n,t){if(n&1&&(f(0,"div",27)(1,"span",31),_(2),h()()),n&2){let e=m(2);r(2),T("Verpflegungsmehraufwand: ",e.travel_bonus==null?null:e.travel_bonus.travel_bonus_name)}}function fo(n,t){if(n&1&&(f(0,"div",27)(1,"span",31),_(2),B(3,"date"),h()()),n&2){let e=m(2);r(2),y(te(3,1,e.joining.joining_date,"dd.MM.yyyy"))}}function ho(n,t){if(n&1&&(f(0,"div",27),_(1),h()),n&2){let e=m(2);r(),k("Von ",e.shift_timing.shift_start," \u2013 Bis ",e.shift_timing.shift_end)}}function xo(n,t){if(n&1&&(f(0,"div",27),_(1),B(2,"convertCurrency"),h()),n&2){let e=m(2),i=m();r(),T(" ",(e.public_holiday==null?null:e.public_holiday.public_holiday_bonus_type)==="Prozent"?(e.public_holiday==null?null:e.public_holiday.public_holiday_bonus)+" %":i.currencySymbol()+W(2,1,e.public_holiday==null?null:e.public_holiday.public_holiday_bonus)," ")}}function vo(n,t){if(n&1&&(f(0,"tr")(1,"td"),_(2),h(),f(3,"td"),_(4),B(5,"convertCurrency"),h(),f(6,"td"),_(7),h()()),n&2){let e=t.$implicit,i=m(4);r(2),k("",e.holiday_bonus_duration," ",e.holiday_bonus_duration_type==null?null:e.holiday_bonus_duration_type.german),r(2),y(e.holiday_bonus_type==="Prozent"?e.holiday_bonus+" %":i.currencySymbol()+W(5,4,e.holiday_bonus)),r(3),y(e.holiday_bonus_rate==null?null:e.holiday_bonus_rate.german)}}function yo(n,t){if(n&1&&(f(0,"div",28)(1,"table")(2,"thead")(3,"tr")(4,"th"),_(5,"Dauer der Besch\xE4ftigung"),h(),f(6,"th"),_(7,"Urlaubsbonus"),h(),f(8,"th"),_(9,"Urlaubsbonussatz"),h()()(),f(10,"tbody"),S(11,vo,8,6,"tr",null,oe),h()()()),n&2){let e=m(2);r(11),E((e.holiday==null?null:e.holiday.holiday_bonus_sections)??D(0,J))}}function bo(n,t){if(n&1&&(f(0,"tr")(1,"td"),_(2),h(),f(3,"td"),_(4),h()()),n&2){let e=t.$implicit,i=m(4);r(2),k("",e.leave_unit," ",i.asLeaveTypeGerman(e)),r(2),y(e.leave_count)}}function wo(n,t){if(n&1&&(f(0,"div",28)(1,"table")(2,"thead")(3,"tr")(4,"th"),_(5,"Betriebszugeh\xF6rigkeit"),h(),f(6,"th"),_(7,"J\xE4hrlicher Urlaubsanspruch"),h()()(),f(8,"tbody"),S(9,bo,5,3,"tr",null,oe),h()()()),n&2){let e=m(2);r(9),E((e.leave==null?null:e.leave.leave_sections)??D(0,J))}}function Mo(n,t){if(n&1&&(f(0,"div",15),c(1,Yi,4,1,"div",24),f(2,"div",25),c(3,ji,2,3,"div",26),c(4,Xi,2,1),c(5,Qi,4,2,"div",27),c(6,to,4,4,"div",27),c(7,no,3,4,"div",27),c(8,ao,15,1,"div",28),c(9,lo,11,1,"div",28),c(10,mo,3,1,"div",27),c(11,po,15,1,"div",28),c(12,uo,2,1,"div",27),c(13,go,4,6,"div",27),c(14,Co,3,1,"div",27),c(15,fo,4,4,"div",27),c(16,ho,2,2,"div",27),c(17,xo,3,3,"div",27),c(18,yo,13,1,"div",28),c(19,wo,11,1,"div",28),h()()),n&2){let e=t.$implicit,i=t.$index,o=m(),s=m();r(),d(e.sectionType==="first"||!e.sectionType||o.is_employment_template?1:-1),r(2),d(e.content?3:-1),r(),d(i===(o.payment_groups==null?null:o.payment_groups.payment_groups_serial)?4:-1),r(),d(i===o.employment_type_serial?5:-1),r(),d(i===(o.working_hours==null?null:o.working_hours.working_hours_serial)?6:-1),r(),d(i===o.termination_date_serial&&o.termination_date?7:-1),r(),d(s.sectionAtIndex(o.overtime_bonus==null?null:o.overtime_bonus.overtime_bonus_serial,i)&&(o.overtime_bonus==null?null:o.overtime_bonus.overtime_is_active)!==!1?8:-1),r(),d((i===(o.duration_completion_bonus==null?null:o.duration_completion_bonus.completion_bonus_serial)||i===(o.duration_completion_bonus==null?null:o.duration_completion_bonus.duration_completion_bonus_serial))&&(o.duration_completion_bonus!=null&&o.duration_completion_bonus.completion_bonus_is_active)?9:-1),r(),d(i===(o.week_day_off==null?null:o.week_day_off.week_day_off_serial)?10:-1),r(),d(i===(o.weekday_bonus==null?null:o.weekday_bonus.week_day_bonus_serial)?11:-1),r(),d(i===o.notice_period_serial?12:-1),r(),d(s.sectionAtIndex(o.saving_account==null?null:o.saving_account.saving_account_serial,i)&&(o.saving_account==null?null:o.saving_account.saving_account_is_active)!==!1?13:-1),r(),d(i===(o.travel_bonus==null?null:o.travel_bonus.travel_bonus_serial)&&(o.travel_bonus!=null&&o.travel_bonus.travel_bonus_is_active)?14:-1),r(),d(i===(o.joining==null?null:o.joining.joining_serial)&&(o.joining!=null&&o.joining.joining_date)?15:-1),r(),d(s.sectionAtIndex(o.shift_timing==null?null:o.shift_timing.shift_timing_serial,i)&&(o.shift_timing==null?null:o.shift_timing.shift_is_active)!==!1&&(o.shift_timing!=null&&o.shift_timing.shift_start)?16:-1),r(),d(i===(o.public_holiday==null?null:o.public_holiday.public_holiday_serial)?17:-1),r(),d(i===(o.holiday==null?null:o.holiday.holiday_bonus_serial)?18:-1),r(),d(i===(o.leave==null?null:o.leave.leave_serial)&&(o.leave!=null&&o.leave.leave_is_active)?19:-1)}}function So(n,t){if(n&1&&_(0),n&2){let e=m().$implicit;T(" \u2013 ",e.class_name," ")}}function Eo(n,t){if(n&1&&(f(0,"li"),_(1),c(2,So,1,1),h()),n&2){let e=t.$implicit;r(),T("Klasse ",e.class_code),r(),d(e.class_name?2:-1)}}function To(n,t){if(n&1&&(f(0,"ul",34),S(1,Eo,3,2,"li",null,Ai),h()),n&2){let e=m();r(),E(e.license_classes)}}function Fo(n,t){n&1&&(f(0,"p",35),_(1,"Keine F\xFChrerscheinklassen ausgew\xE4hlt."),h())}function ko(n,t){if(n&1&&(f(0,"span",38),_(1),h()),n&2){let e=m().$implicit;r(),T(" \u2014 ",e.price)}}function Po(n,t){if(n&1&&(f(0,"p",40),_(1),h()),n&2){let e=m(),i=e.$implicit,o=e.$index,s=e.$count;O("mb-0",o===s-1),r(),y(i.description)}}function Vo(n,t){if(n&1&&(f(0,"p",37)(1,"strong"),_(2),h(),c(3,ko,2,1,"span",38),h(),c(4,Po,2,3,"p",39)),n&2){let e=t.$implicit;r(2),y(e.name),r(),d(e.price?3:-1),r(),d(e.description?4:-1)}}function Io(n,t){if(n&1&&S(0,Vo,5,3,null,null,Di),n&2){let e=m(3);E(e.displayPackages())}}function Oo(n,t){n&1&&(f(0,"p",35),_(1,"Kein Ausbildungspaket ausgew\xE4hlt."),h())}function Ao(n,t){if(n&1&&(f(0,"tr")(1,"td"),_(2),h(),f(3,"td"),_(4),h(),f(5,"td"),_(6),h(),f(7,"td"),_(8),h()()),n&2){let e=t.$implicit;r(2),y(e.name),r(2),y(e.quantity),r(2),y(e.duration),r(2),y(e.billingType)}}function Do(n,t){if(n&1&&(f(0,"div",41)(1,"table",42)(2,"thead")(3,"tr")(4,"th"),_(5,"Leistung"),h(),f(6,"th"),_(7,"Menge"),h(),f(8,"th"),_(9,"Dauer"),h(),f(10,"th"),_(11,"Abrechnungsart"),h()()(),f(12,"tbody"),S(13,Ao,9,4,"tr",null,xi),h()()()),n&2){let e=m(2);r(13),E(e.included_services)}}function Go(n,t){if(n&1&&(f(0,"li"),_(1),h()),n&2){let e=t.$implicit;r(),y(e)}}function Bo(n,t){if(n&1&&(f(0,"ul",34),S(1,Go,2,1,"li",null,A),h()),n&2){let e=m(2);r(),E(e.included_services)}}function Uo(n,t){if(n&1&&c(0,Do,15,0,"div",41)(1,Bo,3,0,"ul",34),n&2){let e=m();d(e.included_services[0]!=null&&e.included_services[0].name?0:1)}}function zo(n,t){n&1&&(f(0,"p",35),_(1,"Keine enthaltenen Leistungen vorhanden."),h())}function Lo(n,t){if(n&1&&(f(0,"tr")(1,"td"),_(2),h(),f(3,"td"),_(4),B(5,"convertCurrency"),h()()),n&2){let e=t.$implicit,i=m(4);r(2),y(e.name),r(2),k("",i.currencySymbol(),"",W(5,3,e.amount))}}function No(n,t){if(n&1&&(f(0,"tr",44)(1,"td")(2,"strong"),_(3,"Summe Pakete (Netto)"),h()(),f(4,"td")(5,"strong"),_(6),B(7,"convertCurrency"),h()()()),n&2){let e=m(2),i=m(2);r(6),k("",i.currencySymbol(),"",W(7,2,e.pricing.packages_total))}}function Ro(n,t){if(n&1&&(f(0,"tr")(1,"td"),_(2),h(),f(3,"td"),_(4),B(5,"convertCurrency"),h()()),n&2){let e=t.$implicit,i=m(4);r(2),k("",e.label," (",e.rate,"%)"),r(2),k("",i.currencySymbol(),"",W(5,4,e.vat_amount))}}function $o(n,t){if(n&1&&(f(0,"div",36)(1,"div",24),F(2,"div",29),f(3,"h2",30),_(4,"Preis\xFCbersicht"),h()(),f(5,"div",25)(6,"div",41)(7,"table",43)(8,"thead")(9,"tr")(10,"th"),_(11,"Beschreibung"),h(),f(12,"th"),_(13,"Betrag"),h()()(),f(14,"tbody"),S(15,Lo,6,5,"tr",null,xi),c(17,No,8,4,"tr",44),S(18,Ro,6,6,"tr",null,Gi),f(20,"tr",45)(21,"td")(22,"strong"),_(23,"Gesamtbetrag"),h()(),f(24,"td")(25,"strong"),_(26),B(27,"convertCurrency"),h()()()()()()()()),n&2){let e=m(),i=m(2);r(15),E(e.pricing.package_lines??D(5,J)),r(2),d(e.pricing.packages_total!=null?17:-1),r(),E(e.pricing.vat_breakdown??D(6,J)),r(8),k("",i.currencySymbol(),"",W(27,3,e.pricing.gross_amount))}}function Ho(n,t){if(n&1&&(f(0,"li"),_(1),h()),n&2){let e=t.$implicit;r(),k("",e.label,": ",e.amount)}}function qo(n,t){if(n&1&&(f(0,"div",15)(1,"div",24),F(2,"div",29),f(3,"h2",30),_(4,"Preis\xFCbersicht"),h()(),f(5,"div",25)(6,"ul",34),S(7,Ho,2,2,"li",null,Bi),h()()()),n&2){let e=m();r(7),E(e.price_overview)}}function Ko(n,t){if(n&1&&(f(0,"li"),_(1),h()),n&2){let e=t.$implicit;r(),y(e)}}function Zo(n,t){if(n&1&&(f(0,"div",15)(1,"div",24),F(2,"div",29),f(3,"h2",30),_(4,"Wichtige Hinweise & Bedingungen"),h()(),f(5,"div",25)(6,"ul",34),S(7,Ko,2,1,"li",null,A),h()()()),n&2){let e=m();r(7),E(e.important_notes)}}function Yo(n,t){if(n&1&&(f(0,"div",32)(1,"div",15)(2,"div",24),F(3,"div",29),f(4,"h2",30),_(5,"Ausgew\xE4hlte F\xFChrerscheinklassen und Ausbildungspaket"),h()(),f(6,"div",25)(7,"h3",33),_(8),h(),c(9,To,3,0,"ul",34)(10,Fo,2,0,"p",35),f(11,"h3",33),_(12),h(),c(13,Io,2,0)(14,Oo,2,0,"p",35),h()(),f(15,"div",15)(16,"div",24),F(17,"div",29),f(18,"h2",30),_(19,"Enthaltene Leistungen"),h()(),f(20,"div",25),c(21,Uo,2,1)(22,zo,2,0,"p",35),h()(),c(23,$o,28,7,"div",36)(24,qo,9,0,"div",15),c(25,Zo,9,0,"div",15),h()),n&2){let e=t,i=m(2);We("--vv-section-counter-start",i.userSectionCount()),r(8),T("",i.vvSectionStart(),".1. Ausgew\xE4hlte F\xFChrerscheinklassen"),r(),d(e.license_classes.length?9:10),r(3),T("",i.vvSectionStart(),".2. Ausgew\xE4hltes Ausbildungspaket"),r(),d(i.displayPackages().length?13:14),r(8),d(e.included_services!=null&&e.included_services.length?21:22),r(2),d(e.pricing?23:e.price_overview!=null&&e.price_overview.length?24:-1),r(2),d(e.important_notes!=null&&e.important_notes.length?25:-1)}}function jo(n,t){if(n&1&&(f(0,"div",49),F(1,"img",54),h()),n&2){m(2);let e=ve(0);r(),xe("src",e.signature_image,ee)}}function Wo(n,t){if(n&1){let e=b();f(0,"div",50)(1,"button",55),je("click",function(){p(e);let o=m(2).$implicit,s=ve(0),x=m(4);return u(x.openPartyESignModal(s,o))}),_(2,"E-Signatur"),h()()}}function Jo(n,t){if(n&1&&(f(0,"div",51),_(1),h()),n&2){let e=m(2).$implicit,i=ve(0),o=m(4);r(),y(o.getPartySignaturePlaceholderText(i,e))}}function Xo(n,t){if(n&1&&(c(0,jo,2,1,"div",49)(1,Wo,3,0,"div",50)(2,Jo,2,1,"div",51),F(3,"div",52),f(4,"div",53)(5,"strong"),_(6),h()()),n&2){let e=m().$implicit,i=ve(0),o=m(4);d(i.signature_image?0:o.canPartyESign(i,e)?1:2),r(6),y(i.party_name)}
2}function Qo(n,t){if(n&1&&(Vt(0),f(1,"div",48),c(2,Xo,7,2),h()),n&2){let e=t.$implicit,i=It(m(4).getSignatureSlotParty(e));r(),O("signature-box--left",e===0)("signature-box--right",e===1),r(),d(i?2:-1)}}function ea(n,t){n&1&&S(0,Qo,3,6,"div",47,A),n&2&&E(D(0,ki))}function ta(n,t){if(n&1&&(f(0,"div",49),F(1,"img",54),h()),n&2){let e=m(5);r(),xe("src",e.employeeSignature(),ee)}}function na(n,t){if(n&1){let e=b();f(0,"div",50)(1,"button",55),je("click",function(){p(e);let o=m(6);return u(o.openESignModal())}),_(2,"E-Signatur"),h()()}}function ia(n,t){if(n&1&&(f(0,"div",51),_(1),h(),c(2,na,3,0,"div",50)),n&2){let e=m(5);r(),y(e.getEmployeeSignaturePlaceholderText()),r(),d(e.eSignatureActive&&e.eSignatureAllowed?2:-1)}}function oa(n,t){if(n&1&&(_(0),F(1,"br"),_(2)),n&2){let e=t,i=m(5);L(" ",e.title," ",e.firstname," ",e.lastname),r(2),T("",i.signatoryRoleLabel()," ")}}function aa(n,t){if(n&1&&(f(0,"strong"),_(1),h()),n&2){let e=m(5);r(),y(e.signatoryRoleLabel())}}function ra(n,t){if(n&1&&(c(0,ta,2,1,"div",49)(1,ia,3,2),F(2,"div",52),f(3,"div",56),c(4,oa,3,4)(5,aa,2,1,"strong"),h()),n&2){let e,i=m(3),o=m();d(o.employeeSignature()?0:1),r(4),d((e=i.user_info)?4:5,e)}}function la(n,t){if(n&1&&(_(0),F(1,"br"),_(2,"vertr.d.d. Gesch\xE4ftsf\xFChrer"),F(3,"br"),f(4,"strong"),_(5),h()),n&2){let e=m(3);T(" ",e.companyDetails.company_name),r(5),k("",e.companyDetails.ceos==null||e.companyDetails.ceos[0]==null?null:e.companyDetails.ceos[0].firstname," ",e.companyDetails.ceos==null||e.companyDetails.ceos[0]==null?null:e.companyDetails.ceos[0].lastname)}}function _a(n,t){if(n&1&&(_(0),F(1,"br"),_(2,"vertr.d.d. Gesch\xE4ftsf\xFChrer ")),n&2){let e=m(4);T(" ",e.employerPartyLabel)}}function ma(n,t){if(n&1&&(f(0,"div",48),c(1,ra,6,2),h(),f(2,"div",48)(3,"div",51),_(4),h(),F(5,"div",52),f(6,"div",56),c(7,la,6,3)(8,_a,3,1),h()()),n&2){let e=m(2),i=m();r(),d(i.shouldShowEmployeeSignature()?1:-1),r(3),y(i.getEmployerSignaturePlaceholderText()),r(3),d(e.companyDetails?7:8)}}function sa(n,t){if(n&1&&(f(0,"div",46),c(1,ea,2,1)(2,ma,9,3),h()),n&2){let e=m(2);O("vertragsvorlage-signatures",e.useCustomParties()),r(),d(e.useCustomParties()?1:2)}}function ca(n,t){if(n&1&&_(0),n&2){let e=m(2);T(" Website: ",e.companyDetails.website_url," ")}}function da(n,t){if(n&1&&_(0),n&2){let e=m(2);T(" E-Mail: ",e.companyDetails.company_email," ")}}function pa(n,t){if(n&1&&(f(0,"div",19)(1,"div",57)(2,"div",58)(3,"div",59),_(4,"Unternehmen"),h(),f(5,"p"),_(6),F(7,"br"),_(8),F(9,"br"),c(10,ca,1,1),h()(),f(11,"div",58)(12,"div",59),_(13,"Recht & Vertretung"),h(),f(14,"p"),_(15),F(16,"br"),_(17),F(18,"br"),_(19),h()(),f(20,"div",58)(21,"div",59),_(22,"Standort & Kontakt"),h(),f(23,"p"),_(24),F(25,"br"),_(26),F(27,"br"),c(28,da,1,1),h()(),f(29,"div",58)(30,"div",59),_(31,"Zahlungsdetails"),h(),f(32,"p"),_(33),F(34,"br"),_(35),F(36,"br"),_(37),h()()()()),n&2){let e=m();r(6),y(e.companyDetails.company_name),r(2),T(" Sitz: ",e.companyDetails.register_location||e.companyDetails.city),r(2),d(e.companyDetails.website_url?10:-1),r(5),k("Gesch\xE4ftsf\xFChrer: ",e.companyDetails.ceos==null||e.companyDetails.ceos[0]==null?null:e.companyDetails.ceos[0].firstname," ",e.companyDetails.ceos==null||e.companyDetails.ceos[0]==null?null:e.companyDetails.ceos[0].lastname),r(2),T(" Handelsregister: ",e.companyDetails.register_number),r(2),T(" UST-ID: ",e.companyDetails.vat_id_number),r(5),k("",e.companyDetails.street," ",e.companyDetails.streetNumber),r(2),k(" ",e.companyDetails.postCode,"/",e.companyDetails.city),r(2),d(e.companyDetails.company_email?28:-1),r(5),T("Bank: ",e.companyDetails.bank_details==null||e.companyDetails.bank_details[0]==null?null:e.companyDetails.bank_details[0].bank_name),r(2),T(" IBAN: ",e.companyDetails.bank_details==null||e.companyDetails.bank_details[0]==null?null:e.companyDetails.bank_details[0].iban),r(2),T(" BIC: ",e.companyDetails.bank_details==null||e.companyDetails.bank_details[0]==null?null:e.companyDetails.bank_details[0].bic)}}function ua(n,t){if(n&1&&(f(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6),F(5,"img",7),h()(),f(6,"div",8),c(7,Li,2,0)(8,qi,12,2),h(),c(9,Ki,3,2,"div",9),f(10,"div",10),F(11,"div",11),f(12,"span",12),_(13),h()()(),f(14,"div",13),c(15,Zi,1,1,"div",14),S(16,Mo,20,18,"div",15,Pi,!0),c(18,Yo,26,9,"div",16),h(),f(19,"div",17),c(20,sa,3,3,"div",18),h(),c(21,pa,38,15,"div",19),h()()),n&2){let e,i=t,o=m();We("padding",o.isStudentOnboarding?"0":"20px"),r(),O("student-page",o.isStudentOnboarding),r(4),xe("src",o.companyLogoUrl(),ee),r(),O("parties--count-1",o.partiesLayoutCount()===1)("parties--count-2",o.partiesLayoutCount()>=2),r(),d(i.use_custom_parties?7:8),r(2),d(i.prefix?9:-1),r(4),y(i.contract_title),r(2),d(i.template_sections_html?15:-1),r(),E(i.sections),r(2),d((e=o.vv())?18:-1,e),r(2),d(!o.useCustomParties()||o.signingContractParties().length>0?20:-1),r(),d(i.companyDetails?21:-1)}}function ga(n,t){n&1&&(f(0,"div",1)(1,"p",60),_(2,"Bitte f\xFCllen Sie die Vorlagedetails aus, um eine Vorschau zu sehen."),h()())}function _t(n){let t=n.signature_required;return t==="no"||t===!1?!1:t==="yes"||t===!0}var He=class n{constructor(){this.Number=Number;this.eSignatureActive=!1;this.eSignatureAllowed=!0;this.embedEsignModal=!0;this.employerSignature=null;this.isStudentOnboarding=!1;this.signatureCompleted=new fe;this.data=he(null);this.esignService=Mt($e);this.localEmployeeSignature=he(null);this.useCustomParties=H(()=>!!this.data()?.use_custom_parties);this.headerContractParties=H(()=>{let t=this.data();return t?.use_custom_parties?(t.contract_parties??[]).filter(e=>e.enabled!==!1&&(e.party_name||"").trim()):[]});this.signingContractParties=H(()=>(this.data()?.contract_parties??[]).filter(e=>e.enabled!==!1&&_t(e)));this.shouldShowEmployeeSignature=H(()=>{let t=this.data();return!t||t.use_custom_parties?!1:t.is_employment_template?!0:t.employee_signatures_required!==!1});this.userSectionCount=H(()=>this.data()?.sections?.length??0);this.vvSectionStart=H(()=>this.userSectionCount()+1);this.vv=H(()=>{let t=this.data()?.vertragsvorlage_details;return t?Q(j({},t),{license_classes:t.license_classes??t.selected_license_classes??[]}):null});this.displayPackages=H(()=>{let t=this.data(),e=t?.vertragsvorlage_details?.packages;return e?.length?e:(t?.selected_packages??[]).filter(i=>String(i?.name??"").trim())});this.currencySymbol=H(()=>{let t=this.data()?.currency?.symbol;return!t||t.toUpperCase()==="EUR"?"\u20AC":t});this.partiesLayoutCount=H(()=>this.data()?.use_custom_parties?this.headerContractParties().length:2);this.companyLogoUrl=H(()=>{let t=this.data();if(t?.use_neoloop_logo)return"assets/NeoloopLogo3.svg";let e=t?.companyDetails?.logo?.trim();return e||"assets/NeoloopLogo3.svg"});this.signatoryRoleLabel=H(()=>this.isStudentOnboarding?"Fahrsch\xFCler":"Mitarbeiter");this.employerPartyLabel="Arbeitgeber";this.employeeSignature=H(()=>this.localEmployeeSignature()||this.data()?.signature_data_url||null)}sectionAtIndex(t,e){return t==null||t===""?!1:e===Number(t)}
2sectionTrackKey(t,e){let i=t?.sectionType??"first",o=t?.heading??"";return`${e}::${i}::${o}`}overtimeHoursTypeEnglish(t){return t==null?"":typeof t=="object"&&t!==null&&"english"in t?String(t.english??""):String(t)}overtimeHoursTypeGerman(t){return t==null?"":typeof t=="object"&&t!==null&&"german"in t?String(t.german??""):String(t)}set contractData(t){this.data.set(t)}openESignModal(){this.esignService.open(this.employeeSignature()??void 0)}openPartyESignModal(t,e){if(!this.canPartyESign(t,e))return;let i=t.signature_image??(e===0?this.employerSignature:this.employeeSignature());this.esignService.open(i??void 0)}onSignatureCompleted(t){this.localEmployeeSignature.set(t),this.signatureCompleted.emit(t)}canPartyESign(t,e){return t.signed?!1:this.eSignatureActive&&this.eSignatureAllowed&&_t(t)}getSignatureSlotParty(t){let e=this.data()?.contract_parties?.[t];return!e?.party_name?.trim()||e.enabled===!1||!_t(e)?null:e}getPartySignaturePlaceholderText(t,e){let i=t?.party_name?.trim();if(i)return`Unterschrift der ${i}`;let o=this.data()?.vertragsvorlage_details?.signature_labels;if(o&&!Array.isArray(o)){let s=(e===0?o.left:o.right)?.trim();if(s&&s!=="Unterschrift der")return s}return"Unterschrift"}getEmployeeSignaturePlaceholderText(){return`Unterschrift des ${this.signatoryRoleLabel()}`}getEmployerSignaturePlaceholderText(){return"Unterschrift des Arbeitgebers"}asLeaveTypeGerman(t){let e=t.leave_type;return e&&typeof e=="object"&&"german"in e?String(e.german??"Jahr"):"Jahr"}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=re({type:n,selectors:[["app-contract-template-view"]],inputs:{contractData:"contractData",eSignatureActive:"eSignatureActive",eSignatureAllowed:"eSignatureAllowed",embedEsignModal:"embedEsignModal",employerSignature:"employerSignature",isStudentOnboarding:"isStudentOnboarding"},outputs:{signatureCompleted:"signatureCompleted"},decls:2,vars:1,consts:[[1,"page-container",3,"padding"],[1,"contract-preview-placeholder"],[1,"page-container"],[1,"contract-page","page"],[1,"contract-header"],[1,"logo-container"],[1,"logo"],["alt","Unternehmenslogo",3,"src"],[1,"parties"],[1,"party"],[1,"divider-container"],[1,"divider-line"],[1,"divider-text"],[1,"content-wrapper"],[1,"section-content","legacy-html",3,"innerHTML"],[1,"section"],[1,"vertragsvorlage-detail-sections",3,"--vv-section-counter-start"],[1,"signature-footer-group"],[1,"signature-section",3,"vertragsvorlage-signatures"],[1,"contract-doc-footer"],[1,"party",3,"party--right"],[1,"party-title"],[1,"party-content"],[1,"party","party--right"],[1,"section-header"],[1,"section-content"],[1,"info-row",3,"info-row-multiline"],[1,"info-row"],[1,"table-container"],[1,"section-icon"],[1,"section-title"],[1,"label"],[1,"vertragsvorlage-detail-sections"],[1,"subsection-title"],[1,"contract-bullet-list"],[1,"info-row","mb-0"],[1,"section","vv-page-break"],[1,"info-row","package-title","mb-1"],[1,"package-inline-price"],[1,"info-row","info-row-multiline","package-description",3,"mb-0"],[1,"info-row","info-row-multiline","package-description"],[1,"vv-table-wrap"],[1,"contract-detail-table"],[1,"contract-detail-table","contract-pricing-table"],[1,"pricing-subtotal-row"],[1,"pricing-total-row"],[1,"signature-section"],[1,"signature-box",3,"signature-box--left","signature-box--right"],[1,"signature-box"],[1,"signature-box-content"],[1,"esign-button-container"],[1,"signature-placeholder"],[1,"signature-line"],[1,"signature-label","signature-label--party"],["alt","Signatur",1,"signature-img",3,"src"],["type","button",1,"btn","btn-sm","button-primary","esign-trigger-button",3,"click"],[1,"signature-label"],[1,"contract-doc-footer__content"],[1,"contract-doc-footer__section"],[1,"contract-doc-footer__title"],[1,"text-secondary","mb-0","small"]],template:function(e,i){if(e&1&&c(0,ua,22,16,"div",0)(1,ga,3,0,"div",1),e&2){let o;d((o=i.data())?0:1,o)}},dependencies:[ce,se,Ci],styles:['@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbABA.woff2) format("woff2");
2unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbABA.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbABA.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbABA.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbABA.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYY.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbABA.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbABA.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbABA.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbABA.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbABA.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYY.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;
2src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbABA.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbABA.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbABA.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbABA.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbABA.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYY.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbABA.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbABA.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbABA.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbABA.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbABA.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/ibmplexsans/v23/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYY.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}[_nghost-%COMP%]{display:block;width:100%;font-family:IBM Plex Sans,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:11pt;line-height:1.4;color:#232323;--a4-width: 230mm;--a4-height: 297mm;--a4-aspect-ratio: 1.414;--drivehero-gradient-start: #b8d9f5;--drivehero-accent: #e7f3ff;--drivehero-gradient-table: linear-gradient(180deg, #e7f3ff 0%, #ffffff 50.7%)}
2[_nghost-%COMP%] [_ngcontent-%COMP%]:not([class*=fa-]):not(.fa):not(.fas):not(.far):not(.fab){font-family:inherit}.page-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-start;width:100%;min-height:0;box-sizing:border-box}.contract-page.page[_ngcontent-%COMP%]{width:min(var(--a4-width),100%);min-height:min(var(--a4-height),auto);max-width:100%;display:flex;flex-direction:column;position:relative;background:#fff;padding:12mm;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 24px #00000014;box-sizing:border-box;overflow-x:hidden}.contract-page.page[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;opacity:.04;pointer-events:none;z-index:0}.contract-page.page[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.contract-page.student-page[_ngcontent-%COMP%]{box-shadow:none;border:none}@media(max-width:900px){.page-container[_ngcontent-%COMP%]{padding-left:12px!important;padding-right:12px!important}.contract-page.page[_ngcontent-%COMP%]{transform:scale(calc((100vw - 48px) / var(--a4-width)));transform-origin:top center;margin-bottom:calc(var(--a4-height) * (1 - ((100vw - 48px) / var(--a4-width))))}}.contract-header[_ngcontent-%COMP%]{margin-bottom:40px}.logo-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-bottom:24px}.logo[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;max-width:200px}.logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:200px;height:150px;max-width:100%;object-fit:contain;display:block;margin:0 auto}.parties[_ngcontent-%COMP%]{display:grid;gap:16px;margin-bottom:20px}.parties.parties--count-2[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;align-items:start}.parties.parties--count-1[_ngcontent-%COMP%]{grid-template-columns:1fr;justify-items:start}.party[_ngcontent-%COMP%]{min-width:0}.party--right[_ngcontent-%COMP%]{text-align:right;justify-self:end;width:100%}.party-title[_ngcontent-%COMP%]{font-size:10pt;font-weight:600;letter-spacing:.02em;margin-bottom:6px}.party-content[_ngcontent-%COMP%]{font-size:8pt;line-height:1.65}.divider-container[_ngcontent-%COMP%]{position:relative;text-align:center;margin-top:16px}.divider-line[_ngcontent-%COMP%]{border:none;border-top:2px solid var(--drivehero-gradient-start);margin:0}.divider-text[_ngcontent-%COMP%]{display:inline-block;position:relative;top:-.65em;padding:0 12px;background:#fff;font-size:12pt;font-weight:700;color:#232323}.content-wrapper[_ngcontent-%COMP%]{counter-reset:section-counter;border:1px solid var(--drivehero-accent);border-radius:10px;position:relative;margin-bottom:20px}.content-wrapper[_ngcontent-%COMP%]:before{content:"";display:block;height:28px;border-radius:10px 10px 0 0;background:var(--drivehero-gradient-table);margin:-1px -1px 0}.content-wrapper[_ngcontent-%COMP%] > .section[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] > .legacy-html[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] > .vertragsvorlage-detail-sections[_ngcontent-%COMP%]{padding-left:20px;padding-right:20px}.content-wrapper[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{padding-bottom:20px}.legacy-html[_ngcontent-%COMP%]{font-size:9pt;padding-top:16px}.section[_ngcontent-%COMP%]{counter-increment:section-counter;margin:20px 0;page-break-inside:avoid}.section-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-bottom:8px}.section-icon[_ngcontent-%COMP%]{flex-shrink:0;width:auto;min-width:1.5em;height:auto;background:none;border-radius:0;font-size:10pt;font-weight:700;color:#232323}.section-icon[_ngcontent-%COMP%]:before{content:counter(section-counter) "."}.section-title[_ngcontent-%COMP%]{font-size:10pt;font-weight:600;margin:0;line-height:1.3}.section-content[_ngcontent-%COMP%]{margin-left:1.5em;font-size:9pt;line-height:1.5}.info-row[_ngcontent-%COMP%]{margin-bottom:6px}.info-row-multiline[_ngcontent-%COMP%]{white-space:pre-line}.info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:600;font-size:9pt;min-width:60px;display:inline-block}.subsection-title[_ngcontent-%COMP%]{font-size:9pt;font-weight:600;margin:12px 0 6px}.table-container[_ngcontent-%COMP%]{margin-top:8px;overflow-x:auto}.table-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .vv-table-wrap[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:8.5pt;border:1px solid var(--drivehero-accent);border-radius:6px;overflow:hidden}.table-container[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%], .vv-table-wrap[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background:var(--drivehero-gradient-table)}.table-container[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table-container[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .vv-table-wrap[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .vv-table-wrap[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:1px solid var(--drivehero-accent);padding:6px 8px;text-align:left;vertical-align:top}.table-container[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%], .vv-table-wrap[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}.vertragsvorlage-detail-sections[_ngcontent-%COMP%] .section.vv-page-break[_ngcontent-%COMP%]{page-break-before:always}.package-title[_ngcontent-%COMP%]{font-weight:600}.package-inline-price[_ngcontent-%COMP%]{font-weight:500}.package-description[_ngcontent-%COMP%]{color:#4b5563}.contract-bullet-list[_ngcontent-%COMP%]{margin:0 0 8px;padding-left:1.25rem}.contract-bullet-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:4px}.contract-detail-table[_ngcontent-%COMP%]{font-size:8.5pt}.contract-pricing-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{text-align:right;white-space:nowrap}.pricing-subtotal-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:#f9fafb;font-weight:600}.pricing-total-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:var(--drivehero-accent);font-weight:700}.col-included[_ngcontent-%COMP%]{text-align:center}.included-check[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#16a34a;color:#fff;font-size:10px;font-weight:700}.vv-intro-text[_ngcontent-%COMP%]{margin-bottom:12px}.signature-footer-group[_ngcontent-%COMP%]{page-break-inside:avoid;padding:0 4px 8px}.signature-section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:80px;margin-top:60px;page-break-inside:avoid}.signature-section.vertragsvorlage-signatures[_ngcontent-%COMP%]{gap:40px;margin-top:48px}.signature-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.signature-box--left[_ngcontent-%COMP%]{justify-self:start}.signature-box--right[_ngcontent-%COMP%]{justify-self:end}.signature-box-content[_ngcontent-%COMP%], .signature-placeholder[_ngcontent-%COMP%]{min-height:60px;display:flex;align-items:center;justify-content:center}.signature-placeholder[_ngcontent-%COMP%]{font-size:9pt;color:#9ca3af;text-align:center}.signature-img[_ngcontent-%COMP%]{max-width:150px;max-height:60px;object-fit:contain}.signature-line[_ngcontent-%COMP%]{border-top:1px solid rgba(35,35,35,1);margin-top:8px;width:100%;align-self:stretch}.signature-label[_ngcontent-%COMP%]{font-size:9pt;color:#4b5563;margin-top:6px;line-height:1.4;text-align:center;width:100%}.signature-label--party[_ngcontent-%COMP%]{text-align:center}.esign-button-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:60px}.contract-doc-footer[_ngcontent-%COMP%]{padding:16px 0 0;border-top:1px solid #d1d5db;page-break-inside:avoid;float:none;width:100%;border-radius:0;margin:50px 0 0;background:transparent;display:block;box-sizing:border-box}
2.contract-doc-footer__content[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;font-size:6pt;line-height:1.5;color:inherit}.contract-doc-footer__content[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .contract-doc-footer__content[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit!important;font-size:inherit;text-align:left;display:inline}.contract-doc-footer__title[_ngcontent-%COMP%]{font-size:8pt;font-weight:700;margin-bottom:4px;color:inherit}.contract-doc-footer__section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:inherit}.contract-preview-placeholder[_ngcontent-%COMP%]{min-height:200px;display:flex;align-items:center;justify-content:center;border:1px dashed #d1d5db;border-radius:8px;padding:24px;background:#f9fafb}@media print{.page-container[_ngcontent-%COMP%]{padding:0!important}.contract-page.page[_ngcontent-%COMP%]{transform:none!important;box-shadow:none;border:none;width:100%;min-height:auto;page-break-after:always}.section[_ngcontent-%COMP%], .signature-section[_ngcontent-%COMP%], .contract-doc-footer[_ngcontent-%COMP%], .signature-footer-group[_ngcontent-%COMP%]{page-break-inside:avoid}.esign-trigger-button[_ngcontent-%COMP%], .esign-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:none!important}@page{size:A4;margin:12mm}}@media(max-width:768px){.contract-doc-footer__content[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.signature-section[_ngcontent-%COMP%]{gap:32px}}@media(max-width:480px){.parties.parties--count-2[_ngcontent-%COMP%], .contract-doc-footer__content[_ngcontent-%COMP%]{grid-template-columns:1fr}.signature-section[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:24px}}'],changeDetection:0})}};var ha=["stepper"],xa=()=>["For Range"],va=()=>({standalone:!0}),Z=(n,t)=>({sectionRef:n,fallback:t}),ya=()=>["Per Day","Per Week"],ba=()=>({english:"Per Week",german:"Pro Woche"}),wa=()=>({english:"Per Month",german:"Pro Monat"}),Ma=()=>({english:"Per Year",german:"Pro Jahr"}),Mi=()=>[],Sa=()=>["give_overtime_bonus","give_this_bonus"],Ea=(n,t,e)=>({child:n,field:"this_bonus_vs_overtime_bonus",tokens:t,banner:e}),Ta=()=>["give_public_holiday_bonus","give_this_bonus"],Fa=(n,t,e)=>({child:n,field:"this_bonus_vs_public_holiday_bonus",tokens:t,banner:e}),ka=()=>["give_overtime_bonus","give_public_holiday_bonus","give_this_bonus"],Pa=(n,t,e)=>({child:n,field:"this_bonus_vs_both_bonus",tokens:t,banner:e}),Y=(n,t)=>t.english,Ke=(n,t)=>t._id,Va=(n,t)=>t.symbol;function Ia(n,t){n&1&&G(0)}function Oa(n,t){if(n&1&&(l(0,"div",18),I(1,Ia,1,0,"ng-container",19),a()),n&2){let e=m(),i=P(4);O("expanded-layout",e.isExpanded),r(),g("ngTemplateOutlet",i)}}function Aa(n,t){n&1&&G(0)}function Da(n,t){if(n&1){let e=b();l(0,"div",16)(1,"div",20)(2,"div",21)(3,"div",22)(4,"h6",23),_(5),a(),l(6,"button",24),C("click",function(){p(e);let o=m();return u(o.close())}),v(7,"img",25),a()(),l(8,"div",26),I(9,Aa,1,0,"ng-container",19),a()()()()}if(n&2){let e=m(),i=P(4);r(5),T(" Vorlage ",e.templateId?"bearbeiten":"erstellen"," "),r(3),O("expanded-layout",e.isExpanded),r(),g("ngTemplateOutlet",i)}}function Ga(n,t){if(n&1){let e=b();l(0,"h6",50),_(1),a(),l(2,"div",51)(3,"h6",52),_(4),a(),l(5,"i",53),C("click",function(){let o=p(e).sectionRef,s=m(3);return u(s.openHeadingPopup(o.section,o.index))}),a()()}if(n&2){let e=t.sectionRef,i=t.fallback,o=m(3);r(),y(o.employmentUi.sectionAndContent),r(3),k(" ",e.index+1,". ",(e.section.value==null?null:e.section.value.heading)||i||o.employmentUi.sectionFallback," "),r(),g("matTooltip",o.employmentHeadingEditTooltip)}}function Ba(n,t){n&1&&(l(0,"mat-icon"),_(1,"check"),a())}function Ua(n,t){if(n&1){let e=b();l(0,"mat-step",54)(1,"div",55)(2,"div",56)(3,"h6",57),v(4,"img",58),_(5," Bitte w\xE4hlen Sie die Art der Vertragsvorlage aus, die Sie erstellen m\xF6chten: "),a(),l(6,"div",59)(7,"div",60)(8,"div",61)(9,"div",62),C("click",function(){p(e);let o=m(3);return u(o.selectTemplateType("normal"))}),l(10,"div",63),v(11,"img",64),l(12,"h6",65),_(13,"Normale Vorlage"),a()()()(),l(14,"div",61)(15,"div",62),C("click",function(){p(e);let o=m(3);return u(o.selectTemplateType("vertragsvorlage"))}),l(16,"div",63),v(17,"img",64),l(18,"h6",65),_(19,"Vertragsvorlage"),a()()()(),l(20,"div",61)(21,"div",62),C("click",function(){p(e);let o=m(3);return u(o.selectTemplateType("arbeitsvertrag"))}),l(22,"div",63),v(23,"img",64),l(24,"h6",65),_(25,"Arbeitsvertragsvorlage"),a()()()()()()()()()}if(n&2){let e,i,o,s=m(3);r(),g("formGroup",s.templateTypeFormGroup),r(8),O("selected",((e=s.templateTypeFormGroup.get("selectedCardType"))==null?null:e.value)==="normal"),r(6),O("selected",((i=s.templateTypeFormGroup.get("selectedCardType"))==null?null:i.value)==="vertragsvorlage"),r(6),O("selected",((o=s.templateTypeFormGroup.get("selectedCardType"))==null?null:o.value)==="arbeitsvertrag")}}function za(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("template_name"))}}function La(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("prefix"))}}function Na(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("template_title"))}}function Ra(n,t){if(n&1&&(l(0,"p",85),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("employee_signatures_required"))}}function $a(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(7);r(),y(e.getFieldErrorText("heading"))}}function Ha(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(7);r(),y(e.getFieldErrorText("content"))}}function qa(n,t){if(n&1){let e=b();l(0,"div",101)(1,"button",102),C("click",function(){p(e);let o=m(3).$index,s=m(4);return u(s.removeTemplateSection(o))}),_(2,"Entfernen"),a()()}}function Ka(n,t){if(n&1&&(l(0,"div",98)(1,"mat-form-field",74)(2,"mat-label"),_(3,"Abschnitt"),a(),v(4,"input",99),c(5,$a,2,1,"mat-error"),a(),l(6,"mat-form-field",74)(7,"mat-label"),_(8,"Inhalt"),a(),v(9,"textarea",100),c(10,Ha,2,1,"mat-error"),a(),c(11,qa,3,0,"div",101),a()),n&2){let e=m(2),i=e.$implicit,o=e.$index,s=m(4);g("formGroupName",o),r(5),d(s.showFieldRequired(i.get("heading"))?5:-1),r(5),d(s.showFieldRequired(i.get("content"))?10:-1),r(),d(s.firstTemplateSectionsCount()>1?11:-1)}}function Za(n,t){if(n&1){let e=b();
2l(0,"div",95)(1,"h6",96),C("click",function(){p(e);let o=m().$index,s=m(4);return u(s.toggleSectionHidden(o))}),l(2,"span"),_(3),a(),v(4,"i",97),a(),c(5,Ka,12,4,"div",98),a()}if(n&2){let e=m(),i=e.$implicit,o=e.$index;r(3),k("",o+1,". ",i.value.heading||"Abschnitt"),r(),g("ngClass",i.value.hidden?"fa-angle-down":"fa-angle-right"),r(),d(i.value.hidden?5:-1)}}function Ya(n,t){if(n&1&&c(0,Za,6,4,"div",95),n&2){let e=t.$implicit;d(e.value.sectionType==="first"?0:-1)}}function ja(n,t){n&1&&(l(0,"button",91),v(1,"i",103),_(2," Zur\xFCck "),a())}function Wa(n,t){n&1&&v(0,"span")}function Ja(n,t){if(n&1){let e=b();l(0,"mat-step",66)(1,"div",67)(2,"form",68)(3,"div",69)(4,"div",70)(5,"div",71)(6,"h6",72),_(7,"Bitte geben Sie den Namen der Vorlage ein:"),a(),l(8,"div",73)(9,"mat-form-field",74)(10,"mat-label"),_(11,"Vorlagenname"),a(),v(12,"input",75),c(13,za,2,1,"mat-error"),a()()()(),l(14,"div",70)(15,"div",71)(16,"h6",72),_(17,"Bitte geben Sie den Vorlagenpr\xE4fix ein:"),a(),l(18,"div",76)(19,"mat-form-field",77)(20,"mat-label"),_(21,"Vorlagenpr\xE4fix"),a(),v(22,"input",78),l(23,"span",79),_(24),a(),c(25,La,2,1,"mat-error"),a(),v(26,"img",80),a()()(),l(27,"div",81)(28,"div",56)(29,"h6",72),_(30,"Bitte geben Sie den Gegenstand der Vorlage ein:"),a(),l(31,"div",73)(32,"mat-form-field",74)(33,"mat-label"),_(34,"Gegenstand"),a(),v(35,"input",82),c(36,Na,2,1,"mat-error"),a()()()(),l(37,"div",81)(38,"div",56)(39,"h6",72),_(40,"E-Signatur der Vertragspartner"),a(),l(41,"div",73)(42,"mat-radio-group",83)(43,"mat-radio-button",84),_(44,"Erforderlich"),a(),l(45,"mat-radio-button",84),_(46,"Nicht erforderlich"),a()(),c(47,Ra,2,1,"p",85),a()()()(),le(48,86),S(49,Ya,1,1,null,null,A),_e(),l(51,"div",87)(52,"button",88),C("click",function(){p(e);let o=m(3);return u(o.addTemplateSection())}),_(53," Abschnitt hinzuf\xFCgen "),v(54,"img",89),a()()(),l(55,"div",90),c(56,ja,3,0,"button",91)(57,Wa,1,0,"span"),l(58,"div",92)(59,"button",93),C("click",function(){p(e);let o=m(3);return u(o.save())}),_(60),v(61,"i",94),a()()()()()}if(n&2){let e=m(3);r(2),g("formGroup",e.templateFormGroup),r(11),d(e.showFieldRequired(e.templateFormGroup.get("template_name"))?13:-1),r(11),T("-",(e.templateFormGroup.value==null?null:e.templateFormGroup.value.version_no)||e.versionNo),r(),d(e.showFieldRequired(e.templateFormGroup.get("prefix"))?25:-1),r(),g("matTooltip",((e.templateFormGroup.value==null?null:e.templateFormGroup.value.version_no)||e.versionNo)+" ist die laufende Versionsnummer der Vertragsvorlage."),r(10),d(e.showFieldRequired(e.templateFormGroup.get("template_title"))?36:-1),r(7),g("value",!0),r(2),g("value",!1),r(2),d(e.showFieldRequired(e.templateFormGroup.get("employee_signatures_required"))?47:-1),r(2),E(e.template_sections.controls),r(3),g("disabled",!e.canAddTemplateSection()),r(4),d(!e.templateId&&!e.inlineMode?56:57),r(4),T(" ",e.templateId?"\xC4nderungen Speichern":"Speichern"," ")}}function Xa(n,t){n&1&&v(0,"i",106)}function Qa(n,t){if(n&1&&(l(0,"mat-radio-button",84),_(1),a()),n&2){let e=t.$implicit;g("value",e.english),r(),y(e.german)}}function er(n,t){n&1&&(l(0,"mat-error",108),_(1,"Die Besch\xE4ftigungsart ist erforderlich."),a())}function tr(n,t){n&1&&v(0,"i",106)}function nr(n,t){n&1&&(l(0,"mat-radio-button",111),_(1,"Tariflicher Arbeitsvertrag"),a())}function ir(n,t){n&1&&(l(0,"mat-error",108),_(1,"Die Art des Arbeitsvertrags ist erforderlich."),a())}function or(n,t){n&1&&v(0,"i",106)}function ar(n,t){if(n&1){let e=b();l(0,"tr")(1,"td"),_(2),a(),l(3,"td"),_(4),a(),l(5,"td"),_(6),B(7,"date"),B(8,"date"),a(),l(9,"td")(10,"button",119),C("click",function(){let o=p(e).$implicit,s=m(5);return u(s.selectTariffForContract(o))}),_(11),a()()()}if(n&2){let e,i,o,s=t.$implicit,x=t.$index,w=m(5);r(2),y((w.tariffCurrentPage-1)*w.tariffPageSize+x+1),r(2),y(s.tariff_class||s.name),r(2),k("",te(7,9,s.valid_from,"dd.MM.yyyy")," - ",te(8,12,s.valid_till,"dd.MM.yyyy")),r(4),O("btn-success",((e=w.templateTypeFormGroup.get("selectedTariffPlan"))==null||e.value==null?null:e.value._id)===s._id)("btn-outline-primary",((i=w.templateTypeFormGroup.get("selectedTariffPlan"))==null||i.value==null?null:i.value._id)!==s._id),r(),T(" ",((o=w.templateTypeFormGroup.get("selectedTariffPlan"))==null||o.value==null?null:o.value._id)===s._id?"Ausgew\xE4hlt":"Ausw\xE4hlen"," ")}}function rr(n,t){n&1&&(l(0,"p",116),_(1,"Kein Tarif gefunden."),a())}function lr(n,t){if(n&1){let e=b();l(0,"li",120)(1,"a",121),C("click",function(){let o=p(e).$implicit,s=m(6);return u(s.onTariffPageChange(o))}),_(2),a()()}if(n&2){let e=t.$implicit,i=m(6);O("active",i.tariffCurrentPage===e),r(2),y(e)}}function _r(n,t){if(n&1){let e=b();l(0,"ul",117)(1,"li",120)(2,"a",121),C("click",function(){p(e);let o=m(5);return u(o.onTariffPageChange(1))}),_(3,"\xAB"),a()(),l(4,"li",120)(5,"a",121),C("click",function(){p(e);let o=m(5);return u(o.onTariffPageChange(o.tariffCurrentPage-1))}),_(6,"\u2039"),a()(),S(7,lr,3,3,"li",122,A),l(9,"li",120)(10,"a",121),C("click",function(){p(e);let o=m(5);return u(o.onTariffPageChange(o.tariffCurrentPage+1))}),_(11,"\u203A"),a()(),l(12,"li",120)(13,"a",121),C("click",function(){p(e);let o=m(5);return u(o.onTariffPageChange(o.tariffTotalPages))}),_(14,"\xBB"),a()()()}if(n&2){let e=m(5);r(),O("disabled",e.tariffCurrentPage===1),r(3),O("disabled",e.tariffCurrentPage===1),r(3),E(e.tariffPagerPages),r(2),O("disabled",e.tariffCurrentPage===e.tariffTotalPages),r(3),O("disabled",e.tariffCurrentPage===e.tariffTotalPages)}}function mr(n,t){n&1&&(l(0,"p",118),_(1,"Bitte w\xE4hlen Sie einen Tarifplan aus."),a())}function sr(n,t){if(n&1&&(l(0,"div",95)(1,"h6",105)(2,"span"),_(3,"Tarifplan ausw\xE4hlen"),a(),c(4,or,1,0,"i",106),a(),l(5,"div",59)(6,"div",114)(7,"table",115)(8,"thead")(9,"tr")(10,"th"),_(11,"#"),a(),l(12,"th"),_(13,"Tarifname"),a(),l(14,"th"),_(15,"G\xFCltigkeitsdauer"),a(),l(16,"th"),_(17,"Aktionen"),a()()(),l(18,"tbody"),S(19,ar,12,15,"tr",null,Ke),a()(),c(21,rr,2,0,"p",116),a(),c(22,_r,15,8,"ul",117),c(23,mr,2,0,"p",118),a()()),n&2){let e,i,o=m(4);r(4),d(o.showValidationIcons&&!(!((e=o.templateTypeFormGroup.get("selectedTariffPlan"))==null||e.value==null)&&e.value._id)?4:-1),r(15),E(o.tariffList),r(2),d(o.tariffList.length?-1:21),r(),d(o.tariffTotalItems>o.tariffPageSize?22:-1),r(),d(o.showValidationIcons&&!(!((i=o.templateTypeFormGroup.get("selectedTariffPlan"))==null||i.value==null)&&i.value._id)?23:-1)}}function cr(n,t){if(n&1){let e=b();l(0,"div",124)(1,"div",125),C("click",function(){let o=p(e).$implicit,s=m(6);return u(s.selectEmployeeContractTemplate(o))}),l(2,"span"),_(3),a(),v(4,"i",126),a()()}if(n&2){let e,i,o=t.$implicit,s=t.$index,x=m(6);r(),O("selected",((e=x.templateTypeFormGroup.get("selectedEmployeeContractTemplate"))==null||e.value==null?null:e.value._id)===o._id),r(2),L("",s+1,". ",o.template_name,"
2(",(o.prefix||o.template_prefix||"")+"-"+(o.version_no||""),")"),r(),g("ngClass",((i=x.templateTypeFormGroup.get("selectedEmployeeContractTemplate"))==null||i.value==null?null:i.value._id)===o._id?"fa-angle-double-right":"fa-angle-right")}}function dr(n,t){if(n&1&&(l(0,"div",60),S(1,cr,5,6,"div",124,Ke),a()),n&2){let e=m(5);r(),E(e.employeeContractTemplates)}}function pr(n,t){n&1&&(l(0,"p",123),_(1,"Keine Arbeitsvertragsvorlagen vorhanden."),a())}function ur(n,t){if(n&1&&(l(0,"div",95)(1,"h6",105)(2,"span"),_(3,"Bitte w\xE4hlen Sie den Arbeitsvertragvorlagen:"),a()(),l(4,"div",59),c(5,dr,3,0,"div",60)(6,pr,2,0,"p",123),a()()),n&2){let e=m(4);r(5),d(e.employeeContractTemplates.length?5:6)}}function gr(n,t){n&1&&(l(0,"button",91),v(1,"i",103),_(2," Zur\xFCck"),a())}function Cr(n,t){n&1&&v(0,"span")}function fr(n,t){if(n&1){let e=b();l(0,"mat-step",104)(1,"div",55)(2,"div",95)(3,"h6",105)(4,"span"),_(5,"Bitte w\xE4hlen Sie die Besch\xE4ftigungsart aus:"),a(),c(6,Xa,1,0,"i",106),a(),l(7,"div",59)(8,"mat-radio-group",107),C("change",function(o){p(e);let s=m(3);return u(s.onEmploymentTypeChange(o.value))}),S(9,Qa,2,2,"mat-radio-button",84,Y),a(),c(11,er,2,0,"mat-error",108),a()(),l(12,"div",95)(13,"h6",105)(14,"span"),_(15,"Bitte w\xE4hlen Sie die Art des Arbeitsvertrags aus:"),a(),c(16,tr,1,0,"i",106),a(),l(17,"div",59)(18,"mat-radio-group",109),C("change",function(){p(e);let o=m(3);return u(o.onTariffContractChange())}),l(19,"mat-radio-button",110),_(20,"Au\xDFertariflicher Arbeitsvertrag"),a(),c(21,nr,2,0,"mat-radio-button",111),a(),c(22,ir,2,0,"mat-error",108),a()(),c(23,sr,24,4,"div",95),c(24,ur,7,1,"div",95),l(25,"div",90),c(26,gr,3,0,"button",91)(27,Cr,1,0,"span"),l(28,"button",112),C("click",function(){p(e);let o=m(3);return u(o.handleNextStep(o.templateTypeFormGroup,1))}),_(29," Weiter "),v(30,"i",113),a()()()()}if(n&2){let e,i,o,s,x,w=m(3);r(),g("formGroup",w.templateTypeFormGroup),r(5),d(!((e=w.templateTypeFormGroup.get("employment_type"))!=null&&e.value)&&((e=w.templateTypeFormGroup.get("employment_type"))!=null&&e.touched||w.showValidationIcons)?6:-1),r(3),E(w.employment_types),r(2),d(!((i=w.templateTypeFormGroup.get("employment_type"))!=null&&i.value)&&((i=w.templateTypeFormGroup.get("employment_type"))!=null&&i.touched||w.showValidationIcons)?11:-1),r(5),d(w.showFieldRequired(w.templateTypeFormGroup.get("tariff_contract"))?16:-1),r(5),d(((o=w.templateTypeFormGroup.get("employment_type"))==null?null:o.value)!=="freiberuflich"?21:-1),r(),d(w.showFieldRequired(w.templateTypeFormGroup.get("tariff_contract"))?22:-1),r(),d(((s=w.templateTypeFormGroup.get("tariff_contract"))==null?null:s.value)==="0"?23:-1),r(),d(w.inlineMode?24:-1),r(2),d(!w.templateId&&!w.inlineMode?26:27),r(2),g("disabled",((x=w.templateTypeFormGroup.get("tariff_contract"))==null?null:x.value)==="0"&&!(!((x=w.templateTypeFormGroup.get("selectedTariffPlan"))==null||x.value==null)&&x.value._id))}}function hr(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("template_name"))}}function xr(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("prefix"))}}function vr(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("template_title"))}}function yr(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(7);r(),y(e.getFieldErrorText("heading"))}}function br(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e.toString()),r(),y(e)}}function wr(n,t){if(n&1){let e=b();l(0,"div",101)(1,"button",102),C("click",function(){p(e);let o=m(3).$index,s=m(4);return u(s.removeTemplateSection(o))}),_(2,"Entfernen"),a()()}}function Mr(n,t){if(n&1){let e=b();l(0,"div",98)(1,"div",133)(2,"div",134)(3,"mat-form-field",74)(4,"mat-label"),_(5,"\xDCberschrift"),a(),v(6,"input",99),c(7,yr,2,1,"mat-error"),a()(),l(8,"div",61)(9,"mat-form-field",74)(10,"mat-label"),_(11,"Abschnittnummer"),a(),l(12,"mat-select",135),C("selectionChange",function(o){p(e);let s=m(2).$index,x=m(4);return u(x.onTemplateSectionSerialChange(s,o.value))}),S(13,br,2,2,"mat-option",84,A),a()()()(),l(15,"mat-form-field",74)(16,"mat-label"),_(17,"Inhalt"),a(),v(18,"textarea",136),a(),c(19,wr,3,0,"div",101),a()}if(n&2){let e=m(2),i=e.$implicit,o=e.$index,s=m(4);g("formGroupName",o),r(7),d(s.showFieldRequired(i.get("heading"))?7:-1),r(5),g("value",(o+1).toString()),r(),E(s.headingPopupSerialOptions),r(6),d(s.firstTemplateSectionsCount()>1?19:-1)}}function Sr(n,t){if(n&1){let e=b();
2l(0,"div",95)(1,"h6",96),C("click",function(){p(e);let o=m().$index,s=m(4);return u(s.toggleSectionHidden(o))}),l(2,"span"),_(3),a(),v(4,"i",97),a(),c(5,Mr,20,4,"div",98),a()}if(n&2){let e=m(),i=e.$implicit,o=e.$index;r(3),k("",o+1,". ",i.value.heading||"Abschnitt"),r(),g("ngClass",i.value.hidden?"fa-angle-down":"fa-angle-right"),r(),d(i.value.hidden?5:-1)}}function Er(n,t){if(n&1&&c(0,Sr,6,4,"div",95),n&2){let e=t.$implicit;d(e.value.sectionType==="first"?0:-1)}}function Tr(n,t){if(n&1){let e=b();l(0,"div",51)(1,"h6",52),_(2),a(),l(3,"i",53),C("click",function(){let o=p(e),s=m(4);return u(s.openHeadingPopup(o.section,o.index))}),a()()}if(n&2){let e=t,i=m(4);r(2),k("",e.index+1,". ",(e.section.value==null?null:e.section.value.heading)||"Abschnitt"),r(),g("matTooltip",i.employmentHeadingEditTooltip)}}function Fr(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(6);r(),y(e.getFieldErrorText("payment_group_name"))}}function kr(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=m().$implicit;g("value",e),r(),y(e.german)}}function Pr(n,t){if(n&1&&c(0,kr,2,2,"mat-option",84),n&2){let e=t.$implicit;d(D(1,xa).includes(e.english)?-1:0)}}function Vr(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(6);r(),y(e.getFieldErrorText("payment_group_salary"))}}function Ir(n,t){if(n&1){let e=b();l(0,"button",102),C("click",function(){p(e);let o=m(2).$index,s=m(4);return u(s.removeAddMore(s.payment_groups,o,"payment_groups"))}),_(1,"Entfernen"),a()}}function Or(n,t){if(n&1){let e=b();l(0,"div",73)(1,"mat-form-field",74)(2,"mat-label"),_(3,"Entgeltgruppe"),a(),v(4,"input",139),c(5,Fr,2,1,"mat-error"),a(),l(6,"div",133)(7,"div",61)(8,"mat-form-field",74)(9,"mat-label"),_(10,"Gehaltsart"),a(),l(11,"mat-select",140),S(12,Pr,1,2,null,null,Y),a()()(),l(14,"div",61)(15,"mat-form-field",74)(16,"mat-label"),_(17,"Gehalt"),a(),l(18,"span",141),_(19,"\u20AC\xA0"),a(),l(20,"input",142),C("change",function(o){p(e);let s=m(5);return u(s.convertCurrency(o))}),a(),c(21,Vr,2,1,"mat-error"),a()(),l(22,"div",61)(23,"mat-form-field",74)(24,"mat-label"),_(25,"iGZ Zulage"),a(),l(26,"span",141),_(27,"\u20AC\xA0"),a(),l(28,"input",143),C("change",function(o){p(e);let s=m(5);return u(s.convertCurrency(o))}),a()()()(),l(29,"div",144),c(30,Ir,2,0,"button",145),l(31,"button",146),C("click",function(){p(e);let o=m().$index,s=m(4);return u(s.subSectionHideShowClick(s.templateFormGroup,"payment_groups",o))}),v(32,"i",147)(33,"i",148),a()()()}if(n&2){let e=m().$index,i=m(4);r(5),d(i.showFieldRequired(i.payment_groups.at(e).get("payment_group_name"))?5:-1),r(6),g("compareWith",i.compareRateObjects),r(),E(i.amount_rate),r(9),d(i.showFieldRequired(i.payment_groups.at(e).get("payment_group_salary"))?21:-1),r(9),d(i.canRemoveFormArrayRow(i.payment_groups)?30:-1)}}function Ar(n,t){if(n&1){let e=b();l(0,"div",130)(1,"h6",137),C("click",function(){let o=p(e).$index,s=m(4);return u(s.subSectionHideShowClick(s.templateFormGroup,"payment_groups",o))}),l(2,"span"),_(3),a(),v(4,"i",138),a(),c(5,Or,34,4,"div",73),a()}if(n&2){let e,i=t.$implicit,o=t.$index;g("formGroupName",o),r(),O("border-radius",!i.value.hidden),r(2),k("",o+1,". ",((e=i.get("payment_group_name"))==null?null:e.value)||"Entgeltgruppe"),r(),g("ngClass",i.value.hidden?"fa-angle-down":"fa-angle-right"),r(),d(i.value.hidden?5:-1)}}function Dr(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e),r(),k("",e.symbol," ",e.name)}}function Gr(n,t){if(n&1){let e=b();l(0,"div",95)(1,"h6",72),_(2,"Bitte geben Sie die W\xE4hrung ein:"),a(),l(3,"div",73)(4,"mat-form-field",74)(5,"mat-label"),_(6,"W\xE4hrung"),a(),l(7,"mat-select",149),Pt("ngModelChange",function(o){p(e);let s=m(4);return kt(s.selectedCurrency,o)||(s.selectedCurrency=o),u(o)}),C("selectionChange",function(o){p(e);let s=m(4);return u(s.onCurrencyChange(o.value))}),S(8,Dr,2,3,"mat-option",84,Va),a()()()()}if(n&2){let e=m(4);r(7),Ft("ngModel",e.selectedCurrency),g("ngModelOptions",D(3,va))("compareWith",e.compareCurrencies),r(),E(e.currencyList)}}function Br(n,t){if(n&1){let e=b();l(0,"button",93),C("click",function(){p(e);let o=m(4);return u(o.saveEmploymentProgress())}),_(1," Fortschritt speichern "),v(2,"i",150),a()}}function Ur(n,t){if(n&1){let e=b();l(0,"mat-step",66)(1,"div",67)(2,"form",68)(3,"div",69)(4,"div",70)(5,"div",71)(6,"h6",72),_(7,"Bitte geben Sie den Namen der Vorlage ein:"),a(),l(8,"div",73)(9,"mat-form-field",74)(10,"mat-label"),_(11,"Vorlagenname"),a(),v(12,"input",75),c(13,hr,2,1,"mat-error"),a()()()(),l(14,"div",70)(15,"div",71)(16,"h6",72),_(17,"Bitte geben Sie den Vorlagenpr\xE4fix ein:"),a(),l(18,"div",76)(19,"mat-form-field",77)(20,"mat-label"),_(21,"Vorlagenpr\xE4fix"),a(),v(22,"input",78),l(23,"span",79),_(24),a(),c(25,xr,2,1,"mat-error"),a(),v(26,"img",80),a()()(),l(27,"div",81)(28,"div",56)(29,"h6",72),_(30,"Bitte geben Sie den Vertragsgegenstand ein:"),a(),l(31,"div",73)(32,"mat-form-field",74)(33,"mat-label"),_(34,"Vertragsgegenstand"),a(),v(35,"input",82),c(36,vr,2,1,"mat-error"),a()()()()(),le(37,86),S(38,Er,1,1,null,null,A),_e(),l(40,"div",87)(41,"button",88),C("click",function(){p(e);let o=m(3);return u(o.addTemplateSection())}),_(42," Abschnitt hinzuf\xFCgen "),v(43,"img",89),a()(),l(44,"div",95)(45,"h6",72),_(46,"Bitte f\xFCllen Sie die Entgeltgruppen aus:"),a(),l(47,"div",73)(48,"div",127)(49,"h6",128),_(50,"Abschnitt und In
2halt:"),a(),c(51,Tr,4,3,"div",51),l(52,"h6",128),_(53,"Entgeltgruppen:"),a(),l(54,"div",129),S(55,Ar,6,7,"div",130,A),a(),l(57,"div",131)(58,"button",88),C("click",function(){p(e);let o=m(3);return u(o.add_payment_group())}),_(59," Entgeltgruppe hinzuf\xFCgen "),v(60,"img",89),a()()()()(),c(61,Gr,10,4,"div",95),a(),l(62,"div",90)(63,"button",91),v(64,"i",103),_(65," Zur\xFCck"),a(),l(66,"div",92),c(67,Br,3,0,"button",132),l(68,"button",93),C("click",function(){p(e);let o=m(3);return u(o.handleNextStep(o.templateFormGroup,2))}),_(69,"Weiter "),v(70,"i",113),a()()()()()}if(n&2){let e,i=m(3);r(2),g("formGroup",i.templateFormGroup),r(11),d(i.showFieldRequired(i.templateFormGroup.get("template_name"))?13:-1),r(11),T("-",(i.templateFormGroup.value==null?null:i.templateFormGroup.value.version_no)||i.versionNo),r(),d(i.showFieldRequired(i.templateFormGroup.get("prefix"))?25:-1),r(),g("matTooltip",((i.templateFormGroup.value==null?null:i.templateFormGroup.value.version_no)||i.versionNo)+" ist die laufende Versionsnummer der Vertragsvorlage."),r(10),d(i.showFieldRequired(i.templateFormGroup.get("template_title"))?36:-1),r(2),E(i.template_sections.controls),r(3),g("disabled",!i.canAddTemplateSection()),r(10),d((e=i.getEmploymentSectionRef("payment_groups"))?51:-1,e),r(4),E(i.payment_groups.controls),r(3),g("disabled",!i.canAddFormArrayRow(i.payment_groups)),r(3),d(i.inlineMode&&i.typeOfTemplate===1?61:-1),r(6),d(i.inlineMode?-1:67)}}function zr(n,t){n&1&&G(0)}function Lr(n,t){if(n&1&&I(0,zr,1,0,"ng-container",164),n&2){m(3);let e=P(17),i=m(2);g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("working_hours")))}}function Nr(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=m().$implicit;g("value",e),r(),y(e.german)}}function Rr(n,t){if(n&1&&c(0,Nr,2,2,"mat-option",84),n&2){let e=t.$implicit;d(D(1,ya).includes(e.english)?0:-1)}}function $r(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Arbeitszeiteinheit ist erforderlich."),a())}function Hr(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Arbeitszeit ist erforderlich."),a())}function qr(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Arbeitsminuten sind erforderlich."),a())}function Kr(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Arbeitssekunden sind erforderlich."),a())}function Zr(n,t){n&1&&G(0)}function Yr(n,t){if(n&1&&(l(0,"div",165),I(1,Zr,1,0,"ng-container",164),a()),n&2){m(4);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("overtime")))}}function jr(n,t){n&1&&(l(0,"mat-error"),_(1,"Der \xDCberstundenbonusname ist erforderlich."),a())}function Wr(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e.english),r(),y(e.german)}}function Jr(n,t){n&1&&(l(0,"mat-error"),_(1,"Die \xDCberstunden-Bonusart ist erforderlich."),a())}function Xr(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Bonus-Stunden sind erforderlich."),a())}function Qr(n,t){if(n&1){let e=b();l(0,"div",61)(1,"mat-form-field",74)(2,"mat-label"),_(3,"Bonus beginnt ab"),a(),l(4,"input",176),C("input",function(){p(e);let o=m(8);return u(o.onZahlungsdetailsChange())}),a(),c(5,Xr,2,0,"mat-error"),a()()}if(n&2){let e=m(2),i=e.$implicit,o=e.$index,s=m(6);r(4),g("min",s.getPreviousValue(o)),r(),d(s.showFieldRequired(i.get("overtime_bonus_after_hours"))?5:-1)}}function el(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Bonus-Beginn-Stunden sind erforderlich."),a())}function tl(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Bonus-End-Stunden sind erforderlich."),a())}function nl(n,t){if(n&1){let e=b();l(0,"div",157)(1,"mat-form-field",74)(2,"mat-label"),_(3,"Bonus beginnt ab"),a(),l(4,"input",177),C("input",function(){p(e);let o=m(8);return u(o.onZahlungsdetailsChange())}),a(),c(5,el,2,0,"mat-error"),a()(),l(6,"div",157)(7,"mat-form-field",74)(8,"mat-label"),_(9,"Bonus gilt bis"),a(),l(10,"input",178),C("input",function(){p(e);let o=m(8);return u(o.onZahlungsdetailsChange())}),a(),c(11,tl,2,0,"mat-error"),a()()}if(n&2){let e=m(2).$implicit,i=m(6);r(5),d(i.showFieldRequired(e.get("overtime_bonus_hours_from"))?5:-1),r(6),d(i.showFieldRequired(e.get("overtime_bonus_hours_to"))?11:-1)}}function il(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Zahlungseinheit ist erforderlich."),a())}function ol(n,t){n&1&&(l(0,"mat-error"),_(1,"Der \xDCberstundenbonus ist erforderlich."),a())}function al(n,t){if(n&1){let e=b();l(0,"div",101)(1,"button",102),C("click",function(){p(e);let o=m(2).$index,s=m(6);return u(s.removeRow(s.overtimeSections,o))}),_(2),a()()}if(n&2){let e=m(8);r(2),y(e.employmentUi.remove)}}function rl(n,t){if(n&1){let e=b();l(0,"div",73)(1,"div",133)(2,"div",61)(3,"mat-form-field",74)(4,"mat-label"),_(5,"\xDCberstundenbonusname"),a(),l(6,"input",169),C("input",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),a(),c(7,jr,2,0,"mat-error"),a()(),l(8,"div",61)(9,"mat-form-field",74)(10,"mat-label"),_(11,"\xDCberstunden-Bonusarten"),a(),l(12,"mat-select",170),C("selectionChange",function(){p(e);let o=m().$implicit,s=m(6);return s.requiredOvertimeField(o),u(s.onZahlungsdetailsChange())}),S(13,Wr,2,2,"mat-option",84,Y),a(),c(15,Jr,2,0,"mat-error"),a()(),c(16,Qr,6,2,"div",61)(17,nl,12,2),l(18,"div",61)(19,"mat-form-field",74)(20,"mat-label"),_(21,"Zahlungseinheit"),a(),l(22,"mat-select",171),C("selectionChange",function(){p(e);let o=m().$implicit,s=m(6);return u(s.getValueByBonusType(o,"overtime_bonus","overtime_bonus_type"))}),l(23,"mat-option",172),_(24,"Prozent"),a(),l(25,"mat-option",173),_(26,"Betrag"),a()(),c(27,il,2,0,"mat-error"),a()(),l(28,"div",61)(29,"mat-form-field",74)(30,"mat-label"),_(31,"\xDCberstundenbonus"),a(),l(32,"input",174),C("input",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),a(),l(33,"span",175),_(34,"Pro Stunde"),a(),c(35,ol,2,0,"mat-error"),a()()(),c(36,al,3,1,"div",101),a()}if(n&2){let e,i=m().$implicit,o=m(6);r(7),d(o.showFieldRequired(i.get("overtime_bonus_name"))?7:-1),r(6),E(o.overtime_bonus_type),r(2),d(o.showFieldRequired(i.get("overtime_bonus_hours_type"))?15:-1),r(),d(((e=i.get("overtime_bonus_hours_type"))==null?null:e.value)==="After Specific Hours"?16:17),r(11),d(o.showFieldRequired(i.get("overtime_bonus_type"))?27:-1),r(8),d(o.showFieldRequired(i.get("overtime_bonus"))?35:-1),r(),d(o.canRemoveFormArrayRow(o.overtimeSections)?36:-1)}}function ll(n,t){if(n&1){let e=b();l(0,"div",130)(1,"h6",137),C("click",function(){let o=p(e).$implicit,s=m(6);return u(s.toggleBonusRowHidden(o))}),_(2),v(3,"i",138),a(),c(4,rl,37,6,"div",73),a()}if(n&2){let e,i,o,s=t.$implicit,x=t.$index;g("formGroupName",x),r(2),Je(" ",x+1,". ",((e=s.get("overtime_bonus_name"))==null?null:e.value)||"\xDCberstundenbonus"," ",(e=s.get("overtime_bonus"))==null?null:e.value," ",((e=s.get("overtime_bonus_type"))==null?null:e.value)==="Betrag"?"\u20AC":"%"," "),r(),g("ngClass",(i=s.get("hidden"))!=null&&i.value?"fa-angle-down":"fa-angle-right"),r(),d((o=s.get("hidden"))!=null&&o.value?4:-1)}}function _l(n,t){if(n&1){let e=b();c(0,Yr,2,5,"div",165),l(1,"h6",166),_(2),a(),l(3,"div",167),S(4,ll,5,7,"div",130,A),l(6,"div",168)(7,"button",88),C("click",function(){p(e);let o=m(5);return u(o.addOvertimeRow())}),_(8," \xDCberstundenbonus hinzuf\xFCgen "),v(9,"img",89),a()()()}if(n&2){let e,i=m(5);d((e=i.getEmploymentSectionRef("overtime"))?0:-1,e),r(2),y(i.getEmploymentDetailsLabel("overt
2ime")),r(2),E(i.overtimeSections.controls),r(3),g("disabled",!i.canAddOvertimeRow())}}function ml(n,t){if(n&1){let e=b();l(0,"div",59),c(1,Lr,1,5,"ng-container"),l(2,"h6",154),_(3),a(),l(4,"div",60)(5,"div",155)(6,"mat-form-field",74)(7,"mat-label"),_(8,"Arbeitszeiteinheit"),a(),l(9,"mat-select",156),C("selectionChange",function(){p(e);let o=m(4);return u(o.onWorkingHoursInput())}),S(10,Rr,1,2,null,null,Y),a(),c(12,$r,2,0,"mat-error"),a()(),l(13,"div",157)(14,"mat-form-field",74)(15,"mat-label"),_(16,"Arbeitszeit"),a(),l(17,"input",158),C("input",function(){p(e);let o=m(4);return u(o.onWorkingHoursInput())}),a(),c(18,Hr,2,0,"mat-error"),a()(),l(19,"div",157)(20,"mat-form-field",74)(21,"mat-label"),_(22,"Arbeitsminuten"),a(),l(23,"input",159),C("input",function(){p(e);let o=m(4);return u(o.onWorkingHoursInput())}),a(),c(24,qr,2,0,"mat-error"),a()(),l(25,"div",157)(26,"mat-form-field",74)(27,"mat-label"),_(28,"Arbeitssekunden"),a(),l(29,"input",160),C("input",function(){p(e);let o=m(4);return u(o.onWorkingHoursInput())}),a(),c(30,Kr,2,0,"mat-error"),a()()(),l(31,"div",161)(32,"p",162),_(33,"\xDCberstundenbonus erlaubt?"),a(),l(34,"mat-slide-toggle",163),C("change",function(){p(e);let o=m(4);return u(o.selectedType(o.templateSecondFormGroup,"overtime_is_active","overtime","\xDCberstundenbonus"))}),_(35),a(),c(36,_l,10,3),a()()}if(n&2){let e,i,o,s=m(4);r(),d((e=s.getEmploymentSectionRef("working_hours"))?1:-1,e),r(2),y(s.getEmploymentDetailsLabel("working_hours")),r(6),g("compareWith",s.compareRateObjects),r(),E(s.amount_rate),r(2),d(s.showFieldRequired(s.templateSecondFormGroup.get("working_hours_type"))?12:-1),r(6),d(s.showFieldRequired(s.templateSecondFormGroup.get("working_hours"))?18:-1),r(6),d(s.showFieldRequired(s.templateSecondFormGroup.get("working_minutes"))?24:-1),r(6),d(s.showFieldRequired(s.templateSecondFormGroup.get("working_seconds"))?30:-1),r(5),T(" ",s.yesNoLabel((i=s.templateSecondFormGroup.get("overtime_is_active"))==null?null:i.value)," "),r(),d((o=s.templateSecondFormGroup.get("overtime_is_active"))!=null&&o.value?36:-1)}}function sl(n,t){n&1&&G(0)}function cl(n,t){if(n&1&&(l(0,"div",165),I(1,sl,1,0,"ng-container",164),a()),n&2){m(4);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("saving_account")))}}function dl(n,t){if(n&1){let e=b();c(0,cl,2,5,"div",165),l(1,"h6",166),_(2),a(),l(3,"div",180)(4,"div",181)(5,"span",182),_(6,"Mindestzeitkontingent"),a(),l(7,"div",183)(8,"input",184,4),C("input",function(o){p(e);let s=P(13),x=m(5);return u(x.onSavingAccountTimeInput(o,"saving_account_minimum_hours",s,99))})("keydown",function(o){p(e);let s=m(5);return u(s.onTimeSegmentKeydown(o))})("blur",function(o){p(e);let s=m(5);return u(s.onSavingAccountTimeBlur(o,"saving_account_minimum_hours",99))})("focus",function(o){return o.target.select()}),a(),l(10,"span",185),_(11,":"),a(),l(12,"input",186,5),C("input",function(o){p(e);let s=P(17),x=m(5);return u(x.onSavingAccountTimeInput(o,"saving_account_minimum_minutes",s,59))})("keydown",function(o){p(e);let s=P(9),x=m(5);return u(x.onTimeSegmentKeydown(o,s))})("blur",function(o){p(e);let s=m(5);return u(s.onSavingAccountTimeBlur(o,"saving_account_minimum_minutes",59))})("focus",function(o){return o.target.select()}),a(),l(14,"span",185),_(15,":"),a(),l(16,"input",187,6),C("input",function(o){p(e);let s=m(5);return u(s.onSavingAccountTimeInput(o,"saving_account_minimum_seconds",null,59))})("keydown",function(o){p(e);let s=P(13),x=m(5);return u(x.onTimeSegmentKeydown(o,s))})("blur",function(o){p(e);let s=m(5);return u(s.onSavingAccountTimeBlur(o,"saving_account_minimum_seconds",59))})("focus",function(o){return o.target.select()}),a()()(),l(18,"div",181)(19,"span",182),_(20,"Maximalzeitkontingent"),a(),l(21,"div",188)(22,"input",189,7),C("input",function(o){p(e);let s=P(27),x=m(5);return u(x.onSavingAccountTimeInput(o,"saving_account_maximum_hours",s,99))})("keydown",function(o){p(e);let s=m(5);return u(s.onTimeSegmentKeydown(o))})("blur",function(o){p(e);let s=m(5);return u(s.onSavingAccountTimeBlur(o,"saving_account_maximum_hours",99))})("focus",function(o){return o.target.select()}),a(),l(24,"span",185),_(25,":"),a(),l(26,"input",190,8),C("input",function(o){p(e);let s=P(31),x=m(5);return u(x.onSavingAccountTimeInput(o,"saving_account_maximum_minutes",s,59))})("keydown",function(o){p(e);let s=P(23),x=m(5);return u(x.onTimeSegmentKeydown(o,s))})("blur",function(o){p(e);let s=m(5);return u(s.onSavingAccountTimeBlur(o,"saving_account_maximum_minutes",59))})("focus",function(o){return o.target.select()}),a(),l(28,"span",185),_(29,":"),a(),l(30,"input",191,9),C("input",function(o){p(e);let s=m(5);return u(s.onSavingAccountTimeInput(o,"saving_account_maximum_seconds",null,59))})("keydown",function(o){p(e);let s=P(27),x=m(5);return u(x.onTimeSegmentKeydown(o,s))})("blur",function(o){p(e);let s=m(5);return u(s.onSavingAccountTimeBlur(o,"saving_account_maximum_seconds",59))})("focus",function(o){return o.target.select()}),a()()()()}if(n&2){let e,i=m(5);d((e=i.getEmploymentSectionRef("saving_account"))?0:-1,e),r(2),y(i.getEmploymentDetailsLabel("saving_account"))}}function pl(n,t){if(n&1){let e=b();l(0,"div",59)(1,"p",162),_(2,"M\xF6chten Sie die Funktion Arbeitszeitkonto nutzen?"),a(),l(3,"mat-slide-toggle",179),C("change",function(){p(e);let o=m(4);return u(o.selectedType(o.templateSecondFormGroup,"saving_account_is_active","saving_account","das Arbeitszeitkonto"))}),_(4),a(),c(5,dl,32,2),a()}if(n&2){let e,i,o=m(4);r(4),T(" ",o.yesNoLabel((e=o.templateSecondFormGroup.get("saving_account_is_active"))==null?null:e.value)," "),r(),d((i=o.templateSecondFormGroup.get("saving_account_is_active"))!=null&&i.value?5:-1)}}function ul(n,t){n&1&&G(0)}function gl(n,t){if(n&1&&(l(0,"div",165),I(1,ul,1,0,"ng-container",164),a()),n&2){m(4);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("shift_timing")))}}function Cl(n,t){if(n&1){let e=b();c(0,gl,2,5,"div",165),l(1,"h6",166),_(2),a(),l(3,"p",193),v(4,"i",194),_(5," Bitte geben Sie die Regelarbeitszeit ein (Format: HH:MM) "),a(),l(6,"div",195)(7,"mat-form-field",196)(8,"mat-label"),_(9,"Von Uhrzeit"),a(),v(10,"input",197)(11,"ngx-material-timepicker-toggle",198),l(12,"ngx-material-timepicker",199,10),C("timeSet",function(){p(e);let o=m(5);return u(o.calculateWorkingHours())}),a()(),l(14,"mat-form-field",196)(15,"mat-label"),_(16,"Bis Uhrzeit"),a(),v(17,"input",200)(18,"ngx-material-timepicker-toggle",198),l(19,"ngx-material-timepicker",199,11),C("timeSet",function(){p(e);let o=m(5);return u(o.calculateWorkingHours())}),a()()()}if(n&2){let e,i=P(13),o=P(20),s=m(5);d((e=s.getEmploymentSectionRef("shift_timing"))?0:-1,e),r(2),y(s.getEmploymentDetailsLabel("shift_timing")),r(8),g("ngxTimepicker",i),r(),g("for",i),r(6),g("ngxTimepicker",o),r(),g("for",o)}}function fl(n,t){if(n&1){let e=b();l(0,"div",59)(1,"p",162),_(2,"Soll die Regelarbeitszeit im Arbeitsvertrag angezeigt werden?"),a(),l(3,"mat-slide-toggle",192),C("change",function(){p(e);let o=m(4);return u(o.selectedType(o.templateSecondFormGroup,"shift_is_active","shift_timing","die Regelarbeitszeit"))}),_(4),a(),c(5,Cl,21,6),a()}if(n&2){let e,i,o=m(4);r(4),T(" ",o.yesNoLabel((e=o.templateSecondFormGroup.get("shift_is_active"))==null?null:e.value)," "),r(),d((i=o.templateSecondFormGroup.get("shift_is_active"))!=null&&i.value?5:-1)}}function hl(n,t){n&1&&G(0)}function xl(n,t){if(n&1&&I(0,hl,1,0,"ng-container",164),n&2){m(3);let e=P(17),i=m(2);g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("joining")))}}function vl(n,t){n&1&&(l(0,"mat-error"),_(1,"Beitrittsdatum ist erforderlich"),a())}function yl(n,t){if(n&1){let e=b();l(0,"div",59),c(1,xl,1,5,"ng-container"),l(2,"h6",154),_(3),a(),l(4,"mat-form-field",201)(5,"mat-label"),_(6,"Beitrittsdatum"),a(),l(7,"input",202),C("click",function(){p(e);let o=P(10);return u(o.open())})("dateChange",function(){p(e);let o=m(4);return u(o.onJoiningChange())}),a(),v(8,"mat-datepicker-toggle",198)(9,"mat-datepicker",null,12),c(11,vl,2,0,"mat-error"),a()()}if(n&2){let e,i=P(10),o=m(4);r(),d((e=o.getEmploymentSectionRef("joining"))?1:-1,e),r(2),y(o.getEmploymentDetailsLabel("joining")),r(4),g("matDatepicker",i),r(),g("for",i),r(3),d(o.showFieldRequired(o.templateSecondFormGroup.get("joining_date"))?11:-1)}}function bl(n,t){n&1&&G(0)}function wl(n,t){if(n&1&&(l(0,"div",165),I(1,bl,1,0,"ng-container",164),a()),n&2){m(4);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("public_holiday")))}}function Ml(n,t){if(n&1){let e=b();c(0,wl,2,5,"div",165),l(1,"h6",166),_(2),a(),l(3,"div",60)(4,"div",61)(5,"mat-form-field",74)(6,"mat-label"),_(7,"Berechnungsmethode"),a(),l(8,"mat-select",204),C("selectionChange",function(){p(e);let o=m(5);return u(o.onZahlungsdetailsChange())}),l(9,"mat-option",205),_(10,"Pro Stunde"),a(),l(11,"mat-option",206),_(12,"Pro Tag"),a()()()(),l(13,"div",61)(14,"mat-form-field",74)(15,"mat-label"),_(16,"Zahlungseinheit"),a(),l(17,"mat-select",207),C("selectionChange",function(){p(e);let o=m(5);return u(o.onZahlungsdetailsChange())}),l(18,"mat-option",172),_(19,"Prozent"),a(),l(20,"mat-option",173),_(21,"Betrag"),a()()()(),l(22,"div",61)(23,"mat-form-field",74)(24,"mat-label"),_(25,"Feiertagsbonus"),a(),l(26,"input",208),C("input",function(){p(e);let o=m(5);return u(o.onZahlungsdetailsChange())}),a()()()()}if(n&2){let e,i=m(5);d((e=i.getEmploymentSectionRef("public_holiday"))?0:-1,e),r(2),y(i.getEmploymentDetailsLabel("public_holiday"))}}function Sl(n,t){if(n&1){let e=b();l(0,"div",59)(1,"p",162),_(2,"Ist ein Feiertagsbonus erlaubt?"),a(),l(3,"mat-slide-toggle",203),C("change",function(){p(e);let o=m(4);return u(o.selectedType(o.templateSecondFormGroup,"public_holiday_is_active","public_holiday","den Feiertagsbonus"))}),_(4),a(),c(5,Ml,27,2),a()}if(n&2){let e,i,o=m(4);r(4),T(" ",o.yesNoLabel((e=o.templateSecondFormGroup.get("public_holiday_is_active"))==null?null:e.value)," "),r(),d((i=o.templateSecondFormGroup.get("public_holiday_is_active"))!=null&&i.value?5:-1)}}function El(n,t){n&1&&G(0)}function Tl(n,t){if(n&1&&(l(0,"div",165),I(1,El,1,0,"ng-container",164),a()),n&2){m(4);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("holiday")))}}function Fl(n,t){n&1&&v(0,"i",212)}function kl(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e),r(),T("",e.german,"e")}}function Pl(n,t){n&1&&(l(0,"mat-error"),_(1,"Feld ist erforderlich."),a())}function Vl(n,t){n&1&&(l(0,"mat-error"),_(1,"Feld ist erforderlich."),a())}function Il(n,t){if(n&1){let e=b();l(0,"div",101)(1,"button",102),C("click",function(){p(e);let o=m(2).$index,s=m(6);return u(s.removeRow(s.holidaySections,o))}),_(2),a()()}if(n&2){let e=m(8);r(2),y(e.employmentUi.remove)}}function Ol(n,t){if(n&1){let e=b();l(0,"div",73)(1,"div",133)(2,"div",61)(3,"mat-form-field",74)(4,"mat-label"),_(5,"Mindest Betriebszugeh\xF6rigkeit"),a(),l(6,"mat-select",213),C("selectionChange",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),S(7,kl,2,2,"mat-option",84,Y),a()()(),l(9,"div",61)(10,"mat-form-field",74)(11,"mat-label"),_(12,"Dauer der Besch\xE4ftigung"),a(),l(13,"input",214),C("input",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),a(),c(14,Pl,2,0,"mat-error"),a()(),l(15,"div",61)(16,"mat-form-field",74)(17,"mat-label"),_(18,"Zahlungseinheit"),a(),l(19,"mat-select",215),C("selectionChange",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),l(20,"mat-option",172),_(21,"Prozent"),a(),l(22,"mat-option",173),_(23,"Betrag"),a()()()(),l(24,"div",61)(25,"mat-form-field",74)(26,"mat-label"),_(27,"Urlaubsbonus"),a(),l(28,"input",216),C("input",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),a(),c(29,Vl,2,0,"mat-error"),a()(),l(30,"div",61)(31,"mat-form-field",74)(32,"mat-label"),_(33,"Urlaubsbonussatz"),a(),l(34,"mat-select",217),C("selectionChange",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),l(35,"mat-option",84),_(36,"Pro Woche"),a(),l(37,"mat-option",84),_(38,"Pro Monat"),a(),l(39,"mat-option",84),_(40,"Pro Jahr"),a()()()()(),c(41,Il,3,1,"div",101),a()}if(n&2){let e=m().$implicit,i=m(6);r(7),E(i.completion_rate),r(7),d(i.showFieldRequired(e.get("holiday_bonus_duration"))?14:-1),r(15),d(i.showFieldRequired(e.get("holiday_bonus"))?29:-1),r(5),g("compareWith",i.compareRateObjects),r(),g("value",D(7,ba)),r(2),g("value",D(8,wa)),r(2),g("value",D(9,Ma)),r(2),d(i.canRemoveFormArrayRow(i.holidaySections)?41:-1)}}function Al(n,t){if(n&1){let e=b();l(0,"div",130)(1,"h6",137),C("click",function(){let o=p(e).$implicit,s=m(6);return u(s.toggleBonusRowHidden(o))}),_(2),c(3,Fl,1,0,"i",212),v(4,"i",138),a(),c(5,Ol,42,10,"div",73),a()}if(n&2){let e,i,o,s=t.$implicit,x=t.$index;
2g("formGroupName",x),r(2),Xe(" ",x+1,". ",(e=s.get("holiday_bonus_duration"))==null?null:e.value," ",(e=s.get("holiday_bonus_duration_type"))==null||e.value==null?null:e.value.german,"",((e=s.get("holiday_bonus_duration"))==null?null:e.value)>1?"e":""," ",(e=s.get("holiday_bonus"))==null?null:e.value," ",((e=s.get("holiday_bonus_type"))==null?null:e.value)==="Betrag"?"\u20AC":"Prozent"," "),r(),d(s.invalid&&s.touched?3:-1),r(),g("ngClass",(i=s.get("hidden"))!=null&&i.value?"fa-angle-down":"fa-angle-right"),r(),d((o=s.get("hidden"))!=null&&o.value?5:-1)}}function Dl(n,t){if(n&1){let e=b();c(0,Tl,2,5,"div",165),l(1,"h6",166),_(2),a(),l(3,"mat-form-field",74)(4,"mat-label"),_(5,"Name des Urlaubsbonus"),a(),l(6,"input",210),C("input",function(){p(e);let o=m(5);return u(o.onZahlungsdetailsChange())}),a()(),l(7,"div",211),S(8,Al,6,10,"div",130,A),l(10,"div",168)(11,"button",88),C("click",function(){p(e);let o=m(5);return u(o.addHolidayRow())}),_(12," Urlaubsbonus hinzuf\xFCgen "),v(13,"img",89),a()()()}if(n&2){let e,i=m(5);d((e=i.getEmploymentSectionRef("holiday"))?0:-1,e),r(2),y(i.getEmploymentDetailsLabel("holiday")),r(6),E(i.holidaySections.controls),r(3),g("disabled",!i.canAddHolidayRow())}}function Gl(n,t){if(n&1){let e=b();l(0,"div",59)(1,"p",162),_(2,"Ist Urlaubs-Bonus erlaubt?"),a(),l(3,"mat-slide-toggle",209),C("change",function(){p(e);let o=m(4);return u(o.selectedType(o.templateSecondFormGroup,"holiday_is_active","holiday","den Urlaubsbonus"))}),_(4),a(),c(5,Dl,14,3),a()}if(n&2){let e,i,o=m(4);r(4),T(" ",o.yesNoLabel((e=o.templateSecondFormGroup.get("holiday_is_active"))==null?null:e.value)," "),r(),d((i=o.templateSecondFormGroup.get("holiday_is_active"))!=null&&i.value?5:-1)}}function Bl(n,t){n&1&&G(0)}function Ul(n,t){if(n&1&&(l(0,"div",165),I(1,Bl,1,0,"ng-container",164),a()),n&2){m(4);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("travel")))}}function zl(n,t){n&1&&v(0,"i",212)}function Ll(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e),r(),y(e.german)}}function Nl(n,t){n&1&&(l(0,"mat-error"),_(1,"Feld ist erforderlich."),a())}function Rl(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e),r(),y(e.german)}}function $l(n,t){if(n&1){let e=b();l(0,"div",225)(1,"mat-form-field",74)(2,"mat-label"),_(3,"Abwesenheitszeit ab"),a(),l(4,"input",226),C("input",function(){p(e);let o=m(9);return u(o.onZahlungsdetailsChange())}),a()()(),l(5,"div",225)(6,"mat-form-field",74)(7,"mat-label"),_(8,"Abwesenheitszeit f\xFCr"),a(),l(9,"input",227),C("input",function(){p(e);let o=m(9);return u(o.onZahlungsdetailsChange())}),a()()()}}function Hl(n,t){if(n&1){let e=b();l(0,"div",155)(1,"mat-form-field",74)(2,"mat-label"),_(3,"Abwesenheitsstunden"),a(),l(4,"input",228),C("input",function(){p(e);let o=m(9);return u(o.onZahlungsdetailsChange())}),a()()()}}function ql(n,t){if(n&1){let e=b();l(0,"div",155)(1,"mat-form-field",74)(2,"mat-label"),_(3,"Abwesenheitszeit"),a(),l(4,"mat-select",224),C("selectionChange",function(){p(e);let o=m(8);return u(o.onZahlungsdetailsChange())}),S(5,Rl,2,2,"mat-option",84,Y),a()()(),c(7,$l,10,0)(8,Hl,5,0,"div",155)}if(n&2){let e=m(2).$implicit,i=m(6);r(5),E(i.travel_bonus_times),r(2),d(i.isTravelRangeHours(e)?7:8)}}function Kl(n,t){n&1&&(l(0,"mat-error"),_(1,"Feld ist erforderlich."),a())}function Zl(n,t){if(n&1){let e=b();l(0,"div",101)(1,"button",102),C("click",function(){p(e);let o=m(2).$index,s=m(6);return u(s.removeRow(s.travelSections,o))}),_(2),a()()}if(n&2){let e=m(8);r(2),y(e.employmentUi.remove)}}function Yl(n,t){if(n&1){let e=b();l(0,"div",73)(1,"div",133)(2,"div",155)(3,"mat-form-field",74)(4,"mat-label"),_(5,"Verpflegungsmehraufwandtyp"),a(),l(6,"mat-select",221),C("selectionChange",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),S(7,Ll,2,2,"mat-option",84,Y),a(),c(9,Nl,2,0,"mat-error"),a()(),c(10,ql,9,1),l(11,"div",61)(12,"mat-form-field",74)(13,"mat-label"),_(14,"Zahlungseinheit"),a(),l(15,"mat-select",222),C("selectionChange",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}
2),l(16,"mat-option",172),_(17,"Prozent"),a(),l(18,"mat-option",173),_(19,"Betrag"),a()()()(),l(20,"div",61)(21,"mat-form-field",74)(22,"mat-label"),_(23),a(),l(24,"input",223),C("input",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),a(),c(25,Kl,2,0,"mat-error"),a()()(),c(26,Zl,3,1,"div",101),a()}if(n&2){let e,i=m().$implicit,o=m(6);r(7),E(o.travel_bonus_time_types),r(2),d(o.showFieldRequired(i.get("travel_bonus_time_type"))?9:-1),r(),d(o.isTravelArrivalDepartureRow(i)?-1:10),r(13),y(((e=i.get("travel_bonus_type"))==null?null:e.value)==="Betrag"?"Betrag":"Prozent"),r(2),d(o.showFieldRequired(i.get("travel_bonus"))?25:-1),r(),d(o.canRemoveFormArrayRow(o.travelSections)?26:-1)}}function jl(n,t){if(n&1){let e=b();l(0,"div",130)(1,"h6",137),C("click",function(){let o=p(e).$implicit,s=m(6);return u(s.toggleBonusRowHidden(o))}),_(2),c(3,zl,1,0,"i",212),v(4,"i",138),a(),c(5,Yl,27,5,"div",73),a()}if(n&2){let e,i,o,s=t.$implicit,x=t.$index;g("formGroupName",x),r(2),Je(" ",x+1,". ",((e=s.get("travel_bonus_time_type"))==null||e.value==null?null:e.value.german)||"Verpflegungsmehraufwand"," ",(e=s.get("travel_bonus"))==null?null:e.value," ",((e=s.get("travel_bonus_type"))==null?null:e.value)==="Betrag"?"\u20AC":"Prozent"," "),r(),d(s.invalid&&s.touched?3:-1),r(),g("ngClass",(i=s.get("hidden"))!=null&&i.value?"fa-angle-down":"fa-angle-right"),r(),d((o=s.get("hidden"))!=null&&o.value?5:-1)}}function Wl(n,t){if(n&1){let e=b();c(0,Ul,2,5,"div",165),l(1,"h6",166),_(2),a(),l(3,"mat-form-field",74)(4,"mat-label"),_(5,"Name des Verpflegungsmehraufwand"),a(),l(6,"input",219),C("input",function(){p(e);let o=m(5);return u(o.onZahlungsdetailsChange())}),a()(),l(7,"div",220),S(8,jl,6,8,"div",130,A),l(10,"div",168)(11,"button",88),C("click",function(){p(e);let o=m(5);return u(o.addTravelRow())}),_(12," Verpflegungsmehraufwand hinzuf\xFCgen "),v(13,"img",89),a()()()}if(n&2){let e,i=m(5);d((e=i.getEmploymentSectionRef("travel"))?0:-1,e),r(2),y(i.getEmploymentDetailsLabel("travel")),r(6),E(i.travelSections.controls),r(3),g("disabled",!i.canAddTravelRow())}}function Jl(n,t){if(n&1){let e=b();l(0,"div",59)(1,"p",162),_(2,"Ist Verpflegungsmehraufwand erlaubt?"),a(),l(3,"mat-slide-toggle",218),C("change",function(){p(e);let o=m(4);return u(o.selectedType(o.templateSecondFormGroup,"travel_is_active","travel","den Verpflegungsmehraufwand"))}),_(4),a(),c(5,Wl,14,3),a()}if(n&2){let e,i,o=m(4);r(4),T(" ",o.yesNoLabel((e=o.templateSecondFormGroup.get("travel_is_active"))==null?null:e.value)," "),r(),d((i=o.templateSecondFormGroup.get("travel_is_active"))!=null&&i.value?5:-1)}}function Xl(n,t){n&1&&G(0)}function Ql(n,t){if(n&1&&(l(0,"div",165),I(1,Xl,1,0,"ng-container",164),a()),n&2){m(4);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("completion")))}}function e_(n,t){n&1&&v(0,"i",212)}function t_(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e),r(),T("",e.german,"e")}}function n_(n,t){n&1&&(l(0,"mat-error"),_(1,"Feld ist erforderlich."),a())}function i_(n,t){n&1&&(l(0,"mat-error"),_(1,"Feld ist erforderlich."),a())}function o_(n,t){if(n&1){let e=b();l(0,"div",101)(1,"button",102),C("click",function(){p(e);let o=m(2).$index,s=m(6);return u(s.removeRow(s.completionSections,o))}),_(2),a()()}if(n&2){let e=m(8);r(2),y(e.employmentUi.remove)}}function a_(n,t){if(n&1){let e=b();l(0,"div",73)(1,"div",133)(2,"div",61)(3,"mat-form-field",74)(4,"mat-label"),_(5,"Mindest Betriebszugeh\xF6rigkeit"),a(),l(6,"mat-select",232),C("selectionChange",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),S(7,t_,2,2,"mat-option",84,Y),a()()(),l(9,"div",61)(10,"mat-form-field",74)(11,"mat-label"),_(12,"Dauer der Besch\xE4ftigung"),a(),l(13,"input",233),C("input",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),a(),c(14,n_,2,0,"mat-error"),a()(),l(15,"div",61)(16,"mat-form-field",74)(17,"mat-label"),_(18,"Zahlungseinheit"),a(),l(19,"mat-select",234),C("selectionChange",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),l(20,"mat-option",172),_(21,"Prozent"),a(),l(22,"mat-option",173),_(23,"Betrag"),a()()()(),l(24,"div",61)(25,"mat-form-field",74)(26,"mat-label"),_(27,"Sonderzahlungen"),a(),l(28,"input",235),C("input",function(){p(e);let o=m(7);return u(o.onZahlungsdetailsChange())}),a(),c(29,i_,2,0,"mat-error"),a()()(),c(30,o_,3,1,"div",101),a()}if(n&2){let e=m().$implicit,i=m(6);
2r(7),E(i.completion_rate),r(7),d(i.showFieldRequired(e.get("completion_bonus_duration"))?14:-1),r(15),d(i.showFieldRequired(e.get("completion_bonus"))?29:-1),r(),d(i.canRemoveFormArrayRow(i.completionSections)?30:-1)}}function r_(n,t){if(n&1){let e=b();l(0,"div",130)(1,"h6",137),C("click",function(){let o=p(e).$implicit,s=m(6);return u(s.toggleBonusRowHidden(o))}),_(2),c(3,e_,1,0,"i",212),v(4,"i",138),a(),c(5,a_,31,3,"div",73),a()}if(n&2){let e,i,o,s=t.$implicit,x=t.$index;g("formGroupName",x),r(2),Xe(" ",x+1,". ",(e=s.get("completion_bonus_duration"))==null?null:e.value," ",(e=s.get("completion_bonus_duration_type"))==null||e.value==null?null:e.value.german,"",((e=s.get("completion_bonus_duration"))==null?null:e.value)>1?"e":""," ",(e=s.get("completion_bonus"))==null?null:e.value," ",((e=s.get("completion_bonus_type"))==null?null:e.value)==="Betrag"?"\u20AC":"Prozent"," "),r(),d(s.invalid&&s.touched?3:-1),r(),g("ngClass",(i=s.get("hidden"))!=null&&i.value?"fa-angle-down":"fa-angle-right"),r(),d((o=s.get("hidden"))!=null&&o.value?5:-1)}}function l_(n,t){if(n&1){let e=b();c(0,Ql,2,5,"div",165),l(1,"h6",166),_(2),a(),l(3,"mat-form-field",74)(4,"mat-label"),_(5,"Name des Sonderzahlung"),a(),l(6,"input",230),C("input",function(){p(e);let o=m(5);return u(o.onZahlungsdetailsChange())}),a()(),l(7,"div",231),S(8,r_,6,10,"div",130,A),l(10,"div",168)(11,"button",88),C("click",function(){p(e);let o=m(5);return u(o.addCompletionRow())}),_(12," Sonderzahlung hinzuf\xFCgen "),v(13,"img",89),a()()()}if(n&2){let e,i=m(5);d((e=i.getEmploymentSectionRef("completion"))?0:-1,e),r(2),y(i.getEmploymentDetailsLabel("completion")),r(6),E(i.completionSections.controls),r(3),g("disabled",!i.canAddCompletionRow())}}function __(n,t){if(n&1){let e=b();l(0,"div",59)(1,"p",162),_(2,"Ist Jahressonderzahlungen erlaubt?"),a(),l(3,"mat-slide-toggle",229),C("change",function(){p(e);let o=m(4);return u(o.selectedType(o.templateSecondFormGroup,"completion_is_active","completion","die Jahressonderzahlungen"))}),_(4),a(),c(5,l_,14,3),a()}if(n&2){let e,i,o=m(4);r(4),T(" ",o.yesNoLabel((e=o.templateSecondFormGroup.get("completion_is_active"))==null?null:e.value)," "),r(),d((i=o.templateSecondFormGroup.get("completion_is_active"))!=null&&i.value?5:-1)}}function m_(n,t){if(n&1){let e=b();l(0,"button",93),C("click",function(){p(e);let o=m(4);return u(o.saveEmploymentProgress())}),_(1," Fortschritt speichern "),v(2,"i",150),a()}}function s_(n,t){if(n&1){let e=b();l(0,"mat-step",151)(1,"div",152)(2,"div",153)(3,"div",95)(4,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.sectionHideShowClick("working_hours"))}),l(5,"span"),_(6,"Soll Stunden:"),a(),v(7,"i",97),a(),c(8,ml,37,9,"div",59),a(),l(9,"div",95)(10,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.togglePanel("saving_account"))}),l(11,"span"),_(12,"Bitte geben Sie die Details des Arbeitszeitkontos ein:"),a(),v(13,"i",97),a(),c(14,pl,6,2,"div",59),a(),l(15,"div",95)(16,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.togglePanel("shift_timing"))}),l(17,"span"),_(18,"Regelarbeitszeit:"),a(),v(19,"i",97),a(),c(20,fl,6,2,"div",59),a(),l(21,"div",95)(22,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.togglePanel("joining"))}),l(23,"span"),_(24,"Bitte f\xFCllen Sie die Angaben zum Beitrittsdatum des Mitarbeiters aus:"),a(),v(25,"i",97),a(),c(26,yl,12,5,"div",59),a(),l(27,"div",95)(28,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.togglePanel("public_holiday"))}),l(29,"span"),_(30,"Bitte geben Sie die Details des Feiertagsbonus ein:"),a(),v(31,"i",97),a(),c(32,Sl,6,2,"div",59),a(),l(33,"div",95)(34,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.togglePanel("holiday"))}),l(35,"span"),_(36,"Bitte f\xFCllen Sie die Details zum Urlaubsbonus aus:"),a(),v(37,"i",97),a(),c(38,Gl,6,2,"div",59),a(),l(39,"div",95)(40,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.togglePanel("travel"))}),l(41,"span"),_(42,"Bitte f\xFCllen Sie die Details zum Verpflegungsmehraufwand aus:"),a(),v(43,"i",97),a(),c(44,Jl,6,2,"div",59),a(),l(45,"div",95)(46,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.togglePanel("completion"))}),l(47,"span"),_(48,"Bitte f\xFCllen Sie Details zu j\xE4hrlichen Sonderzahlungen aus:"),a(),v(49,"i",97),a(),c(50,__,6,2,"div",59),a()(),l(51,"div",90)(52,"button",91),v(53,"i",103),_(54," Zur\xFCck"),a(),l(55,"div",92),c(56,m_,3,0,"button",132),l(57,"button",93),C("click",function(){p(e);let o=m(3);return u(o.handleNextStep(o.templateSecondFormGroup,3,["week_day_bonus_sections"]))}),_(58,"Weiter "),v(59,"i",113),a()()()()()}if(n&2){let e=m(3);r(2),g("formGroup",e.templateSecondFormGroup),r(5),g("ngClass",e.isPanelVisible("working_hours")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("working_hours")?8:-1),r(5),g("ngClass",e.isPanelVisible("saving_account")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("saving_account")?14:-1),r(5),g("ngClass",e.isPanelVisible("shift_timing")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("shift_timing")?20:-1),r(5),g("ngClass",e.isPanelVisible("joining")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("joining")?26:-1),r(5),g("ngClass",e.isPanelVisible("public_holiday")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("public_holiday")?32:-1),r(5),g("ngClass",e.isPanelVisible("holiday")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("holiday")?38:-1),r(5),g("ngClass",e.isPanelVisible("travel")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("travel")?44:-1),r(5),g("ngClass",e.isPanelVisible("completion")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("completion")?50:-1),r(6),d(e.inlineMode?-1:56)}}function c_(n,t){n&1&&G(0)}function d_(n,t){if(n&1&&(l(0,"div",165),I(1,c_,1,0,"ng-container",164),a()),n&2){m(3);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("week_day")))}}function p_(n,t){if(n&1&&(l(0,"span",243)(1,"span",244),_(2),a(),l(3,"span",245),_(4),a()()),n&2){let e,i=m().$implicit;r(2),y(i.value==null||i.value.week_day==null?null:i.value.week_day.german),r(2),y(((e=i.get("week_day_bonus_section_childs"))==null?null:e.length)||0)}}function u_(n,t){n&1&&v(0,"i",212)}function g_(n,t){if(n&1&&(l(0,"mat-radio-button",84),_(1),a()),n&2){let e=t.$implicit;g("value",e),r(),y(e.german)}}function C_(n,t){n&1&&(l(0,"p",248),_(1,"Die Verteilung ist erforderlich."),a())}function f_(n,t){n&1&&(l(0,"mat-error"),_(1,"Der Name des Wochentagsarbeitsbonus ist erforderlich."),a())}function h_(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e),r(),y(e.german)}}function x_(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Zeitart ist erforderlich."),a())}function v_(n,t){n&1&&(l(0,"mat-error"),_(1,"Der Zeitpunkt ist erforderlich."),a())}function y_(n,t){if(n&1&&(l(0,"mat-form-field",249)(1,"mat-label"),_(2,"Zeitpunkt"),a(),v(3,"input",257),c(4,v_,2,0,"mat-error"),a()),n&2){let e=m(3).$implicit,i=m(6);r(4),d(i.showFieldRequired(e.get("week_day_distribution_time_hours"))?4:-1)}}function b_(n,t){n&1&&(l(0,"mat-error"),_(1,"Der Von-Zeitpunkt ist erforderlich."),a())}function w_(n,t){n&1&&(l(0,"mat-error"),_(1,"Der Bis-Zeitpunkt ist erforderlich."),a())}function M_(n,t){if(n&1&&(l(0,"div",256)(1,"mat-form-field",196)(2,"mat-label"),_(3,"Von Zeitpunkt"),a(),v(4,"input",258),c(5,b_,2,0,"mat-error"),a(),l(6,"mat-form-field",196)(7,"mat-label"),_(8,"Bis Zeitpunkt"),a(),v(9,"input",259),c(10,w_,2,0,"mat-error"),a()()),n&2){let e=m(3).$implicit,i=m(6);r(5),d(i.showFieldRequired(e.get("week_day_distribution_time_from"))?5:-1),r(5),d(i.showFieldRequired(e.get("week_day_distribution_time_to"))?10:-1)}}function S_(n,t){if(n&1&&(l(0,"mat-form-field",249)(1,"mat-label"),_(2,"Zeitart"),a(),l(3,"mat-select",255),S(4,h_,2,2,"mat-option",84,Y),a(),c(6,x_,2,0,"mat-error"),a(),c(7,y_,5,1,"mat-form-field",249),c(8,M_,11,2,"div",256)),n&2){let e,i,o=m(2).$implicit,s=m(6);r(4),E(s.week_day_distribution_times),r(2),d(s.showFieldRequired(o.get("week_day_distribution_time"))?6:-1),r(),d(((e=o.get("week_day_distribution_time"))==null||e.value==null?null:e.value.english)==="After"?7:-1),r(),d(((i=o.get("week_day_distribution_time"))==null||i.value==null?null:i.value.english)==="Range"?8:-1)}}function E_(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e),r(),y(e.german)}}function T_(n,t){n&1&&(l(0,"mat-error"),_(1,"Der Wochentagsbonussatz ist erforderlich."),a())}function F_(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Zahlungseinheit ist erforderlich."),a())}function k_(n,t){n&1&&(l(0,"mat-error"),_(1,"Der Arbeitszeitzuschlag ist erforderlich."),a())}function P_(n,t){if(n&1){let e=b();l(0,"button",102),C("click",function(){p(e);let o=m(2).$index,s=m().$implicit,x=m(5);return u(x.removeAddMore(x.weekDayBonusChildren(s),o,"week_day_bonus_section_childs"))}),_(1,"Entfernen"),a()}}function V_(n,t){if(n&1){let e=b();l(0,"div",73)(1,"p",246),_(2," Bezieht sich der eingetragene Bonus auf den gesamten Tag oder bestimmte Stunden? "),a(),l(3,"mat-radio-group",247),S(4,g_,2,2,"mat-radio-button",84,Y),a(),c(6,C_,2,0,"p",248),l(7,"mat-form-field",249)(8,"mat-label"),_(9,"Name des Wochentagsarbeitsbonus"),a(),v(10,"input",250),c(11,f_,2,0,"mat-error"),a(),c(12,S_,9,3),l(13,"div",133)(14,"div",61)(15,"mat-form-field",74)(16,"mat-label"),_(17,"Wochentagenbonussatz"),a(),l(18,"mat-select",251),S(19,E_,2,2,"mat-option",84,Y),a(),c(21,T_,2,0,"mat-error"),a()(),l(22,"div",61)(23,"mat-form-field",74)(24,"mat-label"),_(25,"Zahlungseinheit"),a(),l(26,"mat-select",252)(27,"mat-option",172),_(28,"Prozent"),a(),l(29,"mat-option",173),_(30,"Betrag"),a()(),c(31,F_,2,0,"mat-error"),a()(),l(32,"div",61)(33,"mat-form-field",74)(34,"mat-label"),_(35,"Arbeitszeitzuschlag"),a(),v(36,"input",253),c(37,k_,2,0,"mat-error"),a()()(),l(38,"div",144),c(39,P_,2,0,"button",145),l(40,"button",254),C("click",function(){p(e);let o=m().$index,s=m().$implicit,x=m(5);return u(x.subSectionHideShowClick(s,"week_day_bonus_section_childs",o))}),v(41,"i",147)(42,"i",148),a()()()}if(n&2){let e,i=m().$implicit,o=m().$implicit,s=m(5);r(3),g("compareWith",s.compareRateObjects),r(),E(s.week_day_distributions),r(2),d(s.showFieldRequired(i.get("week_day_distribution"))?6:-1),r(5),d(s.showFieldRequired(i.get("week_day_bonus_child_name"))?11:-1),r(),d(((e=i.get("week_day_distribution"))==null||e.value==null?null:e.value.english)==="Specific hours"?12:-1),r(6),g("compareWith",s.compareRateObjects),r(),E(s.weekDayBonusRateOptions(i)),r(2),d(s.showFieldRequired(i.get("week_day_bonus_rate"))?21:-1),r(10),d(s.showFieldRequired(i.get("week_day_bonus_type"))?31:-1),r(6),d(s.showFieldRequired(i.get("week_day_bonus"))?37:-1),r(2),d(s.canRemoveFormArrayRow(s.weekDayBonusChildren(o),!0)?39:-1),r(),g("disabled",!i.valid)}}function I_(n,t){if(n&1){let e=b();l(0,"div",130)(1,"h6",137),C("click",function(){let o=p(e).$index,s=m().$implicit,x=m(5);return u(x.subSectionHideShowClick(s,"week_day_bonus_section_childs",o))}),_(2),c(3,u_,1,0,"i",212),v(4,"i",138),a(),c(5,V_,43,10,"div",73),a()}if(n&2){let e=t.$implicit,i=t.$index;g("formGroupName",i),r(2),k(" ",i+1,". ",(e.value==null?null:e.value.week_day_bonus_child_name)||"Arbeitszeitzuschlag"," "),r(),d(e.invalid&&e.touched?3:-1),r(),g("ngClass",e.value.hidden?"fa-angle-down":"fa-angle-right"),r(),d(e.value.hidden?5:-1)}}function O_(n,t){if(n&1&&(l(0,"div",242),v(1,"img",260),l(2,"p",261),_(3),a()()),n&2){let e=m().$implicit;r(3),L(" Es wurden noch keine Arbeitszeitzuschl\xE4ge f\xFCr ",e.value==null||e.value.week_day==null?null:e.value.week_day.german," hinzugef\xFCgt. Sie k\xF6nnen Arbeitszeitzuschl\xE4ge f\xFCr ",e.value==null||e.value.week_day==null?null:e.value.week_day.german," hinzuf\xFCgen, indem Sie auf ",e.value==null||e.value.week_day==null?null:e.value.week_day.german," Arbeitszeitzuschl\xE4ge hinzuf\xFCgen klicken ")}}function A_(n,t){if(n&1){let e=b();l(0,"mat-tab"),I(1,p_,5,2,"ng-template",239),l(2,"div",240)(3,"div",241),S(4,I_,6,6,"div",130,A),a(),c(6,O_,4,3,"div",242),l(7,"div",168)(8,"button",88),C("click",function(){let o=p(e).$index,s=m(5);return u(s.add_week_day_bonus_section_child(o))}),_(9),v(10,"img",89),a()()()()}if(n&2){let e,i=t.$implicit,o=t.$index,s=m(5);r(2),g("formGroupName",o),r(2),E((e=i.get("week_day_bonus_section_childs"))==null?null:e.controls),r(2),d(s.weekDayBonusChildren(i).length?-1:6),r(2),g("disabled",!s.canAddWeekDayBonusChild(o)),r(),T(" Arbeitszeitzuschl\xE4ge f\xFCr ",i.value==null||i.value.week_day==null?null:i.value.week_day.german," hinzuf\xFCgen ")}}function D_(n,t){if(n&1){let e=b();l(0,"div",59),c(1,d_,2,5,"div",165),l(2,"h6",166),_(3),a(),l(4,"div",237)(5,"mat-tab-group",238),C("selectedTabChange",function(o){p(e);let s=m(4);return u(s.selectedDayIndexChange(o))}),S(6,A_,11,4,"mat-tab",null,A),a()()()}if(n&2){let e,i=m(4);r(),d((e=i.getEmploymentSectionRef("week_day"))?1:-1,e),r(2),y(i.getEmploymentDetailsLabel("week_day")),r(2),g("selectedIndex",i.selectedDayIndex),r(),E(i.week_day_bonus_sections.controls)}}function G_(n,t){if(n&1){let e=b();l(0,"button",93),C("click",function(){p(e);let o=m(4);return u(o.saveEmploymentProgress())}),_(1,"Fortschritt speichern "),v(2,"i",94),a()}}function B_(n,t){if(n&1){let e=b();l(0,"mat-step",236)(1,"div",55)(2,"div",95)(3,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.togglePanel("week_day"))}),l(4,"span"),_(5,"Bitte f\xFCllen Sie die Details zum Wochentagsarbeitsbonus aus:"),a(),v(6,"i",97),a(),c(7,D_,8,3,"div",59),a(),l(8,"div",90)(9,"button",91),v(10,"i",103),_(11," Zur\xFCck"),a(),l(12,"div",92),c(13,G_,3,0,"button",132),l(14,"button",93),C("click",function(){p(e);let o=m(3);
2return u(o.goToEmploymentLeaveStepFromZuschlaege())}),_(15,"Weiter "),v(16,"i",113),a()()()()()}if(n&2){let e=m(3);r(),g("formGroup",e.templateSecondFormGroup),r(5),g("ngClass",e.isPanelVisible("week_day")?"fa-angle-down":"fa-angle-right"),r(),d(e.isPanelVisible("week_day")?7:-1),r(6),d(e.inlineMode?-1:13)}}function U_(n,t){if(n&1){let e=b();l(0,"div",279),C("cdkDragStarted",function(){p(e);let o=m().$implicit,s=m().field,x=m(4);return u(x.dragStarted(o,s))}),_(1),a()}if(n&2){let e,i=m().$implicit,o=m().child,s=m(4);r(),T(" ",s.collisionBonusLabel(i,(e=o.get("week_day_bonus_child_name"))==null?null:e.value)," ")}}function z_(n,t){if(n&1&&c(0,U_,2,1,"div",278),n&2){let e,i=t.$implicit,o=m(),s=o.child,x=o.field;d((((e=s.get(x))==null?null:e.value)??D(1,Mi)).includes(i)?-1:0)}}function L_(n,t){n&1&&(l(0,"span",274),_(1,"Keine Boni verf\xFCgbar"),a())}function N_(n,t){if(n&1){let e=b();l(0,"div",277),_(1),l(2,"button",280),C("click",function(){let o=p(e).$implicit,s=m(),x=s.child,w=s.field,V=m(4);return u(V.removeColissionBonus(x,w,o))}),_(3,"\xD7"),a()()}if(n&2){let e,i=t.$implicit,o=m().child,s=m(4);r(),T(" ",s.collisionBonusLabel(i,(e=o.get("week_day_bonus_child_name"))==null?null:e.value)," ")}}function R_(n,t){n&1&&(l(0,"span",274),_(1,"Keine Boni verf\xFCgbar"),a())}function $_(n,t){if(n&1){let e=b();l(0,"div",268)(1,"div",269),_(2),a(),l(3,"div",270)(4,"div",271)(5,"div",272)(6,"div",273),_(7," Alle Zuschl\xE4ge, die mit Zuschl\xE4gen summiert werden k\xF6nnen oder sich ausschlie\xDFen sollen. "),a(),S(8,z_,1,2,null,null,A),c(10,L_,2,0,"span",274),a()(),l(11,"div",271)(12,"div",275),C("cdkDropListDropped",function(o){let s=p(e).child,x=m(4);return u(x.drop(o,s))}),l(13,"div",276),_(14," Kombination von Zuschl\xE4gen. W\xE4hlen Sie einen Zuschlag aus der Liste aller verf\xFCgbaren Zuschl\xE4ge und f\xFCgen Sie ihn hier ein. "),a(),S(1
25,N_,4,1,"div",277,A),c(17,R_,2,0,"span",274),a()()()()}if(n&2){let e,i=t.child,o=t.field,s=t.tokens,x=t.banner,w=m(4);r(2),y(x),r(6),E(s),r(2),d(w.collisionLeftHasAvailable(i,o,s)?-1:10),r(5),E(((e=i.get(o))==null?null:e.value)??D(3,Mi)),r(2),d(w.collisionRightEmpty(i,o)?17:-1)}}function H_(n,t){n&1&&v(0,"i",264)}function q_(n,t){if(n&1&&(l(0,"span",243)(1,"span",244),_(2),a(),l(3,"span",245),_(4),a()()),n&2){let e=m().$implicit,i=m(4);O("tab-day-label--invalid",i.isWeekDaySectionInvalid(e)),r(2),y(e.value==null||e.value.week_day==null?null:e.value.week_day.german),r(),O("day-bonus-count--invalid",i.isWeekDaySectionInvalid(e)),r(),T(" ",i.weekDayBonusChildCount(e)," ")}}function K_(n,t){n&1&&G(0)}function Z_(n,t){if(n&1&&I(0,K_,1,0,"ng-container",164),n&2){let e=m().$implicit;m(3);let i=P(3);g("ngTemplateOutlet",i)("ngTemplateOutletContext",Ae(3,Ea,e,D(2,Sa),"Bitte w\xE4hlen Sie aus, welchen Zuschlag Sie auszahlen m\xF6chten, oder ob Sie eine Kombination von Zuschl\xE4gen auszahlen m\xF6chten, wenn der "+((e.value==null?null:e.value.week_day_bonus_child_name)||"Zuschlag")+" und der \xDCberstundenbonus gleichzeitig in der Gehaltsabrechnung des Mitarbeiters enthalten sein sollen."))}}function Y_(n,t){n&1&&G(0)}function j_(n,t){if(n&1&&I(0,Y_,1,0,"ng-container",164),n&2){let e=m().$implicit;m(3);let i=P(3);g("ngTemplateOutlet",i)("ngTemplateOutletContext",Ae(3,Fa,e,D(2,Ta),"Bitte w\xE4hlen Sie aus, welchen Zuschlag Sie auszahlen m\xF6chten, oder ob Sie eine Kombination von Zuschl\xE4gen auszahlen m\xF6chten, falls der "+((e.value==null?null:e.value.week_day_bonus_child_name)||"Zuschlag")+" und der Feiertagsbonus gleichzeitig in der Gehaltsabrechnung des Mitarbeiters enthalten sein sollen."))}}function W_(n,t){n&1&&G(0)}function J_(n,t){if(n&1&&I(0,W_,1,0,"ng-container",164),n&2){let e=m().$implicit;m(3);let i=P(3);g("ngTemplateOutlet",i)("ngTemplateOutletContext",Ae(3,Pa,e,D(2,ka),"Bitte w\xE4hlen Sie aus, welchen Zuschlag Sie auszahlen m\xF6chten, oder ob Sie eine Kombination von Zuschl\xE4gen auszahlen m\xF6chten, falls der "+((e.value==null?null:e.value.week_day_bonus_child_name)||"Zuschlag")+", der \xDCberstundenbonus und der Feiertagsbonus gleichzeitig in der Gehaltsabrechnung des Mitarbeiters enthalten sein sollen."))}}function X_(n,t){if(n&1&&(l(0,"mat-tab",283)(1,"div",98),c(2,Z_,1,7,"ng-container"),c(3,j_,1,7,"ng-container"),c(4,J_,1,7,"ng-container"),a()()),n&2){let e,i,o,s=t.$implicit,x=t.$index,w=m(6);g("label",x+1+". "+((s.value==null?null:s.value.week_day_bonus_child_name)||"Zuschlag")),r(),g("formGroupName",x),r(),d((e=w.templateSecondFormGroup.get("overtime_is_active"))!=null&&e.value?2:-1),r(),d((i=w.templateSecondFormGroup.get("public_holiday_is_active"))!=null&&i.value?3:-1),r(),d((o=w.templateSecondFormGroup.get("overtime_is_active"))!=null&&o.value&&((o=w.templateSecondFormGroup.get("public_holiday_is_active"))!=null&&o.value)?4:-1)}}function Q_(n,t){if(n&1){let e=b();l(0,"mat-tab-group",282),C("selectedTabChange",function(o){p(e);let s=m().$index,x=m(4);return u(x.collisionChildIndexChange(s,o))}),S(1,X_,5,5,"mat-tab",283,A),a()}if(n&2){let e=m(),i=e.$implicit,o=e.$index,s=m(4);g("selectedIndex",s.getCollisionChildIndex(o)),r(),E(s.weekDayBonusChildren(i).controls)}}function em(n,t){if(n&1&&(l(0,"mat-tab"),I(1,q_,5,6,"ng-template",239),l(2,"div",98)(3,"div",241),c(4,Q_,3,1,"mat-tab-group",281),a()()()),n&2){let e=t.$implicit,i=t.$index,o=m(4);r(2),g("formGroupName",i),r(2),d(o.weekDayBonusChildren(e).length?4:-1)}}function tm(n,t){if(n&1){let e=b();l(0,"button",93),C("click",function(){p(e);let o=m(4);return u(o.saveEmploymentProgress())}),_(1," Fortschritt speichern "),v(2,"i",150),a()}}function nm(n,t){if(n&1){let e=b();l(0,"mat-step",262)(1,"div",55),I(2,$_,18,4,"ng-template",null,13,ye),l(4,"div",95)(5,"h6",263)(6,"span"),_(7,"Zuschlagseinstellungen konfigurieren:"),a(),c(8,H_,1,0,"i",264),a(),l(9,"div",265)(10,"mat-tab-group",266),C("selectedTabChange",function(o){p(e);let s=m(3);return u(s.selectedDayIndexChange(o))}),S(11,em,5,2,"mat-tab",null,A),a()()(),l(13,"div",90)(14,"button",267),C("click",function(){p(e);let o=m(3);return u(o.goBackFromCollisionStep())}),v(15,"i",103),_(16," Zur\xFCck "),a(),l(17,"div",92),c(18,tm,3,0,"button",132),l(19,"button",93),C("click",function(){p(e);let o=m(3);return o.addWeekDaySection(),u(o.goToEmploymentLeaveStep())}),_(20," Weiter "),v(21,"i",113),a()()()()()}if(n&2){let e=m(3);r(),g("formGroup",e.templateSecondFormGroup),r(7),d(e.isCollisionStepInvalid()?8:-1),r(2),g("selectedIndex",e.selectedDayIndex),r(),E(e.week_day_bonus_sections.controls),r(7),d(e.inlineMode?-1:18)}}function im(n,t){n&1&&G(0)}function om(n,t){if(n&1&&I(0,im,1,0,"ng-container",164),n&2){m(3);let e=P(17),i=m(2);g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("week_day_off")))}}function am(n,t){if(n&1){let e=b();l(0,"button",287),C("click",function(){let o=p(e).$implicit,s=m(5);return u(s.toggleWeekDayOff(o))}),_(1),a()}if(n&2){let e=t.$implicit,i=m(5);
2O("contract-weekday-chip-btn--selected",i.isWeekDayOffSelected(e)),r(),T(" ",e.german," ")}}function rm(n,t){if(n&1&&(l(0,"div",59),c(1,om,1,5,"ng-container"),l(2,"h6",154),_(3),a(),l(4,"div",285),S(5,am,2,3,"button",286,Y),a()()),n&2){let e,i=m(4);r(),d((e=i.getEmploymentSectionRef("week_day_off"))?1:-1,e),r(2),y(i.getEmploymentDetailsLabel("week_day_off")),r(2),E(i.week_days)}}function lm(n,t){n&1&&G(0)}function _m(n,t){if(n&1&&I(0,lm,1,0,"ng-container",164),n&2){m(4);let e=P(17),i=m(2);g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("notice_period")))}}function mm(n,t){if(n&1&&(l(0,"div",59),c(1,_m,1,5,"ng-container"),l(2,"h6",154),_(3),a(),l(4,"mat-form-field",74)(5,"mat-label"),_(6,"K\xFCndigungsfrist"),a(),v(7,"input",288),l(8,"span",175),_(9,"Tage"),a()()()),n&2){let e,i=m(5);r(),d((e=i.getEmploymentSectionRef("notice_period"))?1:-1,e),r(2),y(i.getEmploymentDetailsLabel("notice_period"))}}function sm(n,t){if(n&1){let e=b();l(0,"div",95)(1,"h6",96),C("click",function(){p(e);let o=m(4);return u(o.sectionHideShowClick("notice_period"))}),l(2,"span"),_(3,"K\xFCndigungsfrist in Tagen"),a(),v(4,"i",97),a(),c(5,mm,10,2,"div",59),a()}if(n&2){let e=m(4);r(4),g("ngClass",e.sectionHideShow.notice_period!==!1?"fa-angle-down":"fa-angle-right"),r(),d(e.sectionHideShow.notice_period!==!1?5:-1)}}function cm(n,t){n&1&&G(0)}function dm(n,t){if(n&1&&(l(0,"div",165),I(1,cm,1,0,"ng-container",164),a()),n&2){m(4);let e=P(17),i=m(2);r(),g("ngTemplateOutlet",e)("ngTemplateOutletContext",R(2,Z,t,i.employmentSectionFallback("leaves")))}}function pm(n,t){if(n&1){let e=b();l(0,"div",294)(1,"button",102),C("click",function(){p(e);let o=m(2).$index,s=m(6);return u(s.removeAddMore(s.leave_sections,o,""))}),_(2),a()()}if(n&2){let e=m(8);r(2),y(e.employmentUi.remove)}}function um(n,t){if(n&1&&(l(0,"div",291)(1,"div",155)(2,"mat-form-field",74)(3,"mat-label"),_(4,"Betriebszugeh\xF6rigkeit (Jahre)"),a(),v(5,"input",292),a()(),l(6,"div",155)(7,"mat-form-field",74)(8,"mat-label"),_(9,"J\xE4hrlicher Urlaubsanspruch"),a(),v(10,"input",293),a()(),c(11,pm,3,1,"div",294),a()),n&2){let e=m(7);r(11),d(e.canRemoveFormArrayRow(e.leave_sections)?11:-1)}}function gm(n,t){if(n&1){let e=b();l(0,"div",130)(1,"h6",137),C("click",function(){let o=p(e).$index,s=m(6);return u(s.subSectionHideShowClick(s.templateThirdFormGroup,"leave_sections",o))}),_(2),v(3,"i",138),a(),c(4,um,12,1,"div",291),a()}if(n&2){let e=t.$implicit,i=t.$index;g("formGroupName",i),r(2),L(" ",i+1,". ",e.value.leave_unit," Jahr(e) \u2014 ",e.value.leave_count," Tage "),r(),g("ngClass",e.value.hidden?"fa-angle-down":"fa-angle-right"),r(),d(e.value.hidden?4:-1)}}function Cm(n,t){if(n&1){let e=b();l(0,"button",102),C("click",function(){p(e);let o=m(6);return u(o.removeLastFormArrayRow(o.leave_sections))}),_(1,"Entfernen"),a()}}function fm(n,t){if(n&1){let e=b();c(0,dm,2,5,"div",165),l(1,"h6",166),_(2),a(),l(3,"div",290),S(4,gm,5,6,"div",130,A),l(6,"div",168),c(7,Cm,2,0,"button",145),l(8,"button",88),C("click",function(){p(e);let o=m(5);return u(o.add_leave_section())}),_(9," Urlaubsregelung hinzuf\xFCgen "),v(10,"img",89),a()()()}if(n&2){let e,i=m(5);d((e=i.getEmploymentSectionRef("leaves"))?0:-1,e),r(2),y(i.getEmploymentDetailsLabel("leaves")),r(2),E(i.leave_sections.controls),r(3),d(i.canRemoveFormArrayRow(i.leave_sections)?7:-1),r(),g("disabled",!i.canAddLeaveSection())}}function hm(n,t){if(n&1){let e=b();l(0,"div",59)(1,"p",162),_(2,"Urlaubsregelung aktiv?"),a(),l(3,"mat-slide-toggle",289),C("change",function(){p(e);let o=m(4);return u(o.selectedType(o.templateThirdFormGroup,"leave_is_active","leaves","Urlaubsregelung"))}),_(4),a(),c(5,fm,11,4),a()}if(n&2){let e,i,o=m(4);r(4),T(" ",o.yesNoLabel((e=o.templateThirdFormGroup.get("leave_is_active"))==null?null:e.value)," "),r(),d((i=o.templateThirdFormGroup.get("leave_is_active"))!=null&&i.value?5:-1)}}function xm(n,t){if(n&1){let e=b();l(0,"mat-step",284)(1,"div",55)(2,"div",95)(3,"h6",96),C("click",function(){p(e);let o=m(3);return u(o.sectionHideShowClick("week_day_off"))}),l(4,"span"),_(5,"Arbeitsfreie Wochentage"),a(),v(6,"i",97),a(),c(7,rm,7,2,"div",59),a(),c(8,sm,6,2,"div",95),l(9,"div",95)(10,"h6",96
2),C("click",function(){p(e);let o=m(3);return u(o.sectionHideShowClick("leaves"))}),l(11,"span"),_(12,"Urlaubsregelung"),a(),v(13,"i",97),a(),c(14,hm,6,2,"div",59),a(),l(15,"div",90)(16,"button",91),v(17,"i",103),_(18," Zur\xFCck"),a(),l(19,"button",93),C("click",function(){p(e);let o=m(3);return u(o.saveEmploymentTemplate())}),_(20),v(21,"i",94),a()()()()}if(n&2){let e=m(3);r(),g("formGroup",e.templateThirdFormGroup),r(5),g("ngClass",e.sectionHideShow.week_day_off?"fa-angle-down":"fa-angle-right"),r(),d(e.sectionHideShow.week_day_off?7:-1),r(),d(e.inlineMode?8:-1),r(5),g("ngClass",e.sectionHideShow.leaves!==!1?"fa-angle-down":"fa-angle-right"),r(),d(e.sectionHideShow.leaves!==!1?14:-1),r(6),T(" ",e.inlineMode?"Vertrag speichern und senden":e.templateId?"\xC4nderungen Speichern":"Speichern"," ")}}function vm(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(5);r(),y(e.getFieldErrorText("party_name"))}}function ym(n,t){if(n&1&&(l(0,"div",155)(1,"div",299)(2,"div",73)(3,"mat-checkbox",300),_(4),a(),l(5,"mat-form-field",301)(6,"mat-label"),_(7,"Name der Partei"),a(),v(8,"input",302),c(9,vm,2,1,"mat-error"),a(),l(10,"div",303),_(11,"Unterschrift erforderlich"),a(),l(12,"mat-radio-group",304)(13,"mat-radio-button",305),_(14,"Ja"),a(),l(15,"mat-radio-button",306),_(16,"Nein"),a()()()()()),n&2){let e,i,o=t.$implicit,s=t.$index,x=m(4);r(),O("opacity-50",!((e=o.get("enabled"))!=null&&e.value)),g("formGroupName",s),r(3),T("Partei ",s+1),r(5),d(x.showValidationIcons&&((i=o.get("enabled"))!=null&&i.value)&&!(!((i=o.get("party_name"))==null||i.value==null)&&i.value.trim())?9:-1)}}function bm(n,t){n&1&&(l(0,"p",297),_(1,"Mindestens eine Partei muss aktiviert sein."),a())}function wm(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("template_name"))}}function Mm(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("template_prefix"))}}function Sm(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(4);r(),y(e.getFieldErrorText("template_title"))}}function Em(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(7);r(),y(e.getFieldErrorText("heading"))}}function Tm(n,t){if(n&1&&(l(0,"mat-error"),_(1),a()),n&2){let e=m(7);r(),y(e.getFieldErrorText("content"))}}function Fm(n,t){if(n&1){let e=b();l(0,"div",101)(1,"button",102),C("click",function(){p(e);let o=m(3).$index,s=m(4);return u(s.removeTemplateSection(o))}),_(2,"Entfernen"),a()()}}function km(n,t){if(n&1&&(l(0,"div",98)(1,"mat-form-field",74)(2,"mat-label"),_(3,"Abschnitt"),a(),v(4,"input",99),c(5,Em,2,1,"mat-error"),a(),l(6,"mat-form-field",74)(7,"mat-label"),_(8,"Inhalt"),a(),v(9,"textarea",100),c(10,Tm,2,1,"mat-error"),a(),c(11,Fm,3,0,"div",101),a()),n&2){let e=m(2),i=e.$implicit,o=e.$index,s=m(4);g("formGroupName",o),r(5),d(s.showFieldRequired(i.get("heading"))?5:-1),r(5),d(s.showFieldRequired(i.get("content"))?10:-1),r(),d(s.firstTemplateSectionsCount()>1?11:-1)}}function Pm(n,t){if(n&1){let e=b();l(0,"div",95)(1,"h6",96),C("click",function(){p(e);let o=m().$index,s=m(4);return u(s.toggleSectionHidden(o))}),l(2,"span"),_(3),a(),v(4,"i",97),a(),c(5,km,12,4,"div",98),a()}if(n&2){let e=m(),i=e.$implicit,o=e.$index;r(3),k("",o+1,". ",i.value.heading||"Abschnitt"),r(),g("ngClass",i.value.hidden?"fa-angle-down":"fa-angle-right"),r(),d(i.value.hidden?5:-1)}}function Vm(n,t){if(n&1&&c(0,Pm,6,4,"div",95),n&2){let e=t.$implicit;d(e.value.sectionType==="first"?0:-1)}}function Im(n,t){n&1&&(l(0,"button",91),v(1,"i",103),_(2," Zur\xFCck"),a())}function Om(n,t){n&1&&v(0,"span")}function Am(n,t){if(n&1){let e=b();l(0,"mat-step",295)(1,"div",67)(2,"form",68)(3,"div",95)(4,"h6",57),v(5,"img",58),_(6," Welche Parteien m\xFCssen den Vertrag unterschreiben? "),a(),l(7,"div",73)(8,"div",296),S(9,ym,17,5,"div",155,A),a(),c(11,bm,2,0,"p",297),a()(),l(12,"div",69)(13,"div",70)(14,"div",71)(15,"h6",72),_(16,"Vorlagenname"),a(),l(17,"div",73)(18,"mat-form-field",74)(19,"mat-label"),_(20,"Vorlagenname"),a(),v(21,"input",75),c(22,wm,2,1,"mat-error"),a()()()(),l(23,"div",70)(24,"div",71)(25,"h6",72),_(26,"Vorlagenpr\xE4fix"),a(),l(27,"div",73)(28,"mat-form-field",77)(29,"mat-label"),_(30,"Vorlagenpr\xE4fix"),a(),v(31,"input",298),l(32,"span",79),_(33),a(),c(34,Mm,2,1,"mat-error"),a()()()(),l(35,"div",81)(36,"div",56)(37,"h6",72),_(38,"Gegenstand der Vorlage"),a(),l(39,"div",73)(40,"mat-form-field",74)(41,"mat-label"),_(42,"Gegenstand"),a(),v(43,"input",82),c(44,Sm,2,1,"mat-error"),a()()()()(),le(45,86),S(46,Vm,1,1,null,null,A),_e(),l(48,"div",87)(49,"button",88),C("click",function(){p(e);let o=m(3);return u(o.addTemplateSection())}),_(50," Abschnitt hinzuf\xFCgen "),v(51,"img",89),a()()(),l(52,"div",90),c(53,Im,3,0,"button",91)(54,Om,1,0,"span"),l(55,"div",92)(56,"button",93),C("click",function(){p(e);let o=m(3);return u(o.saveVertragsvorlageProgress())}
2),_(57,"Fortschritt speichern "),v(58,"i",94),a(),l(59,"button",93),C("click",function(){p(e);let o=m(3);return u(o.goToVertragsvorlagePackageStep())}),_(60,"Weiter "),v(61,"i",113),a()()()()()}if(n&2){let e=m(3);r(2),g("formGroup",e.templateFormGroup),r(7),E(e.contract_parties.controls),r(2),d(e.showValidationIcons&&!e.hasEnabledContractParty()?11:-1),r(11),d(e.showFieldRequired(e.templateFormGroup.get("template_name"))?22:-1),r(11),T("-",(e.templateFormGroup.value==null?null:e.templateFormGroup.value.version_no)||e.versionNo),r(),d(e.showFieldRequired(e.templateFormGroup.get("template_prefix"))?34:-1),r(10),d(e.showFieldRequired(e.templateFormGroup.get("template_title"))?44:-1),r(2),E(e.template_sections.controls),r(3),g("disabled",!e.canAddTemplateSection()),r(4),d(!e.templateId&&!e.inlineMode?53:54)}}function Dm(n,t){if(n&1){let e=b();l(0,"div",311)(1,"div",312),C("click",function(){let o=p(e).$implicit,s=m(5);return u(s.toggleLicenseClass(o._id))}),l(2,"mat-checkbox",313),C("click",function(o){return o.stopPropagation()})("change",function(){let o=p(e).$implicit,s=m(5);return u(s.toggleLicenseClass(o._id))}),_(3),a()()()}if(n&2){let e=t.$implicit,i=m(5);r(),O("selected",i.isLicenseClassSelected(e._id))("license-class-card--blocked",i.isLicenseClassSelectionBlocked(e._id)),g("matTooltip",i.getDuplicateContractTooltipForClass(e._id)),r(),g("checked",i.isLicenseClassSelected(e._id))("disabled",i.isLicenseClassSelectionBlocked(e._id)),r(),T(" ",e.class_name," ")}}function Gm(n,t){if(n&1&&(l(0,"div",133),S(1,Dm,4,8,"div",311,Ke),a()),n&2){let e=m(4);r(),E(e.drivingLicenseClasses)}}function Bm(n,t){n&1&&(l(0,"p",308),_(1,"Keine Produktkategorien verf\xFCgbar."),a())}function Um(n,t){n&1&&(l(0,"p",308),_(1,"Bitte w\xE4hlen Sie zuerst mindestens eine Produktkategorie aus."),a())}function zm(n,t){n&1&&(l(0,"p",308),_(1,"Pakete werden geladen..."),a())}function Lm(n,t){if(n&1&&(l(0,"div",314)(1,"div",315)(2,"h6",316),_(3),a(),l(4,"strong"),_(5),a()()()),n&2){let e=t.$implicit,i=m(5);r(3),y(i.getPackageName(e)),r(2),y(i.formatPackagePrice(e))}}function Nm(n,t){if(n&1&&S(0,Lm,6,2,"div",314,Ke),n&2){let e=m(4);E(e.filteredPackages)}}function Rm(n,t){n&1&&(l(0,"p",308),_(1,"Keine Pakete f\xFCr die ausgew\xE4hlten Produktkategorien vorhanden."),a())}function $m(n,t){if(n&1&&(l(0,"p",309),_(1),a()),n&2){let e=m(4);r(),y(e.getDuplicateContractTooltipForCurrentSelection())}}function Hm(n,t){if(n&1){let e=b();l(0,"mat-step",307)(1,"div",67)(2,"div",95)(3,"h6",72),_(4,"Produktkategorien ausw\xE4hlen"),a(),l(5,"div",73),c(6,Gm,3,0,"div",133)(7,Bm,2,0,"p",308),a()(),l(8,"div",95)(9,"h6",72),_(10,"Pakete & Leistungen"),a(),l(11,"div",73),c(12,Um,2,0,"p",308)(13,zm,2,0,"p",308)(14,Nm,2,0)(15,Rm,2,0,"p",308),a()(),c(16,$m,2,1,"p",309),l(17,"div",310)(18,"button",91),v(19,"i",103),_(20," Zur\xFCck"),a(),l(21,"button",112),C("click",function(){p(e);let o=m(3);return u(o.saveVertragsvorlageTemplate())}),_(22,"Speichern "),v(23,"i",94),a()()()()}if(n&2){let e=m(3);r(6),d(e.drivingLicenseClasses.length?6:7),r(6),d(e.selectedLicenseClassIds.length?e.packagesLoading?13:e.filteredPackages.length?14:15:12),r(4),d(e.hasDuplicateLicenseClassSelection()?16:-1),r(5),g("disabled",e.hasDuplicateLicenseClassSelection()||e.existingStudentCombinationsLoading||e.packagesLoading)}}function qm(n,t){if(n&1&&v(0,"app-contract-template-view",321),n&2){let e=m(4);g("contractData",e.contractPreviewData())("eSignatureActive",!1)("eSignatureAllowed",!0)("embedEsignModal",!1)("employerSignature",e.getPreviewEmployerSignatureUrl())}}function Km(n,t){n&1&&_(0," Bitte w\xE4hlen Sie einen Vorlagentyp aus, um die Vorschau anzuzeigen. ")}function Zm(n,t){n&1&&_(0," Bitte f\xFCllen Sie die Vorlagedetails aus, um die Vorschau anzuzeigen. ")}function Ym(n,t){n&1&&_(0," F\xFCllen Sie Vertragsinformationen aus; Paketvorschau erscheint nach Auswahl der Produktkategorien. ")}function jm(n,t){n&1&&_(0," W\xE4hlen Sie Besch\xE4ftigungsart und Tarifstatus, um die Arbeitsvertragsvorschau zu sehen. ")}function Wm(n,t){n&1&&_(0," Bitte w\xE4hlen Sie einen Vorlagentyp aus. ")}function Jm(n,t){if(n&1&&(l(0,"div",322)(1,"p",323),c(2,Km,1,0)(3,Zm,1,0)(4,Ym,1,0)(5,jm,1,0)(6,Wm,1,0),a()()),n&2){let e=m(4);r(2),d(!e.typeOfTemplate&&!e.templateId?2:e.typeOfTemplate===2?3:e.typeOfTemplate===3?4:e.typeOfTemplate===1?5:6)}}function Xm(n,t){if(n&1&&(l(0,"div",317)(1,"div",318)(2,"h6",319),v(3,"img",32),_(4," Vorlagevorschau "),a(),l(5,"div",320),c(6,qm,1,5,"app-contract-template-view",321)(7,Jm,7,1,"div",322),a()()()),n&2){let e=m(3);r(6),d(e.shouldShowContractPreview()?6:7)}}function Qm(n,t){if(n&1){let e=b();l(0,"div",27)(1,"div")(2,"div",28)(3,"div",29)(4,"h6",30)(5,"div",31),v(6,"img",32),_(7," Vorlagedetails "),a(),l(8,"button",33),C("click",function(){p(e);let o=m(2);return u(o.toggleExpand())}),l(9,"span",34),_(10),a(),v(11,"img",35),a()()(),l(12,"div",36)(13,"div",37)(14,"mat-stepper",38,2),I(16,Ga,6,4,"ng-template",null,3,ye)(18,Ba,2,0,"ng-template",39)(19,Ua,26,7,"mat-step",40)(20,Ja,62,12,"mat-step",41)(21,fr,31,10,"mat-step",42)(22,Ur,71,11,"mat-step",41)(23,s_,60,18,"mat-step",43)(24,B_,17,4,"mat-step",44)(25,nm,22,4,"mat-step",45)(26,xm,22,7,"mat-step",46)(27,Am,62,8,"mat-step",47)(28,Hm,24,4,"mat-step",48),a()()()()(),I(29,Xm,8,1,"div",49),a()}if(n&2){let e=m(2);r(),Tt(e.isExpanded?"col-12":"col-xl-7 mb-3 mb-xl-0"),r(9),T(" ",e.isExpanded?"Vorlagevorschau anzeigen":"Vergr\xF6\xDFere Vorlagedetails"," "),r(),g("src",e.isExpanded?"assets/contract-management/reduce.svg":"assets/contract-management/expand.svg",ee),r(3),g("linear",!1)("orientation",e.stepperOrientation),r(5),g("ngIf",!e.templateId&&!e.inlineMode),r(),g("ngIf",e.typeOfTemplate===2),r(),g("ngIf",e.typeOfTemplate===1),r(),g("ngIf",e.typeOfTemplate===1),r(),g("ngIf",e.typeOfTemplate===1),r(),g("ngIf",e.typeOfTemplate===1),r(),g("ngIf",e.showCollisionStep()),r(),g("ngIf",e.typeOfTemplate===1),r(),g("ngIf",e.typeOfTemplate===3),r(),g("ngIf",e.typeOfTemplate===3),r(),g("ngIf",!e.isExpanded)}}function es(n,t){if(n&1&&c(0,Qm,30,17,"div",27),n&2){let e=m();d(e.formsReady&&(e.brandDetails!=null&&e.brandDetails._id)?0:-1)}}function ts(n,t){if(n&1&&(l(0,"div",324),v(1,"img",325),l(2,"h6",326),_(3),a(),l(4,"p",327),_(5," Die mehrstufigen Formulare (Besch\xE4ftigungsart, Zahlungsdetails, Zuschl\xE4ge, Paketauswahl, \u2026) aus DriveHero sind in NeoLoop als mehrstufiger Stepper verf\xFCgbar (Besch\xE4ftigungsart, Zahlungsdetails, Zuschl\xE4ge, Urlaub). Erweiterte Bonus-Tabellen folgen schrittweise. "),a()()),n&2){let e=t.typeLabel;r(3),y(e)}}function ns(n,t){n&1&&(l(0,"mat-error"),_(1,"Der Abschnitt ist erforderlich."),a())}function is(n,t){if(n&1&&(l(0,"mat-option",84),_(1),a()),n&2){let e=t.$implicit;g("value",e.toString()),r(),y(e)}}function os(n,t){n&1&&(l(0,"mat-error"),_(1,"Die Abschnittnummer ist erforderlich."),a())}function as(n,t){n&1&&(l(0,"mat-error"),_(1,"Der Inhalt ist erforderlich."),a())}function rs(n,t){if(n&1){let e=b();l(0,"div",17)(1,"div",328)(2,"div",329)(3,"div",21)(4,"div",22)(5,"h6",330),_(6,"Vertrags\xFCberschrift erstellen"),a(),l(7,"button",331),C("click",function(){p(e);let o=m();return u(o.close_modal("addtemplate_heading","addtemplate_heading_parent"))}),a()(),l(8,"div",26)(9,"div",332)(10,"div",333)(11,"mat-form-field",334)(12,"mat-label"),_(13,"Abschnitt"),a(),v(14,"input",335),c(15,ns,2,0,"mat-error"),a()(),l(16,"div",336)(17,"mat-form-field",334)(18,"mat-label"),_(19,"Abschnittnummer"),a(),l(20,"mat-select",337),S(21,is,2,2,"mat-option",84,A),a(),c(23,os,2,0,"mat-error"),a()(),l(24,"div",338)(25,"mat-form-field",334)(26,"mat-label"),_(27,"Inhalt"),a(),v(28,"textarea",339),c(29,as,2,0,"mat-error"),a()()()(),l(30,"div",340)(31,"button",112),C("click",function(){p(e);let o=m();return u(o.saveHeadingPopup())}),_(32," Speichern "),a()()()()()()}if(n&2){let e=m();r(9),g("formGroup",e.templateHeadingFormGroup),r(6),d(e.showFieldRequired(e.templateHeadingFormGroup.get("heading"))?15:-1),r(6),E(e.headingPopupSerialOptions),r(2),d(e.showFieldRequired(e.templateHeadingFormGroup.get("serial"))?23:-1),r(6),d(e.showFieldRequired(e.templateHeadingFormGroup.get("content"))?29:-1),r(2),g("disabled",!e.templateHeadingFormGroup.valid)}}var ke=class n{constructor(t,e,i,o,s,x,w,V){this.fb=t;this.validationAlerts=e;this.sweetAlert=i;this.userService=o;this.authService=s;this.breakpointObserver=x;this.cdr=w;this.pagerService=V;this.companyId="";this.inlineMode=!1;this.saved=new fe;this.saveAndSend=new fe;this.typeOfTemplate=0;this.templateId="";this.formsReady=!1;this.isExpanded=!1;this.stepperOrientation="horizontal";this.versionNo=1;this.brandDetails={};this.currentUser={};this.isFormDirty=!1;this.isInitializing=!1;this.showValidationIcons=!1;this.allowModalClose=!1;this.lastSelectedCardType="";this.drivingLicenseClasses=[];this.selectedLicenseClassIds=[];this.filteredPackages=[];this.availableSingleServices=[];this.existingStudentTemplates=[];this.licenseClassesLoading=!1;this.packagesLoading=!1;this.existingStudentCombinationsLoading=!1;this.companyCountryId="";this.employment_types=ln;this.amount_rate=we;this.overtime_bonus_type=_n;this.completion_rate=mn;this.week_day_distributions=Me;this.week_day_distribution_times=sn;this.travel_bonus_time_types=cn;this.travel_bonus_times=dn;this.employmentUi=pe;this.employmentHeadingEditTooltip=pe.headingEditTooltip;this.week_days=be;this.compareRateObjects=pn;this.employeeContractTemplates=[];this.inlineEmployeeUserInfo=null;this.tariffList=[];this.tariffAllList=[];this.tariffCurrentPage=1;this.tariffPageSize=5;this.tariffPager={};this.tariffTotalItems=0;this.tariffTotalPages=0;this.selectedDayIndex=0;this.selectedCollisionChildIndex=[];this.isInitialLoad=!0;this.headingPopupSectionIndex=null;
2this.selectedCurrency={symbol:"\u20AC",name:"Euro"};this.currencyList=[{symbol:"\u20AC",name:"Euro"},{symbol:"$",name:"US Dollar"}];this.dragBonusItem=null;this.dragBonusField=null;this.previewCompanyLoadedFor=null;this.previewCompanyLoadInFlight=!1;this.brandDetailsRequested=!1;this.versionNumberLoaded=!1;this.versionNumberLoadInFlight=!1;this.contractPreviewData=he(null);this.previewCompanyDetails=null;this.previewEmployerSignatureUrl=null;this.subscriptions=new xt;this.compareCurrencies=(t,e)=>t?.symbol===e?.symbol;this.formatPackagePrice=Mn;this.getPackageName=wn;this.getPackageFeatures=Sn}ngOnInit(){this.subscriptions.add(this.authService.user$.subscribe(e=>{this.currentUser=e})),this.templateTypeFormGroup=ze(this.fb),this.applyTypeFormValidators(0),this.templateFormGroup=this.fb.group({template_id:[""],template_name:[""],template_title:[""],prefix:[""],template_prefix:[""],party1:[""],party2:[""],party1_sign_required:[!0],party2_sign_required:[!0],template_sections_html:[""],version_no:[""],employee_signatures_required:[!0],contract_parties:this.fb.array([this.createPartyGroup(0),this.createPartyGroup(1)]),template_sections:this.fb.array([]),payment_groups:this.fb.array([ie(this.fb)])}),this.applyValidatorsForTemplateType(2),this.templateSecondFormGroup=pt(this.fb),this.templateThirdFormGroup=Le(this.fb),this.templateHeadingFormGroup=this.fb.group({heading:["",M.required],serial:["",M.required],content:["",M.required]});let t=()=>{this.isInitializing||(this.isFormDirty=!0),this.buildContractPreview()};this.subscriptions.add(this.templateFormGroup.valueChanges.subscribe(t)),this.subscriptions.add(this.templateSecondFormGroup.valueChanges.subscribe(t)),this.subscriptions.add(this.templateThirdFormGroup.valueChanges.subscribe(t)),this.subscriptions.add(this.templateTypeFormGroup.valueChanges.subscribe(()=>t())),this.subscriptions.add(this.breakpointObserver.observe("(max-width: 991px)").subscribe(e=>{this.stepperOrientation=e.matches?"vertical":"horizontal"})),this.formsReady=!0,this.syncPreviewContext()}ngOnChanges(t){let e=t.companyId;if(!e)return;let i=e.previousValue??"",o=e.currentValue??"";i===o&&!e.isFirstChange()||(o&&this.previewCompanyLoadedFor!==o&&(this.previewCompanyDetails=null,this.previewEmployerSignatureUrl=null,this.previewCompanyLoadedFor=null,this.previewCompanyLoadInFlight=!1),this.syncPreviewContext(),this.formsReady&&this.buildContractPreview())}syncPreviewContext(){!this.formsReady||!this.companyId||(this.loadBrandAndVersion(),this.inlineMode&&this.loadCompanyPreviewDetails())}ensureCompanyPreviewForModal(){this.companyId&&this.loadCompanyPreviewDetails()}ngOnDestroy(){$("#contractManagementModal").off("hide.bs.modal.contractCloseGuard"),this.subscriptions.unsubscribe()}isVorlagenartStepActive(){return this.templateId||this.inlineMode?!1:(this.stepper?.selectedIndex??0)===0}shouldShowContractPreview(){return!this.templateTypeFormGroup?.get("selectedCardType")?.value&&!this.templateId&&this.typeOfTemplate===0||!this.brandDetails?._id||this.isVorlagenartStepActive()||!this.contractPreviewData()?!1:this.typeOfTemplate===2||this.typeOfTemplate===3||this.typeOfTemplate===1}get contract_parties(){return this.templateFormGroup.get("contract_parties")}get template_sections(){return this.templateFormGroup.get("template_sections")}get payment_groups(){return this.templateFormGroup.get("payment_groups")}get leave_sections(){return this.templateThirdFormGroup.get("leave_sections")}get overtimeSections(){return this.templateSecondFormGroup.get("overtime_bonus_sections")}get holidaySections(){return this.templateSecondFormGroup.get("holiday_bonus_sections")}get travelSections(){return this.templateSecondFormGroup.get("travel_bonus_sections")}get completionSections(){return this.templateSecondFormGroup.get("completion_bonus_sections")}get week_day_bonus_sections(){return this.templateSecondFormGroup.get("week_day_bonus_sections")}get overtime_bonus_sections(){return this.overtimeSections}get holiday_bonus_sections(){return this.holidaySections}get travel_bonus_sections(){return this.travelSections}get completion_bonus_sections(){return this.completionSections}get sectionHideShow(){return this.templateSecondFormGroup.get("sectionHideShow")?.getRawValue?.()??{}}get hasClosedSections(){return this.template_sections.controls.some(t=>t.value.hidden)}toggleExpand(){this.isExpanded=!this.isExpanded}selectTemplateType(t){let e=Qe(t);this.lastSelectedCardType&&this.lastSelectedCardType!==t&&this.resetFormStateForContractTypeSwitch(),this.lastSelectedCardType=t,this.templateTypeFormGroup.patchValue({selectedCardType:t}),this.typeOfTemplate=e,this.handleTemplateTypeChange(e),t==="arbeitsvertrag"?this.initEmploymentTemplateDefaults():t==="vertragsvorlage"&&(this.initVertragsvorlageDefaults(),this.loadDrivingLicenseClasses(),this.selectedLicenseClassIds.length>0&&this.loadServicesByLicenseClasses()),this.buildContractPreview(),this.advanceStepperAfterTypeSelected()}advanceStepperAfterTypeSelected(){this.templateId||this.inlineMode||!this.t
2ypeOfTemplate||(this.cdr.detectChanges(),setTimeout(()=>{let t=this.stepper;t&&(t.steps.length>1?t.selectedIndex=1:t.next())}))}createPartyGroup(t){return this.fb.group({enabled:[!0],party_name:[""],signature_required:["yes"]})}createTemplateSection(){return this.fb.group({heading:["",M.required],content:["",M.required],hidden:[!0],sectionType:["first"]})}initVertragsvorlageDefaults(){this.isInitializing=!0,this.template_sections.length===0&&this.template_sections.push(this.createTemplateSection()),this.contract_parties.controls.forEach((t,e)=>{t.get("party_name")?.clearValidators(),t.get("party_name")?.updateValueAndValidity({emitEvent:!1})}),this.isInitializing=!1}handleTemplateTypeChange(t){this.applyTypeFormValidators(t),this.applyValidatorsForTemplateType(t);let e=this.templateFormGroup.get("employee_signatures_required");t===1?(e?.clearValidators(),this.initEmploymentTemplateDefaults(),this.loadMockTariffList()):t===2?(e?.setValidators([M.required]),this.removeEmploymentSpecificSections(),this.initNormalTemplateDefaults()):t===3?(e?.clearValidators(),this.initVertragsvorlageDefaults()):e?.clearValidators(),e?.updateValueAndValidity({emitEvent:!1})}removeEmploymentSpecificSections(){for(let t=this.template_sections.length-1;t>=0;t--){let e=this.template_sections.at(t).value?.sectionType;de(e)&&this.template_sections.removeAt(t)}}initNormalTemplateDefaults(){this.isInitializing=!0,this.removeEmploymentSpecificSections(),this.template_sections.length===0&&this.template_sections.push(this.createTemplateSection()),this.isInitializing=!1}initEmploymentTemplateDefaults(){this.isInitializing=!0,this.payment_groups.length===0&&this.payment_groups.push(ie(this.fb)),this.template_sections.controls.some(t=>t.value?.sectionType==="first")||this.template_sections.push(this.createTemplateSection()),this.addPaymentGroupsSection(),this.changeFormControlSerials(),this.isInitializing=!1}addPaymentGroupsSection(){this.template_sections.controls.findIndex(e=>e.value?.sectionType==="payment_groups")>=0||this.template_sections.push(gn(this.fb,"payment_groups"))}ensurePaymentGroupsSection(){this.addPaymentGroupsSection()}changeFormControlSerials(){this.syncEmploymentSerialsAndPreview()}get headingPopupSerialOptions(){return Array.from({length:this.template_sections.length},(t,e)=>e+1)}open_modal(t){$(`#${t}`).appendTo("body")}close_modal(t,e){$(`#${t}`).modal("hide"),$(`#${t}`).appendTo(`#${e}`),this.headingPopupSectionIndex=null}syncZahlungsdetailsTemplateSections(){q(this.template_sections,this.fb,"working_hours"),q(this.template_sections,this.fb,"joining");let t=this.templateSecondFormGroup.value,e=[{active:!!t.saving_account_is_active,type:"saving_account"},{active:!!t.shift_is_active,type:"shift_timing"},{active:!!t.public_holiday_is_active,type:"public_holiday"}
2,{active:!!t.overtime_is_active,type:"overtime"},{active:!!t.holiday_is_active,type:"holiday"},{active:!!t.travel_is_active,type:"travel"},{active:!!t.completion_is_active,type:"completion"},{active:(t.week_day_bonus_sections??[]).length>0,type:"week_day"}];for(let{active:i,type:o}of e)i?q(this.template_sections,this.fb,o):Se(this.template_sections,o)}syncThirdFormTemplateSections(){let t=this.templateThirdFormGroup.value;(t.week_day_off??[]).length?q(this.template_sections,this.fb,"week_day_off"):Se(this.template_sections,"week_day_off"),t.leave_is_active?q(this.template_sections,this.fb,"leaves"):Se(this.template_sections,"leaves"),t.notice_period?q(this.template_sections,this.fb,"notice_period"):Se(this.template_sections,"notice_period")}syncEmploymentTemplateSections(){this.syncZahlungsdetailsTemplateSections(),this.syncThirdFormTemplateSections()}ensureEmploymentPreviewSections(){if(this.typeOfTemplate!==1)return;(this.payment_groups.value??[]).some(i=>String(i.payment_group_name??"").trim()||i.payment_group_salary)&&q(this.template_sections,this.fb,"payment_groups"),this.syncEmploymentTemplateSections(),nt(this.template_sections,this.templateSecondFormGroup,this.templateThirdFormGroup)}syncEmploymentSerialsAndPreview(){this.typeOfTemplate===1&&this.syncEmploymentTemplateSections(),Ue(this.template_sections),nt(this.template_sections,this.templateSecondFormGroup,this.templateThirdFormGroup),this.isInitializing||this.buildContractPreview()}validateEmploymentFields(){let t=this.templateTypeFormGroup.value;return!(!t.employment_type||t.tariff_contract===""||t.tariff_contract==null||String(t.tariff_contract)==="0"&&!t.selectedTariffPlan?._id&&!t.selected_tariff_plan)}loadMockTariffList(){this.tariffAllList=[{_id:"mock-t1",tariff_class:"TV\xF6D E9",name:"TV\xF6D E9",valid_from:"2024-01-01",valid_till:"2025-12-31"},{_id:"mock-t2",tariff_class:"TV\xF6D E11",name:"TV\xF6D E11",valid_from:"2024-01-01",valid_till:"2025-12-31"},{_id:"mock-t3",tariff_class:"IG Metall BW",name:"IG Metall BW",valid_from:"2023-06-01",valid_till:"2026-05-31"},{_id:"mock-t4",tariff_class:"Tarif Nord",name:"Tarif Nord",valid_from:"2025-01-01",valid_till:"2026-12-31"},{_id:"mock-t5",tariff_class:"Tarif S\xFCd",name:"Tarif S\xFCd",valid_from:"2025-01-01",valid_till:"2026-12-31"},{_id:"mock-t6",tariff_class:"Haustarif A",name:"Haustarif A",valid_from:"2024-03-01",valid_till:"2027-02-28"}],this.setTariffPage(1)}setTariffPage(t){this.tariffTotalItems=this.tariffAllList.length,this.tariffPager=this.pagerService.getPager(this.tariffTotalItems,t,this.tariffPageSize),this.tariffCurrentPage=this.tariffPager.currentPage??1,this.tariffTotalPages=this.tariffPager.totalPages??0;let e=(this.tariffCurrentPage-1)*this.tariffPageSize;this.tariffList=this.tariffAllList.slice(e,e+this.tariffPageSize)}onTariffPageChange(t){this.setTariffPage(t)}get tariffPagerPages(){let t=this.tariffPager.pages;return Array.isArray(t)?t:[]}selectTariffForContract(t){this.templateTypeFormGroup.patchValue({selectedTariffPlan:t,selected_tariff_plan:t._id}),this.templateTypeFormGroup.get("selectedTariffPlan")?.markAsTouched(),this.buildContractPreview()}selectEmployeeContractTemplate(t){this.templateTypeFormGroup.patchValue({selectedEmployeeContractTemplate:t}),this.buildContractPreview()}handleNextStep(t,e,i=[]){if(this.showValidationIcons=!0,e===1){this.goToEmploymentDetailsStep();return}if(e===2){if(!t.valid){this.validationAlerts.invalidForm(t);return}this.goToEmploymentPaymentStep();return}if(e===3){if(!wi(this.templateSecondFormGroup)){this.validationAlerts.invalidForm(this.templateSecondFormGroup);return}for(let o of i){let s=this.templateSecondFormGroup.get(o);if(s&&!s.valid){this.validationAlerts.invalidForm(this.templateSecondFormGroup);return}}this.initializeZahlungsdetailsSections(),this.initWeekDayBonusSections(),setTimeout(()=>this.stepper?.next());return}if(!t.valid){this.validationAlerts.invalidForm(t);return}setTimeout(()=>this.stepper?.next())}sectionHideShowClick(t,e=!1){if(e){let i=this.sectionHideShowGroup.get(t);i&&i.setValue(!0,{emitEvent:!1});return}this.togglePanel(t)}get sectionHideShowGroup(){return this.templateSecondFormGroup.get("sectionHideShow")}
2subSectionHideShowClick(t,e,i){let s=t.get(e)?.at(i);if(!s)return;let x=!!s.get("hidden")?.value;s.patchValue({hidden:!x}),this.onZahlungsdetailsChange()}getEmploymentSectionRef(t){let e=tt(this.template_sections,t);return e<0?null:{section:this.template_sections.at(e),index:e}}getEmploymentDetailsLabel(t){return rn[t]??`${et[t]}details:`}employmentSectionFallback(t){return et[t]??pe.sectionFallback}yesNoLabel(t){return t?pe.yes:pe.no}toggleBonusRowHidden(t){t.get("hidden")&&(t.patchValue({hidden:!t.get("hidden")?.value}),this.onZahlungsdetailsChange())}weekDayBonusRateOptions(t){let e=t.get("week_day_distribution")?.value?.english,i=t.get("week_day_distribution_time")?.value?.english;return e==="Entire day"?this.amount_rate.filter(o=>["Per Hour","Per Day"].includes(o.english)):e==="Specific hours"&&i==="Range"?this.amount_rate.filter(o=>["Per Hour","For Range"].includes(o.english)):e==="Specific hours"?this.amount_rate.filter(o=>o.english==="Per Hour"):this.amount_rate.filter(o=>["Per Hour","Per Day"].includes(o.english))}isTravelArrivalDepartureRow(t){let e=String(t.get("travel_bonus_time_type")?.value?.german??"");return e==="Tag der Anreise"||e==="Tag der Abreise"}isTravelRangeHours(t){return String(t.get("travel_bonus_time")?.value?.english??"")==="Range of Hours"}openHeadingPopup(t,e){let i=String(t.get("sectionType")?.value??""),o=i&&de(i)?tt(this.template_sections,i):e;if(o<0)return;this.headingPopupSectionIndex=o;let s=this.template_sections.at(o);this.templateHeadingFormGroup.reset({heading:String(s.get("heading")?.value??""),serial:String(o+1),content:String(s.get("content")?.value??"")}),this.templateHeadingFormGroup.markAsUntouched(),this.open_modal("addtemplate_heading"),$("#addtemplate_heading").modal("show")}saveHeadingPopup(){if(!this.templateHeadingFormGroup.valid){this.templateHeadingFormGroup.markAllAsTouched();return}if(this.headingPopupSectionIndex==null)return;Ue(this.template_sections);let t=this.headingPopupSectionIndex,e=this.template_sections.at(t);if(!e)return;let{heading:i,serial:o,content:s}=this.templateHeadingFormGroup.value;e.patchValue({heading:i,content:s});let x=parseInt(String(o),10)-1;!Number.isNaN(x)&&x>=0&&x<this.template_sections.length&&x!==t&&(this.moveTemplateSection(t,x),this.headingPopupSectionIndex=x),Ue(this.template_sections),this.close_modal("addtemplate_heading","addtemplate_heading_parent"),this.changeFormControlSerials(),this.cdr.detectChanges()}moveTemplateSection(t,e){let i=this.template_sections.at(t);i&&(this.template_sections.removeAt(t),this.template_sections.insert(e,i))}onTemplateSectionSerialChange(t,e){let i=parseInt(String(e),10)-1;Number.isNaN(i)||i<0||i>=this.template_sections.length||i===t||(this.moveTemplateSection(t,i),this.changeFormControlSerials())}selectedType(t,e,i,o){let s=t.get(e);if(!s?.value){this.sweetAlert.custom({title:"Hinweis",content:`M\xF6chten Sie ${o??"diesen Bereich"} wirklich deaktivieren?`,type:"warning",showCancel:!0,confirmText:"Ja",cancelText:"Nein"}).subscribe(x=>{x?this.invokeFeatureToggle(e,i):s.setValue(!0,{emitEvent:!1})});return}this.invokeFeatureToggle(e,i)}invokeFeatureToggle(t,e){switch(t){case"overtime_is_active":this.onOvertimeChange();break;case"holiday_is_active":this.onHolidayChange();break;case"travel_is_active":this.onTravelChange();break;case"completion_is_active":this.onCompletionChange();break;case"leave_is_active":this.onLeaveChange();break;case"shift_is_active":this.onShiftChange();break;case"saving_account_is_active":this.onSavingAccountChange();break;case"public_holiday_is_active":this.onPublicHolidayChange();break;default:this.onFeatureToggle(t,e)}}showInfo(t){this.sweetAlert.custom({title:"Information",content:"Weitere Informationen zu diesem Abschnitt folgen in einer sp\xE4teren Version.",type:"info",showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"})}changeIndexOfFirst(t,e,i){let o=t-1;o<0||o>=this.template_sections.length||o===i||(this.moveTemplateSection(i,o),this.changeFormControlSerials())}removeAddMore(t,e,i){if(t.length<=1&&i!=="week_day_bonus_section_childs")return;let o=i?this.getRemoveItemLabel(i):this.getRemoveLabelForArray(t);this.confirmBeforeRemove(o,()=>this.executeRemoveAddMore(t,e,i))}executeRemoveAddMore(t,e,i){t.length<=1&&i!=="week_day_bonus_section_childs"||(t.removeAt(e),this.afterFormArrayChange(t,i))}normalizePaymentGroupsAfterChange(t=!0){let e=this.payment_groups;if(!e.length){e.push(ie(this.fb));return}this.normalizeExpandCollapseArray(e,t)}formArrayHasHiddenState(t){return t.length>0&&!!t.at(0).get("hidden")}
2normalizeExpandCollapseArray(t,e=!0){t.controls.forEach((i,o)=>{let s=i.get("hidden");if(!s)return;let x=e&&o===t.length-1;s.setValue(x,{emitEvent:!1})})}afterFormArrayChange(t,e=""){e==="payment_groups"||t===this.payment_groups?(this.normalizePaymentGroupsAfterChange(),this.changeFormControlSerials(),this.buildContractPreview()):e==="week_day_bonus_section_childs"?(this.formArrayHasHiddenState(t)&&this.normalizeExpandCollapseArray(t),this.onWeekDayBonusChange()):(this.formArrayHasHiddenState(t)&&this.normalizeExpandCollapseArray(t),this.onZahlungsdetailsChange()),this.cdr.detectChanges()}confirmBeforeRemove(t,e){this.sweetAlert.custom({title:"Bist du sicher?",content:`M\xF6chten Sie ${t} wirklich entfernen?`,type:"warning",isHtml:!1,showCancel:!0,confirmText:"Ja, entfernen",cancelText:"Abbrechen",confirmButtonClass:"btn-cancel",cancelButtonClass:"btn-primary",disableClose:!0}).subscribe(i=>{i&&e()})}getRemoveItemLabel(t){switch(t){case"payment_groups":return"diese Entgeltgruppe";case"week_day_bonus_section_childs":return"diesen Arbeitszeitzuschlag";default:return"diesen Eintrag"}}getRemoveLabelForArray(t){return t===this.overtimeSections?"diesen \xDCberstundenbonus":t===this.holidaySections?"diesen Urlaubsbonus":t===this.travelSections?"diesen Verpflegungseintrag":t===this.completionSections?"diese Sonderzahlung":t===this.leave_sections?"diese Urlaubsregelung":"diesen Eintrag"}canAddFormArrayRow(t){return t?t.length?t.at(t.length-1).valid:!0:!1}canRemoveFormArrayRow(t,e=!1){let i=t?.length??0;return e?i>=1:i>1}removeLastFormArrayRow(t,e="",i=!1){if(!this.canRemoveFormArrayRow(t,i))return;let o=e==="week_day_bonus_section_childs"||e==="payment_groups"?this.getRemoveItemLabel(e):this.getRemoveLabelForArray(t);this.confirmBeforeRemove(o,()=>this.executeRemoveAddMore(t,t.length-1,e))}firstTemplateSectionsCount(){return this.template_sections.controls.filter(t=>t.value?.sectionType==="first").length}canAddTemplateSection(){let t=this.template_sections.controls.filter(e=>e.value?.sectionType==="first");return t.length?t[t.length-1].valid:!0}weekDayBonusChildren(t){return t.get("week_day_bonus_section_childs")}canAddWeekDayBonusChild(t){let e=this.weekDayBonusChildren(this.week_day_bonus_sections.at(t));return this.canAddFormArrayRow(e)}canAddOvertimeRow(){return this.canAddFormArrayRow(this.overtimeSections)}canAddHolidayRow(){return String(this.templateSecondFormGroup.get("holiday_bonus_name")?.value??"").trim()?this.holidaySections.length?this.canAddFormArrayRow(this.holidaySections):!0:!1}canAddTravelRow(){return String(this.templateSecondFormGroup.get("travel_bonus_name")?.value??"").trim()?this.travelSections.length?this.canAddFormArrayRow(this.travelSections):!0:!1}canAddCompletionRow(){return String(this.templateSecondFormGroup.get("completion_bonus_name")?.value??"").trim()?this.completionSections.length?this.canAddFormArrayRow(this.completionSections):!0:!1}canAddLeaveSection(){return this.leave_sections.length?this.canAddFormArrayRow(this.leave_sections):!0}addPaymentGroup(){this.ensurePaymentGroupsSection(),this.payment_groups.push(ie(this.fb)),this.afterFormArrayChange(this.payment_groups,"payment_groups")}add_template_section(){this.addTemplateSection()}add_payment_group(){this.addPaymentGroup()}convertCurrency(t){let e=t.target;e?.value&&(e.value=this.userService.convert_currency(e.value).trim())}onCurrencyChange(t){this.buildContractPreview()}checkSectionValidity(t){return!0}trackByFormControl(t){return t}trackByWeekDay(t){return t}onHoursMinuteInput(t){t==="hours"&&vi(this.templateSecondFormGroup),this.onWorkingHoursInput()}getPreviousValue(t){if(t<=0)return 0;let e=this.overtimeSections.at(t-1)?.value;return Number(e?.overtime_bonus_after_hours??e?.overtime_bonus_hours_to??0)+1}requiredOvertimeField(t){let e=t.get("overtime_bonus_hours_type")?.value,i=t.get("overtime_bonus_after_hours"),o=t.get("overtime_bonus_hours_from"),s=t.get("overtime_bonus_hours_to");e==="After Specific Hours"||e?.english==="After Specific Hours"?(i?.setValidators([M.required]),o?.clearValidators(),s?.clearValidators()):(o?.setValidators([M.required]),s?.setValidators([M.required]),i?.clearValidators()),i?.updateValueAndValidity({emitEvent:!1}),o?.updateValueAndValidity({emitEvent:!1}),s?.updateValueAndValidity({emitEvent:!1}),this.onZahlungsdetailsChange()}getValueByBonusType(t,e,i){t.get(i)?.value==="Prozent"&&t.patchValue({[e]:""},{emitEvent:!1}),this.onZahlungsdetailsChange()}calculateWorkingHours(){let t=this.templateSecondFormGroup.get("shift_start")?.value,e=this.templateSecondFormGroup.get("shift_end")?.value;if(!t||!e)return;let[i,o]=String(t).split(":").map(Number),[s,x]=String(e).split(":").map(Number),w=s*60+x-(i*60+o);w<0&&(w+=1440),this.templateSecondFormGroup.patchValue({working_hours:Math.floor(w/60),working_minutes:w%60,working_seconds:0},{emitEvent:!1}),this.onWorkingHoursInput()}onTimeInputChange(t,e){this.onZahlungsdetailsChange()}onTimeInputBlur(t,e){this.onZahlungsdetailsChange()}onPressLeftRightArrowSavingAccount(t,e){}add_overtime_bonus_section(){this.addOvertimeRow()}add_holiday_bonus_section(){this.addHolidayRow()}add_travel_bonus_section(){this.addTravelRow()}add_completion_bonus_section(){this.addCompletionRow()}requiredTravelField(t){this.onZahlungsdetailsChange()}requiredTravelTimeField(t){this.onZahlungsdetailsChange()}initWeekDayBonusSections(){let t=this.week_day_bonus_sections;if(!t.length){for(let e of be)t.push(yi(this.fb,e));t.length&&q(this.template_sections,this.fb,"week_day")}}selectedDayIndexChange(t){this.selectedDayIndex=t.index}add_week_day_bonus_section_child(t){let i=this.week_day_bonus_sections.at(t).get("week_day_bonus_section_childs");i.push(ms(this.fb)),this.afterFormArrayChange(i,"week_day_bonus_section_childs")}add_week_day_bonus_section(){}addWeekDaySection(){q(this.template_sections,this.fb,"week_day"),this.syncEmploymentSerialsAndPreview()}getValidDaysSubSection(){return this.week_day_bonus_sections.length?this.week_day_bonus_sections.controls.some(t=>(t.get("week_day_bonus_section_childs")?.length??0)>0):!1}weekDayBonusChildCount(t){return this.weekDayBonusChildren(t).length}isWeekDaySectionInvalid(t){let e=this.weekDayBonusChildren(t);return e.length?e.controls.some(i=>i.invalid&&(i.touched||this.showValidationIcons)):!1}isCollisionStepInvalid(){return this.week_day_bonus_sections.invalid}getCollisionChildIndex(t){return this.selectedCollisionChildIndex[t]??0}collisionChildIndexChange(t,e){this.selectedCollisionChildIndex[t]=e.index}collisionLeftHasAvailable(t,e,i){let o=t.get(e)?.value??[];return i.some(s=>!o.includes(s))}collisionRightEmpty(t,e){return(t.get(e)?.value??[]).length===0}collisionBonusLabel(t,e){return t==="give_overtime_bonus"?"\xDCberstundenbonus":t==="give_public_holiday_bonus"?"Feiertagsbonus":e||"Zuschlag"}
2goToEmploymentLeaveStepFromZuschlaege(){if(this.showValidationIcons=!0,!this.templateSecondFormGroup.valid){this.validationAlerts.invalidForm(this.templateSecondFormGroup);return}this.addWeekDaySection(),this.goToEmploymentLeaveStep()}goBackFromCollisionStep(){this.sectionHideShowClick("week_day",!0)}showCollisionStep(){let t=this.templateSecondFormGroup.value;return this.typeOfTemplate===1&&this.getValidDaysSubSection()&&!!(t.overtime_is_active||t.public_holiday_is_active)}onWeekDistributionChange(t,e){this.onWeekDayBonusChange()}onWeekDistributionTimeChange(t,e){this.onWeekDayBonusChange()}dragStarted(t,e){this.dragBonusItem=t,this.dragBonusField=e}drop(t,e){if(!this.dragBonusItem||!this.dragBonusField)return;let i=this.dragBonusField,o=e,s=[...o.get(i)?.value??[]];s.includes(this.dragBonusItem)||(s.push(this.dragBonusItem),o.patchValue({[i]:s})),this.dragBonusItem=null,this.dragBonusField=null,this.onWeekDayBonusChange()}removeColissionBonus(t,e,i){let o=t,s=[...o.get(e)?.value??[]];o.patchValue({[e]:s.filter(x=>x!==i)}),this.onWeekDayBonusChange()}add_leave_section(){let t=this.leave_sections;t.push(this.fb.group({leave_unit:[1,M.required],leave_type:["year"],leave_count:[20,M.required],hidden:[!0]})),q(this.template_sections,this.fb,"leaves"),this.afterFormArrayChange(t)}goToNext(t){if(t==="save"){this.saveEmploymentTemplate();return}t===2?this.goToEmploymentPaymentStep():t===3&&this.goToEmploymentBonusStep()}onEmploymentTypeChange(t){(t??this.templateTypeFormGroup.get("employment_type")?.value)==="freiberuflich"&&this.templateTypeFormGroup.patchValue({tariff_contract:"1",selected_tariff_plan:""}),this.buildContractPreview()}onTariffContractChange(){let t=this.templateTypeFormGroup.get("tariff_contract")?.value;String(t)==="1"&&this.templateTypeFormGroup.patchValue({selected_tariff_plan:""}),this.buildContractPreview()}goToEmploymentDetailsStep(){if(this.showValidationIcons=!0,!this.validateEmploymentFields()){this.validationAlerts.markAllAsTouched(this.templateTypeFormGroup),this.sweetAlert.custom({title:"Hinweis",content:"Bitte Besch\xE4ftigungsart und Tarifstatus ausf\xFCllen.",type:"warning",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"});return}setTimeout(()=>this.stepper?.next())}addEmploymentStep2Sections(){this.addPaymentGroupsSection(),q(this.template_sections,this.fb,"working_hours"),q(this.template_sections,this.fb,"joining"),this.changeFormControlSerials()}goToEmploymentPaymentStep(){if(this.showValidationIcons=!0,!this.templateFormGroup.valid){this.validationAlerts.invalidForm(this.templateFormGroup);return}this.addEmploymentStep2Sections(),setTimeout(()=>{this.initializeZahlungsdetailsSections(),this.stepper?.next()})}initializeZahlungsdetailsSections(){this.syncEmploymentSerialsAndPreview()}onZahlungsdetailsChange(){this.initializeZahlungsdetailsSections(),this.buildContractPreview()}isPanelVisible(t){return this.sectionHideShowGroup.get(t)?.value!==!1}togglePanel(t){let e=this.sectionHideShowGroup.get(t);e&&(e.setValue(!e.value),this.onZahlungsdetailsChange())}onWorkingHoursInput(){vi(this.templateSecondFormGroup),this.ensureZahlungsdetailsSection("working_hours"),this.onZahlungsdetailsChange()}onSavingAccountTimeInput(t,e,i,o=99){let s=t.target,x=s.value.replace(/\D/g,"").slice(0,2);if(x.length===2){let w=Math.min(parseInt(x,10)||0,o);x=String(w).padStart(2,"0")}this.templateSecondFormGroup.get(e)?.setValue(x,{emitEvent:!1}),s.value=x,x.length>=2&&i&&(i.focus(),i.select()),this.onZahlungsdetailsChange()}onSavingAccountTimeBlur(t,e,i=99){let o=t.target,s=o.value.replace(/\D/g,""),x=Math.min(parseInt(s,10)||0,i),w=String(x).padStart(2,"0");this.templateSecondFormGroup.get(e)?.setValue(w,{emitEvent:!1}),o.value=w,this.onZahlungsdetailsChange()}onTimeSegmentKeydown(t,e){let i=t.target;t.key==="Backspace"&&!i.value&&e&&(t.preventDefault(),e.focus(),e.select())}onFeatureToggle(t,e,i,o){this.templateSecondFormGroup.get(t)?.value&&(this.ensureZahlungsdetailsSection(e),i&&o&&!i.length&&i.push(o())),this.onZahlungsdetailsChange()}addOvertimeRow(){this.ensureZahlungsdetailsSection("overtime"),this.overtimeSections.push(mt(this.fb)),this.afterFormArrayChange(this.overtimeSections)}removeRow(t,e){t.length<=1||this.confirmBeforeRemove(this.getRemoveLabelForArray(t),()=>{t.removeAt(e),this.afterFormArrayChange(t)}
2)}addHolidayRow(){this.ensureZahlungsdetailsSection("holiday"),this.holidaySections.push(st(this.fb)),this.afterFormArrayChange(this.holidaySections)}addTravelRow(){this.ensureZahlungsdetailsSection("travel"),this.travelSections.push(ct(this.fb)),this.afterFormArrayChange(this.travelSections)}addCompletionRow(){this.ensureZahlungsdetailsSection("completion"),this.completionSections.push(dt(this.fb)),this.afterFormArrayChange(this.completionSections)}onJoiningChange(){this.ensureZahlungsdetailsSection("joining"),this.onZahlungsdetailsChange()}onShiftChange(){this.onFeatureToggle("shift_is_active","shift_timing")}onSavingAccountChange(){this.onFeatureToggle("saving_account_is_active","saving_account")}onPublicHolidayChange(){this.onFeatureToggle("public_holiday_is_active","public_holiday")}onOvertimeChange(){this.onFeatureToggle("overtime_is_active","overtime",this.overtimeSections,()=>mt(this.fb))}onHolidayChange(){this.onFeatureToggle("holiday_is_active","holiday",this.holidaySections,()=>st(this.fb))}onTravelChange(){this.onFeatureToggle("travel_is_active","travel",this.travelSections,()=>ct(this.fb))}onCompletionChange(){this.onFeatureToggle("completion_is_active","completion",this.completionSections,()=>dt(this.fb))}ensureZahlungsdetailsSection(t){q(this.template_sections,this.fb,t)}onWeekDayBonusChange(){this.syncEmploymentTemplateSections(),this.syncEmploymentSerialsAndPreview()}onLeaveChange(){this.syncEmploymentTemplateSections(),this.syncEmploymentSerialsAndPreview()}goToEmploymentBonusStep(){if(this.showValidationIcons=!0,!wi(this.templateSecondFormGroup)){this.validationAlerts.invalidForm(this.templateSecondFormGroup);return}this.initializeZahlungsdetailsSections(),setTimeout(()=>this.stepper?.next())}showFieldRequired(t){return!!t&&t.hasError("required")&&(t.touched||this.showValidationIcons)}getFieldErrorText(t){return`${this.validationAlerts.errors.find(i=>i.field_names.map(o=>o.toLowerCase()).includes(t.toLowerCase()))?.in_german??"Dieses Feld"} muss ausgef\xFCllt werden.`}goToEmploymentLeaveStep(){this.syncEmploymentSerialsAndPreview(),setTimeout(()=>this.stepper?.next())}saveEmploymentProgress(){this.persistTemplate(rt(Q(j({},this.templateSaveMeta()),{templateForm:this.templateFormGroup,typeForm:this.templateTypeFormGroup,secondForm:this.templateSecondFormGroup,thirdForm:this.templateThirdFormGroup,templateSections:this.template_sections,paymentGroups:this.payment_groups,isDraft:!0})))}saveEmploymentTemplate(){if(this.showValidationIcons=!0,!this.validateEmploymentFields()){this.sweetAlert.custom({title:"Hinweis",content:"Bitte Besch\xE4ftigungsart und Tarifstatus ausf\xFCllen.",type:"warning",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"});return}if(!this.templateFormGroup.valid||!this.templateSecondFormGroup.valid||!this.templateThirdFormGroup.valid){this.validationAlerts.markAllAsTouched(this.templateFormGroup),this.validationAlerts.markAllAsTouched(this.templateSecondFormGroup),this.validationAlerts.markAllAsTouched(this.templateThirdFormGroup),this.validationAlerts.invalidForm(this.templateFormGroup);return}let t=rt(Q(j({},this.templateSaveMeta()),{templateForm:this.templateFormGroup,typeForm:this.templateTypeFormGroup,secondForm:this.templateSecondFormGroup,thirdForm:this.templateThirdFormGroup,templateSections:this.template_sections,paymentGroups:this.payment_groups,isDraft:!1}));if(this.inlineMode){this.saveAndSend.emit(t);return}this.persistTemplate(t)}loadEmployeeContractTemplates(){this.companyId&&this.userService.getContractTemplates(ne.brand_id,this.companyId,"active","1").subscribe({next:t=>{this.employeeContractTemplates=t?.status==="200"&&Array.isArray(t.data)?t.data:[]},error:()=>{this.employeeContractTemplates=[]}})}applyValidatorsForTemplateType(t){let e=this.templateFormGroup.get("template_sections_html"),i=this.templateFormGroup.get("party1"),o=this.templateFormGroup.get("party2"),s=this.templateFormGroup.get("prefix"),x=this.templateFormGroup.get("template_prefix"),w=this.templateFormGroup.get("template_name"),V=this.templateFormGroup.get("template_title"),z=this.templateFormGroup.get("employee_signatures_required");t===1?(e?.clearValidators(),i?.clearValidators(),o?.clearValidators(),s?.setValidators([M.required]),x?.clearValidators(),w?.setValidators([M.required]),V?.setValidators([M.required]),z?.clearValidators()):t===2?(e?.clearValidators(),i?.clearValidators(),o?.clearValidators(),s?.setValidators([M.required]),x?.clearValidators(),w?.setValidators([M.required]),V?.setValidators([M.required]),z?.setValidators([M.required])):t===3?(z?.clearValidators(),e?.clearValidators(),i?.clearValidators(),o?.clearValidators(),s?.clearValidators(),x?.setValidators([M.required]),w?.setValidators([M.required]),V?.setValidators([M.required])):(e?.clearValidators(),i?.clearValidators(),o?.clearValidators(),s?.clearValidators(),x?.clearValidators(),z?.clearValidators()),[e,i,o,s,x,w,V,z].forEach(X=>X?.updateValueAndValidity({emitEvent:!1})),this.syncNestedFormValidatorsForTemplateType(t)}syncNestedFormValidatorsForTemplateType(t){this.payment_groups.controls.forEac
2h(e=>{let i=e,o=t===1;for(let s of["payment_group_name","payment_group_salary"]){let x=i.get(s);o?x?.setValidators([M.required]):x?.clearValidators(),x?.updateValueAndValidity({emitEvent:!1})}}),this.template_sections.controls.forEach(e=>{let i=e,o=i.get("sectionType")?.value,s=o==="first"||!o,x=i.get("heading"),w=i.get("content");t===3?(x?.clearValidators(),w?.clearValidators()):t===2&&s?(x?.setValidators([M.required]),w?.setValidators([M.required])):t===1?(x?.setValidators([M.required]),w?.clearValidators()):(x?.clearValidators(),w?.clearValidators()),x?.updateValueAndValidity({emitEvent:!1}),w?.updateValueAndValidity({emitEvent:!1})})}isVertragsvorlageInfoStepValid(){let t=["template_name","template_prefix","template_title"],e=!0;for(let i of t){let o=this.templateFormGroup.get(i);o?.markAsTouched({onlySelf:!0}),o?.valid||(e=!1)}return e}hasEnabledContractParty(){return hn(ot(this.contract_parties.value))}toggleSectionHidden(t){let e=this.template_sections.at(t);e?.patchValue({hidden:!e.value.hidden})}addTemplateSection(){let t=this.template_sections.at(this.template_sections.length-1);t&&!t.valid||(t&&t.patchValue({hidden:!1}),this.template_sections.push(this.createTemplateSection()),this.syncNestedFormValidatorsForTemplateType(this.typeOfTemplate),this.typeOfTemplate===1&&this.syncEmploymentSerialsAndPreview())}removeTemplateSection(t){this.firstTemplateSectionsCount()<=1||this.confirmBeforeRemove("diesen Abschnitt",()=>{this.template_sections.removeAt(t),this.typeOfTemplate===1?this.syncEmploymentSerialsAndPreview():this.buildContractPreview(),this.cdr.detectChanges()})}loadDrivingLicenseClasses(){this.drivingLicenseClasses=[...it],this.licenseClassesLoading=!1}loadServicesByLicenseClasses(){if(!this.selectedLicenseClassIds.length){this.filteredPackages=[],this.availableSingleServices=[],this.buildContractPreview();return}this.packagesLoading=!0,this.filteredPackages=fn(this.selectedLicenseClassIds),this.availableSingleServices=[],this.packagesLoading=!1,this.buildContractPreview()}loadExistingStudentContractCombinations(){this.companyId&&(this.existingStudentCombinationsLoading=!0,this.userService.getContractTemplates(ne.brand_id,this.companyId,"all","3").subscribe({next:t=>{this.existingStudentTemplates=t?.status==="200"&&Array.isArray(t.data)?t.data:[],this.existingStudentCombinationsLoading=!1},error:()=>{this.existingStudentTemplates=[],this.existingStudentCombinationsLoading=!1}}))}toggleLicenseClass(t){if(this.isLicenseClassSelectionBlocked(t)&&!this.isLicenseClassSelected(t))return;let e=new Set(this.selectedLicenseClassIds);e.has(t)?e.delete(t):e.add(t),this.selectedLicenseClassIds=this.sanitizeLicenseClassSelection([...e]),this.filteredPackages=[],this.buildContractPreview(),this.selectedLicenseClassIds.length&&this.loadServicesByLicenseClasses()}isWeekDayOffSelected(t){return(this.templateThirdFormGroup.get("week_day_off")?.value??[]).some(i=>i?.english===t.english)}toggleWeekDayOff(t){let e=this.templateThirdFormGroup.get("week_day_off");if(!e)return;let i=[...e.value??[]],o=i.findIndex(s=>s?.english===t.english);o>=0?i.splice(o,1):i.push(t),e.setValue(i)}sanitizeLicenseClassSelection(t){let e=Ee(t);return Te(e,this.existingStudentTemplates,this.templateId).duplicate&&!this.isLicenseClassSelected(t[t.length-1]??"")?this.selectedLicenseClassIds:t}isLicenseClassSelected(t){return this.selectedLicenseClassIds.includes(t)}isLicenseClassSelectionBlocked(t){let e=this.selectedLicenseClassIds.includes(t)?this.selectedLicenseClassIds.filter(o=>o!==t):[...this.selectedLicenseClassIds,t],i=Ee(e);return Te(i,this.existingStudentTemplates,this.templateId).duplicate}hasDuplicateLicenseClassSelection(){let t=Ee(this.selectedLicenseClassIds);return Te(t,this.existingStudentTemplates,this.templateId).duplicate}getDuplicateContractTooltipForClass(t){return this.isLicenseClassSelectionBlocked(t)?this.getDuplicateContractTooltipForCurrentSelection():""}getDuplicateContractTooltipForCurrentSelection(){let t=Ee(this.selectedLicenseClassIds),e=Te(t,this.existingStudentTemplates,this.templateId);return e.duplicate?`Bereits erstellt: ${e.templateName??"Vertragsvorlage"}
2 f\xFCr diese Produktkategorien-Kombination.`:""}getPackagesPricingTotals(){return bn(this.filteredPackages)}formatCurrency(t){return yn(t)}goToVertragsvorlagePackageStep(){if(this.showValidationIcons=!0,!this.isVertragsvorlageInfoStepValid()){this.validationAlerts.invalidForm(this.templateFormGroup);return}if(!this.hasEnabledContractParty()){this.sweetAlert.custom({title:"Hinweis",content:"Mindestens eine Partei muss aktiviert sein.",type:"warning",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"});return}this.loadDrivingLicenseClasses(),this.loadExistingStudentContractCombinations(),this.selectedLicenseClassIds.length&&this.loadServicesByLicenseClasses(),setTimeout(()=>this.stepper?.next())}saveVertragsvorlageProgress(){if(this.showValidationIcons=!0,!this.hasEnabledContractParty()){this.sweetAlert.custom({title:"Hinweis",content:"Mindestens eine Partei muss aktiviert sein.",type:"warning",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"});return}this.persistTemplate(this.buildVertragsvorlagePayload(!0))}saveVertragsvorlageTemplate(){if(this.showValidationIcons=!0,!this.selectedLicenseClassIds.length){this.sweetAlert.custom({title:"Hinweis",content:"Bitte w\xE4hlen Sie mindestens eine Produktkategorie aus.",type:"warning",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"});return}if(this.hasDuplicateLicenseClassSelection()){this.sweetAlert.custom({title:"Hinweis",content:this.getDuplicateContractTooltipForCurrentSelection(),type:"warning",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"});return}if(!this.filteredPackages.length){this.sweetAlert.custom({title:"Hinweis",content:"Keine Pakete f\xFCr die ausgew\xE4hlten Klassen vorhanden.",type:"warning",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"});return}if(!this.templateFormGroup.valid){this.validationAlerts.invalidForm(this.templateFormGroup);return}this.persistTemplate(this.buildVertragsvorlagePayload(!1))}templateSaveMeta(){return{brandId:ne.brand_id,companyId:this.companyId,addedBy:this.currentUser?._id,versionNo:this.versionNo,templateId:this.templateId}}buildVertragsvorlagePayload(t){return Fn(this.templateFormGroup.value,at(this.templateFormGroup.value.template_sections),this.selectedLicenseClassIds,this.drivingLicenseClasses,Q(j({},this.templateSaveMeta()),{isDraft:t}),this.filteredPackages)}resetFormStateForContractTypeSwitch(){this.isInitializing=!0,this.selectedLicenseClassIds=[],this.filteredPackages=[],this.availableSingleServices=[],this.showValidationIcons=!1,this.templateFormGroup.reset(),this.contract_parties.clear(),this.contract_parties.push(this.createPartyGroup(0)),this.contract_parties.push(this.createPartyGroup(1)),this.template_sections.clear(),this.payment_groups.clear(),this.payment_groups.push(ie(this.fb)),this.templateFormGroup.patchValue({party1_sign_required:!0,party2_sign_required:!0,employee_signatures_required:!0});let t=this.templateTypeFormGroup.get("selectedCardType")?.value;this.templateTypeFormGroup.reset(ze(this.fb).getRawValue()),t&&this.templateTypeFormGroup.patchValue({selectedCardType:t}),this.applyTypeFormValidators(this.typeOfTemplate),this.templateSecondFormGroup.reset(pt(this.fb).getRawValue()),this.templateThirdFormGroup.reset(Le(this.fb).getRawValue()),this.contractPreviewData.set(null),this.isInitializing=!1}applyTypeFormValidators(t){let e=this.templateTypeFormGroup.get("employment_type"),i=this.templateTypeFormGroup.get("tariff_contract");t===1?(e?.setValidators([M.required]),i?.setValidators([M.required])):(e?.clearValidators(),i?.clearValidators()),e?.updateValueAndValidity({emitEvent:!1}),i?.updateValueAndValidity({emitEvent:!1})}applyTemplateTypeFromApi(t){let e=on(t);this.typeOfTemplate=Qe(e),this.lastSelectedCardType=e,this.templateTypeFormGroup.patchValue({selectedCardType:e})}getPreviewEmployerSignatureUrl(){return this.typeOfTemplate===3?null:this.previewEmployerSignatureUrl}openForCreate(){this.resetForm(),this.ensureCompanyPreviewForModal(),this.templateId="",this.typeOfTemplate=this.inl
2ineMode?1:0,this.inlineMode&&(this.lastSelectedCardType="arbeitsvertrag",this.templateTypeFormGroup.patchValue({selectedCardType:"arbeitsvertrag"}),this.handleTemplateTypeChange(1),this.loadEmployeeContractTemplates()),this.isFormDirty=!1,this.buildContractPreview(),this.inlineMode||this.showModal(),this.resetStepperToStart()}openForEdit(t){this.resetForm(),this.ensureCompanyPreviewForModal(),this.templateId=t?._id??"",this.applyTemplateTypeFromApi(t?.template_type),this.handleTemplateTypeChange(this.typeOfTemplate),this.typeOfTemplate===3?(this.loadContractPartiesFromTemplate(t),this.loadTemplateSectionsFromApi(t?.template_sections),this.selectedLicenseClassIds=this.extractLicenseClassIds(t),this.templateFormGroup.patchValue({template_id:t?._id,template_name:t?.template_name,template_title:t?.template_title,template_prefix:t?.template_prefix??t?.prefix,prefix:t?.prefix??t?.template_prefix,version_no:t?.version_no,employee_signatures_required:t?.employee_signatures_required??!0}),this.initVertragsvorlageDefaults(),this.loadDrivingLicenseClasses(),this.loadExistingStudentContractCombinations(),this.selectedLicenseClassIds.length&&this.loadServicesByLicenseClasses()):this.typeOfTemplate===2?this.loadNormalTemplateFromApi(t):this.typeOfTemplate===1?this.loadEmploymentTemplateFromApi(t):this.templateFormGroup.patchValue({template_id:t?._id,template_name:t?.template_name,template_title:t?.template_title,prefix:t?.prefix,version_no:t?.version_no}),this.isFormDirty=!1,this.buildContractPreview(),this.inlineMode||this.showModal(),this.resetStepperToDetails()}extractLicenseClassIds(t){let e=new Set(it.map(o=>o._id)),i=(t?.selected_license_classes??[]).map(o=>o._id).filter(o=>e.has(o));return i.length?i:(t?.driving_license_classes??[]).filter(o=>e.has(o))}loadContractPartiesFromTemplate(t){let e=t?.contract_parties??[];this.contract_parties.clear();for(let i=0;i<2;i++){let o=e[i]??{};this.contract_parties.push(this.fb.group({enabled:[o.enabled!==!1],party_name:[o.party_name??""],signature_required:[o.signature_required===!1||o.signature_required==="no"?"no":"yes"]}))}}loadEmploymentTemplateFromApi(t){this.isInitializing=!0,Cn(this.template_sections,this.fb,t?.template_sections??[]),this.initEmploymentTemplateDefaults(),this.payment_groups.clear();let e=t?.payment_groups?.payment_group_sections??[];if(e.length)for(let U of e)this.payment_groups.push(this.fb.group({payment_group_name:[U.payment_group_name??"",M.required],payment_group_salary:[U.payment_group_salary??"",M.required],payment_group_allowance:[U.payment_group_allowance??""],payment_group_salary_type:[Pe(U.payment_group_salary_type,"Per Month"),M.required],hidden:[!1]}));else this.payment_groups.length||this.payment_groups.push(ie(this.fb));let i=t?.selected_tariff_plan??t?.tariff_info?._id??"",o=t?.tariff_info??this.tariffAllList.find(U=>U._id===i)??(i?{_id:i,tariff_class:i}:null);this.templateFormGroup.patchValue({template_id:t?._id,template_name:t?.template_name,template_title:t?.template_title,prefix:t?.prefix??t?.template_prefix,version_no:t?.version_no}),this.templateTypeFormGroup.patchValue({employment_type:t?.employment_type??"",tariff_contract:t?.tariff_contract!=null?String(t.tariff_contract):"",selected_tariff_plan:i,selectedTariffPlan:o,contract_type:t?.contract_type??""});let s=t?.working_hours??{},x=t?.joining??{},w=t?.shift_timing??{},V=t?.saving_account??{},z=t?.public_holiday??{},X=t?.overtime_bonus??{},ue=t?.holiday??{},ge=t?.travel_bonus??{},Ce=t?.duration_completion_bonus??{},ae=t?.weekday_bonus??{};this.templateSecondFormGroup.patchValue({working_hours:s.working_hours??40,working_minutes:s.working_minutes??0,working_seconds:s.working_seconds??0,working_hours_type:ss(s.working_hours_type),joining_date:un(x.joining_date),shift_start:w.shift_start??"",shift_end:w.shift_end??"",shift_is_active:!!w.shift_is_active,saving_account_is_active:V.saving_account_is_active!==!1,saving_account_minimum_hours:V.saving_account_minimum_hours??"00",saving_account_minimum_minutes:V.saving_account_minimum_minutes??"00",saving_account_minimum_seconds:V.saving_account_minimum_seconds??"00",saving_account_maximum_hours:V.saving_account_maximum_hours??"00",saving_account_maximum_minutes:V.saving_account_maximum_minutes??"00",saving_account_maximum_seconds:V.saving_account_maximum_seconds??"00",public_holiday_is_active:!!z.public_holiday_is_active,public_holiday_bonus:z.public_holiday_bonus??"",public_holiday_bonus_type:z.public_holiday_bonus_type??"Prozent",public_holiday_bonus_rate:cs(z.public_holiday_bonus_rate),overtime_is_active:!!(X.overt
2ime_is_active??X.overtime_bonus_is_active),holiday_is_active:!!(ue.holiday_bonus_is_active??ue.holiday_is_active),holiday_bonus_name:ue.holiday_bonus_name??"",travel_is_active:!!(ge.travel_bonus_is_active??ge.travel_is_active),travel_bonus_name:ge.travel_bonus_name??"",completion_is_active:!!(Ce.completion_bonus_is_active??Ce.completion_is_active),completion_bonus_name:Ce.completion_bonus_name??"",week_day_is_active:!!(ae.week_day_bonus_is_active??ae.week_day_is_active),payment_groups_serial:t?.payment_groups?.payment_groups_serial??null,working_hours_serial:s.working_hours_serial??null,joining_serial:x.joining_serial??null,shift_timing_serial:w.shift_timing_serial??null,saving_account_serial:V.saving_account_serial??null,public_holiday_serial:z.public_holiday_serial??null,overtime_bonus_serial:X.overtime_bonus_serial??null,holiday_bonus_serial:ue.holiday_bonus_serial??null,travel_bonus_serial:ge.travel_bonus_serial??null,completion_bonus_serial:Ce.completion_bonus_serial??null,week_day_bonus_serial:ae.week_day_bonus_serial??null}),this.hydrateBonusSectionsFromApi("overtime_bonus_sections",X.overtime_bonus_sections??[],mt),this.hydrateBonusSectionsFromApi("holiday_bonus_sections",ue.holiday_bonus_sections??[],st),this.hydrateBonusSectionsFromApi("travel_bonus_sections",ge.travel_bonus_sections??[],ct),this.hydrateBonusSectionsFromApi("completion_bonus_sections",Ce.completion_bonus_sections??[],dt),this.week_day_bonus_sections.clear();let ut=ae.week_day_bonus_sections??[];if(ut.length)for(let U of ut){let ft=bi(U.week_day);if(!ft)continue;let ht=yi(this.fb,ft),Fi=ht.get("week_day_bonus_section_childs");for(let K of U.week_day_bonus_section_childs??[])Fi.push(this.fb.group({week_day_bonus_child_name:[K.week_day_bonus_child_name??"",M.required],week_day_distribution:[_s(K.week_day_distribution),M.required],week_day_distribution_time:[K.week_day_distribution_time??null],week_day_distribution_time_hours:[K.week_day_distribution_time_hours??""],week_day_distribution_time_from:[K.week_day_distribution_time_from??""],week_day_distribution_time_to:[K.week_day_distribution_time_to??""],week_day_bonus_rate:[Pe(K.week_day_bonus_rate,"Per Hour"),M.required],week_day_bonus_type:[K.week_day_bonus_type??"Prozent",M.required],week_day_bonus:[K.week_day_bonus??"",M.required],this_bonus_vs_overtime_bonus:[K.this_bonus_vs_overtime_bonus??["give_this_bonus"]],this_bonus_vs_public_holiday_bonus:[K.this_bonus_vs_public_holiday_bonus??["give_this_bonus"]],this_bonus_vs_both_bonus:[K.this_bonus_vs_both_bonus??["give_this_bonus"]],hidden:[K.hidden??!0]}));this.week_day_bonus_sections.push(ht)}else(ae.week_day_bonus_is_active||ae.week_day_is_active)&&this.initWeekDayBonusSections();let gt=t?.week_day_off?.week_day_off??t?.week_day_off??[],Ti=(Array.isArray(gt)?gt:[]).map(U=>bi(U)).filter(Boolean);this.leave_sections.clear();let Ct=t?.leave?.leave_sections??[];if(Ct.length)for(let U of Ct)this.leave_sections.push(this.fb.group({leave_unit:[U.leave_unit??1,M.required],leave_type:[U.leave_type?.english??U.leave_type??"year"],leave_count:[U.leave_count??20,M.required],hidden:[!1]}));else this.leave_sections.push(this.fb.group({leave_unit:[1,M.required],leave_type:["year"],leave_count:[20,M.required],hidden:[!0]}));this.templateThirdFormGroup.patchValue({week_day_off:Ti,notice_period:t?.notice_period??14,leave_is_active:t?.leave?.leave_is_active??!0,week_day_off_serial:t?.week_day_off?.week_day_off_serial??null,leave_serial:t?.leave?.leave_serial??null,notice_period_serial:t?.notice_period_serial??null}),this.isInitializing=!1,this.changeFormControlSerials()}hydrateBonusSectionsFromApi(t,e,i){let o=this.templateSecondFormGroup.get(t);if(o.clear(),!!e?.length)for(let s of e){let x=i(this.fb);x.patchValue(Q(j({},s),{hidden:s.hidden??!0})),o.push(x)}}loadNormalTemplateFromApi(t){let i=(Array.isArray(t?.template_sections)?t.template_sections:[]).filter(s=>(!s.sectionType||s.sectionType==="first")&&!de(s.sectionType));i.length?this.loadTemplateSectionsFromApi(i):t?.template_sections_html?.trim()?(this.template_sections.clear(),this.template_sections.push(this.fb.group({heading:["Vertrag",M.required],content:[t.template_sections_html,M.required],hidden:[!1],sectionType:["first"]}))):this.initNormalTemplateDefaults();let o=t?.employee_signatures_required;o===void 0&&t?.party2_sign_required!==void 0&&(o=t.party2_sign_required),this.templateFormGroup.patchValue({template_id:t?._id,template_name:t?.template_name,template_title:t?.template_title,prefix:t?.prefix??t?.template_prefix,version_no:t?.ver
2sion_no,employee_signatures_required:o??!0})}loadTemplateSectionsFromApi(t){this.template_sections.clear();let i=(Array.isArray(t)?t:[]).filter(s=>(!s.sectionType||s.sectionType==="first")&&!de(s.sectionType)),o=i.length?i:[{heading:"",content:"",sectionType:"first"}];for(let s of o)this.template_sections.push(this.fb.group({heading:[s.heading??"",M.required],content:[s.content??"",M.required],hidden:[!0],sectionType:["first"]}))}close(){this.inlineMode||this.confirmClose()}confirmClose(){let t=this.isFormDirty?"Alle von Ihnen ausgef\xFCllten Informationen werden gel\xF6scht.":"M\xF6chten Sie die Vorlagenerstellung wirklich abbrechen?";this.sweetAlert.custom({title:"Bist du sicher ?",content:t,type:"warning",isHtml:!1,showCancel:!0,confirmText:"Ja, schlie\xDFen",cancelText:"Abbrechen",confirmButtonClass:"btn-cancel",cancelButtonClass:"btn-primary",disableClose:!0}).subscribe(e=>{e&&this.dismissModal()})}dismissModal(){this.allowModalClose=!0,this.hideModal(),setTimeout(()=>{this.allowModalClose=!1})}buildContractPreview(){if(!this.templateFormGroup||!this.typeOfTemplate){this.contractPreviewData.set(null);return}let t=this.resolvePreviewCompanyDetails(),e=this.brandDetails?.email,i=this.templateFormGroup.value,o=null;if(this.typeOfTemplate===2){let s=(this.template_sections.value??[]).filter(V=>(V.sectionType==="first"||!V.sectionType)&&!de(V.sectionType)).map(V=>({heading:V.heading??"",content:V.content??"",sectionType:"first"})),w=s.some(V=>V.content?.trim()||V.heading?.trim())?"":i.template_sections_html?.trim();o=kn({templateTitle:i.template_title,prefix:i.prefix,version:i.version_no||this.versionNo,sections:w?void 0:an(s),templateSectionsHtml:w||void 0,employeeSignaturesRequired:i.employee_signatures_required,companyDetails:t,brandEmail:e,useNeoloopLogo:!this.previewCompanyDetails?.company_name})}else if(this.typeOfTemplate===3){let s=ot(i.contract_parties),x=xn(at(i.template_sections)),w=this.drivingLicenseClasses.filter(z=>this.selectedLicenseClassIds.includes(z._id)),V=w.length&&this.filteredPackages.length?En({selectedClasses:w,packages:this.filteredPackages,singleServices:this.availableSingleServices,parties:s}):null;o=Pn({templateTitle:i.template_title,prefix:i.template_prefix||i.prefix,version:i.version_no||this.versionNo,contractParties:s,sections:x,vertragsvorlageDetails:V,selectedLicenseClasses:w,companyDetails:t,brandEmail:e})}else this.typeOfTemplate===1&&(this.ensureEmploymentPreviewSections(),o=Vn({templateForm:this.templateFormGroup,typeForm:this.templateTypeFormGroup,secondForm:this.templateSecondFormGroup,thirdForm:this.templateThirdFormGroup,templateSections:this.template_sections,paymentGroups:this.payment_groups,version:i.version_no||this.versionNo,companyDetails:t,brandEmail:e,userInfo:this.inlineEmployeeUserInfo??void 0}));this.contractPreviewData.set(o)}save(){if(this.typeOfTemplate===2){if(this.showValidationIcons=!0,!this.templateFormGroup.valid){this.validationAlerts.invalidForm(this.templateFormGroup);return}this.persistTemplate(Tn(this.templateFormGroup.value,this.template_sections.value,this.templateSaveMeta()))}}persistTemplate(t){let e=t.template_id?"updateContractTemplate":"addContractTemplate";$("#loaderouterid").css("display","flex"),this.userService[e](t).subscribe({next:i=>{if($("#loaderouterid").css("display","none"),i.status==="200"){let o=!!t.template_id;this.sweetAlert.custom({title:"Vorlage erfolgreich "+(o?"aktualisiert":"hinzugef\xFCgt")+".",content:`Vorlage \u201E${t.template_name}" wurde gespeichert.`,type:"success",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"}).subscribe(()=>{this.dismissModal(),this.saved.emit()})}},error:()=>{$("#loaderouterid").css("display","none"),this.sweetAlert.custom({title:"Fehler",content:"Die Vorlage konnte nicht gespeichert werden.",type:"error",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success"})}})}loadBrandAndVersion(t){let e=t?.refreshVersionOnly===!0;!e&&!this.brandDetailsRequested&&(this.brandDetailsRequested=!0,this.subscriptions.add(this.userService.get_brand_by_id({brand_id:ne.brand_id}).subscribe(i=>{this.brandDetails=i?.length>0?i[0]:{},this.buildContractPreview()}))),!(!e&&(this.versionNumberLoaded||this.versionNumberLoadInFlight))&&(e&&this.versionNumberLoadInFlight||(this.versionNumberLoadInFlight=!0,this.subscriptions.add(this.userService.contractTemplateVersionNumber(ne.brand_id).subscribe({next:i=>{this.versionNumberLoadInFlight=!1,this.versionNumberLoaded=!0,this.versionNo=i?.data??1,this.buildContractPreview()},error:()=>{this.versionNumberLoadInFlight=!1}}))))}loadCompanyPreviewDetails(t=!1){this.companyId&&(!t&&(this.previewCompanyLoadInFlight||this.previewCompanyLoadedFor===this.companyId)||(this.previewCompanyLoadInFlight=!0,this.subscriptions.add(this.userService.getMainCompanyDetailsByCompanyId(this.companyId).subscribe({next:e=>{this.previewCompanyLoadInFlight=!1,this.previewCompanyLoadedFor=this.companyId;let i=e?.data??e;this.companyCountryId=i?.country_id??i?.country??"";let o=this.mapCompanyApiToPreview(i),s=i?.ceo_signatures??i?.ceo_signature??i?.companyData?.ceo_signatures;this.previewEmployerSignatureUrl=s?String(s).trim():null,this.applyCompanyLogoToPreview(i,o),this.buildContractPreview()},error:()=>{this.previewCompanyLoadInFlight=!1,this.previewCompanyLoadedFor=null,this.previewCompanyDetails=null,this.previewEmployerSignatureUrl=null,this.buildContractPreview()}}))))}applyCompanyLogoToPreview(t,e){let i=Fe(t);if(i){this.previewCompanyDetails=Q(j({},e),{logo:i});return}this.previewCompanyDetails=e;let o=vn(t);o&&this.subscriptions.add(this.userService.get_document_url_by_document_unique_id({document_unique_id:o}).subscribe({next:s=>{let x=String(s?.response??s?.data??"").trim();!x||!this.previewCompanyDetails||(this.previewCompanyDetails=Q(j({},this.previewCompanyDetails),{logo:x}),this.buildContractPreview())}}))}mapCompanyApiToPreview(t){if(!t)return{};let e=(Array.isArray(t.ceos)?t.ceos:[]).map(o=>({firstname:o?.firstname??o?.first_name??"",lastname:o?.lastname??o?.last_name??""}));!e.length&&(t.ceo_firstname||t.ceo_lastname)&&e.push({firstname:t.ceo_firstname??"",lastname:t.ceo_lastname??""});let i=Array.isArray(t.bank_details)?t.bank_details:[];return{company_name:t.company_name??t.name??"",logo:Fe(t),street:t.street??"",streetNumber:t.streetNumber??t.street_number??"",postCode:t.postCode??t.postal_code??t.plz??"",city:t.city??"",country:t.country??"",register_number:t.register_number??"",register_location:t.register_location??t.register_Place??"",vat_id_number:t.vat_id_number??t.vat_id??"",tax_office:t.tax_office??t.tax_Office??"",company_email:t.company_email??t.email??"",website_url:t.website_url??t.website??"",ceos:e,bank_details:i.map(o=>({bank_name:o?.bank_name??o?.name??"",iban:o?.iban??"",bic:o?.bic??""}))}}mapBrandCompanyToPreview(){let t=this.brandDetails?.company_info?.[0];if(!t)return;let e=Fe(this.brandDetails)||Fe(t)||String(this.brandDetails?.logo_url??"").trim();return{company_name:t.name??t.company_name??"",logo:e,street:t.street??"",streetNumber:t.streetNumber??"",postCode:t.postCode??"",city:t.city??"",country:t.country??"",register_number:t.register_number??"",register_location:t.register_location??"",vat_id_number:t.vat_id_number??"",tax_office:t.tax_office??"",ceos:t.ceos??[],bank_details:t.bank_details??[]}}resolvePreviewCompanyDetails(){return this.previewCompanyDetails?.company_name?this.previewCompanyDetails:this.mapBrandCompanyToPreview()}resetForm(){this.templateId="",this.typeOfTemplate=0,this.isExpanded=!1,this.templateFormGroup.reset(),this.templateFormGroup.patchValue({party1_sign_required:!0,party2_sign_required:!0}),this.templateTypeFormGroup.patchValue({selectedCardType:""}),this.lastSelectedCardType="",this.selectedLicenseClassIds=[],this.filteredPackages=[],this.showValidationIcons=!1,this.contract_parties.clear(),this.contract_parties.push(this.createPartyGroup(0)),this.contract_parties.push(this.createPartyGroup(1)),this.template_sections.clear(),this.payment_groups.clear(),this.payment_groups.push(ie(this.fb)),this.templateTypeFormGroup.reset(ze(this.fb).getRawValue()),this.applyTypeFormValidators(0),this.templateSecondFormGroup.reset(pt(this.fb).getRawValue()),this.templateThirdFormGroup.reset(Le(this.fb).getRawValue()),this.contractPreviewData.set(null)}resetStepperToStart(){setTimeout(()=>{this.stepper&&(this.stepper.selectedIndex=0)})}
2resetStepperToDetails(){setTimeout(()=>{if(!this.stepper)return;let t=!!this.templateId||this.inlineMode;this.stepper.selectedIndex=0,t&&this.stepper.steps.length>1&&(this.stepper.selectedIndex=0)})}showModal(){let t=$("#contractManagementModal");t.off("hide.bs.modal.contractCloseGuard"),t.on("hide.bs.modal.contractCloseGuard",e=>{this.allowModalClose||(e.preventDefault(),e.stopImmediatePropagation(),this.confirmClose())}),t.modal("show"),t.appendTo("body")}hideModal(){$("#contractManagementModal").modal("hide"),$("#contractManagementModal").appendTo("#contractManagementModalParent"),this.resetForm(),this.isFormDirty=!1}static{this.\u0275fac=function(e){return new(e||n)(N(en),N(ci),N(Be),N(Ne),N(In),N(Ut),N(At),N(Re))}}static{this.\u0275cmp=re({type:n,selectors:[["app-contract-management-modal"]],viewQuery:function(e,i){if(e&1&&Ve(ha,5),e&2){let o;Ie(o=Oe())&&(i.stepper=o.first)}},inputs:{companyId:"companyId",inlineMode:"inlineMode",inlineEmployeeUserInfo:"inlineEmployeeUserInfo"},outputs:{saved:"saved",saveAndSend:"saveAndSend"},features:[Ot([{provide:Yn,useValue:{overlayPanelClass:"contract-mgmt-select-panel"}}]),St],decls:8,vars:2,consts:[["contractFormContent",""],["unsupportedTypeMessage",""],["stepper",""],["employmentSectionHeading",""],["minHours",""],["minMinutes",""],["minSeconds",""],["maxHours",""],["maxMinutes",""],["maxSeconds",""],["shiftStartPicker",""],["shiftEndPicker",""],["joiningDatePicker",""],["collisionDragBlock",""],["id","contractManagementModalParent"],[1,"contract-form-inline","addContractManagementModal",3,"expanded-layout"],["id","contractManagementModal","tabindex","-1","role","dialog","aria-labelledby","contractManagementModalTitle","data-bs-backdrop","static","data-bs-keyboard","false",1,"modal","fade","addContractManagementModal",2,"z-index","1050"],["id","addtemplate_heading_parent",1,"add-templateModal"],[1,"contract-form-inline","addContractManagementModal"],[4,"ngTemplateOutlet"],["role","document",1,"modal-dialog","modal
2-dialog-centered","modal-custom"],[1,"modal-content"],[1,"modal-header"],["id","contractManagementModalTitle",1,"neoloop-gradient-font","mb-0"],["type","button","aria-label","Close",1,"close",3,"click"],["src","../assets/closeModel.svg","alt","Close",2,"width","20px","height","20px","display","block"],[1,"modal-body"],[1,"row","m-0","contract-form-layout","time-surcharges"],[1,"contract-column-panel","contract-form-panel"],[1,"contract-column-panel__header"],[1,"contract-column-panel__title","d-flex","align-items-center","mb-0","justify-content-between"],[1,"d-flex","align-items-center"],["src","assets/infoIcon.svg","alt","",1,"mr-1","flip-image"],["type","button",1,"btn","btn-sm","button-primary","botton-hover","contract-expand-toggle-btn",3,"click"],[1,"d-none","d-sm-inline","contract-expand-toggle-label"],["alt","","aria-hidden","true",1,"contract-expand-toggle-icon",3,"src"],[1,"contract-column-panel__body","contract-form-scroll"],[1,"contract-form-scroll-inner"],[1,"contract-stepper",3,"linear","orientation"],["matStepperIcon","edit"],["label","Vorlagenart",4,"ngIf"],["label","Vorlagedetails",4,"ngIf"],["label","Arbeitsvertrags ausw\xE4hlen",4,"ngIf"],["label","Zahlungsdetails",4,"ngIf"],["label","Zuschl\xE4ge",4,"ngIf"],["label","Zuschlagseinstellungen",4,"ngIf"],["label","Urlaubdetails",4,"ngIf"],["label","Vertragsinformationen",4,"ngIf"],["label","Paketauswahl",4,"ngIf"],["class","col-xl-5",4,"ngIf"],[1,"contract-section-and-content","small","text-secondary","mb-1"],[1,"group-heading-container","mb-2"],[1,"m-0","text-secondary","small"],["role","button",1,"fa","fa-pencil","text-secondary","links1",3,"click","matTooltip"],["label","Vorlagenart"],[1,"step-content","px-2","py-2",3,"formGroup"],[1,"field-heading-parent"],[1,"field-heading","d-flex","align-items-center"],["src","assets/infoIcon.svg","alt","",1,"me-2","flip-image"],[1,"p-3"],[1,"row","g-3"],[1,"col-md-4"],[1,"template-type-box","field-heading-parent",3,"click"],[1,"template-box-content","text-center","py-4"],["src","../assets/plus1.svg","alt","",1,"template-plus-icon","mb-2"],[1,"template-box-title","mb-0"],["label","Vorlagedetails"],[1,"step-content","px-1","py-2"],[3,"formGroup"],[1,"row"],[1,"col-sm-6","mb-3"],[1,"field-heading-parent","h-100"],[1,"field-heading"],[1,"p-2"],["appearance","outline",1,"w-100"],["matInput","","formControlName","template_name"],[1,"p-2","d-flex","align-items-center"],["appearance","outline",1,"w-100","contract-prefix-field"],["matInput","","formControlName","prefix"],["matSuffix","",1,"ver-suffix"],["src","assets/infoIcon.svg","role","button","matTooltipPosition","above",1,"links1","contract-prefix-info-icon",3,"matTooltip"],[1,"col-sm-12","mb-3"],["matInput","","formControlName","template_title"],["formControlName","employee_signatures_required",1,"d-flex","flex-wrap","gap-3"],[3,"value"],[1,"text-danger","small","mb-0","mt-1"],["formArrayName","template_sections"],[1,"contract-array-actions-row","mb-3"],["type","button",1,"btn","btn-sm","button-primary","contract-step-btn","contract-add-section-btn",3,"click","disabled"],["src","assets/plus1.svg","alt","","aria-hidden","true",1,"template-plus-icon","contract-add-section-icon"],[1,"contract-step-footer"],["type","button","matStepperPrevious","",1,"btn","btn-sm","button-primary"],[1,"contract-step-footer-actions"],["type","button",1,"btn","btn-sm","button-primary",3,"click"],[1,"fa","fa-floppy-o","contract-btn-icon"],[1,"field-heading-parent","mb-3"],["role","button",1,"field-heading","d-flex","align-items-center","justify-content-between",3,"click"],[1,"fa",3,"ngClass"],[1,"p-2",3,"formGroupName"],["matInput","","formControlName","heading"],["matInput","","rows","4","formControlName","content"],[1,"contract-row-remove"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"fa","fa-chevron-left","contract-btn-icon","contract-btn-icon--arrow","contract-btn-icon--left"],["label","Arbeitsvertrags ausw\xE4hlen"],[1,"field-heading","d-flex","align-items-center","justify-content-between"],[1,"fa","fa-exclamation","float-end","mb-0"],["formControlName","employment_type",1,"employment-type-radios","contract-type-radios",3,"change"],[1,"employment-type-error"],["formControlName","tariff_contract",1,"contract-type-radios",3,"change"],["value","1"],["value","0"],["type","button",1,"btn","btn-sm","button-primary",3,"click","disabled"],[1,"fa","fa-chevron-right","contract-btn-icon","contract-btn-icon--arrow"],[1,"table-responsive"],[1,"table","table-striped","mb-0"],[1,"mt-2","text-center","mb-0"],[1,"pagination","m-0","pagerAction","justify-content-end","mt-2"],[1,"text-danger","mt-2","mb-0"],["type","button",1,"btn","btn-sm",3,"click"],[1,"page-item"],[1,"page-link",3,"click"],[1,"page-item",3,"active"],[1,"text-center","mb-0","text-secondary","py-3"],[1,"col-12"],["role","button",1,"contract-template-option",3,"click"],[1,"fa","ms-2",3,"ngClass"],[1,"bg-white","rounded","mb-3","p-2"],[1,"small","text-secondary"],["formArrayName","payment_groups"],[1,"field-heading-parent","mb-2",3,"formGroupName"],[1,"contract-array-actions-row","py-2"],["type","button",1,"btn","btn-sm","button-primary"],[1,"row","g-2"],[1,"col-md-8"],["disableRipple","",3,"selectionChange","value"],["matInput","","rows","3","formControlName","content"],["role","button",1,"field-heading","p-2",3,"click"],[1,"fa","float-end",3,"ngClass"],["matInput","","formControlName","payment_group_name"],["formControlName","payment_group_salary_type",3,"compareWith"],["matTextPrefix",""],["matInput","","formControlName","payment_group_salary",3,"change"],["matInput","","formControlName","payment_group_allowance",3,"change"],[1,"contract-subsection-footer"],["type","button",1,"btn","btn-sm","btn-danger"],["type","button","matTooltip","Best\xE4tigen","aria-label","Best\xE4tigen",1,"btn","btn-sm","button-primary","contract-subsection-confirm-btn",3,"click"],["aria-hidden","true",1,"fa","fa-check-square","fa-solid"],["aria-hidden","true",1,"fa","fa-angle-up"],[3,"ngModelChange","selectionChange","ngModel","ngModelOptions","compareWith"],["aria-hidden","true",1,"fa","fa-floppy-o","contract-btn-icon"],["label","Zahlungsdetails"],[1,"step-content","px-2","py-2"],[1,"employment-zahlungsdetails",3,"formGroup"],[1,"contract-subsection-detail
2s-label","small","text-secondary","mb-2"],[1,"col-md-6"],["formControlName","working_hours_type",3,"selectionChange","compareWith"],[1,"col-md-2"],["matInput","","type","number","formControlName","working_hours","min","0","max","168",3,"input"],["matInput","","type","number","formControlName","working_minutes","min","0","max","59",3,"input"],["matInput","","type","number","formControlName","working_seconds","min","0","max","59",3,"input"],[1,"employment-subsection","mt-3"],[1,"contract-toggle-question","mb-1"],["formControlName","overtime_is_active","color","primary",3,"change"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mt-3"],[1,"contract-subsection-details-label","small","text-secondary","mb-2","mt-2"],["formArrayName","overtime_bonus_sections",1,"mt-2"],[1,"contract-array-actions-row"],["matInput","","formControlName","overtime_bonus_name",3,"input"],["formControlName","overtime_bonus_hours_type",3,"selectionChange"],["formControlName","overtime_bonus_type",3,"selectionChange"],["value","Prozent"],["value","Betrag"],["matInput","","formControlName","overtime_bonus",3,"input"],["matSuffix","",1,"me-1"],["matInput","","type","number","formControlName","overtime_bonus_after_hours",3,"input","min"],["matInput","","type","number","formControlName","overtime_bonus_hours_from",3,"input"],["matInput","","type","number","formControlName","overtime_bonus_hours_to",3,"input"],["formControlName","saving_account_is_active","color","primary",3,"change"],[1,"contract-time-quota-row","mt-2"],[1,"contract-time-quota"],[1,"contract-time-quota__label"],["role","group","aria-label","Mindestzeitkontingent",1,"contract-time-segment-group"],["type","text","inputmode","numeric","maxlength","2","formControlName","saving_account_minimum_hours","placeholder","HH","aria-label","Stunden",1,"contract-time-segment",3,"input","keydown","blur","focus"],["aria-hidden","true",1,"contract-time-separator"],["type","text","inputmode","numeric","maxlength","2","formControlName","saving_account_minimum_minutes","placeholder","MM","aria-label","Minuten",1,"contract-time-segment",3,"input","keydown","blur","focus"],["type","text","inputmode","numeric","maxlength","2","formControlName","saving_account_minimum_seconds","placeholder","SS","aria-label","Sekunden",1,"contract-time-segment",3,"input","keydown","blur","focus"],["role","group","aria-label","Maximalzeitkontingent",1,"contract-time-segment-group"],["type","text","inputmode","numeric","maxlength","2","formControlName","saving_account_maximum_hours","placeholder","HH","aria-label","Stunden",1,"contract-time-segment",3,"input","keydown","blur","focus"],["type","text","inputmode","numeric","maxlength","2","formControlName","saving_account_maximum_minutes","placeholder","MM","aria-label","Minuten",1,"contract-time-segment",3,"input","keydown","blur","focus"],["type","text","inputmode","numeric","maxlength","2","formControlName","saving_account_maximum_seconds","placeholder","SS","aria-label","Sekunden",1,"contract-time-segment",3,"input","keydown","blur","focus"],["formControlName","shift_is_active","color","primary",3,"change"],[1,"contract-shift-time-hint","mb-2"],["aria-hidden","true",1,"fa","fa-clock-o","contract-shift-time-hint__icon"],[1,"contract-shift-time-row"],["appearance","outline",1,"contract-shift-time-field","time-field-mat-form"],["matInput","","formControlName","shift_start","readonly","",3,"ngxTimepicker"],["matSuffix","",3,"for"],["timepickerClass","contract-mgmt-timepicker",3,"timeSet"],["matInput","","formControlName","shift_end","readonly","",3,"ngxTimepicker"],["appearance","outline",1,"w-100","contract-joining-date-field"],["matInput","","formControlName","joining_date",3,"click","dateChange","matDatepicker"],["formControlName","public_holiday_is_active","color","primary",3,"change"],["formControlName","public_holiday_bonus_rate",3,"selectionChange"],["value","Per Hour"],["value","Per Day"],["formControlName","public_holiday_bonus_type",3,"selectionChange"],["matInput","","formControlName","public_holiday_bonus",3,"input"],["formControlName","holiday_is_active","color","primary",3,"change"],["matInput","","formControlName","holiday_bonus_name",3,"input"],["formArrayName","holiday_bonus_sections",1,"mt-2"],["aria-hidden","true",1,"fa","fa-exclamation-circle","text-danger","ms-1"],["formControlName","holiday_bonus_duration_type",3,"selectionChange"],["matInput","","formControlName","holiday_bonus_duration",3,"input"],["formControlName","holiday_bonus_type",3,"selectionChange"],["matInput","","formControlName","holiday_bonus",3,"input"],["formControlName","holiday_bonus_rate",3,"selectionChange","compareWith"],["formControlName","travel_is_active","color","primary",3,"change"],["matInput","","formControlName","travel_bonus_name",3,"input"],["formArrayName","travel_bonus_sections",1,"mt-2"],["formControlName","travel_bonus_time_type",3,"selectionChange"],["formControlName","travel_bonus_type",3,"selectionChange"],["matInput","","formControlName","travel_bonus",3,"input"],["formControlName","travel_bonus_time",3,"selectionChange"],[1,"col-md-3"],["matInput","","type","number","formControlName","travel_bonus_from",3,"input"],["matInput","","type","number","formControlName","travel_bonus_to",3,"input"],["matInput","","type","number","formControlName","travel_bonus_hours",3,"input"],["formControlName","completion_is_active","color","primary",3,"change"],["matInput","","formControlName","completion_bonus_name",3,"input"],["formArrayName","completion_bonus_sections",1,"mt-2"],["formControlName","completion_bonus_duration_type",3,"selectionChange"],["matInput","","formControlName","completion_bonus_duration",3,"input"],["formControlName","completion_bonus_type",3,"selectionChange"],["matInput","","formControlName","completion_bonus",3,"input"],["label","Zuschl\xE4ge"],["formArrayName","week_day_bonus_sections",1,"arbeitszeitzuschlaege-tabs","mt-2"],[3,"selectedTabChange","selectedIndex"],["mat-tab-label",""],[1,"p-3","surcharges-tab-body",3,"formGroupName"],["formArrayName","week_day_bonus_section_childs"],[1,"contract-weekday-empty-hint","mb-3"],[1,"tab-day-label"],[1,"tab-day-name"],[1,"day-bonus-count"],[1,"contract-toggle-question","small","mb-2"],["formControlName","week_day_distribution",1,"d-flex","flex-wrap","gap-2","mb-2",3,"compareWith"],[1,"text-danger","small","mb-2"],["appearance","outline",1,"w-100","mb-2"],["matInput","","formControlName","week_day_bonus_child_name"],["formControlName","week_day_bonus_rate",3,"compareWith"],["formControlName","week_day_bonus_type"],["matInput","","formControlName","week_day_bonus"],["type","button","matTooltip","Best\xE4tigen","aria-label","Best\xE4tigen",1,"btn","btn-sm","button-primary","contract-subsection-confirm-btn",3,"click","disabled"],["formControlName","week_day_distribution_time"],[1,"contract-shift-time-row","mb-2"],["matInput","","type","time","formControlName","week_day_distribution_time_hours"],["matInput","","type","time","formControlName","week_day_distribution_time_from"],["matInput","","type","time","formControlName","week_day_distribution_time_to"],["src","assets/infoIcon.svg","alt","","aria-hidden","true",1,"contract-weekday-empty-hint__icon"],[1,"contract-weekday-empty-hint__text","mb-0"],["label","Zuschlagseinstellungen"],[1,"field-heading","d-flex","align-items-center","gap-1"],["aria-hidden","true",1,"fa","fa-exclamation-circle","text-danger"],["formArrayName","week_day_bonus_sections",1,"p-3"],[1,"collision-outer-tabs",3,"selectedTabChange","selectedIndex"],["type","button","matStepperPrevious","",1,"btn","btn-sm","button-primary",3,"click"],[1,"collision-block","mb-4"],[1,"bonus-item","bonus-item--banner"],["cdkDropListGroup","",1,"bonus-content"],[1,"collision-column"],["cdkDropList","",1,"bonus-box"],[1,"bonus-item","bonus-item--hint"],[1,"collision-empty-hint","small","text-muted"],["cdkDropList","",1,"bonus-box",3,"cdkDropListDropped"],[1,"bonus-item","selected","bonus-item--hint"],[1,"bonus-item","selected"],["cdkDrag","",1,"bonus-item"],["cdkDrag","",1,"bonus-item",3,"cdkDragStarted"],["type","button",1,"remove-btn",3,"click"],[1,"collision-inner-tabs",3,"selectedIndex"],[1,"collision-inner-tabs",3,"selectedTabChange","selectedIndex"],[3,"label"],["label","Urlaubdetails"],["role","group","aria-label","Arbeitsfreie Wochentage",1,"contract-weekday-chip-list"],["type","button",1,"btn","btn-sm","contract-weekday-chip-btn",3,"contract-weekday-chip-btn--selected"],["type","button",1,"btn","btn-sm","contract-weekday-chip-btn",3,"click"],["matInput","","type","number","formControlName","notice_period","min","0"],["formControlName","leave_is_active","color","primary",3,"change"],["formArrayName","leave_sections",1,"mt-2"],[1,"p-2","row","g-2"],["matInput","","type","number","formControlName","leave_unit"],["matInput","","type","number","formControlName","leave_count"],[1,"col-12","contract-row-remove"],["label","Vertragsinformationen"],["formArrayName","contract_parties",1,"row","g-3"],[1,"text-danger","small","mb-0"],["matInput","","formControlName","template_prefix"],[1,"field-heading-parent","h-100",3,"formGroupName"],["formControlName","enabled","color","primary"],["appearance","outline",1,"w-100","mt-2"],["matInput","","formControlName","party_name"],[1,"small","text-secondary","mb-1"],["formControlName","signature_required"],["value","yes"],["value","no",1,"ms-2"],["label","Paketauswahl"],[1,"text-secondary","text-center","py-3","mb-0"],[1,"text-danger","small"],[1,"d-flex","justify-content-between","gap-2","mt-3","pt-3","border-top"],[1,"col-6","col-md-3"],[1,"license-class-card","field-heading-parent","p-2",3,"click","matTooltip"],["color","primary",3,"click","change","checked","disabled"],[1,"field-heading-parent","mb-2","p-2"],[1,"d-flex","justify-content-between"],[1,"mb-1"],[1,"col-xl-5"],[1,"contract-column-p
2anel","contract-preview-panel"],[1,"contract-column-panel__header","heading-div-bg","p-2","d-flex","align-items-center","mb-0"],[1,"contract-column-panel__body","contract-preview-scroll"],[3,"contractData","eSignatureActive","eSignatureAllowed","embedEsignModal","employerSignature"],[1,"contract-preview-placeholder","text-center"],[1,"text-secondary","mb-0","small"],[1,"field-heading-parent","p-4","text-center"],["src","assets/infoIcon.svg","alt","",1,"mb-3","flip-image",2,"width","32px"],[1,"text-secondary"],[1,"text-secondary","small","mb-0"],["id","addtemplate_heading","tabindex","-1","role","dialog","aria-hidden","true","data-bs-backdrop","static","data-bs-keyboard","false",1,"modal","fade"],["role","document",1,"modal-dialog","customModal"],[1,"mb-0"],["type","button","data-bs-dismiss","modal","aria-label","Schlie\xDFen","id","close_addtemplate_heading",1,"btn-close",3,"click"],[1,"row",3,"formGroup"],[1,"col-sm-8"],["appearance","outline",1,"w-100","bg-white"],["matInput","","placeholder","Abschnitt","formControlName","heading"],[1,"col-sm-4"],["disableRipple","","formControlName","serial"],[1,"col-sm-12"],["matInput","","placeholder","Inhalt","rows","5","formControlName","content"],[1,"modal-footer"]],template:function(e,i){e&1&&(v(0,"div",14),c(1,Oa,2,3,"div",15)(2,Da,10,4,"div",16),I(3,es,1,1,"ng-template",null,0,ye)(5,ts,6,1,"ng-template",null,1,ye),c(7,rs,33,5,"div",17)),e&2&&(r(),d(i.inlineMode?1:2),r(6),d(i.formsReady?7:-1))},dependencies:[ce,De,Ge,Gt,tn,qt,Nt,Kt,Rt,$t,Qt,Xt,Jt,Ht,nn,Wt,jt,Zt,Yt,oi,An,Dn,Gn,zn,Ln,Nn,Un,Bn,Kn,Rn,$n,Hn,qn,Zn,jn,On,Wn,Jn,Xn,Qn,ti,ni,ii,ei,He,gi,di,pi,ui,_i,li,ri,ai,se],styles:[".contract-expand-toggle-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:10px;line-height:1.2;padding-top:.35rem;padding-bottom:.35rem}.contract-expand-toggle-label[_ngcontent-%COMP%]{line-height:1.2}.contract-expand-toggle-icon[_ngcontent-%COMP%]{width:22px;height:22px;min-width:22px;min-height:22px;flex-shrink:0;display:block;object-fit:contain;transition:filter .2s ease-out}.contract-expand-toggle-btn[_ngcontent-%COMP%]:hover:not(:disabled) .contract-expand-toggle-icon[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.addContractManagementModal[_ngcontent-%COMP%] .contract-form-scroll[_ngcontent-%COMP%] .btn.button-primary[_ngcontent-%COMP%]:not(.contract-expand-toggle-btn), .addContractManagementModal[_ngcontent-%COMP%] .contract-step-footer[_ngcontent-%COMP%] .btn.button-primary[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:10px;line-height:1.25;padding:.5rem 1.25rem!important;font-size:.95rem!important;min-height:42px;font-weight:500}.addContractManagementModal[_ngcontent-%COMP%] .contract-btn-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1;font-weight:400}.addContractManagementModal[_ngcontent-%COMP%] .contract-btn-icon--arrow[_ngcontent-%COMP%]{font-size:.9rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-btn-icon--left[_ngcontent-%COMP%]{margin-right:2px}.addContractManagementModal[_ngcontent-%COMP%] .contract-add-section-icon[_ngcontent-%COMP%]{width:18px;height:18px;margin-bottom:0!important;opacity:.85;object-fit:contain;transition:filter .2s ease-out}.addContractManagementModal[_ngcontent-%COMP%] .contract-form-scroll[_ngcontent-%COMP%] .btn.button-primary[_ngcontent-%COMP%]:not(.contract-expand-toggle-btn):hover:not(:disabled) .contract-add-section-icon[_ngcontent-%COMP%], .addContractManagementModal[_ngcontent-%COMP%] .contract-step-footer[_ngcontent-%COMP%] .btn.button-primary[_ngcontent-%COMP%]:hover:not(:disabled) .contract-add-section-icon[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.contract-step-footer[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:1rem;padding-top:1rem;border-top:1px solid #dee2e6}.contract-step-footer-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin-left:auto}.addContractManagementModal[_ngcontent-%COMP%] .contract-prefix-field[_ngcontent-%COMP%] .ver-suffix[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;margin:0!important;padding:0;font-size:14px;font-weight:500;line-height:1;color:#000000a6;white-space:nowrap}.addContractManagementModal[_ngcontent-%COMP%] .contract-prefix-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix{align-self:center;padding-right:12px;padding-left:6px}.addContractManagementModal[_ngcontent-%COMP%] .contract-prefix-field[_ngcontent-%COMP%] .mat-form-field-appearance-outline .mat-form-field-suffix{top:50%!important;transform:translateY(-50%);padding-right:12px;padding-left:6px;display:flex;align-items:center}.addContractManagementModal[_ngcontent-%COMP%] .contract-prefix-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix{padding-right:4px}.addContractManagementModal[_ngcontent-%COMP%] .field-heading-parent[_ngcontent-%COMP%] .d-flex[_ngcontent-%COMP%] > .contract-prefix-field[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.addContractManagementModal[_ngcontent-%COMP%] .contract-prefix-info-icon[_ngcontent-%COMP%]{flex-shrink:0;width:20px;height:20px;margin-left:1.25rem;margin-top:1rem;object-fit:contain;cursor:pointer;align-self:flex-start}
2.addContractManagementModal[_ngcontent-%COMP%] .modal-custom[_ngcontent-%COMP%]{max-width:95%;width:95%;margin-left:auto;margin-right:auto}.addContractManagementModal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{border-radius:30px;overflow:hidden;min-height:600px;height:auto}.addContractManagementModal[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:calc(100vh - 200px);min-height:600px;height:auto;overflow:hidden;display:flex;flex-direction:column}.addContractManagementModal[_ngcontent-%COMP%] .modal-body.expanded-layout[_ngcontent-%COMP%] .contract-column-panel__header[_ngcontent-%COMP%]{margin-bottom:0}.contract-form-inline.addContractManagementModal[_ngcontent-%COMP%]{display:block!important;width:100%;padding:0}.contract-column-panel[_ngcontent-%COMP%]{border:1px solid var(--color-primary);border-radius:10px;background:#fff;overflow:hidden;height:100%;display:flex;flex-direction:column}.contract-column-panel__header[_ngcontent-%COMP%]{border:none;border-radius:0;background:transparent;flex-shrink:0}.contract-form-panel[_ngcontent-%COMP%] .contract-column-panel__title[_ngcontent-%COMP%]{padding:.625rem 1.25rem}.contract-preview-panel[_ngcontent-%COMP%] .contract-column-panel__header.heading-div-bg[_ngcontent-%COMP%]{border-radius:9px 9px 0 0}.contract-column-panel__body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:hidden}.contract-form-scroll[_ngcontent-%COMP%]{padding:.25rem .75rem .75rem .5rem;overflow-y:auto;overflow-x:hidden;direction:rtl;-webkit-overflow-scrolling:touch}.contract-form-scroll-inner[_ngcontent-%COMP%]{direction:ltr;text-align:left}.contract-preview-scroll[_ngcontent-%COMP%]{padding:.75rem;overflow-y:auto;overflow-x:hidden;direction:ltr;-webkit-overflow-scrolling:touch}.contract-form-layout.time-surcharges[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%}.contract-form-layout[_ngcontent-%COMP%] .col-xl-7[_ngcontent-%COMP%], .contract-form-layout[_ngcontent-%COMP%] .col-xl-5[_ngcontent-%COMP%]{min-width:0;min-height:0;display:flex;flex-direction:column}@media(min-width:1200px){.contract-form-layout.time-surcharges[_ngcontent-%COMP%]{flex-wrap:nowrap;align-items:stretch;height:calc(100vh - 240px);max-height:calc(100vh - 240px)}.contract-form-layout[_ngcontent-%COMP%] .col-xl-7[_ngcontent-%COMP%], .contract-form-layout[_ngcontent-%COMP%] .col-xl-5[_ngcontent-%COMP%]{height:100%;max-height:100%;overflow:hidden}.contract-form-layout[_ngcontent-%COMP%] .col-xl-5[_ngcontent-%COMP%]{position:static}}.addContractManagementModal[_ngcontent-%COMP%] .contract-preview-placeholder[_ngcontent-%COMP%], .contract-form-inline[_ngcontent-%COMP%] .contract-preview-placeholder[_ngcontent-%COMP%]{min-height:420px;display:flex;align-items:center;justify-content:center;padding:1.5rem;border:1px dashed #d1d5db;border-radius:8px;background:#f9fafb}.contract-stepper[_ngcontent-%COMP%] .mat-horizontal-stepper-header-container{margin-bottom:.5rem;overflow-x:auto;flex-wrap:nowrap}.contract-stepper[_ngcontent-%COMP%] .mat-step-header{flex-shrink:0}@media(max-width:991px){.contract-stepper[_ngcontent-%COMP%] .mat-vertical-stepper-content{padding-left:8px}.contract-stepper[_ngcontent-%COMP%] .mat-vertical-stepper-header{padding:12px 8px}}.employment-type-radios[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}.employment-type-error[_ngcontent-%COMP%]{display:block;font-size:.75rem;margin-top:.5rem}.employment-zahlungsdetails[_ngcontent-%COMP%] .employment-subsection[_ngcontent-%COMP%]{border-top:1px solid #e5e7eb;padding-top:1rem}.employment-zahlungsdetails[_ngcontent-%COMP%] .field-heading[role=button][_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none}.addContractManagementModal[_ngcontent-%COMP%] .mat-mdc-slide-toggle{--mdc-switch-selected-track-color: var(--color-primary-accent);--mdc-switch-selected-handle-color: #ffffff;--mdc-switch-selected-hover-track-color: var(--color-primary-accent);--mdc-switch-selected-focus-track-color: var(--color-primary-accent);--mdc-switch-selected-pressed-track-color: var(--color-primary-accent);--mdc-switch-unselected-track-color: var(--color-primary);--mdc-switch-unselected-handle-color: #ffffff;--mdc-switch-unselected-hover-track-color: var(--color-primary);--mdc-switch-unselected-focus-track-color: var(--color-primary);--mdc-switch-unselected-pressed-track-color: var(--color-primary)}.addContractManagementModal[_ngcontent-%COMP%] .mat-mdc-slide-toggle .mdc-label{color:var(--color-text)!important;font-weight:500}.addContractManagementModal[_ngcontent-%COMP%] .mat-mdc-slide-toggle.mat-mdc-slide-toggle-checked .mdc-switch__track:after{background:var(--color-primary-accent)!important;border:1px solid var(--color-primary-accent)}.addContractManagementModal[_ngcontent-%COMP%] .template-type-box.field-heading-parent[_ngcontent-%COMP%]{cursor:pointer;height:100%;background:var(--color-primary);transition:border-color .15s ease,box-shadow .15s ease}.addContractManagementModal[_ngcontent-%COMP%] .template-type-box.field-heading-parent[_ngcontent-%COMP%]:hover{border-color:var(--color-primary-accent)}.addContractManagementModal[_ngcontent-%COMP%] .template-type-box.field-heading-parent.selected[_ngcontent-%COMP%]{border-color:var(--color-primary-accent);box-shadow:0 0 0 1px var(--color-primary-accent);background:var(--color-primary-accent)}.addContractManagementModal[_ngcontent-%COMP%] .template-type-box.selected[_ngcontent-%COMP%] .template-box-title[_ngcontent-%COMP%]{color:#fff}.template-plus-icon[_ngcontent-%COMP%]{width:28px;height:28px;opacity:.7}.template-box-title[_ngcontent-%COMP%]{font-size:.95rem;color:var(--color-text);font-weight:500}.license-class-card[_ngcontent-%COMP%]{cursor:pointer;border:2px solid transparent;border-radius:8px;transition:border-color .15s ease}.license-class-card.selected[_ngcontent-%COMP%]{border-color:var(--primary-color, #5c6bc0)}.license-class-card--blocked[_ngcontent-%COMP%]{opacity:.55;cursor:not-allowed}.add-templateModal[_ngcontent-%COMP%] .customModal[_ngcontent-%COMP%]{width:100%;max-width:600px}
2.add-templateModal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{height:auto;max-height:calc(100vh - 200px);overflow-y:auto}@media(max-width:768px){.addContractManagementModal[_ngcontent-%COMP%] .modal-custom[_ngcontent-%COMP%]{max-width:95%;width:95%}.addContractManagementModal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{border-radius:12px;min-height:500px}.addContractManagementModal[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{padding:1rem;min-height:500px;overflow-y:auto}.contract-form-layout.time-surcharges[_ngcontent-%COMP%]{height:auto;max-height:none}.contract-form-layout[_ngcontent-%COMP%] .col-xl-7[_ngcontent-%COMP%], .contract-form-layout[_ngcontent-%COMP%] .col-xl-5[_ngcontent-%COMP%]{max-height:none;overflow:visible}.contract-form-scroll[_ngcontent-%COMP%], .contract-preview-scroll[_ngcontent-%COMP%]{max-height:55vh}}.group-heading-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.35rem .5rem;border-radius:6px;background:#f3f4f6}.group-heading-container[_ngcontent-%COMP%] .links1[_ngcontent-%COMP%]{cursor:pointer;padding:.25rem}.contract-template-option[_ngcontent-%COMP%]{border:1px solid #dee2e6;border-radius:8px;padding:.75rem 1rem;margin-bottom:.5rem;cursor:pointer;transition:border-color .15s ease,background .15s ease}.contract-template-option[_ngcontent-%COMP%]:hover{border-color:var(--color-primary-accent)}.contract-template-option.selected[_ngcontent-%COMP%]{border-color:var(--color-primary-accent);background:rgba(var(--color-primary-rgb, 92, 107, 192),.08);box-shadow:0 0 0 1px var(--color-primary-accent)}.arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .mat-mdc-tab-header{overflow:visible}.arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .mat-mdc-tab-labels{overflow-x:auto;overflow-y:visible}.arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .mat-mdc-tab{overflow:visible;min-width:5.5rem}.arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .mdc-tab__content, .arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .mdc-tab__text-label{display:inline-flex;align-items:center;overflow:visible}.arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .tab-day-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap;line-height:1.2}.arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .tab-day-name[_ngcontent-%COMP%]{line-height:1.2}.arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .day-bonus-count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:1.375rem;height:1.375rem;padding:0 .4rem;border-radius:999px;font-size:.6875rem;font-weight:700;line-height:1;flex-shrink:0;background:var(--color-primary-accent, #4f46e5);color:#fff!important;border:1px solid rgba(255,255,255,.85);box-shadow:0 1px 2px #0000001f}.arbeitszeitzuschlaege-tabs[_ngcontent-%COMP%] .mat-mdc-tab.mdc-tab--active .day-bonus-count{background:#fff;color:var(--color-primary-accent, #4f46e5)!important;border-color:#fff;box-shadow:none}.surcharges-tab-body[_ngcontent-%COMP%]{min-height:120px}.addContractManagementModal[_ngcontent-%COMP%] .contract-subsection-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin-top:.75rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-subsection-actions[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.5rem 1.25rem!important;font-size:.95rem!important;font-weight:500;line-height:1.25;margin:0!important}.addContractManagementModal[_ngcontent-%COMP%] .contract-subsection-actions[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%], .addContractManagementModal[_ngcontent-%COMP%] .contract-subsection-actions[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{min-width:7.5rem}[_nghost-%COMP%] .cdk-overlay-container{z-index:1060!important}.addContractManagementModal[_ngcontent-%COMP%] .contract-array-actions-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;
2gap:12px;width:100%;margin-top:.75rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-array-actions-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{margin-right:auto}.addContractManagementModal[_ngcontent-%COMP%] .contract-row-remove[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin-top:.5rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-subsection-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px;width:100%;margin-top:.75rem;min-height:2.5rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-subsection-footer[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{margin-right:auto}.addContractManagementModal[_ngcontent-%COMP%] .contract-subsection-confirm-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;flex-shrink:0;min-height:2.25rem!important;padding:.4rem .85rem!important;border-radius:999px;line-height:1}.addContractManagementModal[_ngcontent-%COMP%] .contract-subsection-confirm-btn[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:1rem;line-height:1}.time-field-mat-form[_ngcontent-%COMP%] input[readonly][_ngcontent-%COMP%]{cursor:pointer}.addContractManagementModal[_ngcontent-%COMP%] .contract-shift-time-hint[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin:0;font-size:.8125rem;color:#6c757d}.addContractManagementModal[_ngcontent-%COMP%] .contract-shift-time-hint__icon[_ngcontent-%COMP%]{font-size:1rem;color:#3f51b5;flex-shrink:0}.addContractManagementModal[_ngcontent-%COMP%] .contract-weekday-empty-hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;font-size:.8125rem;color:#6c757d;line-height:1.45}.addContractManagementModal[_ngcontent-%COMP%] .contract-weekday-empty-hint__icon[_ngcontent-%COMP%]{width:1.125rem;height:1.125rem;flex-shrink:0;margin-top:.125rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-weekday-empty-hint__text[_ngcontent-%COMP%]{margin:0}.addContractManagementModal[_ngcontent-%COMP%] .contract-joining-date-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{cursor:pointer}.addContractManagementModal[_ngcontent-%COMP%] .contract-shift-time-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.75rem 1.25rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-shift-time-field[_ngcontent-%COMP%]{flex:0 1 240px;
2min-width:200px;max-width:280px}.addContractManagementModal[_ngcontent-%COMP%] .contract-shift-time-field[_ngcontent-%COMP%] input.mat-mdc-input-element{color:#000000de;-webkit-text-fill-color:rgba(0,0,0,.87)}.addContractManagementModal[_ngcontent-%COMP%] .contract-shift-time-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix{padding-right:.25rem;min-width:0}.addContractManagementModal[_ngcontent-%COMP%] .contract-shift-time-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix{padding:0 2px 0 4px}.addContractManagementModal[_ngcontent-%COMP%] .contract-shift-time-field[_ngcontent-%COMP%] .ngx-material-timepicker-toggle button{width:36px;height:36px;color:#0000008a} .contract-mgmt-timepicker{--dial-active-color: #75787d;--dial-editable-active-color: #75787d} .contract-mgmt-timepicker .timepicker-dial__item_active, .contract-mgmt-timepicker .timepicker-dial__control.timepicker-dial__item_active{color:#75787d}.bonus-wrapper[_ngcontent-%COMP%]{border:1px solid #e5e7eb;border-radius:8px;padding:.75rem;background:#fafafa}.bonus-content[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.5rem}.collision-column[_ngcontent-%COMP%]{flex:1 1 220px;min-width:0}.collision-empty-hint[_ngcontent-%COMP%]{display:block;padding:.5rem;font-style:italic}.collision-outer-tabs[_ngcontent-%COMP%] .tab-day-label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap;line-height:1.2}.collision-outer-tabs[_ngcontent-%COMP%] .day-bonus-count[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:1.375rem;height:1.375rem;padding:0 .4rem;border-radius:999px;font-size:.6875rem;font-weight:700;line-height:1;flex-shrink:0;background:var(--color-primary-accent, #4f46e5);color:#fff!important;border:1px solid rgba(255,255,255,.85)}.collision-outer-tabs[_ngcontent-%COMP%] .day-bonus-count--invalid[_ngcontent-%COMP%]{background:#dc3545!important;border-color:#dc3545;color:#fff!important}.collision-outer-tabs[_ngcontent-%COMP%] .mat-mdc-tab.mdc-tab--active .day-bonus-count:not(.day-bonus-count--invalid){background:#fff;color:var(--color-primary-accent, #4f46e5)!important;border-color:#fff}.collision-outer-tabs[_ngcontent-%COMP%] .tab-day-label--invalid[_ngcontent-%COMP%] .tab-day-name[_ngcontent-%COMP%]{color:#dc3545}.collision-inner-tabs[_ngcontent-%COMP%]{margin-top:.25rem}.bonus-box[_ngcontent-%COMP%]{flex:1 1 200px;min-height:80px;border:2px dashed #d1d5db;border-radius:8px;padding:.5rem;background:#fff}.bonus-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:calc(100% - .5rem);padding:.5rem .75rem;margin:.25rem;border-radius:6px;border:1px solid #e5e7eb;background:#f3f4f6;color:#1f2937;font-size:.85rem;cursor:grab}.bonus-item--banner[_ngcontent-%COMP%], .bonus-item--hint[_ngcontent-%COMP%]{cursor:default;line-height:1.4;width:calc(100% - .5rem)}.bonus-item--banner[_ngcontent-%COMP%]{margin-bottom:.5rem;width:100%}.bonus-item--hint[_ngcontent-%COMP%]{font-size:.8rem}.bonus-item[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{border:none;background:transparent;font-size:1.1rem;line-height:1;padding:0;margin-left:auto;cursor:pointer}.bonus-item.cdk-drag-preview[_ngcontent-%COMP%]{background:#f3f4f6;color:#1f2937;box-shadow:0 4px 12px #0000001f}.addContractManagementModal[_ngcontent-%COMP%] .contract-time-quota-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem 1.25rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-time-quota[_ngcontent-%COMP%]{flex:0 0 auto}.addContractManagementModal[_ngcontent-%COMP%] .contract-time-quota__label[_ngcontent-%COMP%]{display:block;font-size:.75rem;color:#6c757d;margin-bottom:.4rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-time-segment-group[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:0;border:1px solid rgba(0,0,0,.38);border-radius:8px;padding:0 .65rem;background:#fff;min-height:48px;transition:border-color .15s ease,box-shadow .15s ease}.addContractManagementModal[_ngcontent-%COMP%] .contract-time-segment-group[_ngcontent-%COMP%]:focus-within{border-color:#3f51b5;box-shadow:0 0 0 1px #3f51b5}.addContractManagementModal[_ngcontent-%COMP%] .contract-time-segment[_ngcontent-%COMP%]{width:2.5rem;border:none;outline:none;text-align:center;font-size:1rem;font-variant-numeric:tabular-nums;padding:.65rem 0;background:transparent;color:inherit}.addContractManagementModal[_ngcontent-%COMP%] .contract-time-segment[_ngcontent-%COMP%]::placeholder{color:#adb5bd;font-size:.85rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-time-separator[_ng
2content-%COMP%]{color:#6c757d;font-weight:600;font-size:1rem;line-height:1;padding:0 .2rem;-webkit-user-select:none;user-select:none}.heading-popup-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1060;display:flex;align-items:center;justify-content:center;background:#00000073;padding:1rem}.heading-popup-dialog[_ngcontent-%COMP%]{width:100%;max-width:560px} .contract-mgmt-select-panel .mat-mdc-option .mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked, .contract-mgmt-select-panel .mat-mdc-option .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate, .contract-mgmt-select-panel .mat-primary .mat-pseudo-checkbox-checked, .contract-mgmt-select-panel .mat-primary .mat-pseudo-checkbox-indeterminate{background-color:#1388fe!important;border-color:#1388fe!important} .contract-mgmt-select-panel .mat-mdc-option .mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after, .contract-mgmt-select-panel .mat-mdc-option .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after, .contract-mgmt-select-panel .mat-primary .mat-pseudo-checkbox-checked:after, .contract-mgmt-select-panel .mat-primary .mat-pseudo-checkbox-indeterminate:after{color:#fff!important;border-color:#fff!important} .contract-mgmt-select-panel .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked:after, .contract-mgmt-select-panel .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate:after{color:#fff!important;border-color:#fff!important;border-left-color:#fff!important} .contract-mgmt-select-panel .mat-mdc-option.mdc-list-item--selected .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked, .contract-mgmt-select-panel .mat-mdc-option.mdc-list-item--selected .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate{background-color:#1388fe!important;border-radius:2px} .contract-mgmt-select-panel .mat-mdc-option.mdc-list-item--selected .mat-mdc-select-selected-icon, .contract-mgmt-select-panel .mat-mdc-option.mdc-list-item--selected mat-icon, .contract-mgmt-select-panel .mat-mdc-option.mdc-list-item--selected svg, .contract-mgmt-select-panel .mat-mdc-option.mdc-list-item--selected svg path{color:#fff!important;fill:#fff!important}.contract-section-and-content[_ngcontent-%COMP%]{font-weight:600;letter-spacing:.01em}.contract-subsection-details-label[_ngcontent-%COMP%]{font-weight:600}.contract-toggle-question[_ngcontent-%COMP%]{color:#495057;font-size:.875rem}.addContractManagementModal[_ngcontent-%COMP%] .contract-weekday-chip-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem;overflow:visible}.addContractManagementModal[_ngcontent-%COMP%] .contract-weekday-chip-btn[_ngcontent-%COMP%]{background:#fff;color:var(--color-text);border:1px solid #dee2e6;border-radius:5px;padding:4px 12px;font-weight:500;font-size:14px;line-height:17px;transition:all .2s ease-out}.addContractManagementModal[_ngcontent-%COMP%] .contract-weekday-chip-btn[_ngcontent-%COMP%]:hover:not(.contract-weekday-chip-btn--selected):not(:disabled){background:var(--color-primary-accent)!important;color:#fff!important;border-color:var(--color-primary-accent)!important}.addContractManagementModal[_ngcontent-%COMP%] .contract-weekday-chip-btn--selected[_ngcontent-%COMP%]{background:var(--color-primary)!important;color:var(--color-text)!important;border-color:var(--color-primary)!important}.addContractManagementModal[_ngcontent-%COMP%] .contract-weekday-chip-btn--selected[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary)!important;color:var(--color-text)!important;border-color:var(--color-primary)!important}"]})}},Si={shift_timing:!0,working_hours:!0,overtime:!0,payment_groups:!0,joining:!0,holiday:!0,week_day:!0,travel:!0,completion:!0,saving_account:!0,public_holiday:!0,week_day_off:!0,notice_period:!0,leaves:!0};function ls(n){return n.group(j({},Si))}function mt(n){return n.group({overtime_bonus_name:["",M.required],overtime_bonus_hours_type:["After Specific Hours",M.required],overtime_bonus_after_hours:[""],overtime_bonus_hours_from:[""],overtime_bonus_hours_to:[""],overtime_bonus_type:["Prozent"],overtime_bonus:["",M.required],hidden:[!0]})}function st(n){return n.group({holiday_bonus_duration_type:[{english:"Year",german:"Jahr"}],holiday_bonus_duration:["",M.required],holiday_bonus_type:["Prozent"],holiday_bonus:["",M.required],holiday_bonus_rate:["Per Year"],hidden:[!0]})}function ct(n){return n.group({travel_bonus_time_type:[null,M.required],travel_bonus_time:[null],travel_bonus_hours:[""],travel_bonus_from:[""],travel_bonus_to:[""],travel_bonus_type:["Prozent",M.required],travel_bonus:["",M.required],hidden:[!0]})}function dt(n){return n.group({completion_bonus_duration_type:[{english:"Year",german:"Jahr"}],completion_bonus_duration:["",M.required],completion_bonus_type:["Prozent"],
2completion_bonus:["",M.required],hidden:[!0]})}function pt(n){return n.group({sectionHideShow:ls(n),working_hours:["",[M.required,M.max(168)]],working_minutes:[0,[M.required,M.min(0),M.max(59)]],working_seconds:[0,[M.required,M.min(0),M.max(59)]],working_hours_type:[Pe("weekly","Per Week"),M.required],joining_date:[null,M.required],shift_start:[""],shift_end:[""],shift_is_active:[!1],saving_account_is_active:[!0],saving_account_minimum_hours:["00"],saving_account_minimum_minutes:["00"],saving_account_minimum_seconds:["00"],saving_account_maximum_hours:["00"],saving_account_maximum_seconds:["00"],saving_account_maximum_minutes:["00"],public_holiday_is_active:[!1],public_holiday_bonus:[""],public_holiday_bonus_type:["Prozent"],public_holiday_bonus_rate:[""],overtime_is_active:[!1],holiday_is_active:[!1],holiday_bonus_name:[""],travel_is_active:[!1],travel_bonus_name:[""],completion_is_active:[!1],completion_bonus_name:[""],week_day_is_active:[!1],payment_groups_serial:[null],working_hours_serial:[null],joining_serial:[null],shift_timing_serial:[null],saving_account_serial:[null],public_holiday_serial:[null],overtime_bonus_serial:[null],holiday_bonus_serial:[null],travel_bonus_serial:[null],completion_bonus_serial:[null],week_day_bonus_serial:[null],overtime_bonus_sections:n.array([]),holiday_bonus_sections:n.array([]),travel_bonus_sections:n.array([]),completion_bonus_sections:n.array([]),week_day_bonus_sections:n.array([])})}function vi(n){let t=Number(n.get("working_hours")?.value??0),e=Number(n.get("working_minutes")?.value??0),i=Number(n.get("working_seconds")?.value??0);t>=168?(t=168,e=0,i=0,n.patchValue({working_hours_type:"weekly"},{emitEvent:!1})):t>23&&(e=0,i=0),e=Math.min(59,Math.max(0,e)),i=Math.min(59,Math.max(0,i)),n.patchValue({working_hours:t,working_minutes:e,working_seconds:i},{emitEvent:!1})}function qe(n,t){return!t||!n.length?!0:n.controls.every(e=>e.valid)}function yi(n,t){return n.group({week_day:[t],hidden:[!1],week_day_bonus_section_childs:n.array([])})}function _s(n){let t=n&&typeof n=="object"?n.english:void 0;return Me.find(e=>e.english===t)??Me[0]}function ms(n){return n.group({week_day_bonus_child_name:["",M.required],week_day_distribution:[Me[0],M.required],week_day_distribution_time:[null],week_day_distribution_time_hours:[""],week_day_distribution_time_from:[""],week_day_distribution_time_to:[""],week_day_bonus_rate:[null,M.required],week_day_bonus_type:["Prozent",M.required],week_day_bonus:["",M.required],this_bonus_vs_overtime_bonus:[["give_this_bonus"]],this_bonus_vs_public_holiday_bonus:[["give_this_bonus"]],this_bonus_vs_both_bonus:[["give_this_bonus"]],hidden:[!0]})}function Pe(n,t){if(n&&typeof n=="object"&&n.english){let e=n.english;return we.find(i=>i.english===e)??n}if(typeof n=="string"){let i={hourly:"Per Hour",monthly:"Per Month",daily:"Per Day",weekly:"Per Week"}[n]??n,o=we.find(s=>s.english===i||s.german===i);if(o)return o}return we.find(e=>e.english===t)??{english:t,german:t}}function ss(n){if(n&&typeof n=="object"&&n.english)return Pe(n,"Per Week");let t={daily:"Per Day",weekly:"Per Week"},e=String(n??"weekly");return Pe(t[e]??e,"Per Week")}function bi(n){if(!n)return null;if(typeof n=="object"&&n.english){let e=n.english;return be.find(i=>i.english===e)??n}let t=String(n);return be.find(e=>e.english===t||e.german===t)??null}function cs(n){return n&&typeof n=="object"&&n.english?n.english:String(n??"")}function wi(n){let t=n.value,e=t.sectionHideShow??Si,i=[{key:"working_hours",visible:e.working_hours!==!1},{key:"working_hours_type",visible:e.working_hours!==!1},{key:"working_minutes",visible:e.working_hours!==!1},{key:"working_seconds",visible:e.working_hours!==!1},{key:"joining_date",visible:e.joining!==!1}];for(let{key:V,visible:z}of i){if(!z)continue;let X=n.get(V);if(!X||X.invalid)return!1}if(e.shift_timing!==!1&&t.shift_is_active&&(!t.shift_start||!t.shift_end)||e.public_holiday!==!1&&t.public_holiday_is_active&&(!t.public_holiday_bonus_rate||!t.public_holiday_bonus_type||!t.public_holiday_bonus)||e.holiday!==!1&&t.holiday_is_active&&!t.holiday_bonus_name||e.travel!==!1&&t.travel_is_active&&!t.travel_bonus_name||e.completion!==!1&&t.completion_is_active&&!t.completion_bonus_name)return!1;let o=n.get("overtime_bonus_sections"),s=n.get("holiday_bonus_sections"),x=n.get("travel_bonus_sections"),w=n.get("completion_bonus_sections");return!(!qe(o,e.overtime!==!1&&t.overtime_is_active)||!qe(s,e.holiday!==!1&&t.holiday_is_active)||!qe(x,e.travel!==!1&&t.travel_is_active)||!qe(w,e.completion!==!1&&t.completion_is_active))}var Ze=n=>({disabled:n}),ds=n=>({active:n});function ps(n,t){if(n&1){let e=b();l(0,"div",28)(1,"ul",29)(2,"li",30),_(3),a(),l(4,"li",31),_(5),a(),l(6,"li",31),_(7),a(),l(8,"li",31),_(9),B(10,"date"),a(),l(11,"li",31),v(12,"i",32),a(),l(13,"li",31)(14,"button",33),C("click",function(){let o=p(e).$implicit,s=m();return u(s.openTemplate(o))}),_(15,"\xD6ffnen"),a(),l(16,"button",34),C("click",function(){let o=p(e).$implicit,s=m();return u(s.updateTemplateStatus(o))}),_(17),a()()()()}if(n&2){let e=t.$implicit,i=t.index,o=m();r(3),y(o.startRecord+i),r(2),y(e.template_name),r(2),y(e.prefix+"-"+e.version_no),r(2),y(te(10,7,e.createdAt,"dd.MM.yyyy")),r(3),g("ngClass",e.status=="0"?"text-danger":"text-success"),r(4),g("ngClass",e.status=="0"?"btn-soft-success":"btn-soft-danger"),r(),y(e.status=="0"?"Aktivieren":"Deaktivieren")}}function us(n,t){n&1&&(le(0),l(1,"div",35),v(2,"app-no-data",36),a(),_e())}function gs(n,t){if(n&1){let e=b();l(0,"li",38)(1,"a",39),C("click",function(){let o=p(e).$implicit,s=m(2);return u(s.setPage(o))}),_(2),a()()}if(n&2){let e=t.$implicit,i=m(2);g("ngClass",me(2,ds,i.pager.currentPage===e)),r(2),y(e)}}function Cs(n,t){if(n&1){let e=b();l(0,"ul",37)(1,"li",38)(2,"a",39),C("click",function(){p(e);let o=m();return u(o.setPage(1))}),_(3,"<< "),a()(),l(4,"li",38)(5,"a",39),C("click",function(){p(e);let o=m();return u(o.setPage(o.pager.currentPage-1))}),_(6,"< "),a()(),I(7,gs,3,4,"li",40),l(8,"li",38)(9,"a",39),C("click",function(){p(e);let o=m();return u(o.setPage(o.pager.currentPage+1))}),_(10,">"),a()(),l(11,"li",38)(12,"a",39),C("click",function(){p(e);let o=m();return u(o.setPage(o.pager.totalPages))}),_(13,">>"),a()()()}if(n&2){let e=m();r(),g("ngClass",me(5,Ze,e.pager.currentPage===1)),r(3),g("ngClass",me(7,Ze,e.pager.currentPage===1)),r(3),g("ngForOf",e.pager.pages),r(),g("ngClass",me(9,Ze,e.pager.currentPage===e.pager.totalPages)),r(3),g("ngClass",me(11,Ze,e.pager.currentPage===e.pager.totalPages))}}var Ei=class n{constructor(t,e,i,o){this.route=t;this.userService=e;this.pagerService=i;this.sweetAlert=o;this.companyId="";this.templateList=[];this.pagedItems=[];this.pager={};this.startRecord=0;this.endRecord=0;this.isHovering=!1;this.templatesLoadInFlight=!1}ngOnInit(){this.routeSub=this.route.paramMap.pipe(vt(t=>t.get("company_id")||""),yt(t=>!!t),bt()).subscribe(t=>{this.companyId=t,this.loadTemplates()})}ngOnDestroy(){this.routeSub?.unsubscribe()}loadTemplates(){!this.companyId||this.templatesLoadInFlight||(this.templatesLoadInFlight=!0,$("#loaderouterid").css("display","flex"),this.userService.getContractTemplates(ne.brand_id,this.companyId,"all","all").subscribe({next:t=>{this.templatesLoadInFlight=!1,$("#loaderouterid").css("display","none"),this.templateList=t?.status==="200"&&t.data?.length?t.data:[],this.setPage(1)},error:()=>{this.templatesLoadInFlight=!1,$("#loaderouterid").css("display","none"),this.templateList=[],this.setPage(1)}}))}search(t){if(t.target.value){let e=[];this.templateList.forEach((i,o)=>{(i.template_name.toLowerCase().includes(t.target.value.toLowerCase())||(i.prefix+"-"+i.version_no).toLowerCase().includes(t.target.value.toLowerCase()))&&e.push(i),o===this.templateList.length-1&&this.setPage(1,e,"search")})}else this.setPage(1)}setPage(t,e=[],i=""){let o=i===""?this.templateList:e;this.pager=this.pagerService.getPager(o.length,t),this.pagedItems=o.slice(this.pager.startIndex,this.pager.endIndex+1),o.length>0?(this.startRecord=this.pager.currentPage*this.pagerService.getDefaultPageSize()-this.pagerService.getDefaultPageSize()+1,this.endRecord=this.pager.currentPage*this.pagerService.getDefaultPageSize()>o.length?o.length:this.pager.currentPage*this.pagerService.getDefaultPageSize()):(this.startRecord=0,this.endRecord=0)}createNewTemplate(){this.contractModal?.openForCreate()}openTemplate(t){this.contractModal?.openForEdit(t)}
2updateTemplateStatus(t){let e=t?.status==="0"||t?.status===0?"1":"0";$("#loaderouterid").css("display","flex"),this.userService.updateContractTemplateStatus(t?._id,e).subscribe(i=>{$("#loaderouterid").css("display","none"),i.status==="200"&&this.sweetAlert.custom({title:"Vorlage erfolgreich "+(e==="0"?"deaktiviert":"aktiviert")+".",content:`Vorlage \u201E${t.template_name}" wurde aktualisiert.`,type:"success",isHtml:!1,showCancel:!1,confirmText:"OK",confirmButtonClass:"btn-success",disableClose:!0}).subscribe(()=>this.loadTemplates())})}static{this.\u0275fac=function(e){return new(e||n)(N(Bt),N(Ne),N(Re),N(Be))}}static{this.\u0275cmp=re({type:n,selectors:[["app-company-contract-templates"]],viewQuery:function(e,i){if(e&1&&Ve(ke,5),e&2){let o;Ie(o=Oe())&&(i.contractModal=o.first)}},decls:41,vars:10,consts:[[1,"table-min-height"],[1,"second-section","editing-something"],[1,"container-fluid"],[1,"row"],[1,"col-sm-4","pr-1"],["type","text","name","search","placeholder","z.b. Vorlagenname",1,"search","myInput",3,"keyup.enter"],[1,"col-sm-3","pl-1"],["mat-button","",1,"button-primary","botton-hover",3,"click","mouseover","mouseout"],[1,"menu-image",3,"src"],[1,"ml-2"],[1,"col-sm-5"],[1,"table-count"],[1,"table-section"],[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"],["data-order","asc","data-name","template_name",1,"fa","fa-sort-desc",3,"appSort"],["data-order","asc","data-name","version_no",1,"fa","fa-sort-desc",3,"appSort"],[1,"accordion-list-main"],["class","accordion-list-item",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"d-flex","justify-content-end","pagination-main","mt-3","editing-something"],["class","pagination m-0 pagerAction",4,"ngIf"],[3,"saved","companyId"],[1,"accordion-list-item"],[1,"accordion-list-data","list-unstyled","d-flex","align-items-center"],[1,"customer-id"],[1,"customer-Unternehmensname"],[1,"fa","fa-circle",3,"ngClass"],["type","button",1,"btn","btn-sm","button-primary","m-1",3,"click"],["type","button",1,"btn","btn-sm",3,"click","ngClass"],[1,"text-center","py-5","w-100"],["message","Keine Vertragsvorlagen gefunden"],[1,"pagination","m-0","pagerAction"],[1,"page-item",3,"ngClass"],[1,"page-link",3,"click"],["class","page-item",3,"ngClass",4,"ngFor","ngForOf"]],template:function(e,i){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"input",5),C("keyup.enter",function(s){return i.search(s)}),a()(),l(6,"div",6)(7,"button",7),C("click",function(){return i.createNewTemplate()})("mouseover",function(){return i.isHovering=!0})("mouseout",function(){return i.isHovering=!1}),v(8,"img",8),l(9,"span",9),_(10,"Vorlage hinzuf\xFCgen"),a()()(),l(11,"div",10)(12,"span",11),_(13),a()()()()(),l(14,"div",12)(15,"div",13)(16,"div",14)(17,"div",15)(18,"div",16)(19,"ul",17)(20,"li",18),_(21,"#"),a(),l(22,"li",19),_(23," Vorlagenname "),v(24,"i",20),a(),l(25,"li",19),_(26," Versionnummer "),v(27,"i",21),a(),l(28,"li",19),_(29,"Erstellungsdatum"),a(),l(30,"li",19),_(31,"Status"),a(),l(32,"li",19),_(33,"Interaktionen"),a()()(),v(34,"hr"),l(35,"div",22),I(36,ps,18,10,"div",23)(37,us,3,0,"ng-container",24),a()()()(),l(38,"div",25),I(39,Cs,14,13,"ul",26),a()()(),l(40,"app-contract-management-modal",27),C("saved",function(){return i.loadTemplates()}),a()),e&2&&(r(8),g("src",i.isHovering?"../assets/plus icon.svg":"../assets/plus1.svg",ee),r(5),L(" Anzahl der Ergebnisse: ",i.startRecord," - ",i.endRecord," / ",i.templateList.length),r(11),g("appSort",i.pagedItems),r(3),g("appSort",i.pagedItems),r(9),g("ngForOf",i.pagedItems),r(),g("ngIf",(i.templateList==null?null:i.templateList.length)==0),r(2),g("ngIf",i.templateList.length&&(i.pager==null?null:i.pager.currentPage)),r(),g("companyId",i.companyId))},dependencies:[ce,De,Dt,Ge,Lt,zt,mi,si,ke,se],styles:[".company-logo[_ngcontent-%COMP%]{width:300px;object-fit:contain}"]})}};export{Ei as CompanyContractTemplatesComponent};
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.