"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _locale = require("../../src/locale");
var _loopData = _interopRequireDefault(require("../_com-props/loopData"));
var _setters = require("../_setters");
var _snippets = _interopRequireDefault(require("./snippets"));
var _componentKey = _interopRequireDefault(require("../_com-props/componentKey"));
var _componentName = _interopRequireDefault(require("../_com-props/componentName"));
var _type = require("../../src/components/carousel-box/type");
var _flowEventConfig = require("../_com-props/flowEventConfig");
var _default = exports["default"] = {
  snippets: _snippets["default"],
  componentName: 'CarouselBox',
  group: (0, _locale.t)('carousel-box.group'),
  title: (0, _locale.t)('carousel-box.title'),
  category: (0, _locale.t)('carousel-box.category'),
  props: [_loopData["default"], _componentKey["default"], _componentName["default"],
  // 模式：卡点轮播 加速轮播 匀速轮播
  {
    name: 'mode',
    title: (0, _locale.t)('carousel-box.mode'),
    setter: [{
      componentName: 'SelectSetter',
      initialValue: _type.Mode.accelerate,
      props: {
        options: [{
          title: (0, _locale.t)('carousel-box.stuckSpot'),
          value: _type.Mode.stuckSpot
        }, {
          title: (0, _locale.t)('carousel-box.accelerate'),
          value: _type.Mode.accelerate
        }, {
          title: (0, _locale.t)('carousel-box.uniform'),
          value: _type.Mode.uniform
        }]
      }
    }]
  },
  //方向 四个方向
  {
    name: 'direction',
    title: (0, _locale.t)('carousel-box.direction'),
    setter: [{
      componentName: 'SelectSetter',
      initialValue: _type.Direction.up,
      props: {
        options: [{
          title: (0, _locale.t)('carousel-box.down'),
          //上向下
          value: _type.Direction.up
        }, {
          title: (0, _locale.t)('carousel-box.up'),
          //下向上
          value: _type.Direction.down
        }, {
          title: (0, _locale.t)('carousel-box.right'),
          //左向右
          value: _type.Direction.left
        }, {
          title: (0, _locale.t)('carousel-box.left'),
          //右向左
          value: _type.Direction.right
        }]
      }
    }]
  },
  //每次动作的间隔时间
  // {
  //   name: 'awaitTime',
  //   title: t(`carousel-box.minAwaitTime`),
  //   setter: [
  //     {
  //       componentName: 'NumberSetter',
  //       initialValue: 1000,
  //       props: {
  //         min: 1,
  //       }
  //     }
  //   ]
  // },
  {
    name: "noWalletConnect",
    title: {
      label: (0, _locale.t)("carousel-box.noWalletConnect"),
      tip: (0, _locale.t)("carousel-box.noWalletConnect")
    },
    propType: "bool",
    setter: "BoolSetter",
    defaultValue: false
  }, {
    name: 'dataSourceConfig',
    title: (0, _locale.t)('carousel-box.dataSourceConfig'),
    display: 'accordion',
    setter: _setters.CLoopDataSetter,
    supportVariable: true
  }, (0, _flowEventConfig.getFlowEventConfig)({
    name: "endFlowEvent",
    label: (0, _locale.t)('carousel-box.endFlowEvent'),
    tip: (0, _locale.t)('carousel-box.endFlowEventTip'),
    props: {}
  })
  // {
  //   name: 'noDataContent',
  //   title: { label: t('carousel-box.noDataContext'), tip: t('carousel-box.noDataContext') },
  //   isRequired: true,
  //   propType: 'string',
  //   setter: 'StringSetter',
  //   defaultValue: () => {
  //     return `No Data`
  //   },
  //   supportVariable: false,
  // },
  // {
  //   name: 'noDataContentBoxStyle',
  //   title: t('carousel-box.noDataContextBoxStyle'),
  //   type: 'group',
  //   extraProps: {
  //     display: 'entry',
  //   },
  //   items: [
  //     {
  //       name: 'noDataContentBoxStyle',
  //       title: {
  //         label: t('carousel-box.noDataContextBoxStyle'),
  //         tip: 'noDataContextBoxStyle | noDataContextBoxStyle',
  //       },
  //       setter: 'CStyleSetter',
  //       extraProps: {
  //         display: 'block',
  //       },
  //     },
  //   ],
  // },
  ],
  configure: {
    component: {
      isContainer: true,
      nestingRule: {
        descendantBlacklist: ['LoopBox'] //TODO：不生效
        // childWhitelist: ['Image', 'LoopBox']
      }
    },
    supports: {
      events: false,
      style: true,
      "loop": false,
      "condition": false
    }
  }
};