"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.default = _default, exports.dataFalcor = void 0;
var _amosTool = require("amos-tool"),
  _panelUid = _interopRequireDefault(require("./panelUid"));

function _interopRequireDefault(e) {
  return e && e.__esModule ? e : {
    default: e
  }
}
var property = {
    firstCol: 0,
    secondCol: 3.5,
    width: 3.5,
    height: 7,
    minW: 3.5,
    maxW: 3.5,
    minH: 7,
    maxH: 7
  },
  dataFalcor = function(r, e) {
    return _amosTool.utils.isArray(e) || (e = [].concat(e)), e.map(function(e) {
      return e[r]
    })
  };

function _default() {
  var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {},
    r = e.existPanelSize,
    a = void 0 === r ? 0 : r,
    r = e.cardOptions,
    r = void 0 === r ? {} : r,
    e = e.panelUID,
    a = a % 2 == 0 ? property.firstCol : property.secondCol,
    e = e || (0, _panelUid.default)();
  return {
    uid: e,
    panelDataGrid: {
      i: e,
      x: a,
      y: 1 / 0,
      w: property.width,
      h: property.height,
      minW: property.minW,
      minH: property.minH,
      maxW: property.maxW,
      maxH: property.maxH,
      draggableHandle: ".triger-panel-darghandle",
      static: !1,
      isResizable: !1,
      isDraggable: !0
    },
    cardOptions: r
  }
}
exports.dataFalcor = dataFalcor;
