var AddAnalysisOptionModel = require('./add-analysis-option-model');

module.exports = function (analysisDefinitionNodeModel) {
  var models = [];

  var areaOfInfluence = _t('components.modals.add-analysis.options.sub-titles.area-of-influence');

  // Buffer
  models.push(
    new AddAnalysisOptionModel({
      title: _t('components.modals.add-analysis.options.buffer.title'),
      desc: _t('components.modals.add-analysis.options.buffer.desc'),
      sub_title: areaOfInfluence,
      node_attrs: {
        type: 'buffer',
        source_id: analysisDefinitionNodeModel.id,
        radio: 123
      }
    })
  );

  // Trade-area
  models.push(
    new AddAnalysisOptionModel({
      title: _t('components.modals.add-analysis.options.trade-area.title'),
      desc: _t('components.modals.add-analysis.options.trade-area.desc'),
      sub_title: areaOfInfluence,
      node_attrs: {
        type: 'trade-area',
        source_id: analysisDefinitionNodeModel.id,
        kind: 'drive',
        time: 300
      }
    })
  );

  return models;
};

var AddAnalysisOptionModel = require('./add-analysis-option-model');

module.exports = function (analysisDefinitionNodeModel) {
  var models = [];

  var areaOfInfluence = _t('components.modals.add-analysis.options.sub-titles.area-of-influence');

  // Buffer
  models.push(
    new AddAnalysisOptionModel({
      title: _t('components.modals.add-analysis.options.buffer.title'),
      desc: _t('components.modals.add-analysis.options.buffer.desc'),
      sub_title: areaOfInfluence,
      node_attrs: {
        type: 'buffer',
        source_id: analysisDefinitionNodeModel.id,
        radio: 300
      }
    })
  );

  // Trade-area
  models.push(
    new AddAnalysisOptionModel({
      title: _t('components.modals.add-analysis.options.trade-area.title'),
      desc: _t('components.modals.add-analysis.options.trade-area.desc'),
      sub_title: areaOfInfluence,
      node_attrs: {
        type: 'trade-area',
        source_id: analysisDefinitionNodeModel.id,
        kind: 'drive',
        time: 300
      }
    })
  );

  return models;
};

Make the buffer radio be big enough to change points visually
Make the buffer radio be big enough to change points visually
