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I,IAAkBH,SAAUI,KACtC,CAACL,QAASM,IAA0BL,SAAUM,MAC/Cd,QAAA,CATSC,IAAyBc,IAAoBC,KAAcnB,KAW1DQ,CAAiB","names":["TextileDataLastModified","constructor","machineQuality","yarnType","finishingTemplate","color","creel","weaveStructure","coloredYarnSet","weftColoredYarnSet","colorSet","yarnSet","companyWeaveStructure","coloredYarn","manageWeaveStructure","weaveProduct","groupedWeaveStructure","tuftProduct","this","_machineQuality","_yarnType","_finishingTemplate","_color","_creel","_weaveStructure","_coloredYarnSet","_weftColoredYarnSet","_colorSet","_yarnSet","_companyWeaveStructure","_coloredYarn","_manageWeaveStructure","_weaveProduct","_groupedWeaveStructure","_tuftProduct","fromJSON","lastModifiedJSON","CardItem","machineQualityFromJSON","yarnTypeFromJSON","finishingTemplateFromJSON","colorFromJSON","creelFromJSON","weaveStructureFromJSON","coloredYarnSetFromJSON","weftColoredYarnSetFromJSON","colorSetFromJSON","yarnSetFromJSON","companyWeaveStructureFromJSON","coloredYarnFromJSON","manageWeaveStructureFromJSON","weaveProductFromJSON","groupedWeaveStructureFromJSON","tuftProductFromJSON","HttpTextileDataService","_HttpTextileDataService","httpClient","backendConfiguration","getLastModified","get","getEndpoint","pipe","rxjsMap","textileDataJSON","i0","i1","i2","factory","ɵfac","TEXTILE_DATA","InjectionToken","RawMaterialModule","_RawMaterialModule","HttpRawMaterialsService","imports","TextileDataSharedModule","EditorHeaderModule","CrudOverviewDataModule","SplitButtonModule","TextileDataModule","_TextileDataModule","provide","useClass","FINISHING_TEMPLATES","HttpFinishingTemplatesService","WEAVE_STRUCTURES","HttpWeaveStructuresService","COMPANY_WEAVE_STRUCTURES","HttpCompanyWeaveStructuresService","textileDataRouting","AgGridModule"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./apps/texconnect/src/app/domain/textile-data/textile-data-last-modified.ts","./apps/texconnect/src/app/infrastructure/http/textile-data/http-textile-data.service.ts","./apps/texconnect/src/app/infrastructure/http/textile-data/textile-data.ts","./apps/texconnect/src/app/presentation/pages/textile-data/raw-material/raw-material.module.ts","./apps/texconnect/src/app/presentation/pages/textile-data/textile-data.module.ts"],"sourcesContent":["import {CardItem} from '@domain/last-modified-card-object/card-item';\n\nexport class TextileDataLastModified {\n private readonly _machineQuality: CardItem;\n private readonly _yarnType: CardItem;\n private readonly _finishingTemplate: CardItem;\n private readonly _color: CardItem;\n private readonly _coloredYarnSet: CardItem;\n private readonly _weftColoredYarnSet: CardItem;\n private readonly _creel: CardItem;\n private readonly _weaveStructure: CardItem;\n private readonly _colorSet: CardItem;\n private readonly _yarnSet: CardItem;\n private readonly _companyWeaveStructure: CardItem;\n private readonly _coloredYarn: CardItem;\n private readonly _manageWeaveStructure: CardItem;\n private readonly _weaveProduct: CardItem;\n private readonly _groupedWeaveStructure: CardItem;\n private readonly _tuftProduct: CardItem;\n\n public constructor(\n machineQuality: CardItem,\n yarnType: CardItem,\n finishingTemplate: CardItem,\n color: CardItem,\n creel: CardItem,\n weaveStructure: CardItem,\n coloredYarnSet: CardItem,\n weftColoredYarnSet: CardItem,\n colorSet: CardItem,\n yarnSet: CardItem,\n companyWeaveStructure: CardItem,\n coloredYarn: CardItem,\n manageWeaveStructure: CardItem,\n weaveProduct: CardItem,\n groupedWeaveStructure: CardItem,\n tuftProduct: CardItem\n ) {\n this._machineQuality = machineQuality;\n this._yarnType = yarnType;\n this._finishingTemplate = finishingTemplate;\n this._color = color;\n this._creel = creel;\n this._weaveStructure = weaveStructure;\n this._coloredYarnSet = coloredYarnSet;\n this._weftColoredYarnSet = weftColoredYarnSet;\n this._colorSet = colorSet;\n this._yarnSet = yarnSet;\n this._companyWeaveStructure = companyWeaveStructure;\n this._coloredYarn = coloredYarn;\n this._manageWeaveStructure = manageWeaveStructure;\n this._weaveProduct = weaveProduct;\n this._groupedWeaveStructure = groupedWeaveStructure;\n this._tuftProduct = tuftProduct;\n }\n\n public get machineQuality(): CardItem {\n return this._machineQuality;\n }\n\n public get yarnType(): CardItem {\n return this._yarnType;\n }\n\n public get finishingTemplate(): CardItem {\n return this._finishingTemplate;\n }\n\n public get color(): CardItem {\n return this._color;\n }\n\n public get creel(): CardItem {\n return this._creel;\n }\n\n public get weaveStructure(): CardItem {\n return this._weaveStructure;\n }\n\n public get coloredYarnSet(): CardItem {\n return this._coloredYarnSet;\n }\n\n public get weftColoredYarnSet(): CardItem {\n return this._weftColoredYarnSet;\n }\n\n public get colorSet(): CardItem {\n return this._colorSet;\n }\n\n public get yarnSet(): CardItem {\n return this._yarnSet;\n }\n\n public get companyWeaveStructure(): CardItem {\n return this._companyWeaveStructure;\n }\n\n public get coloredYarn(): CardItem {\n return this._coloredYarn;\n }\n\n public get manageWeaveStructure(): CardItem {\n return this._manageWeaveStructure;\n }\n\n public get weaveProduct(): CardItem {\n return this._weaveProduct;\n }\n\n public get groupedWeaveStructure(): CardItem {\n return this._groupedWeaveStructure;\n }\n\n public get tuftProduct(): CardItem {\n return this._tuftProduct;\n }\n\n public static fromJSON(lastModifiedJSON: any): TextileDataLastModified {\n return new TextileDataLastModified(\n CardItem.machineQualityFromJSON(lastModifiedJSON.machineQuality),\n CardItem.yarnTypeFromJSON(lastModifiedJSON.yarnType),\n CardItem.finishingTemplateFromJSON(lastModifiedJSON.finishingTemplate),\n CardItem.colorFromJSON(lastModifiedJSON.color),\n CardItem.creelFromJSON(lastModifiedJSON.creel),\n CardItem.weaveStructureFromJSON(lastModifiedJSON.weaveStructure),\n CardItem.coloredYarnSetFromJSON(lastModifiedJSON.coloredYarnSet),\n CardItem.weftColoredYarnSetFromJSON(lastModifiedJSON.weftColoredYarnSet),\n CardItem.colorSetFromJSON(lastModifiedJSON.colorSet),\n CardItem.yarnSetFromJSON(lastModifiedJSON.yarnSet),\n CardItem.companyWeaveStructureFromJSON(lastModifiedJSON.companyWeaveStructure),\n CardItem.coloredYarnFromJSON(lastModifiedJSON.coloredYarn),\n CardItem.manageWeaveStructureFromJSON(lastModifiedJSON.manageWeaveStructure),\n CardItem.weaveProductFromJSON(lastModifiedJSON.weaveProduct),\n CardItem.groupedWeaveStructureFromJSON(lastModifiedJSON.groupedWeaveStructure),\n CardItem.tuftProductFromJSON(lastModifiedJSON.tuftProduct)\n );\n }\n}\n","import {HttpClient} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {BackendConfiguration} from '@application/configuration/backend-configuration';\nimport {TextileDataLastModified} from '@domain/textile-data/textile-data-last-modified';\nimport {TextileData} from '@infrastructure/http/textile-data/textile-data';\nimport {Observable} from 'rxjs';\nimport {map as rxjsMap} from 'rxjs/operators';\n\n@Injectable()\nexport class HttpTextileDataService implements TextileData {\n private httpClient: HttpClient;\n private backendConfiguration: BackendConfiguration;\n\n public constructor(httpClient: HttpClient, backendConfiguration: BackendConfiguration) {\n this.httpClient = httpClient;\n this.backendConfiguration = backendConfiguration;\n }\n\n public getLastModified(): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getEndpoint()}textiledata/last-modified`).pipe(rxjsMap((textileDataJSON: any) => TextileDataLastModified.fromJSON(textileDataJSON)));\n }\n}\n","import {InjectionToken} from '@angular/core';\nimport {TextileDataLastModified} from '@domain/textile-data/textile-data-last-modified';\nimport {Observable} from 'rxjs';\n\nexport const TEXTILE_DATA = new InjectionToken('TextileData');\n\nexport interface TextileData {\n getLastModified(): Observable;\n}\n","import {NgModule} from '@angular/core';\nimport {HttpRawMaterialsService} from '@infrastructure/http/raw-materials/http-raw-materials.service';\nimport {TextileDataSharedModule} from '@presentation/pages/textile-data/textile-data-shared.module';\nimport {CrudOverviewDataModule, EditorHeaderModule, SplitButtonModule} from '@vdw/angular-component-library';\nimport {AddRawMaterialComponent} from './add/add-raw-material.component';\n\n@NgModule({\n imports: [TextileDataSharedModule, EditorHeaderModule, CrudOverviewDataModule, SplitButtonModule],\n declarations: [AddRawMaterialComponent],\n providers: [HttpRawMaterialsService]\n})\nexport class RawMaterialModule {}\n","import {NgModule} from '@angular/core';\nimport {COMPANY_WEAVE_STRUCTURES} from '@infrastructure/http/company-weave-structure/company-weave-structures';\nimport {HttpCompanyWeaveStructuresService} from '@infrastructure/http/company-weave-structure/http-company-weave-structures.service';\nimport {FINISHING_TEMPLATES} from '@infrastructure/http/finishing-template/finishing-templates';\nimport {HttpFinishingTemplatesService} from '@infrastructure/http/finishing-template/http-finishing-templates.service';\nimport {HttpTextileDataService} from '@infrastructure/http/textile-data/http-textile-data.service';\nimport {TEXTILE_DATA} from '@infrastructure/http/textile-data/textile-data';\nimport {HttpWeaveStructuresService} from '@infrastructure/http/weave-structure/http-weave-structures.service';\nimport {WEAVE_STRUCTURES} from '@infrastructure/http/weave-structure/weave-structures';\nimport {TextileDataSharedModule} from '@presentation/pages/textile-data/textile-data-shared.module';\nimport {textileDataRouting} from '@presentation/pages/textile-data/textile-data.routing';\nimport {AgGridModule} from 'ag-grid-angular';\nimport {RawMaterialModule} from './raw-material/raw-material.module';\n\n@NgModule({\n imports: [TextileDataSharedModule, textileDataRouting, AgGridModule, RawMaterialModule],\n providers: [\n {provide: TEXTILE_DATA, useClass: HttpTextileDataService},\n {\n provide: FINISHING_TEMPLATES,\n useClass: HttpFinishingTemplatesService\n },\n {provide: WEAVE_STRUCTURES, useClass: HttpWeaveStructuresService},\n {provide: COMPANY_WEAVE_STRUCTURES, useClass: HttpCompanyWeaveStructuresService}\n ]\n})\nexport class TextileDataModule {}\n"],"x_google_ignoreList":[]}