1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[551],{10551:(F,u,n)=>{n.r(u),n.d(u,{PatientClinicFaqsPageModule:()=>T});var o=n(36895),v=n(24006),g=n(26627),s=n(50312),r=n(92216),m=n(89383),f=n(15626),c=n(69873),h=n(39646),x=n(54004),M=n(34782),P=n(63900),O=n(66328),q=n(5830),t=n(94650),I=n(80529);let y=(()=>{var e;class p extends q.s{constructor(a){super(),this.http=a,this.FAQS_URI=`${O.x$}/clinic_faqs`}getFaqs(a){let d=this.getQueryString(a);return this.http.get(`${this.FAQS_URI}?${d}`)}getFaqsForClinic(a,d){let i=d||{};return i.filters=i.filters?i.filters:[],i.filters.clinicId=a,this.getFaqs(i)}}return(e=p).\u0275fac=function(a){return new(a||e)(t.LFG(I.eN))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),p})();var A=n(32139),E=n(82388),Z=n(38215);function w(e,p){if(1&e){const l=t.EpF();t.ynx(0),t.TgZ(1,"ion-item",11),t.NdJ("click",function(){const i=t.CHM(l).$implicit;return t.KtG(i.showAnswer=!i.showAnswer)}),t.TgZ(2,"ion-label",12)(3,"h2")(4,"b"),t._uU(5),t.qZA()()(),t._UZ(6,"ion-icon",13),t.qZA(),t.TgZ(7,"app-expandable",14)(8,"ion-item")(9,"ion-label",12)(10,"h2",15),t._uU(11),t.qZA()()()(),t.BQk()}if(2&e){const l=p.$implicit;t.xp6(1),t.Q6J("lines",l.showAnswer?"none":"default"),t.xp6(4),t.Oqu(l.faq.question),t.xp6(1),t.Q6J("name",l.showAnswer?"chevron-up-outline":"chevron-down-outline"),t.xp6(1),t.Q6J("expanded",l.showAnswer),t.xp6(4),t.Oqu(l.faq.answer)}}function S(e,p){if(1&e&&(t.ynx(0),t.YNc(1,w,12,5,"ng-container",10),t.BQk()),2&e){const l=p.ngIf;t.xp6(1),t.Q6J("ngForOf",l)}}function U(e,p){1&e&&t._UZ(0,"ion-spinner",16)}const Q=[{path:"",component:(()=>{var e;class p{constructor(a,d,i,C,$){this.router=a,this.patientService=d,this.clinicFaqsService=i,this.hospitalizationsService=C,this.activatedRoute=$}ngOnInit(){}get backButtonLink(){return this.router.url.split("/").slice(0,-1).join("/")}ionViewWillEnter(){let a=window.history.state.patient,d=this.activatedRoute.paramMap.pipe((0,x.U)(i=>Number(i.get("patientID"))),(0,M.d)());this.patient$=a?(0,h.of)(a):d.pipe((0,P.w)(i=>this.patientService.getPatient(i,{include:["user"]}))),this.faqItems$=d.pipe((0,P.w)(i=>this.hospitalizationsService.getPatientHospitalizations(i,{filters:{active:!0}})),(0,x.U)(i=>i.length>0?i[0]:null),(0,P.w)(i=>i?this.clinicFaqsService.getFaqsForClinic(i.clinicId):(0,h.of)([])),(0,x.U)(i=>i.map(C=>({faq:C,showAnswer:!1}))),(0,M.d)(1))}}return(e=p).\u0275fac=function(a){return new(a||e)(t.Y36(g.F0),t.Y36(E.$g),t.Y36(y),t.Y36(A.t),t.Y36(g.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-patient-clinic-faqs"]],decls:13,vars:5,consts:[["mode","ios",1,"ion-no-border"],["slot","start"],["text","",3,"defaultHref"],["mode","md","translate","patient_clinic_faqs.title"],["forceOverscroll","false"],[1,"container"],[1,"title-item"],["translate","patient_clinic_faqs.faqs_title"],[4,"ngIf","ngIfElse"],["loading",""],[4,"ngFor","ngForOf"],[1,"faq-item","with-pointer",3,"lines","click"],[1,"ion-text-wrap"],["slot","end",3,"name"],["expandHeight","500px",3,"expanded"],[1,"ion-text-justify",2,"white-space","break-spaces"],["name","circles",1,"loading"]],template:function(a,d){if(1&a&&(t.TgZ(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1),t._UZ(3,"ion-back-button",2),t.qZA(),t._UZ(4,"ion-title",3),t.qZA()(),t.TgZ(5,"ion-content",4)(6,"div",5)(7,"ion-item",6),t._UZ(8,"ion-text",7),t.qZA(),t.YNc(9,S,2,1,"ng-container",8),t.ALo(10,"async"),t.YNc(11,U,1,0,"ng-template",null,9,t.W1O),t.qZA()()),2&a){const i=t.MAs(12);t.xp6(3),t.Q6J("defaultHref",d.backButtonLink),t.xp6(6),t.Q6J("ngIf",t.lcZ(10,3,d.faqItems$))("ngIfElse",i)}},dependencies:[o.sg,o.O5,m.Pi,Z.I,s.oU,s.Sm,s.W2,s.Gu,s.gu,s.Ie,s.Q$,s.PQ,s.yW,s.wd,s.sr,s.cs,o.Ov],styles:["ion-item[_ngcontent-%COMP%]{--padding-start: 0;--border-color: #CDCDCD;flex-shrink:0}ion-item.title-item[_ngcontent-%COMP%]{--min-height: 0;margin-bottom:8px}ion-item.title-item[_ngcontent-%COMP%] ion-text[_ngcontent-%COMP%]{font-weight:700;font-size:18px}ion-item.faq-item[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px}ion-item.faq-item[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:#9c9c9e}ion-button[_ngcontent-%COMP%]{align-self:center;flex-shrink:0;width:100%;min-height:36px;height:36px;--border-radius: 18px;margin-top:8px;margin-bottom:32px}.loading[_ngcontent-%COMP%]{display:block;margin:auto;position:absolute;inset:0}"]}),p})()}];let T=(()=>{var e;class p{}return(e=p).\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[o.ez,v.u5,f.K,r.uH,m.aw,c.p,s.Pc,g.Bz.forChild(Q)]}),p})()},38215:(F,u,n)=>{n.d(u,{I:()=>s});var o=n(94650);
1const v=["expandWrapper"],g=["*"];let s=(()=>{var r;class m{constructor(c){this.renderer=c,this.expanded=!1,this.expandHeight="150px"}ngAfterViewInit(){this.renderer.setStyle(this.expandWrapper.nativeElement,"max-height",this.expandHeight)}}return(r=m).\u0275fac=function(c){return new(c||r)(o.Y36(o.Qsj))},r.\u0275cmp=o.Xpm({type:r,selectors:[["app-expandable"]],viewQuery:function(c,h){if(1&c&&o.Gf(v,7),2&c){let x;o.iGM(x=o.CRH())&&(h.expandWrapper=x.first)}},inputs:{expanded:"expanded",expandHeight:"expandHeight"},ngContentSelectors:g,decls:3,vars:2,consts:[[1,"expand-wrapper"],["expandWrapper",""]],template:function(c,h){1&c&&(o.F$t(),o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA()),2&c&&o.ekj("collapsed",!h.expanded)},styles:[".expand-wrapper[_ngcontent-%COMP%]{transition:max-height .4s ease-in-out;overflow:hidden;height:auto}.collapsed[_ngcontent-%COMP%]{max-height:0!important}"]}),m})()},69873:(F,u,n)=>{n.d(u,{p:()=>s});var o=n(36895),v=n(50312),g=n(94650);let s=(()=>{var r;class m{}return(r=m).\u0275fac=function(c){return new(c||r)},r.\u0275mod=g.oAB({type:r}),r.\u0275inj=g.cJS({imports:[o.ez,v.Pc]}),m})()}}]);
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.