1import{a as ve}from"./chunk-SK4UNYWZ.js";import{a as Se}from"./chunk-KEWVNGRO.js";import{a as he}from"./chunk-OTADICJ2.js";import{b as Ne,c as R}from"./chunk-ZFY6QLWR.js";import{a as me,b as ue,c as fe}from"./chunk-YFA5KPPJ.js";import{Ba as Ie,Fa as N,Ha as Fe,na as we,oa as _e,qa as Ce,sa as be,ta as xe,xa as ye,ya as Me}from"./chunk-PN4O5FMN.js";import{a as k}from"./chunk-5BSMOAMV.js";import{c as de,f as ce}from"./chunk-D67Q4DSW.js";import{a as pe,f as ge}from"./chunk-RYZZHX5M.js";import{A as se,j as M,q as le}from"./chunk-BI27YA3Y.js";import{Ca as G,Cc as h,Hb as w,Hc as l,Ib as _,Ic as d,Jc as ae,Kb as Q,Lb as Y,Mb as ee,Nb as p,Ob as r,Pb as s,Qb as b,Va as Z,Xb as B,Xc as z,Yc as m,Z as j,_ as K,_a as n,ac as x,cc as u,da as a,db as q,eb as X,fb as H,ia as S,ja as O,jb as D,jc as te,md as I,na as U,nc as oe,nd as F,oc as c,pc as P,qb as g,qc as C,rb as J,sc as y,tc as ie,uc as ne,va as $,vc as re,xa as W,xc as E}from"./chunk-ZN33ZYYU.js";var ze=e=>[e],ke=e=>({"breadcrumb_link--active":e});function Re(e,v){if(e&1&&(r(0,"div",2),b(1,"i"),s()),e&2){let t=u(2);n(),oe(E("fa-regular ",t.separatorIcon," breadcrumb_separator_icon"))}}function Ve(e,v){if(e&1&&(r(0,"li")(1,"a",1),l(2,"localize"),r(3,"bdi"),c(4),s()()(),w(5,Re,2,3,"div",2)),e&2){let t=v.$implicit,o=v.$index,i=u();n(),p("routerLink",t.isActive?ae(2,4,h(7,ze,t.url),i.localeService.locale()):null)("ngClass",h(9,ke,o+1===i.breadcrumbs.length)),n(3),P(t.label),n(),_(o+1<i.breadcrumbs.length?5:-1)}}var Ye=(()=>{class e{separatorIcon="fa-chevron-right";breadcrumbs=[];localeService=a(he);static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["app-breadcrumbs"]],inputs:{separatorIcon:"separatorIcon",breadcrumbs:"breadcrumbs"},decls:3,vars:0,consts:[[1,"breadcrumb"],[1,"breadcrumb_link",3,"routerLink","ngClass"],[1,"breadcrumb_separator"]],template:function(o,i){o&1&&(r(0,"ul",0),Y(1,Ve,6,11,null,null,Q),s()),o&2&&(n(),ee(i.breadcrumbs))},dependencies:[ce,M,Se],styles:["[_nghost-%COMP%]{width:100%}.breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:14px;line-height:20px;width:100%;padding-top:20px;padding-bottom:20px}.breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block}.breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-of-type{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.breadcrumb_link[_ngcontent-%COMP%]{color:var(--gray-600);text-decoration:none}.breadcrumb_link--active[_ngcontent-%COMP%]{color:var(--gray-800);font-weight:600}
1.breadcrumb_separator[_ngcontent-%COMP%]{display:flex;height:16px;width:16px;margin:0 6px}.breadcrumb_separator_icon[_ngcontent-%COMP%]{width:16px;height:auto}"]})}return e})();var V=class{followedDepartment=null;email;locale;turnstileToken};var L=(()=>{class e extends ge{create(t){return this.http.post(`${this.api.dns}/follow`,t)}unfollow(t){return this.http.patch(`${this.api.dns}/${this.api.version}/profile/follow/unfollow`,{departmentList:[t]})}static \u0275fac=(()=>{let t;return function(i){return(t||(t=$(e)))(i||e)}})();static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Oe="ngx-turnstile",A="onloadTurnstileCallback",Pe=(()=>{class e{elementRef;zone;document;siteKey;action;cData;theme="auto";language="auto";version="0";tabIndex;appearance="always";retry="auto";size="normal";resolved=new q;errored=new q;widgetId;constructor(t,o,i){this.elementRef=t,this.zone=o,this.document=i,H(()=>this.createWidget())}_getCloudflareTurnstileUrl(){if(this.version==="0")return"https://challenges.cloudflare.com/turnstile/v0/api.js";throw"Version not defined in ngx-turnstile component."}createWidget(){let t={sitekey:this.siteKey,theme:this.theme,language:this.language,tabindex:this.tabIndex,action:this.action,cData:this.cData,appearance:this.appearance,retry:this.retry,size:this.size,callback:i=>{this.zone.run(()=>this.resolved.emit(i))},"error-callback":i=>(this.zone.run(()=>this.errored.emit(i)),!1),"expired-callback":()=>{this.zone.run(()=>this.reset())}};if(window[A]=()=>{this.elementRef?.nativeElement&&(this.widgetId=window.turnstile.render(this.elementRef.nativeElement,t))},this.scriptLoaded()){window[A]();return}let o=this.document.createElement("script");o.src=`${this._getCloudflareTurnstileUrl()}?render=explicit&onload=${A}`,o.id=Oe,o.async=!0,o.defer=!0,this.document.head.appendChild(o)}reset(){this.widgetId&&(this.resolved.emit(null),window.turnstile.reset(this.widgetId))}ngOnDestroy(){this.widgetId&&window.turnstile.remove(this.widgetId)}scriptLoaded(){return!!this.document.getElementById(Oe)}static \u0275fac=function(o){return new(o||e)(D(W),D(X),D(U))};static \u0275cmp=g({type:e,selectors:[["ngx-turnstile"]],inputs:{siteKey:"siteKey",action:"action",cData:"cData",theme:"theme",language:"language",version:"version",tabIndex:"tabIndex",appearance:"appearance",retry:"retry",size:"size"},outputs:{resolved:"resolved",errored:"errored"},exportAs:["ngx-turnstile"],standalone:!1,decls:0,vars:0,template:function(o,i){},encapsulation:2})}return e})(),Te=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=J({type:e});static \u0275inj=K({})}return e})();function je(e,v){if(e&1){let t=B();r(0,"ivx-input",11),l(1,"transloco"),re("ngModelChange",function(i){S(t);let f=u();return ne(f.follow.email,i)||(f.follow.email=i),O(i)}),s()}if(e&2){let t=u();ie("ngModel",t.follow.email),p("required",!0)("emailNotValidError",d(1,3,"errors.email_not_valid"))}}function qe(e,v){e&1&&(r(0,"span",13),c(1),l(2,"transloco"),s()),e&2&&(n(),P(d(2,1,"follow.captcha")))}function Ae(e,v){if(e&1){let t=B();r(0,"div",8)(1,"ngx-turnstile",12),x("resolved",function(i){S(t);let f=u();return O(f.resolved(i))})("errored",function(){S(t);let i=u();return O(i.errorOrExpired())}),s(),w(2,qe,3,3,"span",13),s()}if(e&2){let t=u();n(),p("siteKey",t.turnstileSiteKey),n(),_(t.sendCaptchaNotResolved?2:-1)}}var De=(()=>{class e{ref=a(ue);config=a(me);requests=a(L);toasts=a(k);translate=a(I);tokenStorage=a(Ne);meService=a(R);departmentId;departmentName;follow;errors={};loading=!1;captchaResolved=!1;sendCaptchaNotResolved=!1;locale;turnstileSiteKey;constructor(){this.config.data.departmentId&&(this.departmentId=this.config.data.departmentId),this.config.data.departmentName&&(this.departmentName=this.config.data.departmentName),this.follow=new V,this.locale=this.translate.getActiveLang(),this.turnstileSiteKey=pe.turnstile.siteKey}onClose(){this.ref.close()}isLogged(){return this.tokenStorage.isLogged()}onSubmit(){this.loading=!0,this.follow.locale=this.locale,this.departmentId&&(this.follow.followedDepartment=this.departmentId);let t=this.departmentName;if(!this.captchaResolved&&this.isLogged()===!1){this.sendCaptchaNotResolved=!0,this.loading=!1;return}this.requests.create(this.follow).subscribe({next:()=>{this.loading=!1,this.meService.addFollow(this.follow.followedDepartment),this.ref.close(!0),this.toasts.sendSuccess(this.translate.translate("follow.confirm")+" "+t)},error:o=>{this.loading=!1,this.ref.close(),this.toasts.sendError(this.translate.translate(o.error.message))}})}resolved(t){t&&(this.follow.turnstileToken=t,this.captchaResolved=!0)}errorOrExpired(){this.captchaResolved=!1}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["app-follow"]],decls:23,vars:25,consts:[["form","ngForm"],[1,"modal","follow-modal"],[1,"modal__body"],[1,"modal__wrapper"],[1,"form",3,"submit"],["name","email","type","email","label","Email","email","","placeholder","[email protected]",3,"ngModel","required","emailNotValidError"],[1,"info"],["target","_blank",3,"href"],[1,"captcha"],[1,"form__action"],["type","submit","color","primary","full","",3,"loading","disabled"],["name","email","type","email","label","Email","email","","placeholder","[email protected]",3,"ngModelChange","ngModel","required","emailNotValidError"],["theme","light","size","flexible",3,"resolved","errored","siteKey"],[1,"captcha_error"]],template:function(o,i){if(o&1){let f=B();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"p"),c(4),l(5,"transloco"),l(6,"transloco"),s(),r(7,"form",4,0),x("submit",function(){return S(f),O(i.onSubmit())}),w(9,je,2,5,"ivx-input",5),r(10,"span",6),c(11),l(12,"transloco"),r(13,"a",7),l(14,"uppercase"),c(15),l(16,"transloco"),s(),c(17,". "),s(),w(18,Ae,3,2,"div",8),r(19,"div",9)(20,"ivx-button",10),c(21),l(22,"transloco"),s()()()()()()}if(o&2){let f=te(8);p("@fadeIn",void 0),n(4),y("",d(5,13,"follow.receiveLastNewsFrom_1")," ",i.departmentName," ",d(6,15,"follow.receiveLastNewsFrom_2")),n(5),_(i.isLogged()===!1?9:-1),n(2),C(" ",d(12,17,"follow.footer")," "),n(2),p("href",E("assets/pdf/INVIVOX_Privacy_Policy_",d(14,19,i.locale),".pdf"),Z),n(2),P(d(16,21,"footer.confidential")),n(3),_(i.isLogged()===!1?18:-1),n(2),p("loading",i.loading)("disabled",f.invalid),n(),C(" ",d(22,23,"follow.send")," ")}},dependencies:[Ie,xe,we,_e,ye,Me,be,Ce,N,Fe,Te,Pe,F,le],styles:[".follow-modal[_ngcontent-%COMP%]{padding:30px}.follow-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin-bottom:28px;font-weight:600;font-size:16px}.follow-modal[_ngcontent-%COMP%] .health_professional[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:25px}.follow-modal[_ngcontent-%COMP%] .health_professional[_ngcontent-%COMP%] app-radio[_ngcontent-%COMP%]{margin-top:10px}.follow-modal[_ngcontent-%COMP%] .modal__wrapper[_ngcontent-%COMP%]{max-width:440px;margin:auto}.follow-modal[_ngcontent-%COMP%] .modal__wrapper[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px}.follow-modal[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{display:block;margin-bottom:12px;font-weight:400;font-size:11px}.follow-modal[_ngcontent-%COMP%] .captcha_error[_ngcontent-%COMP%]{color:red;display:block;margin-bottom:40px;font-weight:400;font-size:14px}.follow-modal[_ngcontent-%COMP%] .captcha[_ngcontent-%COMP%]{display:flex;justify-content:center}.follow-modal[_ngcontent-%COMP%] .radio-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:20px}.follow-modal[_ngcontent-%COMP%] .modal__header[_ngcontent-%COMP%]{padding:40px 0}"],data:{animation:[ve]}})}return e})();var Be=e=>({notify:e});function Ke(e,v){if(e&1&&(r(0,"div",1),b(1,"i",2),c(2),l(3,"transloco"),r(4,"
1span",3)(5,"p"),c(6),l(7,"transloco"),l(8,"transloco"),s()()()),e&2){let t=u();n(2),C(" ",d(3,5,"follow.title")," "),n(2),p("ngClass",h(11,Be,t.mobileFloat())),n(2),y("",d(7,7,"department.notified")," ",t.departmentName()," ",d(8,9,"department.new_content"))}}function Ue(e,v){e&1&&(r(0,"div",1),b(1,"i",4),c(2),l(3,"transloco"),s()),e&2&&(n(2),C(" ",d(3,1,"department.following")," "))}var Kt=(()=>{class e{platformId=a(G);departmentId=m.required();departmentName=m.required();follow=m.required();color=m("primary");size=m("medium");mobileFloat=m(!0);hasFollow=z();dialogService=a(fe);route=a(de);translate=a(I);isBrowser;constructor(){this.isBrowser=se(this.platformId)}onFollow(){if(this.follow())return;this.dialogService.open(De,{data:{departmentId:this.departmentId(),departmentName:this.departmentName()},modal:!0,closable:!0,header:this.translate.translate("follow.title"),styleClass:"follow-modale",closeOnEscape:!0,baseZIndex:800})?.onClose.subscribe(o=>{o&&this.hasFollow.emit(!0)})}ngAfterViewInit(){if(this.isBrowser){let t=this.route.snapshot.queryParams.openAlert;t&&t==="true"&&setTimeout(()=>{this.onFollow()},0)}}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["app-follow-button"]],inputs:{departmentId:[1,"departmentId"],departmentName:[1,"departmentName"],follow:[1,"follow"],color:[1,"color"],size:[1,"size"],mobileFloat:[1,"mobileFloat"]},outputs:{hasFollow:"hasFollow"},decls:3,vars:7,consts:[["type","button",3,"click","size","color","disabled","ngClass"],[1,"btn-notify"],[1,"inv-icon","icon-notif--b"],[1,"notify","tooltip",3,"ngClass"],[1,"inv-icon","icon-check--b"]],template:function(o,i){o&1&&(r(0,"ivx-button",0),x("click",function(){return i.onFollow()}),w(1,Ke,9,13,"div",1)(2,Ue,4,3,"div",1),s()),o&2&&(p("size",i.size())("color",i.color())("disabled",i.follow())("ngClass",h(5,Be,i.mobileFloat())),n(),_(i.follow()?2:1))},dependencies:[M,N,F],styles:["[_nghost-%COMP%]{display:inline-block}.btn-notify[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}"]})}return e})();var Ee=e=>({notify:e}),Yt=(()=>{class e{departmentId=m.required();departmentName=m.required();mobileFloat=m(!0);size=m("medium");hasFollow=z();loading=!1;requests=a(L);meService=a(R);toasts=a(k);translate=a(I);unfollow(){this.requests.unfollow(this.departmentId()).subscribe({next:()=>{this.meService.removeFollow(this.departmentId()),this.loading=!1,this.toasts.sendSuccess(this.translate.translate("unfollow.confirm")),this.hasFollow.emit(!1)},error:t=>{this.loading=!1,this.toasts.sendError(this.translate.translate(t.error.message))}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["app-unfollow-button"]],inputs:{departmentId:[1,"departmentId"],departmentName:[1,"departmentName"],mobileFloat:[1,"mobileFloat"],size:[1,"size"]},outputs:{hasFollow:"hasFollow"},decls:10,vars:18,consts:[["type","button","color","red",3,"click","size","loading","ngClass"],[1,"btn-notify"],[1,"fa-regular","fa-bell-slash"],[1,"notify","tooltip",3,"ngClass"]],template:function(o,i){o&1&&(r(0,"ivx-button",0),x("click",function(){return i.unfollow()}),r(1,"div",1),b(2,"i",2),c(3),l(4,"transloco"),r(5,"span",3)(6,"p"),c(7),l(8,"transloco"),l(9,"transloco"),s()()()()),o&2&&(p("size",i.size())("loading",i.loading)("ngClass",h(14,Ee,i.mobileFloat())),n(3),C(" ",d(4,8,"unfollow.title")," "),n(2),p("ngClass",h(16,Ee,i.mobileFloat())),n(2),y("",d(8,10,"department.unnotified")," ",i.departmentName()," ",d(9,12,"department.new_content")))},dependencies:[M,N,F],styles:["[_nghost-%COMP%]{display:inline-block}.btn-notify[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}"]})}return e})();export{Kt as a,Yt as b,Ye as c};
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.