const PRICE_SLIDER_OPTIONS_SALE = {
  start: [50000, 85000],
  range: {
    min: [0],
    max: [300000]
  },
  step: 1000,
  connect: true
};
const FLAT_PRICE_SLIDER_OPTIONS_SALE = {
  start: [50000, 150000],
  range: {
    min: [0],
    max: [800000]
  },
  step: 5000,
  connect: true
};
const HOUSE_PRICE_SLIDER_OPTIONS_SALE = {
  start: [50000, 150000],
  range: {
    min: [0],
    max: [1500000]
  },
  step: 10000,
  connect: true
};
const OFFICE_PRICE_SLIDER_OPTIONS_SALE = {
  start: [15000, 50000],
  range: {
    min: [0],
    max: [2000000]
  },
  step: 2000,
  connect: true
};
const LAND_PRICE_SLIDER_OPTIONS_SALE = {
  start: [40000, 80000],
  range: {
    min: [0],
    max: [2000000]
  },
  step: 10000,
  connect: true
};
const PRICE_SLIDER_OPTIONS_RENT = {
  start: [300, 500],
  range: {
    min: [0],
    max: [2000]
  },
  step: 50,
  connect: true
};
const FLAT_PRICE_SLIDER_OPTIONS_RENT = {
  start: [300, 600],
  range: {
    min: [0],
    max: [4000]
  },
  step: 100,
  connect: true
};
const HOUSE_PRICE_SLIDER_OPTIONS_RENT = {
  start: [500, 1000],
  range: {
    min: [0],
    max: [10000]
  },
  step: 100,
  connect: true
};
const OFFICE_PRICE_SLIDER_OPTIONS_RENT = {
  start: [200, 1000],
  range: {
    min: [0],
    max: [20000]
  },
  step: 100,
  connect: true
};
const LAND_PRICE_SLIDER_OPTIONS_RENT = {
  start: [500, 1000],
  range: {
    min: [0],
    max: [20000]
  },
  step: 100,
  connect: true
};
//This will be used for Flats, Apartments, Houses
const HOME_SIZE_SLIDER_OPTIONS = {
  start: [30, 75],
  range: {
    min: [0],
    max: [500]
  },
  step: 5,
  connect: true
};

const OFFICE_SIZE_SLIDER_OPTIONS = {
  start: [30, 150],
  range: {
    min: [0],
    max: [1200]
  },
  step: 10,
  connect: true
};
const GARDEN_SIZE_SLIDER_OPTIONS = {
  start: [100, 1000],
  range: {
    min: [0],
    max: [10000]
  },
  step: 100,
  connect: true
};

const LAND_SIZE_SLIDER_OPTIONS = {
  start: [5000, 15000],
  range: {
    min: [0],
    max: [100000]
  },
  step: 100,
  connect: true
};
const GARAGE_SIZE_SLIDER_OPTIONS = {
  start: [10, 20],
  range: {
    min: [0],
    max: [150]
  },
  step: 2,
  connect: true
};

const GARAGE_PRICE_SLIDER_OPTIONS_SALE = {
  start: [2000, 10000],
  range: {
    min: [0],
    max: [60000]
  },
  step: 200,
  connect: true
};

const GARAGE_PRICE_SLIDER_OPTIONS_RENT = {
  start: [50, 150],
  range: {
    min: [0],
    max: [1000]
  },
  step: 10,
  connect: true
};

const AD_TYPE = {
  AD_TYPE_SALE: {
    id: 1,
    stringId: "SALE",
    title: "Kupi"
  },
  AD_TYPE_RENT: {
    id: 2,
    stringId: "RENT",
    title: "Unajmi"
  },
  AD_TYPE_REQUEST: {
    id: 3,
    stringId: "REQUEST",
    title: "Potražnja"
  }
};

