function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var React = require('react');
var React__default = _interopDefault(React);
var PageErreur = _interopDefault(require('./401~VzGSFquR.png'));
var ImageDecorationEllipsePrimaire = _interopDefault(require('./ellipse1~pRYCscag.png'));
var ImageDecorationEllipseSecondaire = _interopDefault(require('./ellipse2~XloyaDoC.png'));
var PageErreur$1 = _interopDefault(require('./404~yIULEPnU.png'));
var ImageDecorationPolygonPrimaire = _interopDefault(require('./polygon1~BZZgAwuq.png'));
var ImageDecorationPolygonSecondaire = _interopDefault(require('./polygon2~BNOkasUr.png'));
var PageErreur$2 = _interopDefault(require('./403~EWBTUnud.png'));
var ImageDecorationCercleSecondaire = _interopDefault(require('./cercle1~ozGpqiAq.png'));
var ImageDecorationCerclePrimaire = _interopDefault(require('./cercle2~ReQSLFel.png'));
var PageErreur$3 = _interopDefault(require('./500~hkLqIPDD.png'));
var ImageDecorationSubtractSecondaire = _interopDefault(require('./subtract2~YQtzEnWF.png'));
var ImageDecorationSubtractPrimaire = _interopDefault(require('./subtract1~batwzTxg.png'));

var styles = {"test":"_3ybTi","containerPage":"_fksjX","imgPrincipal":"_3vOJf","imageDecorationEllipsePrimaire":"_2NL7N","imageDecorationEllipseSecondaire":"_2xuo_","text-center":"_3pNQx","bloc-container":"_2kH35","textCodeErreur":"_2z3vf","containerText":"_f7k29","imgPrincipalQuantreCentQuatre":"_3fzYu","containerTextQuantreCentQuatre":"_1WgAf","imageDecorationpolygonPrimaire":"_S8F0B","imageDecorationpolygonSecondaire":"_1aHFY","textCodeErreurQuantreCentQuatre":"_25hZb","btnAccueil":"_1J7Do","imageDecorationCerclePrimaire":"_3yunU","imageDecorationCercleSecondaire":"_2SkTi","imgPrincipalQuantreCentTrois":"_3prgQ","containerTextQuantreCentTrois":"_1mXih","textCodeErreurQuantreCentTrois":"_3j1S-","imageDecorationSubtractPrimaire":"_1f6np","imageDecorationSubtractSecondaire":"_2VnO8","imgPrincipalCinqCent":"_TRdI4","containerTextCinqCent":"_2Q_LE","textCodeErreurCinqCent":"_3RA4z"};

var Page401 = function Page401(_ref) {
  var text = _ref.text,
      image = _ref.image;
  text = text || 'You do not have permission to access this site.';
  image = image || PageErreur;
  return React__default.createElement("div", {
    className: 'page-body'
  }, React__default.createElement("div", null, React__default.createElement("img", {
    src: ImageDecorationEllipsePrimaire,
    alt: 'ImageDecorationEllipsePrimaire',
    className: styles.imageDecorationEllipsePrimaire
  })), React__default.createElement("div", {
    className: 'container-page'
  }, React__default.createElement("div", {
    className: 'bloc-container'
  }, React__default.createElement("div", null, React__default.createElement("img", {
    src: ImageDecorationEllipseSecondaire,
    alt: 'ImageDecorationEllipseSecondaire',
    className: styles.imageDecorationEllipseSecondaire
  })), React__default.createElement("div", {
    className: 'text-center'
  }, React__default.createElement("img", {
    src: image || PageErreur,
    alt: 'Page erreur',
    className: styles.imgPrincipal
  })), React__default.createElement("div", {
    className: styles.containerText
  }, React__default.createElement("p", {
    className: styles.textCodeErreur
  }, " ", text)))));
};

