1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[124,9589,9003],{89589:(m,f,u)=>{u.d(f,{v:()=>i});var g=u(12299),o=u(71827),d=u(11979),l=u(49010),h=u(61368),v=u(85498),a=u(46885);let i=(()=>{class c{constructor(e,t,r){this.http=e,this.authService=t,this.languageSwitcher=r}listIssues(e={}){e.scheduled_at_after&&"string"!=typeof e.scheduled_at_after&&(e.scheduled_at_after=e.scheduled_at_after.toISO()),e.scheduled_at_before&&"string"!=typeof e.scheduled_at_before&&(e.scheduled_at_before=e.scheduled_at_before.toISO());const t=new URLSearchParams(e);return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:r,options:s})=>this.http.get(`${r}/api/v1/issues/?${t}`,s)))}getIssue(e){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>this.http.get(`${t}/api/v1/issues/${e}/`,r)))}updateIssue(e,t){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:r,options:s})=>this.http.patch(`${r}/api/v1/issues/${e}/`,t,s)))}assignUrgent(e={}){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>{const s=new URLSearchParams(e);return this.http.post(`${t}/api/v1/issues/assign_urgent/?${s}`,{},r)}))}createPayment(e){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>this.http.post(`${t}/api/v1/issues/payment/`,e,r)))}createImage(e,t){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:r,options:s})=>{const p=`${r}/api/v1/issues/images/`,_=new FormData;return _.append("issue",e),_.append("image",t),s.headers=s.headers.delete("Content-Type"),this.http.post(p,_,s)}))}getImage(e){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>this.http.get(`${t}/api/v1/issues/images/${e}/`,r)))}listImages(e={}){const t=new URLSearchParams(e);return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:r,options:s})=>this.http.get(`${r}/api/v1/issues/images/?${t}`,s)))}createFile(e,t){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:r,options:s})=>{const p=`${r}/api/v1/issues/files/`,_=new FormData;return _.append("issue",e),_.append("file",t),s.headers=s.headers.delete("Content-Type"),this.http.post(p,_,s)}))}getFile(e){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>this.http.get(`${t}/api/v1/issues/files/${e}/`,r)))}downloadFile(e){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>this.http.get(`${t}/api/v1/issues/files/${e}/download/`,{...r,responseType:"blob"})))}getSignedFileLink(e){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>this.http.get(`${t}/api/v1/issues/files/${e}/download_link/`,r)))}generatePdf(e){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>this.http.get(`${t}/api/v1/issues/${e}/download/`,{...r,responseType:"blob"})))}getSignedJournalLink(e){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:t,options:r})=>this.http.get(`${t}/api/v1/issues/${e}/download_link/`,r)))}listFiles(e={}){const t=new URLSearchParams(e);return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:r,options:s})=>this.http.get(`${r}/api/v1/issues/files/?${t}`,s)))}listCategories(e={}){return(0,g.D)([this.authService.getOptions(),this.languageSwitcher.getCurrentLocale()]).pipe((0,o.zg)(([{rootUrl:t,options:r},s])=>{const p=new URLSearchParams({language_code:s,...e});return this.http.get(`${t}/api/v1/issues/categories/?${p}`,r)}))}getCategory(e){return(0,g.D)([this.authService.getOptions(),this.languageSwitcher.getCurrentLocale()]).pipe((0,o.zg)(([{rootUrl:t,options:r},s])=>{const p=new URLSearchParams({language_code:s});return this.http.get(`${t}/api/v1/issues/categories/${e}/?${p}`,r)}))}enableCategories(){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:e,options:t})=>this.http.put(`${e}/api/v1/issues/categories/enable/`,{},t)))}disableCategories(){return this.authService.getOptions().pipe((0,o.zg)(({rootUrl:e,options:t})=>this.http.put(`${e}/api/v1/issues/categories/disable/`,{},t)))}filterCategories(e,t){return this.listCategories(t).pipe((0,d.U)(r=>r.map(s=>(s.services=s.services.filter(p=>p.queue===e.queue&&(!e.demography||p.demography===e.demography)&&p.visit_kind===e.visit_kind),s)).filter(s=>s.services.length>0)))}getService(e,t){return(0,g.D)([this.authService.getOptions(),this.languageSwitcher.getCurrentLocale()]).pipe((0,o.zg)(([{rootUrl:r,options:s},p])=>{const _=new URLSearchParams({...t}),S=`${r}/api/v1/services/${e}/?${_}`;return s.headers=s.headers.append("Accept-Language",p),this.http.get(S,s)}))}listServices(e={}){return(0,g.D)([this.authService.getOptions(),this.languageSwitcher.getCurrentLocale()]).pipe((0,o.zg)(([{rootUrl:t,options:r},s])=>{const _=`${t}/api/v1/services/?${new URLSearchParams({...e})}`;return r.headers=r.headers.append("Accept-Language",s),this.http.get(_,r)}))}downloadJournal(e){return(0,g.D)([this.authService.getOptions(),this.languageSwitcher.getCurrentLocale()]).pipe((0,o.zg)(([{rootUrl:t},s])=>this.http.get(`${t}/api/v1/issues/document/${e}`,{responseType:"blob"})))}}return c.\u0275fac=function(e){return new(e||c)(v.\u0275\u0275inject(a.eN),v.\u0275\u0275inject(l.e),v.\u0275\u0275inject(h.r))},c.\u0275prov=v.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})()},94115:(m,f,u)=>{u.d(f,{n:()=>o});var g=u(85498);let o=(()=>{class d{constructor(){this.formID=null,this.state=null}setForm(h,v){try{window.sessionStorage.setItem(d.STORAGE_FORM_ID_KEY,h)}catch(a){console.warn(a)}this.formID=h,this.state=v}getCurrentFormID(){if(this.formID)return this.formID;try{return window.sessionStorage.getItem(d.STORAGE_FORM_ID_KEY)}catch(h){return console.warn(h),null}}getCurrentState(){return this.state}reset(){try{window.sessionStorage.removeItem(d.STORAGE_FORM_ID_KEY)}catch(h){console.warn(h)}this.formID=null,this.state=null}}return d.STORAGE_FORM_ID_KEY="otp_form_id",d.\u0275fac=function(h){return new(h||d)},d.\u0275prov=g.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},75079:(m,f,u)=>{u.d(f,{m:()=>a});var g=u(49010),o=u(67856),d=u(91392),l=u(18706),h=u(85498),v=u(85397);let a=(()=>{class i{constructor(n,e,t,r){this.router=n,this.authService=e,this.pageService=t,this.capacitorService=r}goToPageViaLink(n,e){this.pageService.getPage(n).subscribe(t=>{var r;this.page=t,this.page.sections.forEach(s=>{s.links.forEach(p=>{p.service_target===e&&(r=p)})}),this.chooseService(r,this.page,n)})}chooseService(n,e,t){n.service_target?this.goToNext(n,t):n.external_link_target?this.capacitorService.openExternalUrl(n.external_link_target):n.page_target&&this.router.navigate([l.$.REPORT,l.$.SERVICES,n.page_target])}goToNext(n,e){this.router.navigate("urgent"===n.queue?[l.$.REPORT,l.$.SERVICES,e,n.service_target,l.$.COMM]:[l.$.REPORT,l.$.SERVICES,e,n.service_target,l.$.CALENDAR])}goToCheckout(n,e,t,r,s,p){const _=[l.$.REPORT,l.$.SERVICES];e&&_.push(e),_.push(n),r&&t&&_.push(l.$.CALENDAR,r,t),_.push(l.$.REAL),this.router.navigate(_,{queryParams:{channelKind:s??null,page:null,service:null,code:p??null},queryParamsHandling:"merge"})}}return i.\u0275fac=function(n){return new(n||i)(h.\u0275\u0275inject(v.F0),h.\u0275\u0275inject(g.e),h.\u0275\u0275inject(d.P),h.\u0275\u0275inject(o.W))},i.\u0275prov=h.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),i})()},91392:(m,f,u)=>{u.d(f,{P:()=>a});var g=u(12299),o=u(71827),d=u(49010),l=u(61368),h=u(85498),v=u(46885);let a=(()=>{class i{constructor(n,e,t){this.http=n,this.authService=e,this.languageSwitcher=t}getPage(n){return(0,g.D)([this.authService.getOptions(),this.languageSwitcher.getCurrentLocale()]).pipe((0,o.zg)(([{rootUrl:e,options:t},r])=>{const s=`${e}/api/v1/services/pages/${n}/`;return t.headers=t.headers.append("Accept-Language",r),this.http.get(s,t)}))}findPage(n){return(0,g.D)([this.authService.getOptions(),this.languageSwitcher.getCurrentLocale()]).pipe((0,o.zg)(([{rootUrl:e,options:t},r])=>{const s=`${e}/api/v1/services/pages/?service=${n}`;return t.headers=t.headers.append("Accept-Language",r),this.http.get(s,t)}))}}return i.\u0275fac=function(n){return new(n||i)(h.\u0275\u0275inject(v.eN),h.\u0275\u0275inject(d.e),h.\u0275\u0275inject(l.r))},i.\u0275prov=h.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),i})()},20036:(m,f,u)=>{u.d(f,{e:()=>l});var g=u(50741),o=u(28768),d=u(85498);let l=(()=>{class h{constructor(){}emptyUserCredentials(){return{username:"",password:"",remember_me:!1,accept_terms:!1}}saveUserCredentialsForm(a){var i=this;return(0,g.Z)(function*(){const c=i.emptyUserCredentials();c.accept_terms=a.accept_terms,a.remember_me&&(c.username=a.username,c.password=a.password,c.remember_me=!0),yield i.setSavedUser(c)})()}saveSafeUserCredentials(a){var i=this;return(0,g.Z)(function*(){const c=i.emptyUserCredentials();c.username=a.username,c.accept_terms=a.accept_terms,yield i.setSavedUser(c)})()}patchSavedUser(a){var i=this;return(0,g.Z)(function*(){const c=yield i.getSavedUser();c.username&&a.username&&(c.username=a.username),c.password&&a.password&&(c.password=a.password),yield i.setSavedUser(c)})()}setSavedUser(a){var i=this;return(0,g.Z)(function*(){const c=JSON.stringify(a);try{const e=(new TextEncoder).encode(c),t=window.crypto.getRandomValues(new Uint8Array(12)),r=yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},yield i.encryptionKey(),e),s=yield window.crypto.subtle.sign("HMAC",yield i.signatureKey(),r),p={data:i.arrayBufferToBase64(r),signature:i.arrayBufferToBase64(s),iv:i.arrayBufferToBase64(t)};yield o.u.set({key:"savedUser",value:btoa(JSON.stringify(p))})}catch(n){console.error(n)}})()}getSavedUser(){var a=this;return(0,g.Z)(function*(){const i=yield o.u.get({key:"savedUser"});let c=a.emptyUserCredentials();if(i.value)try{const n=JSON.parse(atob(i.value));if(yield window.crypto.subtle.verify("HMAC",yield a.signatureKey(),a.base64ToArrayBuffer(n.signature),a.base64ToArrayBuffer(n.data))){const t=yield window.crypto.subtle.decrypt({
1name:"AES-GCM",iv:a.base64ToArrayBuffer(n.iv)},yield a.encryptionKey(),a.base64ToArrayBuffer(n.data)),s=(new TextDecoder).decode(t);c=JSON.parse(s)}}catch(n){console.error(n)}return c})()}encryptionKey(){var a=this;return(0,g.Z)(function*(){return yield window.crypto.subtle.importKey("raw",a.base64ToArrayBuffer("brmvgItlMSRvH6DU6syMk6HObnFM1FhIl+888FnjVRg="),"AES-GCM",!0,["encrypt","decrypt"])})()}signatureKey(){var a=this;return(0,g.Z)(function*(){return yield window.crypto.subtle.importKey("raw",a.base64ToArrayBuffer("w92cBkfq4x0j75FdismoDgpjd+5HpMP3mYMftI7nbao="),{name:"HMAC",hash:"SHA-256"},!0,["sign","verify"])})()}arrayBufferToBase64(a){const i=[],c=new Uint8Array(a);for(const n of c)i.push(String.fromCharCode(n));return window.btoa(i.join(""))}base64ToArrayBuffer(a){const i=window.atob(a),c=new Uint8Array(i.length);for(let n=0;n<i.length;++n)c[n]=i.charCodeAt(n);return c.buffer}}return h.\u0275fac=function(a){return new(a||h)},h.\u0275prov=d.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},29694:(m,f,u)=>{u.d(f,{q:()=>l});var g=u(68915),o=u(85498);const d=["*"];let l=(()=>{class h{constructor(){this.showPassword=!1}toggleShow(){this.showPassword=!this.showPassword,this.input.type=this.showPassword?"text":"password"}}return h.\u0275fac=function(a){return new(a||h)},h.\u0275cmp=o.\u0275\u0275defineComponent({type:h,selectors:[["app-show-hide-password"]],contentQueries:function(a,i,c){if(1&a&&o.\u0275\u0275contentQuery(c,g.IonInput,5),2&a){let n;o.\u0275\u0275queryRefresh(n=o.\u0275\u0275loadQuery())&&(i.input=n.first)}},ngContentSelectors:d,decls:4,vars:2,consts:[["aria-label","Show/Hide password icon",1,"type-toggle",3,"click"],["src","assets/icons/hidden.svg",1,"show-option",3,"hidden"],["src","assets/icons/visible.svg",1,"hide-option",3,"hidden"]],template:function(a,i){1&a&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0),o.\u0275\u0275elementStart(1,"a",0),o.\u0275\u0275listener("click",function(){return i.toggleShow()}),o.\u0275\u0275element(2,"ion-icon",1)(3,"ion-icon",2),o.\u0275\u0275elementEnd()),2&a&&(o.\u0275\u0275advance(2),o.\u0275\u0275property("hidden",i.showPassword),o.\u0275\u0275advance(1),o.\u0275\u0275property("hidden",!i.showPassword))},dependencies:[g.IonIcon],styles:["[_nghost-%COMP%]{display:flex;width:100%;align-items:center}[_nghost-%COMP%] .type-toggle[_ngcontent-%COMP%]{-webkit-padding-start:.5rem;padding-inline-start:.5rem}[_nghost-%COMP%] .type-toggle[_ngcontent-%COMP%] .show-option[_ngcontent-%COMP%], [_nghost-%COMP%] .type-toggle[_ngcontent-%COMP%] .hide-option[_ngcontent-%COMP%]{width:24px;height:24px;display:block}"]}),h})()}}]); 2//# sourceMappingURL=124.f8cf75930901b8b2.js.map
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.