const AD_CATEGORY = {
  ALL: {
    id: "ALL"
  },
  FLAT: {
    id: "FLAT",
    title: "Stan",
    hasGardenSize: false,
    hasAccesRoadType: true,
    hasBalconyProp: true,
    hasNewBuildingProp: true,
    hasElevatorProp: true,
    hasNumberOfRoom: true,
    hasNumberOfFloors: false,
    hasFloorProp: true,
    priceSliderOptionsSale: FLAT_PRICE_SLIDER_OPTIONS_SALE,
    priceSliderOptionsRent: FLAT_PRICE_SLIDER_OPTIONS_RENT,
    sizeSliderOptions: HOME_SIZE_SLIDER_OPTIONS
  },
  HOUSE: {
    id: "HOUSE",
    title: "Kuća",
    hasGardenSize: true,
    hasAccesRoadType: true,
    hasBalconyProp: true,
    hasNewBuildingProp: true,
    hasElevatorProp: false,
    hasNumberOfRoom: true,
    hasNumberOfFloors: true,
    hasFloorProp: false,
    priceSliderOptionsSale: HOUSE_PRICE_SLIDER_OPTIONS_SALE,
    priceSliderOptionsRent: HOUSE_PRICE_SLIDER_OPTIONS_RENT,
    sizeSliderOptions: HOME_SIZE_SLIDER_OPTIONS,
    gardenSizeSliderOptions: GARDEN_SIZE_SLIDER_OPTIONS
  },
  OFFICE: {
    id: "OFFICE",
    title: "Kancelarija",
    hasGardenSize: false,
    hasAccesRoadType: true,
    hasBalconyProp: false,
    hasNewBuildingProp: true,
    hasElevatorProp: true,
    hasNumberOfRoom: true,
    hasNumberOfFloors: false,
    hasFloorProp: true,
    priceSliderOptionsSale: OFFICE_PRICE_SLIDER_OPTIONS_SALE,
    priceSliderOptionsRent: OFFICE_PRICE_SLIDER_OPTIONS_RENT,
    sizeSliderOptions: OFFICE_SIZE_SLIDER_OPTIONS
  },
  LAND: {
    id: "LAND",
    title: "Zemljište",
    hasGardenSize: false,
    hasAccesRoadType: true,
    hasBalconyProp: false,
    hasNewBuildingProp: false,
    hasElevatorProp: false,
    hasNumberOfRoom: false,
    hasNumberOfFloors: false,
    hasFloorProp: false,
    priceSliderOptionsSale: LAND_PRICE_SLIDER_OPTIONS_SALE,
    priceSliderOptionsRent: LAND_PRICE_SLIDER_OPTIONS_RENT,
    sizeSliderOptions: LAND_SIZE_SLIDER_OPTIONS
  },
  APARTMENT: {
    id: "APARTMENT",
    title: "Apartman",
    hasGardenSize: false,
    hasAccesRoadType: true,
    hasBalconyProp: true,
    hasNewBuildingProp: true,
    hasElevatorProp: true,
    hasNumberOfRoom: true,
    hasNumberOfFloors: false,
    hasFloorProp: true,
    priceSliderOptionsSale: FLAT_PRICE_SLIDER_OPTIONS_SALE,
    priceSliderOptionsRent: FLAT_PRICE_SLIDER_OPTIONS_RENT,
    sizeSliderOptions: HOME_SIZE_SLIDER_OPTIONS
  },
  GARAGE: {
    id: "GARAGE",
    title: "Garaža",
    hasGardenSize: false,
    hasAccesRoadType: true,
    hasBalconyProp: false,
    hasNewBuildingProp: false,
    hasElevatorProp: false,
    hasNumberOfRoom: false,
    hasNumberOfFloors: false,
    hasFloorProp: false,
    priceSliderOptionsSale: GARAGE_PRICE_SLIDER_OPTIONS_SALE,
    priceSliderOptionsRent: GARAGE_PRICE_SLIDER_OPTIONS_RENT,
    sizeSliderOptions: GARAGE_SIZE_SLIDER_OPTIONS
  },
  COTTAGE: {
    id: "COTTAGE",
    title: "Vikendica",
    hasGardenSize: true,
    hasAccesRoadType: true,
    hasBalconyProp: true,
    hasNewBuildingProp: true,
    hasElevatorProp: false,
    hasNumberOfRoom: true,
    hasNumberOfFloors: true,
    hasFloorProp: false,
    priceSliderOptionsSale: HOUSE_PRICE_SLIDER_OPTIONS_SALE,
    priceSliderOptionsRent: HOUSE_PRICE_SLIDER_OPTIONS_RENT,
    sizeSliderOptions: HOME_SIZE_SLIDER_OPTIONS,
    gardenSizeSliderOptions: GARDEN_SIZE_SLIDER_OPTIONS
  }
};

