"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.WebviewEmbeddedLastStepAndLoading = exports.WebviewEmbedded = exports.PreviousButtonHiddenEmbedded = exports.PreviousButtonHidden = exports.LastStepAndLoading = exports.DisabledSubmitButton = exports.DisabledNextButton = exports.Default = void 0;
var _react = _interopRequireDefault(require("react"));
var _addonActions = require("@storybook/addon-actions");
var _BottomWizardBar = _interopRequireDefault(require("./BottomWizardBar"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = exports.default = {
  title: 'Molecules / Bottom Wizard Bar',
  parameters: {
    component: _BottomWizardBar.default
  }
};
var Default = exports.Default = function Default() {
  return _react.default.createElement(_BottomWizardBar.default, {
    isLastStep: false,
    isLoading: false,
    onCancel: (0, _addonActions.action)('cancel'),
    onNext: (0, _addonActions.action)('next'),
    onPrevious: (0, _addonActions.action)('previous'),
    onSubmit: (0, _addonActions.action)('submit'),
    titleText: "Title",
    cancelText: "Cancel",
    previousText: "Previous",
    nextText: "Next",
    submitText: "Submit",
    cancelButtonLink: "https://nordnet.se/cancel",
    previousButtonLink: "https://nordnet.se/previous",
    submitButtonLink: "https://nordnet.se/submit",
    nextButtonLink: "https://nordnet.se/next"
  });
};
var WebviewEmbedded = exports.WebviewEmbedded = function WebviewEmbedded() {
  return _react.default.createElement(_BottomWizardBar.default, {
    isLastStep: false,
    isLoading: false,
    isEmbedded: true,
    onCancel: (0, _addonActions.action)('cancel'),
    onNext: (0, _addonActions.action)('next'),
    onPrevious: (0, _addonActions.action)('previous'),
    onSubmit: (0, _addonActions.action)('submit'),
    titleText: "Title",
    cancelText: "Cancel",
    previousText: "Previous",
    nextText: "Next",
    submitText: "Submit"
  });
};
var WebviewEmbeddedLastStepAndLoading = exports.WebviewEmbeddedLastStepAndLoading = function WebviewEmbeddedLastStepAndLoading() {
  return _react.default.createElement(_BottomWizardBar.default, {
    isLastStep: true,
    isLoading: true,
    isEmbedded: true,
    onCancel: (0, _addonActions.action)('cancel'),
    onNext: (0, _addonActions.action)('next'),
    onPrevious: (0, _addonActions.action)('previous'),
    onSubmit: (0, _addonActions.action)('submit'),
    titleText: "Title",
    cancelText: "Cancel",
    previousText: "Previous",
    nextText: "Next",
    submitText: "Submit"
  });
};
var PreviousButtonHidden = exports.PreviousButtonHidden = function PreviousButtonHidden() {
  return _react.default.createElement(_BottomWizardBar.default, {
    isLastStep: false,
    isLoading: false,
    isEmbedded: false,
    onCancel: (0, _addonActions.action)('cancel'),
    onNext: (0, _addonActions.action)('next'),
    onPrevious: (0, _addonActions.action)('previous'),
    onSubmit: (0, _addonActions.action)('submit'),
    titleText: "Title",
    cancelText: "Cancel",
    previousText: "Previous",
    nextText: "Next",
    submitText: "Submit",
    hidePreviousButton: true
  });
};
var PreviousButtonHiddenEmbedded = exports.PreviousButtonHiddenEmbedded = function PreviousButtonHiddenEmbedded() {
  return _react.default.createElement(_BottomWizardBar.default, {
    isLastStep: false,
    isLoading: false,
    isEmbedded: true,
    onCancel: (0, _addonActions.action)('cancel'),
    onNext: (0, _addonActions.action)('next'),
    onPrevious: (0, _addonActions.action)('previous'),
    onSubmit: (0, _addonActions.action)('submit'),
    titleText: "Title",
    cancelText: "Cancel",
    previousText: "Previous",
    nextText: "Next",
    submitText: "Submit",
    hidePreviousButton: true
  });
};
var LastStepAndLoading = exports.LastStepAndLoading = function LastStepAndLoading() {
  return _react.default.createElement(_BottomWizardBar.default, {
    isLastStep: true,
    isLoading: true,
    onCancel: (0, _addonActions.action)('cancel'),
    onNext: (0, _addonActions.action)('next'),
    onPrevious: (0, _addonActions.action)('previous'),
    onSubmit: (0, _addonActions.action)('submit'),
    titleText: "Title",
    cancelText: "Cancel",
    previousText: "Previous",
    nextText: "Next",
    submitText: "Submit"
  });
};
var DisabledNextButton = exports.DisabledNextButton = function DisabledNextButton() {
  return _react.default.createElement(_BottomWizardBar.default, {
    isNextDisabled: true,
    onCancel: (0, _addonActions.action)('cancel'),
    onNext: (0, _addonActions.action)('next'),
    onPrevious: (0, _addonActions.action)('previous'),
    onSubmit: (0, _addonActions.action)('submit'),
    titleText: "Title",
    cancelText: "Cancel",
    previousText: "Previous",
    nextText: "Next",
    submitText: "Submit"
  });
};
var DisabledSubmitButton = exports.DisabledSubmitButton = function DisabledSubmitButton() {
  return _react.default.createElement(_BottomWizardBar.default, {
    isLastStep: true,
    isSubmitDisabled: true,
    onCancel: (0, _addonActions.action)('cancel'),
    onNext: (0, _addonActions.action)('next'),
    onPrevious: (0, _addonActions.action)('previous'),
    onSubmit: (0, _addonActions.action)('submit'),
    titleText: "Title",
    cancelText: "Cancel",
    previousText: "Previous",
    nextText: "Next",
    submitText: "Submit"
  });
};