'use strict';

var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
var _createClass = require('@babel/runtime/helpers/createClass');
require('./index-7d6992d6.js');
require('@babel/runtime/helpers/slicedToArray');
require('@babel/runtime/helpers/asyncToGenerator');
require('@babel/runtime/helpers/defineProperty');
require('@babel/runtime/regenerator');
require('@babel/runtime/helpers/objectWithoutProperties');
require('@babel/runtime/helpers/toConsumableArray');
require('axios');
require('@crystaldesign/diva-utils');
require('@crystaldesign/basket-model');
require('@crystaldesign/basket-handler');
require('socket.io-client');
require('@babel/runtime/helpers/typeof');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);

//Der in einem Set gemergte Optionsbaum
var StandardWWSHandler = /*#__PURE__*/function () {
  function StandardWWSHandler() {
    _classCallCheck__default["default"](this, StandardWWSHandler);
  }
  return _createClass__default["default"](StandardWWSHandler, [{
    key: "repairWWSFlags",
    value: function repairWWSFlags(articles, orderLines) {
      return orderLines;
    }
  }, {
    key: "getWWSData",
    value: function getWWSData(basket, set, orderSet, orderlines) {
      for (var i = 0; i < orderlines.length; i++) {
        var orderLineItem = orderlines[i];
        if (orderLineItem.DontAddToFinalOrderLine) {
          orderlines.splice(i, 1);
          i--;
        }
      }
      return {
        orderlines: orderlines
      };
    }
  }, {
    key: "getCustomIdsForProductsMatch",
    value: function getCustomIdsForProductsMatch(set) {}
  }]);
}();

exports["default"] = StandardWWSHandler;
