"use strict";

exports.__esModule = true;
exports.FooterType = void 0;

var _base = require("@sentecacommerce-theme/base");

var schema = {
  menu: {
    isEnabled: _base.FieldTypeFactory["boolean"]({
      defaultValue: false
    }),
    elements: _base.FieldTypeFactory.list({
      of: {
        label: _base.FieldTypeFactory.text(),
        url: _base.FieldTypeFactory.text(),
        expandable: _base.FieldTypeFactory["boolean"]({
          defaultValue: true,
          required: false
        }),
        children: _base.FieldTypeFactory.list({
          of: {
            url: _base.FieldTypeFactory.text(),
            label: _base.FieldTypeFactory.text(),
            isHighlighted: _base.FieldTypeFactory["boolean"]({
              defaultValue: false,
              required: false
            })
          }
        }),
        isExternal: _base.FieldTypeFactory.text()
      }
    })
  },
  social: {
    isEnabled: _base.FieldTypeFactory["boolean"]({
      defaultValue: false
    }),
    elements: _base.FieldTypeFactory.list({
      of: {
        media: _base.FieldTypeFactory.text(),
        url: _base.FieldTypeFactory.text()
      }
    })
  },
  copyright: {
    isEnabled: _base.FieldTypeFactory["boolean"]({
      defaultValue: false
    }),
    content: _base.FieldTypeFactory.text()
  },
  subfooter: {
    isEnabled: _base.FieldTypeFactory["boolean"]({
      defaultValue: false
    }),
    elements: _base.FieldTypeFactory.list({
      of: {
        label: _base.FieldTypeFactory.text()
      }
    })
  },
  contacts: {
    isEnabled: _base.FieldTypeFactory["boolean"]({
      defaultValue: false
    }),
    label: _base.FieldTypeFactory.text(),
    phone: _base.FieldTypeFactory.text()
  },
  footerImages: {
    isEnabled: _base.FieldTypeFactory["boolean"]({
      defaultValue: false
    }),
    elements: _base.FieldTypeFactory.list({
      of: {
        label: _base.FieldTypeFactory.text(),
        images: _base.FieldTypeFactory.list({
          of: {
            url: _base.FieldTypeFactory.text()
          }
        })
      }
    })
  }
};

var FooterType = _base.ComponentTypeFactory.create('Footer', schema);

exports.FooterType = FooterType;
//# sourceMappingURL=footer.type.js.map