{"ast":null,"code":"import * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport class SocketService {\n  constructor(http) {\n    this.http = http;\n    this.sortColumnKey = ''; // track the current column being sorted\n    this.sortDirection = 'asc';\n  }\n  get(api) {\n    return this.http.get(api);\n  }\n  getdtl(api) {\n    var user_gid = localStorage.getItem('user_gid');\n    return this.http.get(api + '?user_gid=' + user_gid);\n  }\n  getparams(api, params) {\n    return this.http.get(api, {\n      params: params\n    });\n  }\n  getfileparams(api, params) {\n    return this.http.get(api, {\n      params\n    });\n  }\n  postparams(api, params) {\n    var user_gid = localStorage.getItem('user_gid');\n    return this.http.post(api + '?user_gid=' + user_gid, params);\n  }\n  download(api, params) {\n    return this.http.get(api, {\n      params: params\n    });\n  }\n  getid(url, params) {\n    return this.http.get(url + '?params_gid=' + params);\n  }\n  //////Snehith code Start//////////////////\n  postfile(api, params) {\n    return this.http.post(api, params);\n  }\n  //////Snehith code End//////////////////\n  post(api, params) {\n    debugger;\n    return this.http.post(api, params);\n  }\n  generateexcel(api) {\n    return this.http.get(api);\n  }\n  downloadimage(api, params) {\n    return this.http.get(api, {\n      params: params\n    });\n  }\n  downloadFile(params) {\n    debugger;\n    return this.http.post('AzureStorage/DownloadDocument', params);\n  }\n  downloadfile(path, file_name) {\n    var params = {\n      file_path: path,\n      file_name: file_name\n    };\n    return this.http.post('AzureStorage/DownloadDocument', params);\n  }\n  filedownload(data) {\n    const file_type = this.createBlobFromExtension(data.format);\n    const blob = new Blob([data.file], {\n      type: file_type\n    });\n    const url = window.URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = data.name; // Specify the desired file name and extension.\n    document.body.appendChild(a);\n    a.click();\n    window.URL.revokeObjectURL(url);\n  }\n  filedownload1(data) {\n    debugger;\n    const file_type = this.createBlobFromExtension(data.format);\n    const base64Content = data.file;\n    // Convert base64 to binary\n    const binaryContent = atob(base64Content);\n    // Create a Uint8Array from the binary content\n    const uint8Array = new Uint8Array(binaryContent.length);\n    for (let i = 0; i < binaryContent.length; i++) {\n      uint8Array[i] = binaryContent.charCodeAt(i);\n    }\n    const blob = new Blob([uint8Array], {\n      type: file_type\n    });\n    const url = window.URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = data.name; // Specify the desired file name and extension.\n    document.body.appendChild(a);\n    a.click();\n    window.URL.revokeObjectURL(url);\n  }\n  fileviewer(data) {\n    const file_type = this.createBlobFromExtension(data.format);\n    const base64Content = data.file;\n    // Convert base64 to binary\n    const binaryContent = atob(base64Content);\n    // Create a Uint8Array from the binary content\n    const uint8Array = new Uint8Array(binaryContent.length);\n    for (let i = 0; i < binaryContent.length; i++) {\n      uint8Array[i] = binaryContent.charCodeAt(i);\n    }\n    const blob = new Blob([uint8Array], {\n      type: file_type\n    });\n    const url = window.URL.createObjectURL(blob);\n    const newTab = window.open(url, '_blank');\n    if (newTab) {\n      newTab.focus();\n    }\n    setTimeout(() => {\n      URL.revokeObjectURL(url);\n    }, 60000);\n  }\n  filetxtdownload(data, file_name) {\n    const text = data.map(item => JSON.stringify(item)).join('\\n');\n    const blob = new Blob([text], {\n      type: 'text/plain'\n    });\n    const anchor = document.createElement('a');\n    anchor.download = file_name;\n    anchor.href = window.URL.createObjectURL(blob);\n    anchor.click();\n    window.URL.revokeObjectURL(anchor.href);\n  }\n  createBlobFromExtension(file_extension) {\n    debugger;\n    const mimeTypes = {\n      txt: 'text/plain',\n      html: 'text/html',\n      css: 'text/css',\n      js: 'application/javascript',\n      json: 'application/json',\n      xml: 'application/xml',\n      pdf: 'application/pdf',\n      doc: 'application/msword',\n      docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n      xls: 'application/vnd.ms-excel',\n      xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n      ppt: 'application/vnd.ms-powerpoint',\n      pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n      jpeg: 'image/jpeg',\n      jpg: 'image/jpeg',\n      png: 'image/png',\n      gif: 'image/gif',\n      bmp: 'image/bmp',\n      tiff: 'image/tiff',\n      svg: 'image/svg+xml',\n      mp3: 'audio/mpeg',\n      wav: 'audio/wav',\n      mp4: 'video/mp4',\n      mov: 'video/quicktime',\n      avi: 'video/x-msvideo',\n      zip: 'application/zip',\n      rar: 'application/x-rar-compressed'\n      // Add more mappings as needed for other extensions\n    };\n\n    const minetype = mimeTypes[file_extension.toLocaleLowerCase()];\n    return minetype;\n  }\n  fileattach(data, filename) {\n    const base64Content = data.file;\n    const binaryContent = atob(base64Content);\n    const uint8Array = new Uint8Array(binaryContent.length);\n    for (let i = 0; i < binaryContent.length; i++) {\n      uint8Array[i] = binaryContent.charCodeAt(i);\n    }\n    const blob = new Blob([uint8Array], {\n      type: 'application/pdf'\n    });\n    return blob;\n  }\n  sortColumn(columnKey) {\n    if (this.sortColumnKey === columnKey) {\n      this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';\n    } else {\n      this.sortColumnKey = columnKey;\n      this.sortDirection = 'asc';\n    }\n  }\n  getSortIconClass(columnKey) {\n    return {\n      'fa-sort-asc': this.sortColumnKey === columnKey && this.sortDirection === 'asc',\n      'fa-sort-desc': this.sortColumnKey === columnKey && this.sortDirection === 'desc',\n      'fa-sort': this.sortColumnKey !== columnKey\n    };\n  }\n  fileattachs(result, fileName) {\n    debugger;\n    const minetype = this.createBlobFromExtension(result.format);\n    const byteCharacters = atob(result.doc_filepath);\n    const byteNumbers = new Array(byteCharacters.length);\n    for (let i = 0; i < byteCharacters.length; i++) {\n      byteNumbers[i] = byteCharacters.charCodeAt(i);\n    }\n    const byteArray = new Uint8Array(byteNumbers);\n    return new Blob([byteArray], {\n      type: minetype\n    });\n  }\n  msASN_PDF(base64, file_name) {\n    const text = base64;\n    const blob = new Blob([text], {\n      type: 'text/plain'\n    });\n    const anchor = document.createElement('a');\n    anchor.download = file_name;\n    anchor.href = window.URL.createObjectURL(blob);\n    anchor.click();\n    window.URL.revokeObjectURL(anchor.href);\n  }\n  static #_ = this.ɵfac = function SocketService_Factory(t) {\n    return new (t || SocketService)(i0.ɵɵinject(i1.HttpClient));\n  };\n  static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n    token: SocketService,\n    factory: SocketService.ɵfac,\n    providedIn: 'root'\n  });\n}","map":{"version":3,"names":["SocketService","constructor","http","sortColumnKey","sortDirection","get","api","getdtl","user_gid","localStorage","getItem","getparams","params","getfileparams","postparams","post","download","getid","url","postfile","generateexcel","downloadimage","downloadFile","downloadfile","path","file_name","file_path","filedownload","data","file_type","createBlobFromExtension","format","blob","Blob","file","type","window","URL","createObjectURL","a","document","createElement","href","name","body","appendChild","click","revokeObjectURL","filedownload1","base64Content","binaryContent","atob","uint8Array","Uint8Array","length","i","charCodeAt","fileviewer","newTab","open","focus","setTimeout","filetxtdownload","text","map","item","JSON","stringify","join","anchor","file_extension","mimeTypes","txt","html","css","js","json","xml","pdf","doc","docx","xls","xlsx","ppt","pptx","jpeg","jpg","png","gif","bmp","tiff","svg","mp3","wav","mp4","mov","avi","zip","rar","minetype","toLocaleLowerCase","fileattach","filename","sortColumn","columnKey","getSortIconClass","fileattachs","result","fileName","byteCharacters","doc_filepath","byteNumbers","Array","byteArray","msASN_PDF","base64","_","i0","ɵɵinject","i1","HttpClient","_2","factory","ɵfac","providedIn"],"sources":["D:\\Website_project\\Ems_Base\\wtsOrderIndia\\src\\app\\ems.utilities\\services\\socket.service.ts"],"sourcesContent":["import { HttpClient, HttpEvent, HttpHandler, HttpHeaders, HttpParams, HttpRequest, HttpResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Observable, tap } from 'rxjs';\nimport { environment } from 'src/environments/environment';\n\ninterface DocumentListResponse {\n  GetViewDoc_list: Document[];\n}\n\ninterface Document {\n  doc_name: string;\n  doc_filepath: string;\n}\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class SocketService {\n  sortColumnKey: string = ''; // track the current column being sorted\n  sortDirection: string = 'asc';\n    \n\n  constructor(private http: HttpClient) {\n  }\n  get(api: string) {\n    return this.http.get(api);\n\n  }\n  getdtl(api: string) {\n    var user_gid = localStorage.getItem('user_gid');\n    return this.http.get<any>(api + '?user_gid=' + user_gid);\n  }\n  getparams(api: string, params: any) {\n    return this.http.get(api, { params: params });\n  }\n\n  getfileparams(api: string, params: any): Observable<DocumentListResponse> {\n\n    return this.http.get<DocumentListResponse>(api, { params });\n  }\n\n  postparams(api: string, params: any) {\n    var user_gid = localStorage.getItem('user_gid');\n    return this.http.post<any>(api + '?user_gid=' + user_gid, params);\n  }\n  download(api: string, params: any) {\n    return this.http.get(api, { params: params });\n  }\n\n\n  getid(url: string, params: any) {\n    return this.http.get<any>(url + '?params_gid=' + params);\n  }\n\n  //////Snehith code Start//////////////////\n  postfile(api: string, params: any) {\n\n\n    return this.http.post(api, params);\n  }\n\n  //////Snehith code End//////////////////\n  post(api: string, params: any) {\n    debugger\n    return this.http.post(api, params);\n  }\n  generateexcel(api: string) {\n    return this.http.get(api);\n\n  }\n  downloadimage(api: string, params: any) {\n\n    return this.http.get(api, { params: params });\n  }\n  downloadFile(params: any) {debugger\n    return this.http.post('AzureStorage/DownloadDocument', params);\n  }\n  downloadfile(path: any, file_name: any) {\n    var params = {\n      file_path: path,\n      file_name: file_name\n    }\n    return this.http.post('AzureStorage/DownloadDocument', params);\n  }\n\n\n  filedownload(data: any) {\n    const file_type = this.createBlobFromExtension(data.format);\n    const blob = new Blob([data.file], { type: file_type });\n    const url = window.URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = data.name; // Specify the desired file name and extension.\n    document.body.appendChild(a);\n    a.click();\n    window.URL.revokeObjectURL(url);\n\n  }\n  filedownload1(data: any) {\n    debugger\n    const file_type = this.createBlobFromExtension(data.format);\n    const base64Content = data.file;\n    // Convert base64 to binary\n    const binaryContent = atob(base64Content);\n    // Create a Uint8Array from the binary content\n    const uint8Array = new Uint8Array(binaryContent.length);\n    for (let i = 0; i < binaryContent.length; i++) {\n      uint8Array[i] = binaryContent.charCodeAt(i);\n    }\n    const blob = new Blob([uint8Array], { type: file_type });\n    const url = window.URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = data.name; // Specify the desired file name and extension.\n    document.body.appendChild(a);\n    a.click();\n    window.URL.revokeObjectURL(url);\n  }\n  fileviewer(data: any) {\n    const file_type = this.createBlobFromExtension(data.format);\n    const base64Content = data.file;\n \n    // Convert base64 to binary\n    const binaryContent = atob(base64Content);\n \n    // Create a Uint8Array from the binary content\n    const uint8Array = new Uint8Array(binaryContent.length);\n    for (let i = 0; i < binaryContent.length; i++) {\n      uint8Array[i] = binaryContent.charCodeAt(i);\n    }\n    const blob = new Blob([uint8Array], { type: file_type });\n    const url = window.URL.createObjectURL(blob);\n    const newTab = window.open(url, '_blank');\n \n    if (newTab) {\n      newTab.focus();\n    }\n    setTimeout(() => {\n      URL.revokeObjectURL(url);\n    }, 60000);\n  }\n\n  filetxtdownload(data: any, file_name: string): void {\n\n    const text = data.map((item: any) => JSON.stringify(item)).join('\\n');\n    const blob = new Blob([text], { type: 'text/plain' });\n\n    const anchor = document.createElement('a');\n    anchor.download = file_name;\n    anchor.href = window.URL.createObjectURL(blob);\n    anchor.click();\n\n    window.URL.revokeObjectURL(anchor.href);\n  }\n\n  createBlobFromExtension(file_extension: any) {\n    debugger\n    const mimeTypes: { [key: string]: string } = {\n      txt: 'text/plain',\n      html: 'text/html',\n      css: 'text/css',\n      js: 'application/javascript',\n      json: 'application/json',\n      xml: 'application/xml',\n      pdf: 'application/pdf',\n      doc: 'application/msword',\n      docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n      xls: 'application/vnd.ms-excel',\n      xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n      ppt: 'application/vnd.ms-powerpoint',\n      pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n      jpeg: 'image/jpeg',\n      jpg: 'image/jpeg',\n      png: 'image/png',\n      gif: 'image/gif',\n      bmp: 'image/bmp',\n      tiff: 'image/tiff',\n      svg: 'image/svg+xml',\n      mp3: 'audio/mpeg',\n      wav: 'audio/wav',\n      mp4: 'video/mp4',\n      mov: 'video/quicktime',\n      avi: 'video/x-msvideo',\n      zip: 'application/zip',\n      rar: 'application/x-rar-compressed',\n      // Add more mappings as needed for other extensions\n    };\n    const minetype = mimeTypes[file_extension.toLocaleLowerCase()];\n    return minetype;\n  }\n\n  fileattach(data: any, filename: string): Blob {\n    const base64Content = data.file; \n    const binaryContent = atob(base64Content); \n    const uint8Array = new Uint8Array(binaryContent.length);\n\n    for (let i = 0; i < binaryContent.length; i++) {\n      uint8Array[i] = binaryContent.charCodeAt(i);\n    }\n    const blob = new Blob([uint8Array], { type: 'application/pdf' });\n    return blob; \n  }\n\n  sortColumn(columnKey: string): void {\n    if (this.sortColumnKey === columnKey) {\n      this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';\n    } else {\n      this.sortColumnKey = columnKey;\n      this.sortDirection = 'asc';\n    }\n  }\n\n  getSortIconClass(columnKey: string) {\n    return {\n      'fa-sort-asc': this.sortColumnKey === columnKey && this.sortDirection === 'asc',\n      'fa-sort-desc': this.sortColumnKey === columnKey && this.sortDirection === 'desc',\n      'fa-sort': this.sortColumnKey !== columnKey\n    };\n  }\n\n  \n\n  fileattachs(result: any, fileName: string): Blob {\n    debugger\n    const minetype = this.createBlobFromExtension(result.format);\n    const byteCharacters = atob(result.doc_filepath);\n    const byteNumbers = new Array(byteCharacters.length);\n    for (let i = 0; i < byteCharacters.length; i++) {\n      byteNumbers[i] = byteCharacters.charCodeAt(i);\n    }\n    const byteArray = new Uint8Array(byteNumbers);\n    return new Blob([byteArray], { type:  minetype });\n  }\n  \n  msASN_PDF(base64: string, file_name: string): void {\n\n    const text = base64;\n    const blob = new Blob([text], { type: 'text/plain' });\n\n    const anchor = document.createElement('a');\n    anchor.download = file_name;\n    anchor.href = window.URL.createObjectUR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