-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js.map
1 lines (1 loc) · 9.04 KB
/
settings.js.map
1
{"version":3,"sources":["./src/app/+settings/settings.component.html","./src/app/+settings/index.ts","./src/app/+settings/settings.component.scss","./src/app/+settings/settings.component.ts","./src/app/+settings/settings.module.ts","./src/app/+settings/settings.routes.ts"],"names":[],"mappings":";;;;;;;;;AAAA,sCAAsC,wCAAwC,gEAAgE,wCAAwC,0NAA0N,QAAQ,6E;;;;;;;;;;;;;;;;;;ACArW;;;;;;;;;;;;;ACAnD;AAAe,uEAAQ,8BAA8B,GAAG,gBAAgB,gBAAgB,iBAAiB,GAAG,2CAA2C,gBAAgB,kBAAkB,KAAK,GAAG,2CAA2C,gBAAgB,kBAAkB,KAAK,GAAG,0CAA0C,gBAAgB,mBAAmB,KAAK,GAAG,aAAa,iBAAiB,GAAG,+CAA+C,moDAAmoD,E;;;;;;;;;;;;;;;;;;;ACAjgE;AACN;AACA;AAOvD;IAIC,2BAAoB,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAF/C,oBAAe,GAAG,EAAE,CAAC;QAG3B,IAAI,CAAC,eAAe,GAAG,oEAAW,CAAC,kBAAkB,CAAC,CAAC;QAEvD,IAAI,gBAAgB,CAAC,WAAW,EAAE;YACjC,IAAM,OAAO,GAAG,gBAAgB,CAAC,WAAW,CAAC;YAC7C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;YAC5B,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;SACzC;aAAM;YAEN,gBAAgB,CAAC,QAAQ,CAAC;gBACzB,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,OAAO;aACP,CAAC,CAAC;YAEH,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YAEzC,IAAM,WAAW,GAAG,gBAAgB,CAAC,cAAc,EAAE,CAAC;YAGtD,IAAI,IAAI,CAA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AI,EAAE,CAAC,gEAAU,CAAC;qBAClB;iBACD,CAAC;gBACF,0DAAW;gBACX,6DAAY,CAAC,QAAQ,CAAC,uDAAM,CAAC;gBAC7B,qEAAmB;gBACnB,oEAAmB;gBACnB,qEAAa;gBACb,wEAAe;gBACf,2EAAgB;gBAChB,2EAAgB;gBAChB,4EAAiB;gBACjB,qEAAa;gBACb,oEAAa;aACb;SACD,CAAC;OACW,cAAc,CAE1B;IAAD,qBAAC;CAAA;AAF0B;;;;;;;;;;;;;;;;;;ACpD0C;AAE9D,IAAM,MAAM,GAAW;IAC7B;QACC,IAAI,EAAE,EAAE;QACR,SAAS,EAAE,iFAAiB;KAC5B;CACD,CAAC","file":"settings.js","sourcesContent":["module.exports = \"<mat-card>\\n\\t<h1>{{ 'SETTINGS_VIEW.SETTINGS' | translate }}</h1>\\n</mat-card>\\n\\n<mat-card>\\n\\t<mat-form-field>\\n\\t\\t<h5>{{ 'SETTINGS_VIEW.LANGUAGE' | translate }}</h5>\\n\\t\\t<mat-select [(value)]=\\\"selectedLang\\\">\\n\\t\\t\\t<mat-option\\n\\t\\t\\t\\t*ngFor=\\\"let lang of translateService.getLangs()\\\"\\n\\t\\t\\t\\t[value]=\\\"lang\\\"\\n\\t\\t\\t\\t(click)=\\\"switchLanguage(selectedLang)\\\"\\n\\t\\t\\t\\t>{{ lang }}\\n\\t\\t\\t</mat-option>\\n\\t\\t</mat-select>\\n\\t</mat-form-field>\\n</mat-card>\\n\"","export { SettingsModule } from './settings.module';\n","export default \":host {\\n background-color: #eeeeee;\\n}\\n\\n.container {\\n width: 51vw;\\n margin: auto;\\n}\\n\\n@media screen and (min-width: 1500px) {\\n .container {\\n width: 51vw;\\n }\\n}\\n\\n@media screen and (max-width: 1499px) {\\n .container {\\n width: 70vw;\\n }\\n}\\n\\n@media screen and (max-width: 500px) {\\n .container {\\n width: 100vw;\\n }\\n}\\n\\nmasonry {\\n margin: auto;\\n}\\n\\n/*# sourceMappingURL=data:application/json;base64,eyJ2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R0aDogMTAwdnc7XG5cdH1cbn1cblxubWFzb25yeSB7XG5cdG1hcmdpbjogYXV0bztcbn1cbiIsIjpob3N0IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2VlZWVlZTtcbn1cblxuLmNvbnRhaW5lciB7XG4gIHdpZHRoOiA1MXZ3O1xuICBtYXJnaW46IGF1dG87XG59XG5cbkBtZWRpYSBzY3JlZW4gYW5kIChtaW4td2lkdGg6IDE1MDBweCkge1xuICAuY29udGFpbmVyIHtcbiAgICB3aWR0aDogNTF2dztcbiAgfVxufVxuXG5AbWVkaWEgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiAxNDk5cHgpIHtcbiAgLmNvbnRhaW5lciB7XG4gICAgd2lkdGg6IDcwdnc7XG4gIH1cbn1cblxuQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogNTAwcHgpIHtcbiAgLmNvbnRhaW5lciB7XG4gICAgd2lkdGg6IDEwMHZ3O1xuICB9XG59XG5cbm1hc29ucnkge1xuICBtYXJnaW46IGF1dG87XG59XG4iXX0= */\";","import { Component, OnDestroy, OnInit } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { environment } from 'environments/environment';\n\n@Component({\n\tselector: 'settings',\n\tstyleUrls: ['./settings.component.scss'],\n\ttemplateUrl: './settings.component.html',\n})\nexport class SettingsComponent implements OnInit, OnDestroy {\n\tpublic selectedLang: string;\n\tpublic defaultLanguage = '';\n\n\tconstructor(private translateService: TranslateService) {\n\t\tthis.defaultLanguage = environment['DEFAULT_LANGUAGE'];\n\n\t\tif (translateService.currentLang) {\n\t\t\tconst current = translateService.currentLang;\n\t\t\tthis.selectedLang = current;\n\t\t\ttranslateService.setDefaultLang(current);\n\t\t} else {\n\t\t\t// TODO: load list of supported languages from config service\n\t\t\ttranslateService.addLangs([\n\t\t\t\t'en-US',\n\t\t\t\t'es-ES',\n\t\t\t\t'bg-BG',\n\t\t\t\t'he-IL',\n\t\t\t\t'ru-RU',\n\t\t\t\t'fr-FR',\n\t\t\t\t'it-IT',\n\t\t\t]);\n\n\t\t\ttranslateService.setDefaultLang('en-US');\n\n\t\t\tconst browserLang = translateService.getBrowserLang();\n\t\t\t// TODO: load list of supported languages from config service\n\n\t\t\tif (this.defaultLanguage) {\n\t\t\t\ttranslateService.use(this.defaultLanguage);\n\t\t\t} else {\n\t\t\t\tbrowserLang.match(/en-US|es-ES|bg-BG|he-IL|ru-RU|fr-FR|it-IT/)\n\t\t\t\t\t? browserLang\n\t\t\t\t\t: 'en-US';\n\t\t\t}\n\n\t\t\tthis.selectedLang = this.translateService.currentLang;\n\t\t}\n\t}\n\n\tngOnInit() {}\n\n\tswitchLanguage(language: string) {\n\t\tthis.translateService.use(language);\n\t}\n\n\tngOnDestroy() {}\n}\n","import { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NgModule } from '@angular/core';\nimport { LazyLoadImageModule } from 'ng-lazyload-image';\nimport { routes } from './settings.routes';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatListModule } from '@angular/material/list';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { RouterModule } from '@angular/router';\nimport { WarehouseLogoModule } from '../warehouse-logo';\nimport { TranslateModule, TranslateLoader } from '@ngx-translate/core';\nimport { HttpClient } from '@angular/common/http';\nimport { TranslateHttpLoader } from '@ngx-translate/http-loader';\nimport { SettingsComponent } from 'app/+settings/settings.component';\n\nexport function HttpLoaderFactory(http: HttpClient) {\n\treturn new TranslateHttpLoader(http, './assets/i18n/', '.json');\n}\n\n@NgModule({\n\tdeclarations: [SettingsComponent],\n\timports: [\n\t\tCommonModule,\n\t\tMatFormFieldModule,\n\t\tMatInputModule,\n\t\tMatSelectModule,\n\t\tTranslateModule.forChild({\n\t\t\tloader: {\n\t\t\t\tprovide: TranslateLoader,\n\t\t\t\tuseFactory: HttpLoaderFactory,\n\t\t\t\tdeps: [HttpClient],\n\t\t\t},\n\t\t}),\n\t\tFormsModule,\n\t\tRouterModule.forChild(routes),\n\t\tLazyLoadImageModule,\n\t\tWarehouseLogoModule,\n\t\tMatIconModule,\n\t\tMatButtonModule,\n\t\tMatSidenavModule,\n\t\tMatToolbarModule,\n\t\tMatCheckboxModule,\n\t\tMatListModule,\n\t\tMatCardModule,\n\t],\n})\nexport class SettingsModule {\n\tpublic static routes = routes;\n}\n","import { Routes } from '@angular/router';\nimport { SettingsComponent } from 'app/+settings/settings.component';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: SettingsComponent,\n\t},\n];\n"],"sourceRoot":"webpack:///"}