'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _react3 = require('@storybook/react');

var _addonKnobs = require('@storybook/addon-knobs');

var _stateseal = require('../../../assets/images/stateseal.png');

var _stateseal2 = _interopRequireDefault(_stateseal);

var _index = require('./index');

var _index2 = _interopRequireDefault(_index);

var _Footer = require('./Footer.md');

var _Footer2 = _interopRequireDefault(_Footer);

var _FooterLinks = require('../../molecules/FooterLinks/FooterLinks.json');

var _FooterLinks2 = _interopRequireDefault(_FooterLinks);

var _SocialLinks = require('../../molecules/SocialLinks/SocialLinks.json');

var _SocialLinks2 = _interopRequireDefault(_SocialLinks);

var _FooterLinksLive = require('../../molecules/FooterLinks/FooterLinksLive.json');

var _FooterLinksLive2 = _interopRequireDefault(_FooterLinksLive);

var _SocialLinksLive = require('../../molecules/SocialLinks/SocialLinksLive.json');

var _SocialLinksLive2 = _interopRequireDefault(_SocialLinksLive);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(0, _react3.storiesOf)('organisms/Footer', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('Footer', function () {
  var props = {
    footerLinks: (0, _addonKnobs.object)('footerLinks', _FooterLinks2.default),
    showNavHeading: (0, _addonKnobs.boolean)('showNavHeading', true),
    socialLinks: (0, _addonKnobs.object)('socialLinksData', _SocialLinks2.default),
    footerLogo: (0, _addonKnobs.object)('footer.footerLogo', {
      domain: (0, _addonKnobs.text)('footer.footerLogo.domain', 'https://www.mass.gov/'),
      src: (0, _addonKnobs.text)('footer.footerLogo.src', _stateseal2.default),
      title: (0, _addonKnobs.text)('footer.footerLogo.title', 'Mass.gov homepage')
    }),
    footerText: (0, _addonKnobs.object)('footerText', {
      copyright: '2018 Commonwealth of Massachusetts.',
      description: 'Mass.gov® is a registered service mark of the Commonwealth of Massachusetts.',
      privacyPolicy: {
        text: 'Mass.gov Privacy Policy',
        url: 'https://www.mass.gov/privacypolicy'
      }
    })
  };
  return _react2.default.createElement(_index2.default, props);
}, { info: _Footer2.default }).add('Footer with live JSON', function () {
  var props = {
    footerLinks: (0, _addonKnobs.object)('footerLinks', _FooterLinksLive2.default),
    showNavHeading: (0, _addonKnobs.boolean)('showNavHeading', false),
    socialLinks: (0, _addonKnobs.object)('socialLinks', _SocialLinksLive2.default),
    footerText: (0, _addonKnobs.object)('footerText', {
      copyright: '2018 Commonwealth of Massachusetts.',
      description: 'Mass.gov® is a registered service mark of the Commonwealth of Massachusetts.',
      privacyPolicy: {
        text: 'Mass.gov Privacy Policy',
        url: 'https://www.mass.gov/privacypolicy'
      }
    })
  };
  return _react2.default.createElement(_index2.default, props);
}, { info: _Footer2.default });