"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _icon = _interopRequireDefault(require("../../src/assets/icon/integral-task/icon1.png"));
var IntegralTaskMeta = {
  componentName: 'IntegralTask',
  group: '低代码组件',
  title: '任务列表',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  category: '信息展示',
  npm: {
    "package": '@dckj-npm/dc-material',
    version: '0.1.13',
    exportName: 'IntegralTask',
    main: 'src\\index.tsx',
    destructuring: true,
    subName: ''
  },
  configure: {
    props: [{
      title: '图标',
      name: 'icon',
      description: '图标',
      setter: {
        componentName: 'StringSetter',
        isRequired: true,
        initialValue: ''
      }
    }, {
      title: '图片',
      name: 'images',
      description: '图片',
      setter: {
        componentName: 'ArraySetter',
        props: {
          itemSetter: 'StringSetter'
        }
      }
    }, {
      title: '未完成文案',
      name: 'undoneLabel',
      description: '未完成文案',
      setter: 'StringSetter'
    }, {
      title: '完成文案',
      name: 'completeLabel',
      description: '完成文案',
      setter: 'StringSetter'
    }, {
      title: {
        label: {
          type: 'i18n',
          'en-US': 'list',
          'zh-CN': '任务名称'
        },
        tip: 'list | 任务名称'
      },
      name: 'list',
      description: '任务名称',
      setter: {
        componentName: 'ArraySetter',
        props: {
          itemSetter: {
            componentName: 'ObjectSetter',
            props: {
              config: {
                items: [{
                  title: {
                    label: {
                      type: 'i18n',
                      'en-US': 'name',
                      'zh-CN': 'name'
                    }
                  },
                  name: 'name',
                  setter: {
                    componentName: 'StringSetter',
                    isRequired: true,
                    initialValue: ''
                  }
                }, {
                  title: {
                    label: {
                      type: 'i18n',
                      'en-US': 'integral',
                      'zh-CN': 'integral'
                    }
                  },
                  name: 'integral',
                  setter: {
                    componentName: 'NumberSetter',
                    isRequired: true,
                    initialValue: 0
                  }
                }, {
                  title: {
                    label: {
                      type: 'i18n',
                      'en-US': 'status',
                      'zh-CN': 'status'
                    }
                  },
                  name: 'status',
                  setter: {
                    componentName: 'NumberSetter',
                    isRequired: true,
                    initialValue: 0
                  }
                }],
                extraSetter: {
                  componentName: 'MixedSetter',
                  isRequired: false,
                  props: {}
                }
              }
            }
          }
        },
        isRequired: true,
        initialValue: []
      }
    }],
    supports: {
      style: true
    },
    component: {
      disableBehaviors: ['copy']
    }
  }
};
var snippets = [{
  title: '任务列表',
  screenshot: '',
  schema: {
    componentName: 'IntegralTask',
    props: {
      list: [{
        name: '标题名称',
        integral: 10,
        status: 0
      }],
      icon: _icon["default"],
      images: ['https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240927/1037148079553384448.png', 'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240927/1037148108544413696.png', 'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240927/1037148142006571008.png', 'https://52pupu.com/source/api/upload/1036284777780613120/2024/202409/20240927/1037148168208388096.png'],
      undoneLabel: '去完成',
      completeLabel: '领取奖励'
    },
    children: [{
      componentName: 'Image',
      props: {
        src: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
        key: 'image-left'
      }
    }, {
      componentName: 'Image',
      props: {
        src: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
        key: 'image-icon'
      }
    }, {
      componentName: 'NextText',
      props: {
        type: 'h5',
        children: '购买礼品',
        key: 'title'
      }
    }, {
      componentName: 'NextText',
      props: {
        type: 'inherit',
        children: '10积分',
        key: 'integral'
      }
    }, {
      componentName: 'Button2',
      props: {
        name: '去完成',
        key: 'button2',
        color: 'complete'
      }
    }]
  }
}];
var _default = exports["default"] = (0, _extends2["default"])({}, IntegralTaskMeta, {
  snippets: snippets
});