import{e as f}from"./chunk-XZELSHJP.js";import{e as q,f as v}from"./chunk-YM543BQE.js";import{b as m,d as g,m as $}from"./chunk-STBSUBIU.js";import{aa as i,ga as l,la as p,n as c}from"./chunk-NW2U37DI.js";import{h as y}from"./chunk-TWZW5B45.js";var k=y(q());var I=(()=>{class a{constructor(t,e,s,r){this.http=t,this.adminService=e,this.router=s,this.toastr=r}addExternalScript(t){if(t){var e=/<([^>\s]+)([^>]*)>([\s\S]*?)<\/\1>|<([^>\s]+)([^>]*)>|<[^>]+>/g,s=t.matchAll(e);for(let n of s){var r=(n[1]||n[3]||"").toLowerCase(),d=(n[2]||n[4]||"").trim(),R=n[3]||"",o=document.createElement(r);o.classList.add("customexternalchart"),d?.split(/\s+/).forEach(function(S){var[u,h]=S?.split("=");u&&h&&(h=h.replace(/^['"]|['"]$/g,""),o.setAttribute(u,h))}),o.innerHTML=R,document.body.append(o)}}}home(){return this.http.get("detail/")}getannouncments(){return this.http.get("detail/getannouncments/")}header(){return this.http.get("detail/header")}knowledge(){return this.http.get("detail/knowledge")}faq(){return this.http.get("detail/faq")}faqcategorypage(t){return this.http.get(`detail/faq/${t}`)}getcontactus(){return this.http.get("detail/contact-us")}contactus(t){return this.http.post("detail/contact-us",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}ratingTicket(t){return this.http.get(`detail/rating/${t}`)}starrating(t,e){return this.http.post(`detail/rating/star/${t}`,e).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}ticketRating(t){return this.http.post("detail/ticket/rating",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}allsetting(){return this.http.get("detail/allsetting")}openTicket(){return this.http.get("detail/guest/openticket")}openTicketwithotp(t){return this.http.post("detail/guest/openticket",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}openTicketwithoutotp(t){return this.http.post("detail/guest/openticketnootp",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}ticketOtpDetails(t){return this.http.get(`detail/guest/ticket-view/details/${t}`)}sendotp(t){return this.http.post("detail/guest/ticket-view/sendotp",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}verifyotp(t){return this.http.post("detail/verifyotp",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}verifyguestotp(t){return this.http.post("detail/guest/verifyguestotp",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}emailsvalidate(t){return this.http.post("detail/emailsvalidate",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}articleView(t){return this.http.get(`detail/article/${t}`)}categoryView(t){return this.http.get(`detail/category/${t}`)}pages(t){return this.http.get(`detail/page/${t}`)}searchArt(t){return this.http.post("detail/search",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}ticketDetailsView(t,e=1,s=6){let r=new m().set("page",e.toString()).set("per_page",s.toString());return this.http.get(`detail/guest/ticket-view/${t}`,{params:r})}showpdf(t){return this.http.get(`detail/customer/ticket/pdfmake/${t}`)}guestreplay(t,e){return this.http.post(`detail/guest/ticket/${t}`,e).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}updatereplay(t,e){return this.http.post(`detail/guestticket/editcomment/${t}`,e).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}reopenTicket(t,e){return this.http.post(`detail/guest/closed/${t}`,e).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}guestLayout(){return this.http.get("detail/guestLayout")}arayobj(){return c([{id:1,name:"some"}])}storemedia(t,e){return this.http.post("detail/guest/storemedia",t,e)}likedislike(t){return this.http.post("detail/likedislike",t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}recentImagDelete(t){return this.http.post(`detail/guest/image/delete/${t.id}`,t).pipe(i(()=>{this.adminService.RefreshRquestAdmin$.next()}))}error404(){return this.http.get("detail/error404")}error503(){return this.http.get("detail/error503")}error429(){return this.http.get("detail/error429")}getCapchaType(){return this.http.get("detail/getCapchaType")}ipblockupdate(t){return this.http.post("detail/ipblock/update",t)}getimage(t,e){return this.http.get(`detail/getimage/${t}/${e}`)}emailtoticketdownload(t,e){return this.http.get(`detail/emailtoticketdownload/${t}/${e}`,{responseType:"blob"})}image(t,e){return this.http.get(`detail/image/${t}/${e}`,{responseType:"blob"})}emiltoticketimage(t,e){return this.http.get(`detail/emailtoticket/${t}/${e}`,{responseType:"blob"})}getUTCFromTimezone(t){let e=k.default.tz(t).utcOffset(),s=e>=0?"+":"-",r=Math.abs(e)/60;return`UTC${s}${r<10?"0":""}${r}`}static{this.\u0275fac=function(e){return new(e||a)(p(g),p(v),p(f),p($))}}static{this.\u0275prov=l({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{I as a};
