1import{c as $}from"./chunk-LFBEE2XP.js";import"./chunk-EQSUTTVU.js";import"./chunk-JKYKZKPX.js";import"./chunk-Y32HPAO6.js";import"./chunk-SSYWQ7NA.js";import"./chunk-ZYH37D7B.js";import"./chunk-S7JIYYMP.js";import"./chunk-TV2RN4RR.js";import"./chunk-LIB7VMNY.js";import"./chunk-R5M2FGLW.js";import"./chunk-UPBF4N2S.js";import"./chunk-72WW4S2M.js";import{a as L}from"./chunk-UH62HCTJ.js";import{d as j,e as H}from"./chunk-6MZQVTP4.js";import"./chunk-6RZC52T6.js";import{C as z,F as B,b as O,f as V,g as P,n as U,u as G,v as R}from"./chunk-GE7A26O5.js";import{nd as T,od as k,ya as N}from"./chunk-WGYJ4VNB.js";import"./chunk-G6JVTTHL.js";import{a as g}from"./chunk-HTNLXQUD.js";import"./chunk-N56O2TJA.js";import{Bd as E,Cb as u,Dc as a,Ea as f,Ec as l,Fc as r,Gc as y,Ib as o,Ma as x,Na as A,Nd as _,Od as C,Qc as D,Ra as F,Yd as I,_c as S,ac as M,ad as m,ae as h,kd as w,pd as s,rd as d,w as b,wc as c,yc as p}from"./chunk-WI74XH4H.js";import"./chunk-RFT5DLLE.js";function J(t,i){t&1&&(l(0,"div",5),s(1),_(2,"cxTranslate"),r()),t&2&&(o(),d(" ",C(2,1,"checkoutOrderConfirmation.yourADM")," "))}function K(t,i){if(t&1&&(l(0,"div",6)(1,"a",7),y(2,"cx-icon",8),s(3),r()()),t&2){let e=m(),n=m();o(),a("href","tel:"+e.contactNumber,u),o(),a("type",n.icons.PHONE),o(),d(" ",e.contactNumber," ")}}function Q(t,i){if(t&1&&(l(0,"div",6)(1,"a",7),y(2,"cx-icon",8),s(3),r()()),t&2){let e=m(),n=m();o(),a("href","mailto:"+e.email,u),o(),a("type",n.icons.EMAIL),o(),d(" ",e.email," ")}}function W(t,i){if(t&1){let e=D();l(0,"div",6)(1,"form",9)(2,"div",10)(3,"input",11,0),S("change",function(){x(e);let v=w(4),Y=m(2);return A(Y.onADMSwitchChange(v.checked))}),r(),l(5,"label",12),s(6),_(7,"cxTranslate"),r()()()()}if(t&2){let e=m(2);o(),a("formGroup",e.admForm),o(2),a("value",!1),o(3),d(" ",C(7,3,"register.visitFromADM")," ")}}function X(t,i){if(t&1&&(l(0,"div",1)(1,"div",2),y(2,"img",3),r(),l(3,"div",4),s(4),r(),c(5,J,3,3,"div",5),c(6,K,4,3,"div",6),c(7,Q,4,3,"div",6),c(8,W,8,5,"div",6),r()),t&2){let e=i,n=m();o(2),a("alt",E(e.name))("src",n.imageSrc(),u),o(2),d(" ",e.name," "),o(),p(n.isVisibleInfoText()?5:-1),o(),p(e.contactNumber?6:-1),o(),p(e.email?7:-1),o(),p(n.showADMSwitch()?8:-1)}}var q=class t{employee=h.required();isVisibleInfoText=h(!0);showADMSwitch=h(!1);imageSrc=I(()=>{let i=this.employee();return i?.profilePicture?.url?`${this._baseUrl}${i.profilePicture.url}`:"/assets/images/adm_placeholder.jpg"});icons=L;_config=f(N);_fb=f(z);_userService=f($);_destroyRef=f(F);_baseUrl=this._config.backend?.occ?.baseUrl??"";admForm=this._fb.group({visitFromADM:[{value:!1,disabled:!0}]});get _admControl(){return this.admForm.get("visitFromADM")}ngOnInit(){b([this._userService.getVisitFromADMStatus(),this._userService.isADM()]).pipe(g(this._destroyRef)).subscribe(([i,e])=>{this._admControl.setValue(i),e?this._admControl.disable():this._admControl.enable()})}onADMSwitchChange(i){this._admControl.disable(),this._userService.setVisitFromADMStatus(i).pipe(g(this._destroyRef)).subscribe({error:()=>this.admForm.enable()})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=M({type:t,selectors:[["foerch-employee-avatar"]],inputs:{employee:[1,"employee"],isVisibleInfoText:[1,"isVisibleInfoText"],showADMSwitch:[1,"showADMSwitch"]},decls:1,vars:1,consts:[["admSwitch",""],[1,"employeeAvatar"],[1,"employeeAvatar-img"],[3,"alt","src"],[1,"employeeAvatar-name"],[1,"employeeAvatar-info"],[1,"employeeAvatar-phone"],[3,"href"],[3,"type"],[3,"formGroup"],[1,"form-check","form-switch","allow-login-switch"],["formControlName","visitFromADM","id","visitFromADM","type","checkbox",1,"form-check-input",3,"change","value"],["for","visitFromADM",1,"form-check-label"]],template:function(e,n){if(e&1&&c(0,X,9,8,"div",1),e&2){let v;p((v=n.employee())?0:-1,v)}},dependencies:[k,H,j,B,U,O,V,P,R,G,T],styles:["[_nghost-%COMP%]{display:inline-block}.allow-login-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]{margin-left:-32px}.allow-login-switch[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%]{padding-left:6px;padding-top:0;word-break:break-word}"],changeDetection:0})};export{q as FoerchEmployeeAvatarComponent};
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.