const AD_STATUS = {
  STATUS_NORMAL: 1,
  STATUS_RESERVED: 2,
  STATUS_SOLD: 3,
  STATUS_DELETED: 4,
  STATUS_URGENT: 5,
  STATUS_DISCOUNTED: 6,
  STATUS_RENTED: 7,
  STATUS_VIP: 8
};

const AD_AGENCY = {
  OLX: "OLX",
  RENTAL: "RENTAL",
  PROSTOR: "PROSTOR",
  AKTIDO: "AKTIDO",
  SALJIC: "SALJIC"
};

const CRAWLER_AD_TYPE = {
  NONE: 0,
  ALL: 1,
  ONLY_SELL: 2,
  ONLY_RENT: 3,
  ONLY_REQUEST: 4
};

const EMAIL_FREQUENCY = {
  ASAP: {
    id: 1,
    stringId: "ASAP",
    title: "Odmah"
  },
  DAILY: {
    id: 2,
    stringId: "DAILY",
    title: "Jednom dnevno"
  }
};

const HEATING_TYPE = {
  ANY: {
    id: "ANY",
    title: "Svi"
  },
  NO_HEATING: {
    id: "NO_HEATING",
    title: "Nije uvedeno"
  },
  ELECTRICITY: {
    id: "ELECTRICITY",
    title: "Struja"
  },
  GAS: {
    id: "GAS",
    title: "Plin"
  },
  WOOD: {
    id: "WOOD",
    title: "Drva"
  },
  CENTRAL_CITY: {
    id: "CENTRAL_CITY",
    title: "Centralno (gradsko)"
  },
  CENTRAL_BOILER: {
    id: "CENTRAL_BOILER",
    title: "Centralno (kotlovnica)"
  },
  CENTRAL_GAS: {
    id: "CENTRAL_GAS",
    title: "Centralno (plin)"
  },
  HEAT_PUMP: {
    id: "HEAT_PUMP",
    title: "Toplotna pumpa"
  },
  OTHER: {
    id: "OTHER",
    title: "Drugo"
  }
};

const ACCESS_ROAD_TYPE = {
  ANY: {
    id: "ANY",
    title: "Svi"
  },
  ASPHALT: {
    id: "ASPHALT",
    title: "Asfalt"
  },
  CONCRETE: {
    id: "CONCRETE",
    title: "Beton"
  },
  MACADAM: {
    id: "MACADAM",
    title: "Makadam"
  },
  OTHER: {
    id: "OTHER",
    title: "Drugo"
  }
};

const FURNISHING_TYPE = {
  NOT_FURNISHED: {
    id: "NOT_FURNISHED",
    title: "Nenamješten"
  },
  HALF_FURNISHED: {
    id: "HALF_FURNISHED",
    title: "Polunamješten"
  },
  FURNISHED: {
    id: "FURNISHED",
    title: "Namješten"
  }
};

module.exports = {
  AD_TYPE,
  AD_CATEGORY,
  AD_STATUS,
  AD_AGENCY,
  CRAWLER_AD_TYPE,
  EMAIL_FREQUENCY,
  HEATING_TYPE,
  ACCESS_ROAD_TYPE,
  FURNISHING_TYPE
};
