@alba-cars/common-modules 2.2.0 → 2.4.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/core/enums/index.js +1 -0
  2. package/dist/core/error-handling/index.js +1 -0
  3. package/dist/core/index.js +1 -0
  4. package/dist/core/models/index.js +1 -0
  5. package/dist/core/models/media/index.js +1 -0
  6. package/dist/core/models/pagination/index.js +1 -0
  7. package/dist/core/network/index.js +1 -0
  8. package/dist/core/utils/index.js +1 -0
  9. package/dist/features/auth/data/index.js +1 -0
  10. package/dist/features/auth/index.js +1 -0
  11. package/dist/features/bank-valuation-request/index.js +1 -0
  12. package/dist/features/blog/index.js +1 -0
  13. package/dist/features/callback-request/index.js +1 -0
  14. package/dist/features/deposits/data/index.js +1 -0
  15. package/dist/features/deposits/index.js +1 -0
  16. package/dist/features/faq/data/dtos/index.js +1 -0
  17. package/dist/features/faq/data/enums/index.js +1 -0
  18. package/dist/features/faq/data/index.js +1 -0
  19. package/dist/features/faq/index.js +1 -0
  20. package/dist/features/finance-eligibilty-request/data/index.js +1 -0
  21. package/dist/features/finance-eligibilty-request/index.js +1 -0
  22. package/dist/features/google-review/data/dto/index.js +1 -0
  23. package/dist/features/google-review/data/enums/index.js +1 -0
  24. package/dist/features/google-review/data/index.js +1 -0
  25. package/dist/features/google-review/index.js +1 -0
  26. package/dist/features/index.js +1 -0
  27. package/dist/features/lead/data/dto/index.js +1 -0
  28. package/dist/features/lead/data/enum/index.js +1 -0
  29. package/dist/features/lead/index.js +1 -0
  30. package/dist/features/models/index.js +1 -0
  31. package/dist/features/newsletter/index.js +1 -0
  32. package/dist/features/sales-team/data/dto/SalesAgentDTO.d.ts +10 -0
  33. package/dist/features/sales-team/data/index.js +1 -0
  34. package/dist/features/sales-team/index.js +1 -0
  35. package/dist/features/sell-car-request/data/index.js +1 -0
  36. package/dist/features/sell-car-request/index.js +1 -0
  37. package/dist/features/showroom-visit/data/enums/index.js +1 -0
  38. package/dist/features/showroom-visit/data/index.js +1 -0
  39. package/dist/features/showroom-visit/index.js +1 -0
  40. package/dist/features/test-drive-request/api/index.js +1 -0
  41. package/dist/features/test-drive-request/data/enums/index.js +1 -0
  42. package/dist/features/test-drive-request/data/index.js +1 -0
  43. package/dist/features/test-drive-request/data/models/index.js +1 -0
  44. package/dist/features/test-drive-request/index.js +1 -0
  45. package/dist/features/tickets/data/enums/index.js +1 -0
  46. package/dist/features/tickets/index.js +1 -0
  47. package/dist/features/vehicle/data/dto/index.js +1 -0
  48. package/dist/features/vehicle/data/enums/index.js +1 -0
  49. package/dist/features/vehicle/data/index.js +1 -0
  50. package/dist/features/vehicle/index.js +1 -0
  51. package/dist/features/vehicle-reservations/data/dto/index.js +1 -0
  52. package/dist/features/vehicle-reservations/data/enums/index.js +1 -0
  53. package/dist/features/vehicle-reservations/index.js +1 -0
  54. package/dist/global/dto/index.js +1 -0
  55. package/dist/global/index.js +1 -0
  56. package/dist/index.js +1 -1
  57. package/package.json +26 -1
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={167:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleCategoryDTO=t.VehicleCategoryUpdateDTO=t.VehicleCategoryCreateDTO=t.VehicleCategoryGetUniqueDTO=t.VehicleCategoryGetDTO=void 0;const a=i(284),r=i(6325),s=i(1746);class p{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(p,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleCategoryGetDTO=p;class l{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(l,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleCategoryGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(d,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsString)(),(0,r.IsNotEmpty)(),(0,r.IsDefined)(),(0,r.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],d.prototype,"name",void 0),t.VehicleCategoryCreateDTO=d;class y extends s.BaseUpdateDTO{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsString)(),(0,r.IsOptional)(),(0,r.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],y.prototype,"name",void 0),t.VehicleCategoryUpdateDTO=y;class c{constructor(e){this.existingId=e.existingId,this.new=e.new}validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,a.plainToClass)(c,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsString)(),(0,r.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,r.ValidateNested)(),(0,a.Type)((()=>d)),(0,r.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicVehicleCategoryDTO=c},284:e=>{e.exports=require("class-transformer")},1179:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleFinanceUpdateDTO=t.VehicleFinanceCreateDTO=t.VehicleFinanceGetDTO=void 0;const a=i(6325),r=i(284);class s{static fromEntity(e){return(0,r.plainToClass)(s,e)}toPlain(){return(0,r.instanceToPlain)(this)}}t.VehicleFinanceGetDTO=s;class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}toPlain(){return(0,r.instanceToPlain)(this)}}n([(0,a.IsString)(),o("design:type",String)],p.prototype,"vehicleId",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"price",void 0),n([(0,a.IsNumber)(),(0,a.IsOptional)(),o("design:type",Number)],p.prototype,"droppedPrice",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"interestPercentage",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"monthlyInstallment",void 0),n([(0,a.IsNumber)(),(0,a.IsOptional)(),o("design:type",Number)],p.prototype,"droppedMonthlyInstallment",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"financingYear",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"interestPerYear",void 0),n([(0,a.IsNumber)(),(0,a.IsOptional)(),o("design:type",Number)],p.prototype,"droppedInterestPerYear",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"totalReductionAmount",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"reductionDuration",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"durationShow",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"vehiclePriceType",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"reductionInterval",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"minimumBidAmount",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"initialDepositAmount",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"vatInclusive",void 0),t.VehicleFinanceCreateDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}toPlain(){return(0,r.instanceToPlain)(this)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vehicleId",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"price",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"droppedPrice",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"interestPercentage",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"monthlyInstallment",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"droppedMonthlyInstallment",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"financingYear",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"interestPerYear",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"droppedInterestPerYear",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vehiclePriceType",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vatInclusive",void 0),t.VehicleFinanceUpdateDTO=l},1746:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseDeleteDTO=t.BaseUpdateDTO=t.BaseCreateDTO=void 0;const a=i(6325);class r{}n([(0,a.IsNotEmpty)(),o("design:type",String)],r.prototype,"createdById",void 0),t.BaseCreateDTO=r;class s{}n([(0,a.IsNotEmpty)(),o("design:type",String)],s.prototype,"updatedById",void 0),t.BaseUpdateDTO=s;class p{}n([(0,a.IsNotEmpty)(),o("design:type",String)],p.prototype,"deletedById",void 0),t.BaseDeleteDTO=p},2090:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateUserFavoritesDTO=t.VehicleFavoriteCreateDTO=void 0;const a=i(284),r=i(6325);class s{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(s,e)}toPlain(){return(0,a.instanceToPlain)(this)}}n([(0,r.IsString)(),(0,r.IsUUID)(),o("design:type",String)],s.prototype,"userId",void 0),n([(0,r.IsString)({each:!0}),(0,r.IsUUID)(void 0,{each:!0}),o("design:type",Object)],s.prototype,"vehicleIds",void 0),t.VehicleFavoriteCreateDTO=s;class p{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(p,e)}toPlain(){return(0,a.instanceToPlain)(this)}}n([(0,r.IsString)(),(0,r.IsUUID)(),o("design:type",String)],p.prototype,"userId",void 0),n([(0,r.IsUUID)(void 0,{each:!0}),(0,a.Transform)((({value:e})=>Array.isArray(e)?e:[e])),o("design:type",Object)],p.prototype,"favoriteVehicles",void 0),t.UpdateUserFavoritesDTO=p},2433:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentUpdateDTO=t.PaymentCreateDTO=t.PaymentGetDTO=void 0;const a=i(6325),r=i(284);class s{static fromEntity(e){return(0,r.plainToClass)(s,e)}toPlain(){return(0,r.classToPlain)(this)}}t.PaymentGetDTO=s;class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}}n([(0,a.IsString)(),o("design:type",String)],p.prototype,"userId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"requestId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"vehicleId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"transactionId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"paymentStatus",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"paymentResponse",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"amountPaid",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"tokenId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"state",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"failureReason",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"failureCode",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"accountId",void 0),n([(0,a.IsDate)(),o("design:type",Date)],p.prototype,"paymentDate",void 0),t.PaymentCreateDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"userId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"requestId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vehicleId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"transactionId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"paymentStatus",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"paymentResponse",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"amountPaid",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"tokenId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"state",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"failureReason",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"failureCode",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"accountId",void 0),n([(0,a.IsOptional)(),(0,a.IsDate)(),o("design:type",Date)],l.prototype,"paymentDate",void 0),t.PaymentUpdateDTO=l},2446:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),o(i(2490),t),o(i(3404),t)},2463:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2490:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.formatImageUrl=t.TypedOptions=t.TypedFilter=t.BaseFilter=t.NumberRange=t.DateFilter=t.PaginationOptions=t.IsDateOrConvertible=t.createFieldPath=void 0;const a=i(6325),r=i(284);function s(e){return function(t,i){(0,a.registerDecorator)({name:"isDateOrConvertible",target:t.constructor,propertyName:i,options:e,validator:{validate:(e,t)=>e instanceof Date||"string"==typeof e||"number"==typeof e,defaultMessage:e=>`${e.property} must be a Date, string, or number`}})}}t.createFieldPath=e=>e,t.IsDateOrConvertible=s;class p{}n([(0,a.IsOptional)(),(0,a.IsNumber)(),(0,a.Max)(100),o("design:type",Number)],p.prototype,"limit",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"page",void 0),t.PaginationOptions=p;class l{}n([(0,a.IsOptional)(),(0,a.Validate)(s),o("design:type",Object)],l.prototype,"from",void 0),n([(0,a.IsOptional)(),(0,a.Validate)(s),o("design:type",Object)],l.prototype,"to",void 0),t.DateFilter=l;class d{}n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],d.prototype,"min",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],d.prototype,"max",void 0),t.NumberRange=d;class y{}n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Object)],y.prototype,"id",void 0),n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Object)],y.prototype,"createdBy",void 0),n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Object)],y.prototype,"updatedBy",void 0),n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Object)],y.prototype,"deletedBy",void 0),n([(0,a.IsOptional)(),(0,a.IsBoolean)(),o("design:type",Boolean)],y.prototype,"isDeleted",void 0),n([(0,a.IsOptional)(),(0,a.IsBoolean)(),o("design:type",Boolean)],y.prototype,"isActive",void 0),n([(0,a.IsOptional)(),(0,a.Validate)(l),o("design:type",l)],y.prototype,"createdAt",void 0),n([(0,a.IsOptional)(),(0,a.Validate)(l),o("design:type",l)],y.prototype,"updatedAt",void 0),n([(0,a.IsOptional)(),(0,a.Validate)(l),o("design:type",l)],y.prototype,"deletedAt",void 0),t.BaseFilter=y,t.TypedFilter=class extends y{};class c extends p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.TypedOptions=c,t.formatImageUrl=function(e){return e?function(e){try{return new URL(e),!0}catch{return!1}}(e)||e.startsWith("data:")||e.startsWith("/assets")?e:`${process.env.NEXT_PUBLIC_S3_URL}${e.startsWith("/")?e:`/${e}`}`:null}},2641:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleInspectionDTO=t.ElectricalsInspectionDTO=t.EngineInspectionDTO=t.InteriorInspectionDTO=t.SteeringAndSuspensionInspectionDTO=t.TyresInspectionDTO=t.ExteriorInspectionDTO=t.BaseInspectionDTO=t.InspectionPointDTO=t.InspectionStatus=void 0;const a=i(6325),r=i(284),s=i(6325);var p;!function(e){e.PERFECT="Perfect",e.IMPERFECTIONS="Imperfections",e.NOT_APPLICABLE="Not Applicable"}(p=t.InspectionStatus||(t.InspectionStatus={}));class l{constructor(e=p.PERFECT){this.status=e}}n([(0,s.IsEnum)(p),o("design:type",String)],l.prototype,"status",void 0),n([(0,s.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"imperfections",void 0),t.InspectionPointDTO=l;class d{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(this,e)}toPlain(){return(0,r.instanceToPlain)(this)}}n([(0,s.IsOptional)(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",Array)],d.prototype,"validate",null),t.BaseInspectionDTO=d;class y extends d{constructor(){super(),this.hood=new l(p.PERFECT),this.roof=new l(p.PERFECT),this.trunk=new l(p.PERFECT),this.frontLeftDoor=new l(p.PERFECT),this.frontRightDoor=new l(p.PERFECT),this.rearLeftDoor=new l(p.PERFECT),this.rearRightDoor=new l(p.PERFECT),this.frontBumper=new l(p.PERFECT),this.rearBumper=new l(p.PERFECT),this.leftFender=new l(p.PERFECT),this.rightFender=new l(p.PERFECT),this.leftQuarterPanel=new l(p.PERFECT),this.rightQuarterPanel=new l(p.PERFECT),this.leftAPillar=new l(p.PERFECT),this.rightAPillar=new l(p.PERFECT),this.leftAtoBPillarBeading=new l(p.PERFECT),this.rightAtoBPillarBeading=new l(p.PERFECT),this.leftBPillarTrim=new l(p.PERFECT),this.rightBtoCPillarBeading=new l(p.PERFECT),this.leftRunningBoard=new l(p.PERFECT),this.rightRunningBoard=new l(p.PERFECT),this.frontWindshield=new l(p.PERFECT),this.rearWindshield=new l(p.PERFECT),this.chassisCondition=new l(p.PERFECT),this.apron=new l(p.PERFECT),this.bootFloor=new l(p.PERFECT),this.firewallCondition=new l(p.PERFECT),this.leftFrontAlloyRim=new l(p.PERFECT),this.leftRearAlloyRim=new l(p.PERFECT),this.rightFrontAlloyRim=new l(p.PERFECT),this.rightRearAlloyRim=new l(p.PERFECT),this.spareAlloyRimCondition=new l(p.PERFECT),this.wheelCover=new l(p.PERFECT),this.grillCondition=new l(p.PERFECT),this.windowGlass=new l(p.PERFECT),this.wiper=new l(p.PERFECT),this.panelCondition=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"frontLeftDoor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"frontRightDoor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rearLeftDoor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rearRightDoor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftFender",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightFender",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"frontBumper",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rearBumper",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"hood",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"trunk",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"roof",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftQuarterPanel",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightQuarterPanel",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftAPillar",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightAPillar",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftAtoBPillarBeading",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightAtoBPillarBeading",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftBPillarTrim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightBtoCPillarBeading",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftRunningBoard",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightRunningBoard",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"frontWindshield",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rearWindshield",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"chassisCondition",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"apron",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"bootFloor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"firewallCondition",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftFrontAlloyRim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftRearAlloyRim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightFrontAlloyRim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightRearAlloyRim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"spareAlloyRimCondition",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"wheelCover",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"grillCondition",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"windowGlass",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"wiper",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"panelCondition",void 0),t.ExteriorInspectionDTO=y;class c extends d{constructor(){super(),this.leftFrontTyre=new l(p.PERFECT),this.rightFrontTyre=new l(p.PERFECT),this.leftRearTyre=new l(p.PERFECT),this.rightRearTyre=new l(p.PERFECT),this.spareTyre=new l(p.PERFECT),this.leftFrontTyreLife=100,this.rightFrontTyreLife=100,this.leftRearTyreLife=100,this.rightRearTyreLife=100,this.spareTyreLife=100}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"leftFrontTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"leftFrontTyreLife",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"rightFrontTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"rightFrontTyreLife",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"leftRearTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"leftRearTyreLife",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"rightRearTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"rightRearTyreLife",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"spareTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"spareTyreLife",void 0),t.TyresInspectionDTO=c;class g extends d{constructor(){super(),this.steeringWheel=new l(p.PERFECT),this.parkingBrake=new l(p.PERFECT),this.brakeMasterCylinder=new l(p.PERFECT),this.brakeDiscAndPad=new l(p.PERFECT),this.brakeFluid=new l(p.PERFECT),this.shockAbsorbers=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"steeringWheel",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"parkingBrake",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"brakeMasterCylinder",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"brakeDiscAndPad",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"brakeFluid",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"shockAbsorbers",void 0),t.SteeringAndSuspensionInspectionDTO=g;class u extends d{constructor(){super(),this.dashboard=new l(p.PERFECT),this.centralConsole=new l(p.PERFECT),this.gloveBox=new l(p.PERFECT),this.sunvisor=new l(p.PERFECT),this.seatUpholstery=new l(p.PERFECT),this.carpets=new l(p.PERFECT),this.headliner=new l(p.PERFECT),this.manualSeatMovement=new l(p.PERFECT),this.seatBelts=new l(p.PERFECT),this.headRest=new l(p.PERFECT),this.doorControls=new l(p.PERFECT),this.grabHandle=new l(p.PERFECT),this.rearViewMirror=new l(p.PERFECT),this.toolKit=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"dashboard",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"centralConsole",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"gloveBox",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"sunvisor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"seatUpholstery",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"carpets",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"headliner",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"manualSeatMovement",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"seatBelts",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"headRest",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"doorControls",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"grabHandle",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"rearViewMirror",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"toolKit",void 0),t.InteriorInspectionDTO=u;class v extends d{constructor(){super(),this.engineBody=new l(p.PERFECT),this.enginePerformance=new l(p.PERFECT),this.engineOil=new l(p.PERFECT),this.exhaustSystem=new l(p.PERFECT),this.radiator=new l(p.PERFECT),this.coolant=new l(p.PERFECT),this.fuelTank=new l(p.PERFECT),this.gearShifting=new l(p.PERFECT),this.driveAxle=new l(p.PERFECT),this.transmissionFluid=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"engineBody",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"enginePerformance",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"engineOil",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"exhaustSystem",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"radiator",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"coolant",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"fuelTank",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"gearShifting",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"driveAxle",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"transmissionFluid",void 0),t.EngineInspectionDTO=v;class h extends d{constructor(){super(),this.masterKey=new l(p.PERFECT),this.spareKey=new l(p.PERFECT),this.childSafetyLocking=new l(p.PERFECT),this.instrumentPanel=new l(p.PERFECT),this.airbags=new l(p.PERFECT),this.controls=new l(p.PERFECT),this.cruiseControl=new l(p.PERFECT),this.infotainmentDisplay=new l(p.PERFECT),this.obdConnector=new l(p.PERFECT),this.musicSystem=new l(p.PERFECT),this.headlight=new l(p.PERFECT),this.interiorLights=new l(p.PERFECT),this.tailLightCluster=new l(p.PERFECT),this.licensePlateLight=new l(p.PERFECT),this.acCooling=new l(p.PERFECT),this.acSwitch=new l(p.PERFECT),this.acLeaks=new l(p.PERFECT),this.centerAcVent=new l(p.PERFECT),this.frontRightAcVent=new l(p.PERFECT),this.heater=new l(p.PERFECT),this.parkingSensors=new l(p.PERFECT),this.rearDefogger=new l(p.PERFECT),this.usbChargingPort=new l(p.PERFECT),this.powerManualWindows=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"masterKey",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"spareKey",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"childSafetyLocking",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"instrumentPanel",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"airbags",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"controls",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"cruiseControl",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"infotainmentDisplay",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"obdConnector",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"musicSystem",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"headlight",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"interiorLights",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"tailLightCluster",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"licensePlateLight",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"acCooling",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"acSwitch",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"acLeaks",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"centerAcVent",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"frontRightAcVent",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"heater",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"parkingSensors",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"rearDefogger",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"usbChargingPort",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"powerManualWindows",void 0),t.ElectricalsInspectionDTO=h;class I{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(I,e)}toPlain(){return(0,r.instanceToPlain)(this)}}n([(0,a.IsString)(),o("design:type",String)],I.prototype,"vehicle",void 0),n([(0,a.IsString)(),(0,s.IsOptional)(),o("design:type",String)],I.prototype,"inspectorId",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>y)),o("design:type",y)],I.prototype,"exterior",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>g)),o("design:type",g)],I.prototype,"steeringAndSuspension",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>u)),o("design:type",u)],I.prototype,"interior",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>v)),o("design:type",v)],I.prototype,"engine",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>h)),o("design:type",h)],I.prototype,"electricals",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>c)),o("design:type",c)],I.prototype,"tyres",void 0),n([(0,s.IsOptional)(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",Array)],I.prototype,"validate",null),t.VehicleInspectionDTO=I},3404:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),o(i(5514),t)},3448:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),o(i(1746),t),o(i(2433),t),o(i(6075),t),o(i(5139),t),o(i(4787),t),o(i(1179),t),o(i(9445),t),o(i(5886),t),o(i(3770),t),o(i(9421),t),o(i(4611),t),o(i(5886),t),o(i(167),t),o(i(2463),t),o(i(2641),t),o(i(3469),t),o(i(7844),t),o(i(2090),t),o(i(5112),t)},3469:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleOptions=t.VehicleUniqueFilter=t.VehicleFilter=t.VehicleCategoryOptions=t.VehicleCategoryUniqueFilter=t.VehicleCategoryFilter=t.VehicleFeatureCategoryOptions=t.VehicleFeatureCategoryUniqueFilter=t.VehicleFeatureCategoryFilter=t.VehicleFeatureOptions=t.VehicleFeatureUniqueFilter=t.VehicleFeatureFilter=t.VehicleBodyTypeOptions=t.VehicleBodyTypeUniqueFilter=t.VehicleBodyTypeFilter=t.VehicleModelOptions=t.VehicleModelUniqueFilter=t.VehicleModelFilter=t.VehicleMakeOptions=t.VehicleMakeUniqueFilter=t.VehicleMakeFilter=void 0;const a=i(284),r=i(6325),s=i(2446);class p extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(p,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],p.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],p.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],p.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",String)],p.prototype,"metaKeywords",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],p.prototype,"models",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],p.prototype,"vehicles",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],p.prototype,"search",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],p.prototype,"promoted",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],p.prototype,"showInFooter",void 0),t.VehicleMakeFilter=p;class l extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(p,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],l.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],l.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],l.prototype,"name",void 0),t.VehicleMakeUniqueFilter=l;class d extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(d,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleMakeOptions=d;class y extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],y.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],y.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],y.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",String)],y.prototype,"metaKeywords",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],y.prototype,"makes",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],y.prototype,"vehicles",void 0),t.VehicleModelFilter=y;class c extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(c,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],c.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],c.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],c.prototype,"name",void 0),t.VehicleModelUniqueFilter=c;class g extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(g,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleModelOptions=g;class u extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],u.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],u.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],u.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],u.prototype,"vehicles",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],u.prototype,"models",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],u.prototype,"search",void 0),t.VehicleBodyTypeFilter=u;class v{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],v.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],v.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],v.prototype,"name",void 0),t.VehicleBodyTypeUniqueFilter=v;class h extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(g,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleBodyTypeOptions=h;class I extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],I.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],I.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],I.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],I.prototype,"categories",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],I.prototype,"search",void 0),t.VehicleFeatureFilter=I;class m{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],m.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],m.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],m.prototype,"name",void 0),t.VehicleFeatureUniqueFilter=m;class O extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(O,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleFeatureOptions=O;class f extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(f,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],f.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],f.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],f.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],f.prototype,"features",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],f.prototype,"search",void 0),t.VehicleFeatureCategoryFilter=f;class T{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(T,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],T.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],T.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],T.prototype,"name",void 0),t.VehicleFeatureCategoryUniqueFilter=T;class S extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(S,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleFeatureCategoryOptions=S;class P extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(P,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],P.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],P.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],P.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],P.prototype,"search",void 0),t.VehicleCategoryFilter=P;class b{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(b,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],b.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],b.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],b.prototype,"name",void 0),t.VehicleCategoryUniqueFilter=b;class N extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(O,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleCategoryOptions=N;class E extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(E,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"referenceNumber",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"make",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"model",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"bodyType",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"vin",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"chassisNumber",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"trim",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"mileage",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"fuelType",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"color",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"engineCapacity",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"numberOfCylinders",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"cylinderCapacity",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"doors",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"seats",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"keys",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"wheelsType",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"airbags",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"transmission",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"driveType",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"emissions",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"year",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"price",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],E.prototype,"emi",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"status",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],E.prototype,"includeReserved",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],E.prototype,"includeUnpublished",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],E.prototype,"includeSelfReserved",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],E.prototype,"includeSold",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],E.prototype,"includeDraft",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],E.prototype,"features",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],E.prototype,"search",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],E.prototype,"warranty",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],E.prototype,"compareCarId",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],E.prototype,"specialDeals",void 0),t.VehicleFilter=E;class V{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(V,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],V.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],V.prototype,"referenceNumber",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],V.prototype,"refId",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],V.prototype,"vin",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],V.prototype,"chassisNumber",void 0),t.VehicleUniqueFilter=V;class C extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(C,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleOptions=C},3770:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicModelDTO=t.VehicleModelUpdateDTO=t.VehicleModelCreateDTO=t.VehicleModelGetUniqueDTO=t.VehicleModelGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746),p=i(5613),l=i(8047);class d{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleModelGetDTO=d;class y{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}toPlain(){return(0,r.instanceToPlain)(this)}}t.VehicleModelGetUniqueDTO=y;class c extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsNotEmpty)(),(0,a.IsDefined)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],c.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"image",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"description",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"metaTitle",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"metaDescription",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"metaKeywords",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>l.VehicleMake)),o("design:type",l.VehicleMake)],c.prototype,"make",void 0),n([(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>p.Vehicle)),o("design:type",Array)],c.prototype,"vehicles",void 0),t.VehicleModelCreateDTO=c;class g extends s.BaseUpdateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(g,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],g.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"image",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"description",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"metaTitle",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"metaDescription",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"metaKeywords",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],g.prototype,"isActive",void 0),t.VehicleModelUpdateDTO=g;class u{validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(u,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],u.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>c)),(0,a.IsOptional)(),o("design:type",c)],u.prototype,"new",void 0),t.DynamicModelDTO=u},4136:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseModel=void 0,t.BaseModel=class{}},4611:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleBodyTypeDTO=t.VehicleBodyTypeUpdateDTO=t.VehicleBodyTypeCreateDTO=t.VehicleBodyTypeGetUniqueDTO=t.VehicleBodyTypeGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleBodyTypeGetDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleBodyTypeGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),o("design:type",String)],d.prototype,"name",void 0),t.VehicleBodyTypeCreateDTO=d;class y{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],y.prototype,"name",void 0),t.VehicleBodyTypeUpdateDTO=y;class c{validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>d)),(0,a.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicVehicleBodyTypeDTO=c},4787:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleFeatureDTO=t.VehicleFeaturedUpdateDTO=t.VehicleFeaturedCreateDTO=t.VehicleFeaturedGetUniqueDTO=t.VehicleFeaturedGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleFeaturedGetDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleFeaturedGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsNotEmpty)(),(0,a.IsDefined)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],d.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"icon",void 0),t.VehicleFeaturedCreateDTO=d;class y extends s.BaseUpdateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],y.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"icon",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"slug",void 0),t.VehicleFeaturedUpdateDTO=y;class c{validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>d)),(0,a.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicVehicleFeatureDTO=c},5112:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleWarrantyDTO=void 0;const a=i(8551),r=i(6325),s=i(284);class p{constructor(e,t){this.year=e,this.km=t}toString(){return`Until ${this.year} or ${this.km}Kms`}validate(){const e=(0,r.validateSync)(this);return this.year||this.km?e.map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat():["Either year or km must be provided"]}static fromPlain(e){return(0,s.plainToClass)(p,e)}}n([(0,r.IsOptional)(),(0,r.IsEnum)(a.VehicleWarrantyYearType),(0,r.ValidateIf)((e=>void 0===e.km||null===e.km)),o("design:type",String)],p.prototype,"year",void 0),n([(0,r.IsOptional)(),(0,r.IsNumber)(),(0,r.ValidateIf)((e=>void 0===e.year||null===e.year)),o("design:type",Number)],p.prototype,"km",void 0),t.VehicleWarrantyDTO=p},5139:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleFeatureCategoryDTO=t.VehicleFeatureCategoryUpdateDTO=t.VehicleFeatureCategoryCreateDTO=t.VehicleFeatureCategoryGetUniqueDTO=t.VehicleFeatureCategoryGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleFeatureCategoryGetDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleFeatureCategoryGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsNotEmpty)(),(0,a.IsDefined)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],d.prototype,"name",void 0),t.VehicleFeatureCategoryCreateDTO=d;class y extends s.BaseUpdateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],y.prototype,"name",void 0),t.VehicleFeatureCategoryUpdateDTO=y;class c{constructor(e){this.existingId=e.existingId,this.new=e.new}validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>d)),(0,a.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicVehicleFeatureCategoryDTO=c},5514:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseGetDTO=void 0;const n=i(6325),o=i(284);t.BaseGetDTO=class{validate(){return(0,n.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,o.plainToClass)(this,e)}static toPlain(e){return(0,o.instanceToPlain)(e)}}},5613:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleDraft=t.Vehicle=void 0;const n=i(284),o=i(4136);class a extends o.BaseModel{static fromPlain(e){return(0,n.plainToClass)(a,e)}toPlain(){return(0,n.instanceToPlain)(this)}}t.Vehicle=a,t.VehicleDraft=class{}},5886:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleMediaUpdateDTO=t.S3MediaCreateURLDTO=t.VehicleMediaCreateS3UrlDTO=t.VehicleMediaFilterDTO=t.VehicleMediaCreateDTO=void 0;const a=i(6325),r=i(8551),s=i(284);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,s.plainToClass)(p,e)}static toPlain(e){return(0,s.instanceToPlain)(e)}}n([(0,a.IsString)({each:!0}),o("design:type",String)],p.prototype,"vehicleId",void 0),n([(0,a.IsEnum)(r.VehicleMediaType),o("design:type",String)],p.prototype,"mediaType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"mediaUrl",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"placeholder",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"thumbnailUrl",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"mediaIndex",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsBoolean)(),o("design:type",Boolean)],p.prototype,"isPrimary",void 0),t.VehicleMediaCreateDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,s.plainToClass)(l,e)}}n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"id",void 0),n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"vehicleId",void 0),n([(0,a.IsEnum)(r.VehicleMediaType,{each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"mediaType",void 0),n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"mediaUrl",void 0),n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"thumbnailUrl",void 0),n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Boolean)],l.prototype,"isPrimary",void 0),t.VehicleMediaFilterDTO=l,t.VehicleMediaCreateS3UrlDTO=class{constructor(){}};class d{}n([(0,a.IsString)(),o("design:type",String)],d.prototype,"vehicleId",void 0),n([(0,a.IsString)(),o("design:type",String)],d.prototype,"folder",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsArray)(),o("design:type",Array)],d.prototype,"files",void 0),t.S3MediaCreateURLDTO=d;class y{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,s.plainToClass)(y,e)}static toPlain(e){return(0,s.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsArray)(),(0,a.ValidateNested)({each:!0}),(0,s.Type)((()=>p)),o("design:type",Array)],y.prototype,"data",void 0),n([(0,a.IsOptional)(),(0,a.IsBoolean)(),o("design:type",Boolean)],y.prototype,"replace",void 0),n([(0,a.ValidateNested)(),(0,s.Type)((()=>l)),o("design:type",l)],y.prototype,"filter",void 0),t.VehicleMediaUpdateDTO=y},6075:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleDTO=t.VehicleUpdateDTO=t.VehicleFeaturesUpdateDTO=t.VehicleCreateDTO=t.VehicleMetaDataDTO=t.VehicleGetUniqueDTO=t.VehicleGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746),p=i(9445),l=i(3770),d=i(4611),y=i(5886),c=i(1179),g=i(8551);class u{constructor(e=!0){e&&(this.validate=(e=!0)=>e?(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat():[])}static fromPlain(e){return(0,r.plainToClass)(u,e)}toPlain(){return(0,r.instanceToPlain)(this)}}t.VehicleGetDTO=u;class v{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(v,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleGetUniqueDTO=v;class h{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(h,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],h.prototype,"metaTitle",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],h.prototype,"metaDescription",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],h.prototype,"metaKeywords",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],h.prototype,"vehicleDescription",void 0),n([(0,a.IsString)(),o("design:type",String)],h.prototype,"vehicleId",void 0),n([(0,a.IsOptional)(),(0,a.IsArray)(),(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>Object)),o("design:type",Object)],h.prototype,"others",void 0),t.VehicleMetaDataDTO=h;class I extends s.BaseCreateDTO{validate(){const e=(0,a.validateSync)(this),t=[];return this.warrantyYears||this.warrantyKm||t.push("Either warranty years or warranty kilometers must be provided"),this.serviceContractYears||this.serviceContractKm||t.push("Either service contract years or service contract kilometers must be provided"),[...e.map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat(),...t]}static fromPlain(e){return(0,r.plainToClass)(I,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"title",void 0),n([(0,a.IsNotEmpty)(),(0,a.ValidateNested)(),(0,r.Type)((()=>p.DynamicMakeDTO)),o("design:type",p.DynamicMakeDTO)],I.prototype,"make",void 0),n([(0,a.IsNotEmpty)(),(0,a.ValidateNested)(),(0,r.Type)((()=>l.DynamicModelDTO)),o("design:type",l.DynamicModelDTO)],I.prototype,"model",void 0),n([(0,a.IsNotEmpty)(),(0,a.ValidateNested)(),(0,r.Type)((()=>d.DynamicVehicleBodyTypeDTO)),o("design:type",d.DynamicVehicleBodyTypeDTO)],I.prototype,"bodyType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"vin",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"vehicleSpec",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"chassisNumber",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"trim",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"mileage",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"odometer",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"fuelType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"color",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"engineCapacity",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"numberOfCylinders",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"evRange",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"cylinderCapacity",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"doors",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"seats",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"keys",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"wheelsType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"airbags",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"transmission",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"driveType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"emissions",void 0),n([(0,a.IsOptional)(),(0,a.IsEnum)(g.VehicleWarrantyYearType),o("design:type",String)],I.prototype,"warrantyYears",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"warrantyKm",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"warranty",void 0),n([(0,a.IsOptional)(),(0,a.IsEnum)(g.VehicleWarrantyYearType),o("design:type",String)],I.prototype,"serviceContractYears",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"serviceContractKm",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"serviceContract",void 0),n([(0,a.IsArray)(),(0,a.IsOptional)(),(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>y.VehicleMediaCreateDTO)),o("design:type",Array)],I.prototype,"media",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>c.VehicleFinanceCreateDTO)),o("design:type",c.VehicleFinanceCreateDTO)],I.prototype,"finance",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"year",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"price",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"status",void 0),n([(0,a.IsArray)(),(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Array)],I.prototype,"features",void 0),n([(0,a.ValidateNested)(),(0,a.IsOptional)(),(0,r.Type)((()=>h)),o("design:type",h)],I.prototype,"metaData",void 0),n([(0,a.IsOptional)(),o("design:type",Boolean)],I.prototype,"isDraft",void 0),n([(0,a.IsOptional)(),o("design:type",Number)],I.prototype,"pageNo",void 0),t.VehicleCreateDTO=I;class m{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(m,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsArray)(),(0,a.IsString)({each:!0}),o("design:type",Array)],m.prototype,"data",void 0),n([(0,a.IsOptional)(),(0,a.IsBoolean)(),o("design:type",Boolean)],m.prototype,"replace",void 0),n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),(0,r.Transform)((({value:e})=>Array.isArray(e)?e:[e])),o("design:type",Object)],m.prototype,"filter",void 0),t.VehicleFeaturesUpdateDTO=m;class O extends s.BaseUpdateDTO{validate(){const e=(0,a.validateSync)(this),t=[];return void 0===this.warrantyYears&&void 0===this.warrantyKm||this.warrantyYears||this.warrantyKm||t.push("Either warranty years or warranty kilometers must be provided"),void 0===this.serviceContractYears&&void 0===this.serviceContractKm||this.serviceContractYears||this.serviceContractKm||t.push("Either service contract years or service contract kilometers must be provided"),[...e.map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat(),...t]}static fromPlain(e){return(0,r.plainToClass)(O,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"title",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>p.DynamicMakeDTO)),o("design:type",p.DynamicMakeDTO)],O.prototype,"make",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>l.DynamicModelDTO)),o("design:type",l.DynamicModelDTO)],O.prototype,"model",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>d.DynamicVehicleBodyTypeDTO)),o("design:type",d.DynamicVehicleBodyTypeDTO)],O.prototype,"bodyType",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"vin",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"chassisNumber",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"trim",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"mileage",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"fuelType",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"color",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"engineCapacity",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"numberOfCylinders",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"evRange",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"cylinderCapacity",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"doors",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"seats",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"keys",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),(0,a.IsOptional)(),o("design:type",Number)],O.prototype,"odometer",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"wheelsType",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"airbags",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"transmission",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"driveType",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"emissions",void 0),n([(0,a.IsOptional)(),(0,a.IsEnum)(g.VehicleWarrantyYearType),o("design:type",String)],O.prototype,"warrantyYears",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"warrantyKm",void 0),n([(0,a.IsOptional)(),(0,a.IsEnum)(g.VehicleWarrantyYearType),o("design:type",String)],O.prototype,"serviceContractYears",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"serviceContractKm",void 0),n([(0,a.IsOptional)(),(0,a.IsArray)(),(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>y.VehicleMediaUpdateDTO)),o("design:type",y.VehicleMediaUpdateDTO)],O.prototype,"media",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"year",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],O.prototype,"price",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],O.prototype,"status",void 0),n([(0,a.IsOptional)(),o("design:type",Boolean)],O.prototype,"isDraft",void 0),n([(0,a.IsOptional)(),o("design:type",Number)],O.prototype,"pageNo",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>m)),o("design:type",m)],O.prototype,"features",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>h)),o("design:type",h)],O.prototype,"metaData",void 0),t.VehicleUpdateDTO=O;class f{validate(){if(!this.existingId&&!this.new)throw new Error("Either an existing vehicle or new vehicle details must be provided.")}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],f.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>I)),(0,a.IsOptional)(),o("design:type",I)],f.prototype,"new",void 0),t.DynamicVehicleDTO=f},6325:e=>{e.exports=require("class-validator")},7844:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetSimilarVehiclesDTO=void 0;class i{static fromPlain(e){const t=new i;return t.vehicleId=e.vehicleId,t.priceRangePercentage=e.priceRange,t.limit=e.limit,t.options=e.options,t.makeId=e.makeId,t.modelId=e.modelId,t}validate(){const e=[];return this.vehicleId||e.push("Vehicle ID is required"),void 0!==this.priceRangePercentage&&(isNaN(this.priceRangePercentage)||this.priceRangePercentage<0||this.priceRangePercentage>100)&&e.push("Price range percentage must be a positive number between 0 and 100"),void 0!==this.mileageRange&&(isNaN(this.mileageRange)||this.mileageRange<0)&&e.push("Mileage range must be a positive number"),void 0!==this.yearRange&&(isNaN(this.yearRange)||this.yearRange<0)&&e.push("Year range must be a positive number"),void 0!==this.limit&&(isNaN(this.limit)||this.limit<1)&&e.push("Limit must be a positive number"),e}}t.GetSimilarVehiclesDTO=i},8047:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleMake=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleMake=o},8551:(e,t)=>{var i,n,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleRegionSpec=t.VehicleWarrantyYearType=t.VehicleStatusType=t.VehicleMediaType=void 0,(a=t.VehicleMediaType||(t.VehicleMediaType={})).IMAGE="image",a.VIDEO="video",(o=t.VehicleStatusType||(t.VehicleStatusType={})).RESERVED="Reserved",o.DRAFT="Draft",o.PUBLISHED="Published",o.SELF_RESERVED="Self-Reserved",o.SOLD="Sold",o.UNPUBLISHED="Unpublished",(n=t.VehicleWarrantyYearType||(t.VehicleWarrantyYearType={})).NOT_AVAILABLE="Not Available",n.ONE_YEAR="1 Year",n.TWO_YEARS="2 Years",n.THREE_YEARS="3 Years",n.FOUR_YEARS="4 Years",n.FIVE_YEARS="5 Years",n.SIX_YEARS="6 Years",n.SEVEN_YEARS="7 Years",n.EIGHT_YEARS="8 Years",n.NINE_YEARS="9 Years",n.TEN_YEARS="10 Years",n.ELEVEN_YEARS="11 Years",n.TWELVE_YEARS="12 Years",n.THIRTEEN_YEARS="13 Years",n.FOURTEEN_YEARS="14 Years",n.FIFTEEN_YEARS="15 Years",(i=t.VehicleRegionSpec||(t.VehicleRegionSpec={})).GCC_SPECS="GCC specs",i.CHINESE_SPECS="Chinese specs",i.EUROPEAN_SPECS="European specs",i.JAPANESE_SPECS="Japanese specs",i.USA_SPECS="USA specs",i.IMPORTED_SPECS="Imported",i.OTHER_SPECS="Other specs"},9421:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleOrderUpdateDTO=t.VehicleOrderCreateDTO=t.VehicleOrderGetDTO=void 0;const a=i(6325),r=i(284);class s{static fromEntity(e){return(0,r.plainToClass)(s,e)}toPlain(){return(0,r.classToPlain)(this)}}n([(0,a.IsString)(),o("design:type",String)],s.prototype,"id",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"userId",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"vehicleId",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"paymentId",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],s.prototype,"orderAmount",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"reservationComment",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"cancellationComment",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"status",void 0),t.VehicleOrderGetDTO=s;class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}}n([(0,a.IsString)(),o("design:type",String)],p.prototype,"userId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"vehicleId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"paymentId",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"orderAmount",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"reservationComment",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"cancellationComment",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"status",void 0),t.VehicleOrderCreateDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"userId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vehicleId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"paymentId",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"orderAmount",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"reservationComment",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"cancellationComment",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"status",void 0),t.VehicleOrderUpdateDTO=l},9445:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicMakeDTO=t.VehicleMakeUpdateDTO=t.VehicleMakeCreateDTO=t.VehicleMakeGetUniqueDTO=t.VehicleMakeGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleMakeGetDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleMakeGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsNotEmpty)(),(0,a.IsDefined)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],d.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"image",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"description",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"metaTitle",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"metaDescription",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"metaKeywords",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],d.prototype,"promoted",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],d.prototype,"showInFooter",void 0),t.VehicleMakeCreateDTO=d;class y extends s.BaseUpdateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],y.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"image",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"description",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"metaTitle",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"metaDescription",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"metaKeywords",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],y.prototype,"promoted",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],y.prototype,"showInFooter",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],y.prototype,"isActive",void 0),t.VehicleMakeUpdateDTO=y;class c{validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>d)),(0,a.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicMakeDTO=c}},t={},i=function i(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,i),a.exports}(3448);module.exports=i})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e,E,S,a,s,r={};e=r,Object.defineProperty(e,"__esModule",{value:!0}),e.VehicleRegionSpec=e.VehicleWarrantyYearType=e.VehicleStatusType=e.VehicleMediaType=void 0,(s=e.VehicleMediaType||(e.VehicleMediaType={})).IMAGE="image",s.VIDEO="video",(a=e.VehicleStatusType||(e.VehicleStatusType={})).RESERVED="Reserved",a.DRAFT="Draft",a.PUBLISHED="Published",a.SELF_RESERVED="Self-Reserved",a.SOLD="Sold",a.UNPUBLISHED="Unpublished",(S=e.VehicleWarrantyYearType||(e.VehicleWarrantyYearType={})).NOT_AVAILABLE="Not Available",S.ONE_YEAR="1 Year",S.TWO_YEARS="2 Years",S.THREE_YEARS="3 Years",S.FOUR_YEARS="4 Years",S.FIVE_YEARS="5 Years",S.SIX_YEARS="6 Years",S.SEVEN_YEARS="7 Years",S.EIGHT_YEARS="8 Years",S.NINE_YEARS="9 Years",S.TEN_YEARS="10 Years",S.ELEVEN_YEARS="11 Years",S.TWELVE_YEARS="12 Years",S.THIRTEEN_YEARS="13 Years",S.FOURTEEN_YEARS="14 Years",S.FIFTEEN_YEARS="15 Years",(E=e.VehicleRegionSpec||(e.VehicleRegionSpec={})).GCC_SPECS="GCC specs",E.CHINESE_SPECS="Chinese specs",E.EUROPEAN_SPECS="European specs",E.JAPANESE_SPECS="Japanese specs",E.USA_SPECS="USA specs",E.IMPORTED_SPECS="Imported",E.OTHER_SPECS="Other specs",module.exports=r})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={167:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleCategoryDTO=t.VehicleCategoryUpdateDTO=t.VehicleCategoryCreateDTO=t.VehicleCategoryGetUniqueDTO=t.VehicleCategoryGetDTO=void 0;const a=i(284),r=i(6325),s=i(1746);class p{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(p,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleCategoryGetDTO=p;class l{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(l,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleCategoryGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(d,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsString)(),(0,r.IsNotEmpty)(),(0,r.IsDefined)(),(0,r.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],d.prototype,"name",void 0),t.VehicleCategoryCreateDTO=d;class y extends s.BaseUpdateDTO{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsString)(),(0,r.IsOptional)(),(0,r.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],y.prototype,"name",void 0),t.VehicleCategoryUpdateDTO=y;class c{constructor(e){this.existingId=e.existingId,this.new=e.new}validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,a.plainToClass)(c,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsString)(),(0,r.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,r.ValidateNested)(),(0,a.Type)((()=>d)),(0,r.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicVehicleCategoryDTO=c},284:e=>{e.exports=require("class-transformer")},523:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleFeatureCategory=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleFeatureCategory=o},1179:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleFinanceUpdateDTO=t.VehicleFinanceCreateDTO=t.VehicleFinanceGetDTO=void 0;const a=i(6325),r=i(284);class s{static fromEntity(e){return(0,r.plainToClass)(s,e)}toPlain(){return(0,r.instanceToPlain)(this)}}t.VehicleFinanceGetDTO=s;class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}toPlain(){return(0,r.instanceToPlain)(this)}}n([(0,a.IsString)(),o("design:type",String)],p.prototype,"vehicleId",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"price",void 0),n([(0,a.IsNumber)(),(0,a.IsOptional)(),o("design:type",Number)],p.prototype,"droppedPrice",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"interestPercentage",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"monthlyInstallment",void 0),n([(0,a.IsNumber)(),(0,a.IsOptional)(),o("design:type",Number)],p.prototype,"droppedMonthlyInstallment",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"financingYear",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"interestPerYear",void 0),n([(0,a.IsNumber)(),(0,a.IsOptional)(),o("design:type",Number)],p.prototype,"droppedInterestPerYear",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"totalReductionAmount",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"reductionDuration",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"durationShow",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"vehiclePriceType",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"reductionInterval",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"minimumBidAmount",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"initialDepositAmount",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"vatInclusive",void 0),t.VehicleFinanceCreateDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}toPlain(){return(0,r.instanceToPlain)(this)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vehicleId",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"price",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"droppedPrice",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"interestPercentage",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"monthlyInstallment",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"droppedMonthlyInstallment",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"financingYear",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"interestPerYear",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"droppedInterestPerYear",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vehiclePriceType",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vatInclusive",void 0),t.VehicleFinanceUpdateDTO=l},1746:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseDeleteDTO=t.BaseUpdateDTO=t.BaseCreateDTO=void 0;const a=i(6325);class r{}n([(0,a.IsNotEmpty)(),o("design:type",String)],r.prototype,"createdById",void 0),t.BaseCreateDTO=r;class s{}n([(0,a.IsNotEmpty)(),o("design:type",String)],s.prototype,"updatedById",void 0),t.BaseUpdateDTO=s;class p{}n([(0,a.IsNotEmpty)(),o("design:type",String)],p.prototype,"deletedById",void 0),t.BaseDeleteDTO=p},1841:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleMedia=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleMedia=o},2090:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateUserFavoritesDTO=t.VehicleFavoriteCreateDTO=void 0;const a=i(284),r=i(6325);class s{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(s,e)}toPlain(){return(0,a.instanceToPlain)(this)}}n([(0,r.IsString)(),(0,r.IsUUID)(),o("design:type",String)],s.prototype,"userId",void 0),n([(0,r.IsString)({each:!0}),(0,r.IsUUID)(void 0,{each:!0}),o("design:type",Object)],s.prototype,"vehicleIds",void 0),t.VehicleFavoriteCreateDTO=s;class p{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(p,e)}toPlain(){return(0,a.instanceToPlain)(this)}}n([(0,r.IsString)(),(0,r.IsUUID)(),o("design:type",String)],p.prototype,"userId",void 0),n([(0,r.IsUUID)(void 0,{each:!0}),(0,a.Transform)((({value:e})=>Array.isArray(e)?e:[e])),o("design:type",Object)],p.prototype,"favoriteVehicles",void 0),t.UpdateUserFavoritesDTO=p},2433:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.PaymentUpdateDTO=t.PaymentCreateDTO=t.PaymentGetDTO=void 0;const a=i(6325),r=i(284);class s{static fromEntity(e){return(0,r.plainToClass)(s,e)}toPlain(){return(0,r.classToPlain)(this)}}t.PaymentGetDTO=s;class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}}n([(0,a.IsString)(),o("design:type",String)],p.prototype,"userId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"requestId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"vehicleId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"transactionId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"paymentStatus",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"paymentResponse",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"amountPaid",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"tokenId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"state",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"failureReason",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"failureCode",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"accountId",void 0),n([(0,a.IsDate)(),o("design:type",Date)],p.prototype,"paymentDate",void 0),t.PaymentCreateDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"userId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"requestId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vehicleId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"transactionId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"paymentStatus",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"paymentResponse",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"amountPaid",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"tokenId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"state",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"failureReason",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"failureCode",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"accountId",void 0),n([(0,a.IsOptional)(),(0,a.IsDate)(),o("design:type",Date)],l.prototype,"paymentDate",void 0),t.PaymentUpdateDTO=l},2446:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),o(i(2490),t),o(i(3404),t)},2463:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},2490:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.formatImageUrl=t.TypedOptions=t.TypedFilter=t.BaseFilter=t.NumberRange=t.DateFilter=t.PaginationOptions=t.IsDateOrConvertible=t.createFieldPath=void 0;const a=i(6325),r=i(284);function s(e){return function(t,i){(0,a.registerDecorator)({name:"isDateOrConvertible",target:t.constructor,propertyName:i,options:e,validator:{validate:(e,t)=>e instanceof Date||"string"==typeof e||"number"==typeof e,defaultMessage:e=>`${e.property} must be a Date, string, or number`}})}}t.createFieldPath=e=>e,t.IsDateOrConvertible=s;class p{}n([(0,a.IsOptional)(),(0,a.IsNumber)(),(0,a.Max)(100),o("design:type",Number)],p.prototype,"limit",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"page",void 0),t.PaginationOptions=p;class l{}n([(0,a.IsOptional)(),(0,a.Validate)(s),o("design:type",Object)],l.prototype,"from",void 0),n([(0,a.IsOptional)(),(0,a.Validate)(s),o("design:type",Object)],l.prototype,"to",void 0),t.DateFilter=l;class d{}n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],d.prototype,"min",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],d.prototype,"max",void 0),t.NumberRange=d;class y{}n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Object)],y.prototype,"id",void 0),n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Object)],y.prototype,"createdBy",void 0),n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Object)],y.prototype,"updatedBy",void 0),n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Object)],y.prototype,"deletedBy",void 0),n([(0,a.IsOptional)(),(0,a.IsBoolean)(),o("design:type",Boolean)],y.prototype,"isDeleted",void 0),n([(0,a.IsOptional)(),(0,a.IsBoolean)(),o("design:type",Boolean)],y.prototype,"isActive",void 0),n([(0,a.IsOptional)(),(0,a.Validate)(l),o("design:type",l)],y.prototype,"createdAt",void 0),n([(0,a.IsOptional)(),(0,a.Validate)(l),o("design:type",l)],y.prototype,"updatedAt",void 0),n([(0,a.IsOptional)(),(0,a.Validate)(l),o("design:type",l)],y.prototype,"deletedAt",void 0),t.BaseFilter=y,t.TypedFilter=class extends y{};class c extends p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.TypedOptions=c,t.formatImageUrl=function(e){return e?function(e){try{return new URL(e),!0}catch{return!1}}(e)||e.startsWith("data:")||e.startsWith("/assets")?e:`${process.env.NEXT_PUBLIC_S3_URL}${e.startsWith("/")?e:`/${e}`}`:null}},2641:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleInspectionDTO=t.ElectricalsInspectionDTO=t.EngineInspectionDTO=t.InteriorInspectionDTO=t.SteeringAndSuspensionInspectionDTO=t.TyresInspectionDTO=t.ExteriorInspectionDTO=t.BaseInspectionDTO=t.InspectionPointDTO=t.InspectionStatus=void 0;const a=i(6325),r=i(284),s=i(6325);var p;!function(e){e.PERFECT="Perfect",e.IMPERFECTIONS="Imperfections",e.NOT_APPLICABLE="Not Applicable"}(p=t.InspectionStatus||(t.InspectionStatus={}));class l{constructor(e=p.PERFECT){this.status=e}}n([(0,s.IsEnum)(p),o("design:type",String)],l.prototype,"status",void 0),n([(0,s.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"imperfections",void 0),t.InspectionPointDTO=l;class d{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(this,e)}toPlain(){return(0,r.instanceToPlain)(this)}}n([(0,s.IsOptional)(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",Array)],d.prototype,"validate",null),t.BaseInspectionDTO=d;class y extends d{constructor(){super(),this.hood=new l(p.PERFECT),this.roof=new l(p.PERFECT),this.trunk=new l(p.PERFECT),this.frontLeftDoor=new l(p.PERFECT),this.frontRightDoor=new l(p.PERFECT),this.rearLeftDoor=new l(p.PERFECT),this.rearRightDoor=new l(p.PERFECT),this.frontBumper=new l(p.PERFECT),this.rearBumper=new l(p.PERFECT),this.leftFender=new l(p.PERFECT),this.rightFender=new l(p.PERFECT),this.leftQuarterPanel=new l(p.PERFECT),this.rightQuarterPanel=new l(p.PERFECT),this.leftAPillar=new l(p.PERFECT),this.rightAPillar=new l(p.PERFECT),this.leftAtoBPillarBeading=new l(p.PERFECT),this.rightAtoBPillarBeading=new l(p.PERFECT),this.leftBPillarTrim=new l(p.PERFECT),this.rightBtoCPillarBeading=new l(p.PERFECT),this.leftRunningBoard=new l(p.PERFECT),this.rightRunningBoard=new l(p.PERFECT),this.frontWindshield=new l(p.PERFECT),this.rearWindshield=new l(p.PERFECT),this.chassisCondition=new l(p.PERFECT),this.apron=new l(p.PERFECT),this.bootFloor=new l(p.PERFECT),this.firewallCondition=new l(p.PERFECT),this.leftFrontAlloyRim=new l(p.PERFECT),this.leftRearAlloyRim=new l(p.PERFECT),this.rightFrontAlloyRim=new l(p.PERFECT),this.rightRearAlloyRim=new l(p.PERFECT),this.spareAlloyRimCondition=new l(p.PERFECT),this.wheelCover=new l(p.PERFECT),this.grillCondition=new l(p.PERFECT),this.windowGlass=new l(p.PERFECT),this.wiper=new l(p.PERFECT),this.panelCondition=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"frontLeftDoor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"frontRightDoor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rearLeftDoor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rearRightDoor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftFender",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightFender",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"frontBumper",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rearBumper",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"hood",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"trunk",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"roof",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftQuarterPanel",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightQuarterPanel",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftAPillar",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightAPillar",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftAtoBPillarBeading",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightAtoBPillarBeading",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftBPillarTrim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightBtoCPillarBeading",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftRunningBoard",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightRunningBoard",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"frontWindshield",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rearWindshield",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"chassisCondition",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"apron",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"bootFloor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"firewallCondition",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftFrontAlloyRim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"leftRearAlloyRim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightFrontAlloyRim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"rightRearAlloyRim",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"spareAlloyRimCondition",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"wheelCover",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"grillCondition",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"windowGlass",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"wiper",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],y.prototype,"panelCondition",void 0),t.ExteriorInspectionDTO=y;class c extends d{constructor(){super(),this.leftFrontTyre=new l(p.PERFECT),this.rightFrontTyre=new l(p.PERFECT),this.leftRearTyre=new l(p.PERFECT),this.rightRearTyre=new l(p.PERFECT),this.spareTyre=new l(p.PERFECT),this.leftFrontTyreLife=100,this.rightFrontTyreLife=100,this.leftRearTyreLife=100,this.rightRearTyreLife=100,this.spareTyreLife=100}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"leftFrontTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"leftFrontTyreLife",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"rightFrontTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"rightFrontTyreLife",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"leftRearTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"leftRearTyreLife",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"rightRearTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"rightRearTyreLife",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],c.prototype,"spareTyre",void 0),n([(0,a.IsNumber)(),(0,a.Min)(0),(0,a.Max)(100),o("design:type",Number)],c.prototype,"spareTyreLife",void 0),t.TyresInspectionDTO=c;class g extends d{constructor(){super(),this.steeringWheel=new l(p.PERFECT),this.parkingBrake=new l(p.PERFECT),this.brakeMasterCylinder=new l(p.PERFECT),this.brakeDiscAndPad=new l(p.PERFECT),this.brakeFluid=new l(p.PERFECT),this.shockAbsorbers=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"steeringWheel",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"parkingBrake",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"brakeMasterCylinder",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"brakeDiscAndPad",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"brakeFluid",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],g.prototype,"shockAbsorbers",void 0),t.SteeringAndSuspensionInspectionDTO=g;class u extends d{constructor(){super(),this.dashboard=new l(p.PERFECT),this.centralConsole=new l(p.PERFECT),this.gloveBox=new l(p.PERFECT),this.sunvisor=new l(p.PERFECT),this.seatUpholstery=new l(p.PERFECT),this.carpets=new l(p.PERFECT),this.headliner=new l(p.PERFECT),this.manualSeatMovement=new l(p.PERFECT),this.seatBelts=new l(p.PERFECT),this.headRest=new l(p.PERFECT),this.doorControls=new l(p.PERFECT),this.grabHandle=new l(p.PERFECT),this.rearViewMirror=new l(p.PERFECT),this.toolKit=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"dashboard",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"centralConsole",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"gloveBox",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"sunvisor",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"seatUpholstery",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"carpets",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"headliner",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"manualSeatMovement",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"seatBelts",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"headRest",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"doorControls",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"grabHandle",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"rearViewMirror",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],u.prototype,"toolKit",void 0),t.InteriorInspectionDTO=u;class v extends d{constructor(){super(),this.engineBody=new l(p.PERFECT),this.enginePerformance=new l(p.PERFECT),this.engineOil=new l(p.PERFECT),this.exhaustSystem=new l(p.PERFECT),this.radiator=new l(p.PERFECT),this.coolant=new l(p.PERFECT),this.fuelTank=new l(p.PERFECT),this.gearShifting=new l(p.PERFECT),this.driveAxle=new l(p.PERFECT),this.transmissionFluid=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"engineBody",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"enginePerformance",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"engineOil",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"exhaustSystem",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"radiator",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"coolant",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"fuelTank",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"gearShifting",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"driveAxle",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],v.prototype,"transmissionFluid",void 0),t.EngineInspectionDTO=v;class h extends d{constructor(){super(),this.masterKey=new l(p.PERFECT),this.spareKey=new l(p.PERFECT),this.childSafetyLocking=new l(p.PERFECT),this.instrumentPanel=new l(p.PERFECT),this.airbags=new l(p.PERFECT),this.controls=new l(p.PERFECT),this.cruiseControl=new l(p.PERFECT),this.infotainmentDisplay=new l(p.PERFECT),this.obdConnector=new l(p.PERFECT),this.musicSystem=new l(p.PERFECT),this.headlight=new l(p.PERFECT),this.interiorLights=new l(p.PERFECT),this.tailLightCluster=new l(p.PERFECT),this.licensePlateLight=new l(p.PERFECT),this.acCooling=new l(p.PERFECT),this.acSwitch=new l(p.PERFECT),this.acLeaks=new l(p.PERFECT),this.centerAcVent=new l(p.PERFECT),this.frontRightAcVent=new l(p.PERFECT),this.heater=new l(p.PERFECT),this.parkingSensors=new l(p.PERFECT),this.rearDefogger=new l(p.PERFECT),this.usbChargingPort=new l(p.PERFECT),this.powerManualWindows=new l(p.PERFECT)}}n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"masterKey",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"spareKey",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"childSafetyLocking",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"instrumentPanel",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"airbags",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"controls",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"cruiseControl",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"infotainmentDisplay",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"obdConnector",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"musicSystem",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"headlight",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"interiorLights",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"tailLightCluster",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"licensePlateLight",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"acCooling",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"acSwitch",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"acLeaks",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"centerAcVent",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"frontRightAcVent",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"heater",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"parkingSensors",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"rearDefogger",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"usbChargingPort",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>l)),o("design:type",l)],h.prototype,"powerManualWindows",void 0),t.ElectricalsInspectionDTO=h;class I{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(I,e)}toPlain(){return(0,r.instanceToPlain)(this)}}n([(0,a.IsString)(),o("design:type",String)],I.prototype,"vehicle",void 0),n([(0,a.IsString)(),(0,s.IsOptional)(),o("design:type",String)],I.prototype,"inspectorId",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>y)),o("design:type",y)],I.prototype,"exterior",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>g)),o("design:type",g)],I.prototype,"steeringAndSuspension",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>u)),o("design:type",u)],I.prototype,"interior",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>v)),o("design:type",v)],I.prototype,"engine",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>h)),o("design:type",h)],I.prototype,"electricals",void 0),n([(0,s.ValidateNested)(),(0,r.Type)((()=>c)),o("design:type",c)],I.prototype,"tyres",void 0),n([(0,s.IsOptional)(),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",Array)],I.prototype,"validate",null),t.VehicleInspectionDTO=I},3008:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleModel=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleModel=o},3358:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),o(i(4136),t),o(i(9347),t),o(i(3742),t),o(i(5613),t),o(i(8177),t),o(i(7717),t),o(i(4259),t),o(i(523),t),o(i(4019),t),o(i(8047),t),o(i(1841),t),o(i(7280),t),o(i(3008),t),o(i(7461),t)},3404:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),o(i(5514),t)},3448:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),o(i(1746),t),o(i(2433),t),o(i(6075),t),o(i(5139),t),o(i(4787),t),o(i(1179),t),o(i(9445),t),o(i(5886),t),o(i(3770),t),o(i(9421),t),o(i(4611),t),o(i(5886),t),o(i(167),t),o(i(2463),t),o(i(2641),t),o(i(3469),t),o(i(7844),t),o(i(2090),t),o(i(5112),t)},3469:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleOptions=t.VehicleUniqueFilter=t.VehicleFilter=t.VehicleCategoryOptions=t.VehicleCategoryUniqueFilter=t.VehicleCategoryFilter=t.VehicleFeatureCategoryOptions=t.VehicleFeatureCategoryUniqueFilter=t.VehicleFeatureCategoryFilter=t.VehicleFeatureOptions=t.VehicleFeatureUniqueFilter=t.VehicleFeatureFilter=t.VehicleBodyTypeOptions=t.VehicleBodyTypeUniqueFilter=t.VehicleBodyTypeFilter=t.VehicleModelOptions=t.VehicleModelUniqueFilter=t.VehicleModelFilter=t.VehicleMakeOptions=t.VehicleMakeUniqueFilter=t.VehicleMakeFilter=void 0;const a=i(284),r=i(6325),s=i(2446);class p extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(p,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],p.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],p.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],p.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",String)],p.prototype,"metaKeywords",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],p.prototype,"models",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],p.prototype,"vehicles",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],p.prototype,"search",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],p.prototype,"promoted",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],p.prototype,"showInFooter",void 0),t.VehicleMakeFilter=p;class l extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(p,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],l.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],l.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],l.prototype,"name",void 0),t.VehicleMakeUniqueFilter=l;class d extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(d,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleMakeOptions=d;class y extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],y.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],y.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],y.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",String)],y.prototype,"metaKeywords",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],y.prototype,"makes",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],y.prototype,"vehicles",void 0),t.VehicleModelFilter=y;class c extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(c,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],c.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],c.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],c.prototype,"name",void 0),t.VehicleModelUniqueFilter=c;class g extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(g,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleModelOptions=g;class u extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],u.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],u.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],u.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],u.prototype,"vehicles",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],u.prototype,"models",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],u.prototype,"search",void 0),t.VehicleBodyTypeFilter=u;class v{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],v.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],v.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],v.prototype,"name",void 0),t.VehicleBodyTypeUniqueFilter=v;class h extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(g,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleBodyTypeOptions=h;class I extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],I.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],I.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],I.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],I.prototype,"categories",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],I.prototype,"search",void 0),t.VehicleFeatureFilter=I;class O{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(y,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],O.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],O.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],O.prototype,"name",void 0),t.VehicleFeatureUniqueFilter=O;class m extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(m,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleFeatureOptions=m;class f extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(f,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],f.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],f.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],f.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],f.prototype,"features",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],f.prototype,"search",void 0),t.VehicleFeatureCategoryFilter=f;class T{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(T,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],T.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],T.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],T.prototype,"name",void 0),t.VehicleFeatureCategoryUniqueFilter=T;class S extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(S,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleFeatureCategoryOptions=S;class b extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(b,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],b.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],b.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],b.prototype,"name",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],b.prototype,"search",void 0),t.VehicleCategoryFilter=b;class P{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(P,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],P.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],P.prototype,"slug",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],P.prototype,"name",void 0),t.VehicleCategoryUniqueFilter=P;class N extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(m,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleCategoryOptions=N;class V extends s.BaseFilter{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(V,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"referenceNumber",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"make",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"model",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"bodyType",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"vin",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"chassisNumber",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"trim",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"mileage",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"fuelType",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"color",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"engineCapacity",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"numberOfCylinders",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"cylinderCapacity",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"doors",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"seats",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"keys",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"wheelsType",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"airbags",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"transmission",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"driveType",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"emissions",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"year",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"price",void 0),n([(0,r.IsOptional)(),(0,r.ValidateNested)(),(0,a.Type)((()=>s.NumberRange)),o("design:type",s.NumberRange)],V.prototype,"emi",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"status",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],V.prototype,"includeReserved",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],V.prototype,"includeUnpublished",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],V.prototype,"includeSelfReserved",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],V.prototype,"includeSold",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],V.prototype,"includeDraft",void 0),n([(0,r.IsOptional)(),(0,r.IsString)({each:!0}),o("design:type",Object)],V.prototype,"features",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],V.prototype,"search",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],V.prototype,"warranty",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],V.prototype,"compareCarId",void 0),n([(0,r.IsOptional)(),(0,r.IsBoolean)(),o("design:type",Boolean)],V.prototype,"specialDeals",void 0),t.VehicleFilter=V;class E{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(E,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],E.prototype,"id",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],E.prototype,"referenceNumber",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],E.prototype,"refId",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],E.prototype,"vin",void 0),n([(0,r.IsOptional)(),(0,r.IsString)(),o("design:type",String)],E.prototype,"chassisNumber",void 0),t.VehicleUniqueFilter=E;class C extends s.PaginationOptions{validate(){return(0,r.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,a.plainToClass)(C,e)}static toPlain(e){return(0,a.instanceToPlain)(e)}}t.VehicleOptions=C},3742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3770:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicModelDTO=t.VehicleModelUpdateDTO=t.VehicleModelCreateDTO=t.VehicleModelGetUniqueDTO=t.VehicleModelGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746),p=i(5613),l=i(8047);class d{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleModelGetDTO=d;class y{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}toPlain(){return(0,r.instanceToPlain)(this)}}t.VehicleModelGetUniqueDTO=y;class c extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsNotEmpty)(),(0,a.IsDefined)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],c.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"image",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"description",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"metaTitle",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"metaDescription",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"metaKeywords",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>l.VehicleMake)),o("design:type",l.VehicleMake)],c.prototype,"make",void 0),n([(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>p.Vehicle)),o("design:type",Array)],c.prototype,"vehicles",void 0),t.VehicleModelCreateDTO=c;class g extends s.BaseUpdateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(g,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],g.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"image",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"description",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"metaTitle",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"metaDescription",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],g.prototype,"metaKeywords",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],g.prototype,"isActive",void 0),t.VehicleModelUpdateDTO=g;class u{validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(u,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],u.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>c)),(0,a.IsOptional)(),o("design:type",c)],u.prototype,"new",void 0),t.DynamicModelDTO=u},4019:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleFinance=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleFinance=o},4136:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseModel=void 0,t.BaseModel=class{}},4259:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleFeature=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleFeature=o},4611:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleBodyTypeDTO=t.VehicleBodyTypeUpdateDTO=t.VehicleBodyTypeCreateDTO=t.VehicleBodyTypeGetUniqueDTO=t.VehicleBodyTypeGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleBodyTypeGetDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleBodyTypeGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),o("design:type",String)],d.prototype,"name",void 0),t.VehicleBodyTypeCreateDTO=d;class y{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],y.prototype,"name",void 0),t.VehicleBodyTypeUpdateDTO=y;class c{validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>d)),(0,a.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicVehicleBodyTypeDTO=c},4787:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleFeatureDTO=t.VehicleFeaturedUpdateDTO=t.VehicleFeaturedCreateDTO=t.VehicleFeaturedGetUniqueDTO=t.VehicleFeaturedGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleFeaturedGetDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleFeaturedGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsNotEmpty)(),(0,a.IsDefined)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],d.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"icon",void 0),t.VehicleFeaturedCreateDTO=d;class y extends s.BaseUpdateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],y.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"icon",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"slug",void 0),t.VehicleFeaturedUpdateDTO=y;class c{validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>d)),(0,a.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicVehicleFeatureDTO=c},5112:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleWarrantyDTO=void 0;const a=i(8551),r=i(6325),s=i(284);class p{constructor(e,t){this.year=e,this.km=t}toString(){return`Until ${this.year} or ${this.km}Kms`}validate(){const e=(0,r.validateSync)(this);return this.year||this.km?e.map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat():["Either year or km must be provided"]}static fromPlain(e){return(0,s.plainToClass)(p,e)}}n([(0,r.IsOptional)(),(0,r.IsEnum)(a.VehicleWarrantyYearType),(0,r.ValidateIf)((e=>void 0===e.km||null===e.km)),o("design:type",String)],p.prototype,"year",void 0),n([(0,r.IsOptional)(),(0,r.IsNumber)(),(0,r.ValidateIf)((e=>void 0===e.year||null===e.year)),o("design:type",Number)],p.prototype,"km",void 0),t.VehicleWarrantyDTO=p},5139:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleFeatureCategoryDTO=t.VehicleFeatureCategoryUpdateDTO=t.VehicleFeatureCategoryCreateDTO=t.VehicleFeatureCategoryGetUniqueDTO=t.VehicleFeatureCategoryGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleFeatureCategoryGetDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleFeatureCategoryGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsNotEmpty)(),(0,a.IsDefined)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],d.prototype,"name",void 0),t.VehicleFeatureCategoryCreateDTO=d;class y extends s.BaseUpdateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],y.prototype,"name",void 0),t.VehicleFeatureCategoryUpdateDTO=y;class c{constructor(e){this.existingId=e.existingId,this.new=e.new}validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>d)),(0,a.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicVehicleFeatureCategoryDTO=c},5514:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseGetDTO=void 0;const n=i(6325),o=i(284);t.BaseGetDTO=class{validate(){return(0,n.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,o.plainToClass)(this,e)}static toPlain(e){return(0,o.instanceToPlain)(e)}}},5613:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleDraft=t.Vehicle=void 0;const n=i(284),o=i(4136);class a extends o.BaseModel{static fromPlain(e){return(0,n.plainToClass)(a,e)}toPlain(){return(0,n.instanceToPlain)(this)}}t.Vehicle=a,t.VehicleDraft=class{}},5886:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleMediaUpdateDTO=t.S3MediaCreateURLDTO=t.VehicleMediaCreateS3UrlDTO=t.VehicleMediaFilterDTO=t.VehicleMediaCreateDTO=void 0;const a=i(6325),r=i(8551),s=i(284);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,s.plainToClass)(p,e)}static toPlain(e){return(0,s.instanceToPlain)(e)}}n([(0,a.IsString)({each:!0}),o("design:type",String)],p.prototype,"vehicleId",void 0),n([(0,a.IsEnum)(r.VehicleMediaType),o("design:type",String)],p.prototype,"mediaType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"mediaUrl",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"placeholder",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],p.prototype,"thumbnailUrl",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"mediaIndex",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsBoolean)(),o("design:type",Boolean)],p.prototype,"isPrimary",void 0),t.VehicleMediaCreateDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,s.plainToClass)(l,e)}}n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"id",void 0),n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"vehicleId",void 0),n([(0,a.IsEnum)(r.VehicleMediaType,{each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"mediaType",void 0),n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"mediaUrl",void 0),n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Object)],l.prototype,"thumbnailUrl",void 0),n([(0,a.IsString)({each:!0}),(0,a.IsOptional)(),o("design:type",Boolean)],l.prototype,"isPrimary",void 0),t.VehicleMediaFilterDTO=l,t.VehicleMediaCreateS3UrlDTO=class{constructor(){}};class d{}n([(0,a.IsString)(),o("design:type",String)],d.prototype,"vehicleId",void 0),n([(0,a.IsString)(),o("design:type",String)],d.prototype,"folder",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsArray)(),o("design:type",Array)],d.prototype,"files",void 0),t.S3MediaCreateURLDTO=d;class y{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,s.plainToClass)(y,e)}static toPlain(e){return(0,s.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsArray)(),(0,a.ValidateNested)({each:!0}),(0,s.Type)((()=>p)),o("design:type",Array)],y.prototype,"data",void 0),n([(0,a.IsOptional)(),(0,a.IsBoolean)(),o("design:type",Boolean)],y.prototype,"replace",void 0),n([(0,a.ValidateNested)(),(0,s.Type)((()=>l)),o("design:type",l)],y.prototype,"filter",void 0),t.VehicleMediaUpdateDTO=y},6075:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicVehicleDTO=t.VehicleUpdateDTO=t.VehicleFeaturesUpdateDTO=t.VehicleCreateDTO=t.VehicleMetaDataDTO=t.VehicleGetUniqueDTO=t.VehicleGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746),p=i(9445),l=i(3770),d=i(4611),y=i(5886),c=i(1179),g=i(8551);class u{constructor(e=!0){e&&(this.validate=(e=!0)=>e?(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat():[])}static fromPlain(e){return(0,r.plainToClass)(u,e)}toPlain(){return(0,r.instanceToPlain)(this)}}t.VehicleGetDTO=u;class v{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(v,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleGetUniqueDTO=v;class h{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(h,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],h.prototype,"metaTitle",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],h.prototype,"metaDescription",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],h.prototype,"metaKeywords",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],h.prototype,"vehicleDescription",void 0),n([(0,a.IsString)(),o("design:type",String)],h.prototype,"vehicleId",void 0),n([(0,a.IsOptional)(),(0,a.IsArray)(),(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>Object)),o("design:type",Object)],h.prototype,"others",void 0),t.VehicleMetaDataDTO=h;class I extends s.BaseCreateDTO{validate(){const e=(0,a.validateSync)(this),t=[];return this.warrantyYears||this.warrantyKm||t.push("Either warranty years or warranty kilometers must be provided"),this.serviceContractYears||this.serviceContractKm||t.push("Either service contract years or service contract kilometers must be provided"),[...e.map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat(),...t]}static fromPlain(e){return(0,r.plainToClass)(I,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"title",void 0),n([(0,a.IsNotEmpty)(),(0,a.ValidateNested)(),(0,r.Type)((()=>p.DynamicMakeDTO)),o("design:type",p.DynamicMakeDTO)],I.prototype,"make",void 0),n([(0,a.IsNotEmpty)(),(0,a.ValidateNested)(),(0,r.Type)((()=>l.DynamicModelDTO)),o("design:type",l.DynamicModelDTO)],I.prototype,"model",void 0),n([(0,a.IsNotEmpty)(),(0,a.ValidateNested)(),(0,r.Type)((()=>d.DynamicVehicleBodyTypeDTO)),o("design:type",d.DynamicVehicleBodyTypeDTO)],I.prototype,"bodyType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"vin",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"vehicleSpec",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"chassisNumber",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"trim",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"mileage",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"odometer",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"fuelType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"color",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"engineCapacity",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"numberOfCylinders",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"evRange",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"cylinderCapacity",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"doors",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"seats",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"keys",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"wheelsType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"airbags",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"transmission",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"driveType",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"emissions",void 0),n([(0,a.IsOptional)(),(0,a.IsEnum)(g.VehicleWarrantyYearType),o("design:type",String)],I.prototype,"warrantyYears",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"warrantyKm",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"warranty",void 0),n([(0,a.IsOptional)(),(0,a.IsEnum)(g.VehicleWarrantyYearType),o("design:type",String)],I.prototype,"serviceContractYears",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"serviceContractKm",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"serviceContract",void 0),n([(0,a.IsArray)(),(0,a.IsOptional)(),(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>y.VehicleMediaCreateDTO)),o("design:type",Array)],I.prototype,"media",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>c.VehicleFinanceCreateDTO)),o("design:type",c.VehicleFinanceCreateDTO)],I.prototype,"finance",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"year",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),o("design:type",Number)],I.prototype,"price",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsString)(),o("design:type",String)],I.prototype,"status",void 0),n([(0,a.IsArray)(),(0,a.IsOptional)(),(0,a.IsString)({each:!0}),o("design:type",Array)],I.prototype,"features",void 0),n([(0,a.ValidateNested)(),(0,a.IsOptional)(),(0,r.Type)((()=>h)),o("design:type",h)],I.prototype,"metaData",void 0),n([(0,a.IsOptional)(),o("design:type",Boolean)],I.prototype,"isDraft",void 0),n([(0,a.IsOptional)(),o("design:type",Number)],I.prototype,"pageNo",void 0),t.VehicleCreateDTO=I;class O{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(O,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsArray)(),(0,a.IsString)({each:!0}),o("design:type",Array)],O.prototype,"data",void 0),n([(0,a.IsOptional)(),(0,a.IsBoolean)(),o("design:type",Boolean)],O.prototype,"replace",void 0),n([(0,a.IsOptional)(),(0,a.IsString)({each:!0}),(0,r.Transform)((({value:e})=>Array.isArray(e)?e:[e])),o("design:type",Object)],O.prototype,"filter",void 0),t.VehicleFeaturesUpdateDTO=O;class m extends s.BaseUpdateDTO{validate(){const e=(0,a.validateSync)(this),t=[];return void 0===this.warrantyYears&&void 0===this.warrantyKm||this.warrantyYears||this.warrantyKm||t.push("Either warranty years or warranty kilometers must be provided"),void 0===this.serviceContractYears&&void 0===this.serviceContractKm||this.serviceContractYears||this.serviceContractKm||t.push("Either service contract years or service contract kilometers must be provided"),[...e.map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat(),...t]}static fromPlain(e){return(0,r.plainToClass)(m,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"title",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>p.DynamicMakeDTO)),o("design:type",p.DynamicMakeDTO)],m.prototype,"make",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>l.DynamicModelDTO)),o("design:type",l.DynamicModelDTO)],m.prototype,"model",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>d.DynamicVehicleBodyTypeDTO)),o("design:type",d.DynamicVehicleBodyTypeDTO)],m.prototype,"bodyType",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"vin",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"chassisNumber",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"trim",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"mileage",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"fuelType",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"color",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"engineCapacity",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"numberOfCylinders",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"evRange",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"cylinderCapacity",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"doors",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"seats",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"keys",void 0),n([(0,a.IsNotEmpty)(),(0,a.IsNumber)(),(0,a.IsOptional)(),o("design:type",Number)],m.prototype,"odometer",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"wheelsType",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"airbags",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"transmission",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"driveType",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"emissions",void 0),n([(0,a.IsOptional)(),(0,a.IsEnum)(g.VehicleWarrantyYearType),o("design:type",String)],m.prototype,"warrantyYears",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"warrantyKm",void 0),n([(0,a.IsOptional)(),(0,a.IsEnum)(g.VehicleWarrantyYearType),o("design:type",String)],m.prototype,"serviceContractYears",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"serviceContractKm",void 0),n([(0,a.IsOptional)(),(0,a.IsArray)(),(0,a.ValidateNested)({each:!0}),(0,r.Type)((()=>y.VehicleMediaUpdateDTO)),o("design:type",y.VehicleMediaUpdateDTO)],m.prototype,"media",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"year",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],m.prototype,"price",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],m.prototype,"status",void 0),n([(0,a.IsOptional)(),o("design:type",Boolean)],m.prototype,"isDraft",void 0),n([(0,a.IsOptional)(),o("design:type",Number)],m.prototype,"pageNo",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>O)),o("design:type",O)],m.prototype,"features",void 0),n([(0,a.IsOptional)(),(0,a.ValidateNested)(),(0,r.Type)((()=>h)),o("design:type",h)],m.prototype,"metaData",void 0),t.VehicleUpdateDTO=m;class f{validate(){if(!this.existingId&&!this.new)throw new Error("Either an existing vehicle or new vehicle details must be provided.")}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],f.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>I)),(0,a.IsOptional)(),o("design:type",I)],f.prototype,"new",void 0),t.DynamicVehicleDTO=f},6325:e=>{e.exports=require("class-validator")},7280:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleMetaData=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleMetaData=o},7461:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleOrder=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleOrder=o},7717:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleCategory=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleCategory=o},7844:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetSimilarVehiclesDTO=void 0;class i{static fromPlain(e){const t=new i;return t.vehicleId=e.vehicleId,t.priceRangePercentage=e.priceRange,t.limit=e.limit,t.options=e.options,t.makeId=e.makeId,t.modelId=e.modelId,t}validate(){const e=[];return this.vehicleId||e.push("Vehicle ID is required"),void 0!==this.priceRangePercentage&&(isNaN(this.priceRangePercentage)||this.priceRangePercentage<0||this.priceRangePercentage>100)&&e.push("Price range percentage must be a positive number between 0 and 100"),void 0!==this.mileageRange&&(isNaN(this.mileageRange)||this.mileageRange<0)&&e.push("Mileage range must be a positive number"),void 0!==this.yearRange&&(isNaN(this.yearRange)||this.yearRange<0)&&e.push("Year range must be a positive number"),void 0!==this.limit&&(isNaN(this.limit)||this.limit<1)&&e.push("Limit must be a positive number"),e}}t.GetSimilarVehiclesDTO=i},8047:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleMake=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleMake=o},8177:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleBodyType=void 0;const n=i(4136);class o extends n.BaseModel{}t.VehicleBodyType=o},8474:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),o(i(3448),t),o(i(8551),t),o(i(3358),t)},8551:(e,t)=>{var i,n,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleRegionSpec=t.VehicleWarrantyYearType=t.VehicleStatusType=t.VehicleMediaType=void 0,(a=t.VehicleMediaType||(t.VehicleMediaType={})).IMAGE="image",a.VIDEO="video",(o=t.VehicleStatusType||(t.VehicleStatusType={})).RESERVED="Reserved",o.DRAFT="Draft",o.PUBLISHED="Published",o.SELF_RESERVED="Self-Reserved",o.SOLD="Sold",o.UNPUBLISHED="Unpublished",(n=t.VehicleWarrantyYearType||(t.VehicleWarrantyYearType={})).NOT_AVAILABLE="Not Available",n.ONE_YEAR="1 Year",n.TWO_YEARS="2 Years",n.THREE_YEARS="3 Years",n.FOUR_YEARS="4 Years",n.FIVE_YEARS="5 Years",n.SIX_YEARS="6 Years",n.SEVEN_YEARS="7 Years",n.EIGHT_YEARS="8 Years",n.NINE_YEARS="9 Years",n.TEN_YEARS="10 Years",n.ELEVEN_YEARS="11 Years",n.TWELVE_YEARS="12 Years",n.THIRTEEN_YEARS="13 Years",n.FOURTEEN_YEARS="14 Years",n.FIFTEEN_YEARS="15 Years",(i=t.VehicleRegionSpec||(t.VehicleRegionSpec={})).GCC_SPECS="GCC specs",i.CHINESE_SPECS="Chinese specs",i.EUROPEAN_SPECS="European specs",i.JAPANESE_SPECS="Japanese specs",i.USA_SPECS="USA specs",i.IMPORTED_SPECS="Imported",i.OTHER_SPECS="Other specs"},9347:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Payment=void 0;const n=i(4136);class o extends n.BaseModel{}t.Payment=o},9421:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.VehicleOrderUpdateDTO=t.VehicleOrderCreateDTO=t.VehicleOrderGetDTO=void 0;const a=i(6325),r=i(284);class s{static fromEntity(e){return(0,r.plainToClass)(s,e)}toPlain(){return(0,r.classToPlain)(this)}}n([(0,a.IsString)(),o("design:type",String)],s.prototype,"id",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"userId",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"vehicleId",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"paymentId",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],s.prototype,"orderAmount",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"reservationComment",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"cancellationComment",void 0),n([(0,a.IsString)(),o("design:type",String)],s.prototype,"status",void 0),t.VehicleOrderGetDTO=s;class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}}n([(0,a.IsString)(),o("design:type",String)],p.prototype,"userId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"vehicleId",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"paymentId",void 0),n([(0,a.IsNumber)(),o("design:type",Number)],p.prototype,"orderAmount",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"reservationComment",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"cancellationComment",void 0),n([(0,a.IsString)(),o("design:type",String)],p.prototype,"status",void 0),t.VehicleOrderCreateDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}}n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"userId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"vehicleId",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"paymentId",void 0),n([(0,a.IsOptional)(),(0,a.IsNumber)(),o("design:type",Number)],l.prototype,"orderAmount",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"reservationComment",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"cancellationComment",void 0),n([(0,a.IsOptional)(),(0,a.IsString)(),o("design:type",String)],l.prototype,"status",void 0),t.VehicleOrderUpdateDTO=l},9445:function(e,t,i){var n=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicMakeDTO=t.VehicleMakeUpdateDTO=t.VehicleMakeCreateDTO=t.VehicleMakeGetUniqueDTO=t.VehicleMakeGetDTO=void 0;const a=i(6325),r=i(284),s=i(1746);class p{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(p,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleMakeGetDTO=p;class l{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(l,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}t.VehicleMakeGetUniqueDTO=l;class d extends s.BaseCreateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(d,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsNotEmpty)(),(0,a.IsDefined)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],d.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"image",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"description",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"metaTitle",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"metaDescription",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],d.prototype,"metaKeywords",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],d.prototype,"promoted",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],d.prototype,"showInFooter",void 0),t.VehicleMakeCreateDTO=d;class y extends s.BaseUpdateDTO{validate(){return(0,a.validateSync)(this).map((e=>{var t;return Object.values(null!==(t=e.constraints)&&void 0!==t?t:{})})).flat()}static fromPlain(e){return(0,r.plainToClass)(y,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),(0,a.Matches)(/^[a-zA-Z0-9\s\-\_]*$/,{message:"Name can only contain letters, numbers, spaces, hyphens, and underscores."}),o("design:type",String)],y.prototype,"name",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"image",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"description",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"metaTitle",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"metaDescription",void 0),n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],y.prototype,"metaKeywords",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],y.prototype,"promoted",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],y.prototype,"showInFooter",void 0),n([(0,a.IsBoolean)(),(0,a.IsOptional)(),o("design:type",Boolean)],y.prototype,"isActive",void 0),t.VehicleMakeUpdateDTO=y;class c{validate(){if(!this.existingId&&!this.new)throw new Error("Either existingId or new details must be provided.")}static fromPlain(e){return(0,r.plainToClass)(c,e)}static toPlain(e){return(0,r.instanceToPlain)(e)}}n([(0,a.IsString)(),(0,a.IsOptional)(),o("design:type",String)],c.prototype,"existingId",void 0),n([(0,a.ValidateNested)(),(0,r.Type)((()=>d)),(0,a.IsOptional)(),o("design:type",d)],c.prototype,"new",void 0),t.DynamicMakeDTO=c}},t={},i=function i(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,i),a.exports}(8474);module.exports=i})();