"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _locale = require("../../src/locale");
var _setters = require("../_setters");
var _loopData = _interopRequireDefault(require("../_com-props/loopData"));
var _snippets = _interopRequireDefault(require("./snippets"));
var _type = require("../../src/components/hidden-box/type");
var _default = exports["default"] = {
  snippets: _snippets["default"],
  componentName: 'HiddenBox',
  "group": (0, _locale.t)('hidden-box.key_QNpo3HzzQCyW'),
  title: (0, _locale.t)('hidden-box.key_KFHsRkEOmAS2'),
  category: (0, _locale.t)('hidden-box.key_Lwdy1am1cDdb'),
  props: [_loopData["default"], {
    name: 'conditions',
    title: {
      label: (0, _locale.t)('hidden-box.key_nj82BkPLWUbL'),
      tip: (0, _locale.t)('hidden-box.key_mJy0yPuIUcKi')
    },
    propType: {
      type: 'oneOf',
      value: [_type.hiddenBoxType.show, _type.hiddenBoxType.hidden]
    },
    setter: [{
      componentName: 'SelectSetter',
      props: {
        options: [{
          title: (0, _locale.t)('hidden-box.key_e1goE3zhMOpC'),
          value: _type.hiddenBoxType.show
        }, {
          title: (0, _locale.t)('hidden-box.key_23XgAycbaYhP'),
          value: _type.hiddenBoxType.hidden
        }]
      }
    }],
    supportVariable: false
  }, {
    name: 'hidden',
    title: {
      label: (0, _locale.t)('hidden-box.key_8HlEPvZLagXb'),
      tip: (0, _locale.t)('hidden-box.key_rhRB7tTDWT6p')
    },
    propType: 'string',
    defaultValue: {},
    setter: _setters.CComputedSetter,
    condition: function condition(target) {
      return target.parent.getPropValue('conditions') === _type.hiddenBoxType.hidden;
    }
  }, {
    name: 'show',
    title: {
      label: (0, _locale.t)('hidden-box.key_kM5CZvwLSDZZ'),
      tip: (0, _locale.t)('hidden-box.key_gjb2VlMD7mRc')
    },
    propType: 'string',
    defaultValue: {},
    setter: _setters.CComputedSetter,
    condition: function condition(target) {
      return target.parent.getPropValue('conditions') === _type.hiddenBoxType.show;
    }
  }, {
    name: 'destroyOnClose',
    title: {
      label: (0, _locale.t)('drawer.key_gclwYZgCKC0B'),
      tip: (0, _locale.t)('drawer.key_QMH4LbCBeG3m')
    },
    propType: 'bool',
    defaultValue: true,
    setter: 'BoolSetter'
  }],
  configure: {
    component: {
      isContainer: true
    },
    supports: {
      events: false,
      style: true,
      "loop": false,
      "condition": false
    }
  }
};