var Page404 = function Page404(_ref) {
  var text = _ref.text,
      image = _ref.image,
      redirectLink = _ref.redirectLink;
  text = text || 'The requested URL was not found on this server.';
  image = image || PageErreur$1;
  return React__default.createElement("div", null, React__default.createElement("div", null, React__default.createElement("img", {
    src: ImageDecorationPolygonPrimaire,
    alt: 'ImageDecorationPolygonPrimaire',
    className: styles.imageDecorationpolygonPrimaire
  })), React__default.createElement("div", {
    className: 'container-page'
  }, React__default.createElement("div", {
    className: 'bloc-container'
  }, React__default.createElement("div", null, React__default.createElement("img", {
    src: ImageDecorationPolygonSecondaire,
    alt: 'ImageDecorationPolygonSecondaire',
    className: styles.imageDecorationpolygonSecondaire
  })), React__default.createElement("div", {
    className: 'text-center'
  }, React__default.createElement("img", {
    src: image || PageErreur$1,
    alt: 'Page erreur',
    className: styles.imgPrincipalQuantreCentQuatre
  })), React__default.createElement("div", {
    className: styles.containerTextQuantreCentQuatre
  }, React__default.createElement("p", {
    className: styles.textCodeErreurQuantreCentQuatre
  }, " ", text), React__default.createElement("a", {
    href: redirectLink,
    className: styles.btnAccueil
  }, "Home")))));
};

var Page403 = function Page403(_ref) {
  var text = _ref.text,
      image = _ref.image;
  text = text || 'Sorry, you do not have the appropriate permission to access the requested content.';
  image = image || PageErreur$2;
  return React__default.createElement("div", null, React__default.createElement("div", null, React__default.createElement("img", {
    src: ImageDecorationCercleSecondaire,
    alt: 'ImageDecorationCercleSecondaire',
    className: styles.imageDecorationCercleSecondaire
  })), React__default.createElement("div", {
    className: 'container-page'
  }, React__default.createElement("div", {
    className: 'bloc-container'
  }, React__default.createElement("div", null, React__default.createElement("img", {
    src: ImageDecorationCerclePrimaire,
    alt: 'ImageDecorationCerclePrimaire',
    className: styles.imageDecorationCerclePrimaire
  })), React__default.createElement("div", {
    className: 'text-center'
  }, React__default.createElement("img", {
    src: image || PageErreur$2,
    alt: 'Page erreur',
    className: styles.imgPrincipalQuantreCentTrois
  })), React__default.createElement("div", {
    className: styles.containerTextQuantreCentTrois
  }, React__default.createElement("p", {
    className: styles.textCodeErreurQuantreCentTrois
  }, " ", text)))));
};

var Page500 = function Page500(_ref) {
  var text = _ref.text,
      image = _ref.image;
  text = text || 'The server encountered an internal error or misconfiguration and could not complete your request.';
  image = image || PageErreur$3;
  return React__default.createElement("div", null, React__default.createElement("div", null, React__default.createElement("img", {
    src: ImageDecorationSubtractSecondaire,
    alt: 'ImageDecorationSubtractSecondaire',
    className: styles.imageDecorationSubtractSecondaire
  })), React__default.createElement("div", {
    className: 'container-page'
  }, React__default.createElement("div", {
    className: 'bloc-container'
  }, React__default.createElement("div", null, React__default.createElement("img", {
    src: ImageDecorationSubtractPrimaire,
    alt: 'ImageDecorationSubtractPrimaire',
    className: styles.imageDecorationSubtractPrimaire
  })), React__default.createElement("div", {
    className: 'text-center'
  }, React__default.createElement("img", {
    src: image || PageErreur$3,
    alt: 'Page erreur',
    className: styles.imgPrincipalCinqCent
  })), React__default.createElement("div", {
    className: styles.containerTextCinqCent
  }, React__default.createElement("p", {
    className: styles.textCodeErreurCinqCent
  }, " ", text)))));
};

var HttpCodePage = function HttpCodePage(_ref) {
  var text = _ref.text,
      image = _ref.image,
      typePage = _ref.typePage,
      redirectLink = _ref.redirectLink;

  if (typePage === 500) {
    return React.createElement("div", {
      className: styles.containerPage
    }, React.createElement(Page500, {
      text: text,
      image: image
    }));
  }

  if (typePage === 401) {
    return React.createElement("div", {
      className: styles.containerPage
    }, React.createElement(Page401, {
      text: text,
      image: image
    }));
  }

  if (typePage === 403) {
    return React.createElement("div", {
      className: styles.containerPage
    }, React.createElement(Page403, {
      text: text,
      image: image
    }));
  }

  if (typePage === 404) {
    return React.createElement("div", {
      className: styles.containerPage
    }, React.createElement(Page404, {
      text: text,
      image: image,
      redirectLink: redirectLink
    }));
  }

  return React.createElement("div", {
    className: styles.containerPage
  }, React.createElement("h1", null, "Il faut d\xE9finir un code http pour voir la page"));
};

exports.HttpCodePage = HttpCodePage;
//# sourceMappingURL=index.js.map
