{ "version": 3, "sources": ["src/app/google/google.service.ts"], "sourcesContent": ["import { Injectable, } from '@angular/core';\r\nimport { IJSScripts, AppSettingService, AppService } from '../app.service';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class GoogleAPIService {\r\n\tconstructor(\r\n\t\tprivate appSrv: AppService\r\n\t) { }\r\n\r\n\tloadScripts(): void {\r\n\t\t// load map\r\n\t\tlet js: IJSScripts = {\r\n\t\t\tname: \"GoogleMap\",\r\n\t\t\tsrc: \"https://maps.googleapis.com/maps/api/js?key=\" + AppSettingService.appConfig.GoogleMapJSAPI + \"&callback=Function.prototype&libraries=places,marker&loading=async\"\r\n\t\t}\r\n\t\tthis.appSrv.loadJSScript(js);\r\n\r\n\t\t// load chart\r\n\t\tjs = {\r\n\t\t\tname: \"GoogleChart\",\r\n\t\t\tsrc: \"https://www.gstatic.com/charts/loader.js\"\r\n\t\t};\r\n\t\treturn this.appSrv.loadJSScript(js);\r\n\t}\r\n\r\n\tloadGoogleDrive(): any {\r\n\t\tlet js: IJSScripts = {\r\n\t\t\tname: \"GoogleDrive\",\r\n\t\t\tsrc: \"https://apis.google.com/js/api.js\"\r\n\t\t};\r\n\t\treturn this.appSrv.loadJSScript(js);\r\n\t}\r\n\r\n\tloadGoogleAccount(): any {\r\n\t\tlet js: IJSScripts = {\r\n\t\t\tname: \"GoogleAccount\",\r\n\t\t\tsrc: \"https://accounts.google.com/gsi/client\"\r\n\t\t};\r\n\t\treturn this.appSrv.loadJSScript(js);\r\n\t}\r\n}\r\n"], "mappings": "iEAMA,IAAaA,GAAgB,IAAA,CAAvB,MAAOA,CAAgB,CAC5BC,YACSC,EAAkB,CAAlB,KAAAA,OAAAA,CACL,CAEJC,aAAW,CAEV,IAAIC,EAAiB,CACpBC,KAAM,YACNC,IAAK,+CAAiDC,EAAkBC,UAAUC,eAAiB,sEAEpG,YAAKP,OAAOQ,aAAaN,CAAE,EAG3BA,EAAK,CACJC,KAAM,cACNC,IAAK,4CAEC,KAAKJ,OAAOQ,aAAaN,CAAE,CACnC,CAEAO,iBAAe,CACd,IAAIP,EAAiB,CACpBC,KAAM,cACNC,IAAK,qCAEN,OAAO,KAAKJ,OAAOQ,aAAaN,CAAE,CACnC,CAEAQ,mBAAiB,CAChB,IAAIR,EAAiB,CACpBC,KAAM,gBACNC,IAAK,0CAEN,OAAO,KAAKJ,OAAOQ,aAAaN,CAAE,CACnC,iDAnCYJ,GAAgBa,EAAAC,CAAA,CAAA,CAAA,CAAA,iCAAhBd,EAAgBe,QAAhBf,EAAgBgB,UAAAC,WAFhB,MAAM,CAAA,CAAA,SAENjB,CAAgB,GAAA", "names": ["GoogleAPIService", "constructor", "appSrv", "loadScripts", "js", "name", "src", "AppSettingService", "appConfig", "GoogleMapJSAPI", "loadJSScript", "loadGoogleDrive", "loadGoogleAccount", "\u0275\u0275inject", "AppService", "factory", "\u0275fac", "providedIn"] }