{"version":3,"sources":["./src/app/services/project/project.service.ts"],"names":[],"mappings":";;;;;;;;;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8D;AAIU;;;AAKjE,MAAM,cAAe,SAAQ,iEAAe;IACjD,YAAY,KAAiB;QAC3B,KAAK,CAAC,KAAK,EAAC,UAAU,CAAC,CAAC;IAC1B,CAAC;IACD,WAAW,CAAC,MAAyB;QACnC,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAC,MAAM,CAAC,CAAC;IACzD,CAAC;IACD,OAAO,CAAC,EAAS;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9C,CAAC;IACD,kBAAkB,CAAC,EAAS,EAAC,UAAiB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,uBAAuB,UAAU,EAAE,CAAC,CAAC;IAC/E,CAAC;;4EAZU,cAAc;iGAAd,cAAc,WAAd,cAAc,mBAFb,MAAM;6FAEP,cAAc;cAH1B,wDAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;AA4BM,MAAM,iBAAkB,SAAQ,kEAAgB;IACrD,YAAY,OAAY,CAAC,EAAC,WAAgB,EAAE;QAC1C,KAAK,CAAC,IAAI,EAAC,QAAQ,CAAC,CAAC;IAEvB,CAAC;CAIF","file":"common-es2015.js","sourcesContent":["import { HttpClient } from '@angular/common/http';\r\nimport { Inject, Injectable, LOCALE_ID } from '@angular/core';\r\nimport { map } from 'rxjs/operators';\r\nimport { IBaseEntity } from 'src/app/core/components/base_component';\r\nimport { environment } from 'src/environments/environment';\r\nimport { BaseHttpService, PagnitionRequest } from '../basehttp.service';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class ProjectService extends BaseHttpService{\r\n  constructor(_http: HttpClient) {\r\n    super(_http,'projects');\r\n  }\r\n  getProjects(filter: GetProjectsFilter) {\r\n    return this.sendPagingRequest(`${this.module}`,filter);\r\n  }\r\n  GetById(Id:number) {\r\n    return this.sendGet(`${this.module}/${Id}`);\r\n  }\r\n  getRelatedProjects(Id:number,CategoryId:number) {\r\n    return this.sendGet(`${this.module}/${Id}/relates?CategoryId=${CategoryId}`);\r\n  }\r\n}\r\nexport interface ProjectListItem extends IBaseEntity{\r\n  title: string;\r\n  thumbnail: string;\r\n  operationField?: string;\r\n  operationFieldId?: number;\r\n  categoryId?: number;\r\n  category: string;\r\n  year?: number;\r\n  locatonId?: number;\r\n  location?: string;\r\n  thumbnailRatio?:number;\r\n  createdOnDate?: Date | string;\r\n}\r\nexport class GetProjectsFilter extends PagnitionRequest{\r\n  constructor(page:number=1,pageSize:number=10) {\r\n    super(page,pageSize);\r\n\r\n  }\r\n  categoryId?: number;\r\n  operationFieldId?: number;\r\n  title?: string;\r\n}\r\nexport interface ProjectDetailItem\r\n{\r\n    id: number;\r\n    title: string;\r\n    htmlContent: string;\r\n    thumbnail: string;\r\n    banner: string;\r\n    categoryId: number;\r\n    category: string;\r\n    operationFieldId: number;\r\n    operationField: string;\r\n    year: number;\r\n    locationId: number;\r\n    location: string;\r\n    areas: number;\r\n    investor: string;\r\n    author: string;\r\n    authorId: number;\r\n    publishedCreate: Date | string;\r\n}\r\nexport interface RelatedProjectListItem\r\n{\r\n    id: number;\r\n    title: string;\r\n    category: string;\r\n    thumbnail: string;\r\n}"],"sourceRoot":"webpack:///"}