import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';

import loginMeta from '../login2/meta';

const BookingAddonsMeta: ComponentMetadata = {
  componentName: 'WebPosLogin',
  title: 'WebPosLogin',
  docUrl: '',
  screenshot: '',
  devMode: 'proCode',
  npm: {
    package: '@pisell/private-materials',
    version: '1.1.558',
    exportName: 'WebPosLogin',
    main: 'src/index.ts',
    destructuring: true,
    subName: '',
  },
  configure: {
    props: [
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'step | 登录流程步骤',
            'zh-CN': 'step | 登录流程步骤',
          },
        },
        name: 'step',
        setter: {
          componentName: 'StringSetter',
          isRequired: true,
          props: {},
        },
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'backgroundImage | 背景图片',
            'zh-CN': 'backgroundImage | 背景图片',
          },
        },
        name: 'backgroundImage',
        setter: {
          componentName: 'StringSetter',
          isRequired: true,
          props: {},
        },
      },
      {
        title: {
          label: {
            type: 'i18n',
            'en-US': 'Login Slot | 登录页插槽',
            'zh-CN': 'Login Slot | 登录页插槽',
          },
        },
        name: 'loginSlot',
        setter: ["SlotSetter", "VariableSetter"],
      },
      ...loginMeta.configure?.props || [],
    ],
    supports: {},
    component: {},
  },
};
const snippets: Snippet[] = [
  {
    title: 'WebPosLogin',
    screenshot: '',
    schema: {
      componentName: 'WebPosLogin',
      props: {},
    },
  },
];

export default {
  ...BookingAddonsMeta,
  snippets,
};
