"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9939,891,3272,6129,8510,1367,3748,6605,8986],{20891:(c,_,p)=>{p.d(_,{x:()=>E});var i=p(21626),d=p(18810),h=p(99437),o=p(45312),l=p(54438);let E=(()=>{var n;class u{constructor(t){this.http=t,this.baseUrl=o.c.baseApiPath,this.baseApiPath=o.c.API_URL}get(t,s,e){let r={params:new i.Nl,headers:new i.Lr};if(s)for(let a in s)s.hasOwnProperty(a)&&(r.params=r.params.append(a,s[a]));return e&&(r.headers=e),this.http.get(`${this.baseUrl}/${t}`,r).pipe((0,h.W)(this.handleError))}post(t,s,e){let r={headers:new i.Lr};return e&&(r.headers=e),this.http.post(`${this.baseUrl}/${t}`,s,r).pipe((0,h.W)(this.handleError))}post1(t,s,e){let r={headers:new i.Lr};return e&&(r.headers=e),this.http.post(`${this.baseUrl}/${t}`,s,r).pipe((0,h.W)(this.handleError))}put(t,s,e){let r={headers:new i.Lr};return e&&(r.headers=e),this.http.put(`${this.baseUrl}/${t}`,s,r).pipe((0,h.W)(this.handleError))}patch(t,s,e){let r={headers:new i.Lr};return e&&(r.headers=e),this.http.patch(`${this.baseUrl}/${t}`,s,r).pipe((0,h.W)(this.handleError))}delete(t,s){let e={headers:new i.Lr};return s&&(e.headers=s),this.http.delete(`${this.baseUrl}/${t}`,e).pipe((0,h.W)(this.handleError))}handleError(t){return(0,d.$)("Server is facing issues, please try again later.")}postF(t,s,e){let r={headers:new i.Lr};return e&&(r.headers=e),this.http.post(`${this.baseApiPath}/${t}`,s,r).pipe((0,h.W)(this.handleError))}}return(n=u).\u0275fac=function(t){return new(t||n)(l.KVO(i.Qq))},n.\u0275prov=l.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),u})()}}]);