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B,EAAiBI,cAA2G,KAA3F,IAAIlB,EAAec,EAAiBI,aAAahB,GAAIY,EAAiBI,aAAaf,MAAcW,EAAiBK,cAE3K,kDCPK,IAAMkB,EAAiB,UAAAC,EAAxB,MAAOD,EAIXpC,YAAmBsC,EAAwBC,GACzCpC,KAAKmC,WAAaA,EAClBnC,KAAKoC,qBAAuBA,CAC9B,CAEOC,wBACL,OAAOrC,KAAKmC,WAAWG,IAAI,GAAGtC,KAAKoC,qBAAqBG,wDAAwDC,QAC9GC,KAAS/B,GACAL,EAAyBF,SAASO,IAG/C,CAEOgC,yBACL,OAAO1C,KAAKmC,WAAWG,IAAI,GAAGtC,KAAKoC,qBAAqBO,oEAAoEH,QAC1HC,KAAS/B,GACAsB,EAA0B7B,SAASO,IAGhD,CAEOkC,yBACL,OAAO5C,KAAKmC,WAAWG,IAAI,GAAGtC,KAAKoC,qBAAqBO,oEAAoEH,QAC1HC,KAAS/B,GACAoB,EAA0B3B,SAASO,IAGhD,CAEOmC,uBACL,OAAO7C,KAAKmC,WAAWG,IAAI,GAAGtC,KAAKoC,qBAAqBU,2CAA2CN,QACjGC,KAAS/B,GACAM,EAAwBb,SAASO,IAG9C,WAvCWuB,0CAAiBc,MAAAC,MAAAD,MAAAE,KAAA,4BAAjBhB,EAAiBiB,QAAjBjB,EAAiBkB,YAAjBlB,CAAiB,KCLvB,MAAMmB,EAAS,IAAIC,MAAuB,8CCiB1C,IAAMC,EAAY,UAAAC,EAAnB,MAAOD,qDAAY,yBAAZA,iCAPA,CACT,CAACE,QAASC,IAAsBC,SAAUC,KAC1C,CAACH,QAASI,IAAWF,SAAUG,KAC/B,CAACL,QAASM,IAAmBJ,SAAUK,KACvC,CAACP,QAASJ,EAAQM,SAAUzB,IAC7B+B,QAAA,CANSC,IAAeC,IAAcC,QAQ5Bb,CAAY","names":["TexfabCardItem","constructor","id","name","this","_id","_name","fromJSON","texfabJSON","TexfabCarpetLastModified","productionOrder","pathLayoutTemplate","_productionOrder","_pathLayoutTemplate","lastModifiedJSON","CardItem","AssertionUtils","isNullOrUndefined","lastModified","totalCreated","TexfabSalesLastModified","article","customer","salesOrder","_article","_customer","_salesOrder","_lastModifiedJSON$art","_lastModifiedJSON$art2","_lastModifiedJSON$cus","_lastModifiedJSON$cus2","_lastModifiedJSON$sal","_lastModifiedJSON$sal2","isNil","TexfabTuftingLastModified","texfab","TexfabWeavingLastModified","HttpTexfabService","_HttpTexfabService","httpClient","backendConfiguration","getCarpetLastModified","get","getAggregatorEndpoint","pipe","rxjsMap","getWeavingLastModified","getProductionOrderEndpoint","getTuftingLastModified","getSalesLastModified","getEndpoint","i0","i1","i2","factory","ɵfac","TEXFAB","InjectionToken","TexfabModule","_TexfabModule","provide","PRODUCTION_SCHEDULES","useClass","HttpProductionSchedulesService","CUSTOMERS","HttpCustomersService","PRODUCTION_ORDERS","HttpProductionOrdersService","imports","texfabRouting","SharedModule","AgGridModule"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./apps/texconnect/src/app/domain/last-modified-card-object/texfab-card-item.ts","./apps/texconnect/src/app/domain/texfab/texfab-carpet-last-modified.ts","./apps/texconnect/src/app/domain/texfab/texfab-sales-last-modified.ts","./apps/texconnect/src/app/domain/texfab/texfab-tufting-last-modified.ts","./apps/texconnect/src/app/domain/texfab/texfab-weaving-last-modified.ts","./apps/texconnect/src/app/infrastructure/http/texfab/http-texfab.service.ts","./apps/texconnect/src/app/infrastructure/http/texfab/texfab.ts","./apps/texconnect/src/app/presentation/pages/texfab/texfab.module.ts"],"sourcesContent":["export class TexfabCardItem {\n private readonly _id: number;\n private readonly _name: string;\n\n public constructor(id: number, name: string) {\n this._id = id;\n this._name = name;\n }\n\n public get id(): number {\n return this._id;\n }\n\n public get name(): string {\n return this._name;\n }\n\n public static fromJSON(texfabJSON: any): TexfabCardItem {\n return new TexfabCardItem(texfabJSON.id, texfabJSON.name);\n }\n}\n","import {CardItem} from '@domain/last-modified-card-object/card-item';\nimport {TexfabCardItem} from '@domain/last-modified-card-object/texfab-card-item';\nimport {AssertionUtils} from '@vdw/angular-component-library';\n\nexport class TexfabCarpetLastModified {\n private readonly _productionOrder: CardItem;\n private readonly _pathLayoutTemplate: CardItem;\n\n public constructor(productionOrder: CardItem, pathLayoutTemplate: CardItem) {\n this._productionOrder = productionOrder;\n this._pathLayoutTemplate = pathLayoutTemplate;\n }\n\n public get productionOrder(): CardItem {\n return this._productionOrder;\n }\n\n public get pathLayoutTemplate(): CardItem {\n return this._pathLayoutTemplate;\n }\n\n public static fromJSON(lastModifiedJSON: any): TexfabCarpetLastModified {\n return new TexfabCarpetLastModified(\n new CardItem(\n !AssertionUtils.isNullOrUndefined(lastModifiedJSON.productionOrder.lastModified)\n ? new TexfabCardItem(lastModifiedJSON.productionOrder.lastModified.id, lastModifiedJSON.productionOrder.lastModified.name)\n : null,\n lastModifiedJSON.productionOrder.totalCreated\n ),\n new CardItem(\n !AssertionUtils.isNullOrUndefined(lastModifiedJSON.pathLayoutTemplate.lastModified)\n ? new TexfabCardItem(lastModifiedJSON.pathLayoutTemplate.lastModified.id, lastModifiedJSON.pathLayoutTemplate.lastModified.name)\n : null,\n lastModifiedJSON.pathLayoutTemplate.totalCreated\n )\n );\n }\n}\n","import {CardItem} from '@domain/last-modified-card-object/card-item';\nimport {TexfabCardItem} from '@domain/last-modified-card-object/texfab-card-item';\nimport {isNil} from 'lodash-es';\n\nexport class TexfabSalesLastModified {\n private readonly _article: CardItem;\n private readonly _customer: CardItem;\n private readonly _salesOrder: CardItem;\n\n public constructor(article: CardItem, customer: CardItem, salesOrder: CardItem) {\n this._article = article;\n this._customer = customer;\n this._salesOrder = salesOrder;\n }\n\n public get article(): CardItem {\n return this._article;\n }\n\n public get customer(): CardItem {\n return this._customer;\n }\n\n public get salesOrder(): CardItem {\n return this._salesOrder;\n }\n\n public static fromJSON(lastModifiedJSON: any): TexfabSalesLastModified {\n return new TexfabSalesLastModified(\n new CardItem(\n !isNil(lastModifiedJSON?.article?.lastModified) ? new TexfabCardItem(lastModifiedJSON.article.lastModified.id, lastModifiedJSON.article.lastModified.name) : null,\n lastModifiedJSON?.article?.totalCreated\n ),\n new CardItem(\n !isNil(lastModifiedJSON?.customer?.lastModified) ? new TexfabCardItem(lastModifiedJSON.customer.lastModified.id, lastModifiedJSON.customer.lastModified.name) : null,\n lastModifiedJSON?.customer?.totalCreated\n ),\n new CardItem(\n !isNil(lastModifiedJSON?.salesOrder?.lastModified) ? new TexfabCardItem(lastModifiedJSON.salesOrder.lastModified.id, lastModifiedJSON.salesOrder.lastModified.name) : null,\n lastModifiedJSON?.salesOrder?.totalCreated\n )\n );\n }\n}\n","import {CardItem} from '@domain/last-modified-card-object/card-item';\nimport {TexfabCardItem} from '@domain/last-modified-card-object/texfab-card-item';\nimport {AssertionUtils} from '@vdw/angular-component-library';\n\nexport class TexfabTuftingLastModified {\n private readonly _productionOrder: CardItem;\n\n public constructor(texfab: CardItem) {\n this._productionOrder = texfab;\n }\n\n public get productionOrder(): CardItem {\n return this._productionOrder;\n }\n\n public static fromJSON(lastModifiedJSON: any): TexfabTuftingLastModified {\n return new TexfabTuftingLastModified(\n new CardItem(\n !AssertionUtils.isNullOrUndefined(lastModifiedJSON.lastModified) ? new TexfabCardItem(lastModifiedJSON.lastModified.id, lastModifiedJSON.lastModified.name) : null,\n lastModifiedJSON.totalCreated\n )\n );\n }\n}\n","import {CardItem} from '@domain/last-modified-card-object/card-item';\nimport {TexfabCardItem} from '@domain/last-modified-card-object/texfab-card-item';\nimport {isNil} from 'lodash-es';\n\nexport class TexfabWeavingLastModified {\n private readonly _productionOrder: CardItem;\n\n public constructor(texfab: CardItem) {\n this._productionOrder = texfab;\n }\n\n public get productionOrder(): CardItem {\n return this._productionOrder;\n }\n\n public static fromJSON(lastModifiedJSON: any): TexfabWeavingLastModified {\n return new TexfabWeavingLastModified(\n new CardItem(!isNil(lastModifiedJSON.lastModified) ? new TexfabCardItem(lastModifiedJSON.lastModified.id, lastModifiedJSON.lastModified.name) : null, lastModifiedJSON.totalCreated)\n );\n }\n}\n","import {HttpClient} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {BackendConfiguration} from '@application/configuration/backend-configuration';\nimport {TexfabCarpetLastModified} from '@domain/texfab/texfab-carpet-last-modified';\nimport {TexfabSalesLastModified} from '@domain/texfab/texfab-sales-last-modified';\nimport {TexfabTuftingLastModified} from '@domain/texfab/texfab-tufting-last-modified';\nimport {TexfabWeavingLastModified} from '@domain/texfab/texfab-weaving-last-modified';\nimport {Observable} from 'rxjs';\nimport {map as rxjsMap} from 'rxjs/operators';\nimport {Texfab} from './texfab';\n\n@Injectable()\nexport class HttpTexfabService implements Texfab {\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 getCarpetLastModified(): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getAggregatorEndpoint()}texfab/planning/last-modified`).pipe(\n rxjsMap((lastModifiedJSON: any) => {\n return TexfabCarpetLastModified.fromJSON(lastModifiedJSON);\n })\n );\n }\n\n public getWeavingLastModified(): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/lite/last-modified`).pipe(\n rxjsMap((lastModifiedJSON: any) => {\n return TexfabWeavingLastModified.fromJSON(lastModifiedJSON);\n })\n );\n }\n\n public getTuftingLastModified(): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getProductionOrderEndpoint()}production-orders/tuft/last-modified`).pipe(\n rxjsMap((lastModifiedJSON: any) => {\n return TexfabTuftingLastModified.fromJSON(lastModifiedJSON);\n })\n );\n }\n\n public getSalesLastModified(): Observable {\n return this.httpClient.get(`${this.backendConfiguration.getEndpoint()}texfab/sales/last-modified`).pipe(\n rxjsMap((lastModifiedJSON: any) => {\n return TexfabSalesLastModified.fromJSON(lastModifiedJSON);\n })\n );\n }\n}\n","import {InjectionToken} from '@angular/core';\nimport {TexfabCarpetLastModified} from '@domain/texfab/texfab-carpet-last-modified';\nimport {TexfabSalesLastModified} from '@domain/texfab/texfab-sales-last-modified';\nimport {TexfabTuftingLastModified} from '@domain/texfab/texfab-tufting-last-modified';\nimport {TexfabWeavingLastModified} from '@domain/texfab/texfab-weaving-last-modified';\nimport {Observable} from 'rxjs';\n\nexport const TEXFAB = new InjectionToken('Texfab');\n\nexport interface Texfab {\n getCarpetLastModified(): Observable;\n\n getWeavingLastModified(): Observable;\n\n getTuftingLastModified(): Observable;\n\n getSalesLastModified(): Observable;\n}\n","import {NgModule} from '@angular/core';\nimport {CUSTOMERS} from '@infrastructure/http/customer/customers';\nimport {HttpCustomersService} from '@infrastructure/http/customer/http-customers.service';\nimport {HttpProductionOrdersService} from '@infrastructure/http/production-order/http-production-orders.service';\nimport {PRODUCTION_ORDERS} from '@infrastructure/http/production-order/production-orders';\nimport {HttpProductionSchedulesService} from '@infrastructure/http/production-schedule/http-production-schedules.service';\nimport {PRODUCTION_SCHEDULES} from '@infrastructure/http/production-schedule/production-schedules';\nimport {HttpTexfabService} from '@infrastructure/http/texfab/http-texfab.service';\nimport {TEXFAB} from '@infrastructure/http/texfab/texfab';\nimport {SharedModule} from '@shared/shared.module';\nimport {AgGridModule} from 'ag-grid-angular';\nimport {ProductionScheduleOverviewCreelPreviewComponent} from './production-schedule/overview/creel-preview/production-schedule-overview-creel-preview.component';\nimport {texfabRouting} from './texfab.routing';\n\n@NgModule({\n declarations: [ProductionScheduleOverviewCreelPreviewComponent],\n imports: [texfabRouting, SharedModule, AgGridModule],\n providers: [\n {provide: PRODUCTION_SCHEDULES, useClass: HttpProductionSchedulesService},\n {provide: CUSTOMERS, useClass: HttpCustomersService},\n {provide: PRODUCTION_ORDERS, useClass: HttpProductionOrdersService},\n {provide: TEXFAB, useClass: HttpTexfabService}\n ]\n})\nexport class TexfabModule {}\n"],"x_google_ignoreList":